From 4f4396ae3fd1663322faa874c37d6ccf86db99bd Mon Sep 17 00:00:00 2001 From: stdevEclipse Date: Sat, 4 Aug 2018 19:15:26 +0000 Subject: [PATCH 01/73] [swig] refs #4 - Create make rules to generate source files using swig. Update submodule --- Makefile | 8 +++++++- gopath/src/github.com/skycoin/skycoin | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c5994550..9707b8e3 100644 --- a/Makefile +++ b/Makefile @@ -42,4 +42,10 @@ build-swig: sed -i 's/#/%/g' $(LIBSWIG_DIR)/structs.i ;\ fi \ } - swig -csharp -Iswig/include -I$(INCLUDE_DIR) -outdir ./LibskycoinNet/skycoin -o ./LibskycoinNet/skycoin/skycoin.cs $(LIBSWIG_DIR)/skycoin.i + mkdir -p ./LibskycoinNet/skycoin + swig -csharp -Iswig/include -I$(INCLUDE_DIR) -outdir LibskycoinNet/skycoin -o LibskycoinNet/skycoin/skycoinnet_wrap.c $(LIBSWIG_DIR)/skycoin.i + +build-libskycoin-net: + gcc -c -fpic -ILibskycoinNet/swig/include -I$(INCLUDE_DIR) LibskycoinNet/skycoin/skycoinnet_wrap.c + gcc -shared skycoinnet_wrap.o $(BUILDLIBC_DIR)/libskycoin.a -o skycoin.so + mono-csc -out:skycoin_net.exe LibskycoinNet/skycoin/*.cs diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index d1e65320..ff7775bd 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit d1e65320f8d284a144c624a74374ddad338cb2e8 +Subproject commit ff7775bdf39d4e7845ac8bc7b0187870b28f1906 From 7d44fcab2167b538cab1a2e43265bc2be1869f90 Mon Sep 17 00:00:00 2001 From: stdevEclipse Date: Sat, 4 Aug 2018 19:16:00 +0000 Subject: [PATCH 02/73] [swig] refs #4 Update git ignore list --- .gitignore | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitignore b/.gitignore index f6d6dd75..488d751f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,10 @@ ## Ignore Visual Studio temporary files, build results, and ## files generated by popular Visual Studio add-ons. +# Swig generated folders +LibskycoinNet/skycoin +swig + # User-specific files *.suo *.user @@ -68,6 +72,10 @@ artifacts/ *.pidb *.svclog *.scc +*.o +*.dll +*.so +*.exe # Chutzpah Test files _Chutzpah* From 651f932bb150ec30a32c30ace3732a482f9278e4 Mon Sep 17 00:00:00 2001 From: stdevEclipse Date: Sun, 5 Aug 2018 12:08:01 +0000 Subject: [PATCH 03/73] [swig] refs #4 - Generate library with swig, compile and test --- .gitignore | 3 - .travis.yml | 2 + LibskycoinNet/LibskycoinNet.csproj | 108 +- LibskycoinNet/skycoin/GoInterface.cs | 70 + LibskycoinNet/skycoin/GoSlice.cs | 79 + .../SWIGTYPE_p_AddressUxOuts_Handle.cs | 29 + .../skycoin/SWIGTYPE_p_App__Handle.cs | 29 + LibskycoinNet/skycoin/SWIGTYPE_p_BOOL.cs | 29 + .../SWIGTYPE_p_BalanceResult_Handle.cs | 29 + .../skycoin/SWIGTYPE_p_BlockBody__Handle.cs | 29 + .../skycoin/SWIGTYPE_p_Block__Handle.cs | 29 + .../skycoin/SWIGTYPE_p_BuildInfo_Handle.cs | 29 + .../skycoin/SWIGTYPE_p_Client__Handle.cs | 29 + .../skycoin/SWIGTYPE_p_Config__Handle.cs | 29 + .../skycoin/SWIGTYPE_p_Context__Handle.cs | 29 + ...YPE_p_CreateTransactionResponse__Handle.cs | 29 + ...GTYPE_p_CreatedTransactionInput__Handle.cs | 29 + ...TYPE_p_CreatedTransactionOutput__Handle.cs | 29 + .../SWIGTYPE_p_CreatedTransaction__Handle.cs | 29 + .../skycoin/SWIGTYPE_p_FeeCalculator.cs | 29 + LibskycoinNet/skycoin/SWIGTYPE_p_GoInt32_.cs | 29 + LibskycoinNet/skycoin/SWIGTYPE_p_GoInt64_.cs | 29 + LibskycoinNet/skycoin/SWIGTYPE_p_GoInt8_.cs | 29 + LibskycoinNet/skycoin/SWIGTYPE_p_GoInt_.cs | 29 + LibskycoinNet/skycoin/SWIGTYPE_p_GoMap_.cs | 29 + LibskycoinNet/skycoin/SWIGTYPE_p_GoSlice_.cs | 29 + .../skycoin/SWIGTYPE_p_GoStringMap_.cs | 29 + LibskycoinNet/skycoin/SWIGTYPE_p_GoString_.cs | 29 + LibskycoinNet/skycoin/SWIGTYPE_p_GoUint32_.cs | 29 + LibskycoinNet/skycoin/SWIGTYPE_p_GoUint64_.cs | 29 + LibskycoinNet/skycoin/SWIGTYPE_p_GoUint8_.cs | 29 + LibskycoinNet/skycoin/SWIGTYPE_p_Handle.cs | 29 + .../skycoin/SWIGTYPE_p_Hash_Handle.cs | 29 + .../skycoin/SWIGTYPE_p_Number_Handle.cs | 29 + .../skycoin/SWIGTYPE_p_Options__Handle.cs | 29 + .../SWIGTYPE_p_OutputsResult_Handle.cs | 29 + .../SWIGTYPE_p_PasswordReader__Handle.cs | 29 + .../SWIGTYPE_p_ReadableEntry__Handle.cs | 29 + .../SWIGTYPE_p_ReadableWallet__Handle.cs | 29 + .../skycoin/SWIGTYPE_p_Signature_Handle.cs | 29 + ...TYPE_p_SortableTransactionResult_Handle.cs | 29 + .../skycoin/SWIGTYPE_p_SpendResult_Handle.cs | 29 + .../skycoin/SWIGTYPE_p_StatusResult_Handle.cs | 29 + .../skycoin/SWIGTYPE_p_Strings__Handle.cs | 29 + .../SWIGTYPE_p_TransactionResult_Handle.cs | 29 + .../skycoin/SWIGTYPE_p_Transaction__Handle.cs | 29 + .../SWIGTYPE_p_Transactions__Handle.cs | 29 + .../skycoin/SWIGTYPE_p_WalletNotes_Handle.cs | 29 + .../SWIGTYPE_p_WalletReadableNotes_Handle.cs | 29 + .../SWIGTYPE_p_WalletResponse__Handle.cs | 29 + .../skycoin/SWIGTYPE_p_Wallet__Handle.cs | 29 + .../skycoin/SWIGTYPE_p_Wallets__Handle.cs | 29 + .../SWIGTYPE_p_WebRpcClient__Handle.cs | 29 + .../skycoin/SWIGTYPE_p_a_20__GoUint8_.cs | 29 + .../skycoin/SWIGTYPE_p_a_32__GoUint8_.cs | 29 + .../skycoin/SWIGTYPE_p_a_33__GoUint8_.cs | 29 + .../skycoin/SWIGTYPE_p_a_4__GoUint8_.cs | 29 + .../skycoin/SWIGTYPE_p_a_65__GoUint8_.cs | 29 + LibskycoinNet/skycoin/SWIGTYPE_p_long_long.cs | 29 + .../skycoin/SWIGTYPE_p_p_GoSlice_.cs | 29 + .../skycoin/SWIGTYPE_p_p_coin__Block.cs | 29 + .../skycoin/SWIGTYPE_p_p_coin__Transaction.cs | 29 + LibskycoinNet/skycoin/SWIGTYPE_p_ptrdiff_t.cs | 29 + .../skycoin/SWIGTYPE_p_unsigned_char.cs | 29 + .../skycoin/SWIGTYPE_p_unsigned_int.cs | 29 + .../skycoin/SWIGTYPE_p_unsigned_long_long.cs | 29 + .../skycoin/SWIGTYPE_p_unsigned_short.cs | 29 + LibskycoinNet/skycoin/SWIGTYPE_p_void.cs | 29 + LibskycoinNet/skycoin/_GoString_.cs | 70 + LibskycoinNet/skycoin/api__RichlistParams.cs | 72 + LibskycoinNet/skycoin/cipher_Checksum.cs | 72 + LibskycoinNet/skycoin/cipher_PubKey.cs | 72 + LibskycoinNet/skycoin/cipher_PubKeys.cs | 93 + LibskycoinNet/skycoin/cipher_Ripemd160.cs | 72 + LibskycoinNet/skycoin/cipher_SHA256.cs | 72 + LibskycoinNet/skycoin/cipher_SHA256s.cs | 93 + LibskycoinNet/skycoin/cipher_SecKey.cs | 72 + LibskycoinNet/skycoin/cipher_SecKeys.cs | 93 + LibskycoinNet/skycoin/cipher_Sig.cs | 72 + LibskycoinNet/skycoin/cipher__Address.cs | 76 + LibskycoinNet/skycoin/cli__SendAmount.cs | 72 + LibskycoinNet/skycoin/coin_UxOutArray.cs | 93 + LibskycoinNet/skycoin/coin__Block.cs | 70 + LibskycoinNet/skycoin/coin__BlockBody.cs | 65 + LibskycoinNet/skycoin/coin__BlockHeader.cs | 134 + LibskycoinNet/skycoin/coin__SignedBlock.cs | 70 + .../skycoin/coin__SortableTransactions.cs | 84 + LibskycoinNet/skycoin/coin__Transaction.cs | 124 + .../skycoin/coin__TransactionOutput.cs | 88 + LibskycoinNet/skycoin/coin__UxBody.cs | 94 + LibskycoinNet/skycoin/coin__UxHead.cs | 72 + LibskycoinNet/skycoin/coin__UxOut.cs | 75 + LibskycoinNet/skycoin/encoder__StructField.cs | 96 + .../encrypt__ScryptChacha20poly1305.cs | 96 + LibskycoinNet/skycoin/httphelper__Address.cs | 59 + LibskycoinNet/skycoin/secp256k1go__Field.cs | 59 + LibskycoinNet/skycoin/secp256k1go__XY.cs | 82 + LibskycoinNet/skycoin/secp256k1go__XYZ.cs | 93 + LibskycoinNet/skycoin/skycoin.cs | 2835 +++ LibskycoinNet/skycoin/skycoinPINVOKE.cs | 2610 +++ LibskycoinNet/skycoin/skycoinnet_wrap.c | 14553 ++++++++++++++++ LibskycoinNet/skycoin/wallet__Balance.cs | 72 + LibskycoinNet/skycoin/wallet__BalancePair.cs | 70 + LibskycoinNet/skycoin/wallet__Entry.cs | 81 + LibskycoinNet/skycoin/wallet__Note.cs | 72 + LibskycoinNet/skycoin/wallet__ReadableNote.cs | 72 + LibskycoinNet/skycoin/wallet__UxBalance.cs | 106 + LibskycoinNet/skycoin/wallet__Wallet.cs | 72 + LibskycoinNetTest/LibskycoinNetTest.cs | 10 +- Makefile | 9 +- swig/include/libskycoin.h | 1623 ++ 111 files changed, 26717 insertions(+), 12 deletions(-) create mode 100644 LibskycoinNet/skycoin/GoInterface.cs create mode 100644 LibskycoinNet/skycoin/GoSlice.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_AddressUxOuts_Handle.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_App__Handle.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_BOOL.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_BalanceResult_Handle.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_BlockBody__Handle.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_Block__Handle.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_BuildInfo_Handle.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_Client__Handle.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_Config__Handle.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_Context__Handle.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_CreateTransactionResponse__Handle.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_CreatedTransactionInput__Handle.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_CreatedTransactionOutput__Handle.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_CreatedTransaction__Handle.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_FeeCalculator.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_GoInt32_.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_GoInt64_.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_GoInt8_.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_GoInt_.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_GoMap_.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_GoSlice_.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_GoStringMap_.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_GoString_.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_GoUint32_.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_GoUint64_.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_GoUint8_.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_Handle.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_Hash_Handle.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_Number_Handle.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_Options__Handle.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_OutputsResult_Handle.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_PasswordReader__Handle.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_ReadableEntry__Handle.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_ReadableWallet__Handle.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_Signature_Handle.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_SortableTransactionResult_Handle.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_SpendResult_Handle.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_StatusResult_Handle.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_Strings__Handle.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_TransactionResult_Handle.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_Transaction__Handle.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_Transactions__Handle.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_WalletNotes_Handle.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_WalletReadableNotes_Handle.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_WalletResponse__Handle.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_Wallet__Handle.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_Wallets__Handle.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_WebRpcClient__Handle.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_a_20__GoUint8_.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_a_32__GoUint8_.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_a_33__GoUint8_.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_a_4__GoUint8_.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_a_65__GoUint8_.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_long_long.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_p_GoSlice_.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_p_coin__Block.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_p_coin__Transaction.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_ptrdiff_t.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_unsigned_char.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_unsigned_int.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_unsigned_long_long.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_unsigned_short.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_void.cs create mode 100644 LibskycoinNet/skycoin/_GoString_.cs create mode 100644 LibskycoinNet/skycoin/api__RichlistParams.cs create mode 100644 LibskycoinNet/skycoin/cipher_Checksum.cs create mode 100644 LibskycoinNet/skycoin/cipher_PubKey.cs create mode 100644 LibskycoinNet/skycoin/cipher_PubKeys.cs create mode 100644 LibskycoinNet/skycoin/cipher_Ripemd160.cs create mode 100644 LibskycoinNet/skycoin/cipher_SHA256.cs create mode 100644 LibskycoinNet/skycoin/cipher_SHA256s.cs create mode 100644 LibskycoinNet/skycoin/cipher_SecKey.cs create mode 100644 LibskycoinNet/skycoin/cipher_SecKeys.cs create mode 100644 LibskycoinNet/skycoin/cipher_Sig.cs create mode 100644 LibskycoinNet/skycoin/cipher__Address.cs create mode 100644 LibskycoinNet/skycoin/cli__SendAmount.cs create mode 100644 LibskycoinNet/skycoin/coin_UxOutArray.cs create mode 100644 LibskycoinNet/skycoin/coin__Block.cs create mode 100644 LibskycoinNet/skycoin/coin__BlockBody.cs create mode 100644 LibskycoinNet/skycoin/coin__BlockHeader.cs create mode 100644 LibskycoinNet/skycoin/coin__SignedBlock.cs create mode 100644 LibskycoinNet/skycoin/coin__SortableTransactions.cs create mode 100644 LibskycoinNet/skycoin/coin__Transaction.cs create mode 100644 LibskycoinNet/skycoin/coin__TransactionOutput.cs create mode 100644 LibskycoinNet/skycoin/coin__UxBody.cs create mode 100644 LibskycoinNet/skycoin/coin__UxHead.cs create mode 100644 LibskycoinNet/skycoin/coin__UxOut.cs create mode 100644 LibskycoinNet/skycoin/encoder__StructField.cs create mode 100644 LibskycoinNet/skycoin/encrypt__ScryptChacha20poly1305.cs create mode 100644 LibskycoinNet/skycoin/httphelper__Address.cs create mode 100644 LibskycoinNet/skycoin/secp256k1go__Field.cs create mode 100644 LibskycoinNet/skycoin/secp256k1go__XY.cs create mode 100644 LibskycoinNet/skycoin/secp256k1go__XYZ.cs create mode 100644 LibskycoinNet/skycoin/skycoin.cs create mode 100644 LibskycoinNet/skycoin/skycoinPINVOKE.cs create mode 100644 LibskycoinNet/skycoin/skycoinnet_wrap.c create mode 100644 LibskycoinNet/skycoin/wallet__Balance.cs create mode 100644 LibskycoinNet/skycoin/wallet__BalancePair.cs create mode 100644 LibskycoinNet/skycoin/wallet__Entry.cs create mode 100644 LibskycoinNet/skycoin/wallet__Note.cs create mode 100644 LibskycoinNet/skycoin/wallet__ReadableNote.cs create mode 100644 LibskycoinNet/skycoin/wallet__UxBalance.cs create mode 100644 LibskycoinNet/skycoin/wallet__Wallet.cs create mode 100644 swig/include/libskycoin.h diff --git a/.gitignore b/.gitignore index 488d751f..65639452 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,6 @@ ## Ignore Visual Studio temporary files, build results, and ## files generated by popular Visual Studio add-ons. -# Swig generated folders -LibskycoinNet/skycoin -swig # User-specific files *.suo diff --git a/.travis.yml b/.travis.yml index 101da5c7..257fe6df 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,9 @@ install: - nuget install NUnit.Runners -Version 2.6.4 -OutputDirectory testrunner script: + - make build-swig - msbuild /p:Configuration=Release LibskycoinNet.sln + - make build-libskycoin-net - mono ./testrunner/NUnit.Runners.2.6.4/tools/nunit-console.exe ./LibskycoinNetTest/bin/Release/LibskycoinNetTest.dll notifications: diff --git a/LibskycoinNet/LibskycoinNet.csproj b/LibskycoinNet/LibskycoinNet.csproj index 846df4f8..6086bf59 100644 --- a/LibskycoinNet/LibskycoinNet.csproj +++ b/LibskycoinNet/LibskycoinNet.csproj @@ -31,7 +31,113 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/LibskycoinNet/skycoin/GoInterface.cs b/LibskycoinNet/skycoin/GoInterface.cs new file mode 100644 index 00000000..6c3f46c1 --- /dev/null +++ b/LibskycoinNet/skycoin/GoInterface.cs @@ -0,0 +1,70 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class GoInterface : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal GoInterface(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(GoInterface obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~GoInterface() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_GoInterface(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_void t { + set { + skycoinPINVOKE.GoInterface_t_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.GoInterface_t_get(swigCPtr); + SWIGTYPE_p_void ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_void v { + set { + skycoinPINVOKE.GoInterface_v_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.GoInterface_v_get(swigCPtr); + SWIGTYPE_p_void ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + } + + public GoInterface() : this(skycoinPINVOKE.new_GoInterface(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/GoSlice.cs b/LibskycoinNet/skycoin/GoSlice.cs new file mode 100644 index 00000000..d0d23f9d --- /dev/null +++ b/LibskycoinNet/skycoin/GoSlice.cs @@ -0,0 +1,79 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class GoSlice : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal GoSlice(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(GoSlice obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~GoSlice() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_GoSlice(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_void data { + set { + skycoinPINVOKE.GoSlice_data_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.GoSlice_data_get(swigCPtr); + SWIGTYPE_p_void ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + } + + public long len { + set { + skycoinPINVOKE.GoSlice_len_set(swigCPtr, value); + } + get { + long ret = skycoinPINVOKE.GoSlice_len_get(swigCPtr); + return ret; + } + } + + public long cap { + set { + skycoinPINVOKE.GoSlice_cap_set(swigCPtr, value); + } + get { + long ret = skycoinPINVOKE.GoSlice_cap_get(swigCPtr); + return ret; + } + } + + public GoSlice() : this(skycoinPINVOKE.new_GoSlice(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_AddressUxOuts_Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_AddressUxOuts_Handle.cs new file mode 100644 index 00000000..e516001f --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_AddressUxOuts_Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_AddressUxOuts_Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_AddressUxOuts_Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_AddressUxOuts_Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_AddressUxOuts_Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_App__Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_App__Handle.cs new file mode 100644 index 00000000..ff1a432f --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_App__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_App__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_App__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_App__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_App__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_BOOL.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_BOOL.cs new file mode 100644 index 00000000..bd909667 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_BOOL.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_BOOL { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_BOOL(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_BOOL() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_BOOL obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_BalanceResult_Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_BalanceResult_Handle.cs new file mode 100644 index 00000000..7fed0386 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_BalanceResult_Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_BalanceResult_Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_BalanceResult_Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_BalanceResult_Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_BalanceResult_Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_BlockBody__Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_BlockBody__Handle.cs new file mode 100644 index 00000000..d074a103 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_BlockBody__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_BlockBody__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_BlockBody__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_BlockBody__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_BlockBody__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_Block__Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_Block__Handle.cs new file mode 100644 index 00000000..a48c533f --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_Block__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_Block__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_Block__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_Block__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Block__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_BuildInfo_Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_BuildInfo_Handle.cs new file mode 100644 index 00000000..b97ebbcb --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_BuildInfo_Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_BuildInfo_Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_BuildInfo_Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_BuildInfo_Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_BuildInfo_Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_Client__Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_Client__Handle.cs new file mode 100644 index 00000000..21dee0c7 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_Client__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_Client__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_Client__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_Client__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Client__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_Config__Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_Config__Handle.cs new file mode 100644 index 00000000..50cc120d --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_Config__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_Config__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_Config__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_Config__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Config__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_Context__Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_Context__Handle.cs new file mode 100644 index 00000000..f8f29831 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_Context__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_Context__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_Context__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_Context__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Context__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_CreateTransactionResponse__Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_CreateTransactionResponse__Handle.cs new file mode 100644 index 00000000..6198a1da --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_CreateTransactionResponse__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_CreateTransactionResponse__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_CreateTransactionResponse__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_CreateTransactionResponse__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_CreateTransactionResponse__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_CreatedTransactionInput__Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_CreatedTransactionInput__Handle.cs new file mode 100644 index 00000000..f27373fc --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_CreatedTransactionInput__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_CreatedTransactionInput__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_CreatedTransactionInput__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_CreatedTransactionInput__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_CreatedTransactionInput__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_CreatedTransactionOutput__Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_CreatedTransactionOutput__Handle.cs new file mode 100644 index 00000000..592e5b9e --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_CreatedTransactionOutput__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_CreatedTransactionOutput__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_CreatedTransactionOutput__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_CreatedTransactionOutput__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_CreatedTransactionOutput__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_CreatedTransaction__Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_CreatedTransaction__Handle.cs new file mode 100644 index 00000000..9482fe6e --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_CreatedTransaction__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_CreatedTransaction__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_CreatedTransaction__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_CreatedTransaction__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_CreatedTransaction__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_FeeCalculator.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_FeeCalculator.cs new file mode 100644 index 00000000..96b48383 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_FeeCalculator.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_FeeCalculator { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_FeeCalculator(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_FeeCalculator() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_FeeCalculator obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_GoInt32_.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_GoInt32_.cs new file mode 100644 index 00000000..7ef9e109 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_GoInt32_.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_GoInt32_ { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_GoInt32_(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_GoInt32_() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_GoInt32_ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_GoInt64_.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_GoInt64_.cs new file mode 100644 index 00000000..e9aa1c63 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_GoInt64_.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_GoInt64_ { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_GoInt64_(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_GoInt64_() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_GoInt64_ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_GoInt8_.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_GoInt8_.cs new file mode 100644 index 00000000..e2c73313 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_GoInt8_.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_GoInt8_ { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_GoInt8_(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_GoInt8_() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_GoInt8_ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_GoInt_.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_GoInt_.cs new file mode 100644 index 00000000..31a900ee --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_GoInt_.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_GoInt_ { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_GoInt_(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_GoInt_() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_GoInt_ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_GoMap_.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_GoMap_.cs new file mode 100644 index 00000000..cbdd11ac --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_GoMap_.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_GoMap_ { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_GoMap_(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_GoMap_() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_GoMap_ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_GoSlice_.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_GoSlice_.cs new file mode 100644 index 00000000..1baac701 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_GoSlice_.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_GoSlice_ { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_GoSlice_(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_GoSlice_() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_GoSlice_ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_GoStringMap_.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_GoStringMap_.cs new file mode 100644 index 00000000..3c6416e4 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_GoStringMap_.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_GoStringMap_ { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_GoStringMap_(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_GoStringMap_() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_GoStringMap_ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_GoString_.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_GoString_.cs new file mode 100644 index 00000000..465712d7 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_GoString_.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_GoString_ { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_GoString_(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_GoString_() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_GoString_ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_GoUint32_.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_GoUint32_.cs new file mode 100644 index 00000000..c74ace3b --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_GoUint32_.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_GoUint32_ { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_GoUint32_(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_GoUint32_() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_GoUint32_ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_GoUint64_.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_GoUint64_.cs new file mode 100644 index 00000000..88aa2bb4 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_GoUint64_.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_GoUint64_ { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_GoUint64_(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_GoUint64_() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_GoUint64_ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_GoUint8_.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_GoUint8_.cs new file mode 100644 index 00000000..b51d2ca0 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_GoUint8_.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_GoUint8_ { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_GoUint8_(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_GoUint8_() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_GoUint8_ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_Handle.cs new file mode 100644 index 00000000..e23cb818 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_Hash_Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_Hash_Handle.cs new file mode 100644 index 00000000..0e5a2b34 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_Hash_Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_Hash_Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_Hash_Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_Hash_Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Hash_Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_Number_Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_Number_Handle.cs new file mode 100644 index 00000000..ada6d62a --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_Number_Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_Number_Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_Number_Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_Number_Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Number_Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_Options__Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_Options__Handle.cs new file mode 100644 index 00000000..860d732e --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_Options__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_Options__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_Options__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_Options__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Options__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_OutputsResult_Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_OutputsResult_Handle.cs new file mode 100644 index 00000000..c9c0b175 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_OutputsResult_Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_OutputsResult_Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_OutputsResult_Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_OutputsResult_Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_OutputsResult_Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_PasswordReader__Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_PasswordReader__Handle.cs new file mode 100644 index 00000000..3dcc2483 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_PasswordReader__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_PasswordReader__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_PasswordReader__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_PasswordReader__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_PasswordReader__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_ReadableEntry__Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_ReadableEntry__Handle.cs new file mode 100644 index 00000000..719734ec --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_ReadableEntry__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_ReadableEntry__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_ReadableEntry__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_ReadableEntry__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_ReadableEntry__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_ReadableWallet__Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_ReadableWallet__Handle.cs new file mode 100644 index 00000000..c8417273 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_ReadableWallet__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_ReadableWallet__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_ReadableWallet__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_ReadableWallet__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_ReadableWallet__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_Signature_Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_Signature_Handle.cs new file mode 100644 index 00000000..572ca68e --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_Signature_Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_Signature_Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_Signature_Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_Signature_Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Signature_Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_SortableTransactionResult_Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_SortableTransactionResult_Handle.cs new file mode 100644 index 00000000..a2516295 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_SortableTransactionResult_Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_SortableTransactionResult_Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_SortableTransactionResult_Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_SortableTransactionResult_Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_SortableTransactionResult_Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_SpendResult_Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_SpendResult_Handle.cs new file mode 100644 index 00000000..7d1f0494 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_SpendResult_Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_SpendResult_Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_SpendResult_Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_SpendResult_Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_SpendResult_Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_StatusResult_Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_StatusResult_Handle.cs new file mode 100644 index 00000000..b4a99547 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_StatusResult_Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_StatusResult_Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_StatusResult_Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_StatusResult_Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_StatusResult_Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_Strings__Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_Strings__Handle.cs new file mode 100644 index 00000000..24d6077a --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_Strings__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_Strings__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_Strings__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_Strings__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Strings__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_TransactionResult_Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_TransactionResult_Handle.cs new file mode 100644 index 00000000..21b9b665 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_TransactionResult_Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_TransactionResult_Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_TransactionResult_Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_TransactionResult_Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_TransactionResult_Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_Transaction__Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_Transaction__Handle.cs new file mode 100644 index 00000000..1d23f647 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_Transaction__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_Transaction__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_Transaction__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_Transaction__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Transaction__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_Transactions__Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_Transactions__Handle.cs new file mode 100644 index 00000000..0f9acbd5 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_Transactions__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_Transactions__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_Transactions__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_Transactions__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Transactions__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_WalletNotes_Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_WalletNotes_Handle.cs new file mode 100644 index 00000000..fd69d3dc --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_WalletNotes_Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_WalletNotes_Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_WalletNotes_Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_WalletNotes_Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_WalletNotes_Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_WalletReadableNotes_Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_WalletReadableNotes_Handle.cs new file mode 100644 index 00000000..c145f8d2 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_WalletReadableNotes_Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_WalletReadableNotes_Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_WalletReadableNotes_Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_WalletReadableNotes_Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_WalletReadableNotes_Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_WalletResponse__Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_WalletResponse__Handle.cs new file mode 100644 index 00000000..800aa5c8 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_WalletResponse__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_WalletResponse__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_WalletResponse__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_WalletResponse__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_WalletResponse__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_Wallet__Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_Wallet__Handle.cs new file mode 100644 index 00000000..0ca53bbc --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_Wallet__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_Wallet__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_Wallet__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_Wallet__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Wallet__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_Wallets__Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_Wallets__Handle.cs new file mode 100644 index 00000000..74cbd0ab --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_Wallets__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_Wallets__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_Wallets__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_Wallets__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Wallets__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_WebRpcClient__Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_WebRpcClient__Handle.cs new file mode 100644 index 00000000..5758eb23 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_WebRpcClient__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_WebRpcClient__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_WebRpcClient__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_WebRpcClient__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_WebRpcClient__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_a_20__GoUint8_.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_a_20__GoUint8_.cs new file mode 100644 index 00000000..1d90b1fc --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_a_20__GoUint8_.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_a_20__GoUint8_ { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_a_20__GoUint8_(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_a_20__GoUint8_() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_a_20__GoUint8_ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_a_32__GoUint8_.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_a_32__GoUint8_.cs new file mode 100644 index 00000000..31785e54 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_a_32__GoUint8_.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_a_32__GoUint8_ { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_a_32__GoUint8_(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_a_32__GoUint8_() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_a_32__GoUint8_ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_a_33__GoUint8_.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_a_33__GoUint8_.cs new file mode 100644 index 00000000..53b8410d --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_a_33__GoUint8_.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_a_33__GoUint8_ { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_a_33__GoUint8_(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_a_33__GoUint8_() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_a_33__GoUint8_ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_a_4__GoUint8_.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_a_4__GoUint8_.cs new file mode 100644 index 00000000..876a246f --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_a_4__GoUint8_.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_a_4__GoUint8_ { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_a_4__GoUint8_(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_a_4__GoUint8_() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_a_4__GoUint8_ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_a_65__GoUint8_.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_a_65__GoUint8_.cs new file mode 100644 index 00000000..478f2206 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_a_65__GoUint8_.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_a_65__GoUint8_ { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_a_65__GoUint8_(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_a_65__GoUint8_() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_a_65__GoUint8_ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_long_long.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_long_long.cs new file mode 100644 index 00000000..e61be3d8 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_long_long.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_long_long { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_long_long(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_long_long() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_long_long obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_p_GoSlice_.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_p_GoSlice_.cs new file mode 100644 index 00000000..d1ee7548 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_p_GoSlice_.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_p_GoSlice_ { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_p_GoSlice_(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_GoSlice_() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_p_GoSlice_ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_p_coin__Block.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_p_coin__Block.cs new file mode 100644 index 00000000..42843ea3 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_p_coin__Block.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_p_coin__Block { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_p_coin__Block(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_coin__Block() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_p_coin__Block obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_p_coin__Transaction.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_p_coin__Transaction.cs new file mode 100644 index 00000000..6b055d2d --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_p_coin__Transaction.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_p_coin__Transaction { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_p_coin__Transaction(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_coin__Transaction() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_p_coin__Transaction obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_ptrdiff_t.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_ptrdiff_t.cs new file mode 100644 index 00000000..a2d0da0b --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_ptrdiff_t.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_ptrdiff_t { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_ptrdiff_t(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_ptrdiff_t() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_ptrdiff_t obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_unsigned_char.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_unsigned_char.cs new file mode 100644 index 00000000..01c281d9 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_unsigned_char.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_unsigned_char { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_unsigned_char(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_unsigned_char() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_unsigned_char obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_unsigned_int.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_unsigned_int.cs new file mode 100644 index 00000000..ddd31977 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_unsigned_int.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_unsigned_int { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_unsigned_int(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_unsigned_int() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_unsigned_int obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_unsigned_long_long.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_unsigned_long_long.cs new file mode 100644 index 00000000..7a44b6fc --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_unsigned_long_long.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_unsigned_long_long { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_unsigned_long_long(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_unsigned_long_long() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_unsigned_long_long obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_unsigned_short.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_unsigned_short.cs new file mode 100644 index 00000000..ff9b269b --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_unsigned_short.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_unsigned_short { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_unsigned_short(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_unsigned_short() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_unsigned_short obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_void.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_void.cs new file mode 100644 index 00000000..6b683d89 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_void.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_void { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_void(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_void() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_void obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/_GoString_.cs b/LibskycoinNet/skycoin/_GoString_.cs new file mode 100644 index 00000000..2c9d87b3 --- /dev/null +++ b/LibskycoinNet/skycoin/_GoString_.cs @@ -0,0 +1,70 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class _GoString_ : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal _GoString_(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(_GoString_ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~_GoString_() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete__GoString_(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public string p { + set { + skycoinPINVOKE._GoString__p_set(swigCPtr, value); + } + get { + string ret = skycoinPINVOKE._GoString__p_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_ptrdiff_t n { + set { + skycoinPINVOKE._GoString__n_set(swigCPtr, SWIGTYPE_p_ptrdiff_t.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_ptrdiff_t ret = new SWIGTYPE_p_ptrdiff_t(skycoinPINVOKE._GoString__n_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public _GoString_() : this(skycoinPINVOKE.new__GoString_(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/api__RichlistParams.cs b/LibskycoinNet/skycoin/api__RichlistParams.cs new file mode 100644 index 00000000..7d036643 --- /dev/null +++ b/LibskycoinNet/skycoin/api__RichlistParams.cs @@ -0,0 +1,72 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class api__RichlistParams : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal api__RichlistParams(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(api__RichlistParams obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~api__RichlistParams() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_api__RichlistParams(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_GoInt_ N { + set { + skycoinPINVOKE.api__RichlistParams_N_set(swigCPtr, SWIGTYPE_p_GoInt_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoInt_ ret = new SWIGTYPE_p_GoInt_(skycoinPINVOKE.api__RichlistParams_N_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_BOOL IncludeDistribution { + set { + skycoinPINVOKE.api__RichlistParams_IncludeDistribution_set(swigCPtr, SWIGTYPE_p_BOOL.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_BOOL ret = new SWIGTYPE_p_BOOL(skycoinPINVOKE.api__RichlistParams_IncludeDistribution_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public api__RichlistParams() : this(skycoinPINVOKE.new_api__RichlistParams(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/cipher_Checksum.cs b/LibskycoinNet/skycoin/cipher_Checksum.cs new file mode 100644 index 00000000..35260312 --- /dev/null +++ b/LibskycoinNet/skycoin/cipher_Checksum.cs @@ -0,0 +1,72 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class cipher_Checksum : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal cipher_Checksum(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(cipher_Checksum obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~cipher_Checksum() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_cipher_Checksum(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public int isEqual(cipher_Checksum a) { + int ret = skycoinPINVOKE.cipher_Checksum_isEqual(swigCPtr, cipher_Checksum.getCPtr(a)); + return ret; + } + + public void assignFrom(SWIGTYPE_p_void data) { + skycoinPINVOKE.cipher_Checksum_assignFrom(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); + } + + public void assignTo(SWIGTYPE_p_void data) { + skycoinPINVOKE.cipher_Checksum_assignTo(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); + } + + public SWIGTYPE_p_unsigned_char data { + set { + skycoinPINVOKE.cipher_Checksum_data_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.cipher_Checksum_data_get(swigCPtr); + SWIGTYPE_p_unsigned_char ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); + return ret; + } + } + + public cipher_Checksum() : this(skycoinPINVOKE.new_cipher_Checksum(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/cipher_PubKey.cs b/LibskycoinNet/skycoin/cipher_PubKey.cs new file mode 100644 index 00000000..d640f7e8 --- /dev/null +++ b/LibskycoinNet/skycoin/cipher_PubKey.cs @@ -0,0 +1,72 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class cipher_PubKey : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal cipher_PubKey(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(cipher_PubKey obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~cipher_PubKey() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_cipher_PubKey(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public int isEqual(cipher_PubKey a) { + int ret = skycoinPINVOKE.cipher_PubKey_isEqual(swigCPtr, cipher_PubKey.getCPtr(a)); + return ret; + } + + public void assignFrom(SWIGTYPE_p_void data) { + skycoinPINVOKE.cipher_PubKey_assignFrom(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); + } + + public void assignTo(SWIGTYPE_p_void data) { + skycoinPINVOKE.cipher_PubKey_assignTo(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); + } + + public SWIGTYPE_p_unsigned_char data { + set { + skycoinPINVOKE.cipher_PubKey_data_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.cipher_PubKey_data_get(swigCPtr); + SWIGTYPE_p_unsigned_char ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); + return ret; + } + } + + public cipher_PubKey() : this(skycoinPINVOKE.new_cipher_PubKey(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/cipher_PubKeys.cs b/LibskycoinNet/skycoin/cipher_PubKeys.cs new file mode 100644 index 00000000..0586b5c8 --- /dev/null +++ b/LibskycoinNet/skycoin/cipher_PubKeys.cs @@ -0,0 +1,93 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class cipher_PubKeys : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal cipher_PubKeys(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(cipher_PubKeys obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~cipher_PubKeys() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_cipher_PubKeys(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public cipher_PubKey getAt(int i) { + global::System.IntPtr cPtr = skycoinPINVOKE.cipher_PubKeys_getAt(swigCPtr, i); + cipher_PubKey ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher_PubKey(cPtr, false); + return ret; + } + + public int setAt(int i, cipher_PubKey pubkey) { + int ret = skycoinPINVOKE.cipher_PubKeys_setAt(swigCPtr, i, cipher_PubKey.getCPtr(pubkey)); + return ret; + } + + public int isEqual(cipher_PubKeys a) { + int ret = skycoinPINVOKE.cipher_PubKeys_isEqual(swigCPtr, cipher_PubKeys.getCPtr(a)); + return ret; + } + + public void allocate(int n) { + skycoinPINVOKE.cipher_PubKeys_allocate(swigCPtr, n); + } + + public void release() { + skycoinPINVOKE.cipher_PubKeys_release(swigCPtr); + } + + public cipher_PubKey data { + set { + skycoinPINVOKE.cipher_PubKeys_data_set(swigCPtr, cipher_PubKey.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.cipher_PubKeys_data_get(swigCPtr); + cipher_PubKey ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher_PubKey(cPtr, false); + return ret; + } + } + + public int count { + set { + skycoinPINVOKE.cipher_PubKeys_count_set(swigCPtr, value); + } + get { + int ret = skycoinPINVOKE.cipher_PubKeys_count_get(swigCPtr); + return ret; + } + } + + public cipher_PubKeys() : this(skycoinPINVOKE.new_cipher_PubKeys(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/cipher_Ripemd160.cs b/LibskycoinNet/skycoin/cipher_Ripemd160.cs new file mode 100644 index 00000000..39490c60 --- /dev/null +++ b/LibskycoinNet/skycoin/cipher_Ripemd160.cs @@ -0,0 +1,72 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class cipher_Ripemd160 : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal cipher_Ripemd160(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(cipher_Ripemd160 obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~cipher_Ripemd160() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_cipher_Ripemd160(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public int isEqual(cipher_Ripemd160 a) { + int ret = skycoinPINVOKE.cipher_Ripemd160_isEqual(swigCPtr, cipher_Ripemd160.getCPtr(a)); + return ret; + } + + public void assignFrom(SWIGTYPE_p_void data) { + skycoinPINVOKE.cipher_Ripemd160_assignFrom(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); + } + + public void assignTo(SWIGTYPE_p_void data) { + skycoinPINVOKE.cipher_Ripemd160_assignTo(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); + } + + public SWIGTYPE_p_unsigned_char data { + set { + skycoinPINVOKE.cipher_Ripemd160_data_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.cipher_Ripemd160_data_get(swigCPtr); + SWIGTYPE_p_unsigned_char ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); + return ret; + } + } + + public cipher_Ripemd160() : this(skycoinPINVOKE.new_cipher_Ripemd160(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/cipher_SHA256.cs b/LibskycoinNet/skycoin/cipher_SHA256.cs new file mode 100644 index 00000000..0bf1631b --- /dev/null +++ b/LibskycoinNet/skycoin/cipher_SHA256.cs @@ -0,0 +1,72 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class cipher_SHA256 : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal cipher_SHA256(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(cipher_SHA256 obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~cipher_SHA256() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_cipher_SHA256(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public int isEqual(cipher_SHA256 a) { + int ret = skycoinPINVOKE.cipher_SHA256_isEqual(swigCPtr, cipher_SHA256.getCPtr(a)); + return ret; + } + + public void assignFrom(SWIGTYPE_p_void data) { + skycoinPINVOKE.cipher_SHA256_assignFrom(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); + } + + public void assignTo(SWIGTYPE_p_void data) { + skycoinPINVOKE.cipher_SHA256_assignTo(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); + } + + public SWIGTYPE_p_unsigned_char data { + set { + skycoinPINVOKE.cipher_SHA256_data_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.cipher_SHA256_data_get(swigCPtr); + SWIGTYPE_p_unsigned_char ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); + return ret; + } + } + + public cipher_SHA256() : this(skycoinPINVOKE.new_cipher_SHA256(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/cipher_SHA256s.cs b/LibskycoinNet/skycoin/cipher_SHA256s.cs new file mode 100644 index 00000000..a390b06c --- /dev/null +++ b/LibskycoinNet/skycoin/cipher_SHA256s.cs @@ -0,0 +1,93 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class cipher_SHA256s : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal cipher_SHA256s(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(cipher_SHA256s obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~cipher_SHA256s() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_cipher_SHA256s(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public cipher_SHA256 getAt(int i) { + global::System.IntPtr cPtr = skycoinPINVOKE.cipher_SHA256s_getAt(swigCPtr, i); + cipher_SHA256 ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher_SHA256(cPtr, false); + return ret; + } + + public int setAt(int i, cipher_SHA256 hash) { + int ret = skycoinPINVOKE.cipher_SHA256s_setAt(swigCPtr, i, cipher_SHA256.getCPtr(hash)); + return ret; + } + + public int isEqual(cipher_SHA256s a) { + int ret = skycoinPINVOKE.cipher_SHA256s_isEqual(swigCPtr, cipher_SHA256s.getCPtr(a)); + return ret; + } + + public void allocate(int n) { + skycoinPINVOKE.cipher_SHA256s_allocate(swigCPtr, n); + } + + public void release() { + skycoinPINVOKE.cipher_SHA256s_release(swigCPtr); + } + + public cipher_SHA256 data { + set { + skycoinPINVOKE.cipher_SHA256s_data_set(swigCPtr, cipher_SHA256.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.cipher_SHA256s_data_get(swigCPtr); + cipher_SHA256 ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher_SHA256(cPtr, false); + return ret; + } + } + + public int count { + set { + skycoinPINVOKE.cipher_SHA256s_count_set(swigCPtr, value); + } + get { + int ret = skycoinPINVOKE.cipher_SHA256s_count_get(swigCPtr); + return ret; + } + } + + public cipher_SHA256s() : this(skycoinPINVOKE.new_cipher_SHA256s(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/cipher_SecKey.cs b/LibskycoinNet/skycoin/cipher_SecKey.cs new file mode 100644 index 00000000..974a4fca --- /dev/null +++ b/LibskycoinNet/skycoin/cipher_SecKey.cs @@ -0,0 +1,72 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class cipher_SecKey : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal cipher_SecKey(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(cipher_SecKey obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~cipher_SecKey() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_cipher_SecKey(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public int isEqual(cipher_SecKey a) { + int ret = skycoinPINVOKE.cipher_SecKey_isEqual(swigCPtr, cipher_SecKey.getCPtr(a)); + return ret; + } + + public void assignFrom(SWIGTYPE_p_void data) { + skycoinPINVOKE.cipher_SecKey_assignFrom(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); + } + + public void assignTo(SWIGTYPE_p_void data) { + skycoinPINVOKE.cipher_SecKey_assignTo(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); + } + + public SWIGTYPE_p_unsigned_char data { + set { + skycoinPINVOKE.cipher_SecKey_data_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.cipher_SecKey_data_get(swigCPtr); + SWIGTYPE_p_unsigned_char ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); + return ret; + } + } + + public cipher_SecKey() : this(skycoinPINVOKE.new_cipher_SecKey(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/cipher_SecKeys.cs b/LibskycoinNet/skycoin/cipher_SecKeys.cs new file mode 100644 index 00000000..5740661b --- /dev/null +++ b/LibskycoinNet/skycoin/cipher_SecKeys.cs @@ -0,0 +1,93 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class cipher_SecKeys : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal cipher_SecKeys(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(cipher_SecKeys obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~cipher_SecKeys() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_cipher_SecKeys(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public cipher_SecKey getAt(int i) { + global::System.IntPtr cPtr = skycoinPINVOKE.cipher_SecKeys_getAt(swigCPtr, i); + cipher_SecKey ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher_SecKey(cPtr, false); + return ret; + } + + public int setAt(int i, cipher_SecKey seckey) { + int ret = skycoinPINVOKE.cipher_SecKeys_setAt(swigCPtr, i, cipher_SecKey.getCPtr(seckey)); + return ret; + } + + public int isEqual(cipher_SecKeys a) { + int ret = skycoinPINVOKE.cipher_SecKeys_isEqual(swigCPtr, cipher_SecKeys.getCPtr(a)); + return ret; + } + + public void allocate(int n) { + skycoinPINVOKE.cipher_SecKeys_allocate(swigCPtr, n); + } + + public void release() { + skycoinPINVOKE.cipher_SecKeys_release(swigCPtr); + } + + public cipher_SecKey data { + set { + skycoinPINVOKE.cipher_SecKeys_data_set(swigCPtr, cipher_SecKey.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.cipher_SecKeys_data_get(swigCPtr); + cipher_SecKey ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher_SecKey(cPtr, false); + return ret; + } + } + + public int count { + set { + skycoinPINVOKE.cipher_SecKeys_count_set(swigCPtr, value); + } + get { + int ret = skycoinPINVOKE.cipher_SecKeys_count_get(swigCPtr); + return ret; + } + } + + public cipher_SecKeys() : this(skycoinPINVOKE.new_cipher_SecKeys(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/cipher_Sig.cs b/LibskycoinNet/skycoin/cipher_Sig.cs new file mode 100644 index 00000000..9233ff0c --- /dev/null +++ b/LibskycoinNet/skycoin/cipher_Sig.cs @@ -0,0 +1,72 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class cipher_Sig : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal cipher_Sig(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(cipher_Sig obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~cipher_Sig() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_cipher_Sig(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public int isEqual(cipher_Sig a) { + int ret = skycoinPINVOKE.cipher_Sig_isEqual(swigCPtr, cipher_Sig.getCPtr(a)); + return ret; + } + + public void assignFrom(SWIGTYPE_p_void data) { + skycoinPINVOKE.cipher_Sig_assignFrom(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); + } + + public void assignTo(SWIGTYPE_p_void data) { + skycoinPINVOKE.cipher_Sig_assignTo(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); + } + + public SWIGTYPE_p_unsigned_char data { + set { + skycoinPINVOKE.cipher_Sig_data_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.cipher_Sig_data_get(swigCPtr); + SWIGTYPE_p_unsigned_char ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); + return ret; + } + } + + public cipher_Sig() : this(skycoinPINVOKE.new_cipher_Sig(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/cipher__Address.cs b/LibskycoinNet/skycoin/cipher__Address.cs new file mode 100644 index 00000000..12bc8028 --- /dev/null +++ b/LibskycoinNet/skycoin/cipher__Address.cs @@ -0,0 +1,76 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class cipher__Address : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal cipher__Address(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(cipher__Address obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~cipher__Address() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_cipher__Address(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public int isEqual(cipher__Address a) { + int ret = skycoinPINVOKE.cipher__Address_isEqual(swigCPtr, cipher__Address.getCPtr(a)); + return ret; + } + + public SWIGTYPE_p_GoUint8_ Version { + set { + skycoinPINVOKE.cipher__Address_Version_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoUint8_ ret = new SWIGTYPE_p_GoUint8_(skycoinPINVOKE.cipher__Address_Version_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoUint8_ Key { + set { + skycoinPINVOKE.cipher__Address_Key_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.cipher__Address_Key_get(swigCPtr); + SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); + return ret; + } + } + + public cipher__Address() : this(skycoinPINVOKE.new_cipher__Address(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/cli__SendAmount.cs b/LibskycoinNet/skycoin/cli__SendAmount.cs new file mode 100644 index 00000000..f74e4d54 --- /dev/null +++ b/LibskycoinNet/skycoin/cli__SendAmount.cs @@ -0,0 +1,72 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class cli__SendAmount : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal cli__SendAmount(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(cli__SendAmount obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~cli__SendAmount() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_cli__SendAmount(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_GoString_ Addr { + set { + skycoinPINVOKE.cli__SendAmount_Addr_set(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.cli__SendAmount_Addr_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoInt64_ Coins { + set { + skycoinPINVOKE.cli__SendAmount_Coins_set(swigCPtr, SWIGTYPE_p_GoInt64_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoInt64_ ret = new SWIGTYPE_p_GoInt64_(skycoinPINVOKE.cli__SendAmount_Coins_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public cli__SendAmount() : this(skycoinPINVOKE.new_cli__SendAmount(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/coin_UxOutArray.cs b/LibskycoinNet/skycoin/coin_UxOutArray.cs new file mode 100644 index 00000000..a204cbae --- /dev/null +++ b/LibskycoinNet/skycoin/coin_UxOutArray.cs @@ -0,0 +1,93 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class coin_UxOutArray : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal coin_UxOutArray(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(coin_UxOutArray obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~coin_UxOutArray() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_coin_UxOutArray(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public coin__UxOut getAt(int i) { + global::System.IntPtr cPtr = skycoinPINVOKE.coin_UxOutArray_getAt(swigCPtr, i); + coin__UxOut ret = (cPtr == global::System.IntPtr.Zero) ? null : new coin__UxOut(cPtr, false); + return ret; + } + + public int setAt(int i, coin__UxOut uxout) { + int ret = skycoinPINVOKE.coin_UxOutArray_setAt(swigCPtr, i, coin__UxOut.getCPtr(uxout)); + return ret; + } + + public int isEqual(coin_UxOutArray a) { + int ret = skycoinPINVOKE.coin_UxOutArray_isEqual(swigCPtr, coin_UxOutArray.getCPtr(a)); + return ret; + } + + public void allocate(int n) { + skycoinPINVOKE.coin_UxOutArray_allocate(swigCPtr, n); + } + + public void release() { + skycoinPINVOKE.coin_UxOutArray_release(swigCPtr); + } + + public coin__UxOut data { + set { + skycoinPINVOKE.coin_UxOutArray_data_set(swigCPtr, coin__UxOut.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.coin_UxOutArray_data_get(swigCPtr); + coin__UxOut ret = (cPtr == global::System.IntPtr.Zero) ? null : new coin__UxOut(cPtr, false); + return ret; + } + } + + public int count { + set { + skycoinPINVOKE.coin_UxOutArray_count_set(swigCPtr, value); + } + get { + int ret = skycoinPINVOKE.coin_UxOutArray_count_get(swigCPtr); + return ret; + } + } + + public coin_UxOutArray() : this(skycoinPINVOKE.new_coin_UxOutArray(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/coin__Block.cs b/LibskycoinNet/skycoin/coin__Block.cs new file mode 100644 index 00000000..2f434119 --- /dev/null +++ b/LibskycoinNet/skycoin/coin__Block.cs @@ -0,0 +1,70 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class coin__Block : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal coin__Block(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(coin__Block obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~coin__Block() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_coin__Block(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public coin__BlockHeader Head { + set { + skycoinPINVOKE.coin__Block_Head_set(swigCPtr, coin__BlockHeader.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.coin__Block_Head_get(swigCPtr); + coin__BlockHeader ret = (cPtr == global::System.IntPtr.Zero) ? null : new coin__BlockHeader(cPtr, false); + return ret; + } + } + + public coin__BlockBody Body { + set { + skycoinPINVOKE.coin__Block_Body_set(swigCPtr, coin__BlockBody.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.coin__Block_Body_get(swigCPtr); + coin__BlockBody ret = (cPtr == global::System.IntPtr.Zero) ? null : new coin__BlockBody(cPtr, false); + return ret; + } + } + + public coin__Block() : this(skycoinPINVOKE.new_coin__Block(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/coin__BlockBody.cs b/LibskycoinNet/skycoin/coin__BlockBody.cs new file mode 100644 index 00000000..24aa32eb --- /dev/null +++ b/LibskycoinNet/skycoin/coin__BlockBody.cs @@ -0,0 +1,65 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class coin__BlockBody : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal coin__BlockBody(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(coin__BlockBody obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~coin__BlockBody() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_coin__BlockBody(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public int isEqual(coin__BlockBody b) { + int ret = skycoinPINVOKE.coin__BlockBody_isEqual(swigCPtr, coin__BlockBody.getCPtr(b)); + return ret; + } + + public SWIGTYPE_p_GoSlice_ Transactions { + set { + skycoinPINVOKE.coin__BlockBody_Transactions_set(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.coin__BlockBody_Transactions_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public coin__BlockBody() : this(skycoinPINVOKE.new_coin__BlockBody(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/coin__BlockHeader.cs b/LibskycoinNet/skycoin/coin__BlockHeader.cs new file mode 100644 index 00000000..1c4703a2 --- /dev/null +++ b/LibskycoinNet/skycoin/coin__BlockHeader.cs @@ -0,0 +1,134 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class coin__BlockHeader : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal coin__BlockHeader(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(coin__BlockHeader obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~coin__BlockHeader() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_coin__BlockHeader(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public int isEqual(coin__BlockHeader bh) { + int ret = skycoinPINVOKE.coin__BlockHeader_isEqual(swigCPtr, coin__BlockHeader.getCPtr(bh)); + return ret; + } + + public SWIGTYPE_p_GoUint32_ Version { + set { + skycoinPINVOKE.coin__BlockHeader_Version_set(swigCPtr, SWIGTYPE_p_GoUint32_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoUint32_ ret = new SWIGTYPE_p_GoUint32_(skycoinPINVOKE.coin__BlockHeader_Version_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoUint64_ Time { + set { + skycoinPINVOKE.coin__BlockHeader_Time_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.coin__BlockHeader_Time_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoUint64_ BkSeq { + set { + skycoinPINVOKE.coin__BlockHeader_BkSeq_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.coin__BlockHeader_BkSeq_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoUint64_ Fee { + set { + skycoinPINVOKE.coin__BlockHeader_Fee_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.coin__BlockHeader_Fee_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoUint8_ PrevHash { + set { + skycoinPINVOKE.coin__BlockHeader_PrevHash_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.coin__BlockHeader_PrevHash_get(swigCPtr); + SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_GoUint8_ BodyHash { + set { + skycoinPINVOKE.coin__BlockHeader_BodyHash_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.coin__BlockHeader_BodyHash_get(swigCPtr); + SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_GoUint8_ UxHash { + set { + skycoinPINVOKE.coin__BlockHeader_UxHash_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.coin__BlockHeader_UxHash_get(swigCPtr); + SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); + return ret; + } + } + + public coin__BlockHeader() : this(skycoinPINVOKE.new_coin__BlockHeader(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/coin__SignedBlock.cs b/LibskycoinNet/skycoin/coin__SignedBlock.cs new file mode 100644 index 00000000..20b63f9f --- /dev/null +++ b/LibskycoinNet/skycoin/coin__SignedBlock.cs @@ -0,0 +1,70 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class coin__SignedBlock : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal coin__SignedBlock(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(coin__SignedBlock obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~coin__SignedBlock() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_coin__SignedBlock(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public coin__Block _unnamed { + set { + skycoinPINVOKE.coin__SignedBlock__unnamed_set(swigCPtr, coin__Block.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.coin__SignedBlock__unnamed_get(swigCPtr); + coin__Block ret = (cPtr == global::System.IntPtr.Zero) ? null : new coin__Block(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_GoUint8_ Sig { + set { + skycoinPINVOKE.coin__SignedBlock_Sig_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.coin__SignedBlock_Sig_get(swigCPtr); + SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); + return ret; + } + } + + public coin__SignedBlock() : this(skycoinPINVOKE.new_coin__SignedBlock(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/coin__SortableTransactions.cs b/LibskycoinNet/skycoin/coin__SortableTransactions.cs new file mode 100644 index 00000000..534b34a4 --- /dev/null +++ b/LibskycoinNet/skycoin/coin__SortableTransactions.cs @@ -0,0 +1,84 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class coin__SortableTransactions : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal coin__SortableTransactions(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(coin__SortableTransactions obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~coin__SortableTransactions() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_coin__SortableTransactions(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_GoSlice_ Txns { + set { + skycoinPINVOKE.coin__SortableTransactions_Txns_set(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.coin__SortableTransactions_Txns_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoSlice_ Fees { + set { + skycoinPINVOKE.coin__SortableTransactions_Fees_set(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.coin__SortableTransactions_Fees_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoSlice_ Hashes { + set { + skycoinPINVOKE.coin__SortableTransactions_Hashes_set(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.coin__SortableTransactions_Hashes_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public coin__SortableTransactions() : this(skycoinPINVOKE.new_coin__SortableTransactions(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/coin__Transaction.cs b/LibskycoinNet/skycoin/coin__Transaction.cs new file mode 100644 index 00000000..68a75704 --- /dev/null +++ b/LibskycoinNet/skycoin/coin__Transaction.cs @@ -0,0 +1,124 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class coin__Transaction : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal coin__Transaction(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(coin__Transaction obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~coin__Transaction() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_coin__Transaction(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public int isEqual(coin__Transaction t) { + int ret = skycoinPINVOKE.coin__Transaction_isEqual(swigCPtr, coin__Transaction.getCPtr(t)); + return ret; + } + + public SWIGTYPE_p_GoInt32_ Length { + set { + skycoinPINVOKE.coin__Transaction_Length_set(swigCPtr, SWIGTYPE_p_GoInt32_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoInt32_ ret = new SWIGTYPE_p_GoInt32_(skycoinPINVOKE.coin__Transaction_Length_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoInt8_ Type { + set { + skycoinPINVOKE.coin__Transaction_Type_set(swigCPtr, SWIGTYPE_p_GoInt8_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoInt8_ ret = new SWIGTYPE_p_GoInt8_(skycoinPINVOKE.coin__Transaction_Type_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoUint8_ InnerHash { + set { + skycoinPINVOKE.coin__Transaction_InnerHash_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.coin__Transaction_InnerHash_get(swigCPtr); + SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_GoSlice_ Sigs { + set { + skycoinPINVOKE.coin__Transaction_Sigs_set(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.coin__Transaction_Sigs_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoSlice_ In { + set { + skycoinPINVOKE.coin__Transaction_In_set(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.coin__Transaction_In_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoSlice_ Out { + set { + skycoinPINVOKE.coin__Transaction_Out_set(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.coin__Transaction_Out_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public coin__Transaction() : this(skycoinPINVOKE.new_coin__Transaction(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/coin__TransactionOutput.cs b/LibskycoinNet/skycoin/coin__TransactionOutput.cs new file mode 100644 index 00000000..656d769b --- /dev/null +++ b/LibskycoinNet/skycoin/coin__TransactionOutput.cs @@ -0,0 +1,88 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class coin__TransactionOutput : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal coin__TransactionOutput(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(coin__TransactionOutput obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~coin__TransactionOutput() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_coin__TransactionOutput(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public int isEqual(coin__TransactionOutput t) { + int ret = skycoinPINVOKE.coin__TransactionOutput_isEqual(swigCPtr, coin__TransactionOutput.getCPtr(t)); + return ret; + } + + public cipher__Address Address { + set { + skycoinPINVOKE.coin__TransactionOutput_Address_set(swigCPtr, cipher__Address.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.coin__TransactionOutput_Address_get(swigCPtr); + cipher__Address ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher__Address(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_GoUint64_ Coins { + set { + skycoinPINVOKE.coin__TransactionOutput_Coins_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.coin__TransactionOutput_Coins_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoUint64_ Hours { + set { + skycoinPINVOKE.coin__TransactionOutput_Hours_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.coin__TransactionOutput_Hours_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public coin__TransactionOutput() : this(skycoinPINVOKE.new_coin__TransactionOutput(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/coin__UxBody.cs b/LibskycoinNet/skycoin/coin__UxBody.cs new file mode 100644 index 00000000..2dffc686 --- /dev/null +++ b/LibskycoinNet/skycoin/coin__UxBody.cs @@ -0,0 +1,94 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class coin__UxBody : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal coin__UxBody(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(coin__UxBody obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~coin__UxBody() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_coin__UxBody(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_GoUint8_ SrcTransaction { + set { + skycoinPINVOKE.coin__UxBody_SrcTransaction_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.coin__UxBody_SrcTransaction_get(swigCPtr); + SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); + return ret; + } + } + + public cipher__Address Address { + set { + skycoinPINVOKE.coin__UxBody_Address_set(swigCPtr, cipher__Address.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.coin__UxBody_Address_get(swigCPtr); + cipher__Address ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher__Address(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_GoUint64_ Coins { + set { + skycoinPINVOKE.coin__UxBody_Coins_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.coin__UxBody_Coins_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoUint64_ Hours { + set { + skycoinPINVOKE.coin__UxBody_Hours_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.coin__UxBody_Hours_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public coin__UxBody() : this(skycoinPINVOKE.new_coin__UxBody(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/coin__UxHead.cs b/LibskycoinNet/skycoin/coin__UxHead.cs new file mode 100644 index 00000000..5a7f245e --- /dev/null +++ b/LibskycoinNet/skycoin/coin__UxHead.cs @@ -0,0 +1,72 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class coin__UxHead : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal coin__UxHead(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(coin__UxHead obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~coin__UxHead() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_coin__UxHead(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_GoUint64_ Time { + set { + skycoinPINVOKE.coin__UxHead_Time_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.coin__UxHead_Time_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoUint64_ BkSeq { + set { + skycoinPINVOKE.coin__UxHead_BkSeq_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.coin__UxHead_BkSeq_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public coin__UxHead() : this(skycoinPINVOKE.new_coin__UxHead(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/coin__UxOut.cs b/LibskycoinNet/skycoin/coin__UxOut.cs new file mode 100644 index 00000000..ac1bfc43 --- /dev/null +++ b/LibskycoinNet/skycoin/coin__UxOut.cs @@ -0,0 +1,75 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class coin__UxOut : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal coin__UxOut(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(coin__UxOut obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~coin__UxOut() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_coin__UxOut(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public int isEqual(coin__UxOut u) { + int ret = skycoinPINVOKE.coin__UxOut_isEqual(swigCPtr, coin__UxOut.getCPtr(u)); + return ret; + } + + public coin__UxHead Head { + set { + skycoinPINVOKE.coin__UxOut_Head_set(swigCPtr, coin__UxHead.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.coin__UxOut_Head_get(swigCPtr); + coin__UxHead ret = (cPtr == global::System.IntPtr.Zero) ? null : new coin__UxHead(cPtr, false); + return ret; + } + } + + public coin__UxBody Body { + set { + skycoinPINVOKE.coin__UxOut_Body_set(swigCPtr, coin__UxBody.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.coin__UxOut_Body_get(swigCPtr); + coin__UxBody ret = (cPtr == global::System.IntPtr.Zero) ? null : new coin__UxBody(cPtr, false); + return ret; + } + } + + public coin__UxOut() : this(skycoinPINVOKE.new_coin__UxOut(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/encoder__StructField.cs b/LibskycoinNet/skycoin/encoder__StructField.cs new file mode 100644 index 00000000..7283d5be --- /dev/null +++ b/LibskycoinNet/skycoin/encoder__StructField.cs @@ -0,0 +1,96 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class encoder__StructField : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal encoder__StructField(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(encoder__StructField obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~encoder__StructField() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_encoder__StructField(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_GoString_ Name { + set { + skycoinPINVOKE.encoder__StructField_Name_set(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.encoder__StructField_Name_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoUint32_ Kind { + set { + skycoinPINVOKE.encoder__StructField_Kind_set(swigCPtr, SWIGTYPE_p_GoUint32_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoUint32_ ret = new SWIGTYPE_p_GoUint32_(skycoinPINVOKE.encoder__StructField_Kind_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoString_ Type { + set { + skycoinPINVOKE.encoder__StructField_Type_set(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.encoder__StructField_Type_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoString_ Tag { + set { + skycoinPINVOKE.encoder__StructField_Tag_set(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.encoder__StructField_Tag_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public encoder__StructField() : this(skycoinPINVOKE.new_encoder__StructField(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/encrypt__ScryptChacha20poly1305.cs b/LibskycoinNet/skycoin/encrypt__ScryptChacha20poly1305.cs new file mode 100644 index 00000000..a7960fe1 --- /dev/null +++ b/LibskycoinNet/skycoin/encrypt__ScryptChacha20poly1305.cs @@ -0,0 +1,96 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class encrypt__ScryptChacha20poly1305 : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal encrypt__ScryptChacha20poly1305(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(encrypt__ScryptChacha20poly1305 obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~encrypt__ScryptChacha20poly1305() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_encrypt__ScryptChacha20poly1305(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_GoInt_ N { + set { + skycoinPINVOKE.encrypt__ScryptChacha20poly1305_N_set(swigCPtr, SWIGTYPE_p_GoInt_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoInt_ ret = new SWIGTYPE_p_GoInt_(skycoinPINVOKE.encrypt__ScryptChacha20poly1305_N_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoInt_ R { + set { + skycoinPINVOKE.encrypt__ScryptChacha20poly1305_R_set(swigCPtr, SWIGTYPE_p_GoInt_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoInt_ ret = new SWIGTYPE_p_GoInt_(skycoinPINVOKE.encrypt__ScryptChacha20poly1305_R_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoInt_ P { + set { + skycoinPINVOKE.encrypt__ScryptChacha20poly1305_P_set(swigCPtr, SWIGTYPE_p_GoInt_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoInt_ ret = new SWIGTYPE_p_GoInt_(skycoinPINVOKE.encrypt__ScryptChacha20poly1305_P_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoInt_ KeyLen { + set { + skycoinPINVOKE.encrypt__ScryptChacha20poly1305_KeyLen_set(swigCPtr, SWIGTYPE_p_GoInt_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoInt_ ret = new SWIGTYPE_p_GoInt_(skycoinPINVOKE.encrypt__ScryptChacha20poly1305_KeyLen_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public encrypt__ScryptChacha20poly1305() : this(skycoinPINVOKE.new_encrypt__ScryptChacha20poly1305(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/httphelper__Address.cs b/LibskycoinNet/skycoin/httphelper__Address.cs new file mode 100644 index 00000000..882e75ad --- /dev/null +++ b/LibskycoinNet/skycoin/httphelper__Address.cs @@ -0,0 +1,59 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class httphelper__Address : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal httphelper__Address(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(httphelper__Address obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~httphelper__Address() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_httphelper__Address(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public cipher__Address _unnamed { + set { + skycoinPINVOKE.httphelper__Address__unnamed_set(swigCPtr, cipher__Address.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.httphelper__Address__unnamed_get(swigCPtr); + cipher__Address ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher__Address(cPtr, false); + return ret; + } + } + + public httphelper__Address() : this(skycoinPINVOKE.new_httphelper__Address(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/secp256k1go__Field.cs b/LibskycoinNet/skycoin/secp256k1go__Field.cs new file mode 100644 index 00000000..ca0d1113 --- /dev/null +++ b/LibskycoinNet/skycoin/secp256k1go__Field.cs @@ -0,0 +1,59 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class secp256k1go__Field : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal secp256k1go__Field(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(secp256k1go__Field obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~secp256k1go__Field() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_secp256k1go__Field(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_GoUint32_ n { + set { + skycoinPINVOKE.secp256k1go__Field_n_set(swigCPtr, SWIGTYPE_p_GoUint32_.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.secp256k1go__Field_n_get(swigCPtr); + SWIGTYPE_p_GoUint32_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint32_(cPtr, false); + return ret; + } + } + + public secp256k1go__Field() : this(skycoinPINVOKE.new_secp256k1go__Field(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/secp256k1go__XY.cs b/LibskycoinNet/skycoin/secp256k1go__XY.cs new file mode 100644 index 00000000..5fa89e8f --- /dev/null +++ b/LibskycoinNet/skycoin/secp256k1go__XY.cs @@ -0,0 +1,82 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class secp256k1go__XY : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal secp256k1go__XY(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(secp256k1go__XY obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~secp256k1go__XY() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_secp256k1go__XY(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public secp256k1go__Field X { + set { + skycoinPINVOKE.secp256k1go__XY_X_set(swigCPtr, secp256k1go__Field.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.secp256k1go__XY_X_get(swigCPtr); + secp256k1go__Field ret = (cPtr == global::System.IntPtr.Zero) ? null : new secp256k1go__Field(cPtr, false); + return ret; + } + } + + public secp256k1go__Field Y { + set { + skycoinPINVOKE.secp256k1go__XY_Y_set(swigCPtr, secp256k1go__Field.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.secp256k1go__XY_Y_get(swigCPtr); + secp256k1go__Field ret = (cPtr == global::System.IntPtr.Zero) ? null : new secp256k1go__Field(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_BOOL Infinity { + set { + skycoinPINVOKE.secp256k1go__XY_Infinity_set(swigCPtr, SWIGTYPE_p_BOOL.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_BOOL ret = new SWIGTYPE_p_BOOL(skycoinPINVOKE.secp256k1go__XY_Infinity_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public secp256k1go__XY() : this(skycoinPINVOKE.new_secp256k1go__XY(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/secp256k1go__XYZ.cs b/LibskycoinNet/skycoin/secp256k1go__XYZ.cs new file mode 100644 index 00000000..a8d9d665 --- /dev/null +++ b/LibskycoinNet/skycoin/secp256k1go__XYZ.cs @@ -0,0 +1,93 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class secp256k1go__XYZ : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal secp256k1go__XYZ(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(secp256k1go__XYZ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~secp256k1go__XYZ() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_secp256k1go__XYZ(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public secp256k1go__Field X { + set { + skycoinPINVOKE.secp256k1go__XYZ_X_set(swigCPtr, secp256k1go__Field.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.secp256k1go__XYZ_X_get(swigCPtr); + secp256k1go__Field ret = (cPtr == global::System.IntPtr.Zero) ? null : new secp256k1go__Field(cPtr, false); + return ret; + } + } + + public secp256k1go__Field Y { + set { + skycoinPINVOKE.secp256k1go__XYZ_Y_set(swigCPtr, secp256k1go__Field.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.secp256k1go__XYZ_Y_get(swigCPtr); + secp256k1go__Field ret = (cPtr == global::System.IntPtr.Zero) ? null : new secp256k1go__Field(cPtr, false); + return ret; + } + } + + public secp256k1go__Field Z { + set { + skycoinPINVOKE.secp256k1go__XYZ_Z_set(swigCPtr, secp256k1go__Field.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.secp256k1go__XYZ_Z_get(swigCPtr); + secp256k1go__Field ret = (cPtr == global::System.IntPtr.Zero) ? null : new secp256k1go__Field(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_BOOL Infinity { + set { + skycoinPINVOKE.secp256k1go__XYZ_Infinity_set(swigCPtr, SWIGTYPE_p_BOOL.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_BOOL ret = new SWIGTYPE_p_BOOL(skycoinPINVOKE.secp256k1go__XYZ_Infinity_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public secp256k1go__XYZ() : this(skycoinPINVOKE.new_secp256k1go__XYZ(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs new file mode 100644 index 00000000..a22fa53a --- /dev/null +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -0,0 +1,2835 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class skycoin { + public static void destroy_cipher_SecKeys(cipher_SecKeys p) { + skycoinPINVOKE.destroy_cipher_SecKeys(cipher_SecKeys.getCPtr(p)); + } + + public static int equalSlices(GoSlice slice1, GoSlice slice2, int elem_size) { + int ret = skycoinPINVOKE.equalSlices(GoSlice.getCPtr(slice1), GoSlice.getCPtr(slice2), elem_size); + return ret; + } + + public static int equalTransactions(coin__Transaction t1, coin__Transaction t2) { + int ret = skycoinPINVOKE.equalTransactions(coin__Transaction.getCPtr(t1), coin__Transaction.getCPtr(t2)); + return ret; + } + + public static int equalTransactionsArrays(SWIGTYPE_p_GoSlice_ pTxs1, SWIGTYPE_p_GoSlice_ pTxs2) { + int ret = skycoinPINVOKE.equalTransactionsArrays(SWIGTYPE_p_GoSlice_.getCPtr(pTxs1), SWIGTYPE_p_GoSlice_.getCPtr(pTxs2)); + return ret; + } + + public static int equalBlockHeaders(coin__BlockHeader bh1, coin__BlockHeader bh2) { + int ret = skycoinPINVOKE.equalBlockHeaders(coin__BlockHeader.getCPtr(bh1), coin__BlockHeader.getCPtr(bh2)); + return ret; + } + + public static uint SKY_base58_String2Hex(_GoString_ p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_base58_String2Hex(_GoString_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_base58_Base58_ToInt(_GoString_ p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_base58_Base58_ToInt(_GoString_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_base58_Base58_ToHex(_GoString_ p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_base58_Base58_ToHex(_GoString_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_base58_Base58_Base582Int(_GoString_ p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_base58_Base58_Base582Int(_GoString_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_base58_Base582Hex(_GoString_ p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_base58_Base582Hex(_GoString_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_base58_Base58_BitHex(_GoString_ p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_base58_Base58_BitHex(_GoString_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_base58_Int2Base58(long p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_base58_Int2Base58(p0, SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_base58_Hex2Base58(GoSlice p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_base58_Hex2Base58(GoSlice.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_base58_Hex2Base58String(GoSlice p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_base58_Hex2Base58String(GoSlice.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_base58_Hex2Base58Str(GoSlice p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_base58_Hex2Base58Str(GoSlice.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_NewReadableEntry(wallet__Entry p0, SWIGTYPE_p_ReadableEntry__Handle p1) { + uint ret = skycoinPINVOKE.SKY_wallet_NewReadableEntry(wallet__Entry.getCPtr(p0), SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p1)); + return ret; + } + + public static uint SKY_wallet_LoadReadableEntry(_GoString_ p0, SWIGTYPE_p_ReadableEntry__Handle p1) { + uint ret = skycoinPINVOKE.SKY_wallet_LoadReadableEntry(_GoString_.getCPtr(p0), SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_NewReadableEntryFromPubkey(_GoString_ p0, SWIGTYPE_p_ReadableEntry__Handle p1) { + uint ret = skycoinPINVOKE.SKY_wallet_NewReadableEntryFromPubkey(_GoString_.getCPtr(p0), SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_ReadableEntry_Save(SWIGTYPE_p_ReadableEntry__Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_ReadableEntry_Save(SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_LoadReadableWallet(_GoString_ p0, SWIGTYPE_p_ReadableWallet__Handle p1) { + uint ret = skycoinPINVOKE.SKY_wallet_LoadReadableWallet(_GoString_.getCPtr(p0), SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_ReadableWallet_Save(SWIGTYPE_p_ReadableWallet__Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_ReadableWallet_Save(SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_ReadableWallet_Load(SWIGTYPE_p_ReadableWallet__Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_ReadableWallet_Load(SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_ReadableWallet_Erase(SWIGTYPE_p_ReadableWallet__Handle p0) { + uint ret = skycoinPINVOKE.SKY_wallet_ReadableWallet_Erase(SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p0)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, SWIGTYPE_p_OutputsResult_Handle p2) { + uint ret = skycoinPINVOKE.SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_OutputsResult_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cli_GetWalletOutputs(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_Wallet__Handle p1, SWIGTYPE_p_OutputsResult_Handle p2) { + uint ret = skycoinPINVOKE.SKY_cli_GetWalletOutputs(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_Wallet__Handle.getCPtr(p1), SWIGTYPE_p_OutputsResult_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_Field_String(secp256k1go__Field p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_String(secp256k1go__Field.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_Field_Print(secp256k1go__Field p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Print(secp256k1go__Field.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_Field_SetB32(secp256k1go__Field p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_SetB32(secp256k1go__Field.getCPtr(p0), GoSlice.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_Field_SetBytes(secp256k1go__Field p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_SetBytes(secp256k1go__Field.getCPtr(p0), GoSlice.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_Field_SetHex(secp256k1go__Field p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_SetHex(secp256k1go__Field.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_Field_IsOdd(secp256k1go__Field p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_IsOdd(secp256k1go__Field.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_Field_IsZero(secp256k1go__Field p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_IsZero(secp256k1go__Field.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_Field_SetInt(secp256k1go__Field p0, uint p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_SetInt(secp256k1go__Field.getCPtr(p0), p1); + return ret; + } + + public static uint SKY_secp256k1go_Field_Normalize(secp256k1go__Field p0) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Normalize(secp256k1go__Field.getCPtr(p0)); + return ret; + } + + public static uint SKY_secp256k1go_Field_GetB32(secp256k1go__Field p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_GetB32(secp256k1go__Field.getCPtr(p0), GoSlice.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_Field_Equals(secp256k1go__Field p0, secp256k1go__Field p1, SWIGTYPE_p_unsigned_char p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Equals(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); + return ret; + } + + public static uint SKY_secp256k1go_Field_SetAdd(secp256k1go__Field p0, secp256k1go__Field p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_SetAdd(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_Field_MulInt(secp256k1go__Field p0, uint p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_MulInt(secp256k1go__Field.getCPtr(p0), p1); + return ret; + } + + public static uint SKY_secp256k1go_Field_Negate(secp256k1go__Field p0, secp256k1go__Field p1, uint p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Negate(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1), p2); + return ret; + } + + public static uint SKY_secp256k1go_Field_Inv(secp256k1go__Field p0, secp256k1go__Field p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Inv(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_Field_Sqrt(secp256k1go__Field p0, secp256k1go__Field p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Sqrt(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_Field_InvVar(secp256k1go__Field p0, secp256k1go__Field p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_InvVar(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_Field_Mul(secp256k1go__Field p0, secp256k1go__Field p1, secp256k1go__Field p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Mul(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1), secp256k1go__Field.getCPtr(p2)); + return ret; + } + + public static uint SKY_secp256k1go_Field_Sqr(secp256k1go__Field p0, secp256k1go__Field p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Sqr(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1)); + return ret; + } + + public static uint SKY_api_NewWalletResponse(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_WalletResponse__Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_NewWalletResponse(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static long SKY_cipher_PubKeySlice_Len(SWIGTYPE_p_GoSlice_ p0) { + long ret = skycoinPINVOKE.SKY_cipher_PubKeySlice_Len(SWIGTYPE_p_GoSlice_.getCPtr(p0)); + return ret; + } + + public static byte SKY_cipher_PubKeySlice_Less(SWIGTYPE_p_GoSlice_ p0, long p1, long p2) { + byte ret = skycoinPINVOKE.SKY_cipher_PubKeySlice_Less(SWIGTYPE_p_GoSlice_.getCPtr(p0), p1, p2); + return ret; + } + + public static uint SKY_cipher_PubKeySlice_Swap(SWIGTYPE_p_GoSlice_ p0, long p1, long p2) { + uint ret = skycoinPINVOKE.SKY_cipher_PubKeySlice_Swap(SWIGTYPE_p_GoSlice_.getCPtr(p0), p1, p2); + return ret; + } + + public static uint SKY_cipher_RandByte(long p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_RandByte(p0, SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_NewPubKey(GoSlice p0, SWIGTYPE_p_a_33__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_NewPubKey(GoSlice.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_MustPubKeyFromHex(_GoString_ p0, SWIGTYPE_p_a_33__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_MustPubKeyFromHex(_GoString_.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_PubKeyFromHex(_GoString_ p0, SWIGTYPE_p_a_33__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_PubKeyFromHex(_GoString_.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_PubKeyFromSecKey(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_a_33__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_PubKeyFromSecKey(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_PubKeyFromSig(SWIGTYPE_p_a_65__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_a_33__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_cipher_PubKeyFromSig(SWIGTYPE_p_a_65__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p2)); + return ret; + } + + public static uint SKY_cipher_PubKey_Verify(SWIGTYPE_p_a_33__GoUint8_ p0) { + uint ret = skycoinPINVOKE.SKY_cipher_PubKey_Verify(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0)); + return ret; + } + + public static uint SKY_cipher_PubKey_Hex(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_PubKey_Hex(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_PubKey_ToAddressHash(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_20__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_PubKey_ToAddressHash(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_20__GoUint8_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_NewSecKey(GoSlice p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_NewSecKey(GoSlice.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_MustSecKeyFromHex(_GoString_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_MustSecKeyFromHex(_GoString_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_SecKeyFromHex(_GoString_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_SecKeyFromHex(_GoString_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_SecKey_Verify(SWIGTYPE_p_a_32__GoUint8_ p0) { + uint ret = skycoinPINVOKE.SKY_cipher_SecKey_Verify(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0)); + return ret; + } + + public static uint SKY_cipher_SecKey_Hex(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_SecKey_Hex(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_ECDH(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_cipher_ECDH(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + return ret; + } + + public static uint SKY_cipher_NewSig(GoSlice p0, SWIGTYPE_p_a_65__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_NewSig(GoSlice.getCPtr(p0), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_MustSigFromHex(_GoString_ p0, SWIGTYPE_p_a_65__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_MustSigFromHex(_GoString_.getCPtr(p0), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_SigFromHex(_GoString_ p0, SWIGTYPE_p_a_65__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_SigFromHex(_GoString_.getCPtr(p0), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_Sig_Hex(SWIGTYPE_p_a_65__GoUint8_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_Sig_Hex(SWIGTYPE_p_a_65__GoUint8_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_SignHash(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_a_65__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_cipher_SignHash(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); + return ret; + } + + public static uint SKY_cipher_ChkSig(cipher__Address p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_a_65__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_cipher_ChkSig(cipher__Address.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); + return ret; + } + + public static uint SKY_cipher_VerifySignedHash(SWIGTYPE_p_a_65__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_VerifySignedHash(SWIGTYPE_p_a_65__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_VerifySignature(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_65__GoUint8_ p1, SWIGTYPE_p_a_32__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_cipher_VerifySignature(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); + return ret; + } + + public static uint SKY_cipher_GenerateKeyPair(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_GenerateKeyPair(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_GenerateDeterministicKeyPair(GoSlice p0, SWIGTYPE_p_a_33__GoUint8_ p1, SWIGTYPE_p_a_32__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_cipher_GenerateDeterministicKeyPair(GoSlice.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_DeterministicKeyPairIterator(GoSlice p0, SWIGTYPE_p_GoSlice_ p1, SWIGTYPE_p_a_33__GoUint8_ p2, SWIGTYPE_p_a_32__GoUint8_ p3) { + uint ret = skycoinPINVOKE.SKY_cipher_DeterministicKeyPairIterator(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p2), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_GenerateDeterministicKeyPairs(GoSlice p0, long p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_cipher_GenerateDeterministicKeyPairs(GoSlice.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_GenerateDeterministicKeyPairsSeed(GoSlice p0, long p1, SWIGTYPE_p_GoSlice_ p2, SWIGTYPE_p_GoSlice_ p3) { + uint ret = skycoinPINVOKE.SKY_cipher_GenerateDeterministicKeyPairsSeed(GoSlice.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_TestSecKey(SWIGTYPE_p_a_32__GoUint8_ p0) { + uint ret = skycoinPINVOKE.SKY_cipher_TestSecKey(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0)); + return ret; + } + + public static uint SKY_cipher_TestSecKeyHash(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_TestSecKeyHash(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_DecompressPoint(GoSlice p0, byte p1, GoSlice p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_DecompressPoint(GoSlice.getCPtr(p0), p1, GoSlice.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_RecoverPublicKey(GoSlice p0, GoSlice p1, long p2, SWIGTYPE_p_GoSlice_ p3, SWIGTYPE_p_long_long p4) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_RecoverPublicKey(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), p2, SWIGTYPE_p_GoSlice_.getCPtr(p3), SWIGTYPE_p_long_long.getCPtr(p4)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_Multiply(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Multiply(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_BaseMultiply(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_BaseMultiply(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_BaseMultiplyAdd(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_BaseMultiplyAdd(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_GeneratePublicKey(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_GeneratePublicKey(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_SeckeyIsValid(GoSlice p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_SeckeyIsValid(GoSlice.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_PubkeyIsValid(GoSlice p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_PubkeyIsValid(GoSlice.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_file_InitDataDir(_GoString_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_file_InitDataDir(_GoString_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_file_UserHome(SWIGTYPE_p_GoString_ p0) { + uint ret = skycoinPINVOKE.SKY_file_UserHome(SWIGTYPE_p_GoString_.getCPtr(p0)); + return ret; + } + + public static uint SKY_file_ResolveResourceDirectory(_GoString_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_file_ResolveResourceDirectory(_GoString_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_file_DetermineResourcePath(_GoString_ p0, _GoString_ p1, _GoString_ p2, SWIGTYPE_p_GoString_ p3) { + uint ret = skycoinPINVOKE.SKY_file_DetermineResourcePath(_GoString_.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), SWIGTYPE_p_GoString_.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1_SumSHA256(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1_SumSHA256(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1_RandByte(long p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1_RandByte(p0, SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_api_NewCreateTransactionResponse(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1, SWIGTYPE_p_CreateTransactionResponse__Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_NewCreateTransactionResponse(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_CreateTransactionResponse__Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_NewCreatedTransaction(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1, SWIGTYPE_p_CreatedTransaction__Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_NewCreatedTransaction(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_CreatedTransaction__Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_CreatedTransaction_ToTransaction(SWIGTYPE_p_CreatedTransaction__Handle p0, SWIGTYPE_p_Transaction__Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_CreatedTransaction_ToTransaction(SWIGTYPE_p_CreatedTransaction__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_NewCreatedTransactionOutput(coin__TransactionOutput p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_CreatedTransactionOutput__Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_NewCreatedTransactionOutput(coin__TransactionOutput.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_CreatedTransactionOutput__Handle.getCPtr(p2)); + return ret; + } + + public static uint SKY_api_NewCreatedTransactionInput(wallet__UxBalance p0, SWIGTYPE_p_CreatedTransactionInput__Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_NewCreatedTransactionInput(wallet__UxBalance.getCPtr(p0), SWIGTYPE_p_CreatedTransactionInput__Handle.getCPtr(p1)); + return ret; + } + + public static uint SKY_browser_Open(_GoString_ p0) { + uint ret = skycoinPINVOKE.SKY_browser_Open(_GoString_.getCPtr(p0)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_DecodeBase58Address(_GoString_ p0, cipher__Address p1) { + uint ret = skycoinPINVOKE.SKY_cipher_DecodeBase58Address(_GoString_.getCPtr(p0), cipher__Address.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_MustDecodeBase58Address(_GoString_ p0, cipher__Address p1) { + uint ret = skycoinPINVOKE.SKY_cipher_MustDecodeBase58Address(_GoString_.getCPtr(p0), cipher__Address.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_BitcoinMustDecodeBase58Address(_GoString_ p0, cipher__Address p1) { + uint ret = skycoinPINVOKE.SKY_cipher_BitcoinMustDecodeBase58Address(_GoString_.getCPtr(p0), cipher__Address.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_AddressFromBytes(GoSlice p0, cipher__Address p1) { + uint ret = skycoinPINVOKE.SKY_cipher_AddressFromBytes(GoSlice.getCPtr(p0), cipher__Address.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_AddressFromPubKey(SWIGTYPE_p_a_33__GoUint8_ p0, cipher__Address p1) { + uint ret = skycoinPINVOKE.SKY_cipher_AddressFromPubKey(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), cipher__Address.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_AddressFromSecKey(SWIGTYPE_p_a_32__GoUint8_ p0, cipher__Address p1) { + uint ret = skycoinPINVOKE.SKY_cipher_AddressFromSecKey(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), cipher__Address.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_BitcoinDecodeBase58Address(_GoString_ p0, cipher__Address p1) { + uint ret = skycoinPINVOKE.SKY_cipher_BitcoinDecodeBase58Address(_GoString_.getCPtr(p0), cipher__Address.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_MustAddressFromBytes(GoSlice p0, cipher__Address p1) { + uint ret = skycoinPINVOKE.SKY_cipher_MustAddressFromBytes(GoSlice.getCPtr(p0), cipher__Address.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_Address_Bytes(cipher__Address p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_Address_Bytes(cipher__Address.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_Address_Null(cipher__Address p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_cipher_Address_Null(cipher__Address.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_Address_BitcoinBytes(cipher__Address p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_Address_BitcoinBytes(cipher__Address.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_Address_Verify(cipher__Address p0, SWIGTYPE_p_a_33__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_Address_Verify(cipher__Address.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_Address_String(cipher__Address p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_Address_String(cipher__Address.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_Address_BitcoinString(cipher__Address p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_Address_BitcoinString(cipher__Address.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_Address_Checksum(cipher__Address p0, SWIGTYPE_p_a_4__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_Address_Checksum(cipher__Address.getCPtr(p0), SWIGTYPE_p_a_4__GoUint8_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_Address_BitcoinChecksum(cipher__Address p0, SWIGTYPE_p_a_4__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_Address_BitcoinChecksum(cipher__Address.getCPtr(p0), SWIGTYPE_p_a_4__GoUint8_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_BitcoinAddressFromPubkey(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_BitcoinAddressFromPubkey(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_BitcoinWalletImportFormatFromSeckey(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_BitcoinWalletImportFormatFromSeckey(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_BitcoinAddressFromBytes(GoSlice p0, cipher__Address p1) { + uint ret = skycoinPINVOKE.SKY_cipher_BitcoinAddressFromBytes(GoSlice.getCPtr(p0), cipher__Address.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_SecKeyFromWalletImportFormat(_GoString_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_SecKeyFromWalletImportFormat(_GoString_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_MustSecKeyFromWalletImportFormat(_GoString_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_MustSecKeyFromWalletImportFormat(_GoString_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_testutil_MakeAddress(cipher__Address p0) { + uint ret = skycoinPINVOKE.SKY_testutil_MakeAddress(cipher__Address.getCPtr(p0)); + return ret; + } + + public static uint SKY_cli_CreateRawTxFromWallet(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, _GoString_ p2, GoSlice p3, SWIGTYPE_p_PasswordReader__Handle p4, SWIGTYPE_p_Transaction__Handle p5) { + uint ret = skycoinPINVOKE.SKY_cli_CreateRawTxFromWallet(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), GoSlice.getCPtr(p3), SWIGTYPE_p_PasswordReader__Handle.getCPtr(p4), SWIGTYPE_p_Transaction__Handle.getCPtr(p5)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cli_CreateRawTxFromAddress(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, _GoString_ p2, _GoString_ p3, GoSlice p4, SWIGTYPE_p_PasswordReader__Handle p5, SWIGTYPE_p_Transaction__Handle p6) { + uint ret = skycoinPINVOKE.SKY_cli_CreateRawTxFromAddress(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), _GoString_.getCPtr(p3), GoSlice.getCPtr(p4), SWIGTYPE_p_PasswordReader__Handle.getCPtr(p5), SWIGTYPE_p_Transaction__Handle.getCPtr(p6)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cli_CreateRawTx(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_Wallet__Handle p1, GoSlice p2, _GoString_ p3, GoSlice p4, GoSlice p5, SWIGTYPE_p_Transaction__Handle p6) { + uint ret = skycoinPINVOKE.SKY_cli_CreateRawTx(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_Wallet__Handle.getCPtr(p1), GoSlice.getCPtr(p2), _GoString_.getCPtr(p3), GoSlice.getCPtr(p4), GoSlice.getCPtr(p5), SWIGTYPE_p_Transaction__Handle.getCPtr(p6)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cli_NewTransaction(GoSlice p0, GoSlice p1, GoSlice p2, SWIGTYPE_p_Transaction__Handle p3) { + uint ret = skycoinPINVOKE.SKY_cli_NewTransaction(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), SWIGTYPE_p_Transaction__Handle.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_apputil_CatchInterruptPanic() { + uint ret = skycoinPINVOKE.SKY_apputil_CatchInterruptPanic(); + return ret; + } + + public static uint SKY_apputil_CatchDebug() { + uint ret = skycoinPINVOKE.SKY_apputil_CatchDebug(); + return ret; + } + + public static uint SKY_apputil_PrintProgramStatus() { + uint ret = skycoinPINVOKE.SKY_apputil_PrintProgramStatus(); + return ret; + } + + public static uint SKY_utc_UnixNow(SWIGTYPE_p_long_long p0) { + uint ret = skycoinPINVOKE.SKY_utc_UnixNow(SWIGTYPE_p_long_long.getCPtr(p0)); + return ret; + } + + public static uint SKY_httphelper_Address_UnmarshalJSON(httphelper__Address p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_httphelper_Address_UnmarshalJSON(httphelper__Address.getCPtr(p0), GoSlice.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_httphelper_Address_MarshalJSON(httphelper__Address p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_httphelper_Address_MarshalJSON(httphelper__Address.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_httphelper_Coins_UnmarshalJSON(SWIGTYPE_p_GoUint64_ p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_httphelper_Coins_UnmarshalJSON(SWIGTYPE_p_GoUint64_.getCPtr(p0), GoSlice.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_httphelper_Coins_MarshalJSON(SWIGTYPE_p_GoUint64_ p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_httphelper_Coins_MarshalJSON(SWIGTYPE_p_GoUint64_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_httphelper_Coins_Value(SWIGTYPE_p_GoUint64_ p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_httphelper_Coins_Value(SWIGTYPE_p_GoUint64_.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + return ret; + } + + public static uint SKY_httphelper_Hours_UnmarshalJSON(SWIGTYPE_p_GoUint64_ p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_httphelper_Hours_UnmarshalJSON(SWIGTYPE_p_GoUint64_.getCPtr(p0), GoSlice.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_httphelper_Hours_MarshalJSON(SWIGTYPE_p_GoUint64_ p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_httphelper_Hours_MarshalJSON(SWIGTYPE_p_GoUint64_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_httphelper_Hours_Value(SWIGTYPE_p_GoUint64_ p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_httphelper_Hours_Value(SWIGTYPE_p_GoUint64_.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + return ret; + } + + public static uint SKY_cli_CheckWalletBalance(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, SWIGTYPE_p_BalanceResult_Handle p2) { + uint ret = skycoinPINVOKE.SKY_cli_CheckWalletBalance(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_BalanceResult_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cli_GetBalanceOfAddresses(SWIGTYPE_p_WebRpcClient__Handle p0, GoSlice p1, SWIGTYPE_p_BalanceResult_Handle p2) { + uint ret = skycoinPINVOKE.SKY_cli_GetBalanceOfAddresses(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_BalanceResult_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_poly1305_Verify(SWIGTYPE_p_GoSlice_ p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2, SWIGTYPE_p_unsigned_char p3) { + uint ret = skycoinPINVOKE.SKY_poly1305_Verify(SWIGTYPE_p_GoSlice_.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_NewClient(_GoString_ p0, SWIGTYPE_p_Client__Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_NewClient(_GoString_.getCPtr(p0), SWIGTYPE_p_Client__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_CSRF(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_CSRF(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_Version(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_Version(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_Outputs(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_Outputs(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_OutputsForAddresses(SWIGTYPE_p_Client__Handle p0, GoSlice p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_OutputsForAddresses(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_OutputsForHashes(SWIGTYPE_p_Client__Handle p0, GoSlice p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_OutputsForHashes(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_CoinSupply(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_CoinSupply(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_BlockByHash(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_BlockByHash(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_BlockBySeq(SWIGTYPE_p_Client__Handle p0, ulong p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_BlockBySeq(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1, SWIGTYPE_p_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_Blocks(SWIGTYPE_p_Client__Handle p0, long p1, long p2, SWIGTYPE_p_Handle p3) { + uint ret = skycoinPINVOKE.SKY_api_Client_Blocks(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1, p2, SWIGTYPE_p_Handle.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_LastBlocks(SWIGTYPE_p_Client__Handle p0, long p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_LastBlocks(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1, SWIGTYPE_p_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_BlockchainMetadata(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_BlockchainMetadata(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_BlockchainProgress(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_BlockchainProgress(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_Balance(SWIGTYPE_p_Client__Handle p0, GoSlice p1, wallet__BalancePair p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_Balance(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), wallet__BalancePair.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_UxOut(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_UxOut(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_AddressUxOuts(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_AddressUxOuts(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_Wallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_WalletResponse__Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_Wallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_Wallets(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Wallets__Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_Wallets(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Wallets__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_CreateUnencryptedWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, long p3, SWIGTYPE_p_WalletResponse__Handle p4) { + uint ret = skycoinPINVOKE.SKY_api_Client_CreateUnencryptedWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), p3, SWIGTYPE_p_WalletResponse__Handle.getCPtr(p4)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_CreateEncryptedWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, _GoString_ p3, long p4, SWIGTYPE_p_WalletResponse__Handle p5) { + uint ret = skycoinPINVOKE.SKY_api_Client_CreateEncryptedWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), _GoString_.getCPtr(p3), p4, SWIGTYPE_p_WalletResponse__Handle.getCPtr(p5)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_NewWalletAddress(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, long p2, _GoString_ p3, SWIGTYPE_p_Strings__Handle p4) { + uint ret = skycoinPINVOKE.SKY_api_Client_NewWalletAddress(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p2, _GoString_.getCPtr(p3), SWIGTYPE_p_Strings__Handle.getCPtr(p4)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_WalletBalance(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, wallet__BalancePair p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_WalletBalance(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), wallet__BalancePair.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_Spend(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, ulong p3, _GoString_ p4, SWIGTYPE_p_SpendResult_Handle p5) { + uint ret = skycoinPINVOKE.SKY_api_Client_Spend(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), p3, _GoString_.getCPtr(p4), SWIGTYPE_p_SpendResult_Handle.getCPtr(p5)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_CreateTransaction(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1, SWIGTYPE_p_CreateTransactionResponse__Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_CreateTransaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1), SWIGTYPE_p_CreateTransactionResponse__Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_WalletTransactions(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_WalletTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_UpdateWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_UpdateWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_WalletFolderName(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_WalletFolderName(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_NewSeed(SWIGTYPE_p_Client__Handle p0, long p1, SWIGTYPE_p_GoString_ p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_NewSeed(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoString_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_GetWalletSeed(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, SWIGTYPE_p_GoString_ p3) { + uint ret = skycoinPINVOKE.SKY_api_Client_GetWalletSeed(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), SWIGTYPE_p_GoString_.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_NetworkConnection(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_NetworkConnection(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_NetworkConnections(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_NetworkConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_NetworkDefaultConnections(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_NetworkDefaultConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_NetworkTrustedConnections(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_NetworkTrustedConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_NetworkExchangeableConnections(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_NetworkExchangeableConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_PendingTransactions(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_PendingTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_Transaction(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_Transaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_Transactions(SWIGTYPE_p_Client__Handle p0, GoSlice p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_Transactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_ConfirmedTransactions(SWIGTYPE_p_Client__Handle p0, GoSlice p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_ConfirmedTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_UnconfirmedTransactions(SWIGTYPE_p_Client__Handle p0, GoSlice p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_UnconfirmedTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_InjectTransaction(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_GoString_ p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_InjectTransaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_ResendUnconfirmedTransactions(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_ResendUnconfirmedTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_RawTransaction(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_GoString_ p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_RawTransaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_AddressTransactions(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_AddressTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_Richlist(SWIGTYPE_p_Client__Handle p0, api__RichlistParams p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_Richlist(SWIGTYPE_p_Client__Handle.getCPtr(p0), api__RichlistParams.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_AddressCount(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_AddressCount(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_UnloadWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_UnloadWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_Health(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_Health(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_EncryptWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, SWIGTYPE_p_WalletResponse__Handle p3) { + uint ret = skycoinPINVOKE.SKY_api_Client_EncryptWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_DecryptWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, SWIGTYPE_p_WalletResponse__Handle p3) { + uint ret = skycoinPINVOKE.SKY_api_Client_DecryptWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_JsonEncode_Handle(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_JsonEncode_Handle(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_Handle_Progress_GetCurrent(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_Handle_Progress_GetCurrent(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_Handle_Block_GetHeadSeq(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_Handle_Block_GetHeadSeq(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_Handle_Block_GetHeadHash(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_Handle_Block_GetHeadHash(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_Handle_Block_GetPreviousBlockHash(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_Handle_Block_GetPreviousBlockHash(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_Handle_Blocks_GetAt(SWIGTYPE_p_Handle p0, ulong p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_Handle_Blocks_GetAt(SWIGTYPE_p_Handle.getCPtr(p0), p1, SWIGTYPE_p_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_Handle_Blocks_GetCount(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_Handle_Blocks_GetCount(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_Handle_Connections_GetCount(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_Handle_Connections_GetCount(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_Handle_Strings_GetCount(SWIGTYPE_p_Strings__Handle p0, SWIGTYPE_p_unsigned_int p1) { + uint ret = skycoinPINVOKE.SKY_Handle_Strings_GetCount(SWIGTYPE_p_Strings__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_Handle_Strings_Sort(SWIGTYPE_p_Strings__Handle p0) { + uint ret = skycoinPINVOKE.SKY_Handle_Strings_Sort(SWIGTYPE_p_Strings__Handle.getCPtr(p0)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_Handle_Strings_GetAt(SWIGTYPE_p_Strings__Handle p0, long p1, SWIGTYPE_p_GoString_ p2) { + uint ret = skycoinPINVOKE.SKY_Handle_Strings_GetAt(SWIGTYPE_p_Strings__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoString_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Handle_Client_GetWalletDir(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletDir(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Handle_Client_GetWalletFileName(SWIGTYPE_p_WalletResponse__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletFileName(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Handle_Client_GetWalletLabel(SWIGTYPE_p_WalletResponse__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletLabel(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Handle_Client_GetWalletFullPath(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_WalletResponse__Handle p1, SWIGTYPE_p_GoString_ p2) { + uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletFullPath(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Handle_GetWalletMeta(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoStringMap_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletMeta(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoStringMap_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Handle_GetWalletEntriesCount(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_unsigned_int p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletEntriesCount(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Handle_Client_GetWalletResponseEntriesCount(SWIGTYPE_p_WalletResponse__Handle p0, SWIGTYPE_p_unsigned_int p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletResponseEntriesCount(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Handle_WalletGetEntry(SWIGTYPE_p_Wallet__Handle p0, uint p1, cipher__Address p2, SWIGTYPE_p_a_33__GoUint8_ p3) { + uint ret = skycoinPINVOKE.SKY_api_Handle_WalletGetEntry(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), p1, cipher__Address.getCPtr(p2), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Handle_WalletResponseGetEntry(SWIGTYPE_p_WalletResponse__Handle p0, uint p1, SWIGTYPE_p_GoString_ p2, SWIGTYPE_p_GoString_ p3) { + uint ret = skycoinPINVOKE.SKY_api_Handle_WalletResponseGetEntry(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoString_.getCPtr(p2), SWIGTYPE_p_GoString_.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Handle_WalletResponseIsEncrypted(SWIGTYPE_p_WalletResponse__Handle p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_WalletResponseIsEncrypted(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Handle_WalletResponseGetCryptoType(SWIGTYPE_p_WalletResponse__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_WalletResponseGetCryptoType(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Handle_WalletsResponseGetCount(SWIGTYPE_p_Wallets__Handle p0, SWIGTYPE_p_unsigned_int p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_WalletsResponseGetCount(SWIGTYPE_p_Wallets__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Handle_WalletsResponseGetAt(SWIGTYPE_p_Wallets__Handle p0, uint p1, SWIGTYPE_p_WalletResponse__Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Handle_WalletsResponseGetAt(SWIGTYPE_p_Wallets__Handle.getCPtr(p0), p1, SWIGTYPE_p_WalletResponse__Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Handle_GetWalletFolderAddress(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletFolderAddress(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Handle_GetWalletSeed(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletSeed(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Handle_GetWalletLastSeed(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletLastSeed(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Handle_GetBuildInfoData(SWIGTYPE_p_BuildInfo_Handle p0, SWIGTYPE_p_GoString_ p1, SWIGTYPE_p_GoString_ p2, SWIGTYPE_p_GoString_ p3) { + uint ret = skycoinPINVOKE.SKY_api_Handle_GetBuildInfoData(SWIGTYPE_p_BuildInfo_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2), SWIGTYPE_p_GoString_.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1_GenerateKeyPair(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1_GenerateKeyPair(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1_PubkeyFromSeckey(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1_PubkeyFromSeckey(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1_UncompressPubkey(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1_UncompressPubkey(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1_UncompressedPubkeyFromSeckey(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1_UncompressedPubkeyFromSeckey(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1_Secp256k1Hash(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1_Secp256k1Hash(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1_GenerateDeterministicKeyPair(GoSlice p0, SWIGTYPE_p_GoSlice_ p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1_GenerateDeterministicKeyPair(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1_DeterministicKeyPairIterator(GoSlice p0, SWIGTYPE_p_GoSlice_ p1, SWIGTYPE_p_GoSlice_ p2, SWIGTYPE_p_GoSlice_ p3) { + uint ret = skycoinPINVOKE.SKY_secp256k1_DeterministicKeyPairIterator(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1_Sign(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1_Sign(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1_SignDeterministic(GoSlice p0, GoSlice p1, GoSlice p2, SWIGTYPE_p_GoSlice_ p3) { + uint ret = skycoinPINVOKE.SKY_secp256k1_SignDeterministic(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1_VerifySeckey(GoSlice p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1_VerifySeckey(GoSlice.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1_VerifyPubkey(GoSlice p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1_VerifyPubkey(GoSlice.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1_VerifySignatureValidity(GoSlice p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1_VerifySignatureValidity(GoSlice.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1_VerifySignature(GoSlice p0, GoSlice p1, GoSlice p2, SWIGTYPE_p_long_long p3) { + uint ret = skycoinPINVOKE.SKY_secp256k1_VerifySignature(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), SWIGTYPE_p_long_long.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1_SignatureErrorString(GoSlice p0, GoSlice p1, GoSlice p2, SWIGTYPE_p_GoString_ p3) { + uint ret = skycoinPINVOKE.SKY_secp256k1_SignatureErrorString(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), SWIGTYPE_p_GoString_.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1_RecoverPubkey(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1_RecoverPubkey(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1_ECDH(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1_ECDH(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cert_CreateCertIfNotExists(_GoString_ p0, _GoString_ p1, _GoString_ p2, _GoString_ p3) { + uint ret = skycoinPINVOKE.SKY_cert_CreateCertIfNotExists(_GoString_.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), _GoString_.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_fee_VerifyTransactionFee(SWIGTYPE_p_Transaction__Handle p0, ulong p1) { + uint ret = skycoinPINVOKE.SKY_fee_VerifyTransactionFee(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_fee_VerifyTransactionFeeForHours(ulong p0, ulong p1) { + uint ret = skycoinPINVOKE.SKY_fee_VerifyTransactionFeeForHours(p0, p1); + return ret; + } + + public static uint SKY_fee_RequiredFee(ulong p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_fee_RequiredFee(p0, SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + return ret; + } + + public static uint SKY_fee_RemainingHours(ulong p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_fee_RemainingHours(p0, SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + return ret; + } + + public static uint SKY_fee_TransactionFee(SWIGTYPE_p_Transaction__Handle p0, ulong p1, SWIGTYPE_p_GoSlice_ p2, SWIGTYPE_p_unsigned_long_long p3) { + uint ret = skycoinPINVOKE.SKY_fee_TransactionFee(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2), SWIGTYPE_p_unsigned_long_long.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_iputil_LocalhostIP(SWIGTYPE_p_GoString_ p0) { + uint ret = skycoinPINVOKE.SKY_iputil_LocalhostIP(SWIGTYPE_p_GoString_.getCPtr(p0)); + return ret; + } + + public static uint SKY_iputil_IsLocalhost(_GoString_ p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_iputil_IsLocalhost(_GoString_.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_iputil_SplitAddr(_GoString_ p0, SWIGTYPE_p_GoString_ p1, SWIGTYPE_p_unsigned_short p2) { + uint ret = skycoinPINVOKE.SKY_iputil_SplitAddr(_GoString_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1), SWIGTYPE_p_unsigned_short.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_Ripemd160_Set(SWIGTYPE_p_a_20__GoUint8_ p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_cipher_Ripemd160_Set(SWIGTYPE_p_a_20__GoUint8_.getCPtr(p0), GoSlice.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_HashRipemd160(GoSlice p0, SWIGTYPE_p_a_20__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_HashRipemd160(GoSlice.getCPtr(p0), SWIGTYPE_p_a_20__GoUint8_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_SHA256_Set(SWIGTYPE_p_a_32__GoUint8_ p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Set(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), GoSlice.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_SHA256_Hex(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Hex(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_SHA256_Xor(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_a_32__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Xor(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); + return ret; + } + + public static uint SKY_cipher_SumSHA256(GoSlice p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_SumSHA256(GoSlice.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_SHA256FromHex(_GoString_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_SHA256FromHex(_GoString_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_DoubleSHA256(GoSlice p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_DoubleSHA256(GoSlice.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_AddSHA256(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_a_32__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_cipher_AddSHA256(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); + return ret; + } + + public static uint SKY_cipher_Merkle(GoSlice p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_Merkle(GoSlice.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_MustSumSHA256(GoSlice p0, long p1, SWIGTYPE_p_a_32__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_cipher_MustSumSHA256(GoSlice.getCPtr(p0), p1, SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_SHA256_Null(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Null(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_Create_Transaction(SWIGTYPE_p_Transaction__Handle p0) { + uint ret = skycoinPINVOKE.SKY_coin_Create_Transaction(SWIGTYPE_p_Transaction__Handle.getCPtr(p0)); + return ret; + } + + public static uint SKY_coin_Transaction_Copy(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_Transaction__Handle p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_Copy(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_GetTransactionObject(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_p_coin__Transaction p1) { + uint ret = skycoinPINVOKE.SKY_coin_GetTransactionObject(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_p_coin__Transaction.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Transaction_ResetInputs(SWIGTYPE_p_Transaction__Handle p0, long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_ResetInputs(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Transaction_GetInputsCount(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetInputsCount(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Transaction_GetInputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, SWIGTYPE_p_a_32__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetInputAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Transaction_SetInputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, SWIGTYPE_p_a_32__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetInputAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Transaction_GetOutputsCount(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetOutputsCount(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Transaction_GetOutputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, coin__TransactionOutput p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetOutputAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, coin__TransactionOutput.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Transaction_SetOutputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, coin__TransactionOutput p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetOutputAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, coin__TransactionOutput.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Transaction_GetSignaturesCount(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetSignaturesCount(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Transaction_GetSignatureAt(SWIGTYPE_p_Transaction__Handle p0, long p1, SWIGTYPE_p_a_65__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetSignatureAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Transaction_SetSignatureAt(SWIGTYPE_p_Transaction__Handle p0, long p1, SWIGTYPE_p_a_65__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetSignatureAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Transaction_PushSignature(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_a_65__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushSignature(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Transaction_ResetOutputs(SWIGTYPE_p_Transaction__Handle p0, long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_ResetOutputs(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Transaction_ResetSignatures(SWIGTYPE_p_Transaction__Handle p0, long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_ResetSignatures(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Transaction_Verify(SWIGTYPE_p_Transaction__Handle p0) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_Verify(SWIGTYPE_p_Transaction__Handle.getCPtr(p0)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Transaction_VerifyInput(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_VerifyInput(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Transaction_PushInput(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_unsigned_short p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushInput(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_unsigned_short.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_TransactionOutput_UxID(coin__TransactionOutput p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_a_32__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_TransactionOutput_UxID(coin__TransactionOutput.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); + return ret; + } + + public static uint SKY_coin_Transaction_PushOutput(SWIGTYPE_p_Transaction__Handle p0, cipher__Address p1, ulong p2, ulong p3) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushOutput(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), cipher__Address.getCPtr(p1), p2, p3); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Transaction_SignInputs(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_SignInputs(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Transaction_Size(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_Size(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Transaction_Hash(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_Hash(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Transaction_SizeHash(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1, SWIGTYPE_p_a_32__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_SizeHash(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Transaction_TxID(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_TxID(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Transaction_TxIDHex(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_TxIDHex(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Transaction_UpdateHeader(SWIGTYPE_p_Transaction__Handle p0) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_UpdateHeader(SWIGTYPE_p_Transaction__Handle.getCPtr(p0)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Transaction_HashInner(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_HashInner(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Transaction_Serialize(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_Serialize(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_MustTransactionDeserialize(GoSlice p0, SWIGTYPE_p_Transaction__Handle p1) { + uint ret = skycoinPINVOKE.SKY_coin_MustTransactionDeserialize(GoSlice.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_TransactionDeserialize(GoSlice p0, SWIGTYPE_p_Transaction__Handle p1) { + uint ret = skycoinPINVOKE.SKY_coin_TransactionDeserialize(GoSlice.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Transaction_OutputHours(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_OutputHours(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Create_Transactions(SWIGTYPE_p_Transactions__Handle p0) { + uint ret = skycoinPINVOKE.SKY_coin_Create_Transactions(SWIGTYPE_p_Transactions__Handle.getCPtr(p0)); + return ret; + } + + public static uint SKY_coin_GetTransactionsObject(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_GetTransactionsObject(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Transactions_Length(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_Length(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Transactions_Add(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_Transaction__Handle p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_Add(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Transactions_Fees(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_FeeCalculator p1, SWIGTYPE_p_unsigned_long_long p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_Fees(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1), SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Transactions_GetAt(SWIGTYPE_p_Transactions__Handle p0, long p1, SWIGTYPE_p_Transaction__Handle p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_GetAt(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), p1, SWIGTYPE_p_Transaction__Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Transactions_Hashes(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_Hashes(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Transactions_Size(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_Size(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Transactions_TruncateBytesTo(SWIGTYPE_p_Transactions__Handle p0, long p1, SWIGTYPE_p_Transactions__Handle p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_TruncateBytesTo(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), p1, SWIGTYPE_p_Transactions__Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_SortTransactions(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_FeeCalculator p1, SWIGTYPE_p_Transactions__Handle p2) { + uint ret = skycoinPINVOKE.SKY_coin_SortTransactions(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1), SWIGTYPE_p_Transactions__Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_NewSortableTransactions(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_FeeCalculator p1, SWIGTYPE_p_SortableTransactionResult_Handle p2) { + uint ret = skycoinPINVOKE.SKY_coin_NewSortableTransactions(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1), SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_SortableTransactions_Sort(SWIGTYPE_p_SortableTransactionResult_Handle p0) { + uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Sort(SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p0)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_SortableTransactions_Len(SWIGTYPE_p_SortableTransactionResult_Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Len(SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_SortableTransactions_Less(SWIGTYPE_p_SortableTransactionResult_Handle p0, long p1, long p2, SWIGTYPE_p_unsigned_char p3) { + uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Less(SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p0), p1, p2, SWIGTYPE_p_unsigned_char.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_SortableTransactions_Swap(SWIGTYPE_p_SortableTransactionResult_Handle p0, long p1, long p2) { + uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Swap(SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p0), p1, p2); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_VerifyTransactionCoinsSpending(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_VerifyTransactionCoinsSpending(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_VerifyTransactionHoursSpending(ulong p0, SWIGTYPE_p_GoSlice_ p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_VerifyTransactionHoursSpending(p0, SWIGTYPE_p_GoSlice_.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + return ret; + } + + public static uint SKY_encrypt_Sha256Xor_Encrypt(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_encrypt_Sha256Xor_Encrypt(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_encrypt_Sha256Xor_Decrypt(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_encrypt_Sha256Xor_Decrypt(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cli_GenerateAddressesInFile(_GoString_ p0, ulong p1, SWIGTYPE_p_PasswordReader__Handle p2, SWIGTYPE_p_GoSlice_ p3) { + uint ret = skycoinPINVOKE.SKY_cli_GenerateAddressesInFile(_GoString_.getCPtr(p0), p1, SWIGTYPE_p_PasswordReader__Handle.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cli_FormatAddressesAsJSON(GoSlice p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_FormatAddressesAsJSON(GoSlice.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cli_FormatAddressesAsJoinedArray(GoSlice p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_FormatAddressesAsJoinedArray(GoSlice.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cli_AddressesToStrings(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_AddressesToStrings(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cli_LoadConfig(SWIGTYPE_p_Config__Handle p0) { + uint ret = skycoinPINVOKE.SKY_cli_LoadConfig(SWIGTYPE_p_Config__Handle.getCPtr(p0)); + return ret; + } + + public static uint SKY_cli_Config_FullWalletPath(SWIGTYPE_p_Config__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_Config_FullWalletPath(SWIGTYPE_p_Config__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cli_Config_FullDBPath(SWIGTYPE_p_Config__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_Config_FullDBPath(SWIGTYPE_p_Config__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cli_NewApp(SWIGTYPE_p_Config__Handle p0, SWIGTYPE_p_App__Handle p1) { + uint ret = skycoinPINVOKE.SKY_cli_NewApp(SWIGTYPE_p_Config__Handle.getCPtr(p0), SWIGTYPE_p_App__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cli_RPCClientFromContext(SWIGTYPE_p_Context__Handle p0, SWIGTYPE_p_WebRpcClient__Handle p1) { + uint ret = skycoinPINVOKE.SKY_cli_RPCClientFromContext(SWIGTYPE_p_Context__Handle.getCPtr(p0), SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cli_ConfigFromContext(SWIGTYPE_p_Context__Handle p0, SWIGTYPE_p_Config__Handle p1) { + uint ret = skycoinPINVOKE.SKY_cli_ConfigFromContext(SWIGTYPE_p_Context__Handle.getCPtr(p0), SWIGTYPE_p_Config__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cli_PasswordFromBytes_Password(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_PasswordFromBytes_Password(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cli_PasswordFromTerm_Password(SWIGTYPE_p_GoSlice_ p0) { + uint ret = skycoinPINVOKE.SKY_cli_PasswordFromTerm_Password(SWIGTYPE_p_GoSlice_.getCPtr(p0)); + return ret; + } + + public static void SKY_handle_close(SWIGTYPE_p_Handle p0) { + skycoinPINVOKE.SKY_handle_close(SWIGTYPE_p_Handle.getCPtr(p0)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + + public static uint SKY_handle_copy(SWIGTYPE_p_Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_handle_copy(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_encoder_StructField_String(encoder__StructField p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_encoder_StructField_String(encoder__StructField.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_encoder_ParseFields(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoStringMap_ p2) { + uint ret = skycoinPINVOKE.SKY_encoder_ParseFields(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoStringMap_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_UxOut_Hash(coin__UxOut p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_UxOut_Hash(coin__UxOut.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_UxOut_SnapshotHash(coin__UxOut p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_UxOut_SnapshotHash(coin__UxOut.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_UxBody_Hash(coin__UxBody p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_UxBody_Hash(coin__UxBody.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_UxOut_CoinHours(coin__UxOut p0, ulong p1, SWIGTYPE_p_unsigned_long_long p2) { + uint ret = skycoinPINVOKE.SKY_coin_UxOut_CoinHours(coin__UxOut.getCPtr(p0), p1, SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); + return ret; + } + + public static uint SKY_coin_UxArray_Hashes(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Hashes(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_UxArray_HasDupes(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_coin_UxArray_HasDupes(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_UxArray_Sort(SWIGTYPE_p_GoSlice_ p0) { + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Sort(SWIGTYPE_p_GoSlice_.getCPtr(p0)); + return ret; + } + + public static uint SKY_coin_UxArray_Len(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Len(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_UxArray_Less(SWIGTYPE_p_GoSlice_ p0, long p1, long p2, SWIGTYPE_p_unsigned_char p3) { + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Less(SWIGTYPE_p_GoSlice_.getCPtr(p0), p1, p2, SWIGTYPE_p_unsigned_char.getCPtr(p3)); + return ret; + } + + public static uint SKY_coin_UxArray_Swap(SWIGTYPE_p_GoSlice_ p0, long p1, long p2) { + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Swap(SWIGTYPE_p_GoSlice_.getCPtr(p0), p1, p2); + return ret; + } + + public static uint SKY_coin_UxArray_Coins(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Coins(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_UxArray_CoinHours(SWIGTYPE_p_GoSlice_ p0, ulong p1, SWIGTYPE_p_unsigned_long_long p2) { + uint ret = skycoinPINVOKE.SKY_coin_UxArray_CoinHours(SWIGTYPE_p_GoSlice_.getCPtr(p0), p1, SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); + return ret; + } + + public static uint SKY_coin_UxArray_Sub(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_GoSlice_ p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Sub(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + return ret; + } + + public static uint SKY_coin_UxArray_Add(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_GoSlice_ p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Add(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + return ret; + } + + public static uint SKY_coin_NewAddressUxOuts(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_AddressUxOuts_Handle p1) { + uint ret = skycoinPINVOKE.SKY_coin_NewAddressUxOuts(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_AddressUxOuts_Keys(SWIGTYPE_p_AddressUxOuts_Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Keys(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_AddressUxOuts_Flatten(SWIGTYPE_p_AddressUxOuts_Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Flatten(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_AddressUxOuts_Sub(SWIGTYPE_p_AddressUxOuts_Handle p0, SWIGTYPE_p_AddressUxOuts_Handle p1, SWIGTYPE_p_AddressUxOuts_Handle p2) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Sub(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p1), SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_AddressUxOuts_Add(SWIGTYPE_p_AddressUxOuts_Handle p0, SWIGTYPE_p_AddressUxOuts_Handle p1, SWIGTYPE_p_AddressUxOuts_Handle p2) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Add(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p1), SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_AddressUxOuts_Get(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher__Address p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Get(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_AddressUxOuts_HasKey(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher__Address p1, SWIGTYPE_p_unsigned_char p2) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_HasKey(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_AddressUxOuts_GetOutputLength(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher__Address p1, SWIGTYPE_p_long_long p2) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_GetOutputLength(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), SWIGTYPE_p_long_long.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_AddressUxOuts_Length(SWIGTYPE_p_AddressUxOuts_Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Length(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_AddressUxOuts_Set(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher__Address p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Set(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_scrypt_Key(GoSlice p0, GoSlice p1, long p2, long p3, long p4, long p5, SWIGTYPE_p_GoSlice_ p6) { + uint ret = skycoinPINVOKE.SKY_scrypt_Key(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), p2, p3, p4, p5, SWIGTYPE_p_GoSlice_.getCPtr(p6)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_NewError(GoInterface p0) { + uint ret = skycoinPINVOKE.SKY_wallet_NewError(GoInterface.getCPtr(p0)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_NewWallet(_GoString_ p0, SWIGTYPE_p_Options__Handle p1, SWIGTYPE_p_Wallet__Handle p2) { + uint ret = skycoinPINVOKE.SKY_wallet_NewWallet(_GoString_.getCPtr(p0), SWIGTYPE_p_Options__Handle.getCPtr(p1), SWIGTYPE_p_Wallet__Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_Wallet_Lock(SWIGTYPE_p_Wallet__Handle p0, GoSlice p1, _GoString_ p2) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Lock(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), GoSlice.getCPtr(p1), _GoString_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_Wallet_Unlock(SWIGTYPE_p_Wallet__Handle p0, GoSlice p1, SWIGTYPE_p_Wallet__Handle p2) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Unlock(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_Wallet__Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_Load(_GoString_ p0, SWIGTYPE_p_Wallet__Handle p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Load(_GoString_.getCPtr(p0), SWIGTYPE_p_Wallet__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_Wallet_Save(SWIGTYPE_p_Wallet__Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Save(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_Wallet_Validate(SWIGTYPE_p_Wallet__Handle p0) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Validate(SWIGTYPE_p_Wallet__Handle.getCPtr(p0)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_Wallet_Type(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Type(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_Wallet_Version(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Version(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_Wallet_Filename(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Filename(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_Wallet_Label(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Label(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_Wallet_IsEncrypted(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_IsEncrypted(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_Wallet_GenerateAddresses(SWIGTYPE_p_Wallet__Handle p0, ulong p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GenerateAddresses(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_Wallet_GetAddresses(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GetAddresses(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_Wallet_GetEntry(SWIGTYPE_p_Wallet__Handle p0, cipher__Address p1, wallet__Entry p2, SWIGTYPE_p_unsigned_char p3) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GetEntry(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), cipher__Address.getCPtr(p1), wallet__Entry.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_Wallet_AddEntry(SWIGTYPE_p_Wallet__Handle p0, wallet__Entry p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_AddEntry(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), wallet__Entry.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_DistributeSpendHours(ulong p0, ulong p1, byte p2, SWIGTYPE_p_unsigned_long_long p3, SWIGTYPE_p_GoSlice_ p4, SWIGTYPE_p_unsigned_long_long p5) { + uint ret = skycoinPINVOKE.SKY_wallet_DistributeSpendHours(p0, p1, p2, SWIGTYPE_p_unsigned_long_long.getCPtr(p3), SWIGTYPE_p_GoSlice_.getCPtr(p4), SWIGTYPE_p_unsigned_long_long.getCPtr(p5)); + return ret; + } + + public static uint SKY_wallet_DistributeCoinHoursProportional(GoSlice p0, ulong p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_wallet_DistributeCoinHoursProportional(GoSlice.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_NewUxBalances(ulong p0, SWIGTYPE_p_GoSlice_ p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_wallet_NewUxBalances(p0, SWIGTYPE_p_GoSlice_.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + return ret; + } + + public static uint SKY_wallet_NewUxBalance(ulong p0, coin__UxOut p1, wallet__UxBalance p2) { + uint ret = skycoinPINVOKE.SKY_wallet_NewUxBalance(p0, coin__UxOut.getCPtr(p1), wallet__UxBalance.getCPtr(p2)); + return ret; + } + + public static uint SKY_wallet_ChooseSpendsMinimizeUxOuts(GoSlice p0, ulong p1, ulong p2, SWIGTYPE_p_GoSlice_ p3) { + uint ret = skycoinPINVOKE.SKY_wallet_ChooseSpendsMinimizeUxOuts(GoSlice.getCPtr(p0), p1, p2, SWIGTYPE_p_GoSlice_.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_ChooseSpendsMaximizeUxOuts(GoSlice p0, ulong p1, ulong p2, SWIGTYPE_p_GoSlice_ p3) { + uint ret = skycoinPINVOKE.SKY_wallet_ChooseSpendsMaximizeUxOuts(GoSlice.getCPtr(p0), p1, p2, SWIGTYPE_p_GoSlice_.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cli_AddPrivateKey(SWIGTYPE_p_Wallet__Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_AddPrivateKey(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cli_AddPrivateKeyToFile(_GoString_ p0, _GoString_ p1, SWIGTYPE_p_PasswordReader__Handle p2) { + uint ret = skycoinPINVOKE.SKY_cli_AddPrivateKeyToFile(_GoString_.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_PasswordReader__Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cli_App_Run(SWIGTYPE_p_App__Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_App_Run(SWIGTYPE_p_App__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cli_Config_GetCoin(SWIGTYPE_p_Config__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_Config_GetCoin(SWIGTYPE_p_Config__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cli_Config_GetRPCAddress(SWIGTYPE_p_Config__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_Config_GetRPCAddress(SWIGTYPE_p_Config__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cli_RPCClientFromApp(SWIGTYPE_p_App__Handle p0, SWIGTYPE_p_WebRpcClient__Handle p1) { + uint ret = skycoinPINVOKE.SKY_cli_RPCClientFromApp(SWIGTYPE_p_App__Handle.getCPtr(p0), SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cli_Getenv(_GoString_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_Getenv(_GoString_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cli_Setenv(_GoString_ p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_Setenv(_GoString_.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_webrpc_NewClient(_GoString_ p0, SWIGTYPE_p_WebRpcClient__Handle p1) { + uint ret = skycoinPINVOKE.SKY_webrpc_NewClient(_GoString_.getCPtr(p0), SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_webrpc_Client_CSRF(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_CSRF(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_webrpc_Client_GetUnspentOutputs(SWIGTYPE_p_WebRpcClient__Handle p0, GoSlice p1, SWIGTYPE_p_OutputsResult_Handle p2) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetUnspentOutputs(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_OutputsResult_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_webrpc_Client_InjectTransactionString(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, SWIGTYPE_p_GoString_ p2) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_InjectTransactionString(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_webrpc_Client_InjectTransaction(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_Transaction__Handle p1, SWIGTYPE_p_GoString_ p2) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_InjectTransaction(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_webrpc_Client_GetStatus(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_StatusResult_Handle p1) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetStatus(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_StatusResult_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_webrpc_Client_GetTransactionByID(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, SWIGTYPE_p_TransactionResult_Handle p2) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetTransactionByID(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_TransactionResult_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_webrpc_Client_GetAddressUxOuts(SWIGTYPE_p_WebRpcClient__Handle p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetAddressUxOuts(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_webrpc_Client_GetBlocks(SWIGTYPE_p_WebRpcClient__Handle p0, ulong p1, ulong p2, SWIGTYPE_p_GoSlice_ p3) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetBlocks(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), p1, p2, SWIGTYPE_p_GoSlice_.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_webrpc_Client_GetBlocksBySeq(SWIGTYPE_p_WebRpcClient__Handle p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetBlocksBySeq(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_webrpc_Client_GetLastBlocks(SWIGTYPE_p_WebRpcClient__Handle p0, ulong p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetLastBlocks(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_droplet_FromString(_GoString_ p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_droplet_FromString(_GoString_.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_droplet_ToString(ulong p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_droplet_ToString(p0, SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_bip39_NewDefaultMnemomic(SWIGTYPE_p_GoString_ p0) { + uint ret = skycoinPINVOKE.SKY_bip39_NewDefaultMnemomic(SWIGTYPE_p_GoString_.getCPtr(p0)); + return ret; + } + + public static uint SKY_bip39_NewEntropy(long p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_bip39_NewEntropy(p0, SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_bip39_NewMnemonic(GoSlice p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_bip39_NewMnemonic(GoSlice.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_bip39_MnemonicToByteArray(_GoString_ p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_bip39_MnemonicToByteArray(_GoString_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_bip39_IsMnemonicValid(_GoString_ p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_bip39_IsMnemonicValid(_GoString_.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_XYZ_Print(secp256k1go__XYZ p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_Print(secp256k1go__XYZ.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_XYZ_SetXY(secp256k1go__XYZ p0, secp256k1go__XY p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_SetXY(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XY.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_XYZ_IsInfinity(secp256k1go__XYZ p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_IsInfinity(secp256k1go__XYZ.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_XYZ_IsValid(secp256k1go__XYZ p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_IsValid(secp256k1go__XYZ.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_XYZ_Normalize(secp256k1go__XYZ p0) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_Normalize(secp256k1go__XYZ.getCPtr(p0)); + return ret; + } + + public static uint SKY_secp256k1go_XYZ_Equals(secp256k1go__XYZ p0, secp256k1go__XYZ p1, SWIGTYPE_p_unsigned_char p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_Equals(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); + return ret; + } + + public static uint SKY_secp256k1go_XYZ_ECmult(secp256k1go__XYZ p0, secp256k1go__XYZ p1, SWIGTYPE_p_Number_Handle p2, SWIGTYPE_p_Number_Handle p3) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_ECmult(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1), SWIGTYPE_p_Number_Handle.getCPtr(p2), SWIGTYPE_p_Number_Handle.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_XYZ_Neg(secp256k1go__XYZ p0, secp256k1go__XYZ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_Neg(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_XYZ_Double(secp256k1go__XYZ p0, secp256k1go__XYZ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_Double(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_XYZ_AddXY(secp256k1go__XYZ p0, secp256k1go__XYZ p1, secp256k1go__XY p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_AddXY(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1), secp256k1go__XY.getCPtr(p2)); + return ret; + } + + public static uint SKY_secp256k1go_XYZ_Add(secp256k1go__XYZ p0, secp256k1go__XYZ p1, secp256k1go__XYZ p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_Add(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1), secp256k1go__XYZ.getCPtr(p2)); + return ret; + } + + public static uint SKY_secp256k1go_ECmultGen(secp256k1go__XYZ p0, SWIGTYPE_p_Number_Handle p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_ECmultGen(secp256k1go__XYZ.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_NewNotesFilename(SWIGTYPE_p_GoString_ p0) { + uint ret = skycoinPINVOKE.SKY_wallet_NewNotesFilename(SWIGTYPE_p_GoString_.getCPtr(p0)); + return ret; + } + + public static uint SKY_wallet_LoadNotes(_GoString_ p0, SWIGTYPE_p_WalletNotes_Handle p1) { + uint ret = skycoinPINVOKE.SKY_wallet_LoadNotes(_GoString_.getCPtr(p0), SWIGTYPE_p_WalletNotes_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_LoadReadableNotes(_GoString_ p0, SWIGTYPE_p_WalletReadableNotes_Handle p1) { + uint ret = skycoinPINVOKE.SKY_wallet_LoadReadableNotes(_GoString_.getCPtr(p0), SWIGTYPE_p_WalletReadableNotes_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_ReadableNotes_Load(SWIGTYPE_p_WalletReadableNotes_Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_ReadableNotes_Load(SWIGTYPE_p_WalletReadableNotes_Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_ReadableNotes_ToNotes(SWIGTYPE_p_WalletReadableNotes_Handle p0, SWIGTYPE_p_WalletNotes_Handle p1) { + uint ret = skycoinPINVOKE.SKY_wallet_ReadableNotes_ToNotes(SWIGTYPE_p_WalletReadableNotes_Handle.getCPtr(p0), SWIGTYPE_p_WalletNotes_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_ReadableNotes_Save(SWIGTYPE_p_WalletReadableNotes_Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_ReadableNotes_Save(SWIGTYPE_p_WalletReadableNotes_Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_NewReadableNote(wallet__Note p0, wallet__ReadableNote p1) { + uint ret = skycoinPINVOKE.SKY_wallet_NewReadableNote(wallet__Note.getCPtr(p0), wallet__ReadableNote.getCPtr(p1)); + return ret; + } + + public static uint SKY_wallet_NewReadableNotesFromNotes(SWIGTYPE_p_WalletNotes_Handle p0, SWIGTYPE_p_WalletReadableNotes_Handle p1) { + uint ret = skycoinPINVOKE.SKY_wallet_NewReadableNotesFromNotes(SWIGTYPE_p_WalletNotes_Handle.getCPtr(p0), SWIGTYPE_p_WalletReadableNotes_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_Notes_Save(SWIGTYPE_p_WalletNotes_Handle p0, _GoString_ p1, _GoString_ p2) { + uint ret = skycoinPINVOKE.SKY_wallet_Notes_Save(SWIGTYPE_p_WalletNotes_Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_Notes_SaveNote(SWIGTYPE_p_WalletNotes_Handle p0, _GoString_ p1, wallet__Note p2) { + uint ret = skycoinPINVOKE.SKY_wallet_Notes_SaveNote(SWIGTYPE_p_WalletNotes_Handle.getCPtr(p0), _GoString_.getCPtr(p1), wallet__Note.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_Notes_ToReadable(SWIGTYPE_p_WalletNotes_Handle p0, SWIGTYPE_p_WalletReadableNotes_Handle p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Notes_ToReadable(SWIGTYPE_p_WalletNotes_Handle.getCPtr(p0), SWIGTYPE_p_WalletReadableNotes_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_NotesFileExist(_GoString_ p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_wallet_NotesFileExist(_GoString_.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_CreateNoteFileIfNotExist(_GoString_ p0) { + uint ret = skycoinPINVOKE.SKY_wallet_CreateNoteFileIfNotExist(_GoString_.getCPtr(p0)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_encrypt_ScryptChacha20poly1305_Encrypt(encrypt__ScryptChacha20poly1305 p0, GoSlice p1, GoSlice p2, SWIGTYPE_p_GoSlice_ p3) { + uint ret = skycoinPINVOKE.SKY_encrypt_ScryptChacha20poly1305_Encrypt(encrypt__ScryptChacha20poly1305.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_encrypt_ScryptChacha20poly1305_Decrypt(encrypt__ScryptChacha20poly1305 p0, GoSlice p1, GoSlice p2, SWIGTYPE_p_GoSlice_ p3) { + uint ret = skycoinPINVOKE.SKY_encrypt_ScryptChacha20poly1305_Decrypt(encrypt__ScryptChacha20poly1305.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_AddUint64(ulong p0, ulong p1, SWIGTYPE_p_unsigned_long_long p2) { + uint ret = skycoinPINVOKE.SKY_coin_AddUint64(p0, p1, SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); + return ret; + } + + public static uint SKY_coin_Uint64ToInt64(ulong p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Uint64ToInt64(p0, SWIGTYPE_p_long_long.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_Int64ToUint64(long p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Int64ToUint64(p0, SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + return ret; + } + + public static uint SKY_wallet_NewBalance(ulong p0, ulong p1, wallet__Balance p2) { + uint ret = skycoinPINVOKE.SKY_wallet_NewBalance(p0, p1, wallet__Balance.getCPtr(p2)); + return ret; + } + + public static uint SKY_wallet_NewBalanceFromUxOut(ulong p0, coin__UxOut p1, wallet__Balance p2) { + uint ret = skycoinPINVOKE.SKY_wallet_NewBalanceFromUxOut(p0, coin__UxOut.getCPtr(p1), wallet__Balance.getCPtr(p2)); + return ret; + } + + public static uint SKY_wallet_Balance_Add(wallet__Balance p0, wallet__Balance p1, wallet__Balance p2) { + uint ret = skycoinPINVOKE.SKY_wallet_Balance_Add(wallet__Balance.getCPtr(p0), wallet__Balance.getCPtr(p1), wallet__Balance.getCPtr(p2)); + return ret; + } + + public static uint SKY_wallet_Balance_Sub(wallet__Balance p0, wallet__Balance p1, wallet__Balance p2) { + uint ret = skycoinPINVOKE.SKY_wallet_Balance_Sub(wallet__Balance.getCPtr(p0), wallet__Balance.getCPtr(p1), wallet__Balance.getCPtr(p2)); + return ret; + } + + public static uint SKY_wallet_Balance_Equals(wallet__Balance p0, wallet__Balance p1, SWIGTYPE_p_unsigned_char p2) { + uint ret = skycoinPINVOKE.SKY_wallet_Balance_Equals(wallet__Balance.getCPtr(p0), wallet__Balance.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); + return ret; + } + + public static uint SKY_wallet_Balance_IsZero(wallet__Balance p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Balance_IsZero(wallet__Balance.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + return ret; + } + + public static uint SKY_ripemd160_New(SWIGTYPE_p_Hash_Handle p0) { + uint ret = skycoinPINVOKE.SKY_ripemd160_New(SWIGTYPE_p_Hash_Handle.getCPtr(p0)); + return ret; + } + + public static uint SKY_ripemd160_Write(SWIGTYPE_p_Hash_Handle p0, GoSlice p1, SWIGTYPE_p_long_long p2) { + uint ret = skycoinPINVOKE.SKY_ripemd160_Write(SWIGTYPE_p_Hash_Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_long_long.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_ripemd160_Sum(SWIGTYPE_p_Hash_Handle p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_ripemd160_Sum(SWIGTYPE_p_Hash_Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_NewBlock(SWIGTYPE_p_Block__Handle p0, ulong p1, SWIGTYPE_p_a_32__GoUint8_ p2, SWIGTYPE_p_Transactions__Handle p3, SWIGTYPE_p_FeeCalculator p4, SWIGTYPE_p_Block__Handle p5) { + uint ret = skycoinPINVOKE.SKY_coin_NewBlock(SWIGTYPE_p_Block__Handle.getCPtr(p0), p1, SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2), SWIGTYPE_p_Transactions__Handle.getCPtr(p3), SWIGTYPE_p_FeeCalculator.getCPtr(p4), SWIGTYPE_p_Block__Handle.getCPtr(p5)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_SignedBlock_VerifySignature(coin__SignedBlock p0, SWIGTYPE_p_a_33__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_SignedBlock_VerifySignature(coin__SignedBlock.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_NewGenesisBlock(cipher__Address p0, ulong p1, ulong p2, SWIGTYPE_p_Block__Handle p3) { + uint ret = skycoinPINVOKE.SKY_coin_NewGenesisBlock(cipher__Address.getCPtr(p0), p1, p2, SWIGTYPE_p_Block__Handle.getCPtr(p3)); + return ret; + } + + public static uint SKY_coin_Block_HashHeader(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Block_HashHeader(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Block_PreHashHeader(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Block_PreHashHeader(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Block_Time(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Block_Time(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Block_Seq(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Block_Seq(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Block_HashBody(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Block_HashBody(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Block_Size(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Block_Size(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Block_String(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Block_String(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Block_GetTransaction(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_Transaction__Handle p2, SWIGTYPE_p_unsigned_char p3) { + uint ret = skycoinPINVOKE.SKY_coin_Block_GetTransaction(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_Transaction__Handle.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_NewBlockHeader(coin__BlockHeader p0, SWIGTYPE_p_a_32__GoUint8_ p1, ulong p2, ulong p3, SWIGTYPE_p_BlockBody__Handle p4, coin__BlockHeader p5) { + uint ret = skycoinPINVOKE.SKY_coin_NewBlockHeader(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), p2, p3, SWIGTYPE_p_BlockBody__Handle.getCPtr(p4), coin__BlockHeader.getCPtr(p5)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_BlockHeader_Hash(coin__BlockHeader p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_BlockHeader_Hash(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_BlockHeader_Bytes(coin__BlockHeader p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_BlockHeader_Bytes(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_BlockHeader_String(coin__BlockHeader p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_BlockHeader_String(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_BlockBody_Hash(SWIGTYPE_p_BlockBody__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Hash(SWIGTYPE_p_BlockBody__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_BlockBody_Size(SWIGTYPE_p_BlockBody__Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Size(SWIGTYPE_p_BlockBody__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_BlockBody_Bytes(SWIGTYPE_p_BlockBody__Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Bytes(SWIGTYPE_p_BlockBody__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_CreateUnspents(coin__BlockHeader p0, SWIGTYPE_p_Transaction__Handle p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_CreateUnspents(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_CreateUnspent(coin__BlockHeader p0, SWIGTYPE_p_Transaction__Handle p1, long p2, coin__UxOut p3) { + uint ret = skycoinPINVOKE.SKY_coin_CreateUnspent(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), p2, coin__UxOut.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_GetBlockObject(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_p_coin__Block p1) { + uint ret = skycoinPINVOKE.SKY_coin_GetBlockObject(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_p_coin__Block.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_GetBlockBody(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_BlockBody__Handle p1) { + uint ret = skycoinPINVOKE.SKY_coin_GetBlockBody(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_BlockBody__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_NewEmptyBlock(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_Block__Handle p1) { + uint ret = skycoinPINVOKE.SKY_coin_NewEmptyBlock(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_Block__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_CreateAddresses(_GoString_ p0, _GoString_ p1, long p2, byte p3, SWIGTYPE_p_ReadableWallet__Handle p4) { + uint ret = skycoinPINVOKE.SKY_wallet_CreateAddresses(_GoString_.getCPtr(p0), _GoString_.getCPtr(p1), p2, p3, SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p4)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_GetSkycoinWalletEntry(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_ReadableEntry__Handle p2) { + uint ret = skycoinPINVOKE.SKY_wallet_GetSkycoinWalletEntry(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p2)); + return ret; + } + + public static uint SKY_wallet_GetBitcoinWalletEntry(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_ReadableEntry__Handle p2) { + uint ret = skycoinPINVOKE.SKY_wallet_GetBitcoinWalletEntry(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p2)); + return ret; + } + + public static uint SKY_map_Get(SWIGTYPE_p_GoStringMap_ p0, _GoString_ p1, SWIGTYPE_p_GoString_ p2) { + uint ret = skycoinPINVOKE.SKY_map_Get(SWIGTYPE_p_GoStringMap_.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static byte SKY_map_HasKey(SWIGTYPE_p_GoStringMap_ p0, _GoString_ p1) { + byte ret = skycoinPINVOKE.SKY_map_HasKey(SWIGTYPE_p_GoStringMap_.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_map_Close(SWIGTYPE_p_GoStringMap_ p0) { + uint ret = skycoinPINVOKE.SKY_map_Close(SWIGTYPE_p_GoStringMap_.getCPtr(p0)); + return ret; + } + + public static uint SKY_logging_EnableColors() { + uint ret = skycoinPINVOKE.SKY_logging_EnableColors(); + return ret; + } + + public static uint SKY_logging_DisableColors() { + uint ret = skycoinPINVOKE.SKY_logging_DisableColors(); + return ret; + } + + public static uint SKY_logging_Disable() { + uint ret = skycoinPINVOKE.SKY_logging_Disable(); + return ret; + } + + public static uint SKY_cli_GenerateWallet(_GoString_ p0, SWIGTYPE_p_Options__Handle p1, ulong p2, SWIGTYPE_p_Wallet__Handle p3) { + uint ret = skycoinPINVOKE.SKY_cli_GenerateWallet(_GoString_.getCPtr(p0), SWIGTYPE_p_Options__Handle.getCPtr(p1), p2, SWIGTYPE_p_Wallet__Handle.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cli_MakeAlphanumericSeed(SWIGTYPE_p_GoString_ p0) { + uint ret = skycoinPINVOKE.SKY_cli_MakeAlphanumericSeed(SWIGTYPE_p_GoString_.getCPtr(p0)); + return ret; + } + + public static uint SKY_secp256k1go_Signature_Create(SWIGTYPE_p_Signature_Handle p0) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Create(SWIGTYPE_p_Signature_Handle.getCPtr(p0)); + return ret; + } + + public static uint SKY_secp256k1go_Signature_GetR(SWIGTYPE_p_Signature_Handle p0, SWIGTYPE_p_Number_Handle p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_GetR(SWIGTYPE_p_Signature_Handle.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_Signature_GetS(SWIGTYPE_p_Signature_Handle p0, SWIGTYPE_p_Number_Handle p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_GetS(SWIGTYPE_p_Signature_Handle.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_Signature_Print(SWIGTYPE_p_Signature_Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Print(SWIGTYPE_p_Signature_Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_Signature_Verify(SWIGTYPE_p_Signature_Handle p0, secp256k1go__XY p1, SWIGTYPE_p_Number_Handle p2, SWIGTYPE_p_unsigned_char p3) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Verify(SWIGTYPE_p_Signature_Handle.getCPtr(p0), secp256k1go__XY.getCPtr(p1), SWIGTYPE_p_Number_Handle.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_Signature_Recover(SWIGTYPE_p_Signature_Handle p0, secp256k1go__XY p1, SWIGTYPE_p_Number_Handle p2, long p3, SWIGTYPE_p_unsigned_char p4) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Recover(SWIGTYPE_p_Signature_Handle.getCPtr(p0), secp256k1go__XY.getCPtr(p1), SWIGTYPE_p_Number_Handle.getCPtr(p2), p3, SWIGTYPE_p_unsigned_char.getCPtr(p4)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_Signature_Sign(SWIGTYPE_p_Signature_Handle p0, SWIGTYPE_p_Number_Handle p1, SWIGTYPE_p_Number_Handle p2, SWIGTYPE_p_Number_Handle p3, SWIGTYPE_p_long_long p4, SWIGTYPE_p_long_long p5) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Sign(SWIGTYPE_p_Signature_Handle.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1), SWIGTYPE_p_Number_Handle.getCPtr(p2), SWIGTYPE_p_Number_Handle.getCPtr(p3), SWIGTYPE_p_long_long.getCPtr(p4), SWIGTYPE_p_long_long.getCPtr(p5)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_Signature_ParseBytes(SWIGTYPE_p_Signature_Handle p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_ParseBytes(SWIGTYPE_p_Signature_Handle.getCPtr(p0), GoSlice.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_Signature_Bytes(SWIGTYPE_p_Signature_Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Bytes(SWIGTYPE_p_Signature_Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_Number_Create(SWIGTYPE_p_Number_Handle p0) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_Create(SWIGTYPE_p_Number_Handle.getCPtr(p0)); + return ret; + } + + public static uint SKY_secp256k1go_Number_Print(SWIGTYPE_p_Number_Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_Print(SWIGTYPE_p_Number_Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_Number_SetHex(SWIGTYPE_p_Number_Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_SetHex(SWIGTYPE_p_Number_Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_Number_IsOdd(SWIGTYPE_p_Number_Handle p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_IsOdd(SWIGTYPE_p_Number_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_Number_IsEqual(SWIGTYPE_p_Number_Handle p0, SWIGTYPE_p_Number_Handle p1, SWIGTYPE_p_unsigned_char p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_IsEqual(SWIGTYPE_p_Number_Handle.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static void SKY_wallet_CreateOptionsHandle(_GoString_ p0, _GoString_ p1, _GoString_ p2, byte p3, _GoString_ p4, _GoString_ p5, ulong p6, SWIGTYPE_p_Options__Handle p7) { + skycoinPINVOKE.SKY_wallet_CreateOptionsHandle(_GoString_.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), p3, _GoString_.getCPtr(p4), _GoString_.getCPtr(p5), p6, SWIGTYPE_p_Options__Handle.getCPtr(p7)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + + public static uint SKY_secp256k1go_XY_Print(secp256k1go__XY p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_Print(secp256k1go__XY.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_XY_ParsePubkey(secp256k1go__XY p0, GoSlice p1, SWIGTYPE_p_unsigned_char p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_ParsePubkey(secp256k1go__XY.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_XY_Bytes(secp256k1go__XY p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_Bytes(secp256k1go__XY.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_XY_BytesUncompressed(secp256k1go__XY p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_BytesUncompressed(secp256k1go__XY.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_XY_SetXY(secp256k1go__XY p0, secp256k1go__Field p1, secp256k1go__Field p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_SetXY(secp256k1go__XY.getCPtr(p0), secp256k1go__Field.getCPtr(p1), secp256k1go__Field.getCPtr(p2)); + return ret; + } + + public static uint SKY_secp256k1go_XY_IsValid(secp256k1go__XY p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_IsValid(secp256k1go__XY.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_XY_SetXYZ(secp256k1go__XY p0, secp256k1go__XYZ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_SetXYZ(secp256k1go__XY.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_XY_Neg(secp256k1go__XY p0, secp256k1go__XY p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_Neg(secp256k1go__XY.getCPtr(p0), secp256k1go__XY.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_XY_SetXO(secp256k1go__XY p0, secp256k1go__Field p1, byte p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_SetXO(secp256k1go__XY.getCPtr(p0), secp256k1go__Field.getCPtr(p1), p2); + return ret; + } + + public static uint SKY_secp256k1go_XY_AddXY(secp256k1go__XY p0, secp256k1go__XY p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_AddXY(secp256k1go__XY.getCPtr(p0), secp256k1go__XY.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_XY_GetPublicKey(secp256k1go__XY p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_GetPublicKey(secp256k1go__XY.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_wallet_Entry_Verify(wallet__Entry p0) { + uint ret = skycoinPINVOKE.SKY_wallet_Entry_Verify(wallet__Entry.getCPtr(p0)); + return ret; + } + + public static uint SKY_wallet_Entry_VerifyPublic(wallet__Entry p0) { + uint ret = skycoinPINVOKE.SKY_wallet_Entry_VerifyPublic(wallet__Entry.getCPtr(p0)); + return ret; + } + + public static uint SKY_wallet_CryptoTypeFromString(_GoString_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_CryptoTypeFromString(_GoString_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + +} + +} diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs new file mode 100644 index 00000000..dfa95748 --- /dev/null +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -0,0 +1,2610 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +class skycoinPINVOKE { + + protected class SWIGExceptionHelper { + + public delegate void ExceptionDelegate(string message); + public delegate void ExceptionArgumentDelegate(string message, string paramName); + + static ExceptionDelegate applicationDelegate = new ExceptionDelegate(SetPendingApplicationException); + static ExceptionDelegate arithmeticDelegate = new ExceptionDelegate(SetPendingArithmeticException); + static ExceptionDelegate divideByZeroDelegate = new ExceptionDelegate(SetPendingDivideByZeroException); + static ExceptionDelegate indexOutOfRangeDelegate = new ExceptionDelegate(SetPendingIndexOutOfRangeException); + static ExceptionDelegate invalidCastDelegate = new ExceptionDelegate(SetPendingInvalidCastException); + static ExceptionDelegate invalidOperationDelegate = new ExceptionDelegate(SetPendingInvalidOperationException); + static ExceptionDelegate ioDelegate = new ExceptionDelegate(SetPendingIOException); + static ExceptionDelegate nullReferenceDelegate = new ExceptionDelegate(SetPendingNullReferenceException); + static ExceptionDelegate outOfMemoryDelegate = new ExceptionDelegate(SetPendingOutOfMemoryException); + static ExceptionDelegate overflowDelegate = new ExceptionDelegate(SetPendingOverflowException); + static ExceptionDelegate systemDelegate = new ExceptionDelegate(SetPendingSystemException); + + static ExceptionArgumentDelegate argumentDelegate = new ExceptionArgumentDelegate(SetPendingArgumentException); + static ExceptionArgumentDelegate argumentNullDelegate = new ExceptionArgumentDelegate(SetPendingArgumentNullException); + static ExceptionArgumentDelegate argumentOutOfRangeDelegate = new ExceptionArgumentDelegate(SetPendingArgumentOutOfRangeException); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="SWIGRegisterExceptionCallbacks_skycoin")] + public static extern void SWIGRegisterExceptionCallbacks_skycoin( + ExceptionDelegate applicationDelegate, + ExceptionDelegate arithmeticDelegate, + ExceptionDelegate divideByZeroDelegate, + ExceptionDelegate indexOutOfRangeDelegate, + ExceptionDelegate invalidCastDelegate, + ExceptionDelegate invalidOperationDelegate, + ExceptionDelegate ioDelegate, + ExceptionDelegate nullReferenceDelegate, + ExceptionDelegate outOfMemoryDelegate, + ExceptionDelegate overflowDelegate, + ExceptionDelegate systemExceptionDelegate); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="SWIGRegisterExceptionArgumentCallbacks_skycoin")] + public static extern void SWIGRegisterExceptionCallbacksArgument_skycoin( + ExceptionArgumentDelegate argumentDelegate, + ExceptionArgumentDelegate argumentNullDelegate, + ExceptionArgumentDelegate argumentOutOfRangeDelegate); + + static void SetPendingApplicationException(string message) { + SWIGPendingException.Set(new global::System.ApplicationException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingArithmeticException(string message) { + SWIGPendingException.Set(new global::System.ArithmeticException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingDivideByZeroException(string message) { + SWIGPendingException.Set(new global::System.DivideByZeroException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingIndexOutOfRangeException(string message) { + SWIGPendingException.Set(new global::System.IndexOutOfRangeException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingInvalidCastException(string message) { + SWIGPendingException.Set(new global::System.InvalidCastException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingInvalidOperationException(string message) { + SWIGPendingException.Set(new global::System.InvalidOperationException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingIOException(string message) { + SWIGPendingException.Set(new global::System.IO.IOException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingNullReferenceException(string message) { + SWIGPendingException.Set(new global::System.NullReferenceException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingOutOfMemoryException(string message) { + SWIGPendingException.Set(new global::System.OutOfMemoryException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingOverflowException(string message) { + SWIGPendingException.Set(new global::System.OverflowException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingSystemException(string message) { + SWIGPendingException.Set(new global::System.SystemException(message, SWIGPendingException.Retrieve())); + } + + static void SetPendingArgumentException(string message, string paramName) { + SWIGPendingException.Set(new global::System.ArgumentException(message, paramName, SWIGPendingException.Retrieve())); + } + static void SetPendingArgumentNullException(string message, string paramName) { + global::System.Exception e = SWIGPendingException.Retrieve(); + if (e != null) message = message + " Inner Exception: " + e.Message; + SWIGPendingException.Set(new global::System.ArgumentNullException(paramName, message)); + } + static void SetPendingArgumentOutOfRangeException(string message, string paramName) { + global::System.Exception e = SWIGPendingException.Retrieve(); + if (e != null) message = message + " Inner Exception: " + e.Message; + SWIGPendingException.Set(new global::System.ArgumentOutOfRangeException(paramName, message)); + } + + static SWIGExceptionHelper() { + SWIGRegisterExceptionCallbacks_skycoin( + applicationDelegate, + arithmeticDelegate, + divideByZeroDelegate, + indexOutOfRangeDelegate, + invalidCastDelegate, + invalidOperationDelegate, + ioDelegate, + nullReferenceDelegate, + outOfMemoryDelegate, + overflowDelegate, + systemDelegate); + + SWIGRegisterExceptionCallbacksArgument_skycoin( + argumentDelegate, + argumentNullDelegate, + argumentOutOfRangeDelegate); + } + } + + protected static SWIGExceptionHelper swigExceptionHelper = new SWIGExceptionHelper(); + + public class SWIGPendingException { + [global::System.ThreadStatic] + private static global::System.Exception pendingException = null; + private static int numExceptionsPending = 0; + + public static bool Pending { + get { + bool pending = false; + if (numExceptionsPending > 0) + if (pendingException != null) + pending = true; + return pending; + } + } + + public static void Set(global::System.Exception e) { + if (pendingException != null) + throw new global::System.ApplicationException("FATAL: An earlier pending exception from unmanaged code was missed and thus not thrown (" + pendingException.ToString() + ")", e); + pendingException = e; + lock(typeof(skycoinPINVOKE)) { + numExceptionsPending++; + } + } + + public static global::System.Exception Retrieve() { + global::System.Exception e = null; + if (numExceptionsPending > 0) { + if (pendingException != null) { + e = pendingException; + pendingException = null; + lock(typeof(skycoinPINVOKE)) { + numExceptionsPending--; + } + } + } + return e; + } + } + + + protected class SWIGStringHelper { + + public delegate string SWIGStringDelegate(string message); + static SWIGStringDelegate stringDelegate = new SWIGStringDelegate(CreateString); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="SWIGRegisterStringCallback_skycoin")] + public static extern void SWIGRegisterStringCallback_skycoin(SWIGStringDelegate stringDelegate); + + static string CreateString(string cString) { + return cString; + } + + static SWIGStringHelper() { + SWIGRegisterStringCallback_skycoin(stringDelegate); + } + } + + static protected SWIGStringHelper swigStringHelper = new SWIGStringHelper(); + + + static skycoinPINVOKE() { + } + + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_destroy_cipher_SecKeys")] + public static extern void destroy_cipher_SecKeys(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_equalSlices")] + public static extern int equalSlices(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_equalTransactions")] + public static extern int equalTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_equalTransactionsArrays")] + public static extern int equalTransactionsArrays(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_equalBlockHeaders")] + public static extern int equalBlockHeaders(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKey_isEqual")] + public static extern int cipher_PubKey_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKey_assignFrom")] + public static extern void cipher_PubKey_assignFrom(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKey_assignTo")] + public static extern void cipher_PubKey_assignTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKey_data_set")] + public static extern void cipher_PubKey_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKey_data_get")] + public static extern global::System.IntPtr cipher_PubKey_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_PubKey")] + public static extern global::System.IntPtr new_cipher_PubKey(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_PubKey")] + public static extern void delete_cipher_PubKey(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKey_isEqual")] + public static extern int cipher_SecKey_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKey_assignFrom")] + public static extern void cipher_SecKey_assignFrom(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKey_assignTo")] + public static extern void cipher_SecKey_assignTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKey_data_set")] + public static extern void cipher_SecKey_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKey_data_get")] + public static extern global::System.IntPtr cipher_SecKey_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_SecKey")] + public static extern global::System.IntPtr new_cipher_SecKey(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_SecKey")] + public static extern void delete_cipher_SecKey(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Ripemd160_isEqual")] + public static extern int cipher_Ripemd160_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Ripemd160_assignFrom")] + public static extern void cipher_Ripemd160_assignFrom(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Ripemd160_assignTo")] + public static extern void cipher_Ripemd160_assignTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Ripemd160_data_set")] + public static extern void cipher_Ripemd160_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Ripemd160_data_get")] + public static extern global::System.IntPtr cipher_Ripemd160_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_Ripemd160")] + public static extern global::System.IntPtr new_cipher_Ripemd160(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_Ripemd160")] + public static extern void delete_cipher_Ripemd160(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Sig_isEqual")] + public static extern int cipher_Sig_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Sig_assignFrom")] + public static extern void cipher_Sig_assignFrom(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Sig_assignTo")] + public static extern void cipher_Sig_assignTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Sig_data_set")] + public static extern void cipher_Sig_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Sig_data_get")] + public static extern global::System.IntPtr cipher_Sig_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_Sig")] + public static extern global::System.IntPtr new_cipher_Sig(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_Sig")] + public static extern void delete_cipher_Sig(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256_isEqual")] + public static extern int cipher_SHA256_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256_assignFrom")] + public static extern void cipher_SHA256_assignFrom(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256_assignTo")] + public static extern void cipher_SHA256_assignTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256_data_set")] + public static extern void cipher_SHA256_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256_data_get")] + public static extern global::System.IntPtr cipher_SHA256_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_SHA256")] + public static extern global::System.IntPtr new_cipher_SHA256(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_SHA256")] + public static extern void delete_cipher_SHA256(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Checksum_isEqual")] + public static extern int cipher_Checksum_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Checksum_assignFrom")] + public static extern void cipher_Checksum_assignFrom(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Checksum_assignTo")] + public static extern void cipher_Checksum_assignTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Checksum_data_set")] + public static extern void cipher_Checksum_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Checksum_data_get")] + public static extern global::System.IntPtr cipher_Checksum_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_Checksum")] + public static extern global::System.IntPtr new_cipher_Checksum(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_Checksum")] + public static extern void delete_cipher_Checksum(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeys_getAt")] + public static extern global::System.IntPtr cipher_SecKeys_getAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeys_setAt")] + public static extern int cipher_SecKeys_setAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeys_isEqual")] + public static extern int cipher_SecKeys_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeys_allocate")] + public static extern void cipher_SecKeys_allocate(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeys_release")] + public static extern void cipher_SecKeys_release(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeys_data_set")] + public static extern void cipher_SecKeys_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeys_data_get")] + public static extern global::System.IntPtr cipher_SecKeys_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeys_count_set")] + public static extern void cipher_SecKeys_count_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeys_count_get")] + public static extern int cipher_SecKeys_count_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_SecKeys")] + public static extern global::System.IntPtr new_cipher_SecKeys(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_SecKeys")] + public static extern void delete_cipher_SecKeys(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeys_getAt")] + public static extern global::System.IntPtr cipher_PubKeys_getAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeys_setAt")] + public static extern int cipher_PubKeys_setAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeys_isEqual")] + public static extern int cipher_PubKeys_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeys_allocate")] + public static extern void cipher_PubKeys_allocate(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeys_release")] + public static extern void cipher_PubKeys_release(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeys_data_set")] + public static extern void cipher_PubKeys_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeys_data_get")] + public static extern global::System.IntPtr cipher_PubKeys_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeys_count_set")] + public static extern void cipher_PubKeys_count_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeys_count_get")] + public static extern int cipher_PubKeys_count_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_PubKeys")] + public static extern global::System.IntPtr new_cipher_PubKeys(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_PubKeys")] + public static extern void delete_cipher_PubKeys(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256s_getAt")] + public static extern global::System.IntPtr cipher_SHA256s_getAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256s_setAt")] + public static extern int cipher_SHA256s_setAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256s_isEqual")] + public static extern int cipher_SHA256s_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256s_allocate")] + public static extern void cipher_SHA256s_allocate(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256s_release")] + public static extern void cipher_SHA256s_release(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256s_data_set")] + public static extern void cipher_SHA256s_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256s_data_get")] + public static extern global::System.IntPtr cipher_SHA256s_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256s_count_set")] + public static extern void cipher_SHA256s_count_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256s_count_get")] + public static extern int cipher_SHA256s_count_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_SHA256s")] + public static extern global::System.IntPtr new_cipher_SHA256s(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_SHA256s")] + public static extern void delete_cipher_SHA256s(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_getAt")] + public static extern global::System.IntPtr coin_UxOutArray_getAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_setAt")] + public static extern int coin_UxOutArray_setAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_isEqual")] + public static extern int coin_UxOutArray_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_allocate")] + public static extern void coin_UxOutArray_allocate(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_release")] + public static extern void coin_UxOutArray_release(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_data_set")] + public static extern void coin_UxOutArray_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_data_get")] + public static extern global::System.IntPtr coin_UxOutArray_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_count_set")] + public static extern void coin_UxOutArray_count_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_count_get")] + public static extern int coin_UxOutArray_count_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin_UxOutArray")] + public static extern global::System.IntPtr new_coin_UxOutArray(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin_UxOutArray")] + public static extern void delete_coin_UxOutArray(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin__GoString__p_set")] + public static extern void _GoString__p_set(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin__GoString__p_get")] + public static extern string _GoString__p_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin__GoString__n_set")] + public static extern void _GoString__n_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin__GoString__n_get")] + public static extern global::System.IntPtr _GoString__n_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new__GoString_")] + public static extern global::System.IntPtr new__GoString_(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete__GoString_")] + public static extern void delete__GoString_(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoInterface_t_set")] + public static extern void GoInterface_t_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoInterface_t_get")] + public static extern global::System.IntPtr GoInterface_t_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoInterface_v_set")] + public static extern void GoInterface_v_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoInterface_v_get")] + public static extern global::System.IntPtr GoInterface_v_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_GoInterface")] + public static extern global::System.IntPtr new_GoInterface(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_GoInterface")] + public static extern void delete_GoInterface(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_data_set")] + public static extern void GoSlice_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_data_get")] + public static extern global::System.IntPtr GoSlice_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_len_set")] + public static extern void GoSlice_len_set(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_len_get")] + public static extern long GoSlice_len_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_cap_set")] + public static extern void GoSlice_cap_set(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_cap_get")] + public static extern long GoSlice_cap_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_GoSlice")] + public static extern global::System.IntPtr new_GoSlice(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_GoSlice")] + public static extern void delete_GoSlice(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_String2Hex")] + public static extern uint SKY_base58_String2Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Base58_ToInt")] + public static extern uint SKY_base58_Base58_ToInt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Base58_ToHex")] + public static extern uint SKY_base58_Base58_ToHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Base58_Base582Int")] + public static extern uint SKY_base58_Base58_Base582Int(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Base582Hex")] + public static extern uint SKY_base58_Base582Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Base58_BitHex")] + public static extern uint SKY_base58_Base58_BitHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Int2Base58")] + public static extern uint SKY_base58_Int2Base58(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Hex2Base58")] + public static extern uint SKY_base58_Hex2Base58(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Hex2Base58String")] + public static extern uint SKY_base58_Hex2Base58String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Hex2Base58Str")] + public static extern uint SKY_base58_Hex2Base58Str(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewReadableEntry")] + public static extern uint SKY_wallet_NewReadableEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_LoadReadableEntry")] + public static extern uint SKY_wallet_LoadReadableEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewReadableEntryFromPubkey")] + public static extern uint SKY_wallet_NewReadableEntryFromPubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableEntry_Save")] + public static extern uint SKY_wallet_ReadableEntry_Save(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_LoadReadableWallet")] + public static extern uint SKY_wallet_LoadReadableWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableWallet_Save")] + public static extern uint SKY_wallet_ReadableWallet_Save(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableWallet_Load")] + public static extern uint SKY_wallet_ReadableWallet_Load(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableWallet_Erase")] + public static extern uint SKY_wallet_ReadableWallet_Erase(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GetWalletOutputsFromFile")] + public static extern uint SKY_cli_GetWalletOutputsFromFile(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GetWalletOutputs")] + public static extern uint SKY_cli_GetWalletOutputs(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_String")] + public static extern uint SKY_secp256k1go_Field_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Print")] + public static extern uint SKY_secp256k1go_Field_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_SetB32")] + public static extern uint SKY_secp256k1go_Field_SetB32(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_SetBytes")] + public static extern uint SKY_secp256k1go_Field_SetBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_SetHex")] + public static extern uint SKY_secp256k1go_Field_SetHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_IsOdd")] + public static extern uint SKY_secp256k1go_Field_IsOdd(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_IsZero")] + public static extern uint SKY_secp256k1go_Field_IsZero(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_SetInt")] + public static extern uint SKY_secp256k1go_Field_SetInt(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Normalize")] + public static extern uint SKY_secp256k1go_Field_Normalize(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_GetB32")] + public static extern uint SKY_secp256k1go_Field_GetB32(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Equals")] + public static extern uint SKY_secp256k1go_Field_Equals(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_SetAdd")] + public static extern uint SKY_secp256k1go_Field_SetAdd(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_MulInt")] + public static extern uint SKY_secp256k1go_Field_MulInt(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Negate")] + public static extern uint SKY_secp256k1go_Field_Negate(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, uint jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Inv")] + public static extern uint SKY_secp256k1go_Field_Inv(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Sqrt")] + public static extern uint SKY_secp256k1go_Field_Sqrt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_InvVar")] + public static extern uint SKY_secp256k1go_Field_InvVar(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Mul")] + public static extern uint SKY_secp256k1go_Field_Mul(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Sqr")] + public static extern uint SKY_secp256k1go_Field_Sqr(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewWalletResponse")] + public static extern uint SKY_api_NewWalletResponse(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeySlice_Len")] + public static extern long SKY_cipher_PubKeySlice_Len(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeySlice_Less")] + public static extern byte SKY_cipher_PubKeySlice_Less(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeySlice_Swap")] + public static extern uint SKY_cipher_PubKeySlice_Swap(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_RandByte")] + public static extern uint SKY_cipher_RandByte(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_NewPubKey")] + public static extern uint SKY_cipher_NewPubKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_MustPubKeyFromHex")] + public static extern uint SKY_cipher_MustPubKeyFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromHex")] + public static extern uint SKY_cipher_PubKeyFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromSecKey")] + public static extern uint SKY_cipher_PubKeyFromSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromSig")] + public static extern uint SKY_cipher_PubKeyFromSig(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKey_Verify")] + public static extern uint SKY_cipher_PubKey_Verify(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKey_Hex")] + public static extern uint SKY_cipher_PubKey_Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKey_ToAddressHash")] + public static extern uint SKY_cipher_PubKey_ToAddressHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_NewSecKey")] + public static extern uint SKY_cipher_NewSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_MustSecKeyFromHex")] + public static extern uint SKY_cipher_MustSecKeyFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKeyFromHex")] + public static extern uint SKY_cipher_SecKeyFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKey_Verify")] + public static extern uint SKY_cipher_SecKey_Verify(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKey_Hex")] + public static extern uint SKY_cipher_SecKey_Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_ECDH")] + public static extern uint SKY_cipher_ECDH(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_NewSig")] + public static extern uint SKY_cipher_NewSig(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_MustSigFromHex")] + public static extern uint SKY_cipher_MustSigFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SigFromHex")] + public static extern uint SKY_cipher_SigFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Sig_Hex")] + public static extern uint SKY_cipher_Sig_Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SignHash")] + public static extern uint SKY_cipher_SignHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_ChkSig")] + public static extern uint SKY_cipher_ChkSig(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_VerifySignedHash")] + public static extern uint SKY_cipher_VerifySignedHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_VerifySignature")] + public static extern uint SKY_cipher_VerifySignature(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateKeyPair")] + public static extern uint SKY_cipher_GenerateKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPair")] + public static extern uint SKY_cipher_GenerateDeterministicKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_DeterministicKeyPairIterator")] + public static extern uint SKY_cipher_DeterministicKeyPairIterator(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairs")] + public static extern uint SKY_cipher_GenerateDeterministicKeyPairs(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairsSeed")] + public static extern uint SKY_cipher_GenerateDeterministicKeyPairsSeed(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_TestSecKey")] + public static extern uint SKY_cipher_TestSecKey(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_TestSecKeyHash")] + public static extern uint SKY_cipher_TestSecKeyHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_DecompressPoint")] + public static extern uint SKY_secp256k1go_DecompressPoint(global::System.Runtime.InteropServices.HandleRef jarg1, byte jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_RecoverPublicKey")] + public static extern uint SKY_secp256k1go_RecoverPublicKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Multiply")] + public static extern uint SKY_secp256k1go_Multiply(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_BaseMultiply")] + public static extern uint SKY_secp256k1go_BaseMultiply(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_BaseMultiplyAdd")] + public static extern uint SKY_secp256k1go_BaseMultiplyAdd(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_GeneratePublicKey")] + public static extern uint SKY_secp256k1go_GeneratePublicKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_SeckeyIsValid")] + public static extern uint SKY_secp256k1go_SeckeyIsValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_PubkeyIsValid")] + public static extern uint SKY_secp256k1go_PubkeyIsValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_file_InitDataDir")] + public static extern uint SKY_file_InitDataDir(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_file_UserHome")] + public static extern uint SKY_file_UserHome(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_file_ResolveResourceDirectory")] + public static extern uint SKY_file_ResolveResourceDirectory(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_file_DetermineResourcePath")] + public static extern uint SKY_file_DetermineResourcePath(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_SumSHA256")] + public static extern uint SKY_secp256k1_SumSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_RandByte")] + public static extern uint SKY_secp256k1_RandByte(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewCreateTransactionResponse")] + public static extern uint SKY_api_NewCreateTransactionResponse(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewCreatedTransaction")] + public static extern uint SKY_api_NewCreatedTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_CreatedTransaction_ToTransaction")] + public static extern uint SKY_api_CreatedTransaction_ToTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewCreatedTransactionOutput")] + public static extern uint SKY_api_NewCreatedTransactionOutput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewCreatedTransactionInput")] + public static extern uint SKY_api_NewCreatedTransactionInput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_browser_Open")] + public static extern uint SKY_browser_Open(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_DecodeBase58Address")] + public static extern uint SKY_cipher_DecodeBase58Address(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_MustDecodeBase58Address")] + public static extern uint SKY_cipher_MustDecodeBase58Address(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinMustDecodeBase58Address")] + public static extern uint SKY_cipher_BitcoinMustDecodeBase58Address(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddressFromBytes")] + public static extern uint SKY_cipher_AddressFromBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddressFromPubKey")] + public static extern uint SKY_cipher_AddressFromPubKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddressFromSecKey")] + public static extern uint SKY_cipher_AddressFromSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinDecodeBase58Address")] + public static extern uint SKY_cipher_BitcoinDecodeBase58Address(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_MustAddressFromBytes")] + public static extern uint SKY_cipher_MustAddressFromBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_Bytes")] + public static extern uint SKY_cipher_Address_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_Null")] + public static extern uint SKY_cipher_Address_Null(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_BitcoinBytes")] + public static extern uint SKY_cipher_Address_BitcoinBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_Verify")] + public static extern uint SKY_cipher_Address_Verify(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_String")] + public static extern uint SKY_cipher_Address_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_BitcoinString")] + public static extern uint SKY_cipher_Address_BitcoinString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_Checksum")] + public static extern uint SKY_cipher_Address_Checksum(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_BitcoinChecksum")] + public static extern uint SKY_cipher_Address_BitcoinChecksum(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinAddressFromPubkey")] + public static extern uint SKY_cipher_BitcoinAddressFromPubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinWalletImportFormatFromSeckey")] + public static extern uint SKY_cipher_BitcoinWalletImportFormatFromSeckey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinAddressFromBytes")] + public static extern uint SKY_cipher_BitcoinAddressFromBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKeyFromWalletImportFormat")] + public static extern uint SKY_cipher_SecKeyFromWalletImportFormat(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_MustSecKeyFromWalletImportFormat")] + public static extern uint SKY_cipher_MustSecKeyFromWalletImportFormat(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_testutil_MakeAddress")] + public static extern uint SKY_testutil_MakeAddress(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_CreateRawTxFromWallet")] + public static extern uint SKY_cli_CreateRawTxFromWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_CreateRawTxFromAddress")] + public static extern uint SKY_cli_CreateRawTxFromAddress(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, global::System.Runtime.InteropServices.HandleRef jarg7); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_CreateRawTx")] + public static extern uint SKY_cli_CreateRawTx(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, global::System.Runtime.InteropServices.HandleRef jarg7); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_NewTransaction")] + public static extern uint SKY_cli_NewTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_apputil_CatchInterruptPanic")] + public static extern uint SKY_apputil_CatchInterruptPanic(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_apputil_CatchDebug")] + public static extern uint SKY_apputil_CatchDebug(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_apputil_PrintProgramStatus")] + public static extern uint SKY_apputil_PrintProgramStatus(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_utc_UnixNow")] + public static extern uint SKY_utc_UnixNow(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Address_UnmarshalJSON")] + public static extern uint SKY_httphelper_Address_UnmarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Address_MarshalJSON")] + public static extern uint SKY_httphelper_Address_MarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Coins_UnmarshalJSON")] + public static extern uint SKY_httphelper_Coins_UnmarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Coins_MarshalJSON")] + public static extern uint SKY_httphelper_Coins_MarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Coins_Value")] + public static extern uint SKY_httphelper_Coins_Value(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Hours_UnmarshalJSON")] + public static extern uint SKY_httphelper_Hours_UnmarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Hours_MarshalJSON")] + public static extern uint SKY_httphelper_Hours_MarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Hours_Value")] + public static extern uint SKY_httphelper_Hours_Value(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_CheckWalletBalance")] + public static extern uint SKY_cli_CheckWalletBalance(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GetBalanceOfAddresses")] + public static extern uint SKY_cli_GetBalanceOfAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_poly1305_Verify")] + public static extern uint SKY_poly1305_Verify(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewClient")] + public static extern uint SKY_api_NewClient(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CSRF")] + public static extern uint SKY_api_Client_CSRF(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Version")] + public static extern uint SKY_api_Client_Version(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Outputs")] + public static extern uint SKY_api_Client_Outputs(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_OutputsForAddresses")] + public static extern uint SKY_api_Client_OutputsForAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_OutputsForHashes")] + public static extern uint SKY_api_Client_OutputsForHashes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CoinSupply")] + public static extern uint SKY_api_Client_CoinSupply(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_BlockByHash")] + public static extern uint SKY_api_Client_BlockByHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_BlockBySeq")] + public static extern uint SKY_api_Client_BlockBySeq(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Blocks")] + public static extern uint SKY_api_Client_Blocks(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_LastBlocks")] + public static extern uint SKY_api_Client_LastBlocks(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_BlockchainMetadata")] + public static extern uint SKY_api_Client_BlockchainMetadata(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_BlockchainProgress")] + public static extern uint SKY_api_Client_BlockchainProgress(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Balance")] + public static extern uint SKY_api_Client_Balance(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_UxOut")] + public static extern uint SKY_api_Client_UxOut(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_AddressUxOuts")] + public static extern uint SKY_api_Client_AddressUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Wallet")] + public static extern uint SKY_api_Client_Wallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Wallets")] + public static extern uint SKY_api_Client_Wallets(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CreateUnencryptedWallet")] + public static extern uint SKY_api_Client_CreateUnencryptedWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, long jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CreateEncryptedWallet")] + public static extern uint SKY_api_Client_CreateEncryptedWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, long jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NewWalletAddress")] + public static extern uint SKY_api_Client_NewWalletAddress(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_WalletBalance")] + public static extern uint SKY_api_Client_WalletBalance(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Spend")] + public static extern uint SKY_api_Client_Spend(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, ulong jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CreateTransaction")] + public static extern uint SKY_api_Client_CreateTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_WalletTransactions")] + public static extern uint SKY_api_Client_WalletTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_UpdateWallet")] + public static extern uint SKY_api_Client_UpdateWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_WalletFolderName")] + public static extern uint SKY_api_Client_WalletFolderName(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NewSeed")] + public static extern uint SKY_api_Client_NewSeed(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_GetWalletSeed")] + public static extern uint SKY_api_Client_GetWalletSeed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkConnection")] + public static extern uint SKY_api_Client_NetworkConnection(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkConnections")] + public static extern uint SKY_api_Client_NetworkConnections(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkDefaultConnections")] + public static extern uint SKY_api_Client_NetworkDefaultConnections(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkTrustedConnections")] + public static extern uint SKY_api_Client_NetworkTrustedConnections(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkExchangeableConnections")] + public static extern uint SKY_api_Client_NetworkExchangeableConnections(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_PendingTransactions")] + public static extern uint SKY_api_Client_PendingTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Transaction")] + public static extern uint SKY_api_Client_Transaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Transactions")] + public static extern uint SKY_api_Client_Transactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_ConfirmedTransactions")] + public static extern uint SKY_api_Client_ConfirmedTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_UnconfirmedTransactions")] + public static extern uint SKY_api_Client_UnconfirmedTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_InjectTransaction")] + public static extern uint SKY_api_Client_InjectTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_ResendUnconfirmedTransactions")] + public static extern uint SKY_api_Client_ResendUnconfirmedTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_RawTransaction")] + public static extern uint SKY_api_Client_RawTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_AddressTransactions")] + public static extern uint SKY_api_Client_AddressTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Richlist")] + public static extern uint SKY_api_Client_Richlist(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_AddressCount")] + public static extern uint SKY_api_Client_AddressCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_UnloadWallet")] + public static extern uint SKY_api_Client_UnloadWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Health")] + public static extern uint SKY_api_Client_Health(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_EncryptWallet")] + public static extern uint SKY_api_Client_EncryptWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_DecryptWallet")] + public static extern uint SKY_api_Client_DecryptWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_JsonEncode_Handle")] + public static extern uint SKY_JsonEncode_Handle(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Progress_GetCurrent")] + public static extern uint SKY_Handle_Progress_GetCurrent(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Block_GetHeadSeq")] + public static extern uint SKY_Handle_Block_GetHeadSeq(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Block_GetHeadHash")] + public static extern uint SKY_Handle_Block_GetHeadHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Block_GetPreviousBlockHash")] + public static extern uint SKY_Handle_Block_GetPreviousBlockHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Blocks_GetAt")] + public static extern uint SKY_Handle_Blocks_GetAt(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Blocks_GetCount")] + public static extern uint SKY_Handle_Blocks_GetCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Connections_GetCount")] + public static extern uint SKY_Handle_Connections_GetCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Strings_GetCount")] + public static extern uint SKY_Handle_Strings_GetCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Strings_Sort")] + public static extern uint SKY_Handle_Strings_Sort(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Strings_GetAt")] + public static extern uint SKY_Handle_Strings_GetAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_Client_GetWalletDir")] + public static extern uint SKY_api_Handle_Client_GetWalletDir(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_Client_GetWalletFileName")] + public static extern uint SKY_api_Handle_Client_GetWalletFileName(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_Client_GetWalletLabel")] + public static extern uint SKY_api_Handle_Client_GetWalletLabel(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_Client_GetWalletFullPath")] + public static extern uint SKY_api_Handle_Client_GetWalletFullPath(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetWalletMeta")] + public static extern uint SKY_api_Handle_GetWalletMeta(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetWalletEntriesCount")] + public static extern uint SKY_api_Handle_GetWalletEntriesCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_Client_GetWalletResponseEntriesCount")] + public static extern uint SKY_api_Handle_Client_GetWalletResponseEntriesCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletGetEntry")] + public static extern uint SKY_api_Handle_WalletGetEntry(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletResponseGetEntry")] + public static extern uint SKY_api_Handle_WalletResponseGetEntry(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletResponseIsEncrypted")] + public static extern uint SKY_api_Handle_WalletResponseIsEncrypted(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletResponseGetCryptoType")] + public static extern uint SKY_api_Handle_WalletResponseGetCryptoType(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletsResponseGetCount")] + public static extern uint SKY_api_Handle_WalletsResponseGetCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletsResponseGetAt")] + public static extern uint SKY_api_Handle_WalletsResponseGetAt(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetWalletFolderAddress")] + public static extern uint SKY_api_Handle_GetWalletFolderAddress(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetWalletSeed")] + public static extern uint SKY_api_Handle_GetWalletSeed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetWalletLastSeed")] + public static extern uint SKY_api_Handle_GetWalletLastSeed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetBuildInfoData")] + public static extern uint SKY_api_Handle_GetBuildInfoData(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_GenerateKeyPair")] + public static extern uint SKY_secp256k1_GenerateKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_PubkeyFromSeckey")] + public static extern uint SKY_secp256k1_PubkeyFromSeckey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_UncompressPubkey")] + public static extern uint SKY_secp256k1_UncompressPubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_UncompressedPubkeyFromSeckey")] + public static extern uint SKY_secp256k1_UncompressedPubkeyFromSeckey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_Secp256k1Hash")] + public static extern uint SKY_secp256k1_Secp256k1Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_GenerateDeterministicKeyPair")] + public static extern uint SKY_secp256k1_GenerateDeterministicKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_DeterministicKeyPairIterator")] + public static extern uint SKY_secp256k1_DeterministicKeyPairIterator(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_Sign")] + public static extern uint SKY_secp256k1_Sign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_SignDeterministic")] + public static extern uint SKY_secp256k1_SignDeterministic(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_VerifySeckey")] + public static extern uint SKY_secp256k1_VerifySeckey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_VerifyPubkey")] + public static extern uint SKY_secp256k1_VerifyPubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_VerifySignatureValidity")] + public static extern uint SKY_secp256k1_VerifySignatureValidity(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_VerifySignature")] + public static extern uint SKY_secp256k1_VerifySignature(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_SignatureErrorString")] + public static extern uint SKY_secp256k1_SignatureErrorString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_RecoverPubkey")] + public static extern uint SKY_secp256k1_RecoverPubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_ECDH")] + public static extern uint SKY_secp256k1_ECDH(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cert_CreateCertIfNotExists")] + public static extern uint SKY_cert_CreateCertIfNotExists(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_VerifyTransactionFee")] + public static extern uint SKY_fee_VerifyTransactionFee(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_VerifyTransactionFeeForHours")] + public static extern uint SKY_fee_VerifyTransactionFeeForHours(ulong jarg1, ulong jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_RequiredFee")] + public static extern uint SKY_fee_RequiredFee(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_RemainingHours")] + public static extern uint SKY_fee_RemainingHours(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_TransactionFee")] + public static extern uint SKY_fee_TransactionFee(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_iputil_LocalhostIP")] + public static extern uint SKY_iputil_LocalhostIP(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_iputil_IsLocalhost")] + public static extern uint SKY_iputil_IsLocalhost(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_iputil_SplitAddr")] + public static extern uint SKY_iputil_SplitAddr(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Ripemd160_Set")] + public static extern uint SKY_cipher_Ripemd160_Set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_HashRipemd160")] + public static extern uint SKY_cipher_HashRipemd160(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Set")] + public static extern uint SKY_cipher_SHA256_Set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Hex")] + public static extern uint SKY_cipher_SHA256_Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Xor")] + public static extern uint SKY_cipher_SHA256_Xor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SumSHA256")] + public static extern uint SKY_cipher_SumSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256FromHex")] + public static extern uint SKY_cipher_SHA256FromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_DoubleSHA256")] + public static extern uint SKY_cipher_DoubleSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddSHA256")] + public static extern uint SKY_cipher_AddSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Merkle")] + public static extern uint SKY_cipher_Merkle(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_MustSumSHA256")] + public static extern uint SKY_cipher_MustSumSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Null")] + public static extern uint SKY_cipher_SHA256_Null(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Create_Transaction")] + public static extern uint SKY_coin_Create_Transaction(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Copy")] + public static extern uint SKY_coin_Transaction_Copy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetTransactionObject")] + public static extern uint SKY_coin_GetTransactionObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_ResetInputs")] + public static extern uint SKY_coin_Transaction_ResetInputs(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetInputsCount")] + public static extern uint SKY_coin_Transaction_GetInputsCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetInputAt")] + public static extern uint SKY_coin_Transaction_GetInputAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SetInputAt")] + public static extern uint SKY_coin_Transaction_SetInputAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetOutputsCount")] + public static extern uint SKY_coin_Transaction_GetOutputsCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetOutputAt")] + public static extern uint SKY_coin_Transaction_GetOutputAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SetOutputAt")] + public static extern uint SKY_coin_Transaction_SetOutputAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetSignaturesCount")] + public static extern uint SKY_coin_Transaction_GetSignaturesCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetSignatureAt")] + public static extern uint SKY_coin_Transaction_GetSignatureAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SetSignatureAt")] + public static extern uint SKY_coin_Transaction_SetSignatureAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_PushSignature")] + public static extern uint SKY_coin_Transaction_PushSignature(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_ResetOutputs")] + public static extern uint SKY_coin_Transaction_ResetOutputs(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_ResetSignatures")] + public static extern uint SKY_coin_Transaction_ResetSignatures(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Verify")] + public static extern uint SKY_coin_Transaction_Verify(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_VerifyInput")] + public static extern uint SKY_coin_Transaction_VerifyInput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_PushInput")] + public static extern uint SKY_coin_Transaction_PushInput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_TransactionOutput_UxID")] + public static extern uint SKY_coin_TransactionOutput_UxID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_PushOutput")] + public static extern uint SKY_coin_Transaction_PushOutput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, ulong jarg3, ulong jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SignInputs")] + public static extern uint SKY_coin_Transaction_SignInputs(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Size")] + public static extern uint SKY_coin_Transaction_Size(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Hash")] + public static extern uint SKY_coin_Transaction_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SizeHash")] + public static extern uint SKY_coin_Transaction_SizeHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_TxID")] + public static extern uint SKY_coin_Transaction_TxID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_TxIDHex")] + public static extern uint SKY_coin_Transaction_TxIDHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_UpdateHeader")] + public static extern uint SKY_coin_Transaction_UpdateHeader(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_HashInner")] + public static extern uint SKY_coin_Transaction_HashInner(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Serialize")] + public static extern uint SKY_coin_Transaction_Serialize(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_MustTransactionDeserialize")] + public static extern uint SKY_coin_MustTransactionDeserialize(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_TransactionDeserialize")] + public static extern uint SKY_coin_TransactionDeserialize(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_OutputHours")] + public static extern uint SKY_coin_Transaction_OutputHours(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Create_Transactions")] + public static extern uint SKY_coin_Create_Transactions(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetTransactionsObject")] + public static extern uint SKY_coin_GetTransactionsObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Length")] + public static extern uint SKY_coin_Transactions_Length(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Add")] + public static extern uint SKY_coin_Transactions_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Fees")] + public static extern uint SKY_coin_Transactions_Fees(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_GetAt")] + public static extern uint SKY_coin_Transactions_GetAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Hashes")] + public static extern uint SKY_coin_Transactions_Hashes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Size")] + public static extern uint SKY_coin_Transactions_Size(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_TruncateBytesTo")] + public static extern uint SKY_coin_Transactions_TruncateBytesTo(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SortTransactions")] + public static extern uint SKY_coin_SortTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewSortableTransactions")] + public static extern uint SKY_coin_NewSortableTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SortableTransactions_Sort")] + public static extern uint SKY_coin_SortableTransactions_Sort(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SortableTransactions_Len")] + public static extern uint SKY_coin_SortableTransactions_Len(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SortableTransactions_Less")] + public static extern uint SKY_coin_SortableTransactions_Less(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SortableTransactions_Swap")] + public static extern uint SKY_coin_SortableTransactions_Swap(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_VerifyTransactionCoinsSpending")] + public static extern uint SKY_coin_VerifyTransactionCoinsSpending(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_VerifyTransactionHoursSpending")] + public static extern uint SKY_coin_VerifyTransactionHoursSpending(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encrypt_Sha256Xor_Encrypt")] + public static extern uint SKY_encrypt_Sha256Xor_Encrypt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encrypt_Sha256Xor_Decrypt")] + public static extern uint SKY_encrypt_Sha256Xor_Decrypt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GenerateAddressesInFile")] + public static extern uint SKY_cli_GenerateAddressesInFile(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_FormatAddressesAsJSON")] + public static extern uint SKY_cli_FormatAddressesAsJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_FormatAddressesAsJoinedArray")] + public static extern uint SKY_cli_FormatAddressesAsJoinedArray(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_AddressesToStrings")] + public static extern uint SKY_cli_AddressesToStrings(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_LoadConfig")] + public static extern uint SKY_cli_LoadConfig(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Config_FullWalletPath")] + public static extern uint SKY_cli_Config_FullWalletPath(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Config_FullDBPath")] + public static extern uint SKY_cli_Config_FullDBPath(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_NewApp")] + public static extern uint SKY_cli_NewApp(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_RPCClientFromContext")] + public static extern uint SKY_cli_RPCClientFromContext(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_ConfigFromContext")] + public static extern uint SKY_cli_ConfigFromContext(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_PasswordFromBytes_Password")] + public static extern uint SKY_cli_PasswordFromBytes_Password(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_PasswordFromTerm_Password")] + public static extern uint SKY_cli_PasswordFromTerm_Password(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_handle_close")] + public static extern void SKY_handle_close(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_handle_copy")] + public static extern uint SKY_handle_copy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encoder_StructField_String")] + public static extern uint SKY_encoder_StructField_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encoder_ParseFields")] + public static extern uint SKY_encoder_ParseFields(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxOut_Hash")] + public static extern uint SKY_coin_UxOut_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxOut_SnapshotHash")] + public static extern uint SKY_coin_UxOut_SnapshotHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxBody_Hash")] + public static extern uint SKY_coin_UxBody_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxOut_CoinHours")] + public static extern uint SKY_coin_UxOut_CoinHours(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Hashes")] + public static extern uint SKY_coin_UxArray_Hashes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_HasDupes")] + public static extern uint SKY_coin_UxArray_HasDupes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Sort")] + public static extern uint SKY_coin_UxArray_Sort(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Len")] + public static extern uint SKY_coin_UxArray_Len(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Less")] + public static extern uint SKY_coin_UxArray_Less(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Swap")] + public static extern uint SKY_coin_UxArray_Swap(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Coins")] + public static extern uint SKY_coin_UxArray_Coins(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_CoinHours")] + public static extern uint SKY_coin_UxArray_CoinHours(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Sub")] + public static extern uint SKY_coin_UxArray_Sub(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Add")] + public static extern uint SKY_coin_UxArray_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewAddressUxOuts")] + public static extern uint SKY_coin_NewAddressUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Keys")] + public static extern uint SKY_coin_AddressUxOuts_Keys(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Flatten")] + public static extern uint SKY_coin_AddressUxOuts_Flatten(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Sub")] + public static extern uint SKY_coin_AddressUxOuts_Sub(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Add")] + public static extern uint SKY_coin_AddressUxOuts_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Get")] + public static extern uint SKY_coin_AddressUxOuts_Get(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_HasKey")] + public static extern uint SKY_coin_AddressUxOuts_HasKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_GetOutputLength")] + public static extern uint SKY_coin_AddressUxOuts_GetOutputLength(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Length")] + public static extern uint SKY_coin_AddressUxOuts_Length(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Set")] + public static extern uint SKY_coin_AddressUxOuts_Set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_scrypt_Key")] + public static extern uint SKY_scrypt_Key(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, long jarg4, long jarg5, long jarg6, global::System.Runtime.InteropServices.HandleRef jarg7); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewError")] + public static extern uint SKY_wallet_NewError(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewWallet")] + public static extern uint SKY_wallet_NewWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Lock")] + public static extern uint SKY_wallet_Wallet_Lock(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Unlock")] + public static extern uint SKY_wallet_Wallet_Unlock(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Load")] + public static extern uint SKY_wallet_Load(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Save")] + public static extern uint SKY_wallet_Wallet_Save(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Validate")] + public static extern uint SKY_wallet_Wallet_Validate(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Type")] + public static extern uint SKY_wallet_Wallet_Type(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Version")] + public static extern uint SKY_wallet_Wallet_Version(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Filename")] + public static extern uint SKY_wallet_Wallet_Filename(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Label")] + public static extern uint SKY_wallet_Wallet_Label(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_IsEncrypted")] + public static extern uint SKY_wallet_Wallet_IsEncrypted(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_GenerateAddresses")] + public static extern uint SKY_wallet_Wallet_GenerateAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_GetAddresses")] + public static extern uint SKY_wallet_Wallet_GetAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_GetEntry")] + public static extern uint SKY_wallet_Wallet_GetEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_AddEntry")] + public static extern uint SKY_wallet_Wallet_AddEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_DistributeSpendHours")] + public static extern uint SKY_wallet_DistributeSpendHours(ulong jarg1, ulong jarg2, byte jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_DistributeCoinHoursProportional")] + public static extern uint SKY_wallet_DistributeCoinHoursProportional(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewUxBalances")] + public static extern uint SKY_wallet_NewUxBalances(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewUxBalance")] + public static extern uint SKY_wallet_NewUxBalance(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ChooseSpendsMinimizeUxOuts")] + public static extern uint SKY_wallet_ChooseSpendsMinimizeUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ChooseSpendsMaximizeUxOuts")] + public static extern uint SKY_wallet_ChooseSpendsMaximizeUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_AddPrivateKey")] + public static extern uint SKY_cli_AddPrivateKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_AddPrivateKeyToFile")] + public static extern uint SKY_cli_AddPrivateKeyToFile(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_App_Run")] + public static extern uint SKY_cli_App_Run(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Config_GetCoin")] + public static extern uint SKY_cli_Config_GetCoin(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Config_GetRPCAddress")] + public static extern uint SKY_cli_Config_GetRPCAddress(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_RPCClientFromApp")] + public static extern uint SKY_cli_RPCClientFromApp(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Getenv")] + public static extern uint SKY_cli_Getenv(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Setenv")] + public static extern uint SKY_cli_Setenv(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_NewClient")] + public static extern uint SKY_webrpc_NewClient(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_CSRF")] + public static extern uint SKY_webrpc_Client_CSRF(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetUnspentOutputs")] + public static extern uint SKY_webrpc_Client_GetUnspentOutputs(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_InjectTransactionString")] + public static extern uint SKY_webrpc_Client_InjectTransactionString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_InjectTransaction")] + public static extern uint SKY_webrpc_Client_InjectTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetStatus")] + public static extern uint SKY_webrpc_Client_GetStatus(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetTransactionByID")] + public static extern uint SKY_webrpc_Client_GetTransactionByID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetAddressUxOuts")] + public static extern uint SKY_webrpc_Client_GetAddressUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetBlocks")] + public static extern uint SKY_webrpc_Client_GetBlocks(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetBlocksBySeq")] + public static extern uint SKY_webrpc_Client_GetBlocksBySeq(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetLastBlocks")] + public static extern uint SKY_webrpc_Client_GetLastBlocks(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_droplet_FromString")] + public static extern uint SKY_droplet_FromString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_droplet_ToString")] + public static extern uint SKY_droplet_ToString(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_bip39_NewDefaultMnemomic")] + public static extern uint SKY_bip39_NewDefaultMnemomic(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_bip39_NewEntropy")] + public static extern uint SKY_bip39_NewEntropy(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_bip39_NewMnemonic")] + public static extern uint SKY_bip39_NewMnemonic(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_bip39_MnemonicToByteArray")] + public static extern uint SKY_bip39_MnemonicToByteArray(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_bip39_IsMnemonicValid")] + public static extern uint SKY_bip39_IsMnemonicValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Print")] + public static extern uint SKY_secp256k1go_XYZ_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_SetXY")] + public static extern uint SKY_secp256k1go_XYZ_SetXY(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_IsInfinity")] + public static extern uint SKY_secp256k1go_XYZ_IsInfinity(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_IsValid")] + public static extern uint SKY_secp256k1go_XYZ_IsValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Normalize")] + public static extern uint SKY_secp256k1go_XYZ_Normalize(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Equals")] + public static extern uint SKY_secp256k1go_XYZ_Equals(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_ECmult")] + public static extern uint SKY_secp256k1go_XYZ_ECmult(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Neg")] + public static extern uint SKY_secp256k1go_XYZ_Neg(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Double")] + public static extern uint SKY_secp256k1go_XYZ_Double(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_AddXY")] + public static extern uint SKY_secp256k1go_XYZ_AddXY(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Add")] + public static extern uint SKY_secp256k1go_XYZ_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_ECmultGen")] + public static extern uint SKY_secp256k1go_ECmultGen(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewNotesFilename")] + public static extern uint SKY_wallet_NewNotesFilename(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_LoadNotes")] + public static extern uint SKY_wallet_LoadNotes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_LoadReadableNotes")] + public static extern uint SKY_wallet_LoadReadableNotes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableNotes_Load")] + public static extern uint SKY_wallet_ReadableNotes_Load(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableNotes_ToNotes")] + public static extern uint SKY_wallet_ReadableNotes_ToNotes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableNotes_Save")] + public static extern uint SKY_wallet_ReadableNotes_Save(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewReadableNote")] + public static extern uint SKY_wallet_NewReadableNote(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewReadableNotesFromNotes")] + public static extern uint SKY_wallet_NewReadableNotesFromNotes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Notes_Save")] + public static extern uint SKY_wallet_Notes_Save(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Notes_SaveNote")] + public static extern uint SKY_wallet_Notes_SaveNote(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Notes_ToReadable")] + public static extern uint SKY_wallet_Notes_ToReadable(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NotesFileExist")] + public static extern uint SKY_wallet_NotesFileExist(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_CreateNoteFileIfNotExist")] + public static extern uint SKY_wallet_CreateNoteFileIfNotExist(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encrypt_ScryptChacha20poly1305_Encrypt")] + public static extern uint SKY_encrypt_ScryptChacha20poly1305_Encrypt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encrypt_ScryptChacha20poly1305_Decrypt")] + public static extern uint SKY_encrypt_ScryptChacha20poly1305_Decrypt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddUint64")] + public static extern uint SKY_coin_AddUint64(ulong jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Uint64ToInt64")] + public static extern uint SKY_coin_Uint64ToInt64(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Int64ToUint64")] + public static extern uint SKY_coin_Int64ToUint64(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewBalance")] + public static extern uint SKY_wallet_NewBalance(ulong jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewBalanceFromUxOut")] + public static extern uint SKY_wallet_NewBalanceFromUxOut(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Balance_Add")] + public static extern uint SKY_wallet_Balance_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Balance_Sub")] + public static extern uint SKY_wallet_Balance_Sub(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Balance_Equals")] + public static extern uint SKY_wallet_Balance_Equals(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Balance_IsZero")] + public static extern uint SKY_wallet_Balance_IsZero(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ripemd160_New")] + public static extern uint SKY_ripemd160_New(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ripemd160_Write")] + public static extern uint SKY_ripemd160_Write(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ripemd160_Sum")] + public static extern uint SKY_ripemd160_Sum(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewBlock")] + public static extern uint SKY_coin_NewBlock(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SignedBlock_VerifySignature")] + public static extern uint SKY_coin_SignedBlock_VerifySignature(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewGenesisBlock")] + public static extern uint SKY_coin_NewGenesisBlock(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_HashHeader")] + public static extern uint SKY_coin_Block_HashHeader(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_PreHashHeader")] + public static extern uint SKY_coin_Block_PreHashHeader(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_Time")] + public static extern uint SKY_coin_Block_Time(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_Seq")] + public static extern uint SKY_coin_Block_Seq(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_HashBody")] + public static extern uint SKY_coin_Block_HashBody(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_Size")] + public static extern uint SKY_coin_Block_Size(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_String")] + public static extern uint SKY_coin_Block_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_GetTransaction")] + public static extern uint SKY_coin_Block_GetTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewBlockHeader")] + public static extern uint SKY_coin_NewBlockHeader(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, ulong jarg3, ulong jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockHeader_Hash")] + public static extern uint SKY_coin_BlockHeader_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockHeader_Bytes")] + public static extern uint SKY_coin_BlockHeader_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockHeader_String")] + public static extern uint SKY_coin_BlockHeader_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockBody_Hash")] + public static extern uint SKY_coin_BlockBody_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockBody_Size")] + public static extern uint SKY_coin_BlockBody_Size(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockBody_Bytes")] + public static extern uint SKY_coin_BlockBody_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_CreateUnspents")] + public static extern uint SKY_coin_CreateUnspents(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_CreateUnspent")] + public static extern uint SKY_coin_CreateUnspent(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetBlockObject")] + public static extern uint SKY_coin_GetBlockObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetBlockBody")] + public static extern uint SKY_coin_GetBlockBody(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewEmptyBlock")] + public static extern uint SKY_coin_NewEmptyBlock(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_CreateAddresses")] + public static extern uint SKY_wallet_CreateAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, byte jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_GetSkycoinWalletEntry")] + public static extern uint SKY_wallet_GetSkycoinWalletEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_GetBitcoinWalletEntry")] + public static extern uint SKY_wallet_GetBitcoinWalletEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_map_Get")] + public static extern uint SKY_map_Get(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_map_HasKey")] + public static extern byte SKY_map_HasKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_map_Close")] + public static extern uint SKY_map_Close(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_logging_EnableColors")] + public static extern uint SKY_logging_EnableColors(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_logging_DisableColors")] + public static extern uint SKY_logging_DisableColors(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_logging_Disable")] + public static extern uint SKY_logging_Disable(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GenerateWallet")] + public static extern uint SKY_cli_GenerateWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_MakeAlphanumericSeed")] + public static extern uint SKY_cli_MakeAlphanumericSeed(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Create")] + public static extern uint SKY_secp256k1go_Signature_Create(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_GetR")] + public static extern uint SKY_secp256k1go_Signature_GetR(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_GetS")] + public static extern uint SKY_secp256k1go_Signature_GetS(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Print")] + public static extern uint SKY_secp256k1go_Signature_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Verify")] + public static extern uint SKY_secp256k1go_Signature_Verify(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Recover")] + public static extern uint SKY_secp256k1go_Signature_Recover(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, long jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Sign")] + public static extern uint SKY_secp256k1go_Signature_Sign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_ParseBytes")] + public static extern uint SKY_secp256k1go_Signature_ParseBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Bytes")] + public static extern uint SKY_secp256k1go_Signature_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_Create")] + public static extern uint SKY_secp256k1go_Number_Create(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_Print")] + public static extern uint SKY_secp256k1go_Number_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_SetHex")] + public static extern uint SKY_secp256k1go_Number_SetHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_IsOdd")] + public static extern uint SKY_secp256k1go_Number_IsOdd(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_IsEqual")] + public static extern uint SKY_secp256k1go_Number_IsEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_CreateOptionsHandle")] + public static extern void SKY_wallet_CreateOptionsHandle(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, byte jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, ulong jarg7, global::System.Runtime.InteropServices.HandleRef jarg8); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_Print")] + public static extern uint SKY_secp256k1go_XY_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_ParsePubkey")] + public static extern uint SKY_secp256k1go_XY_ParsePubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_Bytes")] + public static extern uint SKY_secp256k1go_XY_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_BytesUncompressed")] + public static extern uint SKY_secp256k1go_XY_BytesUncompressed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_SetXY")] + public static extern uint SKY_secp256k1go_XY_SetXY(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_IsValid")] + public static extern uint SKY_secp256k1go_XY_IsValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_SetXYZ")] + public static extern uint SKY_secp256k1go_XY_SetXYZ(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_Neg")] + public static extern uint SKY_secp256k1go_XY_Neg(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_SetXO")] + public static extern uint SKY_secp256k1go_XY_SetXO(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, byte jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_AddXY")] + public static extern uint SKY_secp256k1go_XY_AddXY(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_GetPublicKey")] + public static extern uint SKY_secp256k1go_XY_GetPublicKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Entry_Verify")] + public static extern uint SKY_wallet_Entry_Verify(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Entry_VerifyPublic")] + public static extern uint SKY_wallet_Entry_VerifyPublic(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_CryptoTypeFromString")] + public static extern uint SKY_wallet_CryptoTypeFromString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Address_isEqual")] + public static extern int cipher__Address_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Address_Version_set")] + public static extern void cipher__Address_Version_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Address_Version_get")] + public static extern global::System.IntPtr cipher__Address_Version_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Address_Key_set")] + public static extern void cipher__Address_Key_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Address_Key_get")] + public static extern global::System.IntPtr cipher__Address_Key_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher__Address")] + public static extern global::System.IntPtr new_cipher__Address(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher__Address")] + public static extern void delete_cipher__Address(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encoder__StructField_Name_set")] + public static extern void encoder__StructField_Name_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encoder__StructField_Name_get")] + public static extern global::System.IntPtr encoder__StructField_Name_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encoder__StructField_Kind_set")] + public static extern void encoder__StructField_Kind_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encoder__StructField_Kind_get")] + public static extern global::System.IntPtr encoder__StructField_Kind_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encoder__StructField_Type_set")] + public static extern void encoder__StructField_Type_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encoder__StructField_Type_get")] + public static extern global::System.IntPtr encoder__StructField_Type_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encoder__StructField_Tag_set")] + public static extern void encoder__StructField_Tag_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encoder__StructField_Tag_get")] + public static extern global::System.IntPtr encoder__StructField_Tag_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_encoder__StructField")] + public static extern global::System.IntPtr new_encoder__StructField(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_encoder__StructField")] + public static extern void delete_encoder__StructField(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encrypt__ScryptChacha20poly1305_N_set")] + public static extern void encrypt__ScryptChacha20poly1305_N_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encrypt__ScryptChacha20poly1305_N_get")] + public static extern global::System.IntPtr encrypt__ScryptChacha20poly1305_N_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encrypt__ScryptChacha20poly1305_R_set")] + public static extern void encrypt__ScryptChacha20poly1305_R_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encrypt__ScryptChacha20poly1305_R_get")] + public static extern global::System.IntPtr encrypt__ScryptChacha20poly1305_R_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encrypt__ScryptChacha20poly1305_P_set")] + public static extern void encrypt__ScryptChacha20poly1305_P_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encrypt__ScryptChacha20poly1305_P_get")] + public static extern global::System.IntPtr encrypt__ScryptChacha20poly1305_P_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encrypt__ScryptChacha20poly1305_KeyLen_set")] + public static extern void encrypt__ScryptChacha20poly1305_KeyLen_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encrypt__ScryptChacha20poly1305_KeyLen_get")] + public static extern global::System.IntPtr encrypt__ScryptChacha20poly1305_KeyLen_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_encrypt__ScryptChacha20poly1305")] + public static extern global::System.IntPtr new_encrypt__ScryptChacha20poly1305(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_encrypt__ScryptChacha20poly1305")] + public static extern void delete_encrypt__ScryptChacha20poly1305(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__Field_n_set")] + public static extern void secp256k1go__Field_n_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__Field_n_get")] + public static extern global::System.IntPtr secp256k1go__Field_n_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_secp256k1go__Field")] + public static extern global::System.IntPtr new_secp256k1go__Field(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_secp256k1go__Field")] + public static extern void delete_secp256k1go__Field(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XY_X_set")] + public static extern void secp256k1go__XY_X_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XY_X_get")] + public static extern global::System.IntPtr secp256k1go__XY_X_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XY_Y_set")] + public static extern void secp256k1go__XY_Y_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XY_Y_get")] + public static extern global::System.IntPtr secp256k1go__XY_Y_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XY_Infinity_set")] + public static extern void secp256k1go__XY_Infinity_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XY_Infinity_get")] + public static extern global::System.IntPtr secp256k1go__XY_Infinity_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_secp256k1go__XY")] + public static extern global::System.IntPtr new_secp256k1go__XY(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_secp256k1go__XY")] + public static extern void delete_secp256k1go__XY(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XYZ_X_set")] + public static extern void secp256k1go__XYZ_X_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XYZ_X_get")] + public static extern global::System.IntPtr secp256k1go__XYZ_X_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XYZ_Y_set")] + public static extern void secp256k1go__XYZ_Y_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XYZ_Y_get")] + public static extern global::System.IntPtr secp256k1go__XYZ_Y_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XYZ_Z_set")] + public static extern void secp256k1go__XYZ_Z_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XYZ_Z_get")] + public static extern global::System.IntPtr secp256k1go__XYZ_Z_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XYZ_Infinity_set")] + public static extern void secp256k1go__XYZ_Infinity_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XYZ_Infinity_get")] + public static extern global::System.IntPtr secp256k1go__XYZ_Infinity_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_secp256k1go__XYZ")] + public static extern global::System.IntPtr new_secp256k1go__XYZ(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_secp256k1go__XYZ")] + public static extern void delete_secp256k1go__XYZ(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__SortableTransactions_Txns_set")] + public static extern void coin__SortableTransactions_Txns_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__SortableTransactions_Txns_get")] + public static extern global::System.IntPtr coin__SortableTransactions_Txns_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__SortableTransactions_Fees_set")] + public static extern void coin__SortableTransactions_Fees_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__SortableTransactions_Fees_get")] + public static extern global::System.IntPtr coin__SortableTransactions_Fees_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__SortableTransactions_Hashes_set")] + public static extern void coin__SortableTransactions_Hashes_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__SortableTransactions_Hashes_get")] + public static extern global::System.IntPtr coin__SortableTransactions_Hashes_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__SortableTransactions")] + public static extern global::System.IntPtr new_coin__SortableTransactions(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__SortableTransactions")] + public static extern void delete_coin__SortableTransactions(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_isEqual")] + public static extern int coin__Transaction_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_Length_set")] + public static extern void coin__Transaction_Length_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_Length_get")] + public static extern global::System.IntPtr coin__Transaction_Length_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_Type_set")] + public static extern void coin__Transaction_Type_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_Type_get")] + public static extern global::System.IntPtr coin__Transaction_Type_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_InnerHash_set")] + public static extern void coin__Transaction_InnerHash_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_InnerHash_get")] + public static extern global::System.IntPtr coin__Transaction_InnerHash_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_Sigs_set")] + public static extern void coin__Transaction_Sigs_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_Sigs_get")] + public static extern global::System.IntPtr coin__Transaction_Sigs_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_In_set")] + public static extern void coin__Transaction_In_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_In_get")] + public static extern global::System.IntPtr coin__Transaction_In_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_Out_set")] + public static extern void coin__Transaction_Out_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_Out_get")] + public static extern global::System.IntPtr coin__Transaction_Out_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__Transaction")] + public static extern global::System.IntPtr new_coin__Transaction(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__Transaction")] + public static extern void delete_coin__Transaction(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__TransactionOutput_isEqual")] + public static extern int coin__TransactionOutput_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__TransactionOutput_Address_set")] + public static extern void coin__TransactionOutput_Address_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__TransactionOutput_Address_get")] + public static extern global::System.IntPtr coin__TransactionOutput_Address_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__TransactionOutput_Coins_set")] + public static extern void coin__TransactionOutput_Coins_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__TransactionOutput_Coins_get")] + public static extern global::System.IntPtr coin__TransactionOutput_Coins_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__TransactionOutput_Hours_set")] + public static extern void coin__TransactionOutput_Hours_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__TransactionOutput_Hours_get")] + public static extern global::System.IntPtr coin__TransactionOutput_Hours_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__TransactionOutput")] + public static extern global::System.IntPtr new_coin__TransactionOutput(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__TransactionOutput")] + public static extern void delete_coin__TransactionOutput(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_isEqual")] + public static extern int coin__BlockHeader_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_Version_set")] + public static extern void coin__BlockHeader_Version_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_Version_get")] + public static extern global::System.IntPtr coin__BlockHeader_Version_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_Time_set")] + public static extern void coin__BlockHeader_Time_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_Time_get")] + public static extern global::System.IntPtr coin__BlockHeader_Time_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_BkSeq_set")] + public static extern void coin__BlockHeader_BkSeq_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_BkSeq_get")] + public static extern global::System.IntPtr coin__BlockHeader_BkSeq_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_Fee_set")] + public static extern void coin__BlockHeader_Fee_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_Fee_get")] + public static extern global::System.IntPtr coin__BlockHeader_Fee_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_PrevHash_set")] + public static extern void coin__BlockHeader_PrevHash_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_PrevHash_get")] + public static extern global::System.IntPtr coin__BlockHeader_PrevHash_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_BodyHash_set")] + public static extern void coin__BlockHeader_BodyHash_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_BodyHash_get")] + public static extern global::System.IntPtr coin__BlockHeader_BodyHash_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_UxHash_set")] + public static extern void coin__BlockHeader_UxHash_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_UxHash_get")] + public static extern global::System.IntPtr coin__BlockHeader_UxHash_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__BlockHeader")] + public static extern global::System.IntPtr new_coin__BlockHeader(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__BlockHeader")] + public static extern void delete_coin__BlockHeader(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockBody_isEqual")] + public static extern int coin__BlockBody_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockBody_Transactions_set")] + public static extern void coin__BlockBody_Transactions_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockBody_Transactions_get")] + public static extern global::System.IntPtr coin__BlockBody_Transactions_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__BlockBody")] + public static extern global::System.IntPtr new_coin__BlockBody(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__BlockBody")] + public static extern void delete_coin__BlockBody(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Block_Head_set")] + public static extern void coin__Block_Head_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Block_Head_get")] + public static extern global::System.IntPtr coin__Block_Head_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Block_Body_set")] + public static extern void coin__Block_Body_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Block_Body_get")] + public static extern global::System.IntPtr coin__Block_Body_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__Block")] + public static extern global::System.IntPtr new_coin__Block(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__Block")] + public static extern void delete_coin__Block(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__SignedBlock__unnamed_set")] + public static extern void coin__SignedBlock__unnamed_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__SignedBlock__unnamed_get")] + public static extern global::System.IntPtr coin__SignedBlock__unnamed_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__SignedBlock_Sig_set")] + public static extern void coin__SignedBlock_Sig_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__SignedBlock_Sig_get")] + public static extern global::System.IntPtr coin__SignedBlock_Sig_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__SignedBlock")] + public static extern global::System.IntPtr new_coin__SignedBlock(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__SignedBlock")] + public static extern void delete_coin__SignedBlock(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxHead_Time_set")] + public static extern void coin__UxHead_Time_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxHead_Time_get")] + public static extern global::System.IntPtr coin__UxHead_Time_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxHead_BkSeq_set")] + public static extern void coin__UxHead_BkSeq_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxHead_BkSeq_get")] + public static extern global::System.IntPtr coin__UxHead_BkSeq_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__UxHead")] + public static extern global::System.IntPtr new_coin__UxHead(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__UxHead")] + public static extern void delete_coin__UxHead(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxBody_SrcTransaction_set")] + public static extern void coin__UxBody_SrcTransaction_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxBody_SrcTransaction_get")] + public static extern global::System.IntPtr coin__UxBody_SrcTransaction_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxBody_Address_set")] + public static extern void coin__UxBody_Address_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxBody_Address_get")] + public static extern global::System.IntPtr coin__UxBody_Address_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxBody_Coins_set")] + public static extern void coin__UxBody_Coins_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxBody_Coins_get")] + public static extern global::System.IntPtr coin__UxBody_Coins_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxBody_Hours_set")] + public static extern void coin__UxBody_Hours_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxBody_Hours_get")] + public static extern global::System.IntPtr coin__UxBody_Hours_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__UxBody")] + public static extern global::System.IntPtr new_coin__UxBody(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__UxBody")] + public static extern void delete_coin__UxBody(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxOut_isEqual")] + public static extern int coin__UxOut_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxOut_Head_set")] + public static extern void coin__UxOut_Head_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxOut_Head_get")] + public static extern global::System.IntPtr coin__UxOut_Head_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxOut_Body_set")] + public static extern void coin__UxOut_Body_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxOut_Body_get")] + public static extern global::System.IntPtr coin__UxOut_Body_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__UxOut")] + public static extern global::System.IntPtr new_coin__UxOut(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__UxOut")] + public static extern void delete_coin__UxOut(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Balance_Coins_set")] + public static extern void wallet__Balance_Coins_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Balance_Coins_get")] + public static extern global::System.IntPtr wallet__Balance_Coins_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Balance_Hours_set")] + public static extern void wallet__Balance_Hours_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Balance_Hours_get")] + public static extern global::System.IntPtr wallet__Balance_Hours_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__Balance")] + public static extern global::System.IntPtr new_wallet__Balance(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__Balance")] + public static extern void delete_wallet__Balance(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__BalancePair_Confirmed_set")] + public static extern void wallet__BalancePair_Confirmed_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__BalancePair_Confirmed_get")] + public static extern global::System.IntPtr wallet__BalancePair_Confirmed_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__BalancePair_Predicted_set")] + public static extern void wallet__BalancePair_Predicted_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__BalancePair_Predicted_get")] + public static extern global::System.IntPtr wallet__BalancePair_Predicted_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__BalancePair")] + public static extern global::System.IntPtr new_wallet__BalancePair(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__BalancePair")] + public static extern void delete_wallet__BalancePair(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Entry_Address_set")] + public static extern void wallet__Entry_Address_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Entry_Address_get")] + public static extern global::System.IntPtr wallet__Entry_Address_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Entry_Public_set")] + public static extern void wallet__Entry_Public_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Entry_Public_get")] + public static extern global::System.IntPtr wallet__Entry_Public_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Entry_Secret_set")] + public static extern void wallet__Entry_Secret_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Entry_Secret_get")] + public static extern global::System.IntPtr wallet__Entry_Secret_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__Entry")] + public static extern global::System.IntPtr new_wallet__Entry(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__Entry")] + public static extern void delete_wallet__Entry(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Note_TxID_set")] + public static extern void wallet__Note_TxID_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Note_TxID_get")] + public static extern global::System.IntPtr wallet__Note_TxID_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Note_Value_set")] + public static extern void wallet__Note_Value_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Note_Value_get")] + public static extern global::System.IntPtr wallet__Note_Value_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__Note")] + public static extern global::System.IntPtr new_wallet__Note(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__Note")] + public static extern void delete_wallet__Note(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__ReadableNote_TransactionID_set")] + public static extern void wallet__ReadableNote_TransactionID_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__ReadableNote_TransactionID_get")] + public static extern global::System.IntPtr wallet__ReadableNote_TransactionID_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__ReadableNote_ActualNote_set")] + public static extern void wallet__ReadableNote_ActualNote_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__ReadableNote_ActualNote_get")] + public static extern global::System.IntPtr wallet__ReadableNote_ActualNote_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__ReadableNote")] + public static extern global::System.IntPtr new_wallet__ReadableNote(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__ReadableNote")] + public static extern void delete_wallet__ReadableNote(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Wallet_Meta_set")] + public static extern void wallet__Wallet_Meta_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Wallet_Meta_get")] + public static extern global::System.IntPtr wallet__Wallet_Meta_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Wallet_Entries_set")] + public static extern void wallet__Wallet_Entries_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Wallet_Entries_get")] + public static extern global::System.IntPtr wallet__Wallet_Entries_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__Wallet")] + public static extern global::System.IntPtr new_wallet__Wallet(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__Wallet")] + public static extern void delete_wallet__Wallet(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__UxBalance_Hash_set")] + public static extern void wallet__UxBalance_Hash_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__UxBalance_Hash_get")] + public static extern global::System.IntPtr wallet__UxBalance_Hash_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__UxBalance_BkSeq_set")] + public static extern void wallet__UxBalance_BkSeq_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__UxBalance_BkSeq_get")] + public static extern global::System.IntPtr wallet__UxBalance_BkSeq_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__UxBalance_Address_set")] + public static extern void wallet__UxBalance_Address_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__UxBalance_Address_get")] + public static extern global::System.IntPtr wallet__UxBalance_Address_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__UxBalance_Coins_set")] + public static extern void wallet__UxBalance_Coins_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__UxBalance_Coins_get")] + public static extern global::System.IntPtr wallet__UxBalance_Coins_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__UxBalance_Hours_set")] + public static extern void wallet__UxBalance_Hours_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__UxBalance_Hours_get")] + public static extern global::System.IntPtr wallet__UxBalance_Hours_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__UxBalance")] + public static extern global::System.IntPtr new_wallet__UxBalance(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__UxBalance")] + public static extern void delete_wallet__UxBalance(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_api__RichlistParams_N_set")] + public static extern void api__RichlistParams_N_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_api__RichlistParams_N_get")] + public static extern global::System.IntPtr api__RichlistParams_N_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_api__RichlistParams_IncludeDistribution_set")] + public static extern void api__RichlistParams_IncludeDistribution_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_api__RichlistParams_IncludeDistribution_get")] + public static extern global::System.IntPtr api__RichlistParams_IncludeDistribution_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_api__RichlistParams")] + public static extern global::System.IntPtr new_api__RichlistParams(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_api__RichlistParams")] + public static extern void delete_api__RichlistParams(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cli__SendAmount_Addr_set")] + public static extern void cli__SendAmount_Addr_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cli__SendAmount_Addr_get")] + public static extern global::System.IntPtr cli__SendAmount_Addr_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cli__SendAmount_Coins_set")] + public static extern void cli__SendAmount_Coins_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cli__SendAmount_Coins_get")] + public static extern global::System.IntPtr cli__SendAmount_Coins_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cli__SendAmount")] + public static extern global::System.IntPtr new_cli__SendAmount(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cli__SendAmount")] + public static extern void delete_cli__SendAmount(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_httphelper__Address__unnamed_set")] + public static extern void httphelper__Address__unnamed_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_httphelper__Address__unnamed_get")] + public static extern global::System.IntPtr httphelper__Address__unnamed_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_httphelper__Address")] + public static extern global::System.IntPtr new_httphelper__Address(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_httphelper__Address")] + public static extern void delete_httphelper__Address(global::System.Runtime.InteropServices.HandleRef jarg1); +} + +} diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c new file mode 100644 index 00000000..8fe4c7fe --- /dev/null +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -0,0 +1,14553 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 3.0.12 + * + * This file is not intended to be easily readable and contains a number of + * coding conventions designed to improve portability and efficiency. Do not make + * changes to this file unless you know what you are doing--modify the SWIG + * interface file instead. + * ----------------------------------------------------------------------------- */ + + +#ifndef SWIGCSHARP +#define SWIGCSHARP +#endif + + +/* ----------------------------------------------------------------------------- + * This section contains generic SWIG labels for method/variable + * declarations/attributes, and other compiler dependent labels. + * ----------------------------------------------------------------------------- */ + +/* template workaround for compilers that cannot correctly implement the C++ standard */ +#ifndef SWIGTEMPLATEDISAMBIGUATOR +# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) +# define SWIGTEMPLATEDISAMBIGUATOR template +# elif defined(__HP_aCC) +/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ +/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ +# define SWIGTEMPLATEDISAMBIGUATOR template +# else +# define SWIGTEMPLATEDISAMBIGUATOR +# endif +#endif + +/* inline attribute */ +#ifndef SWIGINLINE +# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) +# define SWIGINLINE inline +# else +# define SWIGINLINE +# endif +#endif + +/* attribute recognised by some compilers to avoid 'unused' warnings */ +#ifndef SWIGUNUSED +# if defined(__GNUC__) +# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) +# define SWIGUNUSED __attribute__ ((__unused__)) +# else +# define SWIGUNUSED +# endif +# elif defined(__ICC) +# define SWIGUNUSED __attribute__ ((__unused__)) +# else +# define SWIGUNUSED +# endif +#endif + +#ifndef SWIG_MSC_UNSUPPRESS_4505 +# if defined(_MSC_VER) +# pragma warning(disable : 4505) /* unreferenced local function has been removed */ +# endif +#endif + +#ifndef SWIGUNUSEDPARM +# ifdef __cplusplus +# define SWIGUNUSEDPARM(p) +# else +# define SWIGUNUSEDPARM(p) p SWIGUNUSED +# endif +#endif + +/* internal SWIG method */ +#ifndef SWIGINTERN +# define SWIGINTERN static SWIGUNUSED +#endif + +/* internal inline SWIG method */ +#ifndef SWIGINTERNINLINE +# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE +#endif + +/* exporting methods */ +#if defined(__GNUC__) +# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) +# ifndef GCC_HASCLASSVISIBILITY +# define GCC_HASCLASSVISIBILITY +# endif +# endif +#endif + +#ifndef SWIGEXPORT +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# if defined(STATIC_LINKED) +# define SWIGEXPORT +# else +# define SWIGEXPORT __declspec(dllexport) +# endif +# else +# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) +# define SWIGEXPORT __attribute__ ((visibility("default"))) +# else +# define SWIGEXPORT +# endif +# endif +#endif + +/* calling conventions for Windows */ +#ifndef SWIGSTDCALL +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# define SWIGSTDCALL __stdcall +# else +# define SWIGSTDCALL +# endif +#endif + +/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) +# define _CRT_SECURE_NO_DEPRECATE +#endif + +/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ +#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) +# define _SCL_SECURE_NO_DEPRECATE +#endif + +/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */ +#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES) +# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0 +#endif + +/* Intel's compiler complains if a variable which was never initialised is + * cast to void, which is a common idiom which we use to indicate that we + * are aware a variable isn't used. So we just silence that warning. + * See: https://github.com/swig/swig/issues/192 for more discussion. + */ +#ifdef __INTEL_COMPILER +# pragma warning disable 592 +#endif + + +#include +#include +#include + + +/* Support for throwing C# exceptions from C/C++. There are two types: + * Exceptions that take a message and ArgumentExceptions that take a message and a parameter name. */ +typedef enum { + SWIG_CSharpApplicationException, + SWIG_CSharpArithmeticException, + SWIG_CSharpDivideByZeroException, + SWIG_CSharpIndexOutOfRangeException, + SWIG_CSharpInvalidCastException, + SWIG_CSharpInvalidOperationException, + SWIG_CSharpIOException, + SWIG_CSharpNullReferenceException, + SWIG_CSharpOutOfMemoryException, + SWIG_CSharpOverflowException, + SWIG_CSharpSystemException +} SWIG_CSharpExceptionCodes; + +typedef enum { + SWIG_CSharpArgumentException, + SWIG_CSharpArgumentNullException, + SWIG_CSharpArgumentOutOfRangeException +} SWIG_CSharpExceptionArgumentCodes; + +typedef void (SWIGSTDCALL* SWIG_CSharpExceptionCallback_t)(const char *); +typedef void (SWIGSTDCALL* SWIG_CSharpExceptionArgumentCallback_t)(const char *, const char *); + +typedef struct { + SWIG_CSharpExceptionCodes code; + SWIG_CSharpExceptionCallback_t callback; +} SWIG_CSharpException_t; + +typedef struct { + SWIG_CSharpExceptionArgumentCodes code; + SWIG_CSharpExceptionArgumentCallback_t callback; +} SWIG_CSharpExceptionArgument_t; + +static SWIG_CSharpException_t SWIG_csharp_exceptions[] = { + { SWIG_CSharpApplicationException, NULL }, + { SWIG_CSharpArithmeticException, NULL }, + { SWIG_CSharpDivideByZeroException, NULL }, + { SWIG_CSharpIndexOutOfRangeException, NULL }, + { SWIG_CSharpInvalidCastException, NULL }, + { SWIG_CSharpInvalidOperationException, NULL }, + { SWIG_CSharpIOException, NULL }, + { SWIG_CSharpNullReferenceException, NULL }, + { SWIG_CSharpOutOfMemoryException, NULL }, + { SWIG_CSharpOverflowException, NULL }, + { SWIG_CSharpSystemException, NULL } +}; + +static SWIG_CSharpExceptionArgument_t SWIG_csharp_exceptions_argument[] = { + { SWIG_CSharpArgumentException, NULL }, + { SWIG_CSharpArgumentNullException, NULL }, + { SWIG_CSharpArgumentOutOfRangeException, NULL } +}; + +static void SWIGUNUSED SWIG_CSharpSetPendingException(SWIG_CSharpExceptionCodes code, const char *msg) { + SWIG_CSharpExceptionCallback_t callback = SWIG_csharp_exceptions[SWIG_CSharpApplicationException].callback; + if ((size_t)code < sizeof(SWIG_csharp_exceptions)/sizeof(SWIG_CSharpException_t)) { + callback = SWIG_csharp_exceptions[code].callback; + } + callback(msg); +} + +static void SWIGUNUSED SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpExceptionArgumentCodes code, const char *msg, const char *param_name) { + SWIG_CSharpExceptionArgumentCallback_t callback = SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentException].callback; + if ((size_t)code < sizeof(SWIG_csharp_exceptions_argument)/sizeof(SWIG_CSharpExceptionArgument_t)) { + callback = SWIG_csharp_exceptions_argument[code].callback; + } + callback(msg, param_name); +} + + +#ifdef __cplusplus +extern "C" +#endif +SWIGEXPORT void SWIGSTDCALL SWIGRegisterExceptionCallbacks_skycoin( + SWIG_CSharpExceptionCallback_t applicationCallback, + SWIG_CSharpExceptionCallback_t arithmeticCallback, + SWIG_CSharpExceptionCallback_t divideByZeroCallback, + SWIG_CSharpExceptionCallback_t indexOutOfRangeCallback, + SWIG_CSharpExceptionCallback_t invalidCastCallback, + SWIG_CSharpExceptionCallback_t invalidOperationCallback, + SWIG_CSharpExceptionCallback_t ioCallback, + SWIG_CSharpExceptionCallback_t nullReferenceCallback, + SWIG_CSharpExceptionCallback_t outOfMemoryCallback, + SWIG_CSharpExceptionCallback_t overflowCallback, + SWIG_CSharpExceptionCallback_t systemCallback) { + SWIG_csharp_exceptions[SWIG_CSharpApplicationException].callback = applicationCallback; + SWIG_csharp_exceptions[SWIG_CSharpArithmeticException].callback = arithmeticCallback; + SWIG_csharp_exceptions[SWIG_CSharpDivideByZeroException].callback = divideByZeroCallback; + SWIG_csharp_exceptions[SWIG_CSharpIndexOutOfRangeException].callback = indexOutOfRangeCallback; + SWIG_csharp_exceptions[SWIG_CSharpInvalidCastException].callback = invalidCastCallback; + SWIG_csharp_exceptions[SWIG_CSharpInvalidOperationException].callback = invalidOperationCallback; + SWIG_csharp_exceptions[SWIG_CSharpIOException].callback = ioCallback; + SWIG_csharp_exceptions[SWIG_CSharpNullReferenceException].callback = nullReferenceCallback; + SWIG_csharp_exceptions[SWIG_CSharpOutOfMemoryException].callback = outOfMemoryCallback; + SWIG_csharp_exceptions[SWIG_CSharpOverflowException].callback = overflowCallback; + SWIG_csharp_exceptions[SWIG_CSharpSystemException].callback = systemCallback; +} + +#ifdef __cplusplus +extern "C" +#endif +SWIGEXPORT void SWIGSTDCALL SWIGRegisterExceptionArgumentCallbacks_skycoin( + SWIG_CSharpExceptionArgumentCallback_t argumentCallback, + SWIG_CSharpExceptionArgumentCallback_t argumentNullCallback, + SWIG_CSharpExceptionArgumentCallback_t argumentOutOfRangeCallback) { + SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentException].callback = argumentCallback; + SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentNullException].callback = argumentNullCallback; + SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentOutOfRangeException].callback = argumentOutOfRangeCallback; +} + + +/* Callback for returning strings to C# without leaking memory */ +typedef char * (SWIGSTDCALL* SWIG_CSharpStringHelperCallback)(const char *); +static SWIG_CSharpStringHelperCallback SWIG_csharp_string_callback = NULL; + + +#ifdef __cplusplus +extern "C" +#endif +SWIGEXPORT void SWIGSTDCALL SWIGRegisterStringCallback_skycoin(SWIG_CSharpStringHelperCallback callback) { + SWIG_csharp_string_callback = callback; +} + + +/* Contract support */ + +#define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentOutOfRangeException, msg, ""); return nullreturn; } else + + + #define SWIG_FILE_WITH_INIT + #include "libskycoin.h" + #include "swig.h" + + + void destroy_cipher_SecKeys(cipher_SecKeys* p){ + if( p != NULL ){ + if( p->data != NULL ){ + free( p->data ); + } + } + } + + + int equalSlices(GoSlice* slice1, GoSlice* slice2, int elem_size){ + if(slice1->len != slice2->len) + return 0; + return memcmp(slice1->data, slice2->data, slice1->len * elem_size) == 0; + } + int equalTransactions(coin__Transaction* t1, coin__Transaction* t2){ + if( t1->Length != t2->Length || t1->Type != t2->Type ){ + return 0; + } + if( memcmp(&t1->InnerHash, &t2->InnerHash, sizeof(cipher__SHA256)) != 0 ) + return 0; + if(!equalSlices((GoSlice*)&t1->Sigs, (GoSlice*)&t2->Sigs, sizeof(cipher__Sig))) + return 0; + if(!equalSlices((GoSlice*)&t1->In, (GoSlice*)&t2->In, sizeof(cipher__SHA256))) + return 0; + if(!equalSlices((GoSlice*)&t1->Out, (GoSlice*)&t2->Out, sizeof(coin__TransactionOutput))) + return 0; + return 1; + } + int equalTransactionsArrays(coin__Transactions* pTxs1, coin__Transactions* pTxs2){ + if( pTxs1->len != pTxs2->len ) + return 0; + coin__Transaction* pTx1 = pTxs1->data; + coin__Transaction* pTx2 = pTxs2->data; + int i; + for(i = 0; i < pTxs1->len; i++){ + if(!equalTransactions(pTx1, pTx2)) + return 0; + pTx1++; + pTx2++; + } + return 1; + } + int equalBlockHeaders(coin__BlockHeader* bh1, coin__BlockHeader* bh2){ + if( bh1->Version != bh2->Version || bh1->Time != bh2->Time || + bh1->BkSeq != bh2->BkSeq || bh1->Fee != bh2->Fee) + return 0; + if( memcmp( &bh1->PrevHash, bh2->PrevHash, sizeof(bh2->PrevHash) ) != 0 ) + return 0; + if( memcmp( &bh1->BodyHash, bh2->PrevHash, sizeof(bh2->BodyHash) ) != 0 ) + return 0; + if( memcmp( &bh1->UxHash, bh2->PrevHash, sizeof(bh2->UxHash) ) != 0 ) + return 0; + return 1; + } + +SWIGINTERN int cipher_PubKey_isEqual(cipher_PubKey *self,cipher_PubKey *a){ + return memcmp(self->data, a->data, sizeof(a->data)) == 0; + } +SWIGINTERN void cipher_PubKey_assignFrom(cipher_PubKey *self,void *data){ + memcpy(&self->data, data, sizeof(self->data)); + } +SWIGINTERN void cipher_PubKey_assignTo(cipher_PubKey *self,void *data){ + memcpy(data, &self->data, sizeof(self->data)); + } +SWIGINTERN int cipher_SecKey_isEqual(cipher_SecKey *self,cipher_SecKey *a){ + return memcmp(self->data, a->data, sizeof(a->data)) == 0; + } +SWIGINTERN void cipher_SecKey_assignFrom(cipher_SecKey *self,void *data){ + memcpy(&self->data, data, sizeof(self->data)); + } +SWIGINTERN void cipher_SecKey_assignTo(cipher_SecKey *self,void *data){ + memcpy(data, &self->data, sizeof(self->data)); + } +SWIGINTERN int cipher_Ripemd160_isEqual(cipher_Ripemd160 *self,cipher_Ripemd160 *a){ + return memcmp(self->data, a->data, sizeof(a->data)) == 0; + } +SWIGINTERN void cipher_Ripemd160_assignFrom(cipher_Ripemd160 *self,void *data){ + memcpy(&self->data, data, sizeof(self->data)); + } +SWIGINTERN void cipher_Ripemd160_assignTo(cipher_Ripemd160 *self,void *data){ + memcpy(data, &self->data, sizeof(self->data)); + } +SWIGINTERN int cipher_Sig_isEqual(cipher_Sig *self,cipher_Sig *a){ + return memcmp(self->data, a->data, sizeof(a->data)) == 0; + } +SWIGINTERN void cipher_Sig_assignFrom(cipher_Sig *self,void *data){ + memcpy(&self->data, data, sizeof(self->data)); + } +SWIGINTERN void cipher_Sig_assignTo(cipher_Sig *self,void *data){ + memcpy(data, &self->data, sizeof(self->data)); + } +SWIGINTERN int cipher_SHA256_isEqual(cipher_SHA256 *self,cipher_SHA256 *a){ + return memcmp(self->data, a->data, sizeof(a->data)) == 0; + } +SWIGINTERN void cipher_SHA256_assignFrom(cipher_SHA256 *self,void *data){ + memcpy(&self->data, data, sizeof(self->data)); + } +SWIGINTERN void cipher_SHA256_assignTo(cipher_SHA256 *self,void *data){ + memcpy(data, &self->data, sizeof(self->data)); + } +SWIGINTERN int cipher_Checksum_isEqual(cipher_Checksum *self,cipher_Checksum *a){ + return memcmp(self->data, a->data, sizeof(a->data)) == 0; + } +SWIGINTERN void cipher_Checksum_assignFrom(cipher_Checksum *self,void *data){ + memcpy(&self->data, data, sizeof(self->data)); + } +SWIGINTERN void cipher_Checksum_assignTo(cipher_Checksum *self,void *data){ + memcpy(data, &self->data, sizeof(self->data)); + } +SWIGINTERN cipher_SecKey *cipher_SecKeys_getAt(cipher_SecKeys *self,int i){ + if( i < self->count ){ + return &self->data[i]; + } + else + return NULL; + } +SWIGINTERN int cipher_SecKeys_setAt(cipher_SecKeys *self,int i,cipher_SecKey *seckey){ + if( i < self->count){ + memcpy(&self->data[i], seckey, sizeof(*seckey)); + return i; + } else { + return -1; + } + } +SWIGINTERN int cipher_SecKeys_isEqual(cipher_SecKeys *self,cipher_SecKeys *a){ + return self->count == a->count && memcmp(self->data, a->data, sizeof(cipher_SecKey) * self->count) == 0; + } +SWIGINTERN void cipher_SecKeys_allocate(cipher_SecKeys *self,int n){ + self->data = malloc(n * sizeof(*(self->data))); + self->count = n; + } +SWIGINTERN void cipher_SecKeys_release(cipher_SecKeys *self){ + destroy_cipher_SecKeys(self); + } +SWIGINTERN cipher_PubKey *cipher_PubKeys_getAt(cipher_PubKeys *self,int i){ + if( i < self->count ){ + return &self->data[i]; + } + else + return NULL; + } +SWIGINTERN int cipher_PubKeys_setAt(cipher_PubKeys *self,int i,cipher_PubKey *pubkey){ + if( i < self->count){ + memcpy(&self->data[i], pubkey, sizeof(*pubkey)); + return i; + } else { + return -1; + } + } +SWIGINTERN int cipher_PubKeys_isEqual(cipher_PubKeys *self,cipher_PubKeys *a){ + return self->count == a->count && memcmp(self->data, a->data, sizeof(cipher_PubKey) * self->count) == 0; + } +SWIGINTERN void cipher_PubKeys_allocate(cipher_PubKeys *self,int n){ + self->data = malloc(n * sizeof(*(self->data))); + self->count = n; + } +SWIGINTERN void cipher_PubKeys_release(cipher_PubKeys *self){ + if(self->data != NULL) + free(self->data); + } +SWIGINTERN cipher_SHA256 *cipher_SHA256s_getAt(cipher_SHA256s *self,int i){ + if( i < self->count ){ + return &self->data[i]; + } + else + return NULL; + } +SWIGINTERN int cipher_SHA256s_setAt(cipher_SHA256s *self,int i,cipher_SHA256 *hash){ + if( i < self->count){ + memcpy(&self->data[i], hash, sizeof(*hash)); + return i; + } else { + return -1; + } + } +SWIGINTERN int cipher_SHA256s_isEqual(cipher_SHA256s *self,cipher_SHA256s *a){ + return self->count == a->count && memcmp(self->data, a->data, sizeof(cipher_SHA256) * self->count) == 0; + } +SWIGINTERN void cipher_SHA256s_allocate(cipher_SHA256s *self,int n){ + self->data = malloc(n * sizeof(*(self->data))); + self->count = n; + } +SWIGINTERN void cipher_SHA256s_release(cipher_SHA256s *self){ + if(self->data != NULL) free(self->data); + } +SWIGINTERN coin__UxOut *coin_UxOutArray_getAt(coin_UxOutArray *self,int i){ + if( i < self->count ){ + return &self->data[i]; + } + else + return NULL; + } +SWIGINTERN int coin_UxOutArray_setAt(coin_UxOutArray *self,int i,coin__UxOut *uxout){ + if( i < self->count){ + memcpy(&self->data[i], uxout, sizeof(*uxout)); + return i; + } else { + return -1; + } + } +SWIGINTERN int coin_UxOutArray_isEqual(coin_UxOutArray *self,coin_UxOutArray *a){ + return self->count == a->count && memcmp(self->data, a->data, sizeof(coin__UxOut) * self->count) == 0; + } +SWIGINTERN void coin_UxOutArray_allocate(coin_UxOutArray *self,int n){ + self->data = malloc(n * sizeof(*(self->data))); + self->count = n; + } +SWIGINTERN void coin_UxOutArray_release(coin_UxOutArray *self){ + if(self->data != NULL) + free(self->data); + } +SWIGINTERN int cipher__Address_isEqual(cipher__Address *self,cipher__Address *a){ + if( self->Version == a->Version ){ + return memcmp(self->Key, a->Key, sizeof(a->Key)) == 0; + } + return 0; + } +SWIGINTERN int coin__Transaction_isEqual(coin__Transaction *self,coin__Transaction *t){ + return equalTransactions(self, t); + } +SWIGINTERN int coin__TransactionOutput_isEqual(coin__TransactionOutput *self,coin__TransactionOutput *t){ + if( self->Coins != t->Coins || + self->Hours != t->Hours ){ + return 0; + } + + if(memcmp(&self->Address, &t->Address, sizeof(cipher__Address)) != 0) + return 0; + return 1; + } +SWIGINTERN int coin__BlockHeader_isEqual(coin__BlockHeader *self,coin__BlockHeader *bh){ + return equalBlockHeaders(self, bh); + } +SWIGINTERN int coin__BlockBody_isEqual(coin__BlockBody *self,coin__BlockBody *b){ + return equalTransactionsArrays(&self->Transactions, &b->Transactions); + } +SWIGINTERN int coin__UxOut_isEqual(coin__UxOut *self,coin__UxOut *u){ + return memcmp(&self, u, sizeof(coin__UxOut)) == 0; + } + +#ifdef __cplusplus +extern "C" { +#endif + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_destroy_cipher_SecKeys(void * jarg1) { + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + + arg1 = (cipher_SecKeys *)jarg1; + destroy_cipher_SecKeys(arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalSlices(void * jarg1, void * jarg2, int jarg3) { + int jresult ; + GoSlice *arg1 = (GoSlice *) 0 ; + GoSlice *arg2 = (GoSlice *) 0 ; + int arg3 ; + int result; + + arg1 = (GoSlice *)jarg1; + arg2 = (GoSlice *)jarg2; + arg3 = (int)jarg3; + result = (int)equalSlices(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalTransactions(void * jarg1, void * jarg2) { + int jresult ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + coin__Transaction *arg2 = (coin__Transaction *) 0 ; + int result; + + arg1 = (coin__Transaction *)jarg1; + arg2 = (coin__Transaction *)jarg2; + result = (int)equalTransactions(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalTransactionsArrays(void * jarg1, void * jarg2) { + int jresult ; + coin__Transactions *arg1 = (coin__Transactions *) 0 ; + coin__Transactions *arg2 = (coin__Transactions *) 0 ; + int result; + + arg1 = (coin__Transactions *)jarg1; + arg2 = (coin__Transactions *)jarg2; + result = (int)equalTransactionsArrays(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalBlockHeaders(void * jarg1, void * jarg2) { + int jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + coin__BlockHeader *arg2 = (coin__BlockHeader *) 0 ; + int result; + + arg1 = (coin__BlockHeader *)jarg1; + arg2 = (coin__BlockHeader *)jarg2; + result = (int)equalBlockHeaders(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_PubKey_isEqual(void * jarg1, void * jarg2) { + int jresult ; + cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; + cipher_PubKey *arg2 = (cipher_PubKey *) 0 ; + int result; + + arg1 = (cipher_PubKey *)jarg1; + arg2 = (cipher_PubKey *)jarg2; + result = (int)cipher_PubKey_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKey_assignFrom(void * jarg1, void * jarg2) { + cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (cipher_PubKey *)jarg1; + arg2 = (void *)jarg2; + cipher_PubKey_assignFrom(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKey_assignTo(void * jarg1, void * jarg2) { + cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (cipher_PubKey *)jarg1; + arg2 = (void *)jarg2; + cipher_PubKey_assignTo(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKey_data_set(void * jarg1, void * jarg2) { + cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; + GoUint8 *arg2 ; + + arg1 = (cipher_PubKey *)jarg1; + arg2 = (GoUint8 *)jarg2; + { + size_t ii; + GoUint8 *b = (GoUint8 *) arg1->data; + for (ii = 0; ii < (size_t)33; ii++) b[ii] = *((GoUint8 *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_PubKey_data_get(void * jarg1) { + void * jresult ; + cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; + GoUint8 *result = 0 ; + + arg1 = (cipher_PubKey *)jarg1; + result = (GoUint8 *)(GoUint8 *) ((arg1)->data); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_PubKey() { + void * jresult ; + cipher_PubKey *result = 0 ; + + result = (cipher_PubKey *)calloc(1, sizeof(cipher_PubKey)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_PubKey(void * jarg1) { + cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; + + arg1 = (cipher_PubKey *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_SecKey_isEqual(void * jarg1, void * jarg2) { + int jresult ; + cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; + cipher_SecKey *arg2 = (cipher_SecKey *) 0 ; + int result; + + arg1 = (cipher_SecKey *)jarg1; + arg2 = (cipher_SecKey *)jarg2; + result = (int)cipher_SecKey_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SecKey_assignFrom(void * jarg1, void * jarg2) { + cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (cipher_SecKey *)jarg1; + arg2 = (void *)jarg2; + cipher_SecKey_assignFrom(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SecKey_assignTo(void * jarg1, void * jarg2) { + cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (cipher_SecKey *)jarg1; + arg2 = (void *)jarg2; + cipher_SecKey_assignTo(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SecKey_data_set(void * jarg1, void * jarg2) { + cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; + GoUint8 *arg2 ; + + arg1 = (cipher_SecKey *)jarg1; + arg2 = (GoUint8 *)jarg2; + { + size_t ii; + GoUint8 *b = (GoUint8 *) arg1->data; + for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8 *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_SecKey_data_get(void * jarg1) { + void * jresult ; + cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; + GoUint8 *result = 0 ; + + arg1 = (cipher_SecKey *)jarg1; + result = (GoUint8 *)(GoUint8 *) ((arg1)->data); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_SecKey() { + void * jresult ; + cipher_SecKey *result = 0 ; + + result = (cipher_SecKey *)calloc(1, sizeof(cipher_SecKey)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_SecKey(void * jarg1) { + cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; + + arg1 = (cipher_SecKey *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_Ripemd160_isEqual(void * jarg1, void * jarg2) { + int jresult ; + cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; + cipher_Ripemd160 *arg2 = (cipher_Ripemd160 *) 0 ; + int result; + + arg1 = (cipher_Ripemd160 *)jarg1; + arg2 = (cipher_Ripemd160 *)jarg2; + result = (int)cipher_Ripemd160_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Ripemd160_assignFrom(void * jarg1, void * jarg2) { + cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (cipher_Ripemd160 *)jarg1; + arg2 = (void *)jarg2; + cipher_Ripemd160_assignFrom(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Ripemd160_assignTo(void * jarg1, void * jarg2) { + cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (cipher_Ripemd160 *)jarg1; + arg2 = (void *)jarg2; + cipher_Ripemd160_assignTo(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Ripemd160_data_set(void * jarg1, void * jarg2) { + cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; + GoUint8 *arg2 ; + + arg1 = (cipher_Ripemd160 *)jarg1; + arg2 = (GoUint8 *)jarg2; + { + size_t ii; + GoUint8 *b = (GoUint8 *) arg1->data; + for (ii = 0; ii < (size_t)20; ii++) b[ii] = *((GoUint8 *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_Ripemd160_data_get(void * jarg1) { + void * jresult ; + cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; + GoUint8 *result = 0 ; + + arg1 = (cipher_Ripemd160 *)jarg1; + result = (GoUint8 *)(GoUint8 *) ((arg1)->data); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_Ripemd160() { + void * jresult ; + cipher_Ripemd160 *result = 0 ; + + result = (cipher_Ripemd160 *)calloc(1, sizeof(cipher_Ripemd160)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_Ripemd160(void * jarg1) { + cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; + + arg1 = (cipher_Ripemd160 *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_Sig_isEqual(void * jarg1, void * jarg2) { + int jresult ; + cipher_Sig *arg1 = (cipher_Sig *) 0 ; + cipher_Sig *arg2 = (cipher_Sig *) 0 ; + int result; + + arg1 = (cipher_Sig *)jarg1; + arg2 = (cipher_Sig *)jarg2; + result = (int)cipher_Sig_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Sig_assignFrom(void * jarg1, void * jarg2) { + cipher_Sig *arg1 = (cipher_Sig *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (cipher_Sig *)jarg1; + arg2 = (void *)jarg2; + cipher_Sig_assignFrom(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Sig_assignTo(void * jarg1, void * jarg2) { + cipher_Sig *arg1 = (cipher_Sig *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (cipher_Sig *)jarg1; + arg2 = (void *)jarg2; + cipher_Sig_assignTo(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Sig_data_set(void * jarg1, void * jarg2) { + cipher_Sig *arg1 = (cipher_Sig *) 0 ; + GoUint8 *arg2 ; + + arg1 = (cipher_Sig *)jarg1; + arg2 = (GoUint8 *)jarg2; + { + size_t ii; + GoUint8 *b = (GoUint8 *) arg1->data; + for (ii = 0; ii < (size_t)65; ii++) b[ii] = *((GoUint8 *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_Sig_data_get(void * jarg1) { + void * jresult ; + cipher_Sig *arg1 = (cipher_Sig *) 0 ; + GoUint8 *result = 0 ; + + arg1 = (cipher_Sig *)jarg1; + result = (GoUint8 *)(GoUint8 *) ((arg1)->data); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_Sig() { + void * jresult ; + cipher_Sig *result = 0 ; + + result = (cipher_Sig *)calloc(1, sizeof(cipher_Sig)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_Sig(void * jarg1) { + cipher_Sig *arg1 = (cipher_Sig *) 0 ; + + arg1 = (cipher_Sig *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_SHA256_isEqual(void * jarg1, void * jarg2) { + int jresult ; + cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; + cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; + int result; + + arg1 = (cipher_SHA256 *)jarg1; + arg2 = (cipher_SHA256 *)jarg2; + result = (int)cipher_SHA256_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SHA256_assignFrom(void * jarg1, void * jarg2) { + cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (cipher_SHA256 *)jarg1; + arg2 = (void *)jarg2; + cipher_SHA256_assignFrom(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SHA256_assignTo(void * jarg1, void * jarg2) { + cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (cipher_SHA256 *)jarg1; + arg2 = (void *)jarg2; + cipher_SHA256_assignTo(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SHA256_data_set(void * jarg1, void * jarg2) { + cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; + GoUint8 *arg2 ; + + arg1 = (cipher_SHA256 *)jarg1; + arg2 = (GoUint8 *)jarg2; + { + size_t ii; + GoUint8 *b = (GoUint8 *) arg1->data; + for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8 *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_SHA256_data_get(void * jarg1) { + void * jresult ; + cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; + GoUint8 *result = 0 ; + + arg1 = (cipher_SHA256 *)jarg1; + result = (GoUint8 *)(GoUint8 *) ((arg1)->data); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_SHA256() { + void * jresult ; + cipher_SHA256 *result = 0 ; + + result = (cipher_SHA256 *)calloc(1, sizeof(cipher_SHA256)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_SHA256(void * jarg1) { + cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; + + arg1 = (cipher_SHA256 *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_Checksum_isEqual(void * jarg1, void * jarg2) { + int jresult ; + cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; + cipher_Checksum *arg2 = (cipher_Checksum *) 0 ; + int result; + + arg1 = (cipher_Checksum *)jarg1; + arg2 = (cipher_Checksum *)jarg2; + result = (int)cipher_Checksum_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Checksum_assignFrom(void * jarg1, void * jarg2) { + cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (cipher_Checksum *)jarg1; + arg2 = (void *)jarg2; + cipher_Checksum_assignFrom(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Checksum_assignTo(void * jarg1, void * jarg2) { + cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (cipher_Checksum *)jarg1; + arg2 = (void *)jarg2; + cipher_Checksum_assignTo(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Checksum_data_set(void * jarg1, void * jarg2) { + cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; + GoUint8 *arg2 ; + + arg1 = (cipher_Checksum *)jarg1; + arg2 = (GoUint8 *)jarg2; + { + size_t ii; + GoUint8 *b = (GoUint8 *) arg1->data; + for (ii = 0; ii < (size_t)4; ii++) b[ii] = *((GoUint8 *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_Checksum_data_get(void * jarg1) { + void * jresult ; + cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; + GoUint8 *result = 0 ; + + arg1 = (cipher_Checksum *)jarg1; + result = (GoUint8 *)(GoUint8 *) ((arg1)->data); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_Checksum() { + void * jresult ; + cipher_Checksum *result = 0 ; + + result = (cipher_Checksum *)calloc(1, sizeof(cipher_Checksum)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_Checksum(void * jarg1) { + cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; + + arg1 = (cipher_Checksum *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_SecKeys_getAt(void * jarg1, int jarg2) { + void * jresult ; + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + int arg2 ; + cipher_SecKey *result = 0 ; + + arg1 = (cipher_SecKeys *)jarg1; + arg2 = (int)jarg2; + result = (cipher_SecKey *)cipher_SecKeys_getAt(arg1,arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_SecKeys_setAt(void * jarg1, int jarg2, void * jarg3) { + int jresult ; + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + int arg2 ; + cipher_SecKey *arg3 = (cipher_SecKey *) 0 ; + int result; + + arg1 = (cipher_SecKeys *)jarg1; + arg2 = (int)jarg2; + arg3 = (cipher_SecKey *)jarg3; + result = (int)cipher_SecKeys_setAt(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_SecKeys_isEqual(void * jarg1, void * jarg2) { + int jresult ; + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + cipher_SecKeys *arg2 = (cipher_SecKeys *) 0 ; + int result; + + arg1 = (cipher_SecKeys *)jarg1; + arg2 = (cipher_SecKeys *)jarg2; + result = (int)cipher_SecKeys_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SecKeys_allocate(void * jarg1, int jarg2) { + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + int arg2 ; + + arg1 = (cipher_SecKeys *)jarg1; + arg2 = (int)jarg2; + cipher_SecKeys_allocate(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SecKeys_release(void * jarg1) { + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + + arg1 = (cipher_SecKeys *)jarg1; + cipher_SecKeys_release(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SecKeys_data_set(void * jarg1, void * jarg2) { + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + cipher_SecKey *arg2 = (cipher_SecKey *) 0 ; + + arg1 = (cipher_SecKeys *)jarg1; + arg2 = (cipher_SecKey *)jarg2; + if (arg1) (arg1)->data = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_SecKeys_data_get(void * jarg1) { + void * jresult ; + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + cipher_SecKey *result = 0 ; + + arg1 = (cipher_SecKeys *)jarg1; + result = (cipher_SecKey *) ((arg1)->data); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SecKeys_count_set(void * jarg1, int jarg2) { + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + int arg2 ; + + arg1 = (cipher_SecKeys *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->count = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_SecKeys_count_get(void * jarg1) { + int jresult ; + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + int result; + + arg1 = (cipher_SecKeys *)jarg1; + result = (int) ((arg1)->count); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_SecKeys() { + void * jresult ; + cipher_SecKeys *result = 0 ; + + result = (cipher_SecKeys *)calloc(1, sizeof(cipher_SecKeys)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_SecKeys(void * jarg1) { + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + + arg1 = (cipher_SecKeys *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_getAt(void * jarg1, int jarg2) { + void * jresult ; + cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; + int arg2 ; + cipher_PubKey *result = 0 ; + + arg1 = (cipher_PubKeys *)jarg1; + arg2 = (int)jarg2; + result = (cipher_PubKey *)cipher_PubKeys_getAt(arg1,arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_setAt(void * jarg1, int jarg2, void * jarg3) { + int jresult ; + cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; + int arg2 ; + cipher_PubKey *arg3 = (cipher_PubKey *) 0 ; + int result; + + arg1 = (cipher_PubKeys *)jarg1; + arg2 = (int)jarg2; + arg3 = (cipher_PubKey *)jarg3; + result = (int)cipher_PubKeys_setAt(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_isEqual(void * jarg1, void * jarg2) { + int jresult ; + cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; + cipher_PubKeys *arg2 = (cipher_PubKeys *) 0 ; + int result; + + arg1 = (cipher_PubKeys *)jarg1; + arg2 = (cipher_PubKeys *)jarg2; + result = (int)cipher_PubKeys_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_allocate(void * jarg1, int jarg2) { + cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; + int arg2 ; + + arg1 = (cipher_PubKeys *)jarg1; + arg2 = (int)jarg2; + cipher_PubKeys_allocate(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_release(void * jarg1) { + cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; + + arg1 = (cipher_PubKeys *)jarg1; + cipher_PubKeys_release(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_data_set(void * jarg1, void * jarg2) { + cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; + cipher_PubKey *arg2 = (cipher_PubKey *) 0 ; + + arg1 = (cipher_PubKeys *)jarg1; + arg2 = (cipher_PubKey *)jarg2; + if (arg1) (arg1)->data = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_data_get(void * jarg1) { + void * jresult ; + cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; + cipher_PubKey *result = 0 ; + + arg1 = (cipher_PubKeys *)jarg1; + result = (cipher_PubKey *) ((arg1)->data); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_count_set(void * jarg1, int jarg2) { + cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; + int arg2 ; + + arg1 = (cipher_PubKeys *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->count = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_count_get(void * jarg1) { + int jresult ; + cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; + int result; + + arg1 = (cipher_PubKeys *)jarg1; + result = (int) ((arg1)->count); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_PubKeys() { + void * jresult ; + cipher_PubKeys *result = 0 ; + + result = (cipher_PubKeys *)calloc(1, sizeof(cipher_PubKeys)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_PubKeys(void * jarg1) { + cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; + + arg1 = (cipher_PubKeys *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_SHA256s_getAt(void * jarg1, int jarg2) { + void * jresult ; + cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; + int arg2 ; + cipher_SHA256 *result = 0 ; + + arg1 = (cipher_SHA256s *)jarg1; + arg2 = (int)jarg2; + result = (cipher_SHA256 *)cipher_SHA256s_getAt(arg1,arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_SHA256s_setAt(void * jarg1, int jarg2, void * jarg3) { + int jresult ; + cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; + int arg2 ; + cipher_SHA256 *arg3 = (cipher_SHA256 *) 0 ; + int result; + + arg1 = (cipher_SHA256s *)jarg1; + arg2 = (int)jarg2; + arg3 = (cipher_SHA256 *)jarg3; + result = (int)cipher_SHA256s_setAt(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_SHA256s_isEqual(void * jarg1, void * jarg2) { + int jresult ; + cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; + cipher_SHA256s *arg2 = (cipher_SHA256s *) 0 ; + int result; + + arg1 = (cipher_SHA256s *)jarg1; + arg2 = (cipher_SHA256s *)jarg2; + result = (int)cipher_SHA256s_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SHA256s_allocate(void * jarg1, int jarg2) { + cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; + int arg2 ; + + arg1 = (cipher_SHA256s *)jarg1; + arg2 = (int)jarg2; + cipher_SHA256s_allocate(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SHA256s_release(void * jarg1) { + cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; + + arg1 = (cipher_SHA256s *)jarg1; + cipher_SHA256s_release(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SHA256s_data_set(void * jarg1, void * jarg2) { + cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; + cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; + + arg1 = (cipher_SHA256s *)jarg1; + arg2 = (cipher_SHA256 *)jarg2; + if (arg1) (arg1)->data = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_SHA256s_data_get(void * jarg1) { + void * jresult ; + cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; + cipher_SHA256 *result = 0 ; + + arg1 = (cipher_SHA256s *)jarg1; + result = (cipher_SHA256 *) ((arg1)->data); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SHA256s_count_set(void * jarg1, int jarg2) { + cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; + int arg2 ; + + arg1 = (cipher_SHA256s *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->count = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_SHA256s_count_get(void * jarg1) { + int jresult ; + cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; + int result; + + arg1 = (cipher_SHA256s *)jarg1; + result = (int) ((arg1)->count); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_SHA256s() { + void * jresult ; + cipher_SHA256s *result = 0 ; + + result = (cipher_SHA256s *)calloc(1, sizeof(cipher_SHA256s)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_SHA256s(void * jarg1) { + cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; + + arg1 = (cipher_SHA256s *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_getAt(void * jarg1, int jarg2) { + void * jresult ; + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + int arg2 ; + coin__UxOut *result = 0 ; + + arg1 = (coin_UxOutArray *)jarg1; + arg2 = (int)jarg2; + result = (coin__UxOut *)coin_UxOutArray_getAt(arg1,arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_setAt(void * jarg1, int jarg2, void * jarg3) { + int jresult ; + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + int arg2 ; + coin__UxOut *arg3 = (coin__UxOut *) 0 ; + int result; + + arg1 = (coin_UxOutArray *)jarg1; + arg2 = (int)jarg2; + arg3 = (coin__UxOut *)jarg3; + result = (int)coin_UxOutArray_setAt(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_isEqual(void * jarg1, void * jarg2) { + int jresult ; + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + coin_UxOutArray *arg2 = (coin_UxOutArray *) 0 ; + int result; + + arg1 = (coin_UxOutArray *)jarg1; + arg2 = (coin_UxOutArray *)jarg2; + result = (int)coin_UxOutArray_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_allocate(void * jarg1, int jarg2) { + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + int arg2 ; + + arg1 = (coin_UxOutArray *)jarg1; + arg2 = (int)jarg2; + coin_UxOutArray_allocate(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_release(void * jarg1) { + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + + arg1 = (coin_UxOutArray *)jarg1; + coin_UxOutArray_release(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_data_set(void * jarg1, void * jarg2) { + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + coin__UxOut *arg2 = (coin__UxOut *) 0 ; + + arg1 = (coin_UxOutArray *)jarg1; + arg2 = (coin__UxOut *)jarg2; + if (arg1) (arg1)->data = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_data_get(void * jarg1) { + void * jresult ; + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + coin__UxOut *result = 0 ; + + arg1 = (coin_UxOutArray *)jarg1; + result = (coin__UxOut *) ((arg1)->data); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_count_set(void * jarg1, int jarg2) { + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + int arg2 ; + + arg1 = (coin_UxOutArray *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->count = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_count_get(void * jarg1) { + int jresult ; + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + int result; + + arg1 = (coin_UxOutArray *)jarg1; + result = (int) ((arg1)->count); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin_UxOutArray() { + void * jresult ; + coin_UxOutArray *result = 0 ; + + result = (coin_UxOutArray *)calloc(1, sizeof(coin_UxOutArray)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin_UxOutArray(void * jarg1) { + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + + arg1 = (coin_UxOutArray *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin__GoString__p_set(void * jarg1, char * jarg2) { + _GoString_ *arg1 = (_GoString_ *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (_GoString_ *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->p = (char const *) malloc(strlen((const char *)arg2)+1); + strcpy((char *)arg1->p, (const char *)arg2); + } else { + arg1->p = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_skycoin__GoString__p_get(void * jarg1) { + char * jresult ; + _GoString_ *arg1 = (_GoString_ *) 0 ; + char *result = 0 ; + + arg1 = (_GoString_ *)jarg1; + result = (char *) ((arg1)->p); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin__GoString__n_set(void * jarg1, void * jarg2) { + _GoString_ *arg1 = (_GoString_ *) 0 ; + ptrdiff_t arg2 ; + ptrdiff_t *argp2 ; + + arg1 = (_GoString_ *)jarg1; + argp2 = (ptrdiff_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null ptrdiff_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->n = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin__GoString__n_get(void * jarg1) { + void * jresult ; + _GoString_ *arg1 = (_GoString_ *) 0 ; + ptrdiff_t result; + + arg1 = (_GoString_ *)jarg1; + result = ((arg1)->n); + { + ptrdiff_t * resultptr = (ptrdiff_t *) malloc(sizeof(ptrdiff_t)); + memmove(resultptr, &result, sizeof(ptrdiff_t)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new__GoString_() { + void * jresult ; + _GoString_ *result = 0 ; + + result = (_GoString_ *)calloc(1, sizeof(_GoString_)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete__GoString_(void * jarg1) { + _GoString_ *arg1 = (_GoString_ *) 0 ; + + arg1 = (_GoString_ *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoInterface_t_set(void * jarg1, void * jarg2) { + GoInterface *arg1 = (GoInterface *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (GoInterface *)jarg1; + arg2 = (void *)jarg2; + if (arg1) (arg1)->t = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_GoInterface_t_get(void * jarg1) { + void * jresult ; + GoInterface *arg1 = (GoInterface *) 0 ; + void *result = 0 ; + + arg1 = (GoInterface *)jarg1; + result = (void *) ((arg1)->t); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoInterface_v_set(void * jarg1, void * jarg2) { + GoInterface *arg1 = (GoInterface *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (GoInterface *)jarg1; + arg2 = (void *)jarg2; + if (arg1) (arg1)->v = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_GoInterface_v_get(void * jarg1) { + void * jresult ; + GoInterface *arg1 = (GoInterface *) 0 ; + void *result = 0 ; + + arg1 = (GoInterface *)jarg1; + result = (void *) ((arg1)->v); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_GoInterface() { + void * jresult ; + GoInterface *result = 0 ; + + result = (GoInterface *)calloc(1, sizeof(GoInterface)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_GoInterface(void * jarg1) { + GoInterface *arg1 = (GoInterface *) 0 ; + + arg1 = (GoInterface *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoSlice_data_set(void * jarg1, void * jarg2) { + GoSlice *arg1 = (GoSlice *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (GoSlice *)jarg1; + arg2 = (void *)jarg2; + if (arg1) (arg1)->data = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_GoSlice_data_get(void * jarg1) { + void * jresult ; + GoSlice *arg1 = (GoSlice *) 0 ; + void *result = 0 ; + + arg1 = (GoSlice *)jarg1; + result = (void *) ((arg1)->data); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoSlice_len_set(void * jarg1, long long jarg2) { + GoSlice *arg1 = (GoSlice *) 0 ; + GoInt arg2 ; + + arg1 = (GoSlice *)jarg1; + arg2 = (GoInt)jarg2; + if (arg1) (arg1)->len = arg2; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_GoSlice_len_get(void * jarg1) { + long long jresult ; + GoSlice *arg1 = (GoSlice *) 0 ; + GoInt result; + + arg1 = (GoSlice *)jarg1; + result = (GoInt) ((arg1)->len); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoSlice_cap_set(void * jarg1, long long jarg2) { + GoSlice *arg1 = (GoSlice *) 0 ; + GoInt arg2 ; + + arg1 = (GoSlice *)jarg1; + arg2 = (GoInt)jarg2; + if (arg1) (arg1)->cap = arg2; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_GoSlice_cap_get(void * jarg1) { + long long jresult ; + GoSlice *arg1 = (GoSlice *) 0 ; + GoInt result; + + arg1 = (GoSlice *)jarg1; + result = (GoInt) ((arg1)->cap); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_GoSlice() { + void * jresult ; + GoSlice *result = 0 ; + + result = (GoSlice *)calloc(1, sizeof(GoSlice)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_GoSlice(void * jarg1) { + GoSlice *arg1 = (GoSlice *) 0 ; + + arg1 = (GoSlice *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_String2Hex(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_base58_String2Hex(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_ToInt(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_base58_Base58_ToInt(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_ToHex(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_base58_Base58_ToHex(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_Base582Int(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_base58_Base58_Base582Int(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base582Hex(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_base58_Base582Hex(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_BitHex(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_base58_Base58_BitHex(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Int2Base58(long long jarg1, void * jarg2) { + unsigned int jresult ; + GoInt arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + arg1 = (GoInt)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_base58_Int2Base58(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Hex2Base58(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_base58_Hex2Base58(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Hex2Base58String(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_base58_Hex2Base58String(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Hex2Base58Str(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_base58_Hex2Base58Str(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewReadableEntry(void * jarg1, void * jarg2) { + unsigned int jresult ; + wallet__Entry *arg1 = (wallet__Entry *) 0 ; + ReadableEntry__Handle *arg2 = (ReadableEntry__Handle *) 0 ; + GoUint32 result; + + arg1 = (wallet__Entry *)jarg1; + arg2 = (ReadableEntry__Handle *)jarg2; + result = (GoUint32)SKY_wallet_NewReadableEntry(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_LoadReadableEntry(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + ReadableEntry__Handle *arg2 = (ReadableEntry__Handle *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (ReadableEntry__Handle *)jarg2; + result = (GoUint32)SKY_wallet_LoadReadableEntry(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewReadableEntryFromPubkey(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + ReadableEntry__Handle *arg2 = (ReadableEntry__Handle *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (ReadableEntry__Handle *)jarg2; + result = (GoUint32)SKY_wallet_NewReadableEntryFromPubkey(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableEntry_Save(void * jarg1, void * jarg2) { + unsigned int jresult ; + ReadableEntry__Handle arg1 ; + GoString arg2 ; + ReadableEntry__Handle *argp1 ; + GoString *argp2 ; + GoUint32 result; + + argp1 = (ReadableEntry__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null ReadableEntry__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_wallet_ReadableEntry_Save(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_LoadReadableWallet(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + ReadableWallet__Handle *arg2 = (ReadableWallet__Handle *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (ReadableWallet__Handle *)jarg2; + result = (GoUint32)SKY_wallet_LoadReadableWallet(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableWallet_Save(void * jarg1, void * jarg2) { + unsigned int jresult ; + ReadableWallet__Handle arg1 ; + GoString arg2 ; + ReadableWallet__Handle *argp1 ; + GoString *argp2 ; + GoUint32 result; + + argp1 = (ReadableWallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null ReadableWallet__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_wallet_ReadableWallet_Save(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableWallet_Load(void * jarg1, void * jarg2) { + unsigned int jresult ; + ReadableWallet__Handle arg1 ; + GoString arg2 ; + ReadableWallet__Handle *argp1 ; + GoString *argp2 ; + GoUint32 result; + + argp1 = (ReadableWallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null ReadableWallet__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_wallet_ReadableWallet_Load(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableWallet_Erase(void * jarg1) { + unsigned int jresult ; + ReadableWallet__Handle arg1 ; + ReadableWallet__Handle *argp1 ; + GoUint32 result; + + argp1 = (ReadableWallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null ReadableWallet__Handle", 0); + return 0; + } + arg1 = *argp1; + result = (GoUint32)SKY_wallet_ReadableWallet_Erase(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetWalletOutputsFromFile(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + WebRpcClient__Handle arg1 ; + GoString arg2 ; + OutputsResult_Handle *arg3 = (OutputsResult_Handle *) 0 ; + WebRpcClient__Handle *argp1 ; + GoString *argp2 ; + GoUint32 result; + + argp1 = (WebRpcClient__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (OutputsResult_Handle *)jarg3; + result = (GoUint32)SKY_cli_GetWalletOutputsFromFile(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetWalletOutputs(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + WebRpcClient__Handle arg1 ; + Wallet__Handle *arg2 = (Wallet__Handle *) 0 ; + OutputsResult_Handle *arg3 = (OutputsResult_Handle *) 0 ; + WebRpcClient__Handle *argp1 ; + GoUint32 result; + + argp1 = (WebRpcClient__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Wallet__Handle *)jarg2; + arg3 = (OutputsResult_Handle *)jarg3; + result = (GoUint32)SKY_cli_GetWalletOutputs(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_String(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_secp256k1go_Field_String(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Print(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoString arg2 ; + GoString *argp2 ; + GoUint32 result; + + arg1 = (secp256k1go__Field *)jarg1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_secp256k1go_Field_Print(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetB32(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoSlice arg2 ; + GoSlice *argp2 ; + GoUint32 result; + + arg1 = (secp256k1go__Field *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_secp256k1go_Field_SetB32(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetBytes(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoSlice arg2 ; + GoSlice *argp2 ; + GoUint32 result; + + arg1 = (secp256k1go__Field *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_secp256k1go_Field_SetBytes(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetHex(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoString arg2 ; + GoString *argp2 ; + GoUint32 result; + + arg1 = (secp256k1go__Field *)jarg1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_secp256k1go_Field_SetHex(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_IsOdd(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_secp256k1go_Field_IsOdd(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_IsZero(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_secp256k1go_Field_IsZero(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetInt(void * jarg1, unsigned int jarg2) { + unsigned int jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoUint32 arg2 ; + GoUint32 result; + + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (GoUint32)jarg2; + result = (GoUint32)SKY_secp256k1go_Field_SetInt(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Normalize(void * jarg1) { + unsigned int jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__Field *)jarg1; + result = (GoUint32)SKY_secp256k1go_Field_Normalize(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_GetB32(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoSlice arg2 ; + GoSlice *argp2 ; + GoUint32 result; + + arg1 = (secp256k1go__Field *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_secp256k1go_Field_GetB32(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Equals(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + GoUint8 *arg3 = (GoUint8 *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + arg3 = (GoUint8 *)jarg3; + result = (GoUint32)SKY_secp256k1go_Field_Equals(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetAdd(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + result = (GoUint32)SKY_secp256k1go_Field_SetAdd(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_MulInt(void * jarg1, unsigned int jarg2) { + unsigned int jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoUint32 arg2 ; + GoUint32 result; + + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (GoUint32)jarg2; + result = (GoUint32)SKY_secp256k1go_Field_MulInt(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Negate(void * jarg1, void * jarg2, unsigned int jarg3) { + unsigned int jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + GoUint32 arg3 ; + GoUint32 result; + + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + arg3 = (GoUint32)jarg3; + result = (GoUint32)SKY_secp256k1go_Field_Negate(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Inv(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + result = (GoUint32)SKY_secp256k1go_Field_Inv(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Sqrt(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + result = (GoUint32)SKY_secp256k1go_Field_Sqrt(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_InvVar(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + result = (GoUint32)SKY_secp256k1go_Field_InvVar(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Mul(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + secp256k1go__Field *arg3 = (secp256k1go__Field *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + arg3 = (secp256k1go__Field *)jarg3; + result = (GoUint32)SKY_secp256k1go_Field_Mul(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Sqr(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + result = (GoUint32)SKY_secp256k1go_Field_Sqr(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewWalletResponse(void * jarg1, void * jarg2) { + unsigned int jresult ; + Wallet__Handle arg1 ; + WalletResponse__Handle *arg2 = (WalletResponse__Handle *) 0 ; + Wallet__Handle *argp1 ; + GoUint32 result; + + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (WalletResponse__Handle *)jarg2; + result = (GoUint32)SKY_api_NewWalletResponse(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Len(void * jarg1) { + long long jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoInt result; + + arg1 = (coin__UxArray *)jarg1; + result = (GoInt)SKY_cipher_PubKeySlice_Len(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Less(void * jarg1, long long jarg2, long long jarg3) { + unsigned char jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoInt arg2 ; + GoInt arg3 ; + GoUint8 result; + + arg1 = (coin__UxArray *)jarg1; + arg2 = (GoInt)jarg2; + arg3 = (GoInt)jarg3; + result = (GoUint8)SKY_cipher_PubKeySlice_Less(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Swap(void * jarg1, long long jarg2, long long jarg3) { + unsigned int jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoInt arg2 ; + GoInt arg3 ; + GoUint32 result; + + arg1 = (coin__UxArray *)jarg1; + arg2 = (GoInt)jarg2; + arg3 = (GoInt)jarg3; + result = (GoUint32)SKY_cipher_PubKeySlice_Swap(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_RandByte(long long jarg1, void * jarg2) { + unsigned int jresult ; + GoInt arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (GoInt)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_cipher_RandByte(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewPubKey(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__PubKey *)jarg2; + result = (GoUint32)SKY_cipher_NewPubKey(arg1,(GoUint8_ (*)[33])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_MustPubKeyFromHex(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__PubKey *)jarg2; + result = (GoUint32)SKY_cipher_MustPubKeyFromHex(arg1,(GoUint8_ (*)[33])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromHex(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__PubKey *)jarg2; + result = (GoUint32)SKY_cipher_PubKeyFromHex(arg1,(GoUint8_ (*)[33])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSecKey(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + GoUint32 result; + + arg1 = (cipher__SecKey *)jarg1; + arg2 = (cipher__PubKey *)jarg2; + result = (GoUint32)SKY_cipher_PubKeyFromSecKey((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[33])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSig(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + cipher__Sig *arg1 = (cipher__Sig *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + cipher__PubKey *arg3 = (cipher__PubKey *) 0 ; + GoUint32 result; + + arg1 = (cipher__Sig *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + arg3 = (cipher__PubKey *)jarg3; + result = (GoUint32)SKY_cipher_PubKeyFromSig((GoUint8_ (*)[65])arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[33])arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_Verify(void * jarg1) { + unsigned int jresult ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + GoUint32 result; + + arg1 = (cipher__PubKey *)jarg1; + result = (GoUint32)SKY_cipher_PubKey_Verify((GoUint8_ (*)[33])arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_Hex(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + arg1 = (cipher__PubKey *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cipher_PubKey_Hex((GoUint8_ (*)[33])arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_ToAddressHash(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__Ripemd160 *arg2 = (cipher__Ripemd160 *) 0 ; + GoUint32 result; + + arg1 = (cipher__PubKey *)jarg1; + arg2 = (cipher__Ripemd160 *)jarg2; + result = (GoUint32)SKY_cipher_PubKey_ToAddressHash((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[20])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewSecKey(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__SecKey *)jarg2; + result = (GoUint32)SKY_cipher_NewSecKey(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_MustSecKeyFromHex(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__SecKey *)jarg2; + result = (GoUint32)SKY_cipher_MustSecKeyFromHex(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKeyFromHex(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__SecKey *)jarg2; + result = (GoUint32)SKY_cipher_SecKeyFromHex(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKey_Verify(void * jarg1) { + unsigned int jresult ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + GoUint32 result; + + arg1 = (cipher__SecKey *)jarg1; + result = (GoUint32)SKY_cipher_SecKey_Verify((GoUint8_ (*)[32])arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKey_Hex(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + arg1 = (cipher__SecKey *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cipher_SecKey_Hex((GoUint8_ (*)[32])arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_ECDH(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (cipher__PubKey *)jarg1; + arg2 = (cipher__SecKey *)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_cipher_ECDH((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewSig(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + cipher__Sig *arg2 = (cipher__Sig *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__Sig *)jarg2; + result = (GoUint32)SKY_cipher_NewSig(arg1,(GoUint8_ (*)[65])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_MustSigFromHex(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + cipher__Sig *arg2 = (cipher__Sig *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__Sig *)jarg2; + result = (GoUint32)SKY_cipher_MustSigFromHex(arg1,(GoUint8_ (*)[65])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SigFromHex(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + cipher__Sig *arg2 = (cipher__Sig *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__Sig *)jarg2; + result = (GoUint32)SKY_cipher_SigFromHex(arg1,(GoUint8_ (*)[65])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Sig_Hex(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__Sig *arg1 = (cipher__Sig *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + arg1 = (cipher__Sig *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cipher_Sig_Hex((GoUint8_ (*)[65])arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SignHash(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + cipher__Sig *arg3 = (cipher__Sig *) 0 ; + GoUint32 result; + + arg1 = (cipher__SHA256 *)jarg1; + arg2 = (cipher__SecKey *)jarg2; + arg3 = (cipher__Sig *)jarg3; + result = (GoUint32)SKY_cipher_SignHash((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[65])arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_ChkSig(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + cipher__Sig *arg3 = (cipher__Sig *) 0 ; + GoUint32 result; + + arg1 = (cipher__Address *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + arg3 = (cipher__Sig *)jarg3; + result = (GoUint32)SKY_cipher_ChkSig(arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[65])arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignedHash(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__Sig *arg1 = (cipher__Sig *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint32 result; + + arg1 = (cipher__Sig *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_cipher_VerifySignedHash((GoUint8_ (*)[65])arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignature(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__Sig *arg2 = (cipher__Sig *) 0 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + GoUint32 result; + + arg1 = (cipher__PubKey *)jarg1; + arg2 = (cipher__Sig *)jarg2; + arg3 = (cipher__SHA256 *)jarg3; + result = (GoUint32)SKY_cipher_VerifySignature((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[65])arg2,(GoUint8_ (*)[32])arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateKeyPair(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + GoUint32 result; + + arg1 = (cipher__PubKey *)jarg1; + arg2 = (cipher__SecKey *)jarg2; + result = (GoUint32)SKY_cipher_GenerateKeyPair((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPair(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + GoSlice arg1 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + cipher__SecKey *arg3 = (cipher__SecKey *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__PubKey *)jarg2; + arg3 = (cipher__SecKey *)jarg3; + result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPair(arg1,(GoUint8_ (*)[33])arg2,(GoUint8_ (*)[32])arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DeterministicKeyPairIterator(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + cipher__PubKey *arg3 = (cipher__PubKey *) 0 ; + cipher__SecKey *arg4 = (cipher__SecKey *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + arg3 = (cipher__PubKey *)jarg3; + arg4 = (cipher__SecKey *)jarg4; + result = (GoUint32)SKY_cipher_DeterministicKeyPairIterator(arg1,arg2,(GoUint8_ (*)[33])arg3,(GoUint8_ (*)[32])arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairs(void * jarg1, long long jarg2, void * jarg3) { + unsigned int jresult ; + GoSlice arg1 ; + GoInt arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPairs(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairsSeed(void * jarg1, long long jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + GoSlice arg1 ; + GoInt arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt)jarg2; + arg3 = (coin__UxArray *)jarg3; + arg4 = (coin__UxArray *)jarg4; + result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPairsSeed(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_TestSecKey(void * jarg1) { + unsigned int jresult ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + GoUint32 result; + + arg1 = (cipher__SecKey *)jarg1; + result = (GoUint32)SKY_cipher_TestSecKey((GoUint8_ (*)[32])arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_TestSecKeyHash(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint32 result; + + arg1 = (cipher__SecKey *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_cipher_TestSecKeyHash((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_DecompressPoint(void * jarg1, unsigned char jarg2, void * jarg3) { + unsigned int jresult ; + GoSlice arg1 ; + GoUint8 arg2 ; + GoSlice arg3 ; + GoSlice *argp1 ; + GoSlice *argp3 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint8)jarg2; + argp3 = (GoSlice *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg3 = *argp3; + result = (GoUint32)SKY_secp256k1go_DecompressPoint(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_RecoverPublicKey(void * jarg1, void * jarg2, long long jarg3, void * jarg4, void * jarg5) { + unsigned int jresult ; + GoSlice arg1 ; + GoSlice arg2 ; + GoInt arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + GoInt *arg5 = (GoInt *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (GoInt)jarg3; + arg4 = (coin__UxArray *)jarg4; + arg5 = (GoInt *)jarg5; + result = (GoUint32)SKY_secp256k1go_RecoverPublicKey(arg1,arg2,arg3,arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Multiply(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + GoSlice arg1 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_secp256k1go_Multiply(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_BaseMultiply(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1go_BaseMultiply(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_BaseMultiplyAdd(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + GoSlice arg1 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_secp256k1go_BaseMultiplyAdd(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_GeneratePublicKey(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1go_GeneratePublicKey(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_SeckeyIsValid(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_secp256k1go_SeckeyIsValid(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_PubkeyIsValid(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_secp256k1go_PubkeyIsValid(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_InitDataDir(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_file_InitDataDir(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_UserHome(void * jarg1) { + unsigned int jresult ; + GoString_ *arg1 = (GoString_ *) 0 ; + GoUint32 result; + + arg1 = (GoString_ *)jarg1; + result = (GoUint32)SKY_file_UserHome(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_ResolveResourceDirectory(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_file_ResolveResourceDirectory(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_DetermineResourcePath(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + GoString arg1 ; + GoString arg2 ; + GoString arg3 ; + GoString_ *arg4 = (GoString_ *) 0 ; + GoString *argp1 ; + GoString *argp2 ; + GoString *argp3 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + arg4 = (GoString_ *)jarg4; + result = (GoUint32)SKY_file_DetermineResourcePath(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_SumSHA256(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1_SumSHA256(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_RandByte(long long jarg1, void * jarg2) { + unsigned int jresult ; + GoInt arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (GoInt)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1_RandByte(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreateTransactionResponse(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoSlice arg2 ; + CreateTransactionResponse__Handle *arg3 = (CreateTransactionResponse__Handle *) 0 ; + Transaction__Handle *argp1 ; + GoSlice *argp2 ; + GoUint32 result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (CreateTransactionResponse__Handle *)jarg3; + result = (GoUint32)SKY_api_NewCreateTransactionResponse(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreatedTransaction(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoSlice arg2 ; + CreatedTransaction__Handle *arg3 = (CreatedTransaction__Handle *) 0 ; + Transaction__Handle *argp1 ; + GoSlice *argp2 ; + GoUint32 result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (CreatedTransaction__Handle *)jarg3; + result = (GoUint32)SKY_api_NewCreatedTransaction(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_CreatedTransaction_ToTransaction(void * jarg1, void * jarg2) { + unsigned int jresult ; + CreatedTransaction__Handle arg1 ; + Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; + CreatedTransaction__Handle *argp1 ; + GoUint32 result; + + argp1 = (CreatedTransaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null CreatedTransaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Transaction__Handle *)jarg2; + result = (GoUint32)SKY_api_CreatedTransaction_ToTransaction(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreatedTransactionOutput(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + CreatedTransactionOutput__Handle *arg3 = (CreatedTransactionOutput__Handle *) 0 ; + GoUint32 result; + + arg1 = (coin__TransactionOutput *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + arg3 = (CreatedTransactionOutput__Handle *)jarg3; + result = (GoUint32)SKY_api_NewCreatedTransactionOutput(arg1,(GoUint8_ (*)[32])arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreatedTransactionInput(void * jarg1, void * jarg2) { + unsigned int jresult ; + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + CreatedTransactionInput__Handle *arg2 = (CreatedTransactionInput__Handle *) 0 ; + GoUint32 result; + + arg1 = (wallet__UxBalance *)jarg1; + arg2 = (CreatedTransactionInput__Handle *)jarg2; + result = (GoUint32)SKY_api_NewCreatedTransactionInput(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_browser_Open(void * jarg1) { + unsigned int jresult ; + GoString arg1 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + result = (GoUint32)SKY_browser_Open(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DecodeBase58Address(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__Address *)jarg2; + result = (GoUint32)SKY_cipher_DecodeBase58Address(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_MustDecodeBase58Address(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__Address *)jarg2; + result = (GoUint32)SKY_cipher_MustDecodeBase58Address(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinMustDecodeBase58Address(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__Address *)jarg2; + result = (GoUint32)SKY_cipher_BitcoinMustDecodeBase58Address(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddressFromBytes(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__Address *)jarg2; + result = (GoUint32)SKY_cipher_AddressFromBytes(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddressFromPubKey(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoUint32 result; + + arg1 = (cipher__PubKey *)jarg1; + arg2 = (cipher__Address *)jarg2; + result = (GoUint32)SKY_cipher_AddressFromPubKey((GoUint8_ (*)[33])arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddressFromSecKey(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoUint32 result; + + arg1 = (cipher__SecKey *)jarg1; + arg2 = (cipher__Address *)jarg2; + result = (GoUint32)SKY_cipher_AddressFromSecKey((GoUint8_ (*)[32])arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinDecodeBase58Address(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__Address *)jarg2; + result = (GoUint32)SKY_cipher_BitcoinDecodeBase58Address(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_MustAddressFromBytes(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__Address *)jarg2; + result = (GoUint32)SKY_cipher_MustAddressFromBytes(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Bytes(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (cipher__Address *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_cipher_Address_Bytes(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Null(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoUint32 result; + + arg1 = (cipher__Address *)jarg1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_cipher_Address_Null(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_BitcoinBytes(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (cipher__Address *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_cipher_Address_BitcoinBytes(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Verify(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + GoUint32 result; + + arg1 = (cipher__Address *)jarg1; + arg2 = (cipher__PubKey *)jarg2; + result = (GoUint32)SKY_cipher_Address_Verify(arg1,(GoUint8_ (*)[33])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_String(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + arg1 = (cipher__Address *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cipher_Address_String(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_BitcoinString(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + arg1 = (cipher__Address *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cipher_Address_BitcoinString(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Checksum(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + cipher__Checksum *arg2 = (cipher__Checksum *) 0 ; + GoUint32 result; + + arg1 = (cipher__Address *)jarg1; + arg2 = (cipher__Checksum *)jarg2; + result = (GoUint32)SKY_cipher_Address_Checksum(arg1,(GoUint8_ (*)[4])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_BitcoinChecksum(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + cipher__Checksum *arg2 = (cipher__Checksum *) 0 ; + GoUint32 result; + + arg1 = (cipher__Address *)jarg1; + arg2 = (cipher__Checksum *)jarg2; + result = (GoUint32)SKY_cipher_Address_BitcoinChecksum(arg1,(GoUint8_ (*)[4])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddressFromPubkey(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + arg1 = (cipher__PubKey *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cipher_BitcoinAddressFromPubkey((GoUint8_ (*)[33])arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinWalletImportFormatFromSeckey(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + arg1 = (cipher__SecKey *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cipher_BitcoinWalletImportFormatFromSeckey((GoUint8_ (*)[32])arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddressFromBytes(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__Address *)jarg2; + result = (GoUint32)SKY_cipher_BitcoinAddressFromBytes(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKeyFromWalletImportFormat(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__SecKey *)jarg2; + result = (GoUint32)SKY_cipher_SecKeyFromWalletImportFormat(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_MustSecKeyFromWalletImportFormat(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__SecKey *)jarg2; + result = (GoUint32)SKY_cipher_MustSecKeyFromWalletImportFormat(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_testutil_MakeAddress(void * jarg1) { + unsigned int jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoUint32 result; + + arg1 = (cipher__Address *)jarg1; + result = (GoUint32)SKY_testutil_MakeAddress(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromWallet(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) { + unsigned int jresult ; + WebRpcClient__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + GoSlice arg4 ; + PasswordReader__Handle arg5 ; + Transaction__Handle *arg6 = (Transaction__Handle *) 0 ; + WebRpcClient__Handle *argp1 ; + GoString *argp2 ; + GoString *argp3 ; + GoSlice *argp4 ; + PasswordReader__Handle *argp5 ; + GoUint32 result; + + argp1 = (WebRpcClient__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + argp4 = (GoSlice *)jarg4; + if (!argp4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg4 = *argp4; + argp5 = (PasswordReader__Handle *)jarg5; + if (!argp5) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null PasswordReader__Handle", 0); + return 0; + } + arg5 = *argp5; + arg6 = (Transaction__Handle *)jarg6; + result = (GoUint32)SKY_cli_CreateRawTxFromWallet(arg1,arg2,arg3,arg4,arg5,arg6); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromAddress(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6, void * jarg7) { + unsigned int jresult ; + WebRpcClient__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + GoString arg4 ; + GoSlice arg5 ; + PasswordReader__Handle arg6 ; + Transaction__Handle *arg7 = (Transaction__Handle *) 0 ; + WebRpcClient__Handle *argp1 ; + GoString *argp2 ; + GoString *argp3 ; + GoString *argp4 ; + GoSlice *argp5 ; + PasswordReader__Handle *argp6 ; + GoUint32 result; + + argp1 = (WebRpcClient__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + argp4 = (GoString *)jarg4; + if (!argp4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg4 = *argp4; + argp5 = (GoSlice *)jarg5; + if (!argp5) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg5 = *argp5; + argp6 = (PasswordReader__Handle *)jarg6; + if (!argp6) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null PasswordReader__Handle", 0); + return 0; + } + arg6 = *argp6; + arg7 = (Transaction__Handle *)jarg7; + result = (GoUint32)SKY_cli_CreateRawTxFromAddress(arg1,arg2,arg3,arg4,arg5,arg6,arg7); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTx(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6, void * jarg7) { + unsigned int jresult ; + WebRpcClient__Handle arg1 ; + Wallet__Handle arg2 ; + GoSlice arg3 ; + GoString arg4 ; + GoSlice arg5 ; + GoSlice arg6 ; + Transaction__Handle *arg7 = (Transaction__Handle *) 0 ; + WebRpcClient__Handle *argp1 ; + Wallet__Handle *argp2 ; + GoSlice *argp3 ; + GoString *argp4 ; + GoSlice *argp5 ; + GoSlice *argp6 ; + GoUint32 result; + + argp1 = (WebRpcClient__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (Wallet__Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoSlice *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg3 = *argp3; + argp4 = (GoString *)jarg4; + if (!argp4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg4 = *argp4; + argp5 = (GoSlice *)jarg5; + if (!argp5) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg5 = *argp5; + argp6 = (GoSlice *)jarg6; + if (!argp6) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg6 = *argp6; + arg7 = (Transaction__Handle *)jarg7; + result = (GoUint32)SKY_cli_CreateRawTx(arg1,arg2,arg3,arg4,arg5,arg6,arg7); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_NewTransaction(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + GoSlice arg1 ; + GoSlice arg2 ; + GoSlice arg3 ; + Transaction__Handle *arg4 = (Transaction__Handle *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; + GoSlice *argp3 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoSlice *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg3 = *argp3; + arg4 = (Transaction__Handle *)jarg4; + result = (GoUint32)SKY_cli_NewTransaction(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_apputil_CatchInterruptPanic() { + unsigned int jresult ; + GoUint32 result; + + result = (GoUint32)SKY_apputil_CatchInterruptPanic(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_apputil_CatchDebug() { + unsigned int jresult ; + GoUint32 result; + + result = (GoUint32)SKY_apputil_CatchDebug(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_apputil_PrintProgramStatus() { + unsigned int jresult ; + GoUint32 result; + + result = (GoUint32)SKY_apputil_PrintProgramStatus(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_utc_UnixNow(void * jarg1) { + unsigned int jresult ; + GoInt64 *arg1 = (GoInt64 *) 0 ; + GoUint32 result; + + arg1 = (GoInt64 *)jarg1; + result = (GoUint32)SKY_utc_UnixNow(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Address_UnmarshalJSON(void * jarg1, void * jarg2) { + unsigned int jresult ; + httphelper__Address *arg1 = (httphelper__Address *) 0 ; + GoSlice arg2 ; + GoSlice *argp2 ; + GoUint32 result; + + arg1 = (httphelper__Address *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_httphelper_Address_UnmarshalJSON(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Address_MarshalJSON(void * jarg1, void * jarg2) { + unsigned int jresult ; + httphelper__Address *arg1 = (httphelper__Address *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (httphelper__Address *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_httphelper_Address_MarshalJSON(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Coins_UnmarshalJSON(void * jarg1, void * jarg2) { + unsigned int jresult ; + httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; + GoSlice arg2 ; + GoSlice *argp2 ; + GoUint32 result; + + arg1 = (httphelper__Coins *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_httphelper_Coins_UnmarshalJSON(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Coins_MarshalJSON(void * jarg1, void * jarg2) { + unsigned int jresult ; + httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (httphelper__Coins *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_httphelper_Coins_MarshalJSON(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Coins_Value(void * jarg1, void * jarg2) { + unsigned int jresult ; + httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint32 result; + + arg1 = (httphelper__Coins *)jarg1; + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_httphelper_Coins_Value(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Hours_UnmarshalJSON(void * jarg1, void * jarg2) { + unsigned int jresult ; + httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; + GoSlice arg2 ; + GoSlice *argp2 ; + GoUint32 result; + + arg1 = (httphelper__Hours *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_httphelper_Hours_UnmarshalJSON(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Hours_MarshalJSON(void * jarg1, void * jarg2) { + unsigned int jresult ; + httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (httphelper__Hours *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_httphelper_Hours_MarshalJSON(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Hours_Value(void * jarg1, void * jarg2) { + unsigned int jresult ; + httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint32 result; + + arg1 = (httphelper__Hours *)jarg1; + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_httphelper_Hours_Value(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CheckWalletBalance(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + WebRpcClient__Handle arg1 ; + GoString arg2 ; + BalanceResult_Handle *arg3 = (BalanceResult_Handle *) 0 ; + WebRpcClient__Handle *argp1 ; + GoString *argp2 ; + GoUint32 result; + + argp1 = (WebRpcClient__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (BalanceResult_Handle *)jarg3; + result = (GoUint32)SKY_cli_CheckWalletBalance(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetBalanceOfAddresses(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + WebRpcClient__Handle arg1 ; + GoSlice arg2 ; + BalanceResult_Handle *arg3 = (BalanceResult_Handle *) 0 ; + WebRpcClient__Handle *argp1 ; + GoSlice *argp2 ; + GoUint32 result; + + argp1 = (WebRpcClient__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (BalanceResult_Handle *)jarg3; + result = (GoUint32)SKY_cli_GetBalanceOfAddresses(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_poly1305_Verify(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoUint8 *arg4 = (GoUint8 *) 0 ; + GoSlice *argp2 ; + GoUint32 result; + + arg1 = (coin__UxArray *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (coin__UxArray *)jarg3; + arg4 = (GoUint8 *)jarg4; + result = (GoUint32)SKY_poly1305_Verify(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewClient(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + Client__Handle *arg2 = (Client__Handle *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Client__Handle *)jarg2; + result = (GoUint32)SKY_api_NewClient(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CSRF(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Client__Handle *argp1 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_api_Client_CSRF(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Version(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Handle *)jarg2; + result = (GoUint32)SKY_api_Client_Version(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Outputs(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Handle *)jarg2; + result = (GoUint32)SKY_api_Client_Outputs(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_OutputsForAddresses(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Client__Handle arg1 ; + GoSlice arg2 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoSlice *argp2 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (Handle *)jarg3; + result = (GoUint32)SKY_api_Client_OutputsForAddresses(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_OutputsForHashes(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Client__Handle arg1 ; + GoSlice arg2 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoSlice *argp2 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (Handle *)jarg3; + result = (GoUint32)SKY_api_Client_OutputsForHashes(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CoinSupply(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Handle *)jarg2; + result = (GoUint32)SKY_api_Client_CoinSupply(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockByHash(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (Handle *)jarg3; + result = (GoUint32)SKY_api_Client_BlockByHash(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockBySeq(void * jarg1, unsigned long long jarg2, void * jarg3) { + unsigned int jresult ; + Client__Handle arg1 ; + GoUint64 arg2 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64)jarg2; + arg3 = (Handle *)jarg3; + result = (GoUint32)SKY_api_Client_BlockBySeq(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Blocks(void * jarg1, long long jarg2, long long jarg3, void * jarg4) { + unsigned int jresult ; + Client__Handle arg1 ; + GoInt arg2 ; + GoInt arg3 ; + Handle *arg4 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt)jarg2; + arg3 = (GoInt)jarg3; + arg4 = (Handle *)jarg4; + result = (GoUint32)SKY_api_Client_Blocks(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_LastBlocks(void * jarg1, long long jarg2, void * jarg3) { + unsigned int jresult ; + Client__Handle arg1 ; + GoInt arg2 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt)jarg2; + arg3 = (Handle *)jarg3; + result = (GoUint32)SKY_api_Client_LastBlocks(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockchainMetadata(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Handle *)jarg2; + result = (GoUint32)SKY_api_Client_BlockchainMetadata(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockchainProgress(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Handle *)jarg2; + result = (GoUint32)SKY_api_Client_BlockchainProgress(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Balance(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Client__Handle arg1 ; + GoSlice arg2 ; + wallet__BalancePair *arg3 = (wallet__BalancePair *) 0 ; + Client__Handle *argp1 ; + GoSlice *argp2 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (wallet__BalancePair *)jarg3; + result = (GoUint32)SKY_api_Client_Balance(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UxOut(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (Handle *)jarg3; + result = (GoUint32)SKY_api_Client_UxOut(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressUxOuts(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (Handle *)jarg3; + result = (GoUint32)SKY_api_Client_AddressUxOuts(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Wallet(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + WalletResponse__Handle *arg3 = (WalletResponse__Handle *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (WalletResponse__Handle *)jarg3; + result = (GoUint32)SKY_api_Client_Wallet(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Wallets(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + Wallets__Handle *arg2 = (Wallets__Handle *) 0 ; + Client__Handle *argp1 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Wallets__Handle *)jarg2; + result = (GoUint32)SKY_api_Client_Wallets(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateUnencryptedWallet(void * jarg1, void * jarg2, void * jarg3, long long jarg4, void * jarg5) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + GoInt arg4 ; + WalletResponse__Handle *arg5 = (WalletResponse__Handle *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; + GoString *argp3 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + arg4 = (GoInt)jarg4; + arg5 = (WalletResponse__Handle *)jarg5; + result = (GoUint32)SKY_api_Client_CreateUnencryptedWallet(arg1,arg2,arg3,arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateEncryptedWallet(void * jarg1, void * jarg2, void * jarg3, void * jarg4, long long jarg5, void * jarg6) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + GoString arg4 ; + GoInt arg5 ; + WalletResponse__Handle *arg6 = (WalletResponse__Handle *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; + GoString *argp3 ; + GoString *argp4 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + argp4 = (GoString *)jarg4; + if (!argp4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg4 = *argp4; + arg5 = (GoInt)jarg5; + arg6 = (WalletResponse__Handle *)jarg6; + result = (GoUint32)SKY_api_Client_CreateEncryptedWallet(arg1,arg2,arg3,arg4,arg5,arg6); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NewWalletAddress(void * jarg1, void * jarg2, long long jarg3, void * jarg4, void * jarg5) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + GoInt arg3 ; + GoString arg4 ; + Strings__Handle *arg5 = (Strings__Handle *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; + GoString *argp4 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (GoInt)jarg3; + argp4 = (GoString *)jarg4; + if (!argp4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg4 = *argp4; + arg5 = (Strings__Handle *)jarg5; + result = (GoUint32)SKY_api_Client_NewWalletAddress(arg1,arg2,arg3,arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_WalletBalance(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + wallet__BalancePair *arg3 = (wallet__BalancePair *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (wallet__BalancePair *)jarg3; + result = (GoUint32)SKY_api_Client_WalletBalance(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Spend(void * jarg1, void * jarg2, void * jarg3, unsigned long long jarg4, void * jarg5, void * jarg6) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + GoUint64 arg4 ; + GoString arg5 ; + SpendResult_Handle *arg6 = (SpendResult_Handle *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; + GoString *argp3 ; + GoString *argp5 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + arg4 = (GoUint64)jarg4; + argp5 = (GoString *)jarg5; + if (!argp5) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg5 = *argp5; + arg6 = (SpendResult_Handle *)jarg6; + result = (GoUint32)SKY_api_Client_Spend(arg1,arg2,arg3,arg4,arg5,arg6); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateTransaction(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + CreateTransactionResponse__Handle *arg3 = (CreateTransactionResponse__Handle *) 0 ; + Client__Handle *argp1 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Handle *)jarg2; + arg3 = (CreateTransactionResponse__Handle *)jarg3; + result = (GoUint32)SKY_api_Client_CreateTransaction(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_WalletTransactions(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (Handle *)jarg3; + result = (GoUint32)SKY_api_Client_WalletTransactions(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UpdateWallet(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + Client__Handle *argp1 ; + GoString *argp2 ; + GoString *argp3 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + result = (GoUint32)SKY_api_Client_UpdateWallet(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_WalletFolderName(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Handle *)jarg2; + result = (GoUint32)SKY_api_Client_WalletFolderName(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NewSeed(void * jarg1, long long jarg2, void * jarg3) { + unsigned int jresult ; + Client__Handle arg1 ; + GoInt arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + Client__Handle *argp1 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt)jarg2; + arg3 = (GoString_ *)jarg3; + result = (GoUint32)SKY_api_Client_NewSeed(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_GetWalletSeed(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + GoString_ *arg4 = (GoString_ *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; + GoString *argp3 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + arg4 = (GoString_ *)jarg4; + result = (GoUint32)SKY_api_Client_GetWalletSeed(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkConnection(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (Handle *)jarg3; + result = (GoUint32)SKY_api_Client_NetworkConnection(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkConnections(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Handle *)jarg2; + result = (GoUint32)SKY_api_Client_NetworkConnections(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkDefaultConnections(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Handle *)jarg2; + result = (GoUint32)SKY_api_Client_NetworkDefaultConnections(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkTrustedConnections(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Handle *)jarg2; + result = (GoUint32)SKY_api_Client_NetworkTrustedConnections(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkExchangeableConnections(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Handle *)jarg2; + result = (GoUint32)SKY_api_Client_NetworkExchangeableConnections(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_PendingTransactions(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Handle *)jarg2; + result = (GoUint32)SKY_api_Client_PendingTransactions(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Transaction(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (Handle *)jarg3; + result = (GoUint32)SKY_api_Client_Transaction(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Transactions(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Client__Handle arg1 ; + GoSlice arg2 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoSlice *argp2 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (Handle *)jarg3; + result = (GoUint32)SKY_api_Client_Transactions(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_ConfirmedTransactions(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Client__Handle arg1 ; + GoSlice arg2 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoSlice *argp2 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (Handle *)jarg3; + result = (GoUint32)SKY_api_Client_ConfirmedTransactions(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UnconfirmedTransactions(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Client__Handle arg1 ; + GoSlice arg2 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoSlice *argp2 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (Handle *)jarg3; + result = (GoUint32)SKY_api_Client_UnconfirmedTransactions(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_InjectTransaction(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (GoString_ *)jarg3; + result = (GoUint32)SKY_api_Client_InjectTransaction(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_ResendUnconfirmedTransactions(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Handle *)jarg2; + result = (GoUint32)SKY_api_Client_ResendUnconfirmedTransactions(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_RawTransaction(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (GoString_ *)jarg3; + result = (GoUint32)SKY_api_Client_RawTransaction(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressTransactions(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (Handle *)jarg3; + result = (GoUint32)SKY_api_Client_AddressTransactions(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Richlist(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Client__Handle arg1 ; + api__RichlistParams *arg2 = (api__RichlistParams *) 0 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (api__RichlistParams *)jarg2; + arg3 = (Handle *)jarg3; + result = (GoUint32)SKY_api_Client_Richlist(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressCount(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + Client__Handle *argp1 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_api_Client_AddressCount(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UnloadWallet(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + Client__Handle *argp1 ; + GoString *argp2 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_api_Client_UnloadWallet(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Health(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Handle *)jarg2; + result = (GoUint32)SKY_api_Client_Health(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_EncryptWallet(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + WalletResponse__Handle *arg4 = (WalletResponse__Handle *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; + GoString *argp3 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + arg4 = (WalletResponse__Handle *)jarg4; + result = (GoUint32)SKY_api_Client_EncryptWallet(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_DecryptWallet(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + WalletResponse__Handle *arg4 = (WalletResponse__Handle *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; + GoString *argp3 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + arg4 = (WalletResponse__Handle *)jarg4; + result = (GoUint32)SKY_api_Client_DecryptWallet(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_JsonEncode_Handle(void * jarg1, void * jarg2) { + unsigned int jresult ; + Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Handle *argp1 ; + GoUint32 result; + + argp1 = (Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_JsonEncode_Handle(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Progress_GetCurrent(void * jarg1, void * jarg2) { + unsigned int jresult ; + Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + Handle *argp1 ; + GoUint32 result; + + argp1 = (Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_Handle_Progress_GetCurrent(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Block_GetHeadSeq(void * jarg1, void * jarg2) { + unsigned int jresult ; + Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + Handle *argp1 ; + GoUint32 result; + + argp1 = (Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_Handle_Block_GetHeadSeq(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Block_GetHeadHash(void * jarg1, void * jarg2) { + unsigned int jresult ; + Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Handle *argp1 ; + GoUint32 result; + + argp1 = (Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_Handle_Block_GetHeadHash(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Block_GetPreviousBlockHash(void * jarg1, void * jarg2) { + unsigned int jresult ; + Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Handle *argp1 ; + GoUint32 result; + + argp1 = (Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_Handle_Block_GetPreviousBlockHash(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Blocks_GetAt(void * jarg1, unsigned long long jarg2, void * jarg3) { + unsigned int jresult ; + Handle arg1 ; + GoUint64 arg2 ; + Handle *arg3 = (Handle *) 0 ; + Handle *argp1 ; + GoUint32 result; + + argp1 = (Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64)jarg2; + arg3 = (Handle *)jarg3; + result = (GoUint32)SKY_Handle_Blocks_GetAt(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Blocks_GetCount(void * jarg1, void * jarg2) { + unsigned int jresult ; + Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + Handle *argp1 ; + GoUint32 result; + + argp1 = (Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_Handle_Blocks_GetCount(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Connections_GetCount(void * jarg1, void * jarg2) { + unsigned int jresult ; + Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + Handle *argp1 ; + GoUint32 result; + + argp1 = (Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_Handle_Connections_GetCount(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Strings_GetCount(void * jarg1, void * jarg2) { + unsigned int jresult ; + Strings__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + Strings__Handle *argp1 ; + GoUint32 result; + + argp1 = (Strings__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Strings__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint32 *)jarg2; + result = (GoUint32)SKY_Handle_Strings_GetCount(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Strings_Sort(void * jarg1) { + unsigned int jresult ; + Strings__Handle arg1 ; + Strings__Handle *argp1 ; + GoUint32 result; + + argp1 = (Strings__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Strings__Handle", 0); + return 0; + } + arg1 = *argp1; + result = (GoUint32)SKY_Handle_Strings_Sort(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Strings_GetAt(void * jarg1, long long jarg2, void * jarg3) { + unsigned int jresult ; + Strings__Handle arg1 ; + GoInt arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + Strings__Handle *argp1 ; + GoUint32 result; + + argp1 = (Strings__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Strings__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt)jarg2; + arg3 = (GoString_ *)jarg3; + result = (GoUint32)SKY_Handle_Strings_GetAt(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletDir(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Client__Handle *argp1 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_api_Handle_Client_GetWalletDir(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletFileName(void * jarg1, void * jarg2) { + unsigned int jresult ; + WalletResponse__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + WalletResponse__Handle *argp1 ; + GoUint32 result; + + argp1 = (WalletResponse__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_api_Handle_Client_GetWalletFileName(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletLabel(void * jarg1, void * jarg2) { + unsigned int jresult ; + WalletResponse__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + WalletResponse__Handle *argp1 ; + GoUint32 result; + + argp1 = (WalletResponse__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_api_Handle_Client_GetWalletLabel(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletFullPath(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Client__Handle arg1 ; + WalletResponse__Handle arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + Client__Handle *argp1 ; + WalletResponse__Handle *argp2 ; + GoUint32 result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (WalletResponse__Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); + return 0; + } + arg2 = *argp2; + arg3 = (GoString_ *)jarg3; + result = (GoUint32)SKY_api_Handle_Client_GetWalletFullPath(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletMeta(void * jarg1, void * jarg2) { + unsigned int jresult ; + Wallet__Handle arg1 ; + GoStringMap_ *arg2 = (GoStringMap_ *) 0 ; + Wallet__Handle *argp1 ; + GoUint32 result; + + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoStringMap_ *)jarg2; + result = (GoUint32)SKY_api_Handle_GetWalletMeta(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletEntriesCount(void * jarg1, void * jarg2) { + unsigned int jresult ; + Wallet__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + Wallet__Handle *argp1 ; + GoUint32 result; + + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint32 *)jarg2; + result = (GoUint32)SKY_api_Handle_GetWalletEntriesCount(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletResponseEntriesCount(void * jarg1, void * jarg2) { + unsigned int jresult ; + WalletResponse__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + WalletResponse__Handle *argp1 ; + GoUint32 result; + + argp1 = (WalletResponse__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint32 *)jarg2; + result = (GoUint32)SKY_api_Handle_Client_GetWalletResponseEntriesCount(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletGetEntry(void * jarg1, unsigned int jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + Wallet__Handle arg1 ; + GoUint32 arg2 ; + cipher__Address *arg3 = (cipher__Address *) 0 ; + cipher__PubKey *arg4 = (cipher__PubKey *) 0 ; + Wallet__Handle *argp1 ; + GoUint32 result; + + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint32)jarg2; + arg3 = (cipher__Address *)jarg3; + arg4 = (cipher__PubKey *)jarg4; + result = (GoUint32)SKY_api_Handle_WalletGetEntry(arg1,arg2,arg3,(GoUint8_ (*)[33])arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletResponseGetEntry(void * jarg1, unsigned int jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + WalletResponse__Handle arg1 ; + GoUint32 arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + GoString_ *arg4 = (GoString_ *) 0 ; + WalletResponse__Handle *argp1 ; + GoUint32 result; + + argp1 = (WalletResponse__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint32)jarg2; + arg3 = (GoString_ *)jarg3; + arg4 = (GoString_ *)jarg4; + result = (GoUint32)SKY_api_Handle_WalletResponseGetEntry(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletResponseIsEncrypted(void * jarg1, void * jarg2) { + unsigned int jresult ; + WalletResponse__Handle arg1 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + WalletResponse__Handle *argp1 ; + GoUint32 result; + + argp1 = (WalletResponse__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_api_Handle_WalletResponseIsEncrypted(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletResponseGetCryptoType(void * jarg1, void * jarg2) { + unsigned int jresult ; + WalletResponse__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + WalletResponse__Handle *argp1 ; + GoUint32 result; + + argp1 = (WalletResponse__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_api_Handle_WalletResponseGetCryptoType(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletsResponseGetCount(void * jarg1, void * jarg2) { + unsigned int jresult ; + Wallets__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + Wallets__Handle *argp1 ; + GoUint32 result; + + argp1 = (Wallets__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallets__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint32 *)jarg2; + result = (GoUint32)SKY_api_Handle_WalletsResponseGetCount(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletsResponseGetAt(void * jarg1, unsigned int jarg2, void * jarg3) { + unsigned int jresult ; + Wallets__Handle arg1 ; + GoUint32 arg2 ; + WalletResponse__Handle *arg3 = (WalletResponse__Handle *) 0 ; + Wallets__Handle *argp1 ; + GoUint32 result; + + argp1 = (Wallets__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallets__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint32)jarg2; + arg3 = (WalletResponse__Handle *)jarg3; + result = (GoUint32)SKY_api_Handle_WalletsResponseGetAt(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletFolderAddress(void * jarg1, void * jarg2) { + unsigned int jresult ; + Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Handle *argp1 ; + GoUint32 result; + + argp1 = (Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_api_Handle_GetWalletFolderAddress(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletSeed(void * jarg1, void * jarg2) { + unsigned int jresult ; + Wallet__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Wallet__Handle *argp1 ; + GoUint32 result; + + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_api_Handle_GetWalletSeed(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletLastSeed(void * jarg1, void * jarg2) { + unsigned int jresult ; + Wallet__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Wallet__Handle *argp1 ; + GoUint32 result; + + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_api_Handle_GetWalletLastSeed(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetBuildInfoData(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + BuildInfo_Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString_ *arg3 = (GoString_ *) 0 ; + GoString_ *arg4 = (GoString_ *) 0 ; + BuildInfo_Handle *argp1 ; + GoUint32 result; + + argp1 = (BuildInfo_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null BuildInfo_Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + arg3 = (GoString_ *)jarg3; + arg4 = (GoString_ *)jarg4; + result = (GoUint32)SKY_api_Handle_GetBuildInfoData(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_GenerateKeyPair(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (coin__UxArray *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1_GenerateKeyPair(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_PubkeyFromSeckey(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1_PubkeyFromSeckey(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_UncompressPubkey(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1_UncompressPubkey(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_UncompressedPubkeyFromSeckey(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1_UncompressedPubkeyFromSeckey(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_Secp256k1Hash(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1_Secp256k1Hash(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_GenerateDeterministicKeyPair(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_secp256k1_GenerateDeterministicKeyPair(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_DeterministicKeyPairIterator(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + arg3 = (coin__UxArray *)jarg3; + arg4 = (coin__UxArray *)jarg4; + result = (GoUint32)SKY_secp256k1_DeterministicKeyPairIterator(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_Sign(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + GoSlice arg1 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_secp256k1_Sign(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_SignDeterministic(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + GoSlice arg1 ; + GoSlice arg2 ; + GoSlice arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; + GoSlice *argp3 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoSlice *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg3 = *argp3; + arg4 = (coin__UxArray *)jarg4; + result = (GoUint32)SKY_secp256k1_SignDeterministic(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_VerifySeckey(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_secp256k1_VerifySeckey(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_VerifyPubkey(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_secp256k1_VerifyPubkey(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_VerifySignatureValidity(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_secp256k1_VerifySignatureValidity(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_VerifySignature(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + GoSlice arg1 ; + GoSlice arg2 ; + GoSlice arg3 ; + GoInt *arg4 = (GoInt *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; + GoSlice *argp3 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoSlice *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg3 = *argp3; + arg4 = (GoInt *)jarg4; + result = (GoUint32)SKY_secp256k1_VerifySignature(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_SignatureErrorString(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + GoSlice arg1 ; + GoSlice arg2 ; + GoSlice arg3 ; + GoString_ *arg4 = (GoString_ *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; + GoSlice *argp3 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoSlice *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg3 = *argp3; + arg4 = (GoString_ *)jarg4; + result = (GoUint32)SKY_secp256k1_SignatureErrorString(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_RecoverPubkey(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + GoSlice arg1 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_secp256k1_RecoverPubkey(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_ECDH(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + GoSlice arg1 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_secp256k1_ECDH(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cert_CreateCertIfNotExists(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + GoString arg1 ; + GoString arg2 ; + GoString arg3 ; + GoString arg4 ; + GoString *argp1 ; + GoString *argp2 ; + GoString *argp3 ; + GoString *argp4 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + argp4 = (GoString *)jarg4; + if (!argp4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg4 = *argp4; + result = (GoUint32)SKY_cert_CreateCertIfNotExists(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_VerifyTransactionFee(void * jarg1, unsigned long long jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoUint64 arg2 ; + Transaction__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64)jarg2; + result = (GoUint32)SKY_fee_VerifyTransactionFee(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_VerifyTransactionFeeForHours(unsigned long long jarg1, unsigned long long jarg2) { + unsigned int jresult ; + GoUint64 arg1 ; + GoUint64 arg2 ; + GoUint32 result; + + arg1 = (GoUint64)jarg1; + arg2 = (GoUint64)jarg2; + result = (GoUint32)SKY_fee_VerifyTransactionFeeForHours(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_RequiredFee(unsigned long long jarg1, void * jarg2) { + unsigned int jresult ; + GoUint64 arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint32 result; + + arg1 = (GoUint64)jarg1; + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_fee_RequiredFee(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_RemainingHours(unsigned long long jarg1, void * jarg2) { + unsigned int jresult ; + GoUint64 arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint32 result; + + arg1 = (GoUint64)jarg1; + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_fee_RemainingHours(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_TransactionFee(void * jarg1, unsigned long long jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoUint64 arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoUint64 *arg4 = (GoUint64 *) 0 ; + Transaction__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64)jarg2; + arg3 = (coin__UxArray *)jarg3; + arg4 = (GoUint64 *)jarg4; + result = (GoUint32)SKY_fee_TransactionFee(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_iputil_LocalhostIP(void * jarg1) { + unsigned int jresult ; + GoString_ *arg1 = (GoString_ *) 0 ; + GoUint32 result; + + arg1 = (GoString_ *)jarg1; + result = (GoUint32)SKY_iputil_LocalhostIP(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_iputil_IsLocalhost(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_iputil_IsLocalhost(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_iputil_SplitAddr(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + GoString arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint16 *arg3 = (GoUint16 *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + arg3 = (GoUint16 *)jarg3; + result = (GoUint32)SKY_iputil_SplitAddr(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Ripemd160_Set(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__Ripemd160 *arg1 = (cipher__Ripemd160 *) 0 ; + GoSlice arg2 ; + GoSlice *argp2 ; + GoUint32 result; + + arg1 = (cipher__Ripemd160 *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_cipher_Ripemd160_Set((GoUint8_ (*)[20])arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_HashRipemd160(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + cipher__Ripemd160 *arg2 = (cipher__Ripemd160 *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__Ripemd160 *)jarg2; + result = (GoUint32)SKY_cipher_HashRipemd160(arg1,(GoUint8_ (*)[20])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Set(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; + GoSlice arg2 ; + GoSlice *argp2 ; + GoUint32 result; + + arg1 = (cipher__SHA256 *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_cipher_SHA256_Set((GoUint8_ (*)[32])arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Hex(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + arg1 = (cipher__SHA256 *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cipher_SHA256_Hex((GoUint8_ (*)[32])arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Xor(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + GoUint32 result; + + arg1 = (cipher__SHA256 *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + arg3 = (cipher__SHA256 *)jarg3; + result = (GoUint32)SKY_cipher_SHA256_Xor((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[32])arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SumSHA256(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_cipher_SumSHA256(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256FromHex(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_cipher_SHA256FromHex(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DoubleSHA256(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_cipher_DoubleSHA256(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddSHA256(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + GoUint32 result; + + arg1 = (cipher__SHA256 *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + arg3 = (cipher__SHA256 *)jarg3; + result = (GoUint32)SKY_cipher_AddSHA256((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[32])arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Merkle(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice *arg1 = (GoSlice *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint32 result; + + arg1 = (GoSlice *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_cipher_Merkle(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_MustSumSHA256(void * jarg1, long long jarg2, void * jarg3) { + unsigned int jresult ; + GoSlice arg1 ; + GoInt arg2 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt)jarg2; + arg3 = (cipher__SHA256 *)jarg3; + result = (GoUint32)SKY_cipher_MustSumSHA256(arg1,arg2,(GoUint8_ (*)[32])arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Null(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoUint32 result; + + arg1 = (cipher__SHA256 *)jarg1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_cipher_SHA256_Null((GoUint8_ (*)[32])arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Create_Transaction(void * jarg1) { + unsigned int jresult ; + Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; + GoUint32 result; + + arg1 = (Transaction__Handle *)jarg1; + result = (GoUint32)SKY_coin_Create_Transaction(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Copy(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; + Transaction__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Transaction__Handle *)jarg2; + result = (GoUint32)SKY_coin_Transaction_Copy(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetTransactionObject(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + coin__Transaction **arg2 = (coin__Transaction **) 0 ; + Transaction__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__Transaction **)jarg2; + result = (GoUint32)SKY_coin_GetTransactionObject(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_ResetInputs(void * jarg1, long long jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoInt arg2 ; + Transaction__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt)jarg2; + result = (GoUint32)SKY_coin_Transaction_ResetInputs(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetInputsCount(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + Transaction__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_coin_Transaction_GetInputsCount(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetInputAt(void * jarg1, long long jarg2, void * jarg3) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoInt arg2 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + Transaction__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt)jarg2; + arg3 = (cipher__SHA256 *)jarg3; + result = (GoUint32)SKY_coin_Transaction_GetInputAt(arg1,arg2,(GoUint8_ (*)[32])arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SetInputAt(void * jarg1, long long jarg2, void * jarg3) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoInt arg2 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + Transaction__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt)jarg2; + arg3 = (cipher__SHA256 *)jarg3; + result = (GoUint32)SKY_coin_Transaction_SetInputAt(arg1,arg2,(GoUint8_ (*)[32])arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetOutputsCount(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + Transaction__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_coin_Transaction_GetOutputsCount(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetOutputAt(void * jarg1, long long jarg2, void * jarg3) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoInt arg2 ; + coin__TransactionOutput *arg3 = (coin__TransactionOutput *) 0 ; + Transaction__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt)jarg2; + arg3 = (coin__TransactionOutput *)jarg3; + result = (GoUint32)SKY_coin_Transaction_GetOutputAt(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SetOutputAt(void * jarg1, long long jarg2, void * jarg3) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoInt arg2 ; + coin__TransactionOutput *arg3 = (coin__TransactionOutput *) 0 ; + Transaction__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt)jarg2; + arg3 = (coin__TransactionOutput *)jarg3; + result = (GoUint32)SKY_coin_Transaction_SetOutputAt(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetSignaturesCount(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + Transaction__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_coin_Transaction_GetSignaturesCount(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetSignatureAt(void * jarg1, long long jarg2, void * jarg3) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoInt arg2 ; + cipher__Sig *arg3 = (cipher__Sig *) 0 ; + Transaction__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt)jarg2; + arg3 = (cipher__Sig *)jarg3; + result = (GoUint32)SKY_coin_Transaction_GetSignatureAt(arg1,arg2,(GoUint8_ (*)[65])arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SetSignatureAt(void * jarg1, long long jarg2, void * jarg3) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoInt arg2 ; + cipher__Sig *arg3 = (cipher__Sig *) 0 ; + Transaction__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt)jarg2; + arg3 = (cipher__Sig *)jarg3; + result = (GoUint32)SKY_coin_Transaction_SetSignatureAt(arg1,arg2,(GoUint8_ (*)[65])arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_PushSignature(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + cipher__Sig *arg2 = (cipher__Sig *) 0 ; + Transaction__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__Sig *)jarg2; + result = (GoUint32)SKY_coin_Transaction_PushSignature(arg1,(GoUint8_ (*)[65])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_ResetOutputs(void * jarg1, long long jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoInt arg2 ; + Transaction__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt)jarg2; + result = (GoUint32)SKY_coin_Transaction_ResetOutputs(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_ResetSignatures(void * jarg1, long long jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoInt arg2 ; + Transaction__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt)jarg2; + result = (GoUint32)SKY_coin_Transaction_ResetSignatures(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Verify(void * jarg1) { + unsigned int jresult ; + Transaction__Handle arg1 ; + Transaction__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + result = (GoUint32)SKY_coin_Transaction_Verify(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_VerifyInput(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + Transaction__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_coin_Transaction_VerifyInput(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_PushInput(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Transaction__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint16 *arg3 = (GoUint16 *) 0 ; + Transaction__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__SHA256 *)jarg2; + arg3 = (GoUint16 *)jarg3; + result = (GoUint32)SKY_coin_Transaction_PushInput(arg1,(GoUint8_ (*)[32])arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_TransactionOutput_UxID(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + GoUint32 result; + + arg1 = (coin__TransactionOutput *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + arg3 = (cipher__SHA256 *)jarg3; + result = (GoUint32)SKY_coin_TransactionOutput_UxID(arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[32])arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_PushOutput(void * jarg1, void * jarg2, unsigned long long jarg3, unsigned long long jarg4) { + unsigned int jresult ; + Transaction__Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoUint64 arg3 ; + GoUint64 arg4 ; + Transaction__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__Address *)jarg2; + arg3 = (GoUint64)jarg3; + arg4 = (GoUint64)jarg4; + result = (GoUint32)SKY_coin_Transaction_PushOutput(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SignInputs(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoSlice arg2 ; + Transaction__Handle *argp1 ; + GoSlice *argp2 ; + GoUint32 result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_coin_Transaction_SignInputs(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Size(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + Transaction__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_coin_Transaction_Size(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Hash(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + Transaction__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_Transaction_Hash(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SizeHash(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + Transaction__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt *)jarg2; + arg3 = (cipher__SHA256 *)jarg3; + result = (GoUint32)SKY_coin_Transaction_SizeHash(arg1,arg2,(GoUint8_ (*)[32])arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_TxID(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + Transaction__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_coin_Transaction_TxID(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_TxIDHex(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Transaction__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_coin_Transaction_TxIDHex(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_UpdateHeader(void * jarg1) { + unsigned int jresult ; + Transaction__Handle arg1 ; + Transaction__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + result = (GoUint32)SKY_coin_Transaction_UpdateHeader(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_HashInner(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + Transaction__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_Transaction_HashInner(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Serialize(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + Transaction__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_coin_Transaction_Serialize(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_MustTransactionDeserialize(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Transaction__Handle *)jarg2; + result = (GoUint32)SKY_coin_MustTransactionDeserialize(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_TransactionDeserialize(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Transaction__Handle *)jarg2; + result = (GoUint32)SKY_coin_TransactionDeserialize(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_OutputHours(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + Transaction__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_coin_Transaction_OutputHours(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Create_Transactions(void * jarg1) { + unsigned int jresult ; + Transactions__Handle *arg1 = (Transactions__Handle *) 0 ; + GoUint32 result; + + arg1 = (Transactions__Handle *)jarg1; + result = (GoUint32)SKY_coin_Create_Transactions(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetTransactionsObject(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transactions__Handle arg1 ; + coin__UxArray **arg2 = (coin__UxArray **) 0 ; + Transactions__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transactions__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray **)jarg2; + result = (GoUint32)SKY_coin_GetTransactionsObject(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Length(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transactions__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + Transactions__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transactions__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_coin_Transactions_Length(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Add(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transactions__Handle arg1 ; + Transaction__Handle arg2 ; + Transactions__Handle *argp1 ; + Transaction__Handle *argp2 ; + GoUint32 result; + + argp1 = (Transactions__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (Transaction__Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_coin_Transactions_Add(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Fees(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Transactions__Handle arg1 ; + FeeCalculator *arg2 = (FeeCalculator *) 0 ; + GoUint64 *arg3 = (GoUint64 *) 0 ; + Transactions__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transactions__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (FeeCalculator *)jarg2; + arg3 = (GoUint64 *)jarg3; + result = (GoUint32)SKY_coin_Transactions_Fees(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_GetAt(void * jarg1, long long jarg2, void * jarg3) { + unsigned int jresult ; + Transactions__Handle arg1 ; + GoInt arg2 ; + Transaction__Handle *arg3 = (Transaction__Handle *) 0 ; + Transactions__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transactions__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt)jarg2; + arg3 = (Transaction__Handle *)jarg3; + result = (GoUint32)SKY_coin_Transactions_GetAt(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Hashes(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transactions__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + Transactions__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transactions__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_coin_Transactions_Hashes(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Size(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transactions__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + Transactions__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transactions__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_coin_Transactions_Size(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_TruncateBytesTo(void * jarg1, long long jarg2, void * jarg3) { + unsigned int jresult ; + Transactions__Handle arg1 ; + GoInt arg2 ; + Transactions__Handle *arg3 = (Transactions__Handle *) 0 ; + Transactions__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transactions__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt)jarg2; + arg3 = (Transactions__Handle *)jarg3; + result = (GoUint32)SKY_coin_Transactions_TruncateBytesTo(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortTransactions(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Transactions__Handle arg1 ; + FeeCalculator *arg2 = (FeeCalculator *) 0 ; + Transactions__Handle *arg3 = (Transactions__Handle *) 0 ; + Transactions__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transactions__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (FeeCalculator *)jarg2; + arg3 = (Transactions__Handle *)jarg3; + result = (GoUint32)SKY_coin_SortTransactions(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewSortableTransactions(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Transactions__Handle arg1 ; + FeeCalculator *arg2 = (FeeCalculator *) 0 ; + SortableTransactionResult_Handle *arg3 = (SortableTransactionResult_Handle *) 0 ; + Transactions__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transactions__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (FeeCalculator *)jarg2; + arg3 = (SortableTransactionResult_Handle *)jarg3; + result = (GoUint32)SKY_coin_NewSortableTransactions(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortableTransactions_Sort(void * jarg1) { + unsigned int jresult ; + SortableTransactionResult_Handle arg1 ; + SortableTransactionResult_Handle *argp1 ; + GoUint32 result; + + argp1 = (SortableTransactionResult_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null SortableTransactionResult_Handle", 0); + return 0; + } + arg1 = *argp1; + result = (GoUint32)SKY_coin_SortableTransactions_Sort(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortableTransactions_Len(void * jarg1, void * jarg2) { + unsigned int jresult ; + SortableTransactionResult_Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + SortableTransactionResult_Handle *argp1 ; + GoUint32 result; + + argp1 = (SortableTransactionResult_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null SortableTransactionResult_Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_coin_SortableTransactions_Len(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortableTransactions_Less(void * jarg1, long long jarg2, long long jarg3, void * jarg4) { + unsigned int jresult ; + SortableTransactionResult_Handle arg1 ; + GoInt arg2 ; + GoInt arg3 ; + GoUint8 *arg4 = (GoUint8 *) 0 ; + SortableTransactionResult_Handle *argp1 ; + GoUint32 result; + + argp1 = (SortableTransactionResult_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null SortableTransactionResult_Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt)jarg2; + arg3 = (GoInt)jarg3; + arg4 = (GoUint8 *)jarg4; + result = (GoUint32)SKY_coin_SortableTransactions_Less(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortableTransactions_Swap(void * jarg1, long long jarg2, long long jarg3) { + unsigned int jresult ; + SortableTransactionResult_Handle arg1 ; + GoInt arg2 ; + GoInt arg3 ; + SortableTransactionResult_Handle *argp1 ; + GoUint32 result; + + argp1 = (SortableTransactionResult_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null SortableTransactionResult_Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt)jarg2; + arg3 = (GoInt)jarg3; + result = (GoUint32)SKY_coin_SortableTransactions_Swap(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_VerifyTransactionCoinsSpending(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (coin__UxArray *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_coin_VerifyTransactionCoinsSpending(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_VerifyTransactionHoursSpending(unsigned long long jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + GoUint64 arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (GoUint64)jarg1; + arg2 = (coin__UxArray *)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_coin_VerifyTransactionHoursSpending(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_Sha256Xor_Encrypt(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + GoSlice arg1 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_encrypt_Sha256Xor_Encrypt(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_Sha256Xor_Decrypt(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + GoSlice arg1 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_encrypt_Sha256Xor_Decrypt(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GenerateAddressesInFile(void * jarg1, unsigned long long jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + GoString arg1 ; + GoUint64 arg2 ; + PasswordReader__Handle arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + GoString *argp1 ; + PasswordReader__Handle *argp3 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64)jarg2; + argp3 = (PasswordReader__Handle *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null PasswordReader__Handle", 0); + return 0; + } + arg3 = *argp3; + arg4 = (coin__UxArray *)jarg4; + result = (GoUint32)SKY_cli_GenerateAddressesInFile(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_FormatAddressesAsJSON(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cli_FormatAddressesAsJSON(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_FormatAddressesAsJoinedArray(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cli_FormatAddressesAsJoinedArray(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_AddressesToStrings(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_cli_AddressesToStrings(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_LoadConfig(void * jarg1) { + unsigned int jresult ; + Config__Handle *arg1 = (Config__Handle *) 0 ; + GoUint32 result; + + arg1 = (Config__Handle *)jarg1; + result = (GoUint32)SKY_cli_LoadConfig(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_FullWalletPath(void * jarg1, void * jarg2) { + unsigned int jresult ; + Config__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Config__Handle *argp1 ; + GoUint32 result; + + argp1 = (Config__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Config__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cli_Config_FullWalletPath(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_FullDBPath(void * jarg1, void * jarg2) { + unsigned int jresult ; + Config__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Config__Handle *argp1 ; + GoUint32 result; + + argp1 = (Config__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Config__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cli_Config_FullDBPath(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_NewApp(void * jarg1, void * jarg2) { + unsigned int jresult ; + Config__Handle arg1 ; + App__Handle *arg2 = (App__Handle *) 0 ; + Config__Handle *argp1 ; + GoUint32 result; + + argp1 = (Config__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Config__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (App__Handle *)jarg2; + result = (GoUint32)SKY_cli_NewApp(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_RPCClientFromContext(void * jarg1, void * jarg2) { + unsigned int jresult ; + Context__Handle arg1 ; + WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; + Context__Handle *argp1 ; + GoUint32 result; + + argp1 = (Context__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Context__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (WebRpcClient__Handle *)jarg2; + result = (GoUint32)SKY_cli_RPCClientFromContext(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_ConfigFromContext(void * jarg1, void * jarg2) { + unsigned int jresult ; + Context__Handle arg1 ; + Config__Handle *arg2 = (Config__Handle *) 0 ; + Context__Handle *argp1 ; + GoUint32 result; + + argp1 = (Context__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Context__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Config__Handle *)jarg2; + result = (GoUint32)SKY_cli_ConfigFromContext(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_PasswordFromBytes_Password(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (coin__UxArray *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_cli_PasswordFromBytes_Password(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_PasswordFromTerm_Password(void * jarg1) { + unsigned int jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (coin__UxArray *)jarg1; + result = (GoUint32)SKY_cli_PasswordFromTerm_Password(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_handle_close(void * jarg1) { + Handle arg1 ; + Handle *argp1 ; + + argp1 = (Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); + return ; + } + arg1 = *argp1; + SKY_handle_close(arg1); +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_handle_copy(void * jarg1, void * jarg2) { + unsigned int jresult ; + Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle *argp1 ; + GoUint32 result; + + argp1 = (Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Handle *)jarg2; + result = (GoUint32)SKY_handle_copy(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encoder_StructField_String(void * jarg1, void * jarg2) { + unsigned int jresult ; + encoder__StructField *arg1 = (encoder__StructField *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + arg1 = (encoder__StructField *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_encoder_StructField_String(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encoder_ParseFields(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + GoSlice arg1 ; + GoSlice arg2 ; + GoStringMap_ *arg3 = (GoStringMap_ *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (GoStringMap_ *)jarg3; + result = (GoUint32)SKY_encoder_ParseFields(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_Hash(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint32 result; + + arg1 = (coin__UxOut *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_UxOut_Hash(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_SnapshotHash(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint32 result; + + arg1 = (coin__UxOut *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_UxOut_SnapshotHash(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxBody_Hash(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint32 result; + + arg1 = (coin__UxBody *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_UxBody_Hash(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_CoinHours(void * jarg1, unsigned long long jarg2, void * jarg3) { + unsigned int jresult ; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + GoUint64 arg2 ; + GoUint64 *arg3 = (GoUint64 *) 0 ; + GoUint32 result; + + arg1 = (coin__UxOut *)jarg1; + arg2 = (GoUint64)jarg2; + arg3 = (GoUint64 *)jarg3; + result = (GoUint32)SKY_coin_UxOut_CoinHours(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Hashes(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (coin__UxArray *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_coin_UxArray_Hashes(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_HasDupes(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoUint32 result; + + arg1 = (coin__UxArray *)jarg1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_coin_UxArray_HasDupes(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Sort(void * jarg1) { + unsigned int jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (coin__UxArray *)jarg1; + result = (GoUint32)SKY_coin_UxArray_Sort(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Len(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoInt *arg2 = (GoInt *) 0 ; + GoUint32 result; + + arg1 = (coin__UxArray *)jarg1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_coin_UxArray_Len(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Less(void * jarg1, long long jarg2, long long jarg3, void * jarg4) { + unsigned int jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoInt arg2 ; + GoInt arg3 ; + GoUint8 *arg4 = (GoUint8 *) 0 ; + GoUint32 result; + + arg1 = (coin__UxArray *)jarg1; + arg2 = (GoInt)jarg2; + arg3 = (GoInt)jarg3; + arg4 = (GoUint8 *)jarg4; + result = (GoUint32)SKY_coin_UxArray_Less(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Swap(void * jarg1, long long jarg2, long long jarg3) { + unsigned int jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoInt arg2 ; + GoInt arg3 ; + GoUint32 result; + + arg1 = (coin__UxArray *)jarg1; + arg2 = (GoInt)jarg2; + arg3 = (GoInt)jarg3; + result = (GoUint32)SKY_coin_UxArray_Swap(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Coins(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint32 result; + + arg1 = (coin__UxArray *)jarg1; + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_coin_UxArray_Coins(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_CoinHours(void * jarg1, unsigned long long jarg2, void * jarg3) { + unsigned int jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoUint64 arg2 ; + GoUint64 *arg3 = (GoUint64 *) 0 ; + GoUint32 result; + + arg1 = (coin__UxArray *)jarg1; + arg2 = (GoUint64)jarg2; + arg3 = (GoUint64 *)jarg3; + result = (GoUint32)SKY_coin_UxArray_CoinHours(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Sub(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (coin__UxArray *)jarg1; + arg2 = (coin__UxArray *)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_coin_UxArray_Sub(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Add(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (coin__UxArray *)jarg1; + arg2 = (coin__UxArray *)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_coin_UxArray_Add(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewAddressUxOuts(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + AddressUxOuts_Handle *arg2 = (AddressUxOuts_Handle *) 0 ; + GoUint32 result; + + arg1 = (coin__UxArray *)jarg1; + arg2 = (AddressUxOuts_Handle *)jarg2; + result = (GoUint32)SKY_coin_NewAddressUxOuts(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Keys(void * jarg1, void * jarg2) { + unsigned int jresult ; + AddressUxOuts_Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + AddressUxOuts_Handle *argp1 ; + GoUint32 result; + + argp1 = (AddressUxOuts_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_coin_AddressUxOuts_Keys(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Flatten(void * jarg1, void * jarg2) { + unsigned int jresult ; + AddressUxOuts_Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + AddressUxOuts_Handle *argp1 ; + GoUint32 result; + + argp1 = (AddressUxOuts_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_coin_AddressUxOuts_Flatten(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Sub(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + AddressUxOuts_Handle arg1 ; + AddressUxOuts_Handle arg2 ; + AddressUxOuts_Handle *arg3 = (AddressUxOuts_Handle *) 0 ; + AddressUxOuts_Handle *argp1 ; + AddressUxOuts_Handle *argp2 ; + GoUint32 result; + + argp1 = (AddressUxOuts_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (AddressUxOuts_Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + return 0; + } + arg2 = *argp2; + arg3 = (AddressUxOuts_Handle *)jarg3; + result = (GoUint32)SKY_coin_AddressUxOuts_Sub(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Add(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + AddressUxOuts_Handle arg1 ; + AddressUxOuts_Handle arg2 ; + AddressUxOuts_Handle *arg3 = (AddressUxOuts_Handle *) 0 ; + AddressUxOuts_Handle *argp1 ; + AddressUxOuts_Handle *argp2 ; + GoUint32 result; + + argp1 = (AddressUxOuts_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (AddressUxOuts_Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + return 0; + } + arg2 = *argp2; + arg3 = (AddressUxOuts_Handle *)jarg3; + result = (GoUint32)SKY_coin_AddressUxOuts_Add(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Get(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + AddressUxOuts_Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + AddressUxOuts_Handle *argp1 ; + GoUint32 result; + + argp1 = (AddressUxOuts_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__Address *)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_coin_AddressUxOuts_Get(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_HasKey(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + AddressUxOuts_Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoUint8 *arg3 = (GoUint8 *) 0 ; + AddressUxOuts_Handle *argp1 ; + GoUint32 result; + + argp1 = (AddressUxOuts_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__Address *)jarg2; + arg3 = (GoUint8 *)jarg3; + result = (GoUint32)SKY_coin_AddressUxOuts_HasKey(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_GetOutputLength(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + AddressUxOuts_Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoInt *arg3 = (GoInt *) 0 ; + AddressUxOuts_Handle *argp1 ; + GoUint32 result; + + argp1 = (AddressUxOuts_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__Address *)jarg2; + arg3 = (GoInt *)jarg3; + result = (GoUint32)SKY_coin_AddressUxOuts_GetOutputLength(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Length(void * jarg1, void * jarg2) { + unsigned int jresult ; + AddressUxOuts_Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + AddressUxOuts_Handle *argp1 ; + GoUint32 result; + + argp1 = (AddressUxOuts_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_coin_AddressUxOuts_Length(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Set(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + AddressUxOuts_Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + AddressUxOuts_Handle *argp1 ; + GoUint32 result; + + argp1 = (AddressUxOuts_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__Address *)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_coin_AddressUxOuts_Set(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_scrypt_Key(void * jarg1, void * jarg2, long long jarg3, long long jarg4, long long jarg5, long long jarg6, void * jarg7) { + unsigned int jresult ; + GoSlice arg1 ; + GoSlice arg2 ; + GoInt arg3 ; + GoInt arg4 ; + GoInt arg5 ; + GoInt arg6 ; + coin__UxArray *arg7 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (GoInt)jarg3; + arg4 = (GoInt)jarg4; + arg5 = (GoInt)jarg5; + arg6 = (GoInt)jarg6; + arg7 = (coin__UxArray *)jarg7; + result = (GoUint32)SKY_scrypt_Key(arg1,arg2,arg3,arg4,arg5,arg6,arg7); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewError(void * jarg1) { + unsigned int jresult ; + GoInterface arg1 ; + GoInterface *argp1 ; + GoUint32 result; + + argp1 = (GoInterface *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInterface", 0); + return 0; + } + arg1 = *argp1; + result = (GoUint32)SKY_wallet_NewError(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewWallet(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + GoString arg1 ; + Options__Handle arg2 ; + Wallet__Handle *arg3 = (Wallet__Handle *) 0 ; + GoString *argp1 ; + Options__Handle *argp2 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + argp2 = (Options__Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Options__Handle", 0); + return 0; + } + arg2 = *argp2; + arg3 = (Wallet__Handle *)jarg3; + result = (GoUint32)SKY_wallet_NewWallet(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Lock(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Wallet__Handle arg1 ; + GoSlice arg2 ; + GoString arg3 ; + Wallet__Handle *argp1 ; + GoSlice *argp2 ; + GoString *argp3 ; + GoUint32 result; + + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + result = (GoUint32)SKY_wallet_Wallet_Lock(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Unlock(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Wallet__Handle arg1 ; + GoSlice arg2 ; + Wallet__Handle *arg3 = (Wallet__Handle *) 0 ; + Wallet__Handle *argp1 ; + GoSlice *argp2 ; + GoUint32 result; + + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (Wallet__Handle *)jarg3; + result = (GoUint32)SKY_wallet_Wallet_Unlock(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Load(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + Wallet__Handle *arg2 = (Wallet__Handle *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Wallet__Handle *)jarg2; + result = (GoUint32)SKY_wallet_Load(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Save(void * jarg1, void * jarg2) { + unsigned int jresult ; + Wallet__Handle arg1 ; + GoString arg2 ; + Wallet__Handle *argp1 ; + GoString *argp2 ; + GoUint32 result; + + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_wallet_Wallet_Save(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Validate(void * jarg1) { + unsigned int jresult ; + Wallet__Handle arg1 ; + Wallet__Handle *argp1 ; + GoUint32 result; + + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; + } + arg1 = *argp1; + result = (GoUint32)SKY_wallet_Wallet_Validate(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Type(void * jarg1, void * jarg2) { + unsigned int jresult ; + Wallet__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Wallet__Handle *argp1 ; + GoUint32 result; + + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_wallet_Wallet_Type(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Version(void * jarg1, void * jarg2) { + unsigned int jresult ; + Wallet__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Wallet__Handle *argp1 ; + GoUint32 result; + + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_wallet_Wallet_Version(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Filename(void * jarg1, void * jarg2) { + unsigned int jresult ; + Wallet__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Wallet__Handle *argp1 ; + GoUint32 result; + + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_wallet_Wallet_Filename(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Label(void * jarg1, void * jarg2) { + unsigned int jresult ; + Wallet__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Wallet__Handle *argp1 ; + GoUint32 result; + + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_wallet_Wallet_Label(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_IsEncrypted(void * jarg1, void * jarg2) { + unsigned int jresult ; + Wallet__Handle arg1 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + Wallet__Handle *argp1 ; + GoUint32 result; + + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_wallet_Wallet_IsEncrypted(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_GenerateAddresses(void * jarg1, unsigned long long jarg2, void * jarg3) { + unsigned int jresult ; + Wallet__Handle arg1 ; + GoUint64 arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + Wallet__Handle *argp1 ; + GoUint32 result; + + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_wallet_Wallet_GenerateAddresses(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_GetAddresses(void * jarg1, void * jarg2) { + unsigned int jresult ; + Wallet__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + Wallet__Handle *argp1 ; + GoUint32 result; + + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_wallet_Wallet_GetAddresses(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_GetEntry(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + Wallet__Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + wallet__Entry *arg3 = (wallet__Entry *) 0 ; + GoUint8 *arg4 = (GoUint8 *) 0 ; + Wallet__Handle *argp1 ; + GoUint32 result; + + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__Address *)jarg2; + arg3 = (wallet__Entry *)jarg3; + arg4 = (GoUint8 *)jarg4; + result = (GoUint32)SKY_wallet_Wallet_GetEntry(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_AddEntry(void * jarg1, void * jarg2) { + unsigned int jresult ; + Wallet__Handle arg1 ; + wallet__Entry *arg2 = (wallet__Entry *) 0 ; + Wallet__Handle *argp1 ; + GoUint32 result; + + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (wallet__Entry *)jarg2; + result = (GoUint32)SKY_wallet_Wallet_AddEntry(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_DistributeSpendHours(unsigned long long jarg1, unsigned long long jarg2, unsigned char jarg3, void * jarg4, void * jarg5, void * jarg6) { + unsigned int jresult ; + GoUint64 arg1 ; + GoUint64 arg2 ; + GoUint8 arg3 ; + GoUint64 *arg4 = (GoUint64 *) 0 ; + coin__UxArray *arg5 = (coin__UxArray *) 0 ; + GoUint64 *arg6 = (GoUint64 *) 0 ; + GoUint32 result; + + arg1 = (GoUint64)jarg1; + arg2 = (GoUint64)jarg2; + arg3 = (GoUint8)jarg3; + arg4 = (GoUint64 *)jarg4; + arg5 = (coin__UxArray *)jarg5; + arg6 = (GoUint64 *)jarg6; + result = (GoUint32)SKY_wallet_DistributeSpendHours(arg1,arg2,arg3,arg4,arg5,arg6); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_DistributeCoinHoursProportional(void * jarg1, unsigned long long jarg2, void * jarg3) { + unsigned int jresult ; + GoSlice arg1 ; + GoUint64 arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_wallet_DistributeCoinHoursProportional(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewUxBalances(unsigned long long jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + GoUint64 arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (GoUint64)jarg1; + arg2 = (coin__UxArray *)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_wallet_NewUxBalances(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewUxBalance(unsigned long long jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + GoUint64 arg1 ; + coin__UxOut *arg2 = (coin__UxOut *) 0 ; + wallet__UxBalance *arg3 = (wallet__UxBalance *) 0 ; + GoUint32 result; + + arg1 = (GoUint64)jarg1; + arg2 = (coin__UxOut *)jarg2; + arg3 = (wallet__UxBalance *)jarg3; + result = (GoUint32)SKY_wallet_NewUxBalance(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ChooseSpendsMinimizeUxOuts(void * jarg1, unsigned long long jarg2, unsigned long long jarg3, void * jarg4) { + unsigned int jresult ; + GoSlice arg1 ; + GoUint64 arg2 ; + GoUint64 arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64)jarg2; + arg3 = (GoUint64)jarg3; + arg4 = (coin__UxArray *)jarg4; + result = (GoUint32)SKY_wallet_ChooseSpendsMinimizeUxOuts(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ChooseSpendsMaximizeUxOuts(void * jarg1, unsigned long long jarg2, unsigned long long jarg3, void * jarg4) { + unsigned int jresult ; + GoSlice arg1 ; + GoUint64 arg2 ; + GoUint64 arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64)jarg2; + arg3 = (GoUint64)jarg3; + arg4 = (coin__UxArray *)jarg4; + result = (GoUint32)SKY_wallet_ChooseSpendsMaximizeUxOuts(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_AddPrivateKey(void * jarg1, void * jarg2) { + unsigned int jresult ; + Wallet__Handle arg1 ; + GoString arg2 ; + Wallet__Handle *argp1 ; + GoString *argp2 ; + GoUint32 result; + + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_cli_AddPrivateKey(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_AddPrivateKeyToFile(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + GoString arg1 ; + GoString arg2 ; + PasswordReader__Handle arg3 ; + GoString *argp1 ; + GoString *argp2 ; + PasswordReader__Handle *argp3 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (PasswordReader__Handle *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null PasswordReader__Handle", 0); + return 0; + } + arg3 = *argp3; + result = (GoUint32)SKY_cli_AddPrivateKeyToFile(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_App_Run(void * jarg1, void * jarg2) { + unsigned int jresult ; + App__Handle arg1 ; + GoString arg2 ; + App__Handle *argp1 ; + GoString *argp2 ; + GoUint32 result; + + argp1 = (App__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null App__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_cli_App_Run(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_GetCoin(void * jarg1, void * jarg2) { + unsigned int jresult ; + Config__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Config__Handle *argp1 ; + GoUint32 result; + + argp1 = (Config__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Config__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cli_Config_GetCoin(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_GetRPCAddress(void * jarg1, void * jarg2) { + unsigned int jresult ; + Config__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Config__Handle *argp1 ; + GoUint32 result; + + argp1 = (Config__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Config__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cli_Config_GetRPCAddress(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_RPCClientFromApp(void * jarg1, void * jarg2) { + unsigned int jresult ; + App__Handle arg1 ; + WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; + App__Handle *argp1 ; + GoUint32 result; + + argp1 = (App__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null App__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (WebRpcClient__Handle *)jarg2; + result = (GoUint32)SKY_cli_RPCClientFromApp(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Getenv(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cli_Getenv(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Setenv(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + GoString arg2 ; + GoString *argp1 ; + GoString *argp2 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_cli_Setenv(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_NewClient(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (WebRpcClient__Handle *)jarg2; + result = (GoUint32)SKY_webrpc_NewClient(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_CSRF(void * jarg1, void * jarg2) { + unsigned int jresult ; + WebRpcClient__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + WebRpcClient__Handle *argp1 ; + GoUint32 result; + + argp1 = (WebRpcClient__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_webrpc_Client_CSRF(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetUnspentOutputs(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + WebRpcClient__Handle arg1 ; + GoSlice arg2 ; + OutputsResult_Handle *arg3 = (OutputsResult_Handle *) 0 ; + WebRpcClient__Handle *argp1 ; + GoSlice *argp2 ; + GoUint32 result; + + argp1 = (WebRpcClient__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (OutputsResult_Handle *)jarg3; + result = (GoUint32)SKY_webrpc_Client_GetUnspentOutputs(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_InjectTransactionString(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + WebRpcClient__Handle arg1 ; + GoString arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + WebRpcClient__Handle *argp1 ; + GoString *argp2 ; + GoUint32 result; + + argp1 = (WebRpcClient__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (GoString_ *)jarg3; + result = (GoUint32)SKY_webrpc_Client_InjectTransactionString(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_InjectTransaction(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + WebRpcClient__Handle arg1 ; + Transaction__Handle arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + WebRpcClient__Handle *argp1 ; + Transaction__Handle *argp2 ; + GoUint32 result; + + argp1 = (WebRpcClient__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (Transaction__Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg2 = *argp2; + arg3 = (GoString_ *)jarg3; + result = (GoUint32)SKY_webrpc_Client_InjectTransaction(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetStatus(void * jarg1, void * jarg2) { + unsigned int jresult ; + WebRpcClient__Handle arg1 ; + StatusResult_Handle *arg2 = (StatusResult_Handle *) 0 ; + WebRpcClient__Handle *argp1 ; + GoUint32 result; + + argp1 = (WebRpcClient__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (StatusResult_Handle *)jarg2; + result = (GoUint32)SKY_webrpc_Client_GetStatus(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetTransactionByID(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + WebRpcClient__Handle arg1 ; + GoString arg2 ; + TransactionResult_Handle *arg3 = (TransactionResult_Handle *) 0 ; + WebRpcClient__Handle *argp1 ; + GoString *argp2 ; + GoUint32 result; + + argp1 = (WebRpcClient__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (TransactionResult_Handle *)jarg3; + result = (GoUint32)SKY_webrpc_Client_GetTransactionByID(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetAddressUxOuts(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + WebRpcClient__Handle arg1 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + WebRpcClient__Handle *argp1 ; + GoSlice *argp2 ; + GoUint32 result; + + argp1 = (WebRpcClient__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_webrpc_Client_GetAddressUxOuts(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetBlocks(void * jarg1, unsigned long long jarg2, unsigned long long jarg3, void * jarg4) { + unsigned int jresult ; + WebRpcClient__Handle arg1 ; + GoUint64 arg2 ; + GoUint64 arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + WebRpcClient__Handle *argp1 ; + GoUint32 result; + + argp1 = (WebRpcClient__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64)jarg2; + arg3 = (GoUint64)jarg3; + arg4 = (coin__UxArray *)jarg4; + result = (GoUint32)SKY_webrpc_Client_GetBlocks(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetBlocksBySeq(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + WebRpcClient__Handle arg1 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + WebRpcClient__Handle *argp1 ; + GoSlice *argp2 ; + GoUint32 result; + + argp1 = (WebRpcClient__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_webrpc_Client_GetBlocksBySeq(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetLastBlocks(void * jarg1, unsigned long long jarg2, void * jarg3) { + unsigned int jresult ; + WebRpcClient__Handle arg1 ; + GoUint64 arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + WebRpcClient__Handle *argp1 ; + GoUint32 result; + + argp1 = (WebRpcClient__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_webrpc_Client_GetLastBlocks(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_droplet_FromString(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_droplet_FromString(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_droplet_ToString(unsigned long long jarg1, void * jarg2) { + unsigned int jresult ; + GoUint64 arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + arg1 = (GoUint64)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_droplet_ToString(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_NewDefaultMnemomic(void * jarg1) { + unsigned int jresult ; + GoString_ *arg1 = (GoString_ *) 0 ; + GoUint32 result; + + arg1 = (GoString_ *)jarg1; + result = (GoUint32)SKY_bip39_NewDefaultMnemomic(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_NewEntropy(long long jarg1, void * jarg2) { + unsigned int jresult ; + GoInt arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (GoInt)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_bip39_NewEntropy(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_NewMnemonic(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_bip39_NewMnemonic(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_MnemonicToByteArray(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_bip39_MnemonicToByteArray(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_IsMnemonicValid(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_bip39_IsMnemonicValid(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Print(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + GoString arg2 ; + GoString *argp2 ; + GoUint32 result; + + arg1 = (secp256k1go__XYZ *)jarg1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_secp256k1go_XYZ_Print(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_SetXY(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (secp256k1go__XY *)jarg2; + result = (GoUint32)SKY_secp256k1go_XYZ_SetXY(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_IsInfinity(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_secp256k1go_XYZ_IsInfinity(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_IsValid(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_secp256k1go_XYZ_IsValid(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Normalize(void * jarg1) { + unsigned int jresult ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__XYZ *)jarg1; + result = (GoUint32)SKY_secp256k1go_XYZ_Normalize(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Equals(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; + GoUint8 *arg3 = (GoUint8 *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (secp256k1go__XYZ *)jarg2; + arg3 = (GoUint8 *)jarg3; + result = (GoUint32)SKY_secp256k1go_XYZ_Equals(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_ECmult(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; + Number_Handle arg3 ; + Number_Handle arg4 ; + Number_Handle *argp3 ; + Number_Handle *argp4 ; + GoUint32 result; + + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (secp256k1go__XYZ *)jarg2; + argp3 = (Number_Handle *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); + return 0; + } + arg3 = *argp3; + argp4 = (Number_Handle *)jarg4; + if (!argp4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); + return 0; + } + arg4 = *argp4; + result = (GoUint32)SKY_secp256k1go_XYZ_ECmult(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Neg(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (secp256k1go__XYZ *)jarg2; + result = (GoUint32)SKY_secp256k1go_XYZ_Neg(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Double(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (secp256k1go__XYZ *)jarg2; + result = (GoUint32)SKY_secp256k1go_XYZ_Double(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_AddXY(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; + secp256k1go__XY *arg3 = (secp256k1go__XY *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (secp256k1go__XYZ *)jarg2; + arg3 = (secp256k1go__XY *)jarg3; + result = (GoUint32)SKY_secp256k1go_XYZ_AddXY(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Add(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; + secp256k1go__XYZ *arg3 = (secp256k1go__XYZ *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (secp256k1go__XYZ *)jarg2; + arg3 = (secp256k1go__XYZ *)jarg3; + result = (GoUint32)SKY_secp256k1go_XYZ_Add(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_ECmultGen(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + Number_Handle arg2 ; + Number_Handle *argp2 ; + GoUint32 result; + + arg1 = (secp256k1go__XYZ *)jarg1; + argp2 = (Number_Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_secp256k1go_ECmultGen(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewNotesFilename(void * jarg1) { + unsigned int jresult ; + GoString_ *arg1 = (GoString_ *) 0 ; + GoUint32 result; + + arg1 = (GoString_ *)jarg1; + result = (GoUint32)SKY_wallet_NewNotesFilename(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_LoadNotes(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + WalletNotes_Handle *arg2 = (WalletNotes_Handle *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (WalletNotes_Handle *)jarg2; + result = (GoUint32)SKY_wallet_LoadNotes(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_LoadReadableNotes(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + WalletReadableNotes_Handle *arg2 = (WalletReadableNotes_Handle *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (WalletReadableNotes_Handle *)jarg2; + result = (GoUint32)SKY_wallet_LoadReadableNotes(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableNotes_Load(void * jarg1, void * jarg2) { + unsigned int jresult ; + WalletReadableNotes_Handle arg1 ; + GoString arg2 ; + WalletReadableNotes_Handle *argp1 ; + GoString *argp2 ; + GoUint32 result; + + argp1 = (WalletReadableNotes_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletReadableNotes_Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_wallet_ReadableNotes_Load(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableNotes_ToNotes(void * jarg1, void * jarg2) { + unsigned int jresult ; + WalletReadableNotes_Handle arg1 ; + WalletNotes_Handle *arg2 = (WalletNotes_Handle *) 0 ; + WalletReadableNotes_Handle *argp1 ; + GoUint32 result; + + argp1 = (WalletReadableNotes_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletReadableNotes_Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (WalletNotes_Handle *)jarg2; + result = (GoUint32)SKY_wallet_ReadableNotes_ToNotes(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableNotes_Save(void * jarg1, void * jarg2) { + unsigned int jresult ; + WalletReadableNotes_Handle arg1 ; + GoString arg2 ; + WalletReadableNotes_Handle *argp1 ; + GoString *argp2 ; + GoUint32 result; + + argp1 = (WalletReadableNotes_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletReadableNotes_Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_wallet_ReadableNotes_Save(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewReadableNote(void * jarg1, void * jarg2) { + unsigned int jresult ; + wallet__Note *arg1 = (wallet__Note *) 0 ; + wallet__ReadableNote *arg2 = (wallet__ReadableNote *) 0 ; + GoUint32 result; + + arg1 = (wallet__Note *)jarg1; + arg2 = (wallet__ReadableNote *)jarg2; + result = (GoUint32)SKY_wallet_NewReadableNote(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewReadableNotesFromNotes(void * jarg1, void * jarg2) { + unsigned int jresult ; + WalletNotes_Handle arg1 ; + WalletReadableNotes_Handle *arg2 = (WalletReadableNotes_Handle *) 0 ; + WalletNotes_Handle *argp1 ; + GoUint32 result; + + argp1 = (WalletNotes_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletNotes_Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (WalletReadableNotes_Handle *)jarg2; + result = (GoUint32)SKY_wallet_NewReadableNotesFromNotes(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Notes_Save(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + WalletNotes_Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + WalletNotes_Handle *argp1 ; + GoString *argp2 ; + GoString *argp3 ; + GoUint32 result; + + argp1 = (WalletNotes_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletNotes_Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + result = (GoUint32)SKY_wallet_Notes_Save(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Notes_SaveNote(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + WalletNotes_Handle arg1 ; + GoString arg2 ; + wallet__Note *arg3 = (wallet__Note *) 0 ; + WalletNotes_Handle *argp1 ; + GoString *argp2 ; + GoUint32 result; + + argp1 = (WalletNotes_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletNotes_Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (wallet__Note *)jarg3; + result = (GoUint32)SKY_wallet_Notes_SaveNote(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Notes_ToReadable(void * jarg1, void * jarg2) { + unsigned int jresult ; + WalletNotes_Handle arg1 ; + WalletReadableNotes_Handle *arg2 = (WalletReadableNotes_Handle *) 0 ; + WalletNotes_Handle *argp1 ; + GoUint32 result; + + argp1 = (WalletNotes_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletNotes_Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (WalletReadableNotes_Handle *)jarg2; + result = (GoUint32)SKY_wallet_Notes_ToReadable(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NotesFileExist(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_wallet_NotesFileExist(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateNoteFileIfNotExist(void * jarg1) { + unsigned int jresult ; + GoString arg1 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + result = (GoUint32)SKY_wallet_CreateNoteFileIfNotExist(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_ScryptChacha20poly1305_Encrypt(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + GoSlice arg2 ; + GoSlice arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + GoSlice *argp2 ; + GoSlice *argp3 ; + GoUint32 result; + + arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoSlice *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg3 = *argp3; + arg4 = (coin__UxArray *)jarg4; + result = (GoUint32)SKY_encrypt_ScryptChacha20poly1305_Encrypt(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_ScryptChacha20poly1305_Decrypt(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + GoSlice arg2 ; + GoSlice arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + GoSlice *argp2 ; + GoSlice *argp3 ; + GoUint32 result; + + arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoSlice *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg3 = *argp3; + arg4 = (coin__UxArray *)jarg4; + result = (GoUint32)SKY_encrypt_ScryptChacha20poly1305_Decrypt(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddUint64(unsigned long long jarg1, unsigned long long jarg2, void * jarg3) { + unsigned int jresult ; + GoUint64 arg1 ; + GoUint64 arg2 ; + GoUint64 *arg3 = (GoUint64 *) 0 ; + GoUint32 result; + + arg1 = (GoUint64)jarg1; + arg2 = (GoUint64)jarg2; + arg3 = (GoUint64 *)jarg3; + result = (GoUint32)SKY_coin_AddUint64(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Uint64ToInt64(unsigned long long jarg1, void * jarg2) { + unsigned int jresult ; + GoUint64 arg1 ; + GoInt64 *arg2 = (GoInt64 *) 0 ; + GoUint32 result; + + arg1 = (GoUint64)jarg1; + arg2 = (GoInt64 *)jarg2; + result = (GoUint32)SKY_coin_Uint64ToInt64(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Int64ToUint64(long long jarg1, void * jarg2) { + unsigned int jresult ; + GoInt64 arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint32 result; + + arg1 = (GoInt64)jarg1; + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_coin_Int64ToUint64(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewBalance(unsigned long long jarg1, unsigned long long jarg2, void * jarg3) { + unsigned int jresult ; + GoUint64 arg1 ; + GoUint64 arg2 ; + wallet__Balance *arg3 = (wallet__Balance *) 0 ; + GoUint32 result; + + arg1 = (GoUint64)jarg1; + arg2 = (GoUint64)jarg2; + arg3 = (wallet__Balance *)jarg3; + result = (GoUint32)SKY_wallet_NewBalance(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewBalanceFromUxOut(unsigned long long jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + GoUint64 arg1 ; + coin__UxOut *arg2 = (coin__UxOut *) 0 ; + wallet__Balance *arg3 = (wallet__Balance *) 0 ; + GoUint32 result; + + arg1 = (GoUint64)jarg1; + arg2 = (coin__UxOut *)jarg2; + arg3 = (wallet__Balance *)jarg3; + result = (GoUint32)SKY_wallet_NewBalanceFromUxOut(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Balance_Add(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + wallet__Balance *arg2 = (wallet__Balance *) 0 ; + wallet__Balance *arg3 = (wallet__Balance *) 0 ; + GoUint32 result; + + arg1 = (wallet__Balance *)jarg1; + arg2 = (wallet__Balance *)jarg2; + arg3 = (wallet__Balance *)jarg3; + result = (GoUint32)SKY_wallet_Balance_Add(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Balance_Sub(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + wallet__Balance *arg2 = (wallet__Balance *) 0 ; + wallet__Balance *arg3 = (wallet__Balance *) 0 ; + GoUint32 result; + + arg1 = (wallet__Balance *)jarg1; + arg2 = (wallet__Balance *)jarg2; + arg3 = (wallet__Balance *)jarg3; + result = (GoUint32)SKY_wallet_Balance_Sub(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Balance_Equals(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + wallet__Balance *arg2 = (wallet__Balance *) 0 ; + GoUint8 *arg3 = (GoUint8 *) 0 ; + GoUint32 result; + + arg1 = (wallet__Balance *)jarg1; + arg2 = (wallet__Balance *)jarg2; + arg3 = (GoUint8 *)jarg3; + result = (GoUint32)SKY_wallet_Balance_Equals(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Balance_IsZero(void * jarg1, void * jarg2) { + unsigned int jresult ; + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoUint32 result; + + arg1 = (wallet__Balance *)jarg1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_wallet_Balance_IsZero(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_ripemd160_New(void * jarg1) { + unsigned int jresult ; + Hash_Handle *arg1 = (Hash_Handle *) 0 ; + GoUint32 result; + + arg1 = (Hash_Handle *)jarg1; + result = (GoUint32)SKY_ripemd160_New(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_ripemd160_Write(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Hash_Handle arg1 ; + GoSlice arg2 ; + GoInt *arg3 = (GoInt *) 0 ; + Hash_Handle *argp1 ; + GoSlice *argp2 ; + GoUint32 result; + + argp1 = (Hash_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Hash_Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (GoInt *)jarg3; + result = (GoUint32)SKY_ripemd160_Write(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_ripemd160_Sum(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Hash_Handle arg1 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + Hash_Handle *argp1 ; + GoSlice *argp2 ; + GoUint32 result; + + argp1 = (Hash_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Hash_Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_ripemd160_Sum(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock(void * jarg1, unsigned long long jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) { + unsigned int jresult ; + Block__Handle arg1 ; + GoUint64 arg2 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + Transactions__Handle arg4 ; + FeeCalculator *arg5 = (FeeCalculator *) 0 ; + Block__Handle *arg6 = (Block__Handle *) 0 ; + Block__Handle *argp1 ; + Transactions__Handle *argp4 ; + GoUint32 result; + + argp1 = (Block__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64)jarg2; + arg3 = (cipher__SHA256 *)jarg3; + argp4 = (Transactions__Handle *)jarg4; + if (!argp4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + return 0; + } + arg4 = *argp4; + arg5 = (FeeCalculator *)jarg5; + arg6 = (Block__Handle *)jarg6; + result = (GoUint32)SKY_coin_NewBlock(arg1,arg2,(GoUint8_ (*)[32])arg3,arg4,arg5,arg6); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SignedBlock_VerifySignature(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + GoUint32 result; + + arg1 = (coin__SignedBlock *)jarg1; + arg2 = (cipher__PubKey *)jarg2; + result = (GoUint32)SKY_coin_SignedBlock_VerifySignature(arg1,(GoUint8_ (*)[33])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewGenesisBlock(void * jarg1, unsigned long long jarg2, unsigned long long jarg3, void * jarg4) { + unsigned int jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoUint64 arg2 ; + GoUint64 arg3 ; + Block__Handle *arg4 = (Block__Handle *) 0 ; + GoUint32 result; + + arg1 = (cipher__Address *)jarg1; + arg2 = (GoUint64)jarg2; + arg3 = (GoUint64)jarg3; + arg4 = (Block__Handle *)jarg4; + result = (GoUint32)SKY_coin_NewGenesisBlock(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_HashHeader(void * jarg1, void * jarg2) { + unsigned int jresult ; + Block__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + Block__Handle *argp1 ; + GoUint32 result; + + argp1 = (Block__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_Block_HashHeader(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_PreHashHeader(void * jarg1, void * jarg2) { + unsigned int jresult ; + Block__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + Block__Handle *argp1 ; + GoUint32 result; + + argp1 = (Block__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_Block_PreHashHeader(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_Time(void * jarg1, void * jarg2) { + unsigned int jresult ; + Block__Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + Block__Handle *argp1 ; + GoUint32 result; + + argp1 = (Block__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_coin_Block_Time(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_Seq(void * jarg1, void * jarg2) { + unsigned int jresult ; + Block__Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + Block__Handle *argp1 ; + GoUint32 result; + + argp1 = (Block__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_coin_Block_Seq(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_HashBody(void * jarg1, void * jarg2) { + unsigned int jresult ; + Block__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + Block__Handle *argp1 ; + GoUint32 result; + + argp1 = (Block__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_Block_HashBody(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_Size(void * jarg1, void * jarg2) { + unsigned int jresult ; + Block__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + Block__Handle *argp1 ; + GoUint32 result; + + argp1 = (Block__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_coin_Block_Size(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_String(void * jarg1, void * jarg2) { + unsigned int jresult ; + Block__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Block__Handle *argp1 ; + GoUint32 result; + + argp1 = (Block__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_coin_Block_String(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_GetTransaction(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + Block__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + Transaction__Handle *arg3 = (Transaction__Handle *) 0 ; + GoUint8 *arg4 = (GoUint8 *) 0 ; + Block__Handle *argp1 ; + GoUint32 result; + + argp1 = (Block__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__SHA256 *)jarg2; + arg3 = (Transaction__Handle *)jarg3; + arg4 = (GoUint8 *)jarg4; + result = (GoUint32)SKY_coin_Block_GetTransaction(arg1,(GoUint8_ (*)[32])arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlockHeader(void * jarg1, void * jarg2, unsigned long long jarg3, unsigned long long jarg4, void * jarg5, void * jarg6) { + unsigned int jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint64 arg3 ; + GoUint64 arg4 ; + BlockBody__Handle arg5 ; + coin__BlockHeader *arg6 = (coin__BlockHeader *) 0 ; + BlockBody__Handle *argp5 ; + GoUint32 result; + + arg1 = (coin__BlockHeader *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + arg3 = (GoUint64)jarg3; + arg4 = (GoUint64)jarg4; + argp5 = (BlockBody__Handle *)jarg5; + if (!argp5) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null BlockBody__Handle", 0); + return 0; + } + arg5 = *argp5; + arg6 = (coin__BlockHeader *)jarg6; + result = (GoUint32)SKY_coin_NewBlockHeader(arg1,(GoUint8_ (*)[32])arg2,arg3,arg4,arg5,arg6); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockHeader_Hash(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint32 result; + + arg1 = (coin__BlockHeader *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_BlockHeader_Hash(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockHeader_Bytes(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (coin__BlockHeader *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_coin_BlockHeader_Bytes(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockHeader_String(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + arg1 = (coin__BlockHeader *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_coin_BlockHeader_String(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Hash(void * jarg1, void * jarg2) { + unsigned int jresult ; + BlockBody__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + BlockBody__Handle *argp1 ; + GoUint32 result; + + argp1 = (BlockBody__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null BlockBody__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_BlockBody_Hash(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Size(void * jarg1, void * jarg2) { + unsigned int jresult ; + BlockBody__Handle *arg1 = (BlockBody__Handle *) 0 ; + GoInt *arg2 = (GoInt *) 0 ; + GoUint32 result; + + arg1 = (BlockBody__Handle *)jarg1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_coin_BlockBody_Size(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Bytes(void * jarg1, void * jarg2) { + unsigned int jresult ; + BlockBody__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + BlockBody__Handle *argp1 ; + GoUint32 result; + + argp1 = (BlockBody__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null BlockBody__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_coin_BlockBody_Bytes(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_CreateUnspents(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + Transaction__Handle arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + Transaction__Handle *argp2 ; + GoUint32 result; + + arg1 = (coin__BlockHeader *)jarg1; + argp2 = (Transaction__Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg2 = *argp2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_coin_CreateUnspents(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_CreateUnspent(void * jarg1, void * jarg2, long long jarg3, void * jarg4) { + unsigned int jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + Transaction__Handle arg2 ; + GoInt arg3 ; + coin__UxOut *arg4 = (coin__UxOut *) 0 ; + Transaction__Handle *argp2 ; + GoUint32 result; + + arg1 = (coin__BlockHeader *)jarg1; + argp2 = (Transaction__Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg2 = *argp2; + arg3 = (GoInt)jarg3; + arg4 = (coin__UxOut *)jarg4; + result = (GoUint32)SKY_coin_CreateUnspent(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetBlockObject(void * jarg1, void * jarg2) { + unsigned int jresult ; + Block__Handle arg1 ; + coin__Block **arg2 = (coin__Block **) 0 ; + Block__Handle *argp1 ; + GoUint32 result; + + argp1 = (Block__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__Block **)jarg2; + result = (GoUint32)SKY_coin_GetBlockObject(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetBlockBody(void * jarg1, void * jarg2) { + unsigned int jresult ; + Block__Handle arg1 ; + BlockBody__Handle *arg2 = (BlockBody__Handle *) 0 ; + Block__Handle *argp1 ; + GoUint32 result; + + argp1 = (Block__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (BlockBody__Handle *)jarg2; + result = (GoUint32)SKY_coin_GetBlockBody(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewEmptyBlock(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transactions__Handle arg1 ; + Block__Handle *arg2 = (Block__Handle *) 0 ; + Transactions__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transactions__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Block__Handle *)jarg2; + result = (GoUint32)SKY_coin_NewEmptyBlock(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateAddresses(void * jarg1, void * jarg2, long long jarg3, unsigned char jarg4, void * jarg5) { + unsigned int jresult ; + GoString arg1 ; + GoString arg2 ; + GoInt arg3 ; + GoUint8 arg4 ; + ReadableWallet__Handle *arg5 = (ReadableWallet__Handle *) 0 ; + GoString *argp1 ; + GoString *argp2 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (GoInt)jarg3; + arg4 = (GoUint8)jarg4; + arg5 = (ReadableWallet__Handle *)jarg5; + result = (GoUint32)SKY_wallet_CreateAddresses(arg1,arg2,arg3,arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_GetSkycoinWalletEntry(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + ReadableEntry__Handle *arg3 = (ReadableEntry__Handle *) 0 ; + GoUint32 result; + + arg1 = (cipher__PubKey *)jarg1; + arg2 = (cipher__SecKey *)jarg2; + arg3 = (ReadableEntry__Handle *)jarg3; + result = (GoUint32)SKY_wallet_GetSkycoinWalletEntry((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_GetBitcoinWalletEntry(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + ReadableEntry__Handle *arg3 = (ReadableEntry__Handle *) 0 ; + GoUint32 result; + + arg1 = (cipher__PubKey *)jarg1; + arg2 = (cipher__SecKey *)jarg2; + arg3 = (ReadableEntry__Handle *)jarg3; + result = (GoUint32)SKY_wallet_GetBitcoinWalletEntry((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_map_Get(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; + GoString arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + GoString *argp2 ; + GoUint32 result; + + arg1 = (GoStringMap_ *)jarg1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (GoString_ *)jarg3; + result = (GoUint32)SKY_map_Get(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_skycoin_SKY_map_HasKey(void * jarg1, void * jarg2) { + unsigned char jresult ; + GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; + GoString arg2 ; + GoString *argp2 ; + GoUint8 result; + + arg1 = (GoStringMap_ *)jarg1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint8)SKY_map_HasKey(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_map_Close(void * jarg1) { + unsigned int jresult ; + GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; + GoUint32 result; + + arg1 = (GoStringMap_ *)jarg1; + result = (GoUint32)SKY_map_Close(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_logging_EnableColors() { + unsigned int jresult ; + GoUint32 result; + + result = (GoUint32)SKY_logging_EnableColors(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_logging_DisableColors() { + unsigned int jresult ; + GoUint32 result; + + result = (GoUint32)SKY_logging_DisableColors(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_logging_Disable() { + unsigned int jresult ; + GoUint32 result; + + result = (GoUint32)SKY_logging_Disable(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GenerateWallet(void * jarg1, void * jarg2, unsigned long long jarg3, void * jarg4) { + unsigned int jresult ; + GoString arg1 ; + Options__Handle *arg2 = (Options__Handle *) 0 ; + GoUint64 arg3 ; + Wallet__Handle *arg4 = (Wallet__Handle *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Options__Handle *)jarg2; + arg3 = (GoUint64)jarg3; + arg4 = (Wallet__Handle *)jarg4; + result = (GoUint32)SKY_cli_GenerateWallet(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_MakeAlphanumericSeed(void * jarg1) { + unsigned int jresult ; + GoString_ *arg1 = (GoString_ *) 0 ; + GoUint32 result; + + arg1 = (GoString_ *)jarg1; + result = (GoUint32)SKY_cli_MakeAlphanumericSeed(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Create(void * jarg1) { + unsigned int jresult ; + Signature_Handle *arg1 = (Signature_Handle *) 0 ; + GoUint32 result; + + arg1 = (Signature_Handle *)jarg1; + result = (GoUint32)SKY_secp256k1go_Signature_Create(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_GetR(void * jarg1, void * jarg2) { + unsigned int jresult ; + Signature_Handle arg1 ; + Number_Handle *arg2 = (Number_Handle *) 0 ; + Signature_Handle *argp1 ; + GoUint32 result; + + argp1 = (Signature_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Number_Handle *)jarg2; + result = (GoUint32)SKY_secp256k1go_Signature_GetR(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_GetS(void * jarg1, void * jarg2) { + unsigned int jresult ; + Signature_Handle arg1 ; + Number_Handle *arg2 = (Number_Handle *) 0 ; + Signature_Handle *argp1 ; + GoUint32 result; + + argp1 = (Signature_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Number_Handle *)jarg2; + result = (GoUint32)SKY_secp256k1go_Signature_GetS(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Print(void * jarg1, void * jarg2) { + unsigned int jresult ; + Signature_Handle arg1 ; + GoString arg2 ; + Signature_Handle *argp1 ; + GoString *argp2 ; + GoUint32 result; + + argp1 = (Signature_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_secp256k1go_Signature_Print(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Verify(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + Signature_Handle arg1 ; + secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; + Number_Handle arg3 ; + GoUint8 *arg4 = (GoUint8 *) 0 ; + Signature_Handle *argp1 ; + Number_Handle *argp3 ; + GoUint32 result; + + argp1 = (Signature_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (secp256k1go__XY *)jarg2; + argp3 = (Number_Handle *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); + return 0; + } + arg3 = *argp3; + arg4 = (GoUint8 *)jarg4; + result = (GoUint32)SKY_secp256k1go_Signature_Verify(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Recover(void * jarg1, void * jarg2, void * jarg3, long long jarg4, void * jarg5) { + unsigned int jresult ; + Signature_Handle arg1 ; + secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; + Number_Handle arg3 ; + GoInt arg4 ; + GoUint8 *arg5 = (GoUint8 *) 0 ; + Signature_Handle *argp1 ; + Number_Handle *argp3 ; + GoUint32 result; + + argp1 = (Signature_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (secp256k1go__XY *)jarg2; + argp3 = (Number_Handle *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); + return 0; + } + arg3 = *argp3; + arg4 = (GoInt)jarg4; + arg5 = (GoUint8 *)jarg5; + result = (GoUint32)SKY_secp256k1go_Signature_Recover(arg1,arg2,arg3,arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Sign(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) { + unsigned int jresult ; + Signature_Handle arg1 ; + Number_Handle arg2 ; + Number_Handle arg3 ; + Number_Handle arg4 ; + GoInt *arg5 = (GoInt *) 0 ; + GoInt *arg6 = (GoInt *) 0 ; + Signature_Handle *argp1 ; + Number_Handle *argp2 ; + Number_Handle *argp3 ; + Number_Handle *argp4 ; + GoUint32 result; + + argp1 = (Signature_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (Number_Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); + return 0; + } + arg2 = *argp2; + argp3 = (Number_Handle *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); + return 0; + } + arg3 = *argp3; + argp4 = (Number_Handle *)jarg4; + if (!argp4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); + return 0; + } + arg4 = *argp4; + arg5 = (GoInt *)jarg5; + arg6 = (GoInt *)jarg6; + result = (GoUint32)SKY_secp256k1go_Signature_Sign(arg1,arg2,arg3,arg4,arg5,arg6); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_ParseBytes(void * jarg1, void * jarg2) { + unsigned int jresult ; + Signature_Handle arg1 ; + GoSlice arg2 ; + Signature_Handle *argp1 ; + GoSlice *argp2 ; + GoUint32 result; + + argp1 = (Signature_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_secp256k1go_Signature_ParseBytes(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Bytes(void * jarg1, void * jarg2) { + unsigned int jresult ; + Signature_Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + Signature_Handle *argp1 ; + GoUint32 result; + + argp1 = (Signature_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1go_Signature_Bytes(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_Create(void * jarg1) { + unsigned int jresult ; + Number_Handle *arg1 = (Number_Handle *) 0 ; + GoUint32 result; + + arg1 = (Number_Handle *)jarg1; + result = (GoUint32)SKY_secp256k1go_Number_Create(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_Print(void * jarg1, void * jarg2) { + unsigned int jresult ; + Number_Handle arg1 ; + GoString arg2 ; + Number_Handle *argp1 ; + GoString *argp2 ; + GoUint32 result; + + argp1 = (Number_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_secp256k1go_Number_Print(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_SetHex(void * jarg1, void * jarg2) { + unsigned int jresult ; + Number_Handle arg1 ; + GoString arg2 ; + Number_Handle *argp1 ; + GoString *argp2 ; + GoUint32 result; + + argp1 = (Number_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_secp256k1go_Number_SetHex(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_IsOdd(void * jarg1, void * jarg2) { + unsigned int jresult ; + Number_Handle arg1 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + Number_Handle *argp1 ; + GoUint32 result; + + argp1 = (Number_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_secp256k1go_Number_IsOdd(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_IsEqual(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Number_Handle arg1 ; + Number_Handle arg2 ; + GoUint8 *arg3 = (GoUint8 *) 0 ; + Number_Handle *argp1 ; + Number_Handle *argp2 ; + GoUint32 result; + + argp1 = (Number_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (Number_Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); + return 0; + } + arg2 = *argp2; + arg3 = (GoUint8 *)jarg3; + result = (GoUint32)SKY_secp256k1go_Number_IsEqual(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateOptionsHandle(void * jarg1, void * jarg2, void * jarg3, unsigned char jarg4, void * jarg5, void * jarg6, unsigned long long jarg7, void * jarg8) { + GoString arg1 ; + GoString arg2 ; + GoString arg3 ; + GoUint8 arg4 ; + GoString arg5 ; + GoString arg6 ; + GoUint64 arg7 ; + Options__Handle *arg8 = (Options__Handle *) 0 ; + GoString *argp1 ; + GoString *argp2 ; + GoString *argp3 ; + GoString *argp5 ; + GoString *argp6 ; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return ; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return ; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return ; + } + arg3 = *argp3; + arg4 = (GoUint8)jarg4; + argp5 = (GoString *)jarg5; + if (!argp5) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return ; + } + arg5 = *argp5; + argp6 = (GoString *)jarg6; + if (!argp6) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return ; + } + arg6 = *argp6; + arg7 = (GoUint64)jarg7; + arg8 = (Options__Handle *)jarg8; + SKY_wallet_CreateOptionsHandle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_Print(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + GoString arg2 ; + GoString *argp2 ; + GoUint32 result; + + arg1 = (secp256k1go__XY *)jarg1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_secp256k1go_XY_Print(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_ParsePubkey(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + GoSlice arg2 ; + GoUint8 *arg3 = (GoUint8 *) 0 ; + GoSlice *argp2 ; + GoUint32 result; + + arg1 = (secp256k1go__XY *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (GoUint8 *)jarg3; + result = (GoUint32)SKY_secp256k1go_XY_ParsePubkey(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_Bytes(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__XY *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1go_XY_Bytes(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_BytesUncompressed(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__XY *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1go_XY_BytesUncompressed(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_SetXY(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + secp256k1go__Field *arg3 = (secp256k1go__Field *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__XY *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + arg3 = (secp256k1go__Field *)jarg3; + result = (GoUint32)SKY_secp256k1go_XY_SetXY(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_IsValid(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__XY *)jarg1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_secp256k1go_XY_IsValid(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_SetXYZ(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__XY *)jarg1; + arg2 = (secp256k1go__XYZ *)jarg2; + result = (GoUint32)SKY_secp256k1go_XY_SetXYZ(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_Neg(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__XY *)jarg1; + arg2 = (secp256k1go__XY *)jarg2; + result = (GoUint32)SKY_secp256k1go_XY_Neg(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_SetXO(void * jarg1, void * jarg2, unsigned char jarg3) { + unsigned int jresult ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + GoUint8 arg3 ; + GoUint32 result; + + arg1 = (secp256k1go__XY *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + arg3 = (GoUint8)jarg3; + result = (GoUint32)SKY_secp256k1go_XY_SetXO(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_AddXY(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__XY *)jarg1; + arg2 = (secp256k1go__XY *)jarg2; + result = (GoUint32)SKY_secp256k1go_XY_AddXY(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_GetPublicKey(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__XY *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1go_XY_GetPublicKey(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Entry_Verify(void * jarg1) { + unsigned int jresult ; + wallet__Entry *arg1 = (wallet__Entry *) 0 ; + GoUint32 result; + + arg1 = (wallet__Entry *)jarg1; + result = (GoUint32)SKY_wallet_Entry_Verify(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Entry_VerifyPublic(void * jarg1) { + unsigned int jresult ; + wallet__Entry *arg1 = (wallet__Entry *) 0 ; + GoUint32 result; + + arg1 = (wallet__Entry *)jarg1; + result = (GoUint32)SKY_wallet_Entry_VerifyPublic(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CryptoTypeFromString(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_wallet_CryptoTypeFromString(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher__Address_isEqual(void * jarg1, void * jarg2) { + int jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + int result; + + arg1 = (cipher__Address *)jarg1; + arg2 = (cipher__Address *)jarg2; + result = (int)cipher__Address_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher__Address_Version_set(void * jarg1, void * jarg2) { + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoUint8_ arg2 ; + GoUint8_ *argp2 ; + + arg1 = (cipher__Address *)jarg1; + argp2 = (GoUint8_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint8_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Version = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher__Address_Version_get(void * jarg1) { + void * jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoUint8_ result; + + arg1 = (cipher__Address *)jarg1; + result = ((arg1)->Version); + { + GoUint8_ * resultptr = (GoUint8_ *) malloc(sizeof(GoUint8_)); + memmove(resultptr, &result, sizeof(GoUint8_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher__Address_Key_set(void * jarg1, void * jarg2) { + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoUint8_ *arg2 ; + + arg1 = (cipher__Address *)jarg1; + arg2 = (GoUint8_ *)jarg2; + { + size_t ii; + GoUint8_ *b = (GoUint8_ *) arg1->Key; + for (ii = 0; ii < (size_t)20; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher__Address_Key_get(void * jarg1) { + void * jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoUint8_ *result = 0 ; + + arg1 = (cipher__Address *)jarg1; + result = (GoUint8_ *) ((arg1)->Key); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher__Address() { + void * jresult ; + cipher__Address *result = 0 ; + + result = (cipher__Address *)calloc(1, sizeof(cipher__Address)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher__Address(void * jarg1) { + cipher__Address *arg1 = (cipher__Address *) 0 ; + + arg1 = (cipher__Address *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_encoder__StructField_Name_set(void * jarg1, void * jarg2) { + encoder__StructField *arg1 = (encoder__StructField *) 0 ; + GoString_ arg2 ; + GoString_ *argp2 ; + + arg1 = (encoder__StructField *)jarg1; + argp2 = (GoString_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Name = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_encoder__StructField_Name_get(void * jarg1) { + void * jresult ; + encoder__StructField *arg1 = (encoder__StructField *) 0 ; + GoString_ result; + + arg1 = (encoder__StructField *)jarg1; + result = ((arg1)->Name); + { + GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); + memmove(resultptr, &result, sizeof(GoString_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_encoder__StructField_Kind_set(void * jarg1, void * jarg2) { + encoder__StructField *arg1 = (encoder__StructField *) 0 ; + GoUint32_ arg2 ; + GoUint32_ *argp2 ; + + arg1 = (encoder__StructField *)jarg1; + argp2 = (GoUint32_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint32_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Kind = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_encoder__StructField_Kind_get(void * jarg1) { + void * jresult ; + encoder__StructField *arg1 = (encoder__StructField *) 0 ; + GoUint32_ result; + + arg1 = (encoder__StructField *)jarg1; + result = ((arg1)->Kind); + { + GoUint32_ * resultptr = (GoUint32_ *) malloc(sizeof(GoUint32_)); + memmove(resultptr, &result, sizeof(GoUint32_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_encoder__StructField_Type_set(void * jarg1, void * jarg2) { + encoder__StructField *arg1 = (encoder__StructField *) 0 ; + GoString_ arg2 ; + GoString_ *argp2 ; + + arg1 = (encoder__StructField *)jarg1; + argp2 = (GoString_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Type = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_encoder__StructField_Type_get(void * jarg1) { + void * jresult ; + encoder__StructField *arg1 = (encoder__StructField *) 0 ; + GoString_ result; + + arg1 = (encoder__StructField *)jarg1; + result = ((arg1)->Type); + { + GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); + memmove(resultptr, &result, sizeof(GoString_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_encoder__StructField_Tag_set(void * jarg1, void * jarg2) { + encoder__StructField *arg1 = (encoder__StructField *) 0 ; + GoString_ arg2 ; + GoString_ *argp2 ; + + arg1 = (encoder__StructField *)jarg1; + argp2 = (GoString_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Tag = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_encoder__StructField_Tag_get(void * jarg1) { + void * jresult ; + encoder__StructField *arg1 = (encoder__StructField *) 0 ; + GoString_ result; + + arg1 = (encoder__StructField *)jarg1; + result = ((arg1)->Tag); + { + GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); + memmove(resultptr, &result, sizeof(GoString_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_encoder__StructField() { + void * jresult ; + encoder__StructField *result = 0 ; + + result = (encoder__StructField *)calloc(1, sizeof(encoder__StructField)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_encoder__StructField(void * jarg1) { + encoder__StructField *arg1 = (encoder__StructField *) 0 ; + + arg1 = (encoder__StructField *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_encrypt__ScryptChacha20poly1305_N_set(void * jarg1, void * jarg2) { + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + GoInt_ arg2 ; + GoInt_ *argp2 ; + + arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; + argp2 = (GoInt_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->N = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_encrypt__ScryptChacha20poly1305_N_get(void * jarg1) { + void * jresult ; + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + GoInt_ result; + + arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; + result = ((arg1)->N); + { + GoInt_ * resultptr = (GoInt_ *) malloc(sizeof(GoInt_)); + memmove(resultptr, &result, sizeof(GoInt_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_encrypt__ScryptChacha20poly1305_R_set(void * jarg1, void * jarg2) { + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + GoInt_ arg2 ; + GoInt_ *argp2 ; + + arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; + argp2 = (GoInt_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->R = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_encrypt__ScryptChacha20poly1305_R_get(void * jarg1) { + void * jresult ; + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + GoInt_ result; + + arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; + result = ((arg1)->R); + { + GoInt_ * resultptr = (GoInt_ *) malloc(sizeof(GoInt_)); + memmove(resultptr, &result, sizeof(GoInt_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_encrypt__ScryptChacha20poly1305_P_set(void * jarg1, void * jarg2) { + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + GoInt_ arg2 ; + GoInt_ *argp2 ; + + arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; + argp2 = (GoInt_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->P = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_encrypt__ScryptChacha20poly1305_P_get(void * jarg1) { + void * jresult ; + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + GoInt_ result; + + arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; + result = ((arg1)->P); + { + GoInt_ * resultptr = (GoInt_ *) malloc(sizeof(GoInt_)); + memmove(resultptr, &result, sizeof(GoInt_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_encrypt__ScryptChacha20poly1305_KeyLen_set(void * jarg1, void * jarg2) { + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + GoInt_ arg2 ; + GoInt_ *argp2 ; + + arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; + argp2 = (GoInt_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->KeyLen = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_encrypt__ScryptChacha20poly1305_KeyLen_get(void * jarg1) { + void * jresult ; + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + GoInt_ result; + + arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; + result = ((arg1)->KeyLen); + { + GoInt_ * resultptr = (GoInt_ *) malloc(sizeof(GoInt_)); + memmove(resultptr, &result, sizeof(GoInt_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_encrypt__ScryptChacha20poly1305() { + void * jresult ; + encrypt__ScryptChacha20poly1305 *result = 0 ; + + result = (encrypt__ScryptChacha20poly1305 *)calloc(1, sizeof(encrypt__ScryptChacha20poly1305)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_encrypt__ScryptChacha20poly1305(void * jarg1) { + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + + arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_secp256k1go__Field_n_set(void * jarg1, void * jarg2) { + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoUint32_ *arg2 ; + + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (GoUint32_ *)jarg2; + { + size_t ii; + GoUint32_ *b = (GoUint32_ *) arg1->n; + for (ii = 0; ii < (size_t)10; ii++) b[ii] = *((GoUint32_ *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_secp256k1go__Field_n_get(void * jarg1) { + void * jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoUint32_ *result = 0 ; + + arg1 = (secp256k1go__Field *)jarg1; + result = (GoUint32_ *)(GoUint32_ *) ((arg1)->n); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_secp256k1go__Field() { + void * jresult ; + secp256k1go__Field *result = 0 ; + + result = (secp256k1go__Field *)calloc(1, sizeof(secp256k1go__Field)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_secp256k1go__Field(void * jarg1) { + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + + arg1 = (secp256k1go__Field *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_secp256k1go__XY_X_set(void * jarg1, void * jarg2) { + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + + arg1 = (secp256k1go__XY *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + if (arg1) (arg1)->X = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_secp256k1go__XY_X_get(void * jarg1) { + void * jresult ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + secp256k1go__Field *result = 0 ; + + arg1 = (secp256k1go__XY *)jarg1; + result = (secp256k1go__Field *)& ((arg1)->X); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_secp256k1go__XY_Y_set(void * jarg1, void * jarg2) { + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + + arg1 = (secp256k1go__XY *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + if (arg1) (arg1)->Y = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_secp256k1go__XY_Y_get(void * jarg1) { + void * jresult ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + secp256k1go__Field *result = 0 ; + + arg1 = (secp256k1go__XY *)jarg1; + result = (secp256k1go__Field *)& ((arg1)->Y); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_secp256k1go__XY_Infinity_set(void * jarg1, void * jarg2) { + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + BOOL arg2 ; + BOOL *argp2 ; + + arg1 = (secp256k1go__XY *)jarg1; + argp2 = (BOOL *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null BOOL", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Infinity = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_secp256k1go__XY_Infinity_get(void * jarg1) { + void * jresult ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + BOOL result; + + arg1 = (secp256k1go__XY *)jarg1; + result = ((arg1)->Infinity); + { + BOOL * resultptr = (BOOL *) malloc(sizeof(BOOL)); + memmove(resultptr, &result, sizeof(BOOL)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_secp256k1go__XY() { + void * jresult ; + secp256k1go__XY *result = 0 ; + + result = (secp256k1go__XY *)calloc(1, sizeof(secp256k1go__XY)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_secp256k1go__XY(void * jarg1) { + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + + arg1 = (secp256k1go__XY *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_secp256k1go__XYZ_X_set(void * jarg1, void * jarg2) { + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + if (arg1) (arg1)->X = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_secp256k1go__XYZ_X_get(void * jarg1) { + void * jresult ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__Field *result = 0 ; + + arg1 = (secp256k1go__XYZ *)jarg1; + result = (secp256k1go__Field *)& ((arg1)->X); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_secp256k1go__XYZ_Y_set(void * jarg1, void * jarg2) { + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + if (arg1) (arg1)->Y = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_secp256k1go__XYZ_Y_get(void * jarg1) { + void * jresult ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__Field *result = 0 ; + + arg1 = (secp256k1go__XYZ *)jarg1; + result = (secp256k1go__Field *)& ((arg1)->Y); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_secp256k1go__XYZ_Z_set(void * jarg1, void * jarg2) { + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + if (arg1) (arg1)->Z = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_secp256k1go__XYZ_Z_get(void * jarg1) { + void * jresult ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__Field *result = 0 ; + + arg1 = (secp256k1go__XYZ *)jarg1; + result = (secp256k1go__Field *)& ((arg1)->Z); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_secp256k1go__XYZ_Infinity_set(void * jarg1, void * jarg2) { + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + BOOL arg2 ; + BOOL *argp2 ; + + arg1 = (secp256k1go__XYZ *)jarg1; + argp2 = (BOOL *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null BOOL", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Infinity = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_secp256k1go__XYZ_Infinity_get(void * jarg1) { + void * jresult ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + BOOL result; + + arg1 = (secp256k1go__XYZ *)jarg1; + result = ((arg1)->Infinity); + { + BOOL * resultptr = (BOOL *) malloc(sizeof(BOOL)); + memmove(resultptr, &result, sizeof(BOOL)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_secp256k1go__XYZ() { + void * jresult ; + secp256k1go__XYZ *result = 0 ; + + result = (secp256k1go__XYZ *)calloc(1, sizeof(secp256k1go__XYZ)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_secp256k1go__XYZ(void * jarg1) { + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + + arg1 = (secp256k1go__XYZ *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__SortableTransactions_Txns_set(void * jarg1, void * jarg2) { + coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; + coin__Transactions arg2 ; + coin__Transactions *argp2 ; + + arg1 = (coin__SortableTransactions *)jarg1; + argp2 = (coin__Transactions *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null coin__Transactions", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Txns = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__SortableTransactions_Txns_get(void * jarg1) { + void * jresult ; + coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; + coin__Transactions result; + + arg1 = (coin__SortableTransactions *)jarg1; + result = ((arg1)->Txns); + { + coin__Transactions * resultptr = (coin__Transactions *) malloc(sizeof(coin__Transactions)); + memmove(resultptr, &result, sizeof(coin__Transactions)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__SortableTransactions_Fees_set(void * jarg1, void * jarg2) { + coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; + GoSlice_ arg2 ; + GoSlice_ *argp2 ; + + arg1 = (coin__SortableTransactions *)jarg1; + argp2 = (GoSlice_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Fees = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__SortableTransactions_Fees_get(void * jarg1) { + void * jresult ; + coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; + GoSlice_ result; + + arg1 = (coin__SortableTransactions *)jarg1; + result = ((arg1)->Fees); + { + GoSlice_ * resultptr = (GoSlice_ *) malloc(sizeof(GoSlice_)); + memmove(resultptr, &result, sizeof(GoSlice_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__SortableTransactions_Hashes_set(void * jarg1, void * jarg2) { + coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; + GoSlice_ arg2 ; + GoSlice_ *argp2 ; + + arg1 = (coin__SortableTransactions *)jarg1; + argp2 = (GoSlice_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Hashes = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__SortableTransactions_Hashes_get(void * jarg1) { + void * jresult ; + coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; + GoSlice_ result; + + arg1 = (coin__SortableTransactions *)jarg1; + result = ((arg1)->Hashes); + { + GoSlice_ * resultptr = (GoSlice_ *) malloc(sizeof(GoSlice_)); + memmove(resultptr, &result, sizeof(GoSlice_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__SortableTransactions() { + void * jresult ; + coin__SortableTransactions *result = 0 ; + + result = (coin__SortableTransactions *)calloc(1, sizeof(coin__SortableTransactions)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__SortableTransactions(void * jarg1) { + coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; + + arg1 = (coin__SortableTransactions *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__Transaction_isEqual(void * jarg1, void * jarg2) { + int jresult ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + coin__Transaction *arg2 = (coin__Transaction *) 0 ; + int result; + + arg1 = (coin__Transaction *)jarg1; + arg2 = (coin__Transaction *)jarg2; + result = (int)coin__Transaction_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__Transaction_Length_set(void * jarg1, void * jarg2) { + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoInt32_ arg2 ; + GoInt32_ *argp2 ; + + arg1 = (coin__Transaction *)jarg1; + argp2 = (GoInt32_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt32_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Length = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Transaction_Length_get(void * jarg1) { + void * jresult ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoInt32_ result; + + arg1 = (coin__Transaction *)jarg1; + result = ((arg1)->Length); + { + GoInt32_ * resultptr = (GoInt32_ *) malloc(sizeof(GoInt32_)); + memmove(resultptr, &result, sizeof(GoInt32_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__Transaction_Type_set(void * jarg1, void * jarg2) { + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoInt8_ arg2 ; + GoInt8_ *argp2 ; + + arg1 = (coin__Transaction *)jarg1; + argp2 = (GoInt8_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt8_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Type = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Transaction_Type_get(void * jarg1) { + void * jresult ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoInt8_ result; + + arg1 = (coin__Transaction *)jarg1; + result = ((arg1)->Type); + { + GoInt8_ * resultptr = (GoInt8_ *) malloc(sizeof(GoInt8_)); + memmove(resultptr, &result, sizeof(GoInt8_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__Transaction_InnerHash_set(void * jarg1, void * jarg2) { + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoUint8_ *arg2 ; + + arg1 = (coin__Transaction *)jarg1; + arg2 = (GoUint8_ *)jarg2; + { + size_t ii; + GoUint8_ *b = (GoUint8_ *) arg1->InnerHash; + for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Transaction_InnerHash_get(void * jarg1) { + void * jresult ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoUint8_ *result = 0 ; + + arg1 = (coin__Transaction *)jarg1; + result = (GoUint8_ *) ((arg1)->InnerHash); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__Transaction_Sigs_set(void * jarg1, void * jarg2) { + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoSlice_ arg2 ; + GoSlice_ *argp2 ; + + arg1 = (coin__Transaction *)jarg1; + argp2 = (GoSlice_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Sigs = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Transaction_Sigs_get(void * jarg1) { + void * jresult ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoSlice_ result; + + arg1 = (coin__Transaction *)jarg1; + result = ((arg1)->Sigs); + { + GoSlice_ * resultptr = (GoSlice_ *) malloc(sizeof(GoSlice_)); + memmove(resultptr, &result, sizeof(GoSlice_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__Transaction_In_set(void * jarg1, void * jarg2) { + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoSlice_ arg2 ; + GoSlice_ *argp2 ; + + arg1 = (coin__Transaction *)jarg1; + argp2 = (GoSlice_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->In = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Transaction_In_get(void * jarg1) { + void * jresult ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoSlice_ result; + + arg1 = (coin__Transaction *)jarg1; + result = ((arg1)->In); + { + GoSlice_ * resultptr = (GoSlice_ *) malloc(sizeof(GoSlice_)); + memmove(resultptr, &result, sizeof(GoSlice_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__Transaction_Out_set(void * jarg1, void * jarg2) { + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoSlice_ arg2 ; + GoSlice_ *argp2 ; + + arg1 = (coin__Transaction *)jarg1; + argp2 = (GoSlice_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Out = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Transaction_Out_get(void * jarg1) { + void * jresult ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoSlice_ result; + + arg1 = (coin__Transaction *)jarg1; + result = ((arg1)->Out); + { + GoSlice_ * resultptr = (GoSlice_ *) malloc(sizeof(GoSlice_)); + memmove(resultptr, &result, sizeof(GoSlice_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__Transaction() { + void * jresult ; + coin__Transaction *result = 0 ; + + result = (coin__Transaction *)calloc(1, sizeof(coin__Transaction)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__Transaction(void * jarg1) { + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + + arg1 = (coin__Transaction *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__TransactionOutput_isEqual(void * jarg1, void * jarg2) { + int jresult ; + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + coin__TransactionOutput *arg2 = (coin__TransactionOutput *) 0 ; + int result; + + arg1 = (coin__TransactionOutput *)jarg1; + arg2 = (coin__TransactionOutput *)jarg2; + result = (int)coin__TransactionOutput_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__TransactionOutput_Address_set(void * jarg1, void * jarg2) { + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + + arg1 = (coin__TransactionOutput *)jarg1; + arg2 = (cipher__Address *)jarg2; + if (arg1) (arg1)->Address = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__TransactionOutput_Address_get(void * jarg1) { + void * jresult ; + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + cipher__Address *result = 0 ; + + arg1 = (coin__TransactionOutput *)jarg1; + result = (cipher__Address *)& ((arg1)->Address); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__TransactionOutput_Coins_set(void * jarg1, void * jarg2) { + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + GoUint64_ arg2 ; + GoUint64_ *argp2 ; + + arg1 = (coin__TransactionOutput *)jarg1; + argp2 = (GoUint64_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Coins = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__TransactionOutput_Coins_get(void * jarg1) { + void * jresult ; + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + GoUint64_ result; + + arg1 = (coin__TransactionOutput *)jarg1; + result = ((arg1)->Coins); + { + GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); + memmove(resultptr, &result, sizeof(GoUint64_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__TransactionOutput_Hours_set(void * jarg1, void * jarg2) { + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + GoUint64_ arg2 ; + GoUint64_ *argp2 ; + + arg1 = (coin__TransactionOutput *)jarg1; + argp2 = (GoUint64_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Hours = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__TransactionOutput_Hours_get(void * jarg1) { + void * jresult ; + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + GoUint64_ result; + + arg1 = (coin__TransactionOutput *)jarg1; + result = ((arg1)->Hours); + { + GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); + memmove(resultptr, &result, sizeof(GoUint64_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__TransactionOutput() { + void * jresult ; + coin__TransactionOutput *result = 0 ; + + result = (coin__TransactionOutput *)calloc(1, sizeof(coin__TransactionOutput)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__TransactionOutput(void * jarg1) { + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + + arg1 = (coin__TransactionOutput *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_isEqual(void * jarg1, void * jarg2) { + int jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + coin__BlockHeader *arg2 = (coin__BlockHeader *) 0 ; + int result; + + arg1 = (coin__BlockHeader *)jarg1; + arg2 = (coin__BlockHeader *)jarg2; + result = (int)coin__BlockHeader_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_Version_set(void * jarg1, void * jarg2) { + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint32_ arg2 ; + GoUint32_ *argp2 ; + + arg1 = (coin__BlockHeader *)jarg1; + argp2 = (GoUint32_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint32_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Version = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_Version_get(void * jarg1) { + void * jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint32_ result; + + arg1 = (coin__BlockHeader *)jarg1; + result = ((arg1)->Version); + { + GoUint32_ * resultptr = (GoUint32_ *) malloc(sizeof(GoUint32_)); + memmove(resultptr, &result, sizeof(GoUint32_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_Time_set(void * jarg1, void * jarg2) { + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint64_ arg2 ; + GoUint64_ *argp2 ; + + arg1 = (coin__BlockHeader *)jarg1; + argp2 = (GoUint64_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Time = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_Time_get(void * jarg1) { + void * jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint64_ result; + + arg1 = (coin__BlockHeader *)jarg1; + result = ((arg1)->Time); + { + GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); + memmove(resultptr, &result, sizeof(GoUint64_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_BkSeq_set(void * jarg1, void * jarg2) { + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint64_ arg2 ; + GoUint64_ *argp2 ; + + arg1 = (coin__BlockHeader *)jarg1; + argp2 = (GoUint64_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->BkSeq = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_BkSeq_get(void * jarg1) { + void * jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint64_ result; + + arg1 = (coin__BlockHeader *)jarg1; + result = ((arg1)->BkSeq); + { + GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); + memmove(resultptr, &result, sizeof(GoUint64_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_Fee_set(void * jarg1, void * jarg2) { + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint64_ arg2 ; + GoUint64_ *argp2 ; + + arg1 = (coin__BlockHeader *)jarg1; + argp2 = (GoUint64_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Fee = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_Fee_get(void * jarg1) { + void * jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint64_ result; + + arg1 = (coin__BlockHeader *)jarg1; + result = ((arg1)->Fee); + { + GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); + memmove(resultptr, &result, sizeof(GoUint64_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_PrevHash_set(void * jarg1, void * jarg2) { + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint8_ *arg2 ; + + arg1 = (coin__BlockHeader *)jarg1; + arg2 = (GoUint8_ *)jarg2; + { + size_t ii; + GoUint8_ *b = (GoUint8_ *) arg1->PrevHash; + for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_PrevHash_get(void * jarg1) { + void * jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint8_ *result = 0 ; + + arg1 = (coin__BlockHeader *)jarg1; + result = (GoUint8_ *) ((arg1)->PrevHash); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_BodyHash_set(void * jarg1, void * jarg2) { + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint8_ *arg2 ; + + arg1 = (coin__BlockHeader *)jarg1; + arg2 = (GoUint8_ *)jarg2; + { + size_t ii; + GoUint8_ *b = (GoUint8_ *) arg1->BodyHash; + for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_BodyHash_get(void * jarg1) { + void * jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint8_ *result = 0 ; + + arg1 = (coin__BlockHeader *)jarg1; + result = (GoUint8_ *) ((arg1)->BodyHash); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_UxHash_set(void * jarg1, void * jarg2) { + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint8_ *arg2 ; + + arg1 = (coin__BlockHeader *)jarg1; + arg2 = (GoUint8_ *)jarg2; + { + size_t ii; + GoUint8_ *b = (GoUint8_ *) arg1->UxHash; + for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_UxHash_get(void * jarg1) { + void * jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint8_ *result = 0 ; + + arg1 = (coin__BlockHeader *)jarg1; + result = (GoUint8_ *) ((arg1)->UxHash); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__BlockHeader() { + void * jresult ; + coin__BlockHeader *result = 0 ; + + result = (coin__BlockHeader *)calloc(1, sizeof(coin__BlockHeader)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__BlockHeader(void * jarg1) { + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + + arg1 = (coin__BlockHeader *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__BlockBody_isEqual(void * jarg1, void * jarg2) { + int jresult ; + coin__BlockBody *arg1 = (coin__BlockBody *) 0 ; + coin__BlockBody *arg2 = (coin__BlockBody *) 0 ; + int result; + + arg1 = (coin__BlockBody *)jarg1; + arg2 = (coin__BlockBody *)jarg2; + result = (int)coin__BlockBody_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockBody_Transactions_set(void * jarg1, void * jarg2) { + coin__BlockBody *arg1 = (coin__BlockBody *) 0 ; + coin__Transactions arg2 ; + coin__Transactions *argp2 ; + + arg1 = (coin__BlockBody *)jarg1; + argp2 = (coin__Transactions *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null coin__Transactions", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Transactions = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__BlockBody_Transactions_get(void * jarg1) { + void * jresult ; + coin__BlockBody *arg1 = (coin__BlockBody *) 0 ; + coin__Transactions result; + + arg1 = (coin__BlockBody *)jarg1; + result = ((arg1)->Transactions); + { + coin__Transactions * resultptr = (coin__Transactions *) malloc(sizeof(coin__Transactions)); + memmove(resultptr, &result, sizeof(coin__Transactions)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__BlockBody() { + void * jresult ; + coin__BlockBody *result = 0 ; + + result = (coin__BlockBody *)calloc(1, sizeof(coin__BlockBody)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__BlockBody(void * jarg1) { + coin__BlockBody *arg1 = (coin__BlockBody *) 0 ; + + arg1 = (coin__BlockBody *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__Block_Head_set(void * jarg1, void * jarg2) { + coin__Block *arg1 = (coin__Block *) 0 ; + coin__BlockHeader *arg2 = (coin__BlockHeader *) 0 ; + + arg1 = (coin__Block *)jarg1; + arg2 = (coin__BlockHeader *)jarg2; + if (arg1) (arg1)->Head = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Block_Head_get(void * jarg1) { + void * jresult ; + coin__Block *arg1 = (coin__Block *) 0 ; + coin__BlockHeader *result = 0 ; + + arg1 = (coin__Block *)jarg1; + result = (coin__BlockHeader *)& ((arg1)->Head); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__Block_Body_set(void * jarg1, void * jarg2) { + coin__Block *arg1 = (coin__Block *) 0 ; + coin__BlockBody *arg2 = (coin__BlockBody *) 0 ; + + arg1 = (coin__Block *)jarg1; + arg2 = (coin__BlockBody *)jarg2; + if (arg1) (arg1)->Body = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Block_Body_get(void * jarg1) { + void * jresult ; + coin__Block *arg1 = (coin__Block *) 0 ; + coin__BlockBody *result = 0 ; + + arg1 = (coin__Block *)jarg1; + result = (coin__BlockBody *)& ((arg1)->Body); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__Block() { + void * jresult ; + coin__Block *result = 0 ; + + result = (coin__Block *)calloc(1, sizeof(coin__Block)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__Block(void * jarg1) { + coin__Block *arg1 = (coin__Block *) 0 ; + + arg1 = (coin__Block *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__SignedBlock__unnamed_set(void * jarg1, void * jarg2) { + coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; + coin__Block *arg2 = (coin__Block *) 0 ; + + arg1 = (coin__SignedBlock *)jarg1; + arg2 = (coin__Block *)jarg2; + if (arg1) (arg1)->_unnamed = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__SignedBlock__unnamed_get(void * jarg1) { + void * jresult ; + coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; + coin__Block *result = 0 ; + + arg1 = (coin__SignedBlock *)jarg1; + result = (coin__Block *)& ((arg1)->_unnamed); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__SignedBlock_Sig_set(void * jarg1, void * jarg2) { + coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; + GoUint8_ *arg2 ; + + arg1 = (coin__SignedBlock *)jarg1; + arg2 = (GoUint8_ *)jarg2; + { + size_t ii; + GoUint8_ *b = (GoUint8_ *) arg1->Sig; + for (ii = 0; ii < (size_t)65; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__SignedBlock_Sig_get(void * jarg1) { + void * jresult ; + coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; + GoUint8_ *result = 0 ; + + arg1 = (coin__SignedBlock *)jarg1; + result = (GoUint8_ *) ((arg1)->Sig); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__SignedBlock() { + void * jresult ; + coin__SignedBlock *result = 0 ; + + result = (coin__SignedBlock *)calloc(1, sizeof(coin__SignedBlock)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__SignedBlock(void * jarg1) { + coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; + + arg1 = (coin__SignedBlock *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__UxHead_Time_set(void * jarg1, void * jarg2) { + coin__UxHead *arg1 = (coin__UxHead *) 0 ; + GoUint64_ arg2 ; + GoUint64_ *argp2 ; + + arg1 = (coin__UxHead *)jarg1; + argp2 = (GoUint64_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Time = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__UxHead_Time_get(void * jarg1) { + void * jresult ; + coin__UxHead *arg1 = (coin__UxHead *) 0 ; + GoUint64_ result; + + arg1 = (coin__UxHead *)jarg1; + result = ((arg1)->Time); + { + GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); + memmove(resultptr, &result, sizeof(GoUint64_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__UxHead_BkSeq_set(void * jarg1, void * jarg2) { + coin__UxHead *arg1 = (coin__UxHead *) 0 ; + GoUint64_ arg2 ; + GoUint64_ *argp2 ; + + arg1 = (coin__UxHead *)jarg1; + argp2 = (GoUint64_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->BkSeq = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__UxHead_BkSeq_get(void * jarg1) { + void * jresult ; + coin__UxHead *arg1 = (coin__UxHead *) 0 ; + GoUint64_ result; + + arg1 = (coin__UxHead *)jarg1; + result = ((arg1)->BkSeq); + { + GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); + memmove(resultptr, &result, sizeof(GoUint64_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__UxHead() { + void * jresult ; + coin__UxHead *result = 0 ; + + result = (coin__UxHead *)calloc(1, sizeof(coin__UxHead)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__UxHead(void * jarg1) { + coin__UxHead *arg1 = (coin__UxHead *) 0 ; + + arg1 = (coin__UxHead *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__UxBody_SrcTransaction_set(void * jarg1, void * jarg2) { + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + GoUint8_ *arg2 ; + + arg1 = (coin__UxBody *)jarg1; + arg2 = (GoUint8_ *)jarg2; + { + size_t ii; + GoUint8_ *b = (GoUint8_ *) arg1->SrcTransaction; + for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__UxBody_SrcTransaction_get(void * jarg1) { + void * jresult ; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + GoUint8_ *result = 0 ; + + arg1 = (coin__UxBody *)jarg1; + result = (GoUint8_ *) ((arg1)->SrcTransaction); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__UxBody_Address_set(void * jarg1, void * jarg2) { + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + + arg1 = (coin__UxBody *)jarg1; + arg2 = (cipher__Address *)jarg2; + if (arg1) (arg1)->Address = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__UxBody_Address_get(void * jarg1) { + void * jresult ; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + cipher__Address *result = 0 ; + + arg1 = (coin__UxBody *)jarg1; + result = (cipher__Address *)& ((arg1)->Address); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__UxBody_Coins_set(void * jarg1, void * jarg2) { + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + GoUint64_ arg2 ; + GoUint64_ *argp2 ; + + arg1 = (coin__UxBody *)jarg1; + argp2 = (GoUint64_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Coins = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__UxBody_Coins_get(void * jarg1) { + void * jresult ; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + GoUint64_ result; + + arg1 = (coin__UxBody *)jarg1; + result = ((arg1)->Coins); + { + GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); + memmove(resultptr, &result, sizeof(GoUint64_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__UxBody_Hours_set(void * jarg1, void * jarg2) { + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + GoUint64_ arg2 ; + GoUint64_ *argp2 ; + + arg1 = (coin__UxBody *)jarg1; + argp2 = (GoUint64_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Hours = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__UxBody_Hours_get(void * jarg1) { + void * jresult ; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + GoUint64_ result; + + arg1 = (coin__UxBody *)jarg1; + result = ((arg1)->Hours); + { + GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); + memmove(resultptr, &result, sizeof(GoUint64_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__UxBody() { + void * jresult ; + coin__UxBody *result = 0 ; + + result = (coin__UxBody *)calloc(1, sizeof(coin__UxBody)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__UxBody(void * jarg1) { + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + + arg1 = (coin__UxBody *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__UxOut_isEqual(void * jarg1, void * jarg2) { + int jresult ; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + coin__UxOut *arg2 = (coin__UxOut *) 0 ; + int result; + + arg1 = (coin__UxOut *)jarg1; + arg2 = (coin__UxOut *)jarg2; + result = (int)coin__UxOut_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__UxOut_Head_set(void * jarg1, void * jarg2) { + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + coin__UxHead *arg2 = (coin__UxHead *) 0 ; + + arg1 = (coin__UxOut *)jarg1; + arg2 = (coin__UxHead *)jarg2; + if (arg1) (arg1)->Head = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__UxOut_Head_get(void * jarg1) { + void * jresult ; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + coin__UxHead *result = 0 ; + + arg1 = (coin__UxOut *)jarg1; + result = (coin__UxHead *)& ((arg1)->Head); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__UxOut_Body_set(void * jarg1, void * jarg2) { + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + coin__UxBody *arg2 = (coin__UxBody *) 0 ; + + arg1 = (coin__UxOut *)jarg1; + arg2 = (coin__UxBody *)jarg2; + if (arg1) (arg1)->Body = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__UxOut_Body_get(void * jarg1) { + void * jresult ; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + coin__UxBody *result = 0 ; + + arg1 = (coin__UxOut *)jarg1; + result = (coin__UxBody *)& ((arg1)->Body); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__UxOut() { + void * jresult ; + coin__UxOut *result = 0 ; + + result = (coin__UxOut *)calloc(1, sizeof(coin__UxOut)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__UxOut(void * jarg1) { + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + + arg1 = (coin__UxOut *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Balance_Coins_set(void * jarg1, void * jarg2) { + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + GoUint64_ arg2 ; + GoUint64_ *argp2 ; + + arg1 = (wallet__Balance *)jarg1; + argp2 = (GoUint64_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Coins = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__Balance_Coins_get(void * jarg1) { + void * jresult ; + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + GoUint64_ result; + + arg1 = (wallet__Balance *)jarg1; + result = ((arg1)->Coins); + { + GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); + memmove(resultptr, &result, sizeof(GoUint64_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Balance_Hours_set(void * jarg1, void * jarg2) { + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + GoUint64_ arg2 ; + GoUint64_ *argp2 ; + + arg1 = (wallet__Balance *)jarg1; + argp2 = (GoUint64_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Hours = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__Balance_Hours_get(void * jarg1) { + void * jresult ; + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + GoUint64_ result; + + arg1 = (wallet__Balance *)jarg1; + result = ((arg1)->Hours); + { + GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); + memmove(resultptr, &result, sizeof(GoUint64_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_wallet__Balance() { + void * jresult ; + wallet__Balance *result = 0 ; + + result = (wallet__Balance *)calloc(1, sizeof(wallet__Balance)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__Balance(void * jarg1) { + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + + arg1 = (wallet__Balance *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__BalancePair_Confirmed_set(void * jarg1, void * jarg2) { + wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; + wallet__Balance *arg2 = (wallet__Balance *) 0 ; + + arg1 = (wallet__BalancePair *)jarg1; + arg2 = (wallet__Balance *)jarg2; + if (arg1) (arg1)->Confirmed = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__BalancePair_Confirmed_get(void * jarg1) { + void * jresult ; + wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; + wallet__Balance *result = 0 ; + + arg1 = (wallet__BalancePair *)jarg1; + result = (wallet__Balance *)& ((arg1)->Confirmed); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__BalancePair_Predicted_set(void * jarg1, void * jarg2) { + wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; + wallet__Balance *arg2 = (wallet__Balance *) 0 ; + + arg1 = (wallet__BalancePair *)jarg1; + arg2 = (wallet__Balance *)jarg2; + if (arg1) (arg1)->Predicted = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__BalancePair_Predicted_get(void * jarg1) { + void * jresult ; + wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; + wallet__Balance *result = 0 ; + + arg1 = (wallet__BalancePair *)jarg1; + result = (wallet__Balance *)& ((arg1)->Predicted); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_wallet__BalancePair() { + void * jresult ; + wallet__BalancePair *result = 0 ; + + result = (wallet__BalancePair *)calloc(1, sizeof(wallet__BalancePair)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__BalancePair(void * jarg1) { + wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; + + arg1 = (wallet__BalancePair *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Entry_Address_set(void * jarg1, void * jarg2) { + wallet__Entry *arg1 = (wallet__Entry *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + + arg1 = (wallet__Entry *)jarg1; + arg2 = (cipher__Address *)jarg2; + if (arg1) (arg1)->Address = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__Entry_Address_get(void * jarg1) { + void * jresult ; + wallet__Entry *arg1 = (wallet__Entry *) 0 ; + cipher__Address *result = 0 ; + + arg1 = (wallet__Entry *)jarg1; + result = (cipher__Address *)& ((arg1)->Address); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Entry_Public_set(void * jarg1, void * jarg2) { + wallet__Entry *arg1 = (wallet__Entry *) 0 ; + GoUint8_ *arg2 ; + + arg1 = (wallet__Entry *)jarg1; + arg2 = (GoUint8_ *)jarg2; + { + size_t ii; + GoUint8_ *b = (GoUint8_ *) arg1->Public; + for (ii = 0; ii < (size_t)33; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__Entry_Public_get(void * jarg1) { + void * jresult ; + wallet__Entry *arg1 = (wallet__Entry *) 0 ; + GoUint8_ *result = 0 ; + + arg1 = (wallet__Entry *)jarg1; + result = (GoUint8_ *) ((arg1)->Public); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Entry_Secret_set(void * jarg1, void * jarg2) { + wallet__Entry *arg1 = (wallet__Entry *) 0 ; + GoUint8_ *arg2 ; + + arg1 = (wallet__Entry *)jarg1; + arg2 = (GoUint8_ *)jarg2; + { + size_t ii; + GoUint8_ *b = (GoUint8_ *) arg1->Secret; + for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__Entry_Secret_get(void * jarg1) { + void * jresult ; + wallet__Entry *arg1 = (wallet__Entry *) 0 ; + GoUint8_ *result = 0 ; + + arg1 = (wallet__Entry *)jarg1; + result = (GoUint8_ *) ((arg1)->Secret); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_wallet__Entry() { + void * jresult ; + wallet__Entry *result = 0 ; + + result = (wallet__Entry *)calloc(1, sizeof(wallet__Entry)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__Entry(void * jarg1) { + wallet__Entry *arg1 = (wallet__Entry *) 0 ; + + arg1 = (wallet__Entry *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Note_TxID_set(void * jarg1, void * jarg2) { + wallet__Note *arg1 = (wallet__Note *) 0 ; + GoString_ arg2 ; + GoString_ *argp2 ; + + arg1 = (wallet__Note *)jarg1; + argp2 = (GoString_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->TxID = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__Note_TxID_get(void * jarg1) { + void * jresult ; + wallet__Note *arg1 = (wallet__Note *) 0 ; + GoString_ result; + + arg1 = (wallet__Note *)jarg1; + result = ((arg1)->TxID); + { + GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); + memmove(resultptr, &result, sizeof(GoString_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Note_Value_set(void * jarg1, void * jarg2) { + wallet__Note *arg1 = (wallet__Note *) 0 ; + GoString_ arg2 ; + GoString_ *argp2 ; + + arg1 = (wallet__Note *)jarg1; + argp2 = (GoString_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Value = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__Note_Value_get(void * jarg1) { + void * jresult ; + wallet__Note *arg1 = (wallet__Note *) 0 ; + GoString_ result; + + arg1 = (wallet__Note *)jarg1; + result = ((arg1)->Value); + { + GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); + memmove(resultptr, &result, sizeof(GoString_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_wallet__Note() { + void * jresult ; + wallet__Note *result = 0 ; + + result = (wallet__Note *)calloc(1, sizeof(wallet__Note)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__Note(void * jarg1) { + wallet__Note *arg1 = (wallet__Note *) 0 ; + + arg1 = (wallet__Note *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__ReadableNote_TransactionID_set(void * jarg1, void * jarg2) { + wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; + GoString_ arg2 ; + GoString_ *argp2 ; + + arg1 = (wallet__ReadableNote *)jarg1; + argp2 = (GoString_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->TransactionID = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__ReadableNote_TransactionID_get(void * jarg1) { + void * jresult ; + wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; + GoString_ result; + + arg1 = (wallet__ReadableNote *)jarg1; + result = ((arg1)->TransactionID); + { + GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); + memmove(resultptr, &result, sizeof(GoString_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__ReadableNote_ActualNote_set(void * jarg1, void * jarg2) { + wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; + GoString_ arg2 ; + GoString_ *argp2 ; + + arg1 = (wallet__ReadableNote *)jarg1; + argp2 = (GoString_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->ActualNote = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__ReadableNote_ActualNote_get(void * jarg1) { + void * jresult ; + wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; + GoString_ result; + + arg1 = (wallet__ReadableNote *)jarg1; + result = ((arg1)->ActualNote); + { + GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); + memmove(resultptr, &result, sizeof(GoString_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_wallet__ReadableNote() { + void * jresult ; + wallet__ReadableNote *result = 0 ; + + result = (wallet__ReadableNote *)calloc(1, sizeof(wallet__ReadableNote)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__ReadableNote(void * jarg1) { + wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; + + arg1 = (wallet__ReadableNote *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Wallet_Meta_set(void * jarg1, void * jarg2) { + wallet__Wallet *arg1 = (wallet__Wallet *) 0 ; + GoMap_ arg2 ; + GoMap_ *argp2 ; + + arg1 = (wallet__Wallet *)jarg1; + argp2 = (GoMap_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoMap_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Meta = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__Wallet_Meta_get(void * jarg1) { + void * jresult ; + wallet__Wallet *arg1 = (wallet__Wallet *) 0 ; + GoMap_ result; + + arg1 = (wallet__Wallet *)jarg1; + result = ((arg1)->Meta); + { + GoMap_ * resultptr = (GoMap_ *) malloc(sizeof(GoMap_)); + memmove(resultptr, &result, sizeof(GoMap_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Wallet_Entries_set(void * jarg1, void * jarg2) { + wallet__Wallet *arg1 = (wallet__Wallet *) 0 ; + GoSlice_ arg2 ; + GoSlice_ *argp2 ; + + arg1 = (wallet__Wallet *)jarg1; + argp2 = (GoSlice_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Entries = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__Wallet_Entries_get(void * jarg1) { + void * jresult ; + wallet__Wallet *arg1 = (wallet__Wallet *) 0 ; + GoSlice_ result; + + arg1 = (wallet__Wallet *)jarg1; + result = ((arg1)->Entries); + { + GoSlice_ * resultptr = (GoSlice_ *) malloc(sizeof(GoSlice_)); + memmove(resultptr, &result, sizeof(GoSlice_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_wallet__Wallet() { + void * jresult ; + wallet__Wallet *result = 0 ; + + result = (wallet__Wallet *)calloc(1, sizeof(wallet__Wallet)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__Wallet(void * jarg1) { + wallet__Wallet *arg1 = (wallet__Wallet *) 0 ; + + arg1 = (wallet__Wallet *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_Hash_set(void * jarg1, void * jarg2) { + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + GoUint8_ *arg2 ; + + arg1 = (wallet__UxBalance *)jarg1; + arg2 = (GoUint8_ *)jarg2; + { + size_t ii; + GoUint8_ *b = (GoUint8_ *) arg1->Hash; + for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_Hash_get(void * jarg1) { + void * jresult ; + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + GoUint8_ *result = 0 ; + + arg1 = (wallet__UxBalance *)jarg1; + result = (GoUint8_ *) ((arg1)->Hash); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_BkSeq_set(void * jarg1, void * jarg2) { + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + GoInt64_ arg2 ; + GoInt64_ *argp2 ; + + arg1 = (wallet__UxBalance *)jarg1; + argp2 = (GoInt64_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt64_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->BkSeq = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_BkSeq_get(void * jarg1) { + void * jresult ; + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + GoInt64_ result; + + arg1 = (wallet__UxBalance *)jarg1; + result = ((arg1)->BkSeq); + { + GoInt64_ * resultptr = (GoInt64_ *) malloc(sizeof(GoInt64_)); + memmove(resultptr, &result, sizeof(GoInt64_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_Address_set(void * jarg1, void * jarg2) { + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + + arg1 = (wallet__UxBalance *)jarg1; + arg2 = (cipher__Address *)jarg2; + if (arg1) (arg1)->Address = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_Address_get(void * jarg1) { + void * jresult ; + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + cipher__Address *result = 0 ; + + arg1 = (wallet__UxBalance *)jarg1; + result = (cipher__Address *)& ((arg1)->Address); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_Coins_set(void * jarg1, void * jarg2) { + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + GoInt64_ arg2 ; + GoInt64_ *argp2 ; + + arg1 = (wallet__UxBalance *)jarg1; + argp2 = (GoInt64_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt64_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Coins = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_Coins_get(void * jarg1) { + void * jresult ; + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + GoInt64_ result; + + arg1 = (wallet__UxBalance *)jarg1; + result = ((arg1)->Coins); + { + GoInt64_ * resultptr = (GoInt64_ *) malloc(sizeof(GoInt64_)); + memmove(resultptr, &result, sizeof(GoInt64_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_Hours_set(void * jarg1, void * jarg2) { + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + GoInt64_ arg2 ; + GoInt64_ *argp2 ; + + arg1 = (wallet__UxBalance *)jarg1; + argp2 = (GoInt64_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt64_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Hours = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_Hours_get(void * jarg1) { + void * jresult ; + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + GoInt64_ result; + + arg1 = (wallet__UxBalance *)jarg1; + result = ((arg1)->Hours); + { + GoInt64_ * resultptr = (GoInt64_ *) malloc(sizeof(GoInt64_)); + memmove(resultptr, &result, sizeof(GoInt64_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_wallet__UxBalance() { + void * jresult ; + wallet__UxBalance *result = 0 ; + + result = (wallet__UxBalance *)calloc(1, sizeof(wallet__UxBalance)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__UxBalance(void * jarg1) { + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + + arg1 = (wallet__UxBalance *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_api__RichlistParams_N_set(void * jarg1, void * jarg2) { + api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; + GoInt_ arg2 ; + GoInt_ *argp2 ; + + arg1 = (api__RichlistParams *)jarg1; + argp2 = (GoInt_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->N = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_api__RichlistParams_N_get(void * jarg1) { + void * jresult ; + api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; + GoInt_ result; + + arg1 = (api__RichlistParams *)jarg1; + result = ((arg1)->N); + { + GoInt_ * resultptr = (GoInt_ *) malloc(sizeof(GoInt_)); + memmove(resultptr, &result, sizeof(GoInt_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_api__RichlistParams_IncludeDistribution_set(void * jarg1, void * jarg2) { + api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; + BOOL arg2 ; + BOOL *argp2 ; + + arg1 = (api__RichlistParams *)jarg1; + argp2 = (BOOL *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null BOOL", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->IncludeDistribution = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_api__RichlistParams_IncludeDistribution_get(void * jarg1) { + void * jresult ; + api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; + BOOL result; + + arg1 = (api__RichlistParams *)jarg1; + result = ((arg1)->IncludeDistribution); + { + BOOL * resultptr = (BOOL *) malloc(sizeof(BOOL)); + memmove(resultptr, &result, sizeof(BOOL)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_api__RichlistParams() { + void * jresult ; + api__RichlistParams *result = 0 ; + + result = (api__RichlistParams *)calloc(1, sizeof(api__RichlistParams)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_api__RichlistParams(void * jarg1) { + api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; + + arg1 = (api__RichlistParams *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cli__SendAmount_Addr_set(void * jarg1, void * jarg2) { + cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; + GoString_ arg2 ; + GoString_ *argp2 ; + + arg1 = (cli__SendAmount *)jarg1; + argp2 = (GoString_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Addr = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cli__SendAmount_Addr_get(void * jarg1) { + void * jresult ; + cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; + GoString_ result; + + arg1 = (cli__SendAmount *)jarg1; + result = ((arg1)->Addr); + { + GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); + memmove(resultptr, &result, sizeof(GoString_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cli__SendAmount_Coins_set(void * jarg1, void * jarg2) { + cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; + GoInt64_ arg2 ; + GoInt64_ *argp2 ; + + arg1 = (cli__SendAmount *)jarg1; + argp2 = (GoInt64_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt64_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Coins = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cli__SendAmount_Coins_get(void * jarg1) { + void * jresult ; + cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; + GoInt64_ result; + + arg1 = (cli__SendAmount *)jarg1; + result = ((arg1)->Coins); + { + GoInt64_ * resultptr = (GoInt64_ *) malloc(sizeof(GoInt64_)); + memmove(resultptr, &result, sizeof(GoInt64_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cli__SendAmount() { + void * jresult ; + cli__SendAmount *result = 0 ; + + result = (cli__SendAmount *)calloc(1, sizeof(cli__SendAmount)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cli__SendAmount(void * jarg1) { + cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; + + arg1 = (cli__SendAmount *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_httphelper__Address__unnamed_set(void * jarg1, void * jarg2) { + httphelper__Address *arg1 = (httphelper__Address *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + + arg1 = (httphelper__Address *)jarg1; + arg2 = (cipher__Address *)jarg2; + if (arg1) (arg1)->_unnamed = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_httphelper__Address__unnamed_get(void * jarg1) { + void * jresult ; + httphelper__Address *arg1 = (httphelper__Address *) 0 ; + cipher__Address *result = 0 ; + + arg1 = (httphelper__Address *)jarg1; + result = (cipher__Address *)& ((arg1)->_unnamed); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_httphelper__Address() { + void * jresult ; + httphelper__Address *result = 0 ; + + result = (httphelper__Address *)calloc(1, sizeof(httphelper__Address)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_httphelper__Address(void * jarg1) { + httphelper__Address *arg1 = (httphelper__Address *) 0 ; + + arg1 = (httphelper__Address *)jarg1; + free((char *) arg1); +} + + +#ifdef __cplusplus +} +#endif + diff --git a/LibskycoinNet/skycoin/wallet__Balance.cs b/LibskycoinNet/skycoin/wallet__Balance.cs new file mode 100644 index 00000000..a5b5d0bb --- /dev/null +++ b/LibskycoinNet/skycoin/wallet__Balance.cs @@ -0,0 +1,72 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class wallet__Balance : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal wallet__Balance(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(wallet__Balance obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~wallet__Balance() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_wallet__Balance(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_GoUint64_ Coins { + set { + skycoinPINVOKE.wallet__Balance_Coins_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.wallet__Balance_Coins_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoUint64_ Hours { + set { + skycoinPINVOKE.wallet__Balance_Hours_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.wallet__Balance_Hours_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public wallet__Balance() : this(skycoinPINVOKE.new_wallet__Balance(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/wallet__BalancePair.cs b/LibskycoinNet/skycoin/wallet__BalancePair.cs new file mode 100644 index 00000000..98834e3d --- /dev/null +++ b/LibskycoinNet/skycoin/wallet__BalancePair.cs @@ -0,0 +1,70 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class wallet__BalancePair : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal wallet__BalancePair(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(wallet__BalancePair obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~wallet__BalancePair() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_wallet__BalancePair(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public wallet__Balance Confirmed { + set { + skycoinPINVOKE.wallet__BalancePair_Confirmed_set(swigCPtr, wallet__Balance.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.wallet__BalancePair_Confirmed_get(swigCPtr); + wallet__Balance ret = (cPtr == global::System.IntPtr.Zero) ? null : new wallet__Balance(cPtr, false); + return ret; + } + } + + public wallet__Balance Predicted { + set { + skycoinPINVOKE.wallet__BalancePair_Predicted_set(swigCPtr, wallet__Balance.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.wallet__BalancePair_Predicted_get(swigCPtr); + wallet__Balance ret = (cPtr == global::System.IntPtr.Zero) ? null : new wallet__Balance(cPtr, false); + return ret; + } + } + + public wallet__BalancePair() : this(skycoinPINVOKE.new_wallet__BalancePair(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/wallet__Entry.cs b/LibskycoinNet/skycoin/wallet__Entry.cs new file mode 100644 index 00000000..6431c810 --- /dev/null +++ b/LibskycoinNet/skycoin/wallet__Entry.cs @@ -0,0 +1,81 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class wallet__Entry : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal wallet__Entry(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(wallet__Entry obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~wallet__Entry() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_wallet__Entry(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public cipher__Address Address { + set { + skycoinPINVOKE.wallet__Entry_Address_set(swigCPtr, cipher__Address.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.wallet__Entry_Address_get(swigCPtr); + cipher__Address ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher__Address(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_GoUint8_ Public { + set { + skycoinPINVOKE.wallet__Entry_Public_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.wallet__Entry_Public_get(swigCPtr); + SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_GoUint8_ Secret { + set { + skycoinPINVOKE.wallet__Entry_Secret_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.wallet__Entry_Secret_get(swigCPtr); + SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); + return ret; + } + } + + public wallet__Entry() : this(skycoinPINVOKE.new_wallet__Entry(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/wallet__Note.cs b/LibskycoinNet/skycoin/wallet__Note.cs new file mode 100644 index 00000000..35f5853b --- /dev/null +++ b/LibskycoinNet/skycoin/wallet__Note.cs @@ -0,0 +1,72 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class wallet__Note : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal wallet__Note(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(wallet__Note obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~wallet__Note() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_wallet__Note(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_GoString_ TxID { + set { + skycoinPINVOKE.wallet__Note_TxID_set(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.wallet__Note_TxID_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoString_ Value { + set { + skycoinPINVOKE.wallet__Note_Value_set(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.wallet__Note_Value_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public wallet__Note() : this(skycoinPINVOKE.new_wallet__Note(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/wallet__ReadableNote.cs b/LibskycoinNet/skycoin/wallet__ReadableNote.cs new file mode 100644 index 00000000..62e0d103 --- /dev/null +++ b/LibskycoinNet/skycoin/wallet__ReadableNote.cs @@ -0,0 +1,72 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class wallet__ReadableNote : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal wallet__ReadableNote(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(wallet__ReadableNote obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~wallet__ReadableNote() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_wallet__ReadableNote(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_GoString_ TransactionID { + set { + skycoinPINVOKE.wallet__ReadableNote_TransactionID_set(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.wallet__ReadableNote_TransactionID_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoString_ ActualNote { + set { + skycoinPINVOKE.wallet__ReadableNote_ActualNote_set(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.wallet__ReadableNote_ActualNote_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public wallet__ReadableNote() : this(skycoinPINVOKE.new_wallet__ReadableNote(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/wallet__UxBalance.cs b/LibskycoinNet/skycoin/wallet__UxBalance.cs new file mode 100644 index 00000000..478a94bc --- /dev/null +++ b/LibskycoinNet/skycoin/wallet__UxBalance.cs @@ -0,0 +1,106 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class wallet__UxBalance : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal wallet__UxBalance(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(wallet__UxBalance obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~wallet__UxBalance() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_wallet__UxBalance(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_GoUint8_ Hash { + set { + skycoinPINVOKE.wallet__UxBalance_Hash_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.wallet__UxBalance_Hash_get(swigCPtr); + SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_GoInt64_ BkSeq { + set { + skycoinPINVOKE.wallet__UxBalance_BkSeq_set(swigCPtr, SWIGTYPE_p_GoInt64_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoInt64_ ret = new SWIGTYPE_p_GoInt64_(skycoinPINVOKE.wallet__UxBalance_BkSeq_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public cipher__Address Address { + set { + skycoinPINVOKE.wallet__UxBalance_Address_set(swigCPtr, cipher__Address.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.wallet__UxBalance_Address_get(swigCPtr); + cipher__Address ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher__Address(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_GoInt64_ Coins { + set { + skycoinPINVOKE.wallet__UxBalance_Coins_set(swigCPtr, SWIGTYPE_p_GoInt64_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoInt64_ ret = new SWIGTYPE_p_GoInt64_(skycoinPINVOKE.wallet__UxBalance_Coins_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoInt64_ Hours { + set { + skycoinPINVOKE.wallet__UxBalance_Hours_set(swigCPtr, SWIGTYPE_p_GoInt64_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoInt64_ ret = new SWIGTYPE_p_GoInt64_(skycoinPINVOKE.wallet__UxBalance_Hours_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public wallet__UxBalance() : this(skycoinPINVOKE.new_wallet__UxBalance(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/wallet__Wallet.cs b/LibskycoinNet/skycoin/wallet__Wallet.cs new file mode 100644 index 00000000..ba19252a --- /dev/null +++ b/LibskycoinNet/skycoin/wallet__Wallet.cs @@ -0,0 +1,72 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class wallet__Wallet : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal wallet__Wallet(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(wallet__Wallet obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~wallet__Wallet() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_wallet__Wallet(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_GoMap_ Meta { + set { + skycoinPINVOKE.wallet__Wallet_Meta_set(swigCPtr, SWIGTYPE_p_GoMap_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoMap_ ret = new SWIGTYPE_p_GoMap_(skycoinPINVOKE.wallet__Wallet_Meta_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoSlice_ Entries { + set { + skycoinPINVOKE.wallet__Wallet_Entries_set(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.wallet__Wallet_Entries_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public wallet__Wallet() : this(skycoinPINVOKE.new_wallet__Wallet(), true) { + } + +} + +} diff --git a/LibskycoinNetTest/LibskycoinNetTest.cs b/LibskycoinNetTest/LibskycoinNetTest.cs index 5f634c37..676eb618 100644 --- a/LibskycoinNetTest/LibskycoinNetTest.cs +++ b/LibskycoinNetTest/LibskycoinNetTest.cs @@ -1,6 +1,7 @@ using System; -using LibskycoinNet; +using skycoin; using NUnit.Framework; +using System.IO; namespace LibskycoinNetTest { @@ -13,9 +14,10 @@ public LibskycoinNetTest() [Test] public void SumTest(){ - var sky = new Skycoin(); - var r = sky.Sum(2, 3); - Assert.AreEqual(r, 5); + var xyz = new skycoin.secp256k1go__XYZ(); + var xy = new skycoin.secp256k1go__XY(); + uint error = skycoin.skycoin.SKY_secp256k1go_XYZ_SetXY(xyz, xy); + Assert.AreEqual(error, 0); } } diff --git a/Makefile b/Makefile index 9707b8e3..96c0ed0a 100644 --- a/Makefile +++ b/Makefile @@ -35,7 +35,7 @@ build-swig: rm -f $(LIBSWIG_DIR)/structs.i cp $(INCLUDE_DIR)/skytypes.gen.h $(LIBSWIG_DIR)/structs.i #sed -i 's/#/%/g' $(LIBSWIG_DIR)/structs.i - { \ +t { \ if [[ "$$(uname -s)" == "Darwin" ]]; then \ sed -i '.kbk' 's/#/%/g' $(LIBSWIG_DIR)/structs.i ;\ else \ @@ -43,9 +43,10 @@ build-swig: fi \ } mkdir -p ./LibskycoinNet/skycoin - swig -csharp -Iswig/include -I$(INCLUDE_DIR) -outdir LibskycoinNet/skycoin -o LibskycoinNet/skycoin/skycoinnet_wrap.c $(LIBSWIG_DIR)/skycoin.i + swig -csharp -namespace skycoin -Iswig/include -I$(INCLUDE_DIR) -outdir LibskycoinNet/skycoin -o LibskycoinNet/skycoin/skycoinnet_wrap.c $(LIBSWIG_DIR)/skycoin.i build-libskycoin-net: gcc -c -fpic -ILibskycoinNet/swig/include -I$(INCLUDE_DIR) LibskycoinNet/skycoin/skycoinnet_wrap.c - gcc -shared skycoinnet_wrap.o $(BUILDLIBC_DIR)/libskycoin.a -o skycoin.so - mono-csc -out:skycoin_net.exe LibskycoinNet/skycoin/*.cs + gcc -shared skycoinnet_wrap.o $(BUILDLIBC_DIR)/libskycoin.a -o libskycoin.so + mv libskycoin.so LibskycoinNetTest/bin/Release + #mono-csc -out:skycoin_net.exe LibskycoinNet/skycoin/*.cs diff --git a/swig/include/libskycoin.h b/swig/include/libskycoin.h new file mode 100644 index 00000000..445533d7 --- /dev/null +++ b/swig/include/libskycoin.h @@ -0,0 +1,1623 @@ +/* Created by "go tool cgo" - DO NOT EDIT. */ + +/* package command-line-arguments */ + + +#line 1 "cgo-builtin-prolog" + +#include /* for ptrdiff_t below */ + +#ifndef GO_CGO_EXPORT_PROLOGUE_H +#define GO_CGO_EXPORT_PROLOGUE_H + +typedef struct { const char *p; ptrdiff_t n; } _GoString_; + +#endif + +/* Start of preamble from import "C" comments. */ + + +#line 10 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.base58.base58.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 9 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet.readable.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 7 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli.outputs.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 9 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.secp256k1-go.secp256k1-go2.field.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 5 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/api.wallet.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 10 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.crypto.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 10 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.secp256k1-go.secp256k1-go2.ec.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 5 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.file.file.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 10 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.secp256k1-go.secp256_rand.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 12 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/api.spend.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 5 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.browser.browser.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 10 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.address.go" + + +#include +#include +#include "skytypes.h" + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 9 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/testutil.testutil.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 12 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli.create_rawtx.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 5 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.apputil.apputil.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 5 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.utc.utc.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 10 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.http.json.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 9 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli.check_balance.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 9 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.poly1305.poly1305.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 9 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/api.client.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 3 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/libsky_handle_helper.go" + + + #include + #include + + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 10 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.secp256k1-go.secp256k1.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 5 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.cert.cert.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 10 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.fee.fee.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 5 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.iputil.iputil.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 10 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.hash.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 12 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/coin.transactions.go" + + + #include + #include + + #include "skytypes.h" + #include "feecalc.h" + +#line 1 "cgo-generated-wrapper" + +#line 10 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.encrypt.sha256xor.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 11 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli.generate_addrs.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 11 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli.cli.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 3 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/libsky_handle.go" + + + #include + #include + + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 9 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.encoder.field.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 11 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/coin.outputs.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 10 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.scrypt.scrypt.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 12 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet.wallet.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 7 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli.add_private_key.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 9 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli_helper.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 10 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/api.webrpc.client.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 5 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.droplet.droplet.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 10 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.go-bip39.bip39.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 9 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.secp256k1-go.secp256k1-go2.xyz.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 9 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet.notes.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 10 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.encrypt.scrypt_chacha20poly1305.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 5 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/coin.math.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 10 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet.balance.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 10 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.ripemd160.ripemd160.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 12 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/coin.block.go" + + + #include + #include + + #include "skytypes.h" + #include "feecalc.h" + +#line 1 "cgo-generated-wrapper" + +#line 10 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet.addresses.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 3 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/libsky_map.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 5 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.logging.logging.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 7 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli.generate_wallet.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 10 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.secp256k1-go.secp256k1-go2.sig.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 9 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.secp256k1-go.secp256k1-go2.num.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 7 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet_option.go" + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 10 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.secp256k1-go.secp256k1-go2.xy.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 9 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet.entry.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + +#line 7 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet.crypto.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + + +/* End of preamble from import "C" comments. */ + + +/* Start of boilerplate cgo prologue. */ +#line 1 "cgo-gcc-export-header-prolog" + +#ifndef GO_CGO_PROLOGUE_H +#define GO_CGO_PROLOGUE_H + +typedef signed char GoInt8; +typedef unsigned char GoUint8; +typedef short GoInt16; +typedef unsigned short GoUint16; +typedef int GoInt32; +typedef unsigned int GoUint32; +typedef long long GoInt64; +typedef unsigned long long GoUint64; +typedef GoInt64 GoInt; +typedef GoUint64 GoUint; +typedef __SIZE_TYPE__ GoUintptr; +typedef float GoFloat32; +typedef double GoFloat64; + +/* + static assertion to make sure the file is being used on architecture + at least with matching size of GoInt. +*/ +typedef char _check_for_64_bit_pointer_matching_GoInt[sizeof(void*)==64/8 ? 1:-1]; + +typedef _GoString_ GoString; +typedef void *GoMap; +typedef void *GoChan; +typedef struct { void *t; void *v; } GoInterface; +typedef struct { void *data; GoInt len; GoInt cap; } GoSlice; + +#endif + +/* End of boilerplate cgo prologue. */ + +#ifdef __cplusplus +extern "C" { +#endif + + +extern GoUint32 SKY_base58_String2Hex(GoString p0, coin__UxArray* p1); + +extern GoUint32 SKY_base58_Base58_ToInt(GoString p0, GoInt* p1); + +extern GoUint32 SKY_base58_Base58_ToHex(GoString p0, coin__UxArray* p1); + +extern GoUint32 SKY_base58_Base58_Base582Int(GoString p0, GoInt* p1); + +extern GoUint32 SKY_base58_Base582Hex(GoString p0, coin__UxArray* p1); + +extern GoUint32 SKY_base58_Base58_BitHex(GoString p0, coin__UxArray* p1); + +extern GoUint32 SKY_base58_Int2Base58(GoInt p0, GoString_* p1); + +extern GoUint32 SKY_base58_Hex2Base58(GoSlice p0, GoString_* p1); + +extern GoUint32 SKY_base58_Hex2Base58String(GoSlice p0, GoString_* p1); + +extern GoUint32 SKY_base58_Hex2Base58Str(GoSlice p0, GoString_* p1); + +extern GoUint32 SKY_wallet_NewReadableEntry(wallet__Entry* p0, ReadableEntry__Handle* p1); + +extern GoUint32 SKY_wallet_LoadReadableEntry(GoString p0, ReadableEntry__Handle* p1); + +extern GoUint32 SKY_wallet_NewReadableEntryFromPubkey(GoString p0, ReadableEntry__Handle* p1); + +extern GoUint32 SKY_wallet_ReadableEntry_Save(ReadableEntry__Handle p0, GoString p1); + +extern GoUint32 SKY_wallet_LoadReadableWallet(GoString p0, ReadableWallet__Handle* p1); + +extern GoUint32 SKY_wallet_ReadableWallet_Save(ReadableWallet__Handle p0, GoString p1); + +extern GoUint32 SKY_wallet_ReadableWallet_Load(ReadableWallet__Handle p0, GoString p1); + +extern GoUint32 SKY_wallet_ReadableWallet_Erase(ReadableWallet__Handle p0); + +extern GoUint32 SKY_cli_GetWalletOutputsFromFile(WebRpcClient__Handle p0, GoString p1, OutputsResult_Handle* p2); + +extern GoUint32 SKY_cli_GetWalletOutputs(WebRpcClient__Handle p0, Wallet__Handle* p1, OutputsResult_Handle* p2); + +extern GoUint32 SKY_secp256k1go_Field_String(secp256k1go__Field* p0, GoString_* p1); + +extern GoUint32 SKY_secp256k1go_Field_Print(secp256k1go__Field* p0, GoString p1); + +extern GoUint32 SKY_secp256k1go_Field_SetB32(secp256k1go__Field* p0, GoSlice p1); + +extern GoUint32 SKY_secp256k1go_Field_SetBytes(secp256k1go__Field* p0, GoSlice p1); + +extern GoUint32 SKY_secp256k1go_Field_SetHex(secp256k1go__Field* p0, GoString p1); + +extern GoUint32 SKY_secp256k1go_Field_IsOdd(secp256k1go__Field* p0, GoUint8* p1); + +extern GoUint32 SKY_secp256k1go_Field_IsZero(secp256k1go__Field* p0, GoUint8* p1); + +extern GoUint32 SKY_secp256k1go_Field_SetInt(secp256k1go__Field* p0, GoUint32 p1); + +extern GoUint32 SKY_secp256k1go_Field_Normalize(secp256k1go__Field* p0); + +extern GoUint32 SKY_secp256k1go_Field_GetB32(secp256k1go__Field* p0, GoSlice p1); + +extern GoUint32 SKY_secp256k1go_Field_Equals(secp256k1go__Field* p0, secp256k1go__Field* p1, GoUint8* p2); + +extern GoUint32 SKY_secp256k1go_Field_SetAdd(secp256k1go__Field* p0, secp256k1go__Field* p1); + +extern GoUint32 SKY_secp256k1go_Field_MulInt(secp256k1go__Field* p0, GoUint32 p1); + +extern GoUint32 SKY_secp256k1go_Field_Negate(secp256k1go__Field* p0, secp256k1go__Field* p1, GoUint32 p2); + +extern GoUint32 SKY_secp256k1go_Field_Inv(secp256k1go__Field* p0, secp256k1go__Field* p1); + +extern GoUint32 SKY_secp256k1go_Field_Sqrt(secp256k1go__Field* p0, secp256k1go__Field* p1); + +extern GoUint32 SKY_secp256k1go_Field_InvVar(secp256k1go__Field* p0, secp256k1go__Field* p1); + +extern GoUint32 SKY_secp256k1go_Field_Mul(secp256k1go__Field* p0, secp256k1go__Field* p1, secp256k1go__Field* p2); + +extern GoUint32 SKY_secp256k1go_Field_Sqr(secp256k1go__Field* p0, secp256k1go__Field* p1); + +extern GoUint32 SKY_api_NewWalletResponse(Wallet__Handle p0, WalletResponse__Handle* p1); + +extern GoInt SKY_cipher_PubKeySlice_Len(coin__UxArray* p0); + +extern GoUint8 SKY_cipher_PubKeySlice_Less(coin__UxArray* p0, GoInt p1, GoInt p2); + +extern GoUint32 SKY_cipher_PubKeySlice_Swap(coin__UxArray* p0, GoInt p1, GoInt p2); + +extern GoUint32 SKY_cipher_RandByte(GoInt p0, coin__UxArray* p1); + +extern GoUint32 SKY_cipher_NewPubKey(GoSlice p0, cipher__PubKey* p1); + +extern GoUint32 SKY_cipher_MustPubKeyFromHex(GoString p0, cipher__PubKey* p1); + +extern GoUint32 SKY_cipher_PubKeyFromHex(GoString p0, cipher__PubKey* p1); + +extern GoUint32 SKY_cipher_PubKeyFromSecKey(cipher__SecKey* p0, cipher__PubKey* p1); + +extern GoUint32 SKY_cipher_PubKeyFromSig(cipher__Sig* p0, cipher__SHA256* p1, cipher__PubKey* p2); + +extern GoUint32 SKY_cipher_PubKey_Verify(cipher__PubKey* p0); + +extern GoUint32 SKY_cipher_PubKey_Hex(cipher__PubKey* p0, GoString_* p1); + +extern GoUint32 SKY_cipher_PubKey_ToAddressHash(cipher__PubKey* p0, cipher__Ripemd160* p1); + +extern GoUint32 SKY_cipher_NewSecKey(GoSlice p0, cipher__SecKey* p1); + +extern GoUint32 SKY_cipher_MustSecKeyFromHex(GoString p0, cipher__SecKey* p1); + +extern GoUint32 SKY_cipher_SecKeyFromHex(GoString p0, cipher__SecKey* p1); + +extern GoUint32 SKY_cipher_SecKey_Verify(cipher__SecKey* p0); + +extern GoUint32 SKY_cipher_SecKey_Hex(cipher__SecKey* p0, GoString_* p1); + +extern GoUint32 SKY_cipher_ECDH(cipher__PubKey* p0, cipher__SecKey* p1, coin__UxArray* p2); + +extern GoUint32 SKY_cipher_NewSig(GoSlice p0, cipher__Sig* p1); + +extern GoUint32 SKY_cipher_MustSigFromHex(GoString p0, cipher__Sig* p1); + +extern GoUint32 SKY_cipher_SigFromHex(GoString p0, cipher__Sig* p1); + +extern GoUint32 SKY_cipher_Sig_Hex(cipher__Sig* p0, GoString_* p1); + +extern GoUint32 SKY_cipher_SignHash(cipher__SHA256* p0, cipher__SecKey* p1, cipher__Sig* p2); + +extern GoUint32 SKY_cipher_ChkSig(cipher__Address* p0, cipher__SHA256* p1, cipher__Sig* p2); + +extern GoUint32 SKY_cipher_VerifySignedHash(cipher__Sig* p0, cipher__SHA256* p1); + +extern GoUint32 SKY_cipher_VerifySignature(cipher__PubKey* p0, cipher__Sig* p1, cipher__SHA256* p2); + +extern GoUint32 SKY_cipher_GenerateKeyPair(cipher__PubKey* p0, cipher__SecKey* p1); + +extern GoUint32 SKY_cipher_GenerateDeterministicKeyPair(GoSlice p0, cipher__PubKey* p1, cipher__SecKey* p2); + +extern GoUint32 SKY_cipher_DeterministicKeyPairIterator(GoSlice p0, coin__UxArray* p1, cipher__PubKey* p2, cipher__SecKey* p3); + +extern GoUint32 SKY_cipher_GenerateDeterministicKeyPairs(GoSlice p0, GoInt p1, coin__UxArray* p2); + +extern GoUint32 SKY_cipher_GenerateDeterministicKeyPairsSeed(GoSlice p0, GoInt p1, coin__UxArray* p2, coin__UxArray* p3); + +extern GoUint32 SKY_cipher_TestSecKey(cipher__SecKey* p0); + +extern GoUint32 SKY_cipher_TestSecKeyHash(cipher__SecKey* p0, cipher__SHA256* p1); + +extern GoUint32 SKY_secp256k1go_DecompressPoint(GoSlice p0, GoUint8 p1, GoSlice p2); + +extern GoUint32 SKY_secp256k1go_RecoverPublicKey(GoSlice p0, GoSlice p1, GoInt p2, coin__UxArray* p3, GoInt* p4); + +extern GoUint32 SKY_secp256k1go_Multiply(GoSlice p0, GoSlice p1, coin__UxArray* p2); + +extern GoUint32 SKY_secp256k1go_BaseMultiply(GoSlice p0, coin__UxArray* p1); + +extern GoUint32 SKY_secp256k1go_BaseMultiplyAdd(GoSlice p0, GoSlice p1, coin__UxArray* p2); + +extern GoUint32 SKY_secp256k1go_GeneratePublicKey(GoSlice p0, coin__UxArray* p1); + +extern GoUint32 SKY_secp256k1go_SeckeyIsValid(GoSlice p0, GoInt* p1); + +extern GoUint32 SKY_secp256k1go_PubkeyIsValid(GoSlice p0, GoInt* p1); + +extern GoUint32 SKY_file_InitDataDir(GoString p0, GoString_* p1); + +extern GoUint32 SKY_file_UserHome(GoString_* p0); + +extern GoUint32 SKY_file_ResolveResourceDirectory(GoString p0, GoString_* p1); + +extern GoUint32 SKY_file_DetermineResourcePath(GoString p0, GoString p1, GoString p2, GoString_* p3); + +extern GoUint32 SKY_secp256k1_SumSHA256(GoSlice p0, coin__UxArray* p1); + +extern GoUint32 SKY_secp256k1_RandByte(GoInt p0, coin__UxArray* p1); + +extern GoUint32 SKY_api_NewCreateTransactionResponse(Transaction__Handle p0, GoSlice p1, CreateTransactionResponse__Handle* p2); + +extern GoUint32 SKY_api_NewCreatedTransaction(Transaction__Handle p0, GoSlice p1, CreatedTransaction__Handle* p2); + +extern GoUint32 SKY_api_CreatedTransaction_ToTransaction(CreatedTransaction__Handle p0, Transaction__Handle* p1); + +extern GoUint32 SKY_api_NewCreatedTransactionOutput(coin__TransactionOutput* p0, cipher__SHA256* p1, CreatedTransactionOutput__Handle* p2); + +extern GoUint32 SKY_api_NewCreatedTransactionInput(wallet__UxBalance* p0, CreatedTransactionInput__Handle* p1); + +extern GoUint32 SKY_browser_Open(GoString p0); + +extern GoUint32 SKY_cipher_DecodeBase58Address(GoString p0, cipher__Address* p1); + +extern GoUint32 SKY_cipher_MustDecodeBase58Address(GoString p0, cipher__Address* p1); + +extern GoUint32 SKY_cipher_BitcoinMustDecodeBase58Address(GoString p0, cipher__Address* p1); + +extern GoUint32 SKY_cipher_AddressFromBytes(GoSlice p0, cipher__Address* p1); + +extern GoUint32 SKY_cipher_AddressFromPubKey(cipher__PubKey* p0, cipher__Address* p1); + +extern GoUint32 SKY_cipher_AddressFromSecKey(cipher__SecKey* p0, cipher__Address* p1); + +extern GoUint32 SKY_cipher_BitcoinDecodeBase58Address(GoString p0, cipher__Address* p1); + +extern GoUint32 SKY_cipher_MustAddressFromBytes(GoSlice p0, cipher__Address* p1); + +extern GoUint32 SKY_cipher_Address_Bytes(cipher__Address* p0, coin__UxArray* p1); + +extern GoUint32 SKY_cipher_Address_Null(cipher__Address* p0, GoUint8* p1); + +extern GoUint32 SKY_cipher_Address_BitcoinBytes(cipher__Address* p0, coin__UxArray* p1); + +extern GoUint32 SKY_cipher_Address_Verify(cipher__Address* p0, cipher__PubKey* p1); + +extern GoUint32 SKY_cipher_Address_String(cipher__Address* p0, GoString_* p1); + +extern GoUint32 SKY_cipher_Address_BitcoinString(cipher__Address* p0, GoString_* p1); + +extern GoUint32 SKY_cipher_Address_Checksum(cipher__Address* p0, cipher__Checksum* p1); + +extern GoUint32 SKY_cipher_Address_BitcoinChecksum(cipher__Address* p0, cipher__Checksum* p1); + +extern GoUint32 SKY_cipher_BitcoinAddressFromPubkey(cipher__PubKey* p0, GoString_* p1); + +extern GoUint32 SKY_cipher_BitcoinWalletImportFormatFromSeckey(cipher__SecKey* p0, GoString_* p1); + +extern GoUint32 SKY_cipher_BitcoinAddressFromBytes(GoSlice p0, cipher__Address* p1); + +extern GoUint32 SKY_cipher_SecKeyFromWalletImportFormat(GoString p0, cipher__SecKey* p1); + +extern GoUint32 SKY_cipher_MustSecKeyFromWalletImportFormat(GoString p0, cipher__SecKey* p1); + +extern GoUint32 SKY_testutil_MakeAddress(cipher__Address* p0); + +extern GoUint32 SKY_cli_CreateRawTxFromWallet(WebRpcClient__Handle p0, GoString p1, GoString p2, GoSlice p3, PasswordReader__Handle p4, Transaction__Handle* p5); + +extern GoUint32 SKY_cli_CreateRawTxFromAddress(WebRpcClient__Handle p0, GoString p1, GoString p2, GoString p3, GoSlice p4, PasswordReader__Handle p5, Transaction__Handle* p6); + +extern GoUint32 SKY_cli_CreateRawTx(WebRpcClient__Handle p0, Wallet__Handle p1, GoSlice p2, GoString p3, GoSlice p4, GoSlice p5, Transaction__Handle* p6); + +extern GoUint32 SKY_cli_NewTransaction(GoSlice p0, GoSlice p1, GoSlice p2, Transaction__Handle* p3); + +extern GoUint32 SKY_apputil_CatchInterruptPanic(); + +extern GoUint32 SKY_apputil_CatchDebug(); + +extern GoUint32 SKY_apputil_PrintProgramStatus(); + +extern GoUint32 SKY_utc_UnixNow(GoInt64* p0); + +extern GoUint32 SKY_httphelper_Address_UnmarshalJSON(httphelper__Address* p0, GoSlice p1); + +extern GoUint32 SKY_httphelper_Address_MarshalJSON(httphelper__Address* p0, coin__UxArray* p1); + +extern GoUint32 SKY_httphelper_Coins_UnmarshalJSON(httphelper__Coins* p0, GoSlice p1); + +extern GoUint32 SKY_httphelper_Coins_MarshalJSON(httphelper__Coins* p0, coin__UxArray* p1); + +extern GoUint32 SKY_httphelper_Coins_Value(httphelper__Coins* p0, GoUint64* p1); + +extern GoUint32 SKY_httphelper_Hours_UnmarshalJSON(httphelper__Hours* p0, GoSlice p1); + +extern GoUint32 SKY_httphelper_Hours_MarshalJSON(httphelper__Hours* p0, coin__UxArray* p1); + +extern GoUint32 SKY_httphelper_Hours_Value(httphelper__Hours* p0, GoUint64* p1); + +extern GoUint32 SKY_cli_CheckWalletBalance(WebRpcClient__Handle p0, GoString p1, BalanceResult_Handle* p2); + +extern GoUint32 SKY_cli_GetBalanceOfAddresses(WebRpcClient__Handle p0, GoSlice p1, BalanceResult_Handle* p2); + +extern GoUint32 SKY_poly1305_Verify(coin__UxArray* p0, GoSlice p1, coin__UxArray* p2, GoUint8* p3); + +extern GoUint32 SKY_api_NewClient(GoString p0, Client__Handle* p1); + +extern GoUint32 SKY_api_Client_CSRF(Client__Handle p0, GoString_* p1); + +extern GoUint32 SKY_api_Client_Version(Client__Handle p0, Handle* p1); + +extern GoUint32 SKY_api_Client_Outputs(Client__Handle p0, Handle* p1); + +extern GoUint32 SKY_api_Client_OutputsForAddresses(Client__Handle p0, GoSlice p1, Handle* p2); + +extern GoUint32 SKY_api_Client_OutputsForHashes(Client__Handle p0, GoSlice p1, Handle* p2); + +extern GoUint32 SKY_api_Client_CoinSupply(Client__Handle p0, Handle* p1); + +extern GoUint32 SKY_api_Client_BlockByHash(Client__Handle p0, GoString p1, Handle* p2); + +extern GoUint32 SKY_api_Client_BlockBySeq(Client__Handle p0, GoUint64 p1, Handle* p2); + +extern GoUint32 SKY_api_Client_Blocks(Client__Handle p0, GoInt p1, GoInt p2, Handle* p3); + +extern GoUint32 SKY_api_Client_LastBlocks(Client__Handle p0, GoInt p1, Handle* p2); + +extern GoUint32 SKY_api_Client_BlockchainMetadata(Client__Handle p0, Handle* p1); + +extern GoUint32 SKY_api_Client_BlockchainProgress(Client__Handle p0, Handle* p1); + +extern GoUint32 SKY_api_Client_Balance(Client__Handle p0, GoSlice p1, wallet__BalancePair* p2); + +extern GoUint32 SKY_api_Client_UxOut(Client__Handle p0, GoString p1, Handle* p2); + +extern GoUint32 SKY_api_Client_AddressUxOuts(Client__Handle p0, GoString p1, Handle* p2); + +extern GoUint32 SKY_api_Client_Wallet(Client__Handle p0, GoString p1, WalletResponse__Handle* p2); + +extern GoUint32 SKY_api_Client_Wallets(Client__Handle p0, Wallets__Handle* p1); + +extern GoUint32 SKY_api_Client_CreateUnencryptedWallet(Client__Handle p0, GoString p1, GoString p2, GoInt p3, WalletResponse__Handle* p4); + +extern GoUint32 SKY_api_Client_CreateEncryptedWallet(Client__Handle p0, GoString p1, GoString p2, GoString p3, GoInt p4, WalletResponse__Handle* p5); + +extern GoUint32 SKY_api_Client_NewWalletAddress(Client__Handle p0, GoString p1, GoInt p2, GoString p3, Strings__Handle* p4); + +extern GoUint32 SKY_api_Client_WalletBalance(Client__Handle p0, GoString p1, wallet__BalancePair* p2); + +extern GoUint32 SKY_api_Client_Spend(Client__Handle p0, GoString p1, GoString p2, GoUint64 p3, GoString p4, SpendResult_Handle* p5); + +extern GoUint32 SKY_api_Client_CreateTransaction(Client__Handle p0, Handle* p1, CreateTransactionResponse__Handle* p2); + +extern GoUint32 SKY_api_Client_WalletTransactions(Client__Handle p0, GoString p1, Handle* p2); + +extern GoUint32 SKY_api_Client_UpdateWallet(Client__Handle p0, GoString p1, GoString p2); + +extern GoUint32 SKY_api_Client_WalletFolderName(Client__Handle p0, Handle* p1); + +extern GoUint32 SKY_api_Client_NewSeed(Client__Handle p0, GoInt p1, GoString_* p2); + +extern GoUint32 SKY_api_Client_GetWalletSeed(Client__Handle p0, GoString p1, GoString p2, GoString_* p3); + +extern GoUint32 SKY_api_Client_NetworkConnection(Client__Handle p0, GoString p1, Handle* p2); + +extern GoUint32 SKY_api_Client_NetworkConnections(Client__Handle p0, Handle* p1); + +extern GoUint32 SKY_api_Client_NetworkDefaultConnections(Client__Handle p0, Handle* p1); + +extern GoUint32 SKY_api_Client_NetworkTrustedConnections(Client__Handle p0, Handle* p1); + +extern GoUint32 SKY_api_Client_NetworkExchangeableConnections(Client__Handle p0, Handle* p1); + +extern GoUint32 SKY_api_Client_PendingTransactions(Client__Handle p0, Handle* p1); + +extern GoUint32 SKY_api_Client_Transaction(Client__Handle p0, GoString p1, Handle* p2); + +extern GoUint32 SKY_api_Client_Transactions(Client__Handle p0, GoSlice p1, Handle* p2); + +extern GoUint32 SKY_api_Client_ConfirmedTransactions(Client__Handle p0, GoSlice p1, Handle* p2); + +extern GoUint32 SKY_api_Client_UnconfirmedTransactions(Client__Handle p0, GoSlice p1, Handle* p2); + +extern GoUint32 SKY_api_Client_InjectTransaction(Client__Handle p0, GoString p1, GoString_* p2); + +extern GoUint32 SKY_api_Client_ResendUnconfirmedTransactions(Client__Handle p0, Handle* p1); + +extern GoUint32 SKY_api_Client_RawTransaction(Client__Handle p0, GoString p1, GoString_* p2); + +extern GoUint32 SKY_api_Client_AddressTransactions(Client__Handle p0, GoString p1, Handle* p2); + +extern GoUint32 SKY_api_Client_Richlist(Client__Handle p0, api__RichlistParams* p1, Handle* p2); + +extern GoUint32 SKY_api_Client_AddressCount(Client__Handle p0, GoUint64* p1); + +extern GoUint32 SKY_api_Client_UnloadWallet(Client__Handle p0, GoString p1); + +extern GoUint32 SKY_api_Client_Health(Client__Handle p0, Handle* p1); + +extern GoUint32 SKY_api_Client_EncryptWallet(Client__Handle p0, GoString p1, GoString p2, WalletResponse__Handle* p3); + +extern GoUint32 SKY_api_Client_DecryptWallet(Client__Handle p0, GoString p1, GoString p2, WalletResponse__Handle* p3); + +extern GoUint32 SKY_JsonEncode_Handle(Handle p0, GoString_* p1); + +extern GoUint32 SKY_Handle_Progress_GetCurrent(Handle p0, GoUint64* p1); + +extern GoUint32 SKY_Handle_Block_GetHeadSeq(Handle p0, GoUint64* p1); + +extern GoUint32 SKY_Handle_Block_GetHeadHash(Handle p0, GoString_* p1); + +extern GoUint32 SKY_Handle_Block_GetPreviousBlockHash(Handle p0, GoString_* p1); + +extern GoUint32 SKY_Handle_Blocks_GetAt(Handle p0, GoUint64 p1, Handle* p2); + +extern GoUint32 SKY_Handle_Blocks_GetCount(Handle p0, GoUint64* p1); + +extern GoUint32 SKY_Handle_Connections_GetCount(Handle p0, GoUint64* p1); + +extern GoUint32 SKY_Handle_Strings_GetCount(Strings__Handle p0, GoUint32* p1); + +extern GoUint32 SKY_Handle_Strings_Sort(Strings__Handle p0); + +extern GoUint32 SKY_Handle_Strings_GetAt(Strings__Handle p0, GoInt p1, GoString_* p2); + +extern GoUint32 SKY_api_Handle_Client_GetWalletDir(Client__Handle p0, GoString_* p1); + +extern GoUint32 SKY_api_Handle_Client_GetWalletFileName(WalletResponse__Handle p0, GoString_* p1); + +extern GoUint32 SKY_api_Handle_Client_GetWalletLabel(WalletResponse__Handle p0, GoString_* p1); + +extern GoUint32 SKY_api_Handle_Client_GetWalletFullPath(Client__Handle p0, WalletResponse__Handle p1, GoString_* p2); + +extern GoUint32 SKY_api_Handle_GetWalletMeta(Wallet__Handle p0, GoStringMap_* p1); + +extern GoUint32 SKY_api_Handle_GetWalletEntriesCount(Wallet__Handle p0, GoUint32* p1); + +extern GoUint32 SKY_api_Handle_Client_GetWalletResponseEntriesCount(WalletResponse__Handle p0, GoUint32* p1); + +extern GoUint32 SKY_api_Handle_WalletGetEntry(Wallet__Handle p0, GoUint32 p1, cipher__Address* p2, cipher__PubKey* p3); + +extern GoUint32 SKY_api_Handle_WalletResponseGetEntry(WalletResponse__Handle p0, GoUint32 p1, GoString_* p2, GoString_* p3); + +extern GoUint32 SKY_api_Handle_WalletResponseIsEncrypted(WalletResponse__Handle p0, GoUint8* p1); + +extern GoUint32 SKY_api_Handle_WalletResponseGetCryptoType(WalletResponse__Handle p0, GoString_* p1); + +extern GoUint32 SKY_api_Handle_WalletsResponseGetCount(Wallets__Handle p0, GoUint32* p1); + +extern GoUint32 SKY_api_Handle_WalletsResponseGetAt(Wallets__Handle p0, GoUint32 p1, WalletResponse__Handle* p2); + +extern GoUint32 SKY_api_Handle_GetWalletFolderAddress(Handle p0, GoString_* p1); + +extern GoUint32 SKY_api_Handle_GetWalletSeed(Wallet__Handle p0, GoString_* p1); + +extern GoUint32 SKY_api_Handle_GetWalletLastSeed(Wallet__Handle p0, GoString_* p1); + +extern GoUint32 SKY_api_Handle_GetBuildInfoData(BuildInfo_Handle p0, GoString_* p1, GoString_* p2, GoString_* p3); + +extern GoUint32 SKY_secp256k1_GenerateKeyPair(coin__UxArray* p0, coin__UxArray* p1); + +extern GoUint32 SKY_secp256k1_PubkeyFromSeckey(GoSlice p0, coin__UxArray* p1); + +extern GoUint32 SKY_secp256k1_UncompressPubkey(GoSlice p0, coin__UxArray* p1); + +extern GoUint32 SKY_secp256k1_UncompressedPubkeyFromSeckey(GoSlice p0, coin__UxArray* p1); + +extern GoUint32 SKY_secp256k1_Secp256k1Hash(GoSlice p0, coin__UxArray* p1); + +extern GoUint32 SKY_secp256k1_GenerateDeterministicKeyPair(GoSlice p0, coin__UxArray* p1, coin__UxArray* p2); + +extern GoUint32 SKY_secp256k1_DeterministicKeyPairIterator(GoSlice p0, coin__UxArray* p1, coin__UxArray* p2, coin__UxArray* p3); + +extern GoUint32 SKY_secp256k1_Sign(GoSlice p0, GoSlice p1, coin__UxArray* p2); + +extern GoUint32 SKY_secp256k1_SignDeterministic(GoSlice p0, GoSlice p1, GoSlice p2, coin__UxArray* p3); + +extern GoUint32 SKY_secp256k1_VerifySeckey(GoSlice p0, GoInt* p1); + +extern GoUint32 SKY_secp256k1_VerifyPubkey(GoSlice p0, GoInt* p1); + +extern GoUint32 SKY_secp256k1_VerifySignatureValidity(GoSlice p0, GoInt* p1); + +extern GoUint32 SKY_secp256k1_VerifySignature(GoSlice p0, GoSlice p1, GoSlice p2, GoInt* p3); + +extern GoUint32 SKY_secp256k1_SignatureErrorString(GoSlice p0, GoSlice p1, GoSlice p2, GoString_* p3); + +extern GoUint32 SKY_secp256k1_RecoverPubkey(GoSlice p0, GoSlice p1, coin__UxArray* p2); + +extern GoUint32 SKY_secp256k1_ECDH(GoSlice p0, GoSlice p1, coin__UxArray* p2); + +extern GoUint32 SKY_cert_CreateCertIfNotExists(GoString p0, GoString p1, GoString p2, GoString p3); + +extern GoUint32 SKY_fee_VerifyTransactionFee(Transaction__Handle p0, GoUint64 p1); + +extern GoUint32 SKY_fee_VerifyTransactionFeeForHours(GoUint64 p0, GoUint64 p1); + +extern GoUint32 SKY_fee_RequiredFee(GoUint64 p0, GoUint64* p1); + +extern GoUint32 SKY_fee_RemainingHours(GoUint64 p0, GoUint64* p1); + +extern GoUint32 SKY_fee_TransactionFee(Transaction__Handle p0, GoUint64 p1, coin__UxArray* p2, GoUint64* p3); + +extern GoUint32 SKY_iputil_LocalhostIP(GoString_* p0); + +extern GoUint32 SKY_iputil_IsLocalhost(GoString p0, GoUint8* p1); + +extern GoUint32 SKY_iputil_SplitAddr(GoString p0, GoString_* p1, GoUint16* p2); + +extern GoUint32 SKY_cipher_Ripemd160_Set(cipher__Ripemd160* p0, GoSlice p1); + +extern GoUint32 SKY_cipher_HashRipemd160(GoSlice p0, cipher__Ripemd160* p1); + +extern GoUint32 SKY_cipher_SHA256_Set(cipher__SHA256* p0, GoSlice p1); + +extern GoUint32 SKY_cipher_SHA256_Hex(cipher__SHA256* p0, GoString_* p1); + +extern GoUint32 SKY_cipher_SHA256_Xor(cipher__SHA256* p0, cipher__SHA256* p1, cipher__SHA256* p2); + +extern GoUint32 SKY_cipher_SumSHA256(GoSlice p0, cipher__SHA256* p1); + +extern GoUint32 SKY_cipher_SHA256FromHex(GoString p0, cipher__SHA256* p1); + +extern GoUint32 SKY_cipher_DoubleSHA256(GoSlice p0, cipher__SHA256* p1); + +extern GoUint32 SKY_cipher_AddSHA256(cipher__SHA256* p0, cipher__SHA256* p1, cipher__SHA256* p2); + +extern GoUint32 SKY_cipher_Merkle(GoSlice* p0, cipher__SHA256* p1); + +extern GoUint32 SKY_cipher_MustSumSHA256(GoSlice p0, GoInt p1, cipher__SHA256* p2); + +extern GoUint32 SKY_cipher_SHA256_Null(cipher__SHA256* p0, GoUint8* p1); + +extern GoUint32 SKY_coin_Create_Transaction(Transaction__Handle* p0); + +extern GoUint32 SKY_coin_Transaction_Copy(Transaction__Handle p0, Transaction__Handle* p1); + +extern GoUint32 SKY_coin_GetTransactionObject(Transaction__Handle p0, coin__Transaction** p1); + +extern GoUint32 SKY_coin_Transaction_ResetInputs(Transaction__Handle p0, GoInt p1); + +extern GoUint32 SKY_coin_Transaction_GetInputsCount(Transaction__Handle p0, GoInt* p1); + +extern GoUint32 SKY_coin_Transaction_GetInputAt(Transaction__Handle p0, GoInt p1, cipher__SHA256* p2); + +extern GoUint32 SKY_coin_Transaction_SetInputAt(Transaction__Handle p0, GoInt p1, cipher__SHA256* p2); + +extern GoUint32 SKY_coin_Transaction_GetOutputsCount(Transaction__Handle p0, GoInt* p1); + +extern GoUint32 SKY_coin_Transaction_GetOutputAt(Transaction__Handle p0, GoInt p1, coin__TransactionOutput* p2); + +extern GoUint32 SKY_coin_Transaction_SetOutputAt(Transaction__Handle p0, GoInt p1, coin__TransactionOutput* p2); + +extern GoUint32 SKY_coin_Transaction_GetSignaturesCount(Transaction__Handle p0, GoInt* p1); + +extern GoUint32 SKY_coin_Transaction_GetSignatureAt(Transaction__Handle p0, GoInt p1, cipher__Sig* p2); + +extern GoUint32 SKY_coin_Transaction_SetSignatureAt(Transaction__Handle p0, GoInt p1, cipher__Sig* p2); + +extern GoUint32 SKY_coin_Transaction_PushSignature(Transaction__Handle p0, cipher__Sig* p1); + +extern GoUint32 SKY_coin_Transaction_ResetOutputs(Transaction__Handle p0, GoInt p1); + +extern GoUint32 SKY_coin_Transaction_ResetSignatures(Transaction__Handle p0, GoInt p1); + +extern GoUint32 SKY_coin_Transaction_Verify(Transaction__Handle p0); + +extern GoUint32 SKY_coin_Transaction_VerifyInput(Transaction__Handle p0, coin__UxArray* p1); + +extern GoUint32 SKY_coin_Transaction_PushInput(Transaction__Handle p0, cipher__SHA256* p1, GoUint16* p2); + +extern GoUint32 SKY_coin_TransactionOutput_UxID(coin__TransactionOutput* p0, cipher__SHA256* p1, cipher__SHA256* p2); + +extern GoUint32 SKY_coin_Transaction_PushOutput(Transaction__Handle p0, cipher__Address* p1, GoUint64 p2, GoUint64 p3); + +extern GoUint32 SKY_coin_Transaction_SignInputs(Transaction__Handle p0, GoSlice p1); + +extern GoUint32 SKY_coin_Transaction_Size(Transaction__Handle p0, GoInt* p1); + +extern GoUint32 SKY_coin_Transaction_Hash(Transaction__Handle p0, cipher__SHA256* p1); + +extern GoUint32 SKY_coin_Transaction_SizeHash(Transaction__Handle p0, GoInt* p1, cipher__SHA256* p2); + +extern GoUint32 SKY_coin_Transaction_TxID(Transaction__Handle p0, coin__UxArray* p1); + +extern GoUint32 SKY_coin_Transaction_TxIDHex(Transaction__Handle p0, GoString_* p1); + +extern GoUint32 SKY_coin_Transaction_UpdateHeader(Transaction__Handle p0); + +extern GoUint32 SKY_coin_Transaction_HashInner(Transaction__Handle p0, cipher__SHA256* p1); + +extern GoUint32 SKY_coin_Transaction_Serialize(Transaction__Handle p0, coin__UxArray* p1); + +extern GoUint32 SKY_coin_MustTransactionDeserialize(GoSlice p0, Transaction__Handle* p1); + +extern GoUint32 SKY_coin_TransactionDeserialize(GoSlice p0, Transaction__Handle* p1); + +extern GoUint32 SKY_coin_Transaction_OutputHours(Transaction__Handle p0, GoUint64* p1); + +extern GoUint32 SKY_coin_Create_Transactions(Transactions__Handle* p0); + +extern GoUint32 SKY_coin_GetTransactionsObject(Transactions__Handle p0, coin__UxArray** p1); + +extern GoUint32 SKY_coin_Transactions_Length(Transactions__Handle p0, GoInt* p1); + +extern GoUint32 SKY_coin_Transactions_Add(Transactions__Handle p0, Transaction__Handle p1); + +extern GoUint32 SKY_coin_Transactions_Fees(Transactions__Handle p0, FeeCalculator* p1, GoUint64* p2); + +extern GoUint32 SKY_coin_Transactions_GetAt(Transactions__Handle p0, GoInt p1, Transaction__Handle* p2); + +extern GoUint32 SKY_coin_Transactions_Hashes(Transactions__Handle p0, coin__UxArray* p1); + +extern GoUint32 SKY_coin_Transactions_Size(Transactions__Handle p0, GoInt* p1); + +extern GoUint32 SKY_coin_Transactions_TruncateBytesTo(Transactions__Handle p0, GoInt p1, Transactions__Handle* p2); + +extern GoUint32 SKY_coin_SortTransactions(Transactions__Handle p0, FeeCalculator* p1, Transactions__Handle* p2); + +extern GoUint32 SKY_coin_NewSortableTransactions(Transactions__Handle p0, FeeCalculator* p1, SortableTransactionResult_Handle* p2); + +extern GoUint32 SKY_coin_SortableTransactions_Sort(SortableTransactionResult_Handle p0); + +extern GoUint32 SKY_coin_SortableTransactions_Len(SortableTransactionResult_Handle p0, GoInt* p1); + +extern GoUint32 SKY_coin_SortableTransactions_Less(SortableTransactionResult_Handle p0, GoInt p1, GoInt p2, GoUint8* p3); + +extern GoUint32 SKY_coin_SortableTransactions_Swap(SortableTransactionResult_Handle p0, GoInt p1, GoInt p2); + +extern GoUint32 SKY_coin_VerifyTransactionCoinsSpending(coin__UxArray* p0, coin__UxArray* p1); + +extern GoUint32 SKY_coin_VerifyTransactionHoursSpending(GoUint64 p0, coin__UxArray* p1, coin__UxArray* p2); + +extern GoUint32 SKY_encrypt_Sha256Xor_Encrypt(GoSlice p0, GoSlice p1, coin__UxArray* p2); + +extern GoUint32 SKY_encrypt_Sha256Xor_Decrypt(GoSlice p0, GoSlice p1, coin__UxArray* p2); + +extern GoUint32 SKY_cli_GenerateAddressesInFile(GoString p0, GoUint64 p1, PasswordReader__Handle p2, coin__UxArray* p3); + +extern GoUint32 SKY_cli_FormatAddressesAsJSON(GoSlice p0, GoString_* p1); + +extern GoUint32 SKY_cli_FormatAddressesAsJoinedArray(GoSlice p0, GoString_* p1); + +extern GoUint32 SKY_cli_AddressesToStrings(GoSlice p0, coin__UxArray* p1); + +extern GoUint32 SKY_cli_LoadConfig(Config__Handle* p0); + +extern GoUint32 SKY_cli_Config_FullWalletPath(Config__Handle p0, GoString_* p1); + +extern GoUint32 SKY_cli_Config_FullDBPath(Config__Handle p0, GoString_* p1); + +extern GoUint32 SKY_cli_NewApp(Config__Handle p0, App__Handle* p1); + +extern GoUint32 SKY_cli_RPCClientFromContext(Context__Handle p0, WebRpcClient__Handle* p1); + +extern GoUint32 SKY_cli_ConfigFromContext(Context__Handle p0, Config__Handle* p1); + +extern GoUint32 SKY_cli_PasswordFromBytes_Password(coin__UxArray* p0, coin__UxArray* p1); + +extern GoUint32 SKY_cli_PasswordFromTerm_Password(coin__UxArray* p0); + +extern void SKY_handle_close(Handle p0); + +extern GoUint32 SKY_handle_copy(Handle p0, Handle* p1); + +extern GoUint32 SKY_encoder_StructField_String(encoder__StructField* p0, GoString_* p1); + +extern GoUint32 SKY_encoder_ParseFields(GoSlice p0, GoSlice p1, GoStringMap_* p2); + +extern GoUint32 SKY_coin_UxOut_Hash(coin__UxOut* p0, cipher__SHA256* p1); + +extern GoUint32 SKY_coin_UxOut_SnapshotHash(coin__UxOut* p0, cipher__SHA256* p1); + +extern GoUint32 SKY_coin_UxBody_Hash(coin__UxBody* p0, cipher__SHA256* p1); + +extern GoUint32 SKY_coin_UxOut_CoinHours(coin__UxOut* p0, GoUint64 p1, GoUint64* p2); + +extern GoUint32 SKY_coin_UxArray_Hashes(coin__UxArray* p0, coin__UxArray* p1); + +extern GoUint32 SKY_coin_UxArray_HasDupes(coin__UxArray* p0, GoUint8* p1); + +extern GoUint32 SKY_coin_UxArray_Sort(coin__UxArray* p0); + +extern GoUint32 SKY_coin_UxArray_Len(coin__UxArray* p0, GoInt* p1); + +extern GoUint32 SKY_coin_UxArray_Less(coin__UxArray* p0, GoInt p1, GoInt p2, GoUint8* p3); + +extern GoUint32 SKY_coin_UxArray_Swap(coin__UxArray* p0, GoInt p1, GoInt p2); + +extern GoUint32 SKY_coin_UxArray_Coins(coin__UxArray* p0, GoUint64* p1); + +extern GoUint32 SKY_coin_UxArray_CoinHours(coin__UxArray* p0, GoUint64 p1, GoUint64* p2); + +extern GoUint32 SKY_coin_UxArray_Sub(coin__UxArray* p0, coin__UxArray* p1, coin__UxArray* p2); + +extern GoUint32 SKY_coin_UxArray_Add(coin__UxArray* p0, coin__UxArray* p1, coin__UxArray* p2); + +extern GoUint32 SKY_coin_NewAddressUxOuts(coin__UxArray* p0, AddressUxOuts_Handle* p1); + +extern GoUint32 SKY_coin_AddressUxOuts_Keys(AddressUxOuts_Handle p0, coin__UxArray* p1); + +extern GoUint32 SKY_coin_AddressUxOuts_Flatten(AddressUxOuts_Handle p0, coin__UxArray* p1); + +extern GoUint32 SKY_coin_AddressUxOuts_Sub(AddressUxOuts_Handle p0, AddressUxOuts_Handle p1, AddressUxOuts_Handle* p2); + +extern GoUint32 SKY_coin_AddressUxOuts_Add(AddressUxOuts_Handle p0, AddressUxOuts_Handle p1, AddressUxOuts_Handle* p2); + +extern GoUint32 SKY_coin_AddressUxOuts_Get(AddressUxOuts_Handle p0, cipher__Address* p1, coin__UxArray* p2); + +extern GoUint32 SKY_coin_AddressUxOuts_HasKey(AddressUxOuts_Handle p0, cipher__Address* p1, GoUint8* p2); + +extern GoUint32 SKY_coin_AddressUxOuts_GetOutputLength(AddressUxOuts_Handle p0, cipher__Address* p1, GoInt* p2); + +extern GoUint32 SKY_coin_AddressUxOuts_Length(AddressUxOuts_Handle p0, GoInt* p1); + +extern GoUint32 SKY_coin_AddressUxOuts_Set(AddressUxOuts_Handle p0, cipher__Address* p1, coin__UxArray* p2); + +extern GoUint32 SKY_scrypt_Key(GoSlice p0, GoSlice p1, GoInt p2, GoInt p3, GoInt p4, GoInt p5, coin__UxArray* p6); + +extern GoUint32 SKY_wallet_NewError(GoInterface p0); + +extern GoUint32 SKY_wallet_NewWallet(GoString p0, Options__Handle p1, Wallet__Handle* p2); + +extern GoUint32 SKY_wallet_Wallet_Lock(Wallet__Handle p0, GoSlice p1, GoString p2); + +extern GoUint32 SKY_wallet_Wallet_Unlock(Wallet__Handle p0, GoSlice p1, Wallet__Handle* p2); + +extern GoUint32 SKY_wallet_Load(GoString p0, Wallet__Handle* p1); + +extern GoUint32 SKY_wallet_Wallet_Save(Wallet__Handle p0, GoString p1); + +extern GoUint32 SKY_wallet_Wallet_Validate(Wallet__Handle p0); + +extern GoUint32 SKY_wallet_Wallet_Type(Wallet__Handle p0, GoString_* p1); + +extern GoUint32 SKY_wallet_Wallet_Version(Wallet__Handle p0, GoString_* p1); + +extern GoUint32 SKY_wallet_Wallet_Filename(Wallet__Handle p0, GoString_* p1); + +extern GoUint32 SKY_wallet_Wallet_Label(Wallet__Handle p0, GoString_* p1); + +extern GoUint32 SKY_wallet_Wallet_IsEncrypted(Wallet__Handle p0, GoUint8* p1); + +extern GoUint32 SKY_wallet_Wallet_GenerateAddresses(Wallet__Handle p0, GoUint64 p1, coin__UxArray* p2); + +extern GoUint32 SKY_wallet_Wallet_GetAddresses(Wallet__Handle p0, coin__UxArray* p1); + +extern GoUint32 SKY_wallet_Wallet_GetEntry(Wallet__Handle p0, cipher__Address* p1, wallet__Entry* p2, GoUint8* p3); + +extern GoUint32 SKY_wallet_Wallet_AddEntry(Wallet__Handle p0, wallet__Entry* p1); + +extern GoUint32 SKY_wallet_DistributeSpendHours(GoUint64 p0, GoUint64 p1, GoUint8 p2, GoUint64* p3, coin__UxArray* p4, GoUint64* p5); + +extern GoUint32 SKY_wallet_DistributeCoinHoursProportional(GoSlice p0, GoUint64 p1, coin__UxArray* p2); + +extern GoUint32 SKY_wallet_NewUxBalances(GoUint64 p0, coin__UxArray* p1, coin__UxArray* p2); + +extern GoUint32 SKY_wallet_NewUxBalance(GoUint64 p0, coin__UxOut* p1, wallet__UxBalance* p2); + +extern GoUint32 SKY_wallet_ChooseSpendsMinimizeUxOuts(GoSlice p0, GoUint64 p1, GoUint64 p2, coin__UxArray* p3); + +extern GoUint32 SKY_wallet_ChooseSpendsMaximizeUxOuts(GoSlice p0, GoUint64 p1, GoUint64 p2, coin__UxArray* p3); + +extern GoUint32 SKY_cli_AddPrivateKey(Wallet__Handle p0, GoString p1); + +extern GoUint32 SKY_cli_AddPrivateKeyToFile(GoString p0, GoString p1, PasswordReader__Handle p2); + +extern GoUint32 SKY_cli_App_Run(App__Handle p0, GoString p1); + +extern GoUint32 SKY_cli_Config_GetCoin(Config__Handle p0, GoString_* p1); + +extern GoUint32 SKY_cli_Config_GetRPCAddress(Config__Handle p0, GoString_* p1); + +extern GoUint32 SKY_cli_RPCClientFromApp(App__Handle p0, WebRpcClient__Handle* p1); + +extern GoUint32 SKY_cli_Getenv(GoString p0, GoString_* p1); + +extern GoUint32 SKY_cli_Setenv(GoString p0, GoString p1); + +extern GoUint32 SKY_webrpc_NewClient(GoString p0, WebRpcClient__Handle* p1); + +extern GoUint32 SKY_webrpc_Client_CSRF(WebRpcClient__Handle p0, GoString_* p1); + +extern GoUint32 SKY_webrpc_Client_GetUnspentOutputs(WebRpcClient__Handle p0, GoSlice p1, OutputsResult_Handle* p2); + +extern GoUint32 SKY_webrpc_Client_InjectTransactionString(WebRpcClient__Handle p0, GoString p1, GoString_* p2); + +extern GoUint32 SKY_webrpc_Client_InjectTransaction(WebRpcClient__Handle p0, Transaction__Handle p1, GoString_* p2); + +extern GoUint32 SKY_webrpc_Client_GetStatus(WebRpcClient__Handle p0, StatusResult_Handle* p1); + +extern GoUint32 SKY_webrpc_Client_GetTransactionByID(WebRpcClient__Handle p0, GoString p1, TransactionResult_Handle* p2); + +extern GoUint32 SKY_webrpc_Client_GetAddressUxOuts(WebRpcClient__Handle p0, GoSlice p1, coin__UxArray* p2); + +extern GoUint32 SKY_webrpc_Client_GetBlocks(WebRpcClient__Handle p0, GoUint64 p1, GoUint64 p2, coin__UxArray* p3); + +extern GoUint32 SKY_webrpc_Client_GetBlocksBySeq(WebRpcClient__Handle p0, GoSlice p1, coin__UxArray* p2); + +extern GoUint32 SKY_webrpc_Client_GetLastBlocks(WebRpcClient__Handle p0, GoUint64 p1, coin__UxArray* p2); + +extern GoUint32 SKY_droplet_FromString(GoString p0, GoUint64* p1); + +extern GoUint32 SKY_droplet_ToString(GoUint64 p0, GoString_* p1); + +extern GoUint32 SKY_bip39_NewDefaultMnemomic(GoString_* p0); + +extern GoUint32 SKY_bip39_NewEntropy(GoInt p0, coin__UxArray* p1); + +extern GoUint32 SKY_bip39_NewMnemonic(GoSlice p0, GoString_* p1); + +extern GoUint32 SKY_bip39_MnemonicToByteArray(GoString p0, coin__UxArray* p1); + +extern GoUint32 SKY_bip39_IsMnemonicValid(GoString p0, GoUint8* p1); + +extern GoUint32 SKY_secp256k1go_XYZ_Print(secp256k1go__XYZ* p0, GoString p1); + +extern GoUint32 SKY_secp256k1go_XYZ_SetXY(secp256k1go__XYZ* p0, secp256k1go__XY* p1); + +extern GoUint32 SKY_secp256k1go_XYZ_IsInfinity(secp256k1go__XYZ* p0, GoUint8* p1); + +extern GoUint32 SKY_secp256k1go_XYZ_IsValid(secp256k1go__XYZ* p0, GoUint8* p1); + +extern GoUint32 SKY_secp256k1go_XYZ_Normalize(secp256k1go__XYZ* p0); + +extern GoUint32 SKY_secp256k1go_XYZ_Equals(secp256k1go__XYZ* p0, secp256k1go__XYZ* p1, GoUint8* p2); + +extern GoUint32 SKY_secp256k1go_XYZ_ECmult(secp256k1go__XYZ* p0, secp256k1go__XYZ* p1, Number_Handle p2, Number_Handle p3); + +extern GoUint32 SKY_secp256k1go_XYZ_Neg(secp256k1go__XYZ* p0, secp256k1go__XYZ* p1); + +extern GoUint32 SKY_secp256k1go_XYZ_Double(secp256k1go__XYZ* p0, secp256k1go__XYZ* p1); + +extern GoUint32 SKY_secp256k1go_XYZ_AddXY(secp256k1go__XYZ* p0, secp256k1go__XYZ* p1, secp256k1go__XY* p2); + +extern GoUint32 SKY_secp256k1go_XYZ_Add(secp256k1go__XYZ* p0, secp256k1go__XYZ* p1, secp256k1go__XYZ* p2); + +extern GoUint32 SKY_secp256k1go_ECmultGen(secp256k1go__XYZ* p0, Number_Handle p1); + +extern GoUint32 SKY_wallet_NewNotesFilename(GoString_* p0); + +extern GoUint32 SKY_wallet_LoadNotes(GoString p0, WalletNotes_Handle* p1); + +extern GoUint32 SKY_wallet_LoadReadableNotes(GoString p0, WalletReadableNotes_Handle* p1); + +extern GoUint32 SKY_wallet_ReadableNotes_Load(WalletReadableNotes_Handle p0, GoString p1); + +extern GoUint32 SKY_wallet_ReadableNotes_ToNotes(WalletReadableNotes_Handle p0, WalletNotes_Handle* p1); + +extern GoUint32 SKY_wallet_ReadableNotes_Save(WalletReadableNotes_Handle p0, GoString p1); + +extern GoUint32 SKY_wallet_NewReadableNote(wallet__Note* p0, wallet__ReadableNote* p1); + +extern GoUint32 SKY_wallet_NewReadableNotesFromNotes(WalletNotes_Handle p0, WalletReadableNotes_Handle* p1); + +extern GoUint32 SKY_wallet_Notes_Save(WalletNotes_Handle p0, GoString p1, GoString p2); + +extern GoUint32 SKY_wallet_Notes_SaveNote(WalletNotes_Handle p0, GoString p1, wallet__Note* p2); + +extern GoUint32 SKY_wallet_Notes_ToReadable(WalletNotes_Handle p0, WalletReadableNotes_Handle* p1); + +extern GoUint32 SKY_wallet_NotesFileExist(GoString p0, GoUint8* p1); + +extern GoUint32 SKY_wallet_CreateNoteFileIfNotExist(GoString p0); + +extern GoUint32 SKY_encrypt_ScryptChacha20poly1305_Encrypt(encrypt__ScryptChacha20poly1305* p0, GoSlice p1, GoSlice p2, coin__UxArray* p3); + +extern GoUint32 SKY_encrypt_ScryptChacha20poly1305_Decrypt(encrypt__ScryptChacha20poly1305* p0, GoSlice p1, GoSlice p2, coin__UxArray* p3); + +extern GoUint32 SKY_coin_AddUint64(GoUint64 p0, GoUint64 p1, GoUint64* p2); + +extern GoUint32 SKY_coin_Uint64ToInt64(GoUint64 p0, GoInt64* p1); + +extern GoUint32 SKY_coin_Int64ToUint64(GoInt64 p0, GoUint64* p1); + +extern GoUint32 SKY_wallet_NewBalance(GoUint64 p0, GoUint64 p1, wallet__Balance* p2); + +extern GoUint32 SKY_wallet_NewBalanceFromUxOut(GoUint64 p0, coin__UxOut* p1, wallet__Balance* p2); + +extern GoUint32 SKY_wallet_Balance_Add(wallet__Balance* p0, wallet__Balance* p1, wallet__Balance* p2); + +extern GoUint32 SKY_wallet_Balance_Sub(wallet__Balance* p0, wallet__Balance* p1, wallet__Balance* p2); + +extern GoUint32 SKY_wallet_Balance_Equals(wallet__Balance* p0, wallet__Balance* p1, GoUint8* p2); + +extern GoUint32 SKY_wallet_Balance_IsZero(wallet__Balance* p0, GoUint8* p1); + +extern GoUint32 SKY_ripemd160_New(Hash_Handle* p0); + +extern GoUint32 SKY_ripemd160_Write(Hash_Handle p0, GoSlice p1, GoInt* p2); + +extern GoUint32 SKY_ripemd160_Sum(Hash_Handle p0, GoSlice p1, coin__UxArray* p2); + +extern GoUint32 SKY_coin_NewBlock(Block__Handle p0, GoUint64 p1, cipher__SHA256* p2, Transactions__Handle p3, FeeCalculator* p4, Block__Handle* p5); + +extern GoUint32 SKY_coin_SignedBlock_VerifySignature(coin__SignedBlock* p0, cipher__PubKey* p1); + +extern GoUint32 SKY_coin_NewGenesisBlock(cipher__Address* p0, GoUint64 p1, GoUint64 p2, Block__Handle* p3); + +extern GoUint32 SKY_coin_Block_HashHeader(Block__Handle p0, cipher__SHA256* p1); + +extern GoUint32 SKY_coin_Block_PreHashHeader(Block__Handle p0, cipher__SHA256* p1); + +extern GoUint32 SKY_coin_Block_Time(Block__Handle p0, GoUint64* p1); + +extern GoUint32 SKY_coin_Block_Seq(Block__Handle p0, GoUint64* p1); + +extern GoUint32 SKY_coin_Block_HashBody(Block__Handle p0, cipher__SHA256* p1); + +extern GoUint32 SKY_coin_Block_Size(Block__Handle p0, GoInt* p1); + +extern GoUint32 SKY_coin_Block_String(Block__Handle p0, GoString_* p1); + +extern GoUint32 SKY_coin_Block_GetTransaction(Block__Handle p0, cipher__SHA256* p1, Transaction__Handle* p2, GoUint8* p3); + +extern GoUint32 SKY_coin_NewBlockHeader(coin__BlockHeader* p0, cipher__SHA256* p1, GoUint64 p2, GoUint64 p3, BlockBody__Handle p4, coin__BlockHeader* p5); + +extern GoUint32 SKY_coin_BlockHeader_Hash(coin__BlockHeader* p0, cipher__SHA256* p1); + +extern GoUint32 SKY_coin_BlockHeader_Bytes(coin__BlockHeader* p0, coin__UxArray* p1); + +extern GoUint32 SKY_coin_BlockHeader_String(coin__BlockHeader* p0, GoString_* p1); + +extern GoUint32 SKY_coin_BlockBody_Hash(BlockBody__Handle p0, cipher__SHA256* p1); + +extern GoUint32 SKY_coin_BlockBody_Size(BlockBody__Handle* p0, GoInt* p1); + +extern GoUint32 SKY_coin_BlockBody_Bytes(BlockBody__Handle p0, coin__UxArray* p1); + +extern GoUint32 SKY_coin_CreateUnspents(coin__BlockHeader* p0, Transaction__Handle p1, coin__UxArray* p2); + +extern GoUint32 SKY_coin_CreateUnspent(coin__BlockHeader* p0, Transaction__Handle p1, GoInt p2, coin__UxOut* p3); + +extern GoUint32 SKY_coin_GetBlockObject(Block__Handle p0, coin__Block** p1); + +extern GoUint32 SKY_coin_GetBlockBody(Block__Handle p0, BlockBody__Handle* p1); + +extern GoUint32 SKY_coin_NewEmptyBlock(Transactions__Handle p0, Block__Handle* p1); + +extern GoUint32 SKY_wallet_CreateAddresses(GoString p0, GoString p1, GoInt p2, GoUint8 p3, ReadableWallet__Handle* p4); + +extern GoUint32 SKY_wallet_GetSkycoinWalletEntry(cipher__PubKey* p0, cipher__SecKey* p1, ReadableEntry__Handle* p2); + +extern GoUint32 SKY_wallet_GetBitcoinWalletEntry(cipher__PubKey* p0, cipher__SecKey* p1, ReadableEntry__Handle* p2); + +extern GoUint32 SKY_map_Get(GoStringMap_* p0, GoString p1, GoString_* p2); + +extern GoUint8 SKY_map_HasKey(GoStringMap_* p0, GoString p1); + +extern GoUint32 SKY_map_Close(GoStringMap_* p0); + +extern GoUint32 SKY_logging_EnableColors(); + +extern GoUint32 SKY_logging_DisableColors(); + +extern GoUint32 SKY_logging_Disable(); + +extern GoUint32 SKY_cli_GenerateWallet(GoString p0, Options__Handle* p1, GoUint64 p2, Wallet__Handle* p3); + +extern GoUint32 SKY_cli_MakeAlphanumericSeed(GoString_* p0); + +extern GoUint32 SKY_secp256k1go_Signature_Create(Signature_Handle* p0); + +extern GoUint32 SKY_secp256k1go_Signature_GetR(Signature_Handle p0, Number_Handle* p1); + +extern GoUint32 SKY_secp256k1go_Signature_GetS(Signature_Handle p0, Number_Handle* p1); + +extern GoUint32 SKY_secp256k1go_Signature_Print(Signature_Handle p0, GoString p1); + +extern GoUint32 SKY_secp256k1go_Signature_Verify(Signature_Handle p0, secp256k1go__XY* p1, Number_Handle p2, GoUint8* p3); + +extern GoUint32 SKY_secp256k1go_Signature_Recover(Signature_Handle p0, secp256k1go__XY* p1, Number_Handle p2, GoInt p3, GoUint8* p4); + +extern GoUint32 SKY_secp256k1go_Signature_Sign(Signature_Handle p0, Number_Handle p1, Number_Handle p2, Number_Handle p3, GoInt* p4, GoInt* p5); + +extern GoUint32 SKY_secp256k1go_Signature_ParseBytes(Signature_Handle p0, GoSlice p1); + +extern GoUint32 SKY_secp256k1go_Signature_Bytes(Signature_Handle p0, coin__UxArray* p1); + +extern GoUint32 SKY_secp256k1go_Number_Create(Number_Handle* p0); + +extern GoUint32 SKY_secp256k1go_Number_Print(Number_Handle p0, GoString p1); + +extern GoUint32 SKY_secp256k1go_Number_SetHex(Number_Handle p0, GoString p1); + +extern GoUint32 SKY_secp256k1go_Number_IsOdd(Number_Handle p0, GoUint8* p1); + +extern GoUint32 SKY_secp256k1go_Number_IsEqual(Number_Handle p0, Number_Handle p1, GoUint8* p2); + +extern void SKY_wallet_CreateOptionsHandle(GoString p0, GoString p1, GoString p2, GoUint8 p3, GoString p4, GoString p5, GoUint64 p6, Options__Handle* p7); + +extern GoUint32 SKY_secp256k1go_XY_Print(secp256k1go__XY* p0, GoString p1); + +extern GoUint32 SKY_secp256k1go_XY_ParsePubkey(secp256k1go__XY* p0, GoSlice p1, GoUint8* p2); + +extern GoUint32 SKY_secp256k1go_XY_Bytes(secp256k1go__XY* p0, coin__UxArray* p1); + +extern GoUint32 SKY_secp256k1go_XY_BytesUncompressed(secp256k1go__XY* p0, coin__UxArray* p1); + +extern GoUint32 SKY_secp256k1go_XY_SetXY(secp256k1go__XY* p0, secp256k1go__Field* p1, secp256k1go__Field* p2); + +extern GoUint32 SKY_secp256k1go_XY_IsValid(secp256k1go__XY* p0, GoUint8* p1); + +extern GoUint32 SKY_secp256k1go_XY_SetXYZ(secp256k1go__XY* p0, secp256k1go__XYZ* p1); + +extern GoUint32 SKY_secp256k1go_XY_Neg(secp256k1go__XY* p0, secp256k1go__XY* p1); + +extern GoUint32 SKY_secp256k1go_XY_SetXO(secp256k1go__XY* p0, secp256k1go__Field* p1, GoUint8 p2); + +extern GoUint32 SKY_secp256k1go_XY_AddXY(secp256k1go__XY* p0, secp256k1go__XY* p1); + +extern GoUint32 SKY_secp256k1go_XY_GetPublicKey(secp256k1go__XY* p0, coin__UxArray* p1); + +extern GoUint32 SKY_wallet_Entry_Verify(wallet__Entry* p0); + +extern GoUint32 SKY_wallet_Entry_VerifyPublic(wallet__Entry* p0); + +extern GoUint32 SKY_wallet_CryptoTypeFromString(GoString p0, GoString_* p1); + +#ifdef __cplusplus +} +#endif From b2f78f1b0fa2165733f955a5015f7b339c9cc542 Mon Sep 17 00:00:00 2001 From: stdevEclipse Date: Sun, 5 Aug 2018 12:19:09 +0000 Subject: [PATCH 04/73] [swig] refs #4 - Fixed travis and makefile issue --- .travis.yml | 1 + Makefile | 48 ++++++++++++++++++++++++------------------------ 2 files changed, 25 insertions(+), 24 deletions(-) diff --git a/.travis.yml b/.travis.yml index 257fe6df..252fdf1c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,7 @@ install: - nuget install NUnit.Runners -Version 2.6.4 -OutputDirectory testrunner script: + - make build-libc - make build-swig - msbuild /p:Configuration=Release LibskycoinNet.sln - make build-libskycoin-net diff --git a/Makefile b/Makefile index 96c0ed0a..9c51b370 100644 --- a/Makefile +++ b/Makefile @@ -16,37 +16,37 @@ SWIG_FILES = $(shell find $(LIBSWIG_DIR) -type f -name "*.i") HEADER_FILES = $(shell find $(SKYCOIN_DIR)/include -type f -name "*.h") configure: - mkdir -p $(BUILD_DIR)/usr/tmp $(BUILD_DIR)/usr/lib $(BUILD_DIR)/usr/include - mkdir -p $(BUILDLIBC_DIR) $(BIN_DIR) $(INCLUDE_DIR) + mkdir -p $(BUILD_DIR)/usr/tmp $(BUILD_DIR)/usr/lib $(BUILD_DIR)/usr/include + mkdir -p $(BUILDLIBC_DIR) $(BIN_DIR) $(INCLUDE_DIR) $(BUILDLIBC_DIR)/libskycoin.a: $(LIB_FILES) $(SRC_FILES) $(HEADER_FILES) - rm -f $(BUILDLIBC_DIR)/libskycoin.a - GOPATH="$(GOPATH_DIR)" make -C $(SKYCOIN_DIR) build-libc-static - ls $(BUILDLIBC_DIR) - rm -f swig/include/libskycoin.h - mkdir -p swig/include - grep -v _Complex $(INCLUDE_DIR)/libskycoin.h > swig/include/libskycoin.h + rm -f $(BUILDLIBC_DIR)/libskycoin.a + GOPATH="$(GOPATH_DIR)" make -C $(SKYCOIN_DIR) build-libc-static + ls $(BUILDLIBC_DIR) + rm -f swig/include/libskycoin.h + mkdir -p swig/include + grep -v _Complex $(INCLUDE_DIR)/libskycoin.h > swig/include/libskycoin.h ## Build libskycoin C client library build-libc: configure $(BUILDLIBC_DIR)/libskycoin.a build-swig: - #Generate structs.i from skytypes.gen.h - rm -f $(LIBSWIG_DIR)/structs.i - cp $(INCLUDE_DIR)/skytypes.gen.h $(LIBSWIG_DIR)/structs.i - #sed -i 's/#/%/g' $(LIBSWIG_DIR)/structs.i -t { \ - if [[ "$$(uname -s)" == "Darwin" ]]; then \ - sed -i '.kbk' 's/#/%/g' $(LIBSWIG_DIR)/structs.i ;\ - else \ - sed -i 's/#/%/g' $(LIBSWIG_DIR)/structs.i ;\ - fi \ - } - mkdir -p ./LibskycoinNet/skycoin - swig -csharp -namespace skycoin -Iswig/include -I$(INCLUDE_DIR) -outdir LibskycoinNet/skycoin -o LibskycoinNet/skycoin/skycoinnet_wrap.c $(LIBSWIG_DIR)/skycoin.i + #Generate structs.i from skytypes.gen.h + rm -f $(LIBSWIG_DIR)/structs.i + cp $(INCLUDE_DIR)/skytypes.gen.h $(LIBSWIG_DIR)/structs.i + #sed -i 's/#/%/g' $(LIBSWIG_DIR)/structs.i + { \ + if [[ "$$(uname -s)" == "Darwin" ]]; then \ + sed -i '.kbk' 's/#/%/g' $(LIBSWIG_DIR)/structs.i ;\ + else \ + sed -i 's/#/%/g' $(LIBSWIG_DIR)/structs.i ;\ + fi \ + } + mkdir -p ./LibskycoinNet/skycoin + swig -csharp -namespace skycoin -Iswig/include -I$(INCLUDE_DIR) -outdir LibskycoinNet/skycoin -o LibskycoinNet/skycoin/skycoinnet_wrap.c $(LIBSWIG_DIR)/skycoin.i build-libskycoin-net: - gcc -c -fpic -ILibskycoinNet/swig/include -I$(INCLUDE_DIR) LibskycoinNet/skycoin/skycoinnet_wrap.c - gcc -shared skycoinnet_wrap.o $(BUILDLIBC_DIR)/libskycoin.a -o libskycoin.so - mv libskycoin.so LibskycoinNetTest/bin/Release + gcc -c -fpic -ILibskycoinNet/swig/include -I$(INCLUDE_DIR) LibskycoinNet/skycoin/skycoinnet_wrap.c + gcc -shared skycoinnet_wrap.o $(BUILDLIBC_DIR)/libskycoin.a -o libskycoin.so + mv libskycoin.so LibskycoinNetTest/bin/Release #mono-csc -out:skycoin_net.exe LibskycoinNet/skycoin/*.cs From 77af39d8e6e5154b50e1182ebf77479fc9ca3089 Mon Sep 17 00:00:00 2001 From: stdevEclipse Date: Sun, 5 Aug 2018 12:25:07 +0000 Subject: [PATCH 05/73] [swig] refs #4 - Fix in Makefile --- Makefile | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/Makefile b/Makefile index 9c51b370..9e131f5f 100644 --- a/Makefile +++ b/Makefile @@ -16,37 +16,37 @@ SWIG_FILES = $(shell find $(LIBSWIG_DIR) -type f -name "*.i") HEADER_FILES = $(shell find $(SKYCOIN_DIR)/include -type f -name "*.h") configure: - mkdir -p $(BUILD_DIR)/usr/tmp $(BUILD_DIR)/usr/lib $(BUILD_DIR)/usr/include - mkdir -p $(BUILDLIBC_DIR) $(BIN_DIR) $(INCLUDE_DIR) + mkdir -p $(BUILD_DIR)/usr/tmp $(BUILD_DIR)/usr/lib $(BUILD_DIR)/usr/include + mkdir -p $(BUILDLIBC_DIR) $(BIN_DIR) $(INCLUDE_DIR) $(BUILDLIBC_DIR)/libskycoin.a: $(LIB_FILES) $(SRC_FILES) $(HEADER_FILES) - rm -f $(BUILDLIBC_DIR)/libskycoin.a - GOPATH="$(GOPATH_DIR)" make -C $(SKYCOIN_DIR) build-libc-static - ls $(BUILDLIBC_DIR) - rm -f swig/include/libskycoin.h - mkdir -p swig/include - grep -v _Complex $(INCLUDE_DIR)/libskycoin.h > swig/include/libskycoin.h + rm -f $(BUILDLIBC_DIR)/libskycoin.a + GOPATH="$(GOPATH_DIR)" make -C $(SKYCOIN_DIR) build-libc-static + ls $(BUILDLIBC_DIR) + rm -f swig/include/libskycoin.h + mkdir -p swig/include + grep -v _Complex $(INCLUDE_DIR)/libskycoin.h > swig/include/libskycoin.h ## Build libskycoin C client library build-libc: configure $(BUILDLIBC_DIR)/libskycoin.a build-swig: - #Generate structs.i from skytypes.gen.h - rm -f $(LIBSWIG_DIR)/structs.i - cp $(INCLUDE_DIR)/skytypes.gen.h $(LIBSWIG_DIR)/structs.i - #sed -i 's/#/%/g' $(LIBSWIG_DIR)/structs.i - { \ - if [[ "$$(uname -s)" == "Darwin" ]]; then \ - sed -i '.kbk' 's/#/%/g' $(LIBSWIG_DIR)/structs.i ;\ - else \ - sed -i 's/#/%/g' $(LIBSWIG_DIR)/structs.i ;\ - fi \ - } - mkdir -p ./LibskycoinNet/skycoin - swig -csharp -namespace skycoin -Iswig/include -I$(INCLUDE_DIR) -outdir LibskycoinNet/skycoin -o LibskycoinNet/skycoin/skycoinnet_wrap.c $(LIBSWIG_DIR)/skycoin.i + #Generate structs.i from skytypes.gen.h + rm -f $(LIBSWIG_DIR)/structs.i + cp $(INCLUDE_DIR)/skytypes.gen.h $(LIBSWIG_DIR)/structs.i + #sed -i 's/#/%/g' $(LIBSWIG_DIR)/structs.i + { \ + if [[ "$$(uname -s)" == "Darwin" ]]; then \ + sed -i '.kbk' 's/#/%/g' $(LIBSWIG_DIR)/structs.i ;\ + else \ + sed -i 's/#/%/g' $(LIBSWIG_DIR)/structs.i ;\ + fi \ + } + mkdir -p ./LibskycoinNet/skycoin + swig -csharp -namespace skycoin -Iswig/include -I$(INCLUDE_DIR) -outdir LibskycoinNet/skycoin -o LibskycoinNet/skycoin/skycoinnet_wrap.c $(LIBSWIG_DIR)/skycoin.i build-libskycoin-net: - gcc -c -fpic -ILibskycoinNet/swig/include -I$(INCLUDE_DIR) LibskycoinNet/skycoin/skycoinnet_wrap.c - gcc -shared skycoinnet_wrap.o $(BUILDLIBC_DIR)/libskycoin.a -o libskycoin.so - mv libskycoin.so LibskycoinNetTest/bin/Release + gcc -c -fpic -ILibskycoinNet/swig/include -I$(INCLUDE_DIR) LibskycoinNet/skycoin/skycoinnet_wrap.c + gcc -shared skycoinnet_wrap.o $(BUILDLIBC_DIR)/libskycoin.a -o libskycoin.so + mv libskycoin.so LibskycoinNetTest/bin/Release #mono-csc -out:skycoin_net.exe LibskycoinNet/skycoin/*.cs From 5c2d7f50222d730bfaf0d413a983b16cfb97d4e0 Mon Sep 17 00:00:00 2001 From: stdevEclipse Date: Sun, 5 Aug 2018 12:34:01 +0000 Subject: [PATCH 06/73] [swig] refs #4 - Added installation of Go and Swig to Travis --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index 252fdf1c..bb7498ab 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,9 @@ language: csharp solution: LibskycoinNet.sln install: + - eval "$(gimme 1.10)" + - go version + - mkdir swig_build && cd swig_build && wget http://prdownloads.sourceforge.net/swig/swig-3.0.12.tar.gz && tar -zxf swig-3.0.12.tar.gz && cd swig-3.0.12 && sudo ./configure --prefix=/usr && sudo make && sudo make install && cd ../../ && sudo rm -rf swig_build - nuget restore LibskycoinNet.sln - nuget install NUnit.Runners -Version 2.6.4 -OutputDirectory testrunner From be437754cb355015873f44ff65d3726f650cfa1b Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Fri, 24 Aug 2018 15:35:55 -0400 Subject: [PATCH 07/73] [libnet][swig] Added file by testing --- LibskycoinNetTest/LibskycoinNetTest.cs | 6 ++---- LibskycoinNetTest/LibskycoinNetTest.csproj | 2 ++ LibskycoinNetTest/check_cipher_address.cs | 17 +++++++++++++++++ LibskycoinNetTest/cipher_address.cs | 14 ++++++++++++++ Makefile | 8 ++++++++ 5 files changed, 43 insertions(+), 4 deletions(-) create mode 100644 LibskycoinNetTest/check_cipher_address.cs create mode 100644 LibskycoinNetTest/cipher_address.cs diff --git a/LibskycoinNetTest/LibskycoinNetTest.cs b/LibskycoinNetTest/LibskycoinNetTest.cs index 676eb618..1c082577 100644 --- a/LibskycoinNetTest/LibskycoinNetTest.cs +++ b/LibskycoinNetTest/LibskycoinNetTest.cs @@ -14,10 +14,8 @@ public LibskycoinNetTest() [Test] public void SumTest(){ - var xyz = new skycoin.secp256k1go__XYZ(); - var xy = new skycoin.secp256k1go__XY(); - uint error = skycoin.skycoin.SKY_secp256k1go_XYZ_SetXY(xyz, xy); - Assert.AreEqual(error, 0); + + Assert.AreEqual(0, 0); } } diff --git a/LibskycoinNetTest/LibskycoinNetTest.csproj b/LibskycoinNetTest/LibskycoinNetTest.csproj index 72f32060..7ae19e55 100644 --- a/LibskycoinNetTest/LibskycoinNetTest.csproj +++ b/LibskycoinNetTest/LibskycoinNetTest.csproj @@ -35,6 +35,8 @@ + + diff --git a/LibskycoinNetTest/check_cipher_address.cs b/LibskycoinNetTest/check_cipher_address.cs new file mode 100644 index 00000000..69ffcc23 --- /dev/null +++ b/LibskycoinNetTest/check_cipher_address.cs @@ -0,0 +1,17 @@ +using System; +using NUnit.Framework; +using skycoin; +namespace LibskycoinNetTest { + [TestFixture ()] + public class check_cipher_address { + [Test ()] + public void TestDecodeBase58Address () { + // var p = new skycoin.cipher_PubKey (); + // var s = new skycoin.cipher_SecKey (); + uint err = 0; + // uint err = skycoin.skycoin.SKY_cipher_GenerateKeyPair(p,s); + Assert.AreEqual (err, 0); + + } + } +} \ No newline at end of file diff --git a/LibskycoinNetTest/cipher_address.cs b/LibskycoinNetTest/cipher_address.cs new file mode 100644 index 00000000..4ef1abac --- /dev/null +++ b/LibskycoinNetTest/cipher_address.cs @@ -0,0 +1,14 @@ +using System; +using NUnit.Framework; +using skycoin; +namespace LibskycoinNetTest { + [TestFixture ()] + public class cipher_address { + [Test ()] + public void TestCase () { + // var addr = new skycoin.secp256k1go__XY(); + Assert.AreEqual (null, null); + + } + } +} \ No newline at end of file diff --git a/Makefile b/Makefile index 9e131f5f..f1c3e3bd 100644 --- a/Makefile +++ b/Makefile @@ -50,3 +50,11 @@ build-libskycoin-net: gcc -shared skycoinnet_wrap.o $(BUILDLIBC_DIR)/libskycoin.a -o libskycoin.so mv libskycoin.so LibskycoinNetTest/bin/Release #mono-csc -out:skycoin_net.exe LibskycoinNet/skycoin/*.cs + +install: + nuget restore LibskycoinNet.sln + nuget install NUnit.Runners -Version 2.6.4 -OutputDirectory testrunner + +test: build-libc build-swig build-libskycoin-net install + msbuild LibskycoinNet.sln + mono ./testrunner/NUnit.Runners.2.6.4/tools/nunit-console.exe ./LibskycoinNetTest/bin/Debug/LibskycoinNetTest.dll \ No newline at end of file From 7bbc17ea504a811de5cc53a6f17ee06c0349237b Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Fri, 24 Aug 2018 15:46:34 -0400 Subject: [PATCH 08/73] [libnet][swig] refs #4 Testing request in travis --- LibskycoinNetTest/LibskycoinNetTest.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/LibskycoinNetTest/LibskycoinNetTest.cs b/LibskycoinNetTest/LibskycoinNetTest.cs index 1c082577..676eb618 100644 --- a/LibskycoinNetTest/LibskycoinNetTest.cs +++ b/LibskycoinNetTest/LibskycoinNetTest.cs @@ -14,8 +14,10 @@ public LibskycoinNetTest() [Test] public void SumTest(){ - - Assert.AreEqual(0, 0); + var xyz = new skycoin.secp256k1go__XYZ(); + var xy = new skycoin.secp256k1go__XY(); + uint error = skycoin.skycoin.SKY_secp256k1go_XYZ_SetXY(xyz, xy); + Assert.AreEqual(error, 0); } } From 6e8feb668464a34d9ee1675aacf0c9cd80d2281b Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Fri, 24 Aug 2018 16:44:50 -0400 Subject: [PATCH 09/73] [libnet][swig] refs #4 Added make test --- LibskycoinNet/skycoin/skycoin.cs | 2206 ++--- LibskycoinNet/skycoin/skycoinPINVOKE.cs | 1880 ++-- LibskycoinNet/skycoin/skycoinnet_wrap.c | 10156 ++++++++++---------- LibskycoinNetTest/check_cipher_address.cs | 6 +- LibskycoinNetTest/cipher_address.cs | 2 +- Makefile | 11 +- swig/include/libskycoin.h | 1094 +-- 7 files changed, 7680 insertions(+), 7675 deletions(-) diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs index a22fa53a..6a894ed5 100644 --- a/LibskycoinNet/skycoin/skycoin.cs +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -35,1816 +35,1919 @@ public static int equalBlockHeaders(coin__BlockHeader bh1, coin__BlockHeader bh2 return ret; } - public static uint SKY_base58_String2Hex(_GoString_ p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_base58_String2Hex(_GoString_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_coin_NewBlock(SWIGTYPE_p_Block__Handle p0, ulong p1, SWIGTYPE_p_a_32__GoUint8_ p2, SWIGTYPE_p_Transactions__Handle p3, SWIGTYPE_p_FeeCalculator p4, SWIGTYPE_p_Block__Handle p5) { + uint ret = skycoinPINVOKE.SKY_coin_NewBlock(SWIGTYPE_p_Block__Handle.getCPtr(p0), p1, SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2), SWIGTYPE_p_Transactions__Handle.getCPtr(p3), SWIGTYPE_p_FeeCalculator.getCPtr(p4), SWIGTYPE_p_Block__Handle.getCPtr(p5)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_base58_Base58_ToInt(_GoString_ p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_base58_Base58_ToInt(_GoString_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_coin_SignedBlock_VerifySignature(coin__SignedBlock p0, SWIGTYPE_p_a_33__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_SignedBlock_VerifySignature(coin__SignedBlock.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_NewGenesisBlock(cipher__Address p0, ulong p1, ulong p2, SWIGTYPE_p_Block__Handle p3) { + uint ret = skycoinPINVOKE.SKY_coin_NewGenesisBlock(cipher__Address.getCPtr(p0), p1, p2, SWIGTYPE_p_Block__Handle.getCPtr(p3)); + return ret; + } + + public static uint SKY_coin_Block_HashHeader(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Block_HashHeader(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_base58_Base58_ToHex(_GoString_ p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_base58_Base58_ToHex(_GoString_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_coin_Block_PreHashHeader(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Block_PreHashHeader(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_base58_Base58_Base582Int(_GoString_ p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_base58_Base58_Base582Int(_GoString_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_coin_Block_Time(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Block_Time(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_base58_Base582Hex(_GoString_ p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_base58_Base582Hex(_GoString_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_coin_Block_Seq(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Block_Seq(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_base58_Base58_BitHex(_GoString_ p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_base58_Base58_BitHex(_GoString_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_coin_Block_HashBody(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Block_HashBody(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_base58_Int2Base58(long p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_base58_Int2Base58(p0, SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_coin_Block_Size(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Block_Size(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_base58_Hex2Base58(GoSlice p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_base58_Hex2Base58(GoSlice.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_coin_Block_String(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Block_String(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_base58_Hex2Base58String(GoSlice p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_base58_Hex2Base58String(GoSlice.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_coin_Block_GetTransaction(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_Transaction__Handle p2, SWIGTYPE_p_unsigned_char p3) { + uint ret = skycoinPINVOKE.SKY_coin_Block_GetTransaction(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_Transaction__Handle.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_base58_Hex2Base58Str(GoSlice p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_base58_Hex2Base58Str(GoSlice.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_coin_NewBlockHeader(coin__BlockHeader p0, SWIGTYPE_p_a_32__GoUint8_ p1, ulong p2, ulong p3, SWIGTYPE_p_BlockBody__Handle p4, coin__BlockHeader p5) { + uint ret = skycoinPINVOKE.SKY_coin_NewBlockHeader(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), p2, p3, SWIGTYPE_p_BlockBody__Handle.getCPtr(p4), coin__BlockHeader.getCPtr(p5)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_wallet_NewReadableEntry(wallet__Entry p0, SWIGTYPE_p_ReadableEntry__Handle p1) { - uint ret = skycoinPINVOKE.SKY_wallet_NewReadableEntry(wallet__Entry.getCPtr(p0), SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p1)); + public static uint SKY_coin_BlockHeader_Hash(coin__BlockHeader p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_BlockHeader_Hash(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); return ret; } - public static uint SKY_wallet_LoadReadableEntry(_GoString_ p0, SWIGTYPE_p_ReadableEntry__Handle p1) { - uint ret = skycoinPINVOKE.SKY_wallet_LoadReadableEntry(_GoString_.getCPtr(p0), SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p1)); + public static uint SKY_coin_BlockHeader_Bytes(coin__BlockHeader p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_BlockHeader_Bytes(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_BlockHeader_String(coin__BlockHeader p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_BlockHeader_String(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_BlockBody_Hash(SWIGTYPE_p_BlockBody__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Hash(SWIGTYPE_p_BlockBody__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_wallet_NewReadableEntryFromPubkey(_GoString_ p0, SWIGTYPE_p_ReadableEntry__Handle p1) { - uint ret = skycoinPINVOKE.SKY_wallet_NewReadableEntryFromPubkey(_GoString_.getCPtr(p0), SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p1)); + public static uint SKY_coin_BlockBody_Size(SWIGTYPE_p_BlockBody__Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Size(SWIGTYPE_p_BlockBody__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_BlockBody_Bytes(SWIGTYPE_p_BlockBody__Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Bytes(SWIGTYPE_p_BlockBody__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_wallet_ReadableEntry_Save(SWIGTYPE_p_ReadableEntry__Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_ReadableEntry_Save(SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + public static uint SKY_coin_CreateUnspents(coin__BlockHeader p0, SWIGTYPE_p_Transaction__Handle p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_CreateUnspents(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_wallet_LoadReadableWallet(_GoString_ p0, SWIGTYPE_p_ReadableWallet__Handle p1) { - uint ret = skycoinPINVOKE.SKY_wallet_LoadReadableWallet(_GoString_.getCPtr(p0), SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p1)); + public static uint SKY_coin_CreateUnspent(coin__BlockHeader p0, SWIGTYPE_p_Transaction__Handle p1, long p2, coin__UxOut p3) { + uint ret = skycoinPINVOKE.SKY_coin_CreateUnspent(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), p2, coin__UxOut.getCPtr(p3)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_wallet_ReadableWallet_Save(SWIGTYPE_p_ReadableWallet__Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_ReadableWallet_Save(SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + public static uint SKY_coin_GetBlockObject(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_p_coin__Block p1) { + uint ret = skycoinPINVOKE.SKY_coin_GetBlockObject(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_p_coin__Block.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_wallet_ReadableWallet_Load(SWIGTYPE_p_ReadableWallet__Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_ReadableWallet_Load(SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + public static uint SKY_coin_GetBlockBody(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_BlockBody__Handle p1) { + uint ret = skycoinPINVOKE.SKY_coin_GetBlockBody(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_BlockBody__Handle.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_wallet_ReadableWallet_Erase(SWIGTYPE_p_ReadableWallet__Handle p0) { - uint ret = skycoinPINVOKE.SKY_wallet_ReadableWallet_Erase(SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p0)); + public static uint SKY_coin_NewEmptyBlock(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_Block__Handle p1) { + uint ret = skycoinPINVOKE.SKY_coin_NewEmptyBlock(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_Block__Handle.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, SWIGTYPE_p_OutputsResult_Handle p2) { - uint ret = skycoinPINVOKE.SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_OutputsResult_Handle.getCPtr(p2)); + public static uint SKY_bip39_NewDefaultMnemomic(SWIGTYPE_p_GoString_ p0) { + uint ret = skycoinPINVOKE.SKY_bip39_NewDefaultMnemomic(SWIGTYPE_p_GoString_.getCPtr(p0)); + return ret; + } + + public static uint SKY_bip39_NewEntropy(long p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_bip39_NewEntropy(p0, SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_bip39_NewMnemonic(GoSlice p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_bip39_NewMnemonic(GoSlice.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cli_GetWalletOutputs(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_Wallet__Handle p1, SWIGTYPE_p_OutputsResult_Handle p2) { - uint ret = skycoinPINVOKE.SKY_cli_GetWalletOutputs(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_Wallet__Handle.getCPtr(p1), SWIGTYPE_p_OutputsResult_Handle.getCPtr(p2)); + public static uint SKY_bip39_MnemonicToByteArray(_GoString_ p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_bip39_MnemonicToByteArray(_GoString_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Field_String(secp256k1go__Field p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_String(secp256k1go__Field.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_bip39_IsMnemonicValid(_GoString_ p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_bip39_IsMnemonicValid(_GoString_.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Field_Print(secp256k1go__Field p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Print(secp256k1go__Field.getCPtr(p0), _GoString_.getCPtr(p1)); + public static uint SKY_api_NewClient(_GoString_ p0, SWIGTYPE_p_Client__Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_NewClient(_GoString_.getCPtr(p0), SWIGTYPE_p_Client__Handle.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Field_SetB32(secp256k1go__Field p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_SetB32(secp256k1go__Field.getCPtr(p0), GoSlice.getCPtr(p1)); + public static uint SKY_api_Client_CSRF(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_CSRF(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Field_SetBytes(secp256k1go__Field p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_SetBytes(secp256k1go__Field.getCPtr(p0), GoSlice.getCPtr(p1)); + public static uint SKY_api_Client_Version(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_Version(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Field_SetHex(secp256k1go__Field p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_SetHex(secp256k1go__Field.getCPtr(p0), _GoString_.getCPtr(p1)); + public static uint SKY_api_Client_Outputs(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_Outputs(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Field_IsOdd(secp256k1go__Field p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_IsOdd(secp256k1go__Field.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + public static uint SKY_api_Client_OutputsForAddresses(SWIGTYPE_p_Client__Handle p0, GoSlice p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_OutputsForAddresses(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Field_IsZero(secp256k1go__Field p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_IsZero(secp256k1go__Field.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + public static uint SKY_api_Client_OutputsForHashes(SWIGTYPE_p_Client__Handle p0, GoSlice p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_OutputsForHashes(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Field_SetInt(secp256k1go__Field p0, uint p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_SetInt(secp256k1go__Field.getCPtr(p0), p1); + public static uint SKY_api_Client_CoinSupply(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_CoinSupply(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Field_Normalize(secp256k1go__Field p0) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Normalize(secp256k1go__Field.getCPtr(p0)); + public static uint SKY_api_Client_BlockByHash(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_BlockByHash(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Field_GetB32(secp256k1go__Field p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_GetB32(secp256k1go__Field.getCPtr(p0), GoSlice.getCPtr(p1)); + public static uint SKY_api_Client_BlockBySeq(SWIGTYPE_p_Client__Handle p0, ulong p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_BlockBySeq(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1, SWIGTYPE_p_Handle.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Field_Equals(secp256k1go__Field p0, secp256k1go__Field p1, SWIGTYPE_p_unsigned_char p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Equals(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); + public static uint SKY_api_Client_Blocks(SWIGTYPE_p_Client__Handle p0, long p1, long p2, SWIGTYPE_p_Handle p3) { + uint ret = skycoinPINVOKE.SKY_api_Client_Blocks(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1, p2, SWIGTYPE_p_Handle.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Field_SetAdd(secp256k1go__Field p0, secp256k1go__Field p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_SetAdd(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1)); + public static uint SKY_api_Client_LastBlocks(SWIGTYPE_p_Client__Handle p0, long p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_LastBlocks(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1, SWIGTYPE_p_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Field_MulInt(secp256k1go__Field p0, uint p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_MulInt(secp256k1go__Field.getCPtr(p0), p1); + public static uint SKY_api_Client_BlockchainMetadata(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_BlockchainMetadata(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Field_Negate(secp256k1go__Field p0, secp256k1go__Field p1, uint p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Negate(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1), p2); + public static uint SKY_api_Client_BlockchainProgress(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_BlockchainProgress(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Field_Inv(secp256k1go__Field p0, secp256k1go__Field p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Inv(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1)); + public static uint SKY_api_Client_Balance(SWIGTYPE_p_Client__Handle p0, GoSlice p1, wallet__BalancePair p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_Balance(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), wallet__BalancePair.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Field_Sqrt(secp256k1go__Field p0, secp256k1go__Field p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Sqrt(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1)); + public static uint SKY_api_Client_UxOut(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_UxOut(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Field_InvVar(secp256k1go__Field p0, secp256k1go__Field p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_InvVar(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1)); + public static uint SKY_api_Client_AddressUxOuts(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_AddressUxOuts(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Field_Mul(secp256k1go__Field p0, secp256k1go__Field p1, secp256k1go__Field p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Mul(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1), secp256k1go__Field.getCPtr(p2)); + public static uint SKY_api_Client_Wallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_WalletResponse__Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_Wallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Field_Sqr(secp256k1go__Field p0, secp256k1go__Field p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Sqr(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1)); + public static uint SKY_api_Client_Wallets(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Wallets__Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_Wallets(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Wallets__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_NewWalletResponse(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_WalletResponse__Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_NewWalletResponse(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p1)); + public static uint SKY_api_Client_CreateUnencryptedWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, long p3, SWIGTYPE_p_WalletResponse__Handle p4) { + uint ret = skycoinPINVOKE.SKY_api_Client_CreateUnencryptedWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), p3, SWIGTYPE_p_WalletResponse__Handle.getCPtr(p4)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static long SKY_cipher_PubKeySlice_Len(SWIGTYPE_p_GoSlice_ p0) { - long ret = skycoinPINVOKE.SKY_cipher_PubKeySlice_Len(SWIGTYPE_p_GoSlice_.getCPtr(p0)); + public static uint SKY_api_Client_CreateEncryptedWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, _GoString_ p3, long p4, SWIGTYPE_p_WalletResponse__Handle p5) { + uint ret = skycoinPINVOKE.SKY_api_Client_CreateEncryptedWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), _GoString_.getCPtr(p3), p4, SWIGTYPE_p_WalletResponse__Handle.getCPtr(p5)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static byte SKY_cipher_PubKeySlice_Less(SWIGTYPE_p_GoSlice_ p0, long p1, long p2) { - byte ret = skycoinPINVOKE.SKY_cipher_PubKeySlice_Less(SWIGTYPE_p_GoSlice_.getCPtr(p0), p1, p2); + public static uint SKY_api_Client_NewWalletAddress(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, long p2, _GoString_ p3, SWIGTYPE_p_Strings__Handle p4) { + uint ret = skycoinPINVOKE.SKY_api_Client_NewWalletAddress(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p2, _GoString_.getCPtr(p3), SWIGTYPE_p_Strings__Handle.getCPtr(p4)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_PubKeySlice_Swap(SWIGTYPE_p_GoSlice_ p0, long p1, long p2) { - uint ret = skycoinPINVOKE.SKY_cipher_PubKeySlice_Swap(SWIGTYPE_p_GoSlice_.getCPtr(p0), p1, p2); + public static uint SKY_api_Client_WalletBalance(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, wallet__BalancePair p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_WalletBalance(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), wallet__BalancePair.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_RandByte(long p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_RandByte(p0, SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_api_Client_Spend(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, ulong p3, _GoString_ p4, SWIGTYPE_p_SpendResult_Handle p5) { + uint ret = skycoinPINVOKE.SKY_api_Client_Spend(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), p3, _GoString_.getCPtr(p4), SWIGTYPE_p_SpendResult_Handle.getCPtr(p5)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_NewPubKey(GoSlice p0, SWIGTYPE_p_a_33__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_NewPubKey(GoSlice.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); + public static uint SKY_api_Client_CreateTransaction(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1, SWIGTYPE_p_CreateTransactionResponse__Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_CreateTransaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1), SWIGTYPE_p_CreateTransactionResponse__Handle.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_MustPubKeyFromHex(_GoString_ p0, SWIGTYPE_p_a_33__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_MustPubKeyFromHex(_GoString_.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); + public static uint SKY_api_Client_WalletTransactions(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_WalletTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_PubKeyFromHex(_GoString_ p0, SWIGTYPE_p_a_33__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_PubKeyFromHex(_GoString_.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); + public static uint SKY_api_Client_UpdateWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_UpdateWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_PubKeyFromSecKey(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_a_33__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_PubKeyFromSecKey(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); + public static uint SKY_api_Client_WalletFolderName(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_WalletFolderName(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_PubKeyFromSig(SWIGTYPE_p_a_65__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_a_33__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_cipher_PubKeyFromSig(SWIGTYPE_p_a_65__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p2)); + public static uint SKY_api_Client_NewSeed(SWIGTYPE_p_Client__Handle p0, long p1, SWIGTYPE_p_GoString_ p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_NewSeed(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoString_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_PubKey_Verify(SWIGTYPE_p_a_33__GoUint8_ p0) { - uint ret = skycoinPINVOKE.SKY_cipher_PubKey_Verify(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0)); + public static uint SKY_api_Client_GetWalletSeed(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, SWIGTYPE_p_GoString_ p3) { + uint ret = skycoinPINVOKE.SKY_api_Client_GetWalletSeed(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), SWIGTYPE_p_GoString_.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_PubKey_Hex(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_PubKey_Hex(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_api_Client_NetworkConnection(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_NetworkConnection(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_PubKey_ToAddressHash(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_20__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_PubKey_ToAddressHash(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_20__GoUint8_.getCPtr(p1)); + public static uint SKY_api_Client_NetworkConnections(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_NetworkConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_NewSecKey(GoSlice p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_NewSecKey(GoSlice.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + public static uint SKY_api_Client_NetworkDefaultConnections(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_NetworkDefaultConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_MustSecKeyFromHex(_GoString_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_MustSecKeyFromHex(_GoString_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + public static uint SKY_api_Client_NetworkTrustedConnections(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_NetworkTrustedConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_SecKeyFromHex(_GoString_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_SecKeyFromHex(_GoString_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + public static uint SKY_api_Client_NetworkExchangeableConnections(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_NetworkExchangeableConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_SecKey_Verify(SWIGTYPE_p_a_32__GoUint8_ p0) { - uint ret = skycoinPINVOKE.SKY_cipher_SecKey_Verify(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0)); + public static uint SKY_api_Client_PendingTransactions(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_PendingTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_SecKey_Hex(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_SecKey_Hex(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_api_Client_Transaction(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_Transaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_ECDH(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_cipher_ECDH(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + public static uint SKY_api_Client_Transactions(SWIGTYPE_p_Client__Handle p0, GoSlice p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_Transactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_NewSig(GoSlice p0, SWIGTYPE_p_a_65__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_NewSig(GoSlice.getCPtr(p0), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1)); + public static uint SKY_api_Client_ConfirmedTransactions(SWIGTYPE_p_Client__Handle p0, GoSlice p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_ConfirmedTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_MustSigFromHex(_GoString_ p0, SWIGTYPE_p_a_65__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_MustSigFromHex(_GoString_.getCPtr(p0), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1)); + public static uint SKY_api_Client_UnconfirmedTransactions(SWIGTYPE_p_Client__Handle p0, GoSlice p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_UnconfirmedTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_SigFromHex(_GoString_ p0, SWIGTYPE_p_a_65__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_SigFromHex(_GoString_.getCPtr(p0), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1)); + public static uint SKY_api_Client_InjectTransaction(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_GoString_ p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_InjectTransaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_Sig_Hex(SWIGTYPE_p_a_65__GoUint8_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_Sig_Hex(SWIGTYPE_p_a_65__GoUint8_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_api_Client_ResendUnconfirmedTransactions(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_ResendUnconfirmedTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_SignHash(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_a_65__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_cipher_SignHash(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); + public static uint SKY_api_Client_RawTransaction(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_GoString_ p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_RawTransaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_ChkSig(cipher__Address p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_a_65__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_cipher_ChkSig(cipher__Address.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); + public static uint SKY_api_Client_AddressTransactions(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_AddressTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_VerifySignedHash(SWIGTYPE_p_a_65__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_VerifySignedHash(SWIGTYPE_p_a_65__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + public static uint SKY_api_Client_Richlist(SWIGTYPE_p_Client__Handle p0, api__RichlistParams p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_Richlist(SWIGTYPE_p_Client__Handle.getCPtr(p0), api__RichlistParams.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_VerifySignature(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_65__GoUint8_ p1, SWIGTYPE_p_a_32__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_cipher_VerifySignature(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); + public static uint SKY_api_Client_AddressCount(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_AddressCount(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_GenerateKeyPair(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_GenerateKeyPair(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + public static uint SKY_api_Client_UnloadWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_UnloadWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_GenerateDeterministicKeyPair(GoSlice p0, SWIGTYPE_p_a_33__GoUint8_ p1, SWIGTYPE_p_a_32__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_cipher_GenerateDeterministicKeyPair(GoSlice.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); + public static uint SKY_api_Client_Health(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_Health(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_EncryptWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, SWIGTYPE_p_WalletResponse__Handle p3) { + uint ret = skycoinPINVOKE.SKY_api_Client_EncryptWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_DecryptWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, SWIGTYPE_p_WalletResponse__Handle p3) { + uint ret = skycoinPINVOKE.SKY_api_Client_DecryptWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_XY_Print(secp256k1go__XY p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_Print(secp256k1go__XY.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_XY_ParsePubkey(secp256k1go__XY p0, GoSlice p1, SWIGTYPE_p_unsigned_char p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_ParsePubkey(secp256k1go__XY.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_XY_Bytes(secp256k1go__XY p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_Bytes(secp256k1go__XY.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_XY_BytesUncompressed(secp256k1go__XY p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_BytesUncompressed(secp256k1go__XY.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_XY_SetXY(secp256k1go__XY p0, secp256k1go__Field p1, secp256k1go__Field p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_SetXY(secp256k1go__XY.getCPtr(p0), secp256k1go__Field.getCPtr(p1), secp256k1go__Field.getCPtr(p2)); + return ret; + } + + public static uint SKY_secp256k1go_XY_IsValid(secp256k1go__XY p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_IsValid(secp256k1go__XY.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_XY_SetXYZ(secp256k1go__XY p0, secp256k1go__XYZ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_SetXYZ(secp256k1go__XY.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_XY_Neg(secp256k1go__XY p0, secp256k1go__XY p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_Neg(secp256k1go__XY.getCPtr(p0), secp256k1go__XY.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_XY_SetXO(secp256k1go__XY p0, secp256k1go__Field p1, byte p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_SetXO(secp256k1go__XY.getCPtr(p0), secp256k1go__Field.getCPtr(p1), p2); + return ret; + } + + public static uint SKY_secp256k1go_XY_AddXY(secp256k1go__XY p0, secp256k1go__XY p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_AddXY(secp256k1go__XY.getCPtr(p0), secp256k1go__XY.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_XY_GetPublicKey(secp256k1go__XY p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_GetPublicKey(secp256k1go__XY.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_api_NewWalletResponse(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_WalletResponse__Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_NewWalletResponse(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_DeterministicKeyPairIterator(GoSlice p0, SWIGTYPE_p_GoSlice_ p1, SWIGTYPE_p_a_33__GoUint8_ p2, SWIGTYPE_p_a_32__GoUint8_ p3) { - uint ret = skycoinPINVOKE.SKY_cipher_DeterministicKeyPairIterator(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p2), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p3)); + public static uint SKY_api_NewCreateTransactionResponse(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1, SWIGTYPE_p_CreateTransactionResponse__Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_NewCreateTransactionResponse(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_CreateTransactionResponse__Handle.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_GenerateDeterministicKeyPairs(GoSlice p0, long p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_cipher_GenerateDeterministicKeyPairs(GoSlice.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2)); + public static uint SKY_api_NewCreatedTransaction(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1, SWIGTYPE_p_CreatedTransaction__Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_NewCreatedTransaction(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_CreatedTransaction__Handle.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_GenerateDeterministicKeyPairsSeed(GoSlice p0, long p1, SWIGTYPE_p_GoSlice_ p2, SWIGTYPE_p_GoSlice_ p3) { - uint ret = skycoinPINVOKE.SKY_cipher_GenerateDeterministicKeyPairsSeed(GoSlice.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); + public static uint SKY_api_CreatedTransaction_ToTransaction(SWIGTYPE_p_CreatedTransaction__Handle p0, SWIGTYPE_p_Transaction__Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_CreatedTransaction_ToTransaction(SWIGTYPE_p_CreatedTransaction__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_TestSecKey(SWIGTYPE_p_a_32__GoUint8_ p0) { - uint ret = skycoinPINVOKE.SKY_cipher_TestSecKey(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0)); + public static uint SKY_api_NewCreatedTransactionOutput(coin__TransactionOutput p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_CreatedTransactionOutput__Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_NewCreatedTransactionOutput(coin__TransactionOutput.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_CreatedTransactionOutput__Handle.getCPtr(p2)); return ret; } - public static uint SKY_cipher_TestSecKeyHash(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_TestSecKeyHash(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + public static uint SKY_api_NewCreatedTransactionInput(wallet__UxBalance p0, SWIGTYPE_p_CreatedTransactionInput__Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_NewCreatedTransactionInput(wallet__UxBalance.getCPtr(p0), SWIGTYPE_p_CreatedTransactionInput__Handle.getCPtr(p1)); return ret; } - public static uint SKY_secp256k1go_DecompressPoint(GoSlice p0, byte p1, GoSlice p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_DecompressPoint(GoSlice.getCPtr(p0), p1, GoSlice.getCPtr(p2)); + public static uint SKY_wallet_NewError(GoInterface p0) { + uint ret = skycoinPINVOKE.SKY_wallet_NewError(GoInterface.getCPtr(p0)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_RecoverPublicKey(GoSlice p0, GoSlice p1, long p2, SWIGTYPE_p_GoSlice_ p3, SWIGTYPE_p_long_long p4) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_RecoverPublicKey(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), p2, SWIGTYPE_p_GoSlice_.getCPtr(p3), SWIGTYPE_p_long_long.getCPtr(p4)); + public static uint SKY_wallet_NewWallet(_GoString_ p0, SWIGTYPE_p_Options__Handle p1, SWIGTYPE_p_Wallet__Handle p2) { + uint ret = skycoinPINVOKE.SKY_wallet_NewWallet(_GoString_.getCPtr(p0), SWIGTYPE_p_Options__Handle.getCPtr(p1), SWIGTYPE_p_Wallet__Handle.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Multiply(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Multiply(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + public static uint SKY_wallet_Wallet_Lock(SWIGTYPE_p_Wallet__Handle p0, GoSlice p1, _GoString_ p2) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Lock(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), GoSlice.getCPtr(p1), _GoString_.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_BaseMultiply(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_BaseMultiply(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_wallet_Wallet_Unlock(SWIGTYPE_p_Wallet__Handle p0, GoSlice p1, SWIGTYPE_p_Wallet__Handle p2) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Unlock(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_Wallet__Handle.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_BaseMultiplyAdd(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_BaseMultiplyAdd(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + public static uint SKY_wallet_Load(_GoString_ p0, SWIGTYPE_p_Wallet__Handle p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Load(_GoString_.getCPtr(p0), SWIGTYPE_p_Wallet__Handle.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_GeneratePublicKey(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_GeneratePublicKey(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_wallet_Wallet_Save(SWIGTYPE_p_Wallet__Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Save(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_SeckeyIsValid(GoSlice p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_SeckeyIsValid(GoSlice.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_wallet_Wallet_Validate(SWIGTYPE_p_Wallet__Handle p0) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Validate(SWIGTYPE_p_Wallet__Handle.getCPtr(p0)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_PubkeyIsValid(GoSlice p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_PubkeyIsValid(GoSlice.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_wallet_Wallet_Type(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Type(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_file_InitDataDir(_GoString_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_file_InitDataDir(_GoString_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_wallet_Wallet_Version(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Version(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_file_UserHome(SWIGTYPE_p_GoString_ p0) { - uint ret = skycoinPINVOKE.SKY_file_UserHome(SWIGTYPE_p_GoString_.getCPtr(p0)); + public static uint SKY_wallet_Wallet_Filename(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Filename(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_file_ResolveResourceDirectory(_GoString_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_file_ResolveResourceDirectory(_GoString_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_wallet_Wallet_Label(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Label(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_file_DetermineResourcePath(_GoString_ p0, _GoString_ p1, _GoString_ p2, SWIGTYPE_p_GoString_ p3) { - uint ret = skycoinPINVOKE.SKY_file_DetermineResourcePath(_GoString_.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), SWIGTYPE_p_GoString_.getCPtr(p3)); + public static uint SKY_wallet_Wallet_IsEncrypted(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_IsEncrypted(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1_SumSHA256(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1_SumSHA256(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_wallet_Wallet_GenerateAddresses(SWIGTYPE_p_Wallet__Handle p0, ulong p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GenerateAddresses(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1_RandByte(long p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1_RandByte(p0, SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_wallet_Wallet_GetAddresses(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GetAddresses(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_NewCreateTransactionResponse(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1, SWIGTYPE_p_CreateTransactionResponse__Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_NewCreateTransactionResponse(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_CreateTransactionResponse__Handle.getCPtr(p2)); + public static uint SKY_wallet_Wallet_GetEntry(SWIGTYPE_p_Wallet__Handle p0, cipher__Address p1, wallet__Entry p2, SWIGTYPE_p_unsigned_char p3) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GetEntry(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), cipher__Address.getCPtr(p1), wallet__Entry.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_NewCreatedTransaction(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1, SWIGTYPE_p_CreatedTransaction__Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_NewCreatedTransaction(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_CreatedTransaction__Handle.getCPtr(p2)); + public static uint SKY_wallet_Wallet_AddEntry(SWIGTYPE_p_Wallet__Handle p0, wallet__Entry p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_AddEntry(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), wallet__Entry.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_CreatedTransaction_ToTransaction(SWIGTYPE_p_CreatedTransaction__Handle p0, SWIGTYPE_p_Transaction__Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_CreatedTransaction_ToTransaction(SWIGTYPE_p_CreatedTransaction__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_wallet_DistributeSpendHours(ulong p0, ulong p1, byte p2, SWIGTYPE_p_unsigned_long_long p3, SWIGTYPE_p_GoSlice_ p4, SWIGTYPE_p_unsigned_long_long p5) { + uint ret = skycoinPINVOKE.SKY_wallet_DistributeSpendHours(p0, p1, p2, SWIGTYPE_p_unsigned_long_long.getCPtr(p3), SWIGTYPE_p_GoSlice_.getCPtr(p4), SWIGTYPE_p_unsigned_long_long.getCPtr(p5)); return ret; } - public static uint SKY_api_NewCreatedTransactionOutput(coin__TransactionOutput p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_CreatedTransactionOutput__Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_NewCreatedTransactionOutput(coin__TransactionOutput.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_CreatedTransactionOutput__Handle.getCPtr(p2)); + public static uint SKY_wallet_DistributeCoinHoursProportional(GoSlice p0, ulong p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_wallet_DistributeCoinHoursProportional(GoSlice.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_NewCreatedTransactionInput(wallet__UxBalance p0, SWIGTYPE_p_CreatedTransactionInput__Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_NewCreatedTransactionInput(wallet__UxBalance.getCPtr(p0), SWIGTYPE_p_CreatedTransactionInput__Handle.getCPtr(p1)); + public static uint SKY_wallet_NewUxBalances(ulong p0, SWIGTYPE_p_GoSlice_ p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_wallet_NewUxBalances(p0, SWIGTYPE_p_GoSlice_.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); return ret; } - public static uint SKY_browser_Open(_GoString_ p0) { - uint ret = skycoinPINVOKE.SKY_browser_Open(_GoString_.getCPtr(p0)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_wallet_NewUxBalance(ulong p0, coin__UxOut p1, wallet__UxBalance p2) { + uint ret = skycoinPINVOKE.SKY_wallet_NewUxBalance(p0, coin__UxOut.getCPtr(p1), wallet__UxBalance.getCPtr(p2)); return ret; } - public static uint SKY_cipher_DecodeBase58Address(_GoString_ p0, cipher__Address p1) { - uint ret = skycoinPINVOKE.SKY_cipher_DecodeBase58Address(_GoString_.getCPtr(p0), cipher__Address.getCPtr(p1)); + public static uint SKY_wallet_ChooseSpendsMinimizeUxOuts(GoSlice p0, ulong p1, ulong p2, SWIGTYPE_p_GoSlice_ p3) { + uint ret = skycoinPINVOKE.SKY_wallet_ChooseSpendsMinimizeUxOuts(GoSlice.getCPtr(p0), p1, p2, SWIGTYPE_p_GoSlice_.getCPtr(p3)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_MustDecodeBase58Address(_GoString_ p0, cipher__Address p1) { - uint ret = skycoinPINVOKE.SKY_cipher_MustDecodeBase58Address(_GoString_.getCPtr(p0), cipher__Address.getCPtr(p1)); + public static uint SKY_wallet_ChooseSpendsMaximizeUxOuts(GoSlice p0, ulong p1, ulong p2, SWIGTYPE_p_GoSlice_ p3) { + uint ret = skycoinPINVOKE.SKY_wallet_ChooseSpendsMaximizeUxOuts(GoSlice.getCPtr(p0), p1, p2, SWIGTYPE_p_GoSlice_.getCPtr(p3)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_BitcoinMustDecodeBase58Address(_GoString_ p0, cipher__Address p1) { - uint ret = skycoinPINVOKE.SKY_cipher_BitcoinMustDecodeBase58Address(_GoString_.getCPtr(p0), cipher__Address.getCPtr(p1)); + public static uint SKY_cli_CheckWalletBalance(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, SWIGTYPE_p_BalanceResult_Handle p2) { + uint ret = skycoinPINVOKE.SKY_cli_CheckWalletBalance(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_BalanceResult_Handle.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_AddressFromBytes(GoSlice p0, cipher__Address p1) { - uint ret = skycoinPINVOKE.SKY_cipher_AddressFromBytes(GoSlice.getCPtr(p0), cipher__Address.getCPtr(p1)); + public static uint SKY_cli_GetBalanceOfAddresses(SWIGTYPE_p_WebRpcClient__Handle p0, GoSlice p1, SWIGTYPE_p_BalanceResult_Handle p2) { + uint ret = skycoinPINVOKE.SKY_cli_GetBalanceOfAddresses(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_BalanceResult_Handle.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_AddressFromPubKey(SWIGTYPE_p_a_33__GoUint8_ p0, cipher__Address p1) { - uint ret = skycoinPINVOKE.SKY_cipher_AddressFromPubKey(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), cipher__Address.getCPtr(p1)); + public static uint SKY_wallet_NewNotesFilename(SWIGTYPE_p_GoString_ p0) { + uint ret = skycoinPINVOKE.SKY_wallet_NewNotesFilename(SWIGTYPE_p_GoString_.getCPtr(p0)); return ret; } - public static uint SKY_cipher_AddressFromSecKey(SWIGTYPE_p_a_32__GoUint8_ p0, cipher__Address p1) { - uint ret = skycoinPINVOKE.SKY_cipher_AddressFromSecKey(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), cipher__Address.getCPtr(p1)); + public static uint SKY_wallet_LoadNotes(_GoString_ p0, SWIGTYPE_p_WalletNotes_Handle p1) { + uint ret = skycoinPINVOKE.SKY_wallet_LoadNotes(_GoString_.getCPtr(p0), SWIGTYPE_p_WalletNotes_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_BitcoinDecodeBase58Address(_GoString_ p0, cipher__Address p1) { - uint ret = skycoinPINVOKE.SKY_cipher_BitcoinDecodeBase58Address(_GoString_.getCPtr(p0), cipher__Address.getCPtr(p1)); + public static uint SKY_wallet_LoadReadableNotes(_GoString_ p0, SWIGTYPE_p_WalletReadableNotes_Handle p1) { + uint ret = skycoinPINVOKE.SKY_wallet_LoadReadableNotes(_GoString_.getCPtr(p0), SWIGTYPE_p_WalletReadableNotes_Handle.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_MustAddressFromBytes(GoSlice p0, cipher__Address p1) { - uint ret = skycoinPINVOKE.SKY_cipher_MustAddressFromBytes(GoSlice.getCPtr(p0), cipher__Address.getCPtr(p1)); + public static uint SKY_wallet_ReadableNotes_Load(SWIGTYPE_p_WalletReadableNotes_Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_ReadableNotes_Load(SWIGTYPE_p_WalletReadableNotes_Handle.getCPtr(p0), _GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_Address_Bytes(cipher__Address p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_Address_Bytes(cipher__Address.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_wallet_ReadableNotes_ToNotes(SWIGTYPE_p_WalletReadableNotes_Handle p0, SWIGTYPE_p_WalletNotes_Handle p1) { + uint ret = skycoinPINVOKE.SKY_wallet_ReadableNotes_ToNotes(SWIGTYPE_p_WalletReadableNotes_Handle.getCPtr(p0), SWIGTYPE_p_WalletNotes_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_Address_Null(cipher__Address p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_cipher_Address_Null(cipher__Address.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + public static uint SKY_wallet_ReadableNotes_Save(SWIGTYPE_p_WalletReadableNotes_Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_ReadableNotes_Save(SWIGTYPE_p_WalletReadableNotes_Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_Address_BitcoinBytes(cipher__Address p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_Address_BitcoinBytes(cipher__Address.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_wallet_NewReadableNote(wallet__Note p0, wallet__ReadableNote p1) { + uint ret = skycoinPINVOKE.SKY_wallet_NewReadableNote(wallet__Note.getCPtr(p0), wallet__ReadableNote.getCPtr(p1)); return ret; } - public static uint SKY_cipher_Address_Verify(cipher__Address p0, SWIGTYPE_p_a_33__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_Address_Verify(cipher__Address.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); + public static uint SKY_wallet_NewReadableNotesFromNotes(SWIGTYPE_p_WalletNotes_Handle p0, SWIGTYPE_p_WalletReadableNotes_Handle p1) { + uint ret = skycoinPINVOKE.SKY_wallet_NewReadableNotesFromNotes(SWIGTYPE_p_WalletNotes_Handle.getCPtr(p0), SWIGTYPE_p_WalletReadableNotes_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_Address_String(cipher__Address p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_Address_String(cipher__Address.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_wallet_Notes_Save(SWIGTYPE_p_WalletNotes_Handle p0, _GoString_ p1, _GoString_ p2) { + uint ret = skycoinPINVOKE.SKY_wallet_Notes_Save(SWIGTYPE_p_WalletNotes_Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_Address_BitcoinString(cipher__Address p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_Address_BitcoinString(cipher__Address.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_wallet_Notes_SaveNote(SWIGTYPE_p_WalletNotes_Handle p0, _GoString_ p1, wallet__Note p2) { + uint ret = skycoinPINVOKE.SKY_wallet_Notes_SaveNote(SWIGTYPE_p_WalletNotes_Handle.getCPtr(p0), _GoString_.getCPtr(p1), wallet__Note.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_Address_Checksum(cipher__Address p0, SWIGTYPE_p_a_4__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_Address_Checksum(cipher__Address.getCPtr(p0), SWIGTYPE_p_a_4__GoUint8_.getCPtr(p1)); + public static uint SKY_wallet_Notes_ToReadable(SWIGTYPE_p_WalletNotes_Handle p0, SWIGTYPE_p_WalletReadableNotes_Handle p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Notes_ToReadable(SWIGTYPE_p_WalletNotes_Handle.getCPtr(p0), SWIGTYPE_p_WalletReadableNotes_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_Address_BitcoinChecksum(cipher__Address p0, SWIGTYPE_p_a_4__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_Address_BitcoinChecksum(cipher__Address.getCPtr(p0), SWIGTYPE_p_a_4__GoUint8_.getCPtr(p1)); + public static uint SKY_wallet_NotesFileExist(_GoString_ p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_wallet_NotesFileExist(_GoString_.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_BitcoinAddressFromPubkey(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_BitcoinAddressFromPubkey(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_wallet_CreateNoteFileIfNotExist(_GoString_ p0) { + uint ret = skycoinPINVOKE.SKY_wallet_CreateNoteFileIfNotExist(_GoString_.getCPtr(p0)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_BitcoinWalletImportFormatFromSeckey(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_BitcoinWalletImportFormatFromSeckey(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_wallet_NewReadableEntry(wallet__Entry p0, SWIGTYPE_p_ReadableEntry__Handle p1) { + uint ret = skycoinPINVOKE.SKY_wallet_NewReadableEntry(wallet__Entry.getCPtr(p0), SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p1)); return ret; } - public static uint SKY_cipher_BitcoinAddressFromBytes(GoSlice p0, cipher__Address p1) { - uint ret = skycoinPINVOKE.SKY_cipher_BitcoinAddressFromBytes(GoSlice.getCPtr(p0), cipher__Address.getCPtr(p1)); + public static uint SKY_wallet_LoadReadableEntry(_GoString_ p0, SWIGTYPE_p_ReadableEntry__Handle p1) { + uint ret = skycoinPINVOKE.SKY_wallet_LoadReadableEntry(_GoString_.getCPtr(p0), SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_SecKeyFromWalletImportFormat(_GoString_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_SecKeyFromWalletImportFormat(_GoString_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + public static uint SKY_wallet_NewReadableEntryFromPubkey(_GoString_ p0, SWIGTYPE_p_ReadableEntry__Handle p1) { + uint ret = skycoinPINVOKE.SKY_wallet_NewReadableEntryFromPubkey(_GoString_.getCPtr(p0), SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_MustSecKeyFromWalletImportFormat(_GoString_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_MustSecKeyFromWalletImportFormat(_GoString_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + public static uint SKY_wallet_ReadableEntry_Save(SWIGTYPE_p_ReadableEntry__Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_ReadableEntry_Save(SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_testutil_MakeAddress(cipher__Address p0) { - uint ret = skycoinPINVOKE.SKY_testutil_MakeAddress(cipher__Address.getCPtr(p0)); - return ret; - } - - public static uint SKY_cli_CreateRawTxFromWallet(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, _GoString_ p2, GoSlice p3, SWIGTYPE_p_PasswordReader__Handle p4, SWIGTYPE_p_Transaction__Handle p5) { - uint ret = skycoinPINVOKE.SKY_cli_CreateRawTxFromWallet(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), GoSlice.getCPtr(p3), SWIGTYPE_p_PasswordReader__Handle.getCPtr(p4), SWIGTYPE_p_Transaction__Handle.getCPtr(p5)); + public static uint SKY_wallet_LoadReadableWallet(_GoString_ p0, SWIGTYPE_p_ReadableWallet__Handle p1) { + uint ret = skycoinPINVOKE.SKY_wallet_LoadReadableWallet(_GoString_.getCPtr(p0), SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cli_CreateRawTxFromAddress(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, _GoString_ p2, _GoString_ p3, GoSlice p4, SWIGTYPE_p_PasswordReader__Handle p5, SWIGTYPE_p_Transaction__Handle p6) { - uint ret = skycoinPINVOKE.SKY_cli_CreateRawTxFromAddress(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), _GoString_.getCPtr(p3), GoSlice.getCPtr(p4), SWIGTYPE_p_PasswordReader__Handle.getCPtr(p5), SWIGTYPE_p_Transaction__Handle.getCPtr(p6)); + public static uint SKY_wallet_ReadableWallet_Save(SWIGTYPE_p_ReadableWallet__Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_ReadableWallet_Save(SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cli_CreateRawTx(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_Wallet__Handle p1, GoSlice p2, _GoString_ p3, GoSlice p4, GoSlice p5, SWIGTYPE_p_Transaction__Handle p6) { - uint ret = skycoinPINVOKE.SKY_cli_CreateRawTx(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_Wallet__Handle.getCPtr(p1), GoSlice.getCPtr(p2), _GoString_.getCPtr(p3), GoSlice.getCPtr(p4), GoSlice.getCPtr(p5), SWIGTYPE_p_Transaction__Handle.getCPtr(p6)); + public static uint SKY_wallet_ReadableWallet_Load(SWIGTYPE_p_ReadableWallet__Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_ReadableWallet_Load(SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cli_NewTransaction(GoSlice p0, GoSlice p1, GoSlice p2, SWIGTYPE_p_Transaction__Handle p3) { - uint ret = skycoinPINVOKE.SKY_cli_NewTransaction(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), SWIGTYPE_p_Transaction__Handle.getCPtr(p3)); + public static uint SKY_wallet_ReadableWallet_Erase(SWIGTYPE_p_ReadableWallet__Handle p0) { + uint ret = skycoinPINVOKE.SKY_wallet_ReadableWallet_Erase(SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p0)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_apputil_CatchInterruptPanic() { - uint ret = skycoinPINVOKE.SKY_apputil_CatchInterruptPanic(); - return ret; - } - - public static uint SKY_apputil_CatchDebug() { - uint ret = skycoinPINVOKE.SKY_apputil_CatchDebug(); + public static uint SKY_secp256k1go_DecompressPoint(GoSlice p0, byte p1, GoSlice p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_DecompressPoint(GoSlice.getCPtr(p0), p1, GoSlice.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_apputil_PrintProgramStatus() { - uint ret = skycoinPINVOKE.SKY_apputil_PrintProgramStatus(); + public static uint SKY_secp256k1go_RecoverPublicKey(GoSlice p0, GoSlice p1, long p2, SWIGTYPE_p_GoSlice_ p3, SWIGTYPE_p_long_long p4) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_RecoverPublicKey(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), p2, SWIGTYPE_p_GoSlice_.getCPtr(p3), SWIGTYPE_p_long_long.getCPtr(p4)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_utc_UnixNow(SWIGTYPE_p_long_long p0) { - uint ret = skycoinPINVOKE.SKY_utc_UnixNow(SWIGTYPE_p_long_long.getCPtr(p0)); + public static uint SKY_secp256k1go_Multiply(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Multiply(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_httphelper_Address_UnmarshalJSON(httphelper__Address p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_httphelper_Address_UnmarshalJSON(httphelper__Address.getCPtr(p0), GoSlice.getCPtr(p1)); + public static uint SKY_secp256k1go_BaseMultiply(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_BaseMultiply(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_httphelper_Address_MarshalJSON(httphelper__Address p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_httphelper_Address_MarshalJSON(httphelper__Address.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_secp256k1go_BaseMultiplyAdd(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_BaseMultiplyAdd(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_httphelper_Coins_UnmarshalJSON(SWIGTYPE_p_GoUint64_ p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_httphelper_Coins_UnmarshalJSON(SWIGTYPE_p_GoUint64_.getCPtr(p0), GoSlice.getCPtr(p1)); + public static uint SKY_secp256k1go_GeneratePublicKey(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_GeneratePublicKey(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_httphelper_Coins_MarshalJSON(SWIGTYPE_p_GoUint64_ p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_httphelper_Coins_MarshalJSON(SWIGTYPE_p_GoUint64_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_secp256k1go_SeckeyIsValid(GoSlice p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_SeckeyIsValid(GoSlice.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_httphelper_Coins_Value(SWIGTYPE_p_GoUint64_ p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_httphelper_Coins_Value(SWIGTYPE_p_GoUint64_.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static uint SKY_secp256k1go_PubkeyIsValid(GoSlice p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_PubkeyIsValid(GoSlice.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_httphelper_Hours_UnmarshalJSON(SWIGTYPE_p_GoUint64_ p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_httphelper_Hours_UnmarshalJSON(SWIGTYPE_p_GoUint64_.getCPtr(p0), GoSlice.getCPtr(p1)); + public static uint SKY_base58_String2Hex(_GoString_ p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_base58_String2Hex(_GoString_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_httphelper_Hours_MarshalJSON(SWIGTYPE_p_GoUint64_ p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_httphelper_Hours_MarshalJSON(SWIGTYPE_p_GoUint64_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_base58_Base58_ToInt(_GoString_ p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_base58_Base58_ToInt(_GoString_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_httphelper_Hours_Value(SWIGTYPE_p_GoUint64_ p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_httphelper_Hours_Value(SWIGTYPE_p_GoUint64_.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static uint SKY_base58_Base58_ToHex(_GoString_ p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_base58_Base58_ToHex(_GoString_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cli_CheckWalletBalance(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, SWIGTYPE_p_BalanceResult_Handle p2) { - uint ret = skycoinPINVOKE.SKY_cli_CheckWalletBalance(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_BalanceResult_Handle.getCPtr(p2)); + public static uint SKY_base58_Base58_Base582Int(_GoString_ p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_base58_Base58_Base582Int(_GoString_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cli_GetBalanceOfAddresses(SWIGTYPE_p_WebRpcClient__Handle p0, GoSlice p1, SWIGTYPE_p_BalanceResult_Handle p2) { - uint ret = skycoinPINVOKE.SKY_cli_GetBalanceOfAddresses(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_BalanceResult_Handle.getCPtr(p2)); + public static uint SKY_base58_Base582Hex(_GoString_ p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_base58_Base582Hex(_GoString_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_poly1305_Verify(SWIGTYPE_p_GoSlice_ p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2, SWIGTYPE_p_unsigned_char p3) { - uint ret = skycoinPINVOKE.SKY_poly1305_Verify(SWIGTYPE_p_GoSlice_.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); + public static uint SKY_base58_Base58_BitHex(_GoString_ p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_base58_Base58_BitHex(_GoString_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_NewClient(_GoString_ p0, SWIGTYPE_p_Client__Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_NewClient(_GoString_.getCPtr(p0), SWIGTYPE_p_Client__Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_base58_Int2Base58(long p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_base58_Int2Base58(p0, SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } - public static uint SKY_api_Client_CSRF(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_CSRF(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_base58_Hex2Base58(GoSlice p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_base58_Hex2Base58(GoSlice.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_Version(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_Version(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + public static uint SKY_base58_Hex2Base58String(GoSlice p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_base58_Hex2Base58String(GoSlice.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_Outputs(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_Outputs(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + public static uint SKY_base58_Hex2Base58Str(GoSlice p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_base58_Hex2Base58Str(GoSlice.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_OutputsForAddresses(SWIGTYPE_p_Client__Handle p0, GoSlice p1, SWIGTYPE_p_Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_OutputsForAddresses(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + public static uint SKY_cli_GenerateWallet(_GoString_ p0, SWIGTYPE_p_Options__Handle p1, ulong p2, SWIGTYPE_p_Wallet__Handle p3) { + uint ret = skycoinPINVOKE.SKY_cli_GenerateWallet(_GoString_.getCPtr(p0), SWIGTYPE_p_Options__Handle.getCPtr(p1), p2, SWIGTYPE_p_Wallet__Handle.getCPtr(p3)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_OutputsForHashes(SWIGTYPE_p_Client__Handle p0, GoSlice p1, SWIGTYPE_p_Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_OutputsForHashes(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_cli_MakeAlphanumericSeed(SWIGTYPE_p_GoString_ p0) { + uint ret = skycoinPINVOKE.SKY_cli_MakeAlphanumericSeed(SWIGTYPE_p_GoString_.getCPtr(p0)); return ret; } - public static uint SKY_api_Client_CoinSupply(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_CoinSupply(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + public static uint SKY_webrpc_NewClient(_GoString_ p0, SWIGTYPE_p_WebRpcClient__Handle p1) { + uint ret = skycoinPINVOKE.SKY_webrpc_NewClient(_GoString_.getCPtr(p0), SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_BlockByHash(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_BlockByHash(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + public static uint SKY_webrpc_Client_CSRF(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_CSRF(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_BlockBySeq(SWIGTYPE_p_Client__Handle p0, ulong p1, SWIGTYPE_p_Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_BlockBySeq(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1, SWIGTYPE_p_Handle.getCPtr(p2)); + public static uint SKY_webrpc_Client_GetUnspentOutputs(SWIGTYPE_p_WebRpcClient__Handle p0, GoSlice p1, SWIGTYPE_p_OutputsResult_Handle p2) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetUnspentOutputs(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_OutputsResult_Handle.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_Blocks(SWIGTYPE_p_Client__Handle p0, long p1, long p2, SWIGTYPE_p_Handle p3) { - uint ret = skycoinPINVOKE.SKY_api_Client_Blocks(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1, p2, SWIGTYPE_p_Handle.getCPtr(p3)); + public static uint SKY_webrpc_Client_InjectTransactionString(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, SWIGTYPE_p_GoString_ p2) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_InjectTransactionString(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_LastBlocks(SWIGTYPE_p_Client__Handle p0, long p1, SWIGTYPE_p_Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_LastBlocks(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1, SWIGTYPE_p_Handle.getCPtr(p2)); + public static uint SKY_webrpc_Client_InjectTransaction(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_Transaction__Handle p1, SWIGTYPE_p_GoString_ p2) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_InjectTransaction(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_BlockchainMetadata(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_BlockchainMetadata(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + public static uint SKY_webrpc_Client_GetStatus(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_StatusResult_Handle p1) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetStatus(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_StatusResult_Handle.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_BlockchainProgress(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_BlockchainProgress(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + public static uint SKY_webrpc_Client_GetTransactionByID(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, SWIGTYPE_p_TransactionResult_Handle p2) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetTransactionByID(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_TransactionResult_Handle.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_Balance(SWIGTYPE_p_Client__Handle p0, GoSlice p1, wallet__BalancePair p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_Balance(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), wallet__BalancePair.getCPtr(p2)); + public static uint SKY_webrpc_Client_GetAddressUxOuts(SWIGTYPE_p_WebRpcClient__Handle p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetAddressUxOuts(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_UxOut(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_UxOut(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + public static uint SKY_webrpc_Client_GetBlocks(SWIGTYPE_p_WebRpcClient__Handle p0, ulong p1, ulong p2, SWIGTYPE_p_GoSlice_ p3) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetBlocks(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), p1, p2, SWIGTYPE_p_GoSlice_.getCPtr(p3)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_AddressUxOuts(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_AddressUxOuts(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + public static uint SKY_webrpc_Client_GetBlocksBySeq(SWIGTYPE_p_WebRpcClient__Handle p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetBlocksBySeq(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_Wallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_WalletResponse__Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_Wallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p2)); + public static uint SKY_webrpc_Client_GetLastBlocks(SWIGTYPE_p_WebRpcClient__Handle p0, ulong p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetLastBlocks(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_Wallets(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Wallets__Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_Wallets(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Wallets__Handle.getCPtr(p1)); + public static uint SKY_browser_Open(_GoString_ p0) { + uint ret = skycoinPINVOKE.SKY_browser_Open(_GoString_.getCPtr(p0)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_CreateUnencryptedWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, long p3, SWIGTYPE_p_WalletResponse__Handle p4) { - uint ret = skycoinPINVOKE.SKY_api_Client_CreateUnencryptedWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), p3, SWIGTYPE_p_WalletResponse__Handle.getCPtr(p4)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_iputil_LocalhostIP(SWIGTYPE_p_GoString_ p0) { + uint ret = skycoinPINVOKE.SKY_iputil_LocalhostIP(SWIGTYPE_p_GoString_.getCPtr(p0)); return ret; } - public static uint SKY_api_Client_CreateEncryptedWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, _GoString_ p3, long p4, SWIGTYPE_p_WalletResponse__Handle p5) { - uint ret = skycoinPINVOKE.SKY_api_Client_CreateEncryptedWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), _GoString_.getCPtr(p3), p4, SWIGTYPE_p_WalletResponse__Handle.getCPtr(p5)); + public static uint SKY_iputil_IsLocalhost(_GoString_ p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_iputil_IsLocalhost(_GoString_.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_NewWalletAddress(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, long p2, _GoString_ p3, SWIGTYPE_p_Strings__Handle p4) { - uint ret = skycoinPINVOKE.SKY_api_Client_NewWalletAddress(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p2, _GoString_.getCPtr(p3), SWIGTYPE_p_Strings__Handle.getCPtr(p4)); + public static uint SKY_iputil_SplitAddr(_GoString_ p0, SWIGTYPE_p_GoString_ p1, SWIGTYPE_p_unsigned_short p2) { + uint ret = skycoinPINVOKE.SKY_iputil_SplitAddr(_GoString_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1), SWIGTYPE_p_unsigned_short.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_WalletBalance(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, wallet__BalancePair p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_WalletBalance(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), wallet__BalancePair.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_encoder_StructField_String(encoder__StructField p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_encoder_StructField_String(encoder__StructField.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } - public static uint SKY_api_Client_Spend(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, ulong p3, _GoString_ p4, SWIGTYPE_p_SpendResult_Handle p5) { - uint ret = skycoinPINVOKE.SKY_api_Client_Spend(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), p3, _GoString_.getCPtr(p4), SWIGTYPE_p_SpendResult_Handle.getCPtr(p5)); + public static uint SKY_encoder_ParseFields(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoStringMap_ p2) { + uint ret = skycoinPINVOKE.SKY_encoder_ParseFields(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoStringMap_.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_CreateTransaction(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1, SWIGTYPE_p_CreateTransactionResponse__Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_CreateTransaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1), SWIGTYPE_p_CreateTransactionResponse__Handle.getCPtr(p2)); + public static uint SKY_secp256k1_SumSHA256(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1_SumSHA256(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_WalletTransactions(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_WalletTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_secp256k1_RandByte(long p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1_RandByte(p0, SWIGTYPE_p_GoSlice_.getCPtr(p1)); return ret; } - public static uint SKY_api_Client_UpdateWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_UpdateWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2)); + public static uint SKY_cli_GenerateAddressesInFile(_GoString_ p0, ulong p1, SWIGTYPE_p_PasswordReader__Handle p2, SWIGTYPE_p_GoSlice_ p3) { + uint ret = skycoinPINVOKE.SKY_cli_GenerateAddressesInFile(_GoString_.getCPtr(p0), p1, SWIGTYPE_p_PasswordReader__Handle.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_WalletFolderName(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_WalletFolderName(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + public static uint SKY_cli_FormatAddressesAsJSON(GoSlice p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_FormatAddressesAsJSON(GoSlice.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_NewSeed(SWIGTYPE_p_Client__Handle p0, long p1, SWIGTYPE_p_GoString_ p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_NewSeed(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoString_.getCPtr(p2)); + public static uint SKY_cli_FormatAddressesAsJoinedArray(GoSlice p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_FormatAddressesAsJoinedArray(GoSlice.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_GetWalletSeed(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, SWIGTYPE_p_GoString_ p3) { - uint ret = skycoinPINVOKE.SKY_api_Client_GetWalletSeed(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), SWIGTYPE_p_GoString_.getCPtr(p3)); + public static uint SKY_cli_AddressesToStrings(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_AddressesToStrings(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_NetworkConnection(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_NetworkConnection(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_coin_AddUint64(ulong p0, ulong p1, SWIGTYPE_p_unsigned_long_long p2) { + uint ret = skycoinPINVOKE.SKY_coin_AddUint64(p0, p1, SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); return ret; } - public static uint SKY_api_Client_NetworkConnections(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_NetworkConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_coin_Uint64ToInt64(ulong p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Uint64ToInt64(p0, SWIGTYPE_p_long_long.getCPtr(p1)); return ret; } - public static uint SKY_api_Client_NetworkDefaultConnections(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_NetworkDefaultConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_coin_Int64ToUint64(long p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Int64ToUint64(p0, SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); return ret; } - public static uint SKY_api_Client_NetworkTrustedConnections(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_NetworkTrustedConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static long SKY_cipher_PubKeySlice_Len(SWIGTYPE_p_GoSlice_ p0) { + long ret = skycoinPINVOKE.SKY_cipher_PubKeySlice_Len(SWIGTYPE_p_GoSlice_.getCPtr(p0)); return ret; } - public static uint SKY_api_Client_NetworkExchangeableConnections(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_NetworkExchangeableConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static byte SKY_cipher_PubKeySlice_Less(SWIGTYPE_p_GoSlice_ p0, long p1, long p2) { + byte ret = skycoinPINVOKE.SKY_cipher_PubKeySlice_Less(SWIGTYPE_p_GoSlice_.getCPtr(p0), p1, p2); return ret; } - public static uint SKY_api_Client_PendingTransactions(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_PendingTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_cipher_PubKeySlice_Swap(SWIGTYPE_p_GoSlice_ p0, long p1, long p2) { + uint ret = skycoinPINVOKE.SKY_cipher_PubKeySlice_Swap(SWIGTYPE_p_GoSlice_.getCPtr(p0), p1, p2); return ret; } - public static uint SKY_api_Client_Transaction(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_Transaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_cipher_RandByte(long p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_RandByte(p0, SWIGTYPE_p_GoSlice_.getCPtr(p1)); return ret; } - public static uint SKY_api_Client_Transactions(SWIGTYPE_p_Client__Handle p0, GoSlice p1, SWIGTYPE_p_Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_Transactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + public static uint SKY_cipher_NewPubKey(GoSlice p0, SWIGTYPE_p_a_33__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_NewPubKey(GoSlice.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_ConfirmedTransactions(SWIGTYPE_p_Client__Handle p0, GoSlice p1, SWIGTYPE_p_Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_ConfirmedTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + public static uint SKY_cipher_MustPubKeyFromHex(_GoString_ p0, SWIGTYPE_p_a_33__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_MustPubKeyFromHex(_GoString_.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_UnconfirmedTransactions(SWIGTYPE_p_Client__Handle p0, GoSlice p1, SWIGTYPE_p_Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_UnconfirmedTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + public static uint SKY_cipher_PubKeyFromHex(_GoString_ p0, SWIGTYPE_p_a_33__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_PubKeyFromHex(_GoString_.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_InjectTransaction(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_GoString_ p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_InjectTransaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_cipher_PubKeyFromSecKey(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_a_33__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_PubKeyFromSecKey(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); return ret; } - public static uint SKY_api_Client_ResendUnconfirmedTransactions(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_ResendUnconfirmedTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_cipher_PubKeyFromSig(SWIGTYPE_p_a_65__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_a_33__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_cipher_PubKeyFromSig(SWIGTYPE_p_a_65__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p2)); return ret; } - public static uint SKY_api_Client_RawTransaction(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_GoString_ p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_RawTransaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_cipher_PubKey_Verify(SWIGTYPE_p_a_33__GoUint8_ p0) { + uint ret = skycoinPINVOKE.SKY_cipher_PubKey_Verify(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0)); return ret; } - public static uint SKY_api_Client_AddressTransactions(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_AddressTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_cipher_PubKey_Hex(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_PubKey_Hex(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } - public static uint SKY_api_Client_Richlist(SWIGTYPE_p_Client__Handle p0, api__RichlistParams p1, SWIGTYPE_p_Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_Richlist(SWIGTYPE_p_Client__Handle.getCPtr(p0), api__RichlistParams.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_cipher_PubKey_ToAddressHash(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_20__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_PubKey_ToAddressHash(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_20__GoUint8_.getCPtr(p1)); return ret; } - public static uint SKY_api_Client_AddressCount(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_AddressCount(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static uint SKY_cipher_NewSecKey(GoSlice p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_NewSecKey(GoSlice.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_UnloadWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_UnloadWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + public static uint SKY_cipher_MustSecKeyFromHex(_GoString_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_MustSecKeyFromHex(_GoString_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_Health(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_Health(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + public static uint SKY_cipher_SecKeyFromHex(_GoString_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_SecKeyFromHex(_GoString_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_EncryptWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, SWIGTYPE_p_WalletResponse__Handle p3) { - uint ret = skycoinPINVOKE.SKY_api_Client_EncryptWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_cipher_SecKey_Verify(SWIGTYPE_p_a_32__GoUint8_ p0) { + uint ret = skycoinPINVOKE.SKY_cipher_SecKey_Verify(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0)); return ret; } - public static uint SKY_api_Client_DecryptWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, SWIGTYPE_p_WalletResponse__Handle p3) { - uint ret = skycoinPINVOKE.SKY_api_Client_DecryptWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_cipher_SecKey_Hex(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_SecKey_Hex(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } - public static uint SKY_JsonEncode_Handle(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_JsonEncode_Handle(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_cipher_ECDH(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_cipher_ECDH(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); return ret; } - public static uint SKY_Handle_Progress_GetCurrent(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_Handle_Progress_GetCurrent(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static uint SKY_cipher_NewSig(GoSlice p0, SWIGTYPE_p_a_65__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_NewSig(GoSlice.getCPtr(p0), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_Handle_Block_GetHeadSeq(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_Handle_Block_GetHeadSeq(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static uint SKY_cipher_MustSigFromHex(_GoString_ p0, SWIGTYPE_p_a_65__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_MustSigFromHex(_GoString_.getCPtr(p0), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_Handle_Block_GetHeadHash(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_Handle_Block_GetHeadHash(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_cipher_SigFromHex(_GoString_ p0, SWIGTYPE_p_a_65__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_SigFromHex(_GoString_.getCPtr(p0), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_Handle_Block_GetPreviousBlockHash(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_Handle_Block_GetPreviousBlockHash(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_cipher_Sig_Hex(SWIGTYPE_p_a_65__GoUint8_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_Sig_Hex(SWIGTYPE_p_a_65__GoUint8_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } - public static uint SKY_Handle_Blocks_GetAt(SWIGTYPE_p_Handle p0, ulong p1, SWIGTYPE_p_Handle p2) { - uint ret = skycoinPINVOKE.SKY_Handle_Blocks_GetAt(SWIGTYPE_p_Handle.getCPtr(p0), p1, SWIGTYPE_p_Handle.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_cipher_SignHash(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_a_65__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_cipher_SignHash(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); return ret; } - public static uint SKY_Handle_Blocks_GetCount(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_Handle_Blocks_GetCount(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_cipher_ChkSig(cipher__Address p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_a_65__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_cipher_ChkSig(cipher__Address.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); return ret; } - public static uint SKY_Handle_Connections_GetCount(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_Handle_Connections_GetCount(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_cipher_VerifySignedHash(SWIGTYPE_p_a_65__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_VerifySignedHash(SWIGTYPE_p_a_65__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); return ret; } - public static uint SKY_Handle_Strings_GetCount(SWIGTYPE_p_Strings__Handle p0, SWIGTYPE_p_unsigned_int p1) { - uint ret = skycoinPINVOKE.SKY_Handle_Strings_GetCount(SWIGTYPE_p_Strings__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_cipher_VerifySignature(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_65__GoUint8_ p1, SWIGTYPE_p_a_32__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_cipher_VerifySignature(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); return ret; } - public static uint SKY_Handle_Strings_Sort(SWIGTYPE_p_Strings__Handle p0) { - uint ret = skycoinPINVOKE.SKY_Handle_Strings_Sort(SWIGTYPE_p_Strings__Handle.getCPtr(p0)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_cipher_GenerateKeyPair(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_GenerateKeyPair(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); return ret; } - public static uint SKY_Handle_Strings_GetAt(SWIGTYPE_p_Strings__Handle p0, long p1, SWIGTYPE_p_GoString_ p2) { - uint ret = skycoinPINVOKE.SKY_Handle_Strings_GetAt(SWIGTYPE_p_Strings__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoString_.getCPtr(p2)); + public static uint SKY_cipher_GenerateDeterministicKeyPair(GoSlice p0, SWIGTYPE_p_a_33__GoUint8_ p1, SWIGTYPE_p_a_32__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_cipher_GenerateDeterministicKeyPair(GoSlice.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Handle_Client_GetWalletDir(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletDir(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_cipher_DeterministicKeyPairIterator(GoSlice p0, SWIGTYPE_p_GoSlice_ p1, SWIGTYPE_p_a_33__GoUint8_ p2, SWIGTYPE_p_a_32__GoUint8_ p3) { + uint ret = skycoinPINVOKE.SKY_cipher_DeterministicKeyPairIterator(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p2), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p3)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Handle_Client_GetWalletFileName(SWIGTYPE_p_WalletResponse__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletFileName(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_cipher_GenerateDeterministicKeyPairs(GoSlice p0, long p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_cipher_GenerateDeterministicKeyPairs(GoSlice.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Handle_Client_GetWalletLabel(SWIGTYPE_p_WalletResponse__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletLabel(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_cipher_GenerateDeterministicKeyPairsSeed(GoSlice p0, long p1, SWIGTYPE_p_GoSlice_ p2, SWIGTYPE_p_GoSlice_ p3) { + uint ret = skycoinPINVOKE.SKY_cipher_GenerateDeterministicKeyPairsSeed(GoSlice.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Handle_Client_GetWalletFullPath(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_WalletResponse__Handle p1, SWIGTYPE_p_GoString_ p2) { - uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletFullPath(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_cipher_TestSecKey(SWIGTYPE_p_a_32__GoUint8_ p0) { + uint ret = skycoinPINVOKE.SKY_cipher_TestSecKey(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0)); return ret; } - public static uint SKY_api_Handle_GetWalletMeta(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoStringMap_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletMeta(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoStringMap_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_cipher_TestSecKeyHash(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_TestSecKeyHash(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); return ret; } - public static uint SKY_api_Handle_GetWalletEntriesCount(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_unsigned_int p1) { - uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletEntriesCount(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_secp256k1go_Signature_Create(SWIGTYPE_p_Signature_Handle p0) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Create(SWIGTYPE_p_Signature_Handle.getCPtr(p0)); return ret; } - public static uint SKY_api_Handle_Client_GetWalletResponseEntriesCount(SWIGTYPE_p_WalletResponse__Handle p0, SWIGTYPE_p_unsigned_int p1) { - uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletResponseEntriesCount(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); + public static uint SKY_secp256k1go_Signature_GetR(SWIGTYPE_p_Signature_Handle p0, SWIGTYPE_p_Number_Handle p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_GetR(SWIGTYPE_p_Signature_Handle.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Handle_WalletGetEntry(SWIGTYPE_p_Wallet__Handle p0, uint p1, cipher__Address p2, SWIGTYPE_p_a_33__GoUint8_ p3) { - uint ret = skycoinPINVOKE.SKY_api_Handle_WalletGetEntry(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), p1, cipher__Address.getCPtr(p2), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p3)); + public static uint SKY_secp256k1go_Signature_GetS(SWIGTYPE_p_Signature_Handle p0, SWIGTYPE_p_Number_Handle p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_GetS(SWIGTYPE_p_Signature_Handle.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Handle_WalletResponseGetEntry(SWIGTYPE_p_WalletResponse__Handle p0, uint p1, SWIGTYPE_p_GoString_ p2, SWIGTYPE_p_GoString_ p3) { - uint ret = skycoinPINVOKE.SKY_api_Handle_WalletResponseGetEntry(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoString_.getCPtr(p2), SWIGTYPE_p_GoString_.getCPtr(p3)); + public static uint SKY_secp256k1go_Signature_Print(SWIGTYPE_p_Signature_Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Print(SWIGTYPE_p_Signature_Handle.getCPtr(p0), _GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Handle_WalletResponseIsEncrypted(SWIGTYPE_p_WalletResponse__Handle p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_api_Handle_WalletResponseIsEncrypted(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + public static uint SKY_secp256k1go_Signature_Verify(SWIGTYPE_p_Signature_Handle p0, secp256k1go__XY p1, SWIGTYPE_p_Number_Handle p2, SWIGTYPE_p_unsigned_char p3) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Verify(SWIGTYPE_p_Signature_Handle.getCPtr(p0), secp256k1go__XY.getCPtr(p1), SWIGTYPE_p_Number_Handle.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Handle_WalletResponseGetCryptoType(SWIGTYPE_p_WalletResponse__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Handle_WalletResponseGetCryptoType(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_secp256k1go_Signature_Recover(SWIGTYPE_p_Signature_Handle p0, secp256k1go__XY p1, SWIGTYPE_p_Number_Handle p2, long p3, SWIGTYPE_p_unsigned_char p4) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Recover(SWIGTYPE_p_Signature_Handle.getCPtr(p0), secp256k1go__XY.getCPtr(p1), SWIGTYPE_p_Number_Handle.getCPtr(p2), p3, SWIGTYPE_p_unsigned_char.getCPtr(p4)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Handle_WalletsResponseGetCount(SWIGTYPE_p_Wallets__Handle p0, SWIGTYPE_p_unsigned_int p1) { - uint ret = skycoinPINVOKE.SKY_api_Handle_WalletsResponseGetCount(SWIGTYPE_p_Wallets__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); + public static uint SKY_secp256k1go_Signature_Sign(SWIGTYPE_p_Signature_Handle p0, SWIGTYPE_p_Number_Handle p1, SWIGTYPE_p_Number_Handle p2, SWIGTYPE_p_Number_Handle p3, SWIGTYPE_p_long_long p4, SWIGTYPE_p_long_long p5) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Sign(SWIGTYPE_p_Signature_Handle.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1), SWIGTYPE_p_Number_Handle.getCPtr(p2), SWIGTYPE_p_Number_Handle.getCPtr(p3), SWIGTYPE_p_long_long.getCPtr(p4), SWIGTYPE_p_long_long.getCPtr(p5)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Handle_WalletsResponseGetAt(SWIGTYPE_p_Wallets__Handle p0, uint p1, SWIGTYPE_p_WalletResponse__Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_Handle_WalletsResponseGetAt(SWIGTYPE_p_Wallets__Handle.getCPtr(p0), p1, SWIGTYPE_p_WalletResponse__Handle.getCPtr(p2)); + public static uint SKY_secp256k1go_Signature_ParseBytes(SWIGTYPE_p_Signature_Handle p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_ParseBytes(SWIGTYPE_p_Signature_Handle.getCPtr(p0), GoSlice.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Handle_GetWalletFolderAddress(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletFolderAddress(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_secp256k1go_Signature_Bytes(SWIGTYPE_p_Signature_Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Bytes(SWIGTYPE_p_Signature_Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Handle_GetWalletSeed(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletSeed(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_cli_App_Run(SWIGTYPE_p_App__Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_App_Run(SWIGTYPE_p_App__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Handle_GetWalletLastSeed(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletLastSeed(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_cli_Config_GetCoin(SWIGTYPE_p_Config__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_Config_GetCoin(SWIGTYPE_p_Config__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Handle_GetBuildInfoData(SWIGTYPE_p_BuildInfo_Handle p0, SWIGTYPE_p_GoString_ p1, SWIGTYPE_p_GoString_ p2, SWIGTYPE_p_GoString_ p3) { - uint ret = skycoinPINVOKE.SKY_api_Handle_GetBuildInfoData(SWIGTYPE_p_BuildInfo_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2), SWIGTYPE_p_GoString_.getCPtr(p3)); + public static uint SKY_cli_Config_GetRPCAddress(SWIGTYPE_p_Config__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_Config_GetRPCAddress(SWIGTYPE_p_Config__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1_GenerateKeyPair(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1_GenerateKeyPair(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_cli_RPCClientFromApp(SWIGTYPE_p_App__Handle p0, SWIGTYPE_p_WebRpcClient__Handle p1) { + uint ret = skycoinPINVOKE.SKY_cli_RPCClientFromApp(SWIGTYPE_p_App__Handle.getCPtr(p0), SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1_PubkeyFromSeckey(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1_PubkeyFromSeckey(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_cli_Getenv(_GoString_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_Getenv(_GoString_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1_UncompressPubkey(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1_UncompressPubkey(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_cli_Setenv(_GoString_ p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_Setenv(_GoString_.getCPtr(p0), _GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1_UncompressedPubkeyFromSeckey(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1_UncompressedPubkeyFromSeckey(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_poly1305_Verify(SWIGTYPE_p_GoSlice_ p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2, SWIGTYPE_p_unsigned_char p3) { + uint ret = skycoinPINVOKE.SKY_poly1305_Verify(SWIGTYPE_p_GoSlice_.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1_Secp256k1Hash(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1_Secp256k1Hash(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_wallet_NewBalance(ulong p0, ulong p1, wallet__Balance p2) { + uint ret = skycoinPINVOKE.SKY_wallet_NewBalance(p0, p1, wallet__Balance.getCPtr(p2)); return ret; } - public static uint SKY_secp256k1_GenerateDeterministicKeyPair(GoSlice p0, SWIGTYPE_p_GoSlice_ p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1_GenerateDeterministicKeyPair(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_wallet_NewBalanceFromUxOut(ulong p0, coin__UxOut p1, wallet__Balance p2) { + uint ret = skycoinPINVOKE.SKY_wallet_NewBalanceFromUxOut(p0, coin__UxOut.getCPtr(p1), wallet__Balance.getCPtr(p2)); return ret; } - public static uint SKY_secp256k1_DeterministicKeyPairIterator(GoSlice p0, SWIGTYPE_p_GoSlice_ p1, SWIGTYPE_p_GoSlice_ p2, SWIGTYPE_p_GoSlice_ p3) { - uint ret = skycoinPINVOKE.SKY_secp256k1_DeterministicKeyPairIterator(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_wallet_Balance_Add(wallet__Balance p0, wallet__Balance p1, wallet__Balance p2) { + uint ret = skycoinPINVOKE.SKY_wallet_Balance_Add(wallet__Balance.getCPtr(p0), wallet__Balance.getCPtr(p1), wallet__Balance.getCPtr(p2)); return ret; } - public static uint SKY_secp256k1_Sign(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1_Sign(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_wallet_Balance_Sub(wallet__Balance p0, wallet__Balance p1, wallet__Balance p2) { + uint ret = skycoinPINVOKE.SKY_wallet_Balance_Sub(wallet__Balance.getCPtr(p0), wallet__Balance.getCPtr(p1), wallet__Balance.getCPtr(p2)); return ret; } - public static uint SKY_secp256k1_SignDeterministic(GoSlice p0, GoSlice p1, GoSlice p2, SWIGTYPE_p_GoSlice_ p3) { - uint ret = skycoinPINVOKE.SKY_secp256k1_SignDeterministic(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_wallet_Balance_Equals(wallet__Balance p0, wallet__Balance p1, SWIGTYPE_p_unsigned_char p2) { + uint ret = skycoinPINVOKE.SKY_wallet_Balance_Equals(wallet__Balance.getCPtr(p0), wallet__Balance.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); return ret; } - public static uint SKY_secp256k1_VerifySeckey(GoSlice p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1_VerifySeckey(GoSlice.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_wallet_Balance_IsZero(wallet__Balance p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Balance_IsZero(wallet__Balance.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); return ret; } - public static uint SKY_secp256k1_VerifyPubkey(GoSlice p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1_VerifyPubkey(GoSlice.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_utc_UnixNow(SWIGTYPE_p_long_long p0) { + uint ret = skycoinPINVOKE.SKY_utc_UnixNow(SWIGTYPE_p_long_long.getCPtr(p0)); return ret; } - public static uint SKY_secp256k1_VerifySignatureValidity(GoSlice p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1_VerifySignatureValidity(GoSlice.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_httphelper_Address_UnmarshalJSON(httphelper__Address p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_httphelper_Address_UnmarshalJSON(httphelper__Address.getCPtr(p0), GoSlice.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1_VerifySignature(GoSlice p0, GoSlice p1, GoSlice p2, SWIGTYPE_p_long_long p3) { - uint ret = skycoinPINVOKE.SKY_secp256k1_VerifySignature(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), SWIGTYPE_p_long_long.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_httphelper_Address_MarshalJSON(httphelper__Address p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_httphelper_Address_MarshalJSON(httphelper__Address.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); return ret; } - public static uint SKY_secp256k1_SignatureErrorString(GoSlice p0, GoSlice p1, GoSlice p2, SWIGTYPE_p_GoString_ p3) { - uint ret = skycoinPINVOKE.SKY_secp256k1_SignatureErrorString(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), SWIGTYPE_p_GoString_.getCPtr(p3)); + public static uint SKY_httphelper_Coins_UnmarshalJSON(SWIGTYPE_p_GoUint64_ p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_httphelper_Coins_UnmarshalJSON(SWIGTYPE_p_GoUint64_.getCPtr(p0), GoSlice.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1_RecoverPubkey(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1_RecoverPubkey(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_httphelper_Coins_MarshalJSON(SWIGTYPE_p_GoUint64_ p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_httphelper_Coins_MarshalJSON(SWIGTYPE_p_GoUint64_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); return ret; } - public static uint SKY_secp256k1_ECDH(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1_ECDH(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_httphelper_Coins_Value(SWIGTYPE_p_GoUint64_ p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_httphelper_Coins_Value(SWIGTYPE_p_GoUint64_.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); return ret; } - public static uint SKY_cert_CreateCertIfNotExists(_GoString_ p0, _GoString_ p1, _GoString_ p2, _GoString_ p3) { - uint ret = skycoinPINVOKE.SKY_cert_CreateCertIfNotExists(_GoString_.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), _GoString_.getCPtr(p3)); + public static uint SKY_httphelper_Hours_UnmarshalJSON(SWIGTYPE_p_GoUint64_ p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_httphelper_Hours_UnmarshalJSON(SWIGTYPE_p_GoUint64_.getCPtr(p0), GoSlice.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_fee_VerifyTransactionFee(SWIGTYPE_p_Transaction__Handle p0, ulong p1) { - uint ret = skycoinPINVOKE.SKY_fee_VerifyTransactionFee(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_httphelper_Hours_MarshalJSON(SWIGTYPE_p_GoUint64_ p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_httphelper_Hours_MarshalJSON(SWIGTYPE_p_GoUint64_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); return ret; } - public static uint SKY_fee_VerifyTransactionFeeForHours(ulong p0, ulong p1) { - uint ret = skycoinPINVOKE.SKY_fee_VerifyTransactionFeeForHours(p0, p1); + public static uint SKY_httphelper_Hours_Value(SWIGTYPE_p_GoUint64_ p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_httphelper_Hours_Value(SWIGTYPE_p_GoUint64_.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); return ret; } - public static uint SKY_fee_RequiredFee(ulong p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_fee_RequiredFee(p0, SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static uint SKY_wallet_Entry_Verify(wallet__Entry p0) { + uint ret = skycoinPINVOKE.SKY_wallet_Entry_Verify(wallet__Entry.getCPtr(p0)); return ret; } - public static uint SKY_fee_RemainingHours(ulong p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_fee_RemainingHours(p0, SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static uint SKY_wallet_Entry_VerifyPublic(wallet__Entry p0) { + uint ret = skycoinPINVOKE.SKY_wallet_Entry_VerifyPublic(wallet__Entry.getCPtr(p0)); return ret; } - public static uint SKY_fee_TransactionFee(SWIGTYPE_p_Transaction__Handle p0, ulong p1, SWIGTYPE_p_GoSlice_ p2, SWIGTYPE_p_unsigned_long_long p3) { - uint ret = skycoinPINVOKE.SKY_fee_TransactionFee(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2), SWIGTYPE_p_unsigned_long_long.getCPtr(p3)); + public static uint SKY_wallet_CreateAddresses(_GoString_ p0, _GoString_ p1, long p2, byte p3, SWIGTYPE_p_ReadableWallet__Handle p4) { + uint ret = skycoinPINVOKE.SKY_wallet_CreateAddresses(_GoString_.getCPtr(p0), _GoString_.getCPtr(p1), p2, p3, SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p4)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_iputil_LocalhostIP(SWIGTYPE_p_GoString_ p0) { - uint ret = skycoinPINVOKE.SKY_iputil_LocalhostIP(SWIGTYPE_p_GoString_.getCPtr(p0)); + public static uint SKY_wallet_GetSkycoinWalletEntry(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_ReadableEntry__Handle p2) { + uint ret = skycoinPINVOKE.SKY_wallet_GetSkycoinWalletEntry(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p2)); return ret; } - public static uint SKY_iputil_IsLocalhost(_GoString_ p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_iputil_IsLocalhost(_GoString_.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_wallet_GetBitcoinWalletEntry(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_ReadableEntry__Handle p2) { + uint ret = skycoinPINVOKE.SKY_wallet_GetBitcoinWalletEntry(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p2)); return ret; } - public static uint SKY_iputil_SplitAddr(_GoString_ p0, SWIGTYPE_p_GoString_ p1, SWIGTYPE_p_unsigned_short p2) { - uint ret = skycoinPINVOKE.SKY_iputil_SplitAddr(_GoString_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1), SWIGTYPE_p_unsigned_short.getCPtr(p2)); + public static uint SKY_secp256k1go_XYZ_Print(secp256k1go__XYZ p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_Print(secp256k1go__XYZ.getCPtr(p0), _GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_Ripemd160_Set(SWIGTYPE_p_a_20__GoUint8_ p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_cipher_Ripemd160_Set(SWIGTYPE_p_a_20__GoUint8_.getCPtr(p0), GoSlice.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_secp256k1go_XYZ_SetXY(secp256k1go__XYZ p0, secp256k1go__XY p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_SetXY(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XY.getCPtr(p1)); return ret; } - public static uint SKY_cipher_HashRipemd160(GoSlice p0, SWIGTYPE_p_a_20__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_HashRipemd160(GoSlice.getCPtr(p0), SWIGTYPE_p_a_20__GoUint8_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_secp256k1go_XYZ_IsInfinity(secp256k1go__XYZ p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_IsInfinity(secp256k1go__XYZ.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); return ret; } - public static uint SKY_cipher_SHA256_Set(SWIGTYPE_p_a_32__GoUint8_ p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Set(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), GoSlice.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_secp256k1go_XYZ_IsValid(secp256k1go__XYZ p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_IsValid(secp256k1go__XYZ.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); return ret; } - public static uint SKY_cipher_SHA256_Hex(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Hex(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_secp256k1go_XYZ_Normalize(secp256k1go__XYZ p0) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_Normalize(secp256k1go__XYZ.getCPtr(p0)); return ret; } - public static uint SKY_cipher_SHA256_Xor(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_a_32__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Xor(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); + public static uint SKY_secp256k1go_XYZ_Equals(secp256k1go__XYZ p0, secp256k1go__XYZ p1, SWIGTYPE_p_unsigned_char p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_Equals(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); + return ret; + } + + public static uint SKY_secp256k1go_XYZ_ECmult(secp256k1go__XYZ p0, secp256k1go__XYZ p1, SWIGTYPE_p_Number_Handle p2, SWIGTYPE_p_Number_Handle p3) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_ECmult(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1), SWIGTYPE_p_Number_Handle.getCPtr(p2), SWIGTYPE_p_Number_Handle.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_SumSHA256(GoSlice p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_SumSHA256(GoSlice.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_secp256k1go_XYZ_Neg(secp256k1go__XYZ p0, secp256k1go__XYZ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_Neg(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1)); return ret; } - public static uint SKY_cipher_SHA256FromHex(_GoString_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_SHA256FromHex(_GoString_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_secp256k1go_XYZ_Double(secp256k1go__XYZ p0, secp256k1go__XYZ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_Double(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1)); return ret; } - public static uint SKY_cipher_DoubleSHA256(GoSlice p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_DoubleSHA256(GoSlice.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_secp256k1go_XYZ_AddXY(secp256k1go__XYZ p0, secp256k1go__XYZ p1, secp256k1go__XY p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_AddXY(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1), secp256k1go__XY.getCPtr(p2)); return ret; } - public static uint SKY_cipher_AddSHA256(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_a_32__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_cipher_AddSHA256(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); + public static uint SKY_secp256k1go_XYZ_Add(secp256k1go__XYZ p0, secp256k1go__XYZ p1, secp256k1go__XYZ p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_Add(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1), secp256k1go__XYZ.getCPtr(p2)); return ret; } - public static uint SKY_cipher_Merkle(GoSlice p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_Merkle(GoSlice.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + public static uint SKY_secp256k1go_ECmultGen(secp256k1go__XYZ p0, SWIGTYPE_p_Number_Handle p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_ECmultGen(secp256k1go__XYZ.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_MustSumSHA256(GoSlice p0, long p1, SWIGTYPE_p_a_32__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_cipher_MustSumSHA256(GoSlice.getCPtr(p0), p1, SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); + public static uint SKY_encrypt_Sha256Xor_Encrypt(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_encrypt_Sha256Xor_Encrypt(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_SHA256_Null(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Null(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + public static uint SKY_encrypt_Sha256Xor_Decrypt(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_encrypt_Sha256Xor_Decrypt(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_Create_Transaction(SWIGTYPE_p_Transaction__Handle p0) { - uint ret = skycoinPINVOKE.SKY_coin_Create_Transaction(SWIGTYPE_p_Transaction__Handle.getCPtr(p0)); + public static uint SKY_droplet_FromString(_GoString_ p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_droplet_FromString(_GoString_.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_Transaction_Copy(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_Transaction__Handle p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_Copy(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_droplet_ToString(ulong p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_droplet_ToString(p0, SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } - public static uint SKY_coin_GetTransactionObject(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_p_coin__Transaction p1) { - uint ret = skycoinPINVOKE.SKY_coin_GetTransactionObject(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_p_coin__Transaction.getCPtr(p1)); + public static uint SKY_wallet_CryptoTypeFromString(_GoString_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_CryptoTypeFromString(_GoString_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_Transaction_ResetInputs(SWIGTYPE_p_Transaction__Handle p0, long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_ResetInputs(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); + public static void SKY_handle_close(SWIGTYPE_p_Handle p0) { + skycoinPINVOKE.SKY_handle_close(SWIGTYPE_p_Handle.getCPtr(p0)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; } - public static uint SKY_coin_Transaction_GetInputsCount(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetInputsCount(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_handle_copy(SWIGTYPE_p_Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_handle_copy(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_Transaction_GetInputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, SWIGTYPE_p_a_32__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetInputAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_logging_EnableColors() { + uint ret = skycoinPINVOKE.SKY_logging_EnableColors(); return ret; } - public static uint SKY_coin_Transaction_SetInputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, SWIGTYPE_p_a_32__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetInputAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_logging_DisableColors() { + uint ret = skycoinPINVOKE.SKY_logging_DisableColors(); return ret; } - public static uint SKY_coin_Transaction_GetOutputsCount(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetOutputsCount(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_logging_Disable() { + uint ret = skycoinPINVOKE.SKY_logging_Disable(); return ret; } - public static uint SKY_coin_Transaction_GetOutputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, coin__TransactionOutput p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetOutputAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, coin__TransactionOutput.getCPtr(p2)); + public static uint SKY_map_Get(SWIGTYPE_p_GoStringMap_ p0, _GoString_ p1, SWIGTYPE_p_GoString_ p2) { + uint ret = skycoinPINVOKE.SKY_map_Get(SWIGTYPE_p_GoStringMap_.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_Transaction_SetOutputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, coin__TransactionOutput p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetOutputAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, coin__TransactionOutput.getCPtr(p2)); + public static byte SKY_map_HasKey(SWIGTYPE_p_GoStringMap_ p0, _GoString_ p1) { + byte ret = skycoinPINVOKE.SKY_map_HasKey(SWIGTYPE_p_GoStringMap_.getCPtr(p0), _GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_Transaction_GetSignaturesCount(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetSignaturesCount(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_map_Close(SWIGTYPE_p_GoStringMap_ p0) { + uint ret = skycoinPINVOKE.SKY_map_Close(SWIGTYPE_p_GoStringMap_.getCPtr(p0)); return ret; } - public static uint SKY_coin_Transaction_GetSignatureAt(SWIGTYPE_p_Transaction__Handle p0, long p1, SWIGTYPE_p_a_65__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetSignatureAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); + public static uint SKY_cipher_DecodeBase58Address(_GoString_ p0, cipher__Address p1) { + uint ret = skycoinPINVOKE.SKY_cipher_DecodeBase58Address(_GoString_.getCPtr(p0), cipher__Address.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_Transaction_SetSignatureAt(SWIGTYPE_p_Transaction__Handle p0, long p1, SWIGTYPE_p_a_65__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetSignatureAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); + public static uint SKY_cipher_MustDecodeBase58Address(_GoString_ p0, cipher__Address p1) { + uint ret = skycoinPINVOKE.SKY_cipher_MustDecodeBase58Address(_GoString_.getCPtr(p0), cipher__Address.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_Transaction_PushSignature(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_a_65__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushSignature(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1)); + public static uint SKY_cipher_BitcoinMustDecodeBase58Address(_GoString_ p0, cipher__Address p1) { + uint ret = skycoinPINVOKE.SKY_cipher_BitcoinMustDecodeBase58Address(_GoString_.getCPtr(p0), cipher__Address.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_Transaction_ResetOutputs(SWIGTYPE_p_Transaction__Handle p0, long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_ResetOutputs(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); + public static uint SKY_cipher_AddressFromBytes(GoSlice p0, cipher__Address p1) { + uint ret = skycoinPINVOKE.SKY_cipher_AddressFromBytes(GoSlice.getCPtr(p0), cipher__Address.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_Transaction_ResetSignatures(SWIGTYPE_p_Transaction__Handle p0, long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_ResetSignatures(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_cipher_AddressFromPubKey(SWIGTYPE_p_a_33__GoUint8_ p0, cipher__Address p1) { + uint ret = skycoinPINVOKE.SKY_cipher_AddressFromPubKey(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), cipher__Address.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transaction_Verify(SWIGTYPE_p_Transaction__Handle p0) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_Verify(SWIGTYPE_p_Transaction__Handle.getCPtr(p0)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_cipher_AddressFromSecKey(SWIGTYPE_p_a_32__GoUint8_ p0, cipher__Address p1) { + uint ret = skycoinPINVOKE.SKY_cipher_AddressFromSecKey(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), cipher__Address.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transaction_VerifyInput(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_VerifyInput(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_cipher_BitcoinDecodeBase58Address(_GoString_ p0, cipher__Address p1) { + uint ret = skycoinPINVOKE.SKY_cipher_BitcoinDecodeBase58Address(_GoString_.getCPtr(p0), cipher__Address.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_Transaction_PushInput(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_unsigned_short p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushInput(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_unsigned_short.getCPtr(p2)); + public static uint SKY_cipher_MustAddressFromBytes(GoSlice p0, cipher__Address p1) { + uint ret = skycoinPINVOKE.SKY_cipher_MustAddressFromBytes(GoSlice.getCPtr(p0), cipher__Address.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_TransactionOutput_UxID(coin__TransactionOutput p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_a_32__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_TransactionOutput_UxID(coin__TransactionOutput.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); + public static uint SKY_cipher_Address_Bytes(cipher__Address p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_Address_Bytes(cipher__Address.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transaction_PushOutput(SWIGTYPE_p_Transaction__Handle p0, cipher__Address p1, ulong p2, ulong p3) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushOutput(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), cipher__Address.getCPtr(p1), p2, p3); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_cipher_Address_Null(cipher__Address p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_cipher_Address_Null(cipher__Address.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transaction_SignInputs(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_SignInputs(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_cipher_Address_BitcoinBytes(cipher__Address p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_Address_BitcoinBytes(cipher__Address.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transaction_Size(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_Size(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_cipher_Address_Verify(cipher__Address p0, SWIGTYPE_p_a_33__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_Address_Verify(cipher__Address.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transaction_Hash(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_Hash(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_cipher_Address_String(cipher__Address p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_Address_String(cipher__Address.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transaction_SizeHash(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1, SWIGTYPE_p_a_32__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_SizeHash(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_cipher_Address_BitcoinString(cipher__Address p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_Address_BitcoinString(cipher__Address.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transaction_TxID(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_TxID(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_cipher_Address_Checksum(cipher__Address p0, SWIGTYPE_p_a_4__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_Address_Checksum(cipher__Address.getCPtr(p0), SWIGTYPE_p_a_4__GoUint8_.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transaction_TxIDHex(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_TxIDHex(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_cipher_Address_BitcoinChecksum(cipher__Address p0, SWIGTYPE_p_a_4__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_Address_BitcoinChecksum(cipher__Address.getCPtr(p0), SWIGTYPE_p_a_4__GoUint8_.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transaction_UpdateHeader(SWIGTYPE_p_Transaction__Handle p0) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_UpdateHeader(SWIGTYPE_p_Transaction__Handle.getCPtr(p0)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_cipher_BitcoinAddressFromPubkey(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_BitcoinAddressFromPubkey(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transaction_HashInner(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_HashInner(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_cipher_BitcoinWalletImportFormatFromSeckey(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_BitcoinWalletImportFormatFromSeckey(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transaction_Serialize(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_Serialize(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_cipher_BitcoinAddressFromBytes(GoSlice p0, cipher__Address p1) { + uint ret = skycoinPINVOKE.SKY_cipher_BitcoinAddressFromBytes(GoSlice.getCPtr(p0), cipher__Address.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_MustTransactionDeserialize(GoSlice p0, SWIGTYPE_p_Transaction__Handle p1) { - uint ret = skycoinPINVOKE.SKY_coin_MustTransactionDeserialize(GoSlice.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); + public static uint SKY_cipher_SecKeyFromWalletImportFormat(_GoString_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_SecKeyFromWalletImportFormat(_GoString_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_TransactionDeserialize(GoSlice p0, SWIGTYPE_p_Transaction__Handle p1) { - uint ret = skycoinPINVOKE.SKY_coin_TransactionDeserialize(GoSlice.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); + public static uint SKY_cipher_MustSecKeyFromWalletImportFormat(_GoString_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_MustSecKeyFromWalletImportFormat(_GoString_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_Transaction_OutputHours(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_OutputHours(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static uint SKY_JsonEncode_Handle(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_JsonEncode_Handle(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_Create_Transactions(SWIGTYPE_p_Transactions__Handle p0) { - uint ret = skycoinPINVOKE.SKY_coin_Create_Transactions(SWIGTYPE_p_Transactions__Handle.getCPtr(p0)); + public static uint SKY_Handle_Progress_GetCurrent(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_Handle_Progress_GetCurrent(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_GetTransactionsObject(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_GetTransactionsObject(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_p_GoSlice_.getCPtr(p1)); + public static uint SKY_Handle_Block_GetHeadSeq(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_Handle_Block_GetHeadSeq(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_Transactions_Length(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transactions_Length(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_Handle_Block_GetHeadHash(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_Handle_Block_GetHeadHash(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_Transactions_Add(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_Transaction__Handle p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transactions_Add(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); + public static uint SKY_Handle_Block_GetPreviousBlockHash(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_Handle_Block_GetPreviousBlockHash(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_Transactions_Fees(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_FeeCalculator p1, SWIGTYPE_p_unsigned_long_long p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transactions_Fees(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1), SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); + public static uint SKY_Handle_Blocks_GetAt(SWIGTYPE_p_Handle p0, ulong p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_Handle_Blocks_GetAt(SWIGTYPE_p_Handle.getCPtr(p0), p1, SWIGTYPE_p_Handle.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_Transactions_GetAt(SWIGTYPE_p_Transactions__Handle p0, long p1, SWIGTYPE_p_Transaction__Handle p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transactions_GetAt(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), p1, SWIGTYPE_p_Transaction__Handle.getCPtr(p2)); + public static uint SKY_Handle_Blocks_GetCount(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_Handle_Blocks_GetCount(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_Transactions_Hashes(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transactions_Hashes(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_Handle_Connections_GetCount(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_Handle_Connections_GetCount(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_Transactions_Size(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transactions_Size(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_Handle_Strings_GetCount(SWIGTYPE_p_Strings__Handle p0, SWIGTYPE_p_unsigned_int p1) { + uint ret = skycoinPINVOKE.SKY_Handle_Strings_GetCount(SWIGTYPE_p_Strings__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_Transactions_TruncateBytesTo(SWIGTYPE_p_Transactions__Handle p0, long p1, SWIGTYPE_p_Transactions__Handle p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transactions_TruncateBytesTo(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), p1, SWIGTYPE_p_Transactions__Handle.getCPtr(p2)); + public static uint SKY_Handle_Strings_Sort(SWIGTYPE_p_Strings__Handle p0) { + uint ret = skycoinPINVOKE.SKY_Handle_Strings_Sort(SWIGTYPE_p_Strings__Handle.getCPtr(p0)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_SortTransactions(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_FeeCalculator p1, SWIGTYPE_p_Transactions__Handle p2) { - uint ret = skycoinPINVOKE.SKY_coin_SortTransactions(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1), SWIGTYPE_p_Transactions__Handle.getCPtr(p2)); + public static uint SKY_Handle_Strings_GetAt(SWIGTYPE_p_Strings__Handle p0, long p1, SWIGTYPE_p_GoString_ p2) { + uint ret = skycoinPINVOKE.SKY_Handle_Strings_GetAt(SWIGTYPE_p_Strings__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoString_.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_NewSortableTransactions(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_FeeCalculator p1, SWIGTYPE_p_SortableTransactionResult_Handle p2) { - uint ret = skycoinPINVOKE.SKY_coin_NewSortableTransactions(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1), SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p2)); + public static uint SKY_api_Handle_Client_GetWalletDir(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletDir(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_SortableTransactions_Sort(SWIGTYPE_p_SortableTransactionResult_Handle p0) { - uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Sort(SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p0)); + public static uint SKY_api_Handle_Client_GetWalletFileName(SWIGTYPE_p_WalletResponse__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletFileName(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_SortableTransactions_Len(SWIGTYPE_p_SortableTransactionResult_Handle p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Len(SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_api_Handle_Client_GetWalletLabel(SWIGTYPE_p_WalletResponse__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletLabel(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_SortableTransactions_Less(SWIGTYPE_p_SortableTransactionResult_Handle p0, long p1, long p2, SWIGTYPE_p_unsigned_char p3) { - uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Less(SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p0), p1, p2, SWIGTYPE_p_unsigned_char.getCPtr(p3)); + public static uint SKY_api_Handle_Client_GetWalletFullPath(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_WalletResponse__Handle p1, SWIGTYPE_p_GoString_ p2) { + uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletFullPath(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_SortableTransactions_Swap(SWIGTYPE_p_SortableTransactionResult_Handle p0, long p1, long p2) { - uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Swap(SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p0), p1, p2); + public static uint SKY_api_Handle_GetWalletMeta(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoStringMap_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletMeta(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoStringMap_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_VerifyTransactionCoinsSpending(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_VerifyTransactionCoinsSpending(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_api_Handle_GetWalletEntriesCount(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_unsigned_int p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletEntriesCount(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_VerifyTransactionHoursSpending(ulong p0, SWIGTYPE_p_GoSlice_ p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_VerifyTransactionHoursSpending(p0, SWIGTYPE_p_GoSlice_.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + public static uint SKY_api_Handle_Client_GetWalletResponseEntriesCount(SWIGTYPE_p_WalletResponse__Handle p0, SWIGTYPE_p_unsigned_int p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletResponseEntriesCount(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_encrypt_Sha256Xor_Encrypt(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_encrypt_Sha256Xor_Encrypt(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + public static uint SKY_api_Handle_WalletGetEntry(SWIGTYPE_p_Wallet__Handle p0, uint p1, cipher__Address p2, SWIGTYPE_p_a_33__GoUint8_ p3) { + uint ret = skycoinPINVOKE.SKY_api_Handle_WalletGetEntry(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), p1, cipher__Address.getCPtr(p2), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p3)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_encrypt_Sha256Xor_Decrypt(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_encrypt_Sha256Xor_Decrypt(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + public static uint SKY_api_Handle_WalletResponseGetEntry(SWIGTYPE_p_WalletResponse__Handle p0, uint p1, SWIGTYPE_p_GoString_ p2, SWIGTYPE_p_GoString_ p3) { + uint ret = skycoinPINVOKE.SKY_api_Handle_WalletResponseGetEntry(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoString_.getCPtr(p2), SWIGTYPE_p_GoString_.getCPtr(p3)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cli_GenerateAddressesInFile(_GoString_ p0, ulong p1, SWIGTYPE_p_PasswordReader__Handle p2, SWIGTYPE_p_GoSlice_ p3) { - uint ret = skycoinPINVOKE.SKY_cli_GenerateAddressesInFile(_GoString_.getCPtr(p0), p1, SWIGTYPE_p_PasswordReader__Handle.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); + public static uint SKY_api_Handle_WalletResponseIsEncrypted(SWIGTYPE_p_WalletResponse__Handle p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_WalletResponseIsEncrypted(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cli_FormatAddressesAsJSON(GoSlice p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_FormatAddressesAsJSON(GoSlice.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_api_Handle_WalletResponseGetCryptoType(SWIGTYPE_p_WalletResponse__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_WalletResponseGetCryptoType(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cli_FormatAddressesAsJoinedArray(GoSlice p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_FormatAddressesAsJoinedArray(GoSlice.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_api_Handle_WalletsResponseGetCount(SWIGTYPE_p_Wallets__Handle p0, SWIGTYPE_p_unsigned_int p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_WalletsResponseGetCount(SWIGTYPE_p_Wallets__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cli_AddressesToStrings(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_AddressesToStrings(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_api_Handle_WalletsResponseGetAt(SWIGTYPE_p_Wallets__Handle p0, uint p1, SWIGTYPE_p_WalletResponse__Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Handle_WalletsResponseGetAt(SWIGTYPE_p_Wallets__Handle.getCPtr(p0), p1, SWIGTYPE_p_WalletResponse__Handle.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cli_LoadConfig(SWIGTYPE_p_Config__Handle p0) { - uint ret = skycoinPINVOKE.SKY_cli_LoadConfig(SWIGTYPE_p_Config__Handle.getCPtr(p0)); + public static uint SKY_api_Handle_GetWalletFolderAddress(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletFolderAddress(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cli_Config_FullWalletPath(SWIGTYPE_p_Config__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_Config_FullWalletPath(SWIGTYPE_p_Config__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_api_Handle_GetWalletSeed(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletSeed(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cli_Config_FullDBPath(SWIGTYPE_p_Config__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_Config_FullDBPath(SWIGTYPE_p_Config__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_api_Handle_GetWalletLastSeed(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletLastSeed(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cli_NewApp(SWIGTYPE_p_Config__Handle p0, SWIGTYPE_p_App__Handle p1) { - uint ret = skycoinPINVOKE.SKY_cli_NewApp(SWIGTYPE_p_Config__Handle.getCPtr(p0), SWIGTYPE_p_App__Handle.getCPtr(p1)); + public static uint SKY_api_Handle_GetBuildInfoData(SWIGTYPE_p_BuildInfo_Handle p0, SWIGTYPE_p_GoString_ p1, SWIGTYPE_p_GoString_ p2, SWIGTYPE_p_GoString_ p3) { + uint ret = skycoinPINVOKE.SKY_api_Handle_GetBuildInfoData(SWIGTYPE_p_BuildInfo_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2), SWIGTYPE_p_GoString_.getCPtr(p3)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cli_RPCClientFromContext(SWIGTYPE_p_Context__Handle p0, SWIGTYPE_p_WebRpcClient__Handle p1) { - uint ret = skycoinPINVOKE.SKY_cli_RPCClientFromContext(SWIGTYPE_p_Context__Handle.getCPtr(p0), SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_ripemd160_New(SWIGTYPE_p_Hash_Handle p0) { + uint ret = skycoinPINVOKE.SKY_ripemd160_New(SWIGTYPE_p_Hash_Handle.getCPtr(p0)); return ret; } - public static uint SKY_cli_ConfigFromContext(SWIGTYPE_p_Context__Handle p0, SWIGTYPE_p_Config__Handle p1) { - uint ret = skycoinPINVOKE.SKY_cli_ConfigFromContext(SWIGTYPE_p_Context__Handle.getCPtr(p0), SWIGTYPE_p_Config__Handle.getCPtr(p1)); + public static uint SKY_ripemd160_Write(SWIGTYPE_p_Hash_Handle p0, GoSlice p1, SWIGTYPE_p_long_long p2) { + uint ret = skycoinPINVOKE.SKY_ripemd160_Write(SWIGTYPE_p_Hash_Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_long_long.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cli_PasswordFromBytes_Password(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_PasswordFromBytes_Password(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_ripemd160_Sum(SWIGTYPE_p_Hash_Handle p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_ripemd160_Sum(SWIGTYPE_p_Hash_Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cli_PasswordFromTerm_Password(SWIGTYPE_p_GoSlice_ p0) { - uint ret = skycoinPINVOKE.SKY_cli_PasswordFromTerm_Password(SWIGTYPE_p_GoSlice_.getCPtr(p0)); + public static uint SKY_secp256k1go_Number_Create(SWIGTYPE_p_Number_Handle p0) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_Create(SWIGTYPE_p_Number_Handle.getCPtr(p0)); return ret; } - public static void SKY_handle_close(SWIGTYPE_p_Handle p0) { - skycoinPINVOKE.SKY_handle_close(SWIGTYPE_p_Handle.getCPtr(p0)); + public static uint SKY_secp256k1go_Number_Print(SWIGTYPE_p_Number_Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_Print(SWIGTYPE_p_Number_Handle.getCPtr(p0), _GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; } - public static uint SKY_handle_copy(SWIGTYPE_p_Handle p0, SWIGTYPE_p_Handle p1) { - uint ret = skycoinPINVOKE.SKY_handle_copy(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + public static uint SKY_secp256k1go_Number_SetHex(SWIGTYPE_p_Number_Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_SetHex(SWIGTYPE_p_Number_Handle.getCPtr(p0), _GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_encoder_StructField_String(encoder__StructField p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_encoder_StructField_String(encoder__StructField.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_secp256k1go_Number_IsOdd(SWIGTYPE_p_Number_Handle p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_IsOdd(SWIGTYPE_p_Number_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_encoder_ParseFields(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoStringMap_ p2) { - uint ret = skycoinPINVOKE.SKY_encoder_ParseFields(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoStringMap_.getCPtr(p2)); + public static uint SKY_secp256k1go_Number_IsEqual(SWIGTYPE_p_Number_Handle p0, SWIGTYPE_p_Number_Handle p1, SWIGTYPE_p_unsigned_char p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_IsEqual(SWIGTYPE_p_Number_Handle.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -1978,139 +2081,21 @@ public static uint SKY_coin_AddressUxOuts_Set(SWIGTYPE_p_AddressUxOuts_Handle p0 return ret; } - public static uint SKY_scrypt_Key(GoSlice p0, GoSlice p1, long p2, long p3, long p4, long p5, SWIGTYPE_p_GoSlice_ p6) { - uint ret = skycoinPINVOKE.SKY_scrypt_Key(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), p2, p3, p4, p5, SWIGTYPE_p_GoSlice_.getCPtr(p6)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_NewError(GoInterface p0) { - uint ret = skycoinPINVOKE.SKY_wallet_NewError(GoInterface.getCPtr(p0)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_NewWallet(_GoString_ p0, SWIGTYPE_p_Options__Handle p1, SWIGTYPE_p_Wallet__Handle p2) { - uint ret = skycoinPINVOKE.SKY_wallet_NewWallet(_GoString_.getCPtr(p0), SWIGTYPE_p_Options__Handle.getCPtr(p1), SWIGTYPE_p_Wallet__Handle.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_Wallet_Lock(SWIGTYPE_p_Wallet__Handle p0, GoSlice p1, _GoString_ p2) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Lock(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), GoSlice.getCPtr(p1), _GoString_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_Wallet_Unlock(SWIGTYPE_p_Wallet__Handle p0, GoSlice p1, SWIGTYPE_p_Wallet__Handle p2) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Unlock(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_Wallet__Handle.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_Load(_GoString_ p0, SWIGTYPE_p_Wallet__Handle p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Load(_GoString_.getCPtr(p0), SWIGTYPE_p_Wallet__Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_Wallet_Save(SWIGTYPE_p_Wallet__Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Save(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_Wallet_Validate(SWIGTYPE_p_Wallet__Handle p0) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Validate(SWIGTYPE_p_Wallet__Handle.getCPtr(p0)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_Wallet_Type(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Type(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_Wallet_Version(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Version(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_Wallet_Filename(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Filename(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_Wallet_Label(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Label(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_Wallet_IsEncrypted(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_IsEncrypted(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_Wallet_GenerateAddresses(SWIGTYPE_p_Wallet__Handle p0, ulong p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GenerateAddresses(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_Wallet_GetAddresses(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GetAddresses(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_Wallet_GetEntry(SWIGTYPE_p_Wallet__Handle p0, cipher__Address p1, wallet__Entry p2, SWIGTYPE_p_unsigned_char p3) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GetEntry(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), cipher__Address.getCPtr(p1), wallet__Entry.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_Wallet_AddEntry(SWIGTYPE_p_Wallet__Handle p0, wallet__Entry p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_AddEntry(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), wallet__Entry.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_DistributeSpendHours(ulong p0, ulong p1, byte p2, SWIGTYPE_p_unsigned_long_long p3, SWIGTYPE_p_GoSlice_ p4, SWIGTYPE_p_unsigned_long_long p5) { - uint ret = skycoinPINVOKE.SKY_wallet_DistributeSpendHours(p0, p1, p2, SWIGTYPE_p_unsigned_long_long.getCPtr(p3), SWIGTYPE_p_GoSlice_.getCPtr(p4), SWIGTYPE_p_unsigned_long_long.getCPtr(p5)); - return ret; - } - - public static uint SKY_wallet_DistributeCoinHoursProportional(GoSlice p0, ulong p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_wallet_DistributeCoinHoursProportional(GoSlice.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2)); + public static uint SKY_encrypt_ScryptChacha20poly1305_Encrypt(encrypt__ScryptChacha20poly1305 p0, GoSlice p1, GoSlice p2, SWIGTYPE_p_GoSlice_ p3) { + uint ret = skycoinPINVOKE.SKY_encrypt_ScryptChacha20poly1305_Encrypt(encrypt__ScryptChacha20poly1305.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_wallet_NewUxBalances(ulong p0, SWIGTYPE_p_GoSlice_ p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_wallet_NewUxBalances(p0, SWIGTYPE_p_GoSlice_.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - return ret; - } - - public static uint SKY_wallet_NewUxBalance(ulong p0, coin__UxOut p1, wallet__UxBalance p2) { - uint ret = skycoinPINVOKE.SKY_wallet_NewUxBalance(p0, coin__UxOut.getCPtr(p1), wallet__UxBalance.getCPtr(p2)); - return ret; - } - - public static uint SKY_wallet_ChooseSpendsMinimizeUxOuts(GoSlice p0, ulong p1, ulong p2, SWIGTYPE_p_GoSlice_ p3) { - uint ret = skycoinPINVOKE.SKY_wallet_ChooseSpendsMinimizeUxOuts(GoSlice.getCPtr(p0), p1, p2, SWIGTYPE_p_GoSlice_.getCPtr(p3)); + public static uint SKY_encrypt_ScryptChacha20poly1305_Decrypt(encrypt__ScryptChacha20poly1305 p0, GoSlice p1, GoSlice p2, SWIGTYPE_p_GoSlice_ p3) { + uint ret = skycoinPINVOKE.SKY_encrypt_ScryptChacha20poly1305_Decrypt(encrypt__ScryptChacha20poly1305.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_wallet_ChooseSpendsMaximizeUxOuts(GoSlice p0, ulong p1, ulong p2, SWIGTYPE_p_GoSlice_ p3) { - uint ret = skycoinPINVOKE.SKY_wallet_ChooseSpendsMaximizeUxOuts(GoSlice.getCPtr(p0), p1, p2, SWIGTYPE_p_GoSlice_.getCPtr(p3)); + public static void SKY_wallet_CreateOptionsHandle(_GoString_ p0, _GoString_ p1, _GoString_ p2, byte p3, _GoString_ p4, _GoString_ p5, ulong p6, SWIGTYPE_p_Options__Handle p7) { + skycoinPINVOKE.SKY_wallet_CreateOptionsHandle(_GoString_.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), p3, _GoString_.getCPtr(p4), _GoString_.getCPtr(p5), p6, SWIGTYPE_p_Options__Handle.getCPtr(p7)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; } public static uint SKY_cli_AddPrivateKey(SWIGTYPE_p_Wallet__Handle p0, _GoString_ p1) { @@ -2125,708 +2110,723 @@ public static uint SKY_cli_AddPrivateKeyToFile(_GoString_ p0, _GoString_ p1, SWI return ret; } - public static uint SKY_cli_App_Run(SWIGTYPE_p_App__Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_App_Run(SWIGTYPE_p_App__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cli_Config_GetCoin(SWIGTYPE_p_Config__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_Config_GetCoin(SWIGTYPE_p_Config__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cli_Config_GetRPCAddress(SWIGTYPE_p_Config__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_Config_GetRPCAddress(SWIGTYPE_p_Config__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_secp256k1_GenerateKeyPair(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1_GenerateKeyPair(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); return ret; } - public static uint SKY_cli_RPCClientFromApp(SWIGTYPE_p_App__Handle p0, SWIGTYPE_p_WebRpcClient__Handle p1) { - uint ret = skycoinPINVOKE.SKY_cli_RPCClientFromApp(SWIGTYPE_p_App__Handle.getCPtr(p0), SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p1)); + public static uint SKY_secp256k1_PubkeyFromSeckey(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1_PubkeyFromSeckey(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cli_Getenv(_GoString_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_Getenv(_GoString_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_secp256k1_UncompressPubkey(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1_UncompressPubkey(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cli_Setenv(_GoString_ p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_Setenv(_GoString_.getCPtr(p0), _GoString_.getCPtr(p1)); + public static uint SKY_secp256k1_UncompressedPubkeyFromSeckey(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1_UncompressedPubkeyFromSeckey(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_webrpc_NewClient(_GoString_ p0, SWIGTYPE_p_WebRpcClient__Handle p1) { - uint ret = skycoinPINVOKE.SKY_webrpc_NewClient(_GoString_.getCPtr(p0), SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p1)); + public static uint SKY_secp256k1_Secp256k1Hash(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1_Secp256k1Hash(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_webrpc_Client_CSRF(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_CSRF(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_secp256k1_GenerateDeterministicKeyPair(GoSlice p0, SWIGTYPE_p_GoSlice_ p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1_GenerateDeterministicKeyPair(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_webrpc_Client_GetUnspentOutputs(SWIGTYPE_p_WebRpcClient__Handle p0, GoSlice p1, SWIGTYPE_p_OutputsResult_Handle p2) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetUnspentOutputs(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_OutputsResult_Handle.getCPtr(p2)); + public static uint SKY_secp256k1_DeterministicKeyPairIterator(GoSlice p0, SWIGTYPE_p_GoSlice_ p1, SWIGTYPE_p_GoSlice_ p2, SWIGTYPE_p_GoSlice_ p3) { + uint ret = skycoinPINVOKE.SKY_secp256k1_DeterministicKeyPairIterator(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_webrpc_Client_InjectTransactionString(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, SWIGTYPE_p_GoString_ p2) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_InjectTransactionString(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); + public static uint SKY_secp256k1_Sign(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1_Sign(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_webrpc_Client_InjectTransaction(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_Transaction__Handle p1, SWIGTYPE_p_GoString_ p2) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_InjectTransaction(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); + public static uint SKY_secp256k1_SignDeterministic(GoSlice p0, GoSlice p1, GoSlice p2, SWIGTYPE_p_GoSlice_ p3) { + uint ret = skycoinPINVOKE.SKY_secp256k1_SignDeterministic(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_webrpc_Client_GetStatus(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_StatusResult_Handle p1) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetStatus(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_StatusResult_Handle.getCPtr(p1)); + public static uint SKY_secp256k1_VerifySeckey(GoSlice p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1_VerifySeckey(GoSlice.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_webrpc_Client_GetTransactionByID(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, SWIGTYPE_p_TransactionResult_Handle p2) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetTransactionByID(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_TransactionResult_Handle.getCPtr(p2)); + public static uint SKY_secp256k1_VerifyPubkey(GoSlice p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1_VerifyPubkey(GoSlice.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_webrpc_Client_GetAddressUxOuts(SWIGTYPE_p_WebRpcClient__Handle p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetAddressUxOuts(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + public static uint SKY_secp256k1_VerifySignatureValidity(GoSlice p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1_VerifySignatureValidity(GoSlice.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_webrpc_Client_GetBlocks(SWIGTYPE_p_WebRpcClient__Handle p0, ulong p1, ulong p2, SWIGTYPE_p_GoSlice_ p3) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetBlocks(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), p1, p2, SWIGTYPE_p_GoSlice_.getCPtr(p3)); + public static uint SKY_secp256k1_VerifySignature(GoSlice p0, GoSlice p1, GoSlice p2, SWIGTYPE_p_long_long p3) { + uint ret = skycoinPINVOKE.SKY_secp256k1_VerifySignature(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), SWIGTYPE_p_long_long.getCPtr(p3)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_webrpc_Client_GetBlocksBySeq(SWIGTYPE_p_WebRpcClient__Handle p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetBlocksBySeq(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + public static uint SKY_secp256k1_SignatureErrorString(GoSlice p0, GoSlice p1, GoSlice p2, SWIGTYPE_p_GoString_ p3) { + uint ret = skycoinPINVOKE.SKY_secp256k1_SignatureErrorString(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), SWIGTYPE_p_GoString_.getCPtr(p3)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_webrpc_Client_GetLastBlocks(SWIGTYPE_p_WebRpcClient__Handle p0, ulong p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetLastBlocks(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2)); + public static uint SKY_secp256k1_RecoverPubkey(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1_RecoverPubkey(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_droplet_FromString(_GoString_ p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_droplet_FromString(_GoString_.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static uint SKY_secp256k1_ECDH(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1_ECDH(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_droplet_ToString(ulong p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_droplet_ToString(p0, SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_apputil_CatchInterruptPanic() { + uint ret = skycoinPINVOKE.SKY_apputil_CatchInterruptPanic(); return ret; } - public static uint SKY_bip39_NewDefaultMnemomic(SWIGTYPE_p_GoString_ p0) { - uint ret = skycoinPINVOKE.SKY_bip39_NewDefaultMnemomic(SWIGTYPE_p_GoString_.getCPtr(p0)); + public static uint SKY_apputil_CatchDebug() { + uint ret = skycoinPINVOKE.SKY_apputil_CatchDebug(); return ret; } - public static uint SKY_bip39_NewEntropy(long p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_bip39_NewEntropy(p0, SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_apputil_PrintProgramStatus() { + uint ret = skycoinPINVOKE.SKY_apputil_PrintProgramStatus(); return ret; } - public static uint SKY_bip39_NewMnemonic(GoSlice p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_bip39_NewMnemonic(GoSlice.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_cert_CreateCertIfNotExists(_GoString_ p0, _GoString_ p1, _GoString_ p2, _GoString_ p3) { + uint ret = skycoinPINVOKE.SKY_cert_CreateCertIfNotExists(_GoString_.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), _GoString_.getCPtr(p3)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_bip39_MnemonicToByteArray(_GoString_ p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_bip39_MnemonicToByteArray(_GoString_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_fee_VerifyTransactionFee(SWIGTYPE_p_Transaction__Handle p0, ulong p1) { + uint ret = skycoinPINVOKE.SKY_fee_VerifyTransactionFee(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_bip39_IsMnemonicValid(_GoString_ p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_bip39_IsMnemonicValid(_GoString_.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_fee_VerifyTransactionFeeForHours(ulong p0, ulong p1) { + uint ret = skycoinPINVOKE.SKY_fee_VerifyTransactionFeeForHours(p0, p1); return ret; } - public static uint SKY_secp256k1go_XYZ_Print(secp256k1go__XYZ p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_Print(secp256k1go__XYZ.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_fee_RequiredFee(ulong p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_fee_RequiredFee(p0, SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); return ret; } - public static uint SKY_secp256k1go_XYZ_SetXY(secp256k1go__XYZ p0, secp256k1go__XY p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_SetXY(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XY.getCPtr(p1)); + public static uint SKY_fee_RemainingHours(ulong p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_fee_RemainingHours(p0, SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); return ret; } - public static uint SKY_secp256k1go_XYZ_IsInfinity(secp256k1go__XYZ p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_IsInfinity(secp256k1go__XYZ.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + public static uint SKY_fee_TransactionFee(SWIGTYPE_p_Transaction__Handle p0, ulong p1, SWIGTYPE_p_GoSlice_ p2, SWIGTYPE_p_unsigned_long_long p3) { + uint ret = skycoinPINVOKE.SKY_fee_TransactionFee(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2), SWIGTYPE_p_unsigned_long_long.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_XYZ_IsValid(secp256k1go__XYZ p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_IsValid(secp256k1go__XYZ.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + public static uint SKY_cli_LoadConfig(SWIGTYPE_p_Config__Handle p0) { + uint ret = skycoinPINVOKE.SKY_cli_LoadConfig(SWIGTYPE_p_Config__Handle.getCPtr(p0)); return ret; } - public static uint SKY_secp256k1go_XYZ_Normalize(secp256k1go__XYZ p0) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_Normalize(secp256k1go__XYZ.getCPtr(p0)); + public static uint SKY_cli_Config_FullWalletPath(SWIGTYPE_p_Config__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_Config_FullWalletPath(SWIGTYPE_p_Config__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_XYZ_Equals(secp256k1go__XYZ p0, secp256k1go__XYZ p1, SWIGTYPE_p_unsigned_char p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_Equals(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); + public static uint SKY_cli_Config_FullDBPath(SWIGTYPE_p_Config__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_Config_FullDBPath(SWIGTYPE_p_Config__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_XYZ_ECmult(secp256k1go__XYZ p0, secp256k1go__XYZ p1, SWIGTYPE_p_Number_Handle p2, SWIGTYPE_p_Number_Handle p3) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_ECmult(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1), SWIGTYPE_p_Number_Handle.getCPtr(p2), SWIGTYPE_p_Number_Handle.getCPtr(p3)); + public static uint SKY_cli_NewApp(SWIGTYPE_p_Config__Handle p0, SWIGTYPE_p_App__Handle p1) { + uint ret = skycoinPINVOKE.SKY_cli_NewApp(SWIGTYPE_p_Config__Handle.getCPtr(p0), SWIGTYPE_p_App__Handle.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_XYZ_Neg(secp256k1go__XYZ p0, secp256k1go__XYZ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_Neg(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1)); + public static uint SKY_cli_RPCClientFromContext(SWIGTYPE_p_Context__Handle p0, SWIGTYPE_p_WebRpcClient__Handle p1) { + uint ret = skycoinPINVOKE.SKY_cli_RPCClientFromContext(SWIGTYPE_p_Context__Handle.getCPtr(p0), SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_XYZ_Double(secp256k1go__XYZ p0, secp256k1go__XYZ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_Double(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1)); + public static uint SKY_cli_ConfigFromContext(SWIGTYPE_p_Context__Handle p0, SWIGTYPE_p_Config__Handle p1) { + uint ret = skycoinPINVOKE.SKY_cli_ConfigFromContext(SWIGTYPE_p_Context__Handle.getCPtr(p0), SWIGTYPE_p_Config__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_XYZ_AddXY(secp256k1go__XYZ p0, secp256k1go__XYZ p1, secp256k1go__XY p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_AddXY(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1), secp256k1go__XY.getCPtr(p2)); + public static uint SKY_cli_PasswordFromBytes_Password(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_PasswordFromBytes_Password(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); return ret; } - public static uint SKY_secp256k1go_XYZ_Add(secp256k1go__XYZ p0, secp256k1go__XYZ p1, secp256k1go__XYZ p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_Add(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1), secp256k1go__XYZ.getCPtr(p2)); + public static uint SKY_cli_PasswordFromTerm_Password(SWIGTYPE_p_GoSlice_ p0) { + uint ret = skycoinPINVOKE.SKY_cli_PasswordFromTerm_Password(SWIGTYPE_p_GoSlice_.getCPtr(p0)); return ret; } - public static uint SKY_secp256k1go_ECmultGen(secp256k1go__XYZ p0, SWIGTYPE_p_Number_Handle p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_ECmultGen(secp256k1go__XYZ.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1)); + public static uint SKY_cli_CreateRawTxFromWallet(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, _GoString_ p2, GoSlice p3, SWIGTYPE_p_PasswordReader__Handle p4, SWIGTYPE_p_Transaction__Handle p5) { + uint ret = skycoinPINVOKE.SKY_cli_CreateRawTxFromWallet(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), GoSlice.getCPtr(p3), SWIGTYPE_p_PasswordReader__Handle.getCPtr(p4), SWIGTYPE_p_Transaction__Handle.getCPtr(p5)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_wallet_NewNotesFilename(SWIGTYPE_p_GoString_ p0) { - uint ret = skycoinPINVOKE.SKY_wallet_NewNotesFilename(SWIGTYPE_p_GoString_.getCPtr(p0)); + public static uint SKY_cli_CreateRawTxFromAddress(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, _GoString_ p2, _GoString_ p3, GoSlice p4, SWIGTYPE_p_PasswordReader__Handle p5, SWIGTYPE_p_Transaction__Handle p6) { + uint ret = skycoinPINVOKE.SKY_cli_CreateRawTxFromAddress(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), _GoString_.getCPtr(p3), GoSlice.getCPtr(p4), SWIGTYPE_p_PasswordReader__Handle.getCPtr(p5), SWIGTYPE_p_Transaction__Handle.getCPtr(p6)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_wallet_LoadNotes(_GoString_ p0, SWIGTYPE_p_WalletNotes_Handle p1) { - uint ret = skycoinPINVOKE.SKY_wallet_LoadNotes(_GoString_.getCPtr(p0), SWIGTYPE_p_WalletNotes_Handle.getCPtr(p1)); + public static uint SKY_cli_CreateRawTx(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_Wallet__Handle p1, GoSlice p2, _GoString_ p3, GoSlice p4, GoSlice p5, SWIGTYPE_p_Transaction__Handle p6) { + uint ret = skycoinPINVOKE.SKY_cli_CreateRawTx(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_Wallet__Handle.getCPtr(p1), GoSlice.getCPtr(p2), _GoString_.getCPtr(p3), GoSlice.getCPtr(p4), GoSlice.getCPtr(p5), SWIGTYPE_p_Transaction__Handle.getCPtr(p6)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_wallet_LoadReadableNotes(_GoString_ p0, SWIGTYPE_p_WalletReadableNotes_Handle p1) { - uint ret = skycoinPINVOKE.SKY_wallet_LoadReadableNotes(_GoString_.getCPtr(p0), SWIGTYPE_p_WalletReadableNotes_Handle.getCPtr(p1)); + public static uint SKY_cli_NewTransaction(GoSlice p0, GoSlice p1, GoSlice p2, SWIGTYPE_p_Transaction__Handle p3) { + uint ret = skycoinPINVOKE.SKY_cli_NewTransaction(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), SWIGTYPE_p_Transaction__Handle.getCPtr(p3)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_wallet_ReadableNotes_Load(SWIGTYPE_p_WalletReadableNotes_Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_ReadableNotes_Load(SWIGTYPE_p_WalletReadableNotes_Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + public static uint SKY_file_InitDataDir(_GoString_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_file_InitDataDir(_GoString_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_wallet_ReadableNotes_ToNotes(SWIGTYPE_p_WalletReadableNotes_Handle p0, SWIGTYPE_p_WalletNotes_Handle p1) { - uint ret = skycoinPINVOKE.SKY_wallet_ReadableNotes_ToNotes(SWIGTYPE_p_WalletReadableNotes_Handle.getCPtr(p0), SWIGTYPE_p_WalletNotes_Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_file_UserHome(SWIGTYPE_p_GoString_ p0) { + uint ret = skycoinPINVOKE.SKY_file_UserHome(SWIGTYPE_p_GoString_.getCPtr(p0)); return ret; } - public static uint SKY_wallet_ReadableNotes_Save(SWIGTYPE_p_WalletReadableNotes_Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_ReadableNotes_Save(SWIGTYPE_p_WalletReadableNotes_Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + public static uint SKY_file_ResolveResourceDirectory(_GoString_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_file_ResolveResourceDirectory(_GoString_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_wallet_NewReadableNote(wallet__Note p0, wallet__ReadableNote p1) { - uint ret = skycoinPINVOKE.SKY_wallet_NewReadableNote(wallet__Note.getCPtr(p0), wallet__ReadableNote.getCPtr(p1)); + public static uint SKY_file_DetermineResourcePath(_GoString_ p0, _GoString_ p1, _GoString_ p2, SWIGTYPE_p_GoString_ p3) { + uint ret = skycoinPINVOKE.SKY_file_DetermineResourcePath(_GoString_.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), SWIGTYPE_p_GoString_.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_wallet_NewReadableNotesFromNotes(SWIGTYPE_p_WalletNotes_Handle p0, SWIGTYPE_p_WalletReadableNotes_Handle p1) { - uint ret = skycoinPINVOKE.SKY_wallet_NewReadableNotesFromNotes(SWIGTYPE_p_WalletNotes_Handle.getCPtr(p0), SWIGTYPE_p_WalletReadableNotes_Handle.getCPtr(p1)); + public static uint SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, SWIGTYPE_p_OutputsResult_Handle p2) { + uint ret = skycoinPINVOKE.SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_OutputsResult_Handle.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_wallet_Notes_Save(SWIGTYPE_p_WalletNotes_Handle p0, _GoString_ p1, _GoString_ p2) { - uint ret = skycoinPINVOKE.SKY_wallet_Notes_Save(SWIGTYPE_p_WalletNotes_Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2)); + public static uint SKY_cli_GetWalletOutputs(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_Wallet__Handle p1, SWIGTYPE_p_OutputsResult_Handle p2) { + uint ret = skycoinPINVOKE.SKY_cli_GetWalletOutputs(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_Wallet__Handle.getCPtr(p1), SWIGTYPE_p_OutputsResult_Handle.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_wallet_Notes_SaveNote(SWIGTYPE_p_WalletNotes_Handle p0, _GoString_ p1, wallet__Note p2) { - uint ret = skycoinPINVOKE.SKY_wallet_Notes_SaveNote(SWIGTYPE_p_WalletNotes_Handle.getCPtr(p0), _GoString_.getCPtr(p1), wallet__Note.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_testutil_MakeAddress(cipher__Address p0) { + uint ret = skycoinPINVOKE.SKY_testutil_MakeAddress(cipher__Address.getCPtr(p0)); return ret; } - public static uint SKY_wallet_Notes_ToReadable(SWIGTYPE_p_WalletNotes_Handle p0, SWIGTYPE_p_WalletReadableNotes_Handle p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Notes_ToReadable(SWIGTYPE_p_WalletNotes_Handle.getCPtr(p0), SWIGTYPE_p_WalletReadableNotes_Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_secp256k1go_Field_String(secp256k1go__Field p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_String(secp256k1go__Field.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } - public static uint SKY_wallet_NotesFileExist(_GoString_ p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_wallet_NotesFileExist(_GoString_.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + public static uint SKY_secp256k1go_Field_Print(secp256k1go__Field p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Print(secp256k1go__Field.getCPtr(p0), _GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_wallet_CreateNoteFileIfNotExist(_GoString_ p0) { - uint ret = skycoinPINVOKE.SKY_wallet_CreateNoteFileIfNotExist(_GoString_.getCPtr(p0)); + public static uint SKY_secp256k1go_Field_SetB32(secp256k1go__Field p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_SetB32(secp256k1go__Field.getCPtr(p0), GoSlice.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_encrypt_ScryptChacha20poly1305_Encrypt(encrypt__ScryptChacha20poly1305 p0, GoSlice p1, GoSlice p2, SWIGTYPE_p_GoSlice_ p3) { - uint ret = skycoinPINVOKE.SKY_encrypt_ScryptChacha20poly1305_Encrypt(encrypt__ScryptChacha20poly1305.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); + public static uint SKY_secp256k1go_Field_SetBytes(secp256k1go__Field p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_SetBytes(secp256k1go__Field.getCPtr(p0), GoSlice.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_encrypt_ScryptChacha20poly1305_Decrypt(encrypt__ScryptChacha20poly1305 p0, GoSlice p1, GoSlice p2, SWIGTYPE_p_GoSlice_ p3) { - uint ret = skycoinPINVOKE.SKY_encrypt_ScryptChacha20poly1305_Decrypt(encrypt__ScryptChacha20poly1305.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); + public static uint SKY_secp256k1go_Field_SetHex(secp256k1go__Field p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_SetHex(secp256k1go__Field.getCPtr(p0), _GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_AddUint64(ulong p0, ulong p1, SWIGTYPE_p_unsigned_long_long p2) { - uint ret = skycoinPINVOKE.SKY_coin_AddUint64(p0, p1, SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); + public static uint SKY_secp256k1go_Field_IsOdd(secp256k1go__Field p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_IsOdd(secp256k1go__Field.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); return ret; } - public static uint SKY_coin_Uint64ToInt64(ulong p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Uint64ToInt64(p0, SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_secp256k1go_Field_IsZero(secp256k1go__Field p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_IsZero(secp256k1go__Field.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); return ret; } - public static uint SKY_coin_Int64ToUint64(long p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Int64ToUint64(p0, SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static uint SKY_secp256k1go_Field_SetInt(secp256k1go__Field p0, uint p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_SetInt(secp256k1go__Field.getCPtr(p0), p1); return ret; } - public static uint SKY_wallet_NewBalance(ulong p0, ulong p1, wallet__Balance p2) { - uint ret = skycoinPINVOKE.SKY_wallet_NewBalance(p0, p1, wallet__Balance.getCPtr(p2)); + public static uint SKY_secp256k1go_Field_Normalize(secp256k1go__Field p0) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Normalize(secp256k1go__Field.getCPtr(p0)); return ret; } - public static uint SKY_wallet_NewBalanceFromUxOut(ulong p0, coin__UxOut p1, wallet__Balance p2) { - uint ret = skycoinPINVOKE.SKY_wallet_NewBalanceFromUxOut(p0, coin__UxOut.getCPtr(p1), wallet__Balance.getCPtr(p2)); + public static uint SKY_secp256k1go_Field_GetB32(secp256k1go__Field p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_GetB32(secp256k1go__Field.getCPtr(p0), GoSlice.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_wallet_Balance_Add(wallet__Balance p0, wallet__Balance p1, wallet__Balance p2) { - uint ret = skycoinPINVOKE.SKY_wallet_Balance_Add(wallet__Balance.getCPtr(p0), wallet__Balance.getCPtr(p1), wallet__Balance.getCPtr(p2)); + public static uint SKY_secp256k1go_Field_Equals(secp256k1go__Field p0, secp256k1go__Field p1, SWIGTYPE_p_unsigned_char p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Equals(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); return ret; } - public static uint SKY_wallet_Balance_Sub(wallet__Balance p0, wallet__Balance p1, wallet__Balance p2) { - uint ret = skycoinPINVOKE.SKY_wallet_Balance_Sub(wallet__Balance.getCPtr(p0), wallet__Balance.getCPtr(p1), wallet__Balance.getCPtr(p2)); + public static uint SKY_secp256k1go_Field_SetAdd(secp256k1go__Field p0, secp256k1go__Field p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_SetAdd(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1)); return ret; } - public static uint SKY_wallet_Balance_Equals(wallet__Balance p0, wallet__Balance p1, SWIGTYPE_p_unsigned_char p2) { - uint ret = skycoinPINVOKE.SKY_wallet_Balance_Equals(wallet__Balance.getCPtr(p0), wallet__Balance.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); + public static uint SKY_secp256k1go_Field_MulInt(secp256k1go__Field p0, uint p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_MulInt(secp256k1go__Field.getCPtr(p0), p1); return ret; } - public static uint SKY_wallet_Balance_IsZero(wallet__Balance p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Balance_IsZero(wallet__Balance.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + public static uint SKY_secp256k1go_Field_Negate(secp256k1go__Field p0, secp256k1go__Field p1, uint p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Negate(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1), p2); return ret; } - public static uint SKY_ripemd160_New(SWIGTYPE_p_Hash_Handle p0) { - uint ret = skycoinPINVOKE.SKY_ripemd160_New(SWIGTYPE_p_Hash_Handle.getCPtr(p0)); + public static uint SKY_secp256k1go_Field_Inv(secp256k1go__Field p0, secp256k1go__Field p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Inv(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1)); return ret; } - public static uint SKY_ripemd160_Write(SWIGTYPE_p_Hash_Handle p0, GoSlice p1, SWIGTYPE_p_long_long p2) { - uint ret = skycoinPINVOKE.SKY_ripemd160_Write(SWIGTYPE_p_Hash_Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_long_long.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_secp256k1go_Field_Sqrt(secp256k1go__Field p0, secp256k1go__Field p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Sqrt(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1)); return ret; } - public static uint SKY_ripemd160_Sum(SWIGTYPE_p_Hash_Handle p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_ripemd160_Sum(SWIGTYPE_p_Hash_Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_secp256k1go_Field_InvVar(secp256k1go__Field p0, secp256k1go__Field p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_InvVar(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1)); return ret; } - public static uint SKY_coin_NewBlock(SWIGTYPE_p_Block__Handle p0, ulong p1, SWIGTYPE_p_a_32__GoUint8_ p2, SWIGTYPE_p_Transactions__Handle p3, SWIGTYPE_p_FeeCalculator p4, SWIGTYPE_p_Block__Handle p5) { - uint ret = skycoinPINVOKE.SKY_coin_NewBlock(SWIGTYPE_p_Block__Handle.getCPtr(p0), p1, SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2), SWIGTYPE_p_Transactions__Handle.getCPtr(p3), SWIGTYPE_p_FeeCalculator.getCPtr(p4), SWIGTYPE_p_Block__Handle.getCPtr(p5)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_secp256k1go_Field_Mul(secp256k1go__Field p0, secp256k1go__Field p1, secp256k1go__Field p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Mul(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1), secp256k1go__Field.getCPtr(p2)); return ret; } - public static uint SKY_coin_SignedBlock_VerifySignature(coin__SignedBlock p0, SWIGTYPE_p_a_33__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_SignedBlock_VerifySignature(coin__SignedBlock.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); + public static uint SKY_secp256k1go_Field_Sqr(secp256k1go__Field p0, secp256k1go__Field p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Sqr(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1)); return ret; } - public static uint SKY_coin_NewGenesisBlock(cipher__Address p0, ulong p1, ulong p2, SWIGTYPE_p_Block__Handle p3) { - uint ret = skycoinPINVOKE.SKY_coin_NewGenesisBlock(cipher__Address.getCPtr(p0), p1, p2, SWIGTYPE_p_Block__Handle.getCPtr(p3)); + public static uint SKY_scrypt_Key(GoSlice p0, GoSlice p1, long p2, long p3, long p4, long p5, SWIGTYPE_p_GoSlice_ p6) { + uint ret = skycoinPINVOKE.SKY_scrypt_Key(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), p2, p3, p4, p5, SWIGTYPE_p_GoSlice_.getCPtr(p6)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_Block_HashHeader(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Block_HashHeader(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + public static uint SKY_cipher_Ripemd160_Set(SWIGTYPE_p_a_20__GoUint8_ p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_cipher_Ripemd160_Set(SWIGTYPE_p_a_20__GoUint8_.getCPtr(p0), GoSlice.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_Block_PreHashHeader(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Block_PreHashHeader(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + public static uint SKY_cipher_HashRipemd160(GoSlice p0, SWIGTYPE_p_a_20__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_HashRipemd160(GoSlice.getCPtr(p0), SWIGTYPE_p_a_20__GoUint8_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_Block_Time(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Block_Time(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static uint SKY_cipher_SHA256_Set(SWIGTYPE_p_a_32__GoUint8_ p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Set(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), GoSlice.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_Block_Seq(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Block_Seq(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static uint SKY_cipher_SHA256_Hex(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Hex(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_SHA256_Xor(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_a_32__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Xor(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); + return ret; + } + + public static uint SKY_cipher_SumSHA256(GoSlice p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_SumSHA256(GoSlice.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_Block_HashBody(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Block_HashBody(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + public static uint SKY_cipher_SHA256FromHex(_GoString_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_SHA256FromHex(_GoString_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_Block_Size(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Block_Size(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_cipher_DoubleSHA256(GoSlice p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_DoubleSHA256(GoSlice.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_Block_String(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Block_String(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_cipher_AddSHA256(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_a_32__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_cipher_AddSHA256(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); return ret; } - public static uint SKY_coin_Block_GetTransaction(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_Transaction__Handle p2, SWIGTYPE_p_unsigned_char p3) { - uint ret = skycoinPINVOKE.SKY_coin_Block_GetTransaction(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_Transaction__Handle.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_cipher_Merkle(GoSlice p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_Merkle(GoSlice.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); return ret; } - public static uint SKY_coin_NewBlockHeader(coin__BlockHeader p0, SWIGTYPE_p_a_32__GoUint8_ p1, ulong p2, ulong p3, SWIGTYPE_p_BlockBody__Handle p4, coin__BlockHeader p5) { - uint ret = skycoinPINVOKE.SKY_coin_NewBlockHeader(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), p2, p3, SWIGTYPE_p_BlockBody__Handle.getCPtr(p4), coin__BlockHeader.getCPtr(p5)); + public static uint SKY_cipher_MustSumSHA256(GoSlice p0, long p1, SWIGTYPE_p_a_32__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_cipher_MustSumSHA256(GoSlice.getCPtr(p0), p1, SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_BlockHeader_Hash(coin__BlockHeader p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_BlockHeader_Hash(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + public static uint SKY_cipher_SHA256_Null(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Null(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); return ret; } - public static uint SKY_coin_BlockHeader_Bytes(coin__BlockHeader p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_BlockHeader_Bytes(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_coin_Create_Transaction(SWIGTYPE_p_Transaction__Handle p0) { + uint ret = skycoinPINVOKE.SKY_coin_Create_Transaction(SWIGTYPE_p_Transaction__Handle.getCPtr(p0)); return ret; } - public static uint SKY_coin_BlockHeader_String(coin__BlockHeader p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_BlockHeader_String(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_coin_Transaction_Copy(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_Transaction__Handle p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_Copy(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_BlockBody_Hash(SWIGTYPE_p_BlockBody__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Hash(SWIGTYPE_p_BlockBody__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + public static uint SKY_coin_GetTransactionObject(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_p_coin__Transaction p1) { + uint ret = skycoinPINVOKE.SKY_coin_GetTransactionObject(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_p_coin__Transaction.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_BlockBody_Size(SWIGTYPE_p_BlockBody__Handle p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Size(SWIGTYPE_p_BlockBody__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_coin_Transaction_ResetInputs(SWIGTYPE_p_Transaction__Handle p0, long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_ResetInputs(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_BlockBody_Bytes(SWIGTYPE_p_BlockBody__Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Bytes(SWIGTYPE_p_BlockBody__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_coin_Transaction_GetInputsCount(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetInputsCount(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_CreateUnspents(coin__BlockHeader p0, SWIGTYPE_p_Transaction__Handle p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_CreateUnspents(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + public static uint SKY_coin_Transaction_GetInputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, SWIGTYPE_p_a_32__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetInputAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_CreateUnspent(coin__BlockHeader p0, SWIGTYPE_p_Transaction__Handle p1, long p2, coin__UxOut p3) { - uint ret = skycoinPINVOKE.SKY_coin_CreateUnspent(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), p2, coin__UxOut.getCPtr(p3)); + public static uint SKY_coin_Transaction_SetInputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, SWIGTYPE_p_a_32__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetInputAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_GetBlockObject(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_p_coin__Block p1) { - uint ret = skycoinPINVOKE.SKY_coin_GetBlockObject(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_p_coin__Block.getCPtr(p1)); + public static uint SKY_coin_Transaction_GetOutputsCount(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetOutputsCount(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_GetBlockBody(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_BlockBody__Handle p1) { - uint ret = skycoinPINVOKE.SKY_coin_GetBlockBody(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_BlockBody__Handle.getCPtr(p1)); + public static uint SKY_coin_Transaction_GetOutputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, coin__TransactionOutput p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetOutputAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, coin__TransactionOutput.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_NewEmptyBlock(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_Block__Handle p1) { - uint ret = skycoinPINVOKE.SKY_coin_NewEmptyBlock(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_Block__Handle.getCPtr(p1)); + public static uint SKY_coin_Transaction_SetOutputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, coin__TransactionOutput p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetOutputAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, coin__TransactionOutput.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_wallet_CreateAddresses(_GoString_ p0, _GoString_ p1, long p2, byte p3, SWIGTYPE_p_ReadableWallet__Handle p4) { - uint ret = skycoinPINVOKE.SKY_wallet_CreateAddresses(_GoString_.getCPtr(p0), _GoString_.getCPtr(p1), p2, p3, SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p4)); + public static uint SKY_coin_Transaction_GetSignaturesCount(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetSignaturesCount(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_wallet_GetSkycoinWalletEntry(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_ReadableEntry__Handle p2) { - uint ret = skycoinPINVOKE.SKY_wallet_GetSkycoinWalletEntry(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p2)); + public static uint SKY_coin_Transaction_GetSignatureAt(SWIGTYPE_p_Transaction__Handle p0, long p1, SWIGTYPE_p_a_65__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetSignatureAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_wallet_GetBitcoinWalletEntry(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_ReadableEntry__Handle p2) { - uint ret = skycoinPINVOKE.SKY_wallet_GetBitcoinWalletEntry(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p2)); + public static uint SKY_coin_Transaction_SetSignatureAt(SWIGTYPE_p_Transaction__Handle p0, long p1, SWIGTYPE_p_a_65__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetSignatureAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_map_Get(SWIGTYPE_p_GoStringMap_ p0, _GoString_ p1, SWIGTYPE_p_GoString_ p2) { - uint ret = skycoinPINVOKE.SKY_map_Get(SWIGTYPE_p_GoStringMap_.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); + public static uint SKY_coin_Transaction_PushSignature(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_a_65__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushSignature(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static byte SKY_map_HasKey(SWIGTYPE_p_GoStringMap_ p0, _GoString_ p1) { - byte ret = skycoinPINVOKE.SKY_map_HasKey(SWIGTYPE_p_GoStringMap_.getCPtr(p0), _GoString_.getCPtr(p1)); + public static uint SKY_coin_Transaction_ResetOutputs(SWIGTYPE_p_Transaction__Handle p0, long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_ResetOutputs(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_map_Close(SWIGTYPE_p_GoStringMap_ p0) { - uint ret = skycoinPINVOKE.SKY_map_Close(SWIGTYPE_p_GoStringMap_.getCPtr(p0)); + public static uint SKY_coin_Transaction_ResetSignatures(SWIGTYPE_p_Transaction__Handle p0, long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_ResetSignatures(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_logging_EnableColors() { - uint ret = skycoinPINVOKE.SKY_logging_EnableColors(); + public static uint SKY_coin_Transaction_Verify(SWIGTYPE_p_Transaction__Handle p0) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_Verify(SWIGTYPE_p_Transaction__Handle.getCPtr(p0)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_logging_DisableColors() { - uint ret = skycoinPINVOKE.SKY_logging_DisableColors(); + public static uint SKY_coin_Transaction_VerifyInput(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_VerifyInput(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_logging_Disable() { - uint ret = skycoinPINVOKE.SKY_logging_Disable(); + public static uint SKY_coin_Transaction_PushInput(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_unsigned_short p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushInput(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_unsigned_short.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cli_GenerateWallet(_GoString_ p0, SWIGTYPE_p_Options__Handle p1, ulong p2, SWIGTYPE_p_Wallet__Handle p3) { - uint ret = skycoinPINVOKE.SKY_cli_GenerateWallet(_GoString_.getCPtr(p0), SWIGTYPE_p_Options__Handle.getCPtr(p1), p2, SWIGTYPE_p_Wallet__Handle.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_coin_TransactionOutput_UxID(coin__TransactionOutput p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_a_32__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_TransactionOutput_UxID(coin__TransactionOutput.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); return ret; } - public static uint SKY_cli_MakeAlphanumericSeed(SWIGTYPE_p_GoString_ p0) { - uint ret = skycoinPINVOKE.SKY_cli_MakeAlphanumericSeed(SWIGTYPE_p_GoString_.getCPtr(p0)); + public static uint SKY_coin_Transaction_PushOutput(SWIGTYPE_p_Transaction__Handle p0, cipher__Address p1, ulong p2, ulong p3) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushOutput(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), cipher__Address.getCPtr(p1), p2, p3); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Signature_Create(SWIGTYPE_p_Signature_Handle p0) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Create(SWIGTYPE_p_Signature_Handle.getCPtr(p0)); + public static uint SKY_coin_Transaction_SignInputs(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_SignInputs(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Signature_GetR(SWIGTYPE_p_Signature_Handle p0, SWIGTYPE_p_Number_Handle p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_GetR(SWIGTYPE_p_Signature_Handle.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1)); + public static uint SKY_coin_Transaction_Size(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_Size(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Signature_GetS(SWIGTYPE_p_Signature_Handle p0, SWIGTYPE_p_Number_Handle p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_GetS(SWIGTYPE_p_Signature_Handle.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1)); + public static uint SKY_coin_Transaction_Hash(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_Hash(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Signature_Print(SWIGTYPE_p_Signature_Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Print(SWIGTYPE_p_Signature_Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + public static uint SKY_coin_Transaction_SizeHash(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1, SWIGTYPE_p_a_32__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_SizeHash(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Signature_Verify(SWIGTYPE_p_Signature_Handle p0, secp256k1go__XY p1, SWIGTYPE_p_Number_Handle p2, SWIGTYPE_p_unsigned_char p3) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Verify(SWIGTYPE_p_Signature_Handle.getCPtr(p0), secp256k1go__XY.getCPtr(p1), SWIGTYPE_p_Number_Handle.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); + public static uint SKY_coin_Transaction_TxID(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_TxID(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Signature_Recover(SWIGTYPE_p_Signature_Handle p0, secp256k1go__XY p1, SWIGTYPE_p_Number_Handle p2, long p3, SWIGTYPE_p_unsigned_char p4) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Recover(SWIGTYPE_p_Signature_Handle.getCPtr(p0), secp256k1go__XY.getCPtr(p1), SWIGTYPE_p_Number_Handle.getCPtr(p2), p3, SWIGTYPE_p_unsigned_char.getCPtr(p4)); + public static uint SKY_coin_Transaction_TxIDHex(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_TxIDHex(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Signature_Sign(SWIGTYPE_p_Signature_Handle p0, SWIGTYPE_p_Number_Handle p1, SWIGTYPE_p_Number_Handle p2, SWIGTYPE_p_Number_Handle p3, SWIGTYPE_p_long_long p4, SWIGTYPE_p_long_long p5) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Sign(SWIGTYPE_p_Signature_Handle.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1), SWIGTYPE_p_Number_Handle.getCPtr(p2), SWIGTYPE_p_Number_Handle.getCPtr(p3), SWIGTYPE_p_long_long.getCPtr(p4), SWIGTYPE_p_long_long.getCPtr(p5)); + public static uint SKY_coin_Transaction_UpdateHeader(SWIGTYPE_p_Transaction__Handle p0) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_UpdateHeader(SWIGTYPE_p_Transaction__Handle.getCPtr(p0)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Signature_ParseBytes(SWIGTYPE_p_Signature_Handle p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_ParseBytes(SWIGTYPE_p_Signature_Handle.getCPtr(p0), GoSlice.getCPtr(p1)); + public static uint SKY_coin_Transaction_HashInner(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_HashInner(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Signature_Bytes(SWIGTYPE_p_Signature_Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Bytes(SWIGTYPE_p_Signature_Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_coin_Transaction_Serialize(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_Serialize(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Number_Create(SWIGTYPE_p_Number_Handle p0) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_Create(SWIGTYPE_p_Number_Handle.getCPtr(p0)); + public static uint SKY_coin_MustTransactionDeserialize(GoSlice p0, SWIGTYPE_p_Transaction__Handle p1) { + uint ret = skycoinPINVOKE.SKY_coin_MustTransactionDeserialize(GoSlice.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Number_Print(SWIGTYPE_p_Number_Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_Print(SWIGTYPE_p_Number_Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + public static uint SKY_coin_TransactionDeserialize(GoSlice p0, SWIGTYPE_p_Transaction__Handle p1) { + uint ret = skycoinPINVOKE.SKY_coin_TransactionDeserialize(GoSlice.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Number_SetHex(SWIGTYPE_p_Number_Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_SetHex(SWIGTYPE_p_Number_Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + public static uint SKY_coin_Transaction_OutputHours(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_OutputHours(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Number_IsOdd(SWIGTYPE_p_Number_Handle p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_IsOdd(SWIGTYPE_p_Number_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_coin_Create_Transactions(SWIGTYPE_p_Transactions__Handle p0) { + uint ret = skycoinPINVOKE.SKY_coin_Create_Transactions(SWIGTYPE_p_Transactions__Handle.getCPtr(p0)); return ret; } - public static uint SKY_secp256k1go_Number_IsEqual(SWIGTYPE_p_Number_Handle p0, SWIGTYPE_p_Number_Handle p1, SWIGTYPE_p_unsigned_char p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_IsEqual(SWIGTYPE_p_Number_Handle.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); + public static uint SKY_coin_GetTransactionsObject(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_GetTransactionsObject(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_p_GoSlice_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static void SKY_wallet_CreateOptionsHandle(_GoString_ p0, _GoString_ p1, _GoString_ p2, byte p3, _GoString_ p4, _GoString_ p5, ulong p6, SWIGTYPE_p_Options__Handle p7) { - skycoinPINVOKE.SKY_wallet_CreateOptionsHandle(_GoString_.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), p3, _GoString_.getCPtr(p4), _GoString_.getCPtr(p5), p6, SWIGTYPE_p_Options__Handle.getCPtr(p7)); + public static uint SKY_coin_Transactions_Length(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_Length(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; } - public static uint SKY_secp256k1go_XY_Print(secp256k1go__XY p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_Print(secp256k1go__XY.getCPtr(p0), _GoString_.getCPtr(p1)); + public static uint SKY_coin_Transactions_Add(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_Transaction__Handle p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_Add(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_XY_ParsePubkey(secp256k1go__XY p0, GoSlice p1, SWIGTYPE_p_unsigned_char p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_ParsePubkey(secp256k1go__XY.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); + public static uint SKY_coin_Transactions_Fees(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_FeeCalculator p1, SWIGTYPE_p_unsigned_long_long p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_Fees(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1), SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_XY_Bytes(secp256k1go__XY p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_Bytes(secp256k1go__XY.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_coin_Transactions_GetAt(SWIGTYPE_p_Transactions__Handle p0, long p1, SWIGTYPE_p_Transaction__Handle p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_GetAt(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), p1, SWIGTYPE_p_Transaction__Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_XY_BytesUncompressed(secp256k1go__XY p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_BytesUncompressed(secp256k1go__XY.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_coin_Transactions_Hashes(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_Hashes(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_XY_SetXY(secp256k1go__XY p0, secp256k1go__Field p1, secp256k1go__Field p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_SetXY(secp256k1go__XY.getCPtr(p0), secp256k1go__Field.getCPtr(p1), secp256k1go__Field.getCPtr(p2)); + public static uint SKY_coin_Transactions_Size(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_Size(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_XY_IsValid(secp256k1go__XY p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_IsValid(secp256k1go__XY.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + public static uint SKY_coin_Transactions_TruncateBytesTo(SWIGTYPE_p_Transactions__Handle p0, long p1, SWIGTYPE_p_Transactions__Handle p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_TruncateBytesTo(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), p1, SWIGTYPE_p_Transactions__Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_XY_SetXYZ(secp256k1go__XY p0, secp256k1go__XYZ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_SetXYZ(secp256k1go__XY.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1)); + public static uint SKY_coin_SortTransactions(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_FeeCalculator p1, SWIGTYPE_p_Transactions__Handle p2) { + uint ret = skycoinPINVOKE.SKY_coin_SortTransactions(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1), SWIGTYPE_p_Transactions__Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_XY_Neg(secp256k1go__XY p0, secp256k1go__XY p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_Neg(secp256k1go__XY.getCPtr(p0), secp256k1go__XY.getCPtr(p1)); + public static uint SKY_coin_NewSortableTransactions(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_FeeCalculator p1, SWIGTYPE_p_SortableTransactionResult_Handle p2) { + uint ret = skycoinPINVOKE.SKY_coin_NewSortableTransactions(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1), SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_XY_SetXO(secp256k1go__XY p0, secp256k1go__Field p1, byte p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_SetXO(secp256k1go__XY.getCPtr(p0), secp256k1go__Field.getCPtr(p1), p2); + public static uint SKY_coin_SortableTransactions_Sort(SWIGTYPE_p_SortableTransactionResult_Handle p0) { + uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Sort(SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p0)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_XY_AddXY(secp256k1go__XY p0, secp256k1go__XY p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_AddXY(secp256k1go__XY.getCPtr(p0), secp256k1go__XY.getCPtr(p1)); + public static uint SKY_coin_SortableTransactions_Len(SWIGTYPE_p_SortableTransactionResult_Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Len(SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_XY_GetPublicKey(secp256k1go__XY p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_GetPublicKey(secp256k1go__XY.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_coin_SortableTransactions_Less(SWIGTYPE_p_SortableTransactionResult_Handle p0, long p1, long p2, SWIGTYPE_p_unsigned_char p3) { + uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Less(SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p0), p1, p2, SWIGTYPE_p_unsigned_char.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_wallet_Entry_Verify(wallet__Entry p0) { - uint ret = skycoinPINVOKE.SKY_wallet_Entry_Verify(wallet__Entry.getCPtr(p0)); + public static uint SKY_coin_SortableTransactions_Swap(SWIGTYPE_p_SortableTransactionResult_Handle p0, long p1, long p2) { + uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Swap(SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p0), p1, p2); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_wallet_Entry_VerifyPublic(wallet__Entry p0) { - uint ret = skycoinPINVOKE.SKY_wallet_Entry_VerifyPublic(wallet__Entry.getCPtr(p0)); + public static uint SKY_coin_VerifyTransactionCoinsSpending(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_VerifyTransactionCoinsSpending(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); return ret; } - public static uint SKY_wallet_CryptoTypeFromString(_GoString_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_CryptoTypeFromString(_GoString_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_coin_VerifyTransactionHoursSpending(ulong p0, SWIGTYPE_p_GoSlice_ p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_VerifyTransactionHoursSpending(p0, SWIGTYPE_p_GoSlice_.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); return ret; } diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index dfa95748..63019281 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -521,266 +521,272 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_GoSlice")] public static extern void delete_GoSlice(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_String2Hex")] - public static extern uint SKY_base58_String2Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewBlock")] + public static extern uint SKY_coin_NewBlock(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Base58_ToInt")] - public static extern uint SKY_base58_Base58_ToInt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SignedBlock_VerifySignature")] + public static extern uint SKY_coin_SignedBlock_VerifySignature(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Base58_ToHex")] - public static extern uint SKY_base58_Base58_ToHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewGenesisBlock")] + public static extern uint SKY_coin_NewGenesisBlock(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Base58_Base582Int")] - public static extern uint SKY_base58_Base58_Base582Int(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_HashHeader")] + public static extern uint SKY_coin_Block_HashHeader(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Base582Hex")] - public static extern uint SKY_base58_Base582Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_PreHashHeader")] + public static extern uint SKY_coin_Block_PreHashHeader(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Base58_BitHex")] - public static extern uint SKY_base58_Base58_BitHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_Time")] + public static extern uint SKY_coin_Block_Time(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Int2Base58")] - public static extern uint SKY_base58_Int2Base58(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_Seq")] + public static extern uint SKY_coin_Block_Seq(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Hex2Base58")] - public static extern uint SKY_base58_Hex2Base58(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_HashBody")] + public static extern uint SKY_coin_Block_HashBody(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Hex2Base58String")] - public static extern uint SKY_base58_Hex2Base58String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_Size")] + public static extern uint SKY_coin_Block_Size(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Hex2Base58Str")] - public static extern uint SKY_base58_Hex2Base58Str(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_String")] + public static extern uint SKY_coin_Block_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewReadableEntry")] - public static extern uint SKY_wallet_NewReadableEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_GetTransaction")] + public static extern uint SKY_coin_Block_GetTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_LoadReadableEntry")] - public static extern uint SKY_wallet_LoadReadableEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewBlockHeader")] + public static extern uint SKY_coin_NewBlockHeader(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, ulong jarg3, ulong jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewReadableEntryFromPubkey")] - public static extern uint SKY_wallet_NewReadableEntryFromPubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockHeader_Hash")] + public static extern uint SKY_coin_BlockHeader_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableEntry_Save")] - public static extern uint SKY_wallet_ReadableEntry_Save(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockHeader_Bytes")] + public static extern uint SKY_coin_BlockHeader_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_LoadReadableWallet")] - public static extern uint SKY_wallet_LoadReadableWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockHeader_String")] + public static extern uint SKY_coin_BlockHeader_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableWallet_Save")] - public static extern uint SKY_wallet_ReadableWallet_Save(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockBody_Hash")] + public static extern uint SKY_coin_BlockBody_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableWallet_Load")] - public static extern uint SKY_wallet_ReadableWallet_Load(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockBody_Size")] + public static extern uint SKY_coin_BlockBody_Size(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableWallet_Erase")] - public static extern uint SKY_wallet_ReadableWallet_Erase(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockBody_Bytes")] + public static extern uint SKY_coin_BlockBody_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GetWalletOutputsFromFile")] - public static extern uint SKY_cli_GetWalletOutputsFromFile(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_CreateUnspents")] + public static extern uint SKY_coin_CreateUnspents(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GetWalletOutputs")] - public static extern uint SKY_cli_GetWalletOutputs(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_CreateUnspent")] + public static extern uint SKY_coin_CreateUnspent(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_String")] - public static extern uint SKY_secp256k1go_Field_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetBlockObject")] + public static extern uint SKY_coin_GetBlockObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Print")] - public static extern uint SKY_secp256k1go_Field_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetBlockBody")] + public static extern uint SKY_coin_GetBlockBody(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_SetB32")] - public static extern uint SKY_secp256k1go_Field_SetB32(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewEmptyBlock")] + public static extern uint SKY_coin_NewEmptyBlock(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_SetBytes")] - public static extern uint SKY_secp256k1go_Field_SetBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_bip39_NewDefaultMnemomic")] + public static extern uint SKY_bip39_NewDefaultMnemomic(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_SetHex")] - public static extern uint SKY_secp256k1go_Field_SetHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_bip39_NewEntropy")] + public static extern uint SKY_bip39_NewEntropy(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_IsOdd")] - public static extern uint SKY_secp256k1go_Field_IsOdd(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_bip39_NewMnemonic")] + public static extern uint SKY_bip39_NewMnemonic(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_IsZero")] - public static extern uint SKY_secp256k1go_Field_IsZero(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_bip39_MnemonicToByteArray")] + public static extern uint SKY_bip39_MnemonicToByteArray(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_SetInt")] - public static extern uint SKY_secp256k1go_Field_SetInt(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_bip39_IsMnemonicValid")] + public static extern uint SKY_bip39_IsMnemonicValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Normalize")] - public static extern uint SKY_secp256k1go_Field_Normalize(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewClient")] + public static extern uint SKY_api_NewClient(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_GetB32")] - public static extern uint SKY_secp256k1go_Field_GetB32(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CSRF")] + public static extern uint SKY_api_Client_CSRF(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Equals")] - public static extern uint SKY_secp256k1go_Field_Equals(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Version")] + public static extern uint SKY_api_Client_Version(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_SetAdd")] - public static extern uint SKY_secp256k1go_Field_SetAdd(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Outputs")] + public static extern uint SKY_api_Client_Outputs(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_MulInt")] - public static extern uint SKY_secp256k1go_Field_MulInt(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_OutputsForAddresses")] + public static extern uint SKY_api_Client_OutputsForAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Negate")] - public static extern uint SKY_secp256k1go_Field_Negate(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, uint jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_OutputsForHashes")] + public static extern uint SKY_api_Client_OutputsForHashes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Inv")] - public static extern uint SKY_secp256k1go_Field_Inv(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CoinSupply")] + public static extern uint SKY_api_Client_CoinSupply(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Sqrt")] - public static extern uint SKY_secp256k1go_Field_Sqrt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_BlockByHash")] + public static extern uint SKY_api_Client_BlockByHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_InvVar")] - public static extern uint SKY_secp256k1go_Field_InvVar(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_BlockBySeq")] + public static extern uint SKY_api_Client_BlockBySeq(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Mul")] - public static extern uint SKY_secp256k1go_Field_Mul(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Blocks")] + public static extern uint SKY_api_Client_Blocks(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Sqr")] - public static extern uint SKY_secp256k1go_Field_Sqr(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_LastBlocks")] + public static extern uint SKY_api_Client_LastBlocks(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewWalletResponse")] - public static extern uint SKY_api_NewWalletResponse(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_BlockchainMetadata")] + public static extern uint SKY_api_Client_BlockchainMetadata(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeySlice_Len")] - public static extern long SKY_cipher_PubKeySlice_Len(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_BlockchainProgress")] + public static extern uint SKY_api_Client_BlockchainProgress(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeySlice_Less")] - public static extern byte SKY_cipher_PubKeySlice_Less(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Balance")] + public static extern uint SKY_api_Client_Balance(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeySlice_Swap")] - public static extern uint SKY_cipher_PubKeySlice_Swap(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_UxOut")] + public static extern uint SKY_api_Client_UxOut(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_RandByte")] - public static extern uint SKY_cipher_RandByte(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_AddressUxOuts")] + public static extern uint SKY_api_Client_AddressUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_NewPubKey")] - public static extern uint SKY_cipher_NewPubKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Wallet")] + public static extern uint SKY_api_Client_Wallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_MustPubKeyFromHex")] - public static extern uint SKY_cipher_MustPubKeyFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Wallets")] + public static extern uint SKY_api_Client_Wallets(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromHex")] - public static extern uint SKY_cipher_PubKeyFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CreateUnencryptedWallet")] + public static extern uint SKY_api_Client_CreateUnencryptedWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, long jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromSecKey")] - public static extern uint SKY_cipher_PubKeyFromSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CreateEncryptedWallet")] + public static extern uint SKY_api_Client_CreateEncryptedWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, long jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromSig")] - public static extern uint SKY_cipher_PubKeyFromSig(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NewWalletAddress")] + public static extern uint SKY_api_Client_NewWalletAddress(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKey_Verify")] - public static extern uint SKY_cipher_PubKey_Verify(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_WalletBalance")] + public static extern uint SKY_api_Client_WalletBalance(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKey_Hex")] - public static extern uint SKY_cipher_PubKey_Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Spend")] + public static extern uint SKY_api_Client_Spend(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, ulong jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKey_ToAddressHash")] - public static extern uint SKY_cipher_PubKey_ToAddressHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CreateTransaction")] + public static extern uint SKY_api_Client_CreateTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_NewSecKey")] - public static extern uint SKY_cipher_NewSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_WalletTransactions")] + public static extern uint SKY_api_Client_WalletTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_MustSecKeyFromHex")] - public static extern uint SKY_cipher_MustSecKeyFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_UpdateWallet")] + public static extern uint SKY_api_Client_UpdateWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKeyFromHex")] - public static extern uint SKY_cipher_SecKeyFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_WalletFolderName")] + public static extern uint SKY_api_Client_WalletFolderName(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKey_Verify")] - public static extern uint SKY_cipher_SecKey_Verify(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NewSeed")] + public static extern uint SKY_api_Client_NewSeed(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKey_Hex")] - public static extern uint SKY_cipher_SecKey_Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_GetWalletSeed")] + public static extern uint SKY_api_Client_GetWalletSeed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_ECDH")] - public static extern uint SKY_cipher_ECDH(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkConnection")] + public static extern uint SKY_api_Client_NetworkConnection(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_NewSig")] - public static extern uint SKY_cipher_NewSig(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkConnections")] + public static extern uint SKY_api_Client_NetworkConnections(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_MustSigFromHex")] - public static extern uint SKY_cipher_MustSigFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkDefaultConnections")] + public static extern uint SKY_api_Client_NetworkDefaultConnections(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SigFromHex")] - public static extern uint SKY_cipher_SigFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkTrustedConnections")] + public static extern uint SKY_api_Client_NetworkTrustedConnections(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Sig_Hex")] - public static extern uint SKY_cipher_Sig_Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkExchangeableConnections")] + public static extern uint SKY_api_Client_NetworkExchangeableConnections(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SignHash")] - public static extern uint SKY_cipher_SignHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_PendingTransactions")] + public static extern uint SKY_api_Client_PendingTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_ChkSig")] - public static extern uint SKY_cipher_ChkSig(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Transaction")] + public static extern uint SKY_api_Client_Transaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_VerifySignedHash")] - public static extern uint SKY_cipher_VerifySignedHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Transactions")] + public static extern uint SKY_api_Client_Transactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_VerifySignature")] - public static extern uint SKY_cipher_VerifySignature(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_ConfirmedTransactions")] + public static extern uint SKY_api_Client_ConfirmedTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateKeyPair")] - public static extern uint SKY_cipher_GenerateKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_UnconfirmedTransactions")] + public static extern uint SKY_api_Client_UnconfirmedTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPair")] - public static extern uint SKY_cipher_GenerateDeterministicKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_InjectTransaction")] + public static extern uint SKY_api_Client_InjectTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_DeterministicKeyPairIterator")] - public static extern uint SKY_cipher_DeterministicKeyPairIterator(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_ResendUnconfirmedTransactions")] + public static extern uint SKY_api_Client_ResendUnconfirmedTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairs")] - public static extern uint SKY_cipher_GenerateDeterministicKeyPairs(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_RawTransaction")] + public static extern uint SKY_api_Client_RawTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairsSeed")] - public static extern uint SKY_cipher_GenerateDeterministicKeyPairsSeed(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_AddressTransactions")] + public static extern uint SKY_api_Client_AddressTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_TestSecKey")] - public static extern uint SKY_cipher_TestSecKey(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Richlist")] + public static extern uint SKY_api_Client_Richlist(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_TestSecKeyHash")] - public static extern uint SKY_cipher_TestSecKeyHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_AddressCount")] + public static extern uint SKY_api_Client_AddressCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_DecompressPoint")] - public static extern uint SKY_secp256k1go_DecompressPoint(global::System.Runtime.InteropServices.HandleRef jarg1, byte jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_UnloadWallet")] + public static extern uint SKY_api_Client_UnloadWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_RecoverPublicKey")] - public static extern uint SKY_secp256k1go_RecoverPublicKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Health")] + public static extern uint SKY_api_Client_Health(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Multiply")] - public static extern uint SKY_secp256k1go_Multiply(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_EncryptWallet")] + public static extern uint SKY_api_Client_EncryptWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_BaseMultiply")] - public static extern uint SKY_secp256k1go_BaseMultiply(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_DecryptWallet")] + public static extern uint SKY_api_Client_DecryptWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_BaseMultiplyAdd")] - public static extern uint SKY_secp256k1go_BaseMultiplyAdd(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_Print")] + public static extern uint SKY_secp256k1go_XY_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_GeneratePublicKey")] - public static extern uint SKY_secp256k1go_GeneratePublicKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_ParsePubkey")] + public static extern uint SKY_secp256k1go_XY_ParsePubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_SeckeyIsValid")] - public static extern uint SKY_secp256k1go_SeckeyIsValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_Bytes")] + public static extern uint SKY_secp256k1go_XY_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_PubkeyIsValid")] - public static extern uint SKY_secp256k1go_PubkeyIsValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_BytesUncompressed")] + public static extern uint SKY_secp256k1go_XY_BytesUncompressed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_file_InitDataDir")] - public static extern uint SKY_file_InitDataDir(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_SetXY")] + public static extern uint SKY_secp256k1go_XY_SetXY(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_file_UserHome")] - public static extern uint SKY_file_UserHome(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_IsValid")] + public static extern uint SKY_secp256k1go_XY_IsValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_file_ResolveResourceDirectory")] - public static extern uint SKY_file_ResolveResourceDirectory(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_SetXYZ")] + public static extern uint SKY_secp256k1go_XY_SetXYZ(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_file_DetermineResourcePath")] - public static extern uint SKY_file_DetermineResourcePath(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_Neg")] + public static extern uint SKY_secp256k1go_XY_Neg(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_SetXO")] + public static extern uint SKY_secp256k1go_XY_SetXO(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, byte jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_AddXY")] + public static extern uint SKY_secp256k1go_XY_AddXY(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_SumSHA256")] - public static extern uint SKY_secp256k1_SumSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_GetPublicKey")] + public static extern uint SKY_secp256k1go_XY_GetPublicKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_RandByte")] - public static extern uint SKY_secp256k1_RandByte(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewWalletResponse")] + public static extern uint SKY_api_NewWalletResponse(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewCreateTransactionResponse")] public static extern uint SKY_api_NewCreateTransactionResponse(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -797,677 +803,731 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewCreatedTransactionInput")] public static extern uint SKY_api_NewCreatedTransactionInput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_browser_Open")] - public static extern uint SKY_browser_Open(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewError")] + public static extern uint SKY_wallet_NewError(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_DecodeBase58Address")] - public static extern uint SKY_cipher_DecodeBase58Address(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewWallet")] + public static extern uint SKY_wallet_NewWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_MustDecodeBase58Address")] - public static extern uint SKY_cipher_MustDecodeBase58Address(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Lock")] + public static extern uint SKY_wallet_Wallet_Lock(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinMustDecodeBase58Address")] - public static extern uint SKY_cipher_BitcoinMustDecodeBase58Address(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Unlock")] + public static extern uint SKY_wallet_Wallet_Unlock(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddressFromBytes")] - public static extern uint SKY_cipher_AddressFromBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Load")] + public static extern uint SKY_wallet_Load(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddressFromPubKey")] - public static extern uint SKY_cipher_AddressFromPubKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Save")] + public static extern uint SKY_wallet_Wallet_Save(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddressFromSecKey")] - public static extern uint SKY_cipher_AddressFromSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Validate")] + public static extern uint SKY_wallet_Wallet_Validate(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinDecodeBase58Address")] - public static extern uint SKY_cipher_BitcoinDecodeBase58Address(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Type")] + public static extern uint SKY_wallet_Wallet_Type(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_MustAddressFromBytes")] - public static extern uint SKY_cipher_MustAddressFromBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Version")] + public static extern uint SKY_wallet_Wallet_Version(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_Bytes")] - public static extern uint SKY_cipher_Address_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Filename")] + public static extern uint SKY_wallet_Wallet_Filename(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_Null")] - public static extern uint SKY_cipher_Address_Null(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Label")] + public static extern uint SKY_wallet_Wallet_Label(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_BitcoinBytes")] - public static extern uint SKY_cipher_Address_BitcoinBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_IsEncrypted")] + public static extern uint SKY_wallet_Wallet_IsEncrypted(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_Verify")] - public static extern uint SKY_cipher_Address_Verify(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_GenerateAddresses")] + public static extern uint SKY_wallet_Wallet_GenerateAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_String")] - public static extern uint SKY_cipher_Address_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_GetAddresses")] + public static extern uint SKY_wallet_Wallet_GetAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_BitcoinString")] - public static extern uint SKY_cipher_Address_BitcoinString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_GetEntry")] + public static extern uint SKY_wallet_Wallet_GetEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_Checksum")] - public static extern uint SKY_cipher_Address_Checksum(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_AddEntry")] + public static extern uint SKY_wallet_Wallet_AddEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_BitcoinChecksum")] - public static extern uint SKY_cipher_Address_BitcoinChecksum(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_DistributeSpendHours")] + public static extern uint SKY_wallet_DistributeSpendHours(ulong jarg1, ulong jarg2, byte jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinAddressFromPubkey")] - public static extern uint SKY_cipher_BitcoinAddressFromPubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_DistributeCoinHoursProportional")] + public static extern uint SKY_wallet_DistributeCoinHoursProportional(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinWalletImportFormatFromSeckey")] - public static extern uint SKY_cipher_BitcoinWalletImportFormatFromSeckey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewUxBalances")] + public static extern uint SKY_wallet_NewUxBalances(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinAddressFromBytes")] - public static extern uint SKY_cipher_BitcoinAddressFromBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewUxBalance")] + public static extern uint SKY_wallet_NewUxBalance(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKeyFromWalletImportFormat")] - public static extern uint SKY_cipher_SecKeyFromWalletImportFormat(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ChooseSpendsMinimizeUxOuts")] + public static extern uint SKY_wallet_ChooseSpendsMinimizeUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_MustSecKeyFromWalletImportFormat")] - public static extern uint SKY_cipher_MustSecKeyFromWalletImportFormat(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ChooseSpendsMaximizeUxOuts")] + public static extern uint SKY_wallet_ChooseSpendsMaximizeUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_testutil_MakeAddress")] - public static extern uint SKY_testutil_MakeAddress(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_CheckWalletBalance")] + public static extern uint SKY_cli_CheckWalletBalance(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_CreateRawTxFromWallet")] - public static extern uint SKY_cli_CreateRawTxFromWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GetBalanceOfAddresses")] + public static extern uint SKY_cli_GetBalanceOfAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_CreateRawTxFromAddress")] - public static extern uint SKY_cli_CreateRawTxFromAddress(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, global::System.Runtime.InteropServices.HandleRef jarg7); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewNotesFilename")] + public static extern uint SKY_wallet_NewNotesFilename(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_CreateRawTx")] - public static extern uint SKY_cli_CreateRawTx(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, global::System.Runtime.InteropServices.HandleRef jarg7); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_LoadNotes")] + public static extern uint SKY_wallet_LoadNotes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_NewTransaction")] - public static extern uint SKY_cli_NewTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_LoadReadableNotes")] + public static extern uint SKY_wallet_LoadReadableNotes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_apputil_CatchInterruptPanic")] - public static extern uint SKY_apputil_CatchInterruptPanic(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableNotes_Load")] + public static extern uint SKY_wallet_ReadableNotes_Load(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_apputil_CatchDebug")] - public static extern uint SKY_apputil_CatchDebug(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableNotes_ToNotes")] + public static extern uint SKY_wallet_ReadableNotes_ToNotes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_apputil_PrintProgramStatus")] - public static extern uint SKY_apputil_PrintProgramStatus(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableNotes_Save")] + public static extern uint SKY_wallet_ReadableNotes_Save(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_utc_UnixNow")] - public static extern uint SKY_utc_UnixNow(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewReadableNote")] + public static extern uint SKY_wallet_NewReadableNote(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Address_UnmarshalJSON")] - public static extern uint SKY_httphelper_Address_UnmarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewReadableNotesFromNotes")] + public static extern uint SKY_wallet_NewReadableNotesFromNotes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Address_MarshalJSON")] - public static extern uint SKY_httphelper_Address_MarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Notes_Save")] + public static extern uint SKY_wallet_Notes_Save(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Coins_UnmarshalJSON")] - public static extern uint SKY_httphelper_Coins_UnmarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Notes_SaveNote")] + public static extern uint SKY_wallet_Notes_SaveNote(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Coins_MarshalJSON")] - public static extern uint SKY_httphelper_Coins_MarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Notes_ToReadable")] + public static extern uint SKY_wallet_Notes_ToReadable(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Coins_Value")] - public static extern uint SKY_httphelper_Coins_Value(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NotesFileExist")] + public static extern uint SKY_wallet_NotesFileExist(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Hours_UnmarshalJSON")] - public static extern uint SKY_httphelper_Hours_UnmarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_CreateNoteFileIfNotExist")] + public static extern uint SKY_wallet_CreateNoteFileIfNotExist(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Hours_MarshalJSON")] - public static extern uint SKY_httphelper_Hours_MarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewReadableEntry")] + public static extern uint SKY_wallet_NewReadableEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Hours_Value")] - public static extern uint SKY_httphelper_Hours_Value(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_LoadReadableEntry")] + public static extern uint SKY_wallet_LoadReadableEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_CheckWalletBalance")] - public static extern uint SKY_cli_CheckWalletBalance(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewReadableEntryFromPubkey")] + public static extern uint SKY_wallet_NewReadableEntryFromPubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GetBalanceOfAddresses")] - public static extern uint SKY_cli_GetBalanceOfAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableEntry_Save")] + public static extern uint SKY_wallet_ReadableEntry_Save(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_poly1305_Verify")] - public static extern uint SKY_poly1305_Verify(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_LoadReadableWallet")] + public static extern uint SKY_wallet_LoadReadableWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewClient")] - public static extern uint SKY_api_NewClient(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableWallet_Save")] + public static extern uint SKY_wallet_ReadableWallet_Save(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CSRF")] - public static extern uint SKY_api_Client_CSRF(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableWallet_Load")] + public static extern uint SKY_wallet_ReadableWallet_Load(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Version")] - public static extern uint SKY_api_Client_Version(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableWallet_Erase")] + public static extern uint SKY_wallet_ReadableWallet_Erase(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Outputs")] - public static extern uint SKY_api_Client_Outputs(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_DecompressPoint")] + public static extern uint SKY_secp256k1go_DecompressPoint(global::System.Runtime.InteropServices.HandleRef jarg1, byte jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_OutputsForAddresses")] - public static extern uint SKY_api_Client_OutputsForAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_RecoverPublicKey")] + public static extern uint SKY_secp256k1go_RecoverPublicKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_OutputsForHashes")] - public static extern uint SKY_api_Client_OutputsForHashes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Multiply")] + public static extern uint SKY_secp256k1go_Multiply(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_BaseMultiply")] + public static extern uint SKY_secp256k1go_BaseMultiply(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_BaseMultiplyAdd")] + public static extern uint SKY_secp256k1go_BaseMultiplyAdd(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_GeneratePublicKey")] + public static extern uint SKY_secp256k1go_GeneratePublicKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_SeckeyIsValid")] + public static extern uint SKY_secp256k1go_SeckeyIsValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_PubkeyIsValid")] + public static extern uint SKY_secp256k1go_PubkeyIsValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_String2Hex")] + public static extern uint SKY_base58_String2Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Base58_ToInt")] + public static extern uint SKY_base58_Base58_ToInt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Base58_ToHex")] + public static extern uint SKY_base58_Base58_ToHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Base58_Base582Int")] + public static extern uint SKY_base58_Base58_Base582Int(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Base582Hex")] + public static extern uint SKY_base58_Base582Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Base58_BitHex")] + public static extern uint SKY_base58_Base58_BitHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Int2Base58")] + public static extern uint SKY_base58_Int2Base58(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Hex2Base58")] + public static extern uint SKY_base58_Hex2Base58(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Hex2Base58String")] + public static extern uint SKY_base58_Hex2Base58String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Hex2Base58Str")] + public static extern uint SKY_base58_Hex2Base58Str(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GenerateWallet")] + public static extern uint SKY_cli_GenerateWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_MakeAlphanumericSeed")] + public static extern uint SKY_cli_MakeAlphanumericSeed(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_NewClient")] + public static extern uint SKY_webrpc_NewClient(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CoinSupply")] - public static extern uint SKY_api_Client_CoinSupply(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_CSRF")] + public static extern uint SKY_webrpc_Client_CSRF(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_BlockByHash")] - public static extern uint SKY_api_Client_BlockByHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetUnspentOutputs")] + public static extern uint SKY_webrpc_Client_GetUnspentOutputs(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_BlockBySeq")] - public static extern uint SKY_api_Client_BlockBySeq(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_InjectTransactionString")] + public static extern uint SKY_webrpc_Client_InjectTransactionString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Blocks")] - public static extern uint SKY_api_Client_Blocks(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_InjectTransaction")] + public static extern uint SKY_webrpc_Client_InjectTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_LastBlocks")] - public static extern uint SKY_api_Client_LastBlocks(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetStatus")] + public static extern uint SKY_webrpc_Client_GetStatus(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_BlockchainMetadata")] - public static extern uint SKY_api_Client_BlockchainMetadata(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetTransactionByID")] + public static extern uint SKY_webrpc_Client_GetTransactionByID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_BlockchainProgress")] - public static extern uint SKY_api_Client_BlockchainProgress(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetAddressUxOuts")] + public static extern uint SKY_webrpc_Client_GetAddressUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Balance")] - public static extern uint SKY_api_Client_Balance(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetBlocks")] + public static extern uint SKY_webrpc_Client_GetBlocks(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_UxOut")] - public static extern uint SKY_api_Client_UxOut(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetBlocksBySeq")] + public static extern uint SKY_webrpc_Client_GetBlocksBySeq(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_AddressUxOuts")] - public static extern uint SKY_api_Client_AddressUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetLastBlocks")] + public static extern uint SKY_webrpc_Client_GetLastBlocks(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Wallet")] - public static extern uint SKY_api_Client_Wallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_browser_Open")] + public static extern uint SKY_browser_Open(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Wallets")] - public static extern uint SKY_api_Client_Wallets(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_iputil_LocalhostIP")] + public static extern uint SKY_iputil_LocalhostIP(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CreateUnencryptedWallet")] - public static extern uint SKY_api_Client_CreateUnencryptedWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, long jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_iputil_IsLocalhost")] + public static extern uint SKY_iputil_IsLocalhost(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CreateEncryptedWallet")] - public static extern uint SKY_api_Client_CreateEncryptedWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, long jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_iputil_SplitAddr")] + public static extern uint SKY_iputil_SplitAddr(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NewWalletAddress")] - public static extern uint SKY_api_Client_NewWalletAddress(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encoder_StructField_String")] + public static extern uint SKY_encoder_StructField_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_WalletBalance")] - public static extern uint SKY_api_Client_WalletBalance(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encoder_ParseFields")] + public static extern uint SKY_encoder_ParseFields(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Spend")] - public static extern uint SKY_api_Client_Spend(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, ulong jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_SumSHA256")] + public static extern uint SKY_secp256k1_SumSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CreateTransaction")] - public static extern uint SKY_api_Client_CreateTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_RandByte")] + public static extern uint SKY_secp256k1_RandByte(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_WalletTransactions")] - public static extern uint SKY_api_Client_WalletTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GenerateAddressesInFile")] + public static extern uint SKY_cli_GenerateAddressesInFile(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_UpdateWallet")] - public static extern uint SKY_api_Client_UpdateWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_FormatAddressesAsJSON")] + public static extern uint SKY_cli_FormatAddressesAsJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_WalletFolderName")] - public static extern uint SKY_api_Client_WalletFolderName(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_FormatAddressesAsJoinedArray")] + public static extern uint SKY_cli_FormatAddressesAsJoinedArray(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NewSeed")] - public static extern uint SKY_api_Client_NewSeed(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_AddressesToStrings")] + public static extern uint SKY_cli_AddressesToStrings(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_GetWalletSeed")] - public static extern uint SKY_api_Client_GetWalletSeed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddUint64")] + public static extern uint SKY_coin_AddUint64(ulong jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkConnection")] - public static extern uint SKY_api_Client_NetworkConnection(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Uint64ToInt64")] + public static extern uint SKY_coin_Uint64ToInt64(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkConnections")] - public static extern uint SKY_api_Client_NetworkConnections(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Int64ToUint64")] + public static extern uint SKY_coin_Int64ToUint64(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkDefaultConnections")] - public static extern uint SKY_api_Client_NetworkDefaultConnections(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeySlice_Len")] + public static extern long SKY_cipher_PubKeySlice_Len(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkTrustedConnections")] - public static extern uint SKY_api_Client_NetworkTrustedConnections(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeySlice_Less")] + public static extern byte SKY_cipher_PubKeySlice_Less(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkExchangeableConnections")] - public static extern uint SKY_api_Client_NetworkExchangeableConnections(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeySlice_Swap")] + public static extern uint SKY_cipher_PubKeySlice_Swap(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_PendingTransactions")] - public static extern uint SKY_api_Client_PendingTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_RandByte")] + public static extern uint SKY_cipher_RandByte(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Transaction")] - public static extern uint SKY_api_Client_Transaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_NewPubKey")] + public static extern uint SKY_cipher_NewPubKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Transactions")] - public static extern uint SKY_api_Client_Transactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_MustPubKeyFromHex")] + public static extern uint SKY_cipher_MustPubKeyFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_ConfirmedTransactions")] - public static extern uint SKY_api_Client_ConfirmedTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromHex")] + public static extern uint SKY_cipher_PubKeyFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_UnconfirmedTransactions")] - public static extern uint SKY_api_Client_UnconfirmedTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromSecKey")] + public static extern uint SKY_cipher_PubKeyFromSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_InjectTransaction")] - public static extern uint SKY_api_Client_InjectTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromSig")] + public static extern uint SKY_cipher_PubKeyFromSig(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_ResendUnconfirmedTransactions")] - public static extern uint SKY_api_Client_ResendUnconfirmedTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKey_Verify")] + public static extern uint SKY_cipher_PubKey_Verify(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_RawTransaction")] - public static extern uint SKY_api_Client_RawTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKey_Hex")] + public static extern uint SKY_cipher_PubKey_Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_AddressTransactions")] - public static extern uint SKY_api_Client_AddressTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKey_ToAddressHash")] + public static extern uint SKY_cipher_PubKey_ToAddressHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Richlist")] - public static extern uint SKY_api_Client_Richlist(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_NewSecKey")] + public static extern uint SKY_cipher_NewSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_AddressCount")] - public static extern uint SKY_api_Client_AddressCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_MustSecKeyFromHex")] + public static extern uint SKY_cipher_MustSecKeyFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_UnloadWallet")] - public static extern uint SKY_api_Client_UnloadWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKeyFromHex")] + public static extern uint SKY_cipher_SecKeyFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Health")] - public static extern uint SKY_api_Client_Health(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKey_Verify")] + public static extern uint SKY_cipher_SecKey_Verify(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_EncryptWallet")] - public static extern uint SKY_api_Client_EncryptWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKey_Hex")] + public static extern uint SKY_cipher_SecKey_Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_DecryptWallet")] - public static extern uint SKY_api_Client_DecryptWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_ECDH")] + public static extern uint SKY_cipher_ECDH(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_JsonEncode_Handle")] - public static extern uint SKY_JsonEncode_Handle(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_NewSig")] + public static extern uint SKY_cipher_NewSig(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Progress_GetCurrent")] - public static extern uint SKY_Handle_Progress_GetCurrent(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_MustSigFromHex")] + public static extern uint SKY_cipher_MustSigFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Block_GetHeadSeq")] - public static extern uint SKY_Handle_Block_GetHeadSeq(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SigFromHex")] + public static extern uint SKY_cipher_SigFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Block_GetHeadHash")] - public static extern uint SKY_Handle_Block_GetHeadHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Sig_Hex")] + public static extern uint SKY_cipher_Sig_Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Block_GetPreviousBlockHash")] - public static extern uint SKY_Handle_Block_GetPreviousBlockHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SignHash")] + public static extern uint SKY_cipher_SignHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Blocks_GetAt")] - public static extern uint SKY_Handle_Blocks_GetAt(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_ChkSig")] + public static extern uint SKY_cipher_ChkSig(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Blocks_GetCount")] - public static extern uint SKY_Handle_Blocks_GetCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_VerifySignedHash")] + public static extern uint SKY_cipher_VerifySignedHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Connections_GetCount")] - public static extern uint SKY_Handle_Connections_GetCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_VerifySignature")] + public static extern uint SKY_cipher_VerifySignature(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Strings_GetCount")] - public static extern uint SKY_Handle_Strings_GetCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateKeyPair")] + public static extern uint SKY_cipher_GenerateKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Strings_Sort")] - public static extern uint SKY_Handle_Strings_Sort(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPair")] + public static extern uint SKY_cipher_GenerateDeterministicKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Strings_GetAt")] - public static extern uint SKY_Handle_Strings_GetAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_DeterministicKeyPairIterator")] + public static extern uint SKY_cipher_DeterministicKeyPairIterator(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_Client_GetWalletDir")] - public static extern uint SKY_api_Handle_Client_GetWalletDir(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairs")] + public static extern uint SKY_cipher_GenerateDeterministicKeyPairs(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_Client_GetWalletFileName")] - public static extern uint SKY_api_Handle_Client_GetWalletFileName(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairsSeed")] + public static extern uint SKY_cipher_GenerateDeterministicKeyPairsSeed(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_Client_GetWalletLabel")] - public static extern uint SKY_api_Handle_Client_GetWalletLabel(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_TestSecKey")] + public static extern uint SKY_cipher_TestSecKey(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_Client_GetWalletFullPath")] - public static extern uint SKY_api_Handle_Client_GetWalletFullPath(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_TestSecKeyHash")] + public static extern uint SKY_cipher_TestSecKeyHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetWalletMeta")] - public static extern uint SKY_api_Handle_GetWalletMeta(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Create")] + public static extern uint SKY_secp256k1go_Signature_Create(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetWalletEntriesCount")] - public static extern uint SKY_api_Handle_GetWalletEntriesCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_GetR")] + public static extern uint SKY_secp256k1go_Signature_GetR(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_Client_GetWalletResponseEntriesCount")] - public static extern uint SKY_api_Handle_Client_GetWalletResponseEntriesCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_GetS")] + public static extern uint SKY_secp256k1go_Signature_GetS(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletGetEntry")] - public static extern uint SKY_api_Handle_WalletGetEntry(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Print")] + public static extern uint SKY_secp256k1go_Signature_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletResponseGetEntry")] - public static extern uint SKY_api_Handle_WalletResponseGetEntry(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Verify")] + public static extern uint SKY_secp256k1go_Signature_Verify(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletResponseIsEncrypted")] - public static extern uint SKY_api_Handle_WalletResponseIsEncrypted(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Recover")] + public static extern uint SKY_secp256k1go_Signature_Recover(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, long jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletResponseGetCryptoType")] - public static extern uint SKY_api_Handle_WalletResponseGetCryptoType(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Sign")] + public static extern uint SKY_secp256k1go_Signature_Sign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletsResponseGetCount")] - public static extern uint SKY_api_Handle_WalletsResponseGetCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_ParseBytes")] + public static extern uint SKY_secp256k1go_Signature_ParseBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletsResponseGetAt")] - public static extern uint SKY_api_Handle_WalletsResponseGetAt(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Bytes")] + public static extern uint SKY_secp256k1go_Signature_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetWalletFolderAddress")] - public static extern uint SKY_api_Handle_GetWalletFolderAddress(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_App_Run")] + public static extern uint SKY_cli_App_Run(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetWalletSeed")] - public static extern uint SKY_api_Handle_GetWalletSeed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Config_GetCoin")] + public static extern uint SKY_cli_Config_GetCoin(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetWalletLastSeed")] - public static extern uint SKY_api_Handle_GetWalletLastSeed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Config_GetRPCAddress")] + public static extern uint SKY_cli_Config_GetRPCAddress(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetBuildInfoData")] - public static extern uint SKY_api_Handle_GetBuildInfoData(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_RPCClientFromApp")] + public static extern uint SKY_cli_RPCClientFromApp(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_GenerateKeyPair")] - public static extern uint SKY_secp256k1_GenerateKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Getenv")] + public static extern uint SKY_cli_Getenv(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_PubkeyFromSeckey")] - public static extern uint SKY_secp256k1_PubkeyFromSeckey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Setenv")] + public static extern uint SKY_cli_Setenv(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_UncompressPubkey")] - public static extern uint SKY_secp256k1_UncompressPubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_poly1305_Verify")] + public static extern uint SKY_poly1305_Verify(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_UncompressedPubkeyFromSeckey")] - public static extern uint SKY_secp256k1_UncompressedPubkeyFromSeckey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewBalance")] + public static extern uint SKY_wallet_NewBalance(ulong jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_Secp256k1Hash")] - public static extern uint SKY_secp256k1_Secp256k1Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewBalanceFromUxOut")] + public static extern uint SKY_wallet_NewBalanceFromUxOut(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_GenerateDeterministicKeyPair")] - public static extern uint SKY_secp256k1_GenerateDeterministicKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Balance_Add")] + public static extern uint SKY_wallet_Balance_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_DeterministicKeyPairIterator")] - public static extern uint SKY_secp256k1_DeterministicKeyPairIterator(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Balance_Sub")] + public static extern uint SKY_wallet_Balance_Sub(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_Sign")] - public static extern uint SKY_secp256k1_Sign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Balance_Equals")] + public static extern uint SKY_wallet_Balance_Equals(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_SignDeterministic")] - public static extern uint SKY_secp256k1_SignDeterministic(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Balance_IsZero")] + public static extern uint SKY_wallet_Balance_IsZero(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_VerifySeckey")] - public static extern uint SKY_secp256k1_VerifySeckey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_utc_UnixNow")] + public static extern uint SKY_utc_UnixNow(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_VerifyPubkey")] - public static extern uint SKY_secp256k1_VerifyPubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Address_UnmarshalJSON")] + public static extern uint SKY_httphelper_Address_UnmarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_VerifySignatureValidity")] - public static extern uint SKY_secp256k1_VerifySignatureValidity(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Address_MarshalJSON")] + public static extern uint SKY_httphelper_Address_MarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_VerifySignature")] - public static extern uint SKY_secp256k1_VerifySignature(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Coins_UnmarshalJSON")] + public static extern uint SKY_httphelper_Coins_UnmarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_SignatureErrorString")] - public static extern uint SKY_secp256k1_SignatureErrorString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Coins_MarshalJSON")] + public static extern uint SKY_httphelper_Coins_MarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_RecoverPubkey")] - public static extern uint SKY_secp256k1_RecoverPubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Coins_Value")] + public static extern uint SKY_httphelper_Coins_Value(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_ECDH")] - public static extern uint SKY_secp256k1_ECDH(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Hours_UnmarshalJSON")] + public static extern uint SKY_httphelper_Hours_UnmarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cert_CreateCertIfNotExists")] - public static extern uint SKY_cert_CreateCertIfNotExists(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Hours_MarshalJSON")] + public static extern uint SKY_httphelper_Hours_MarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_VerifyTransactionFee")] - public static extern uint SKY_fee_VerifyTransactionFee(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Hours_Value")] + public static extern uint SKY_httphelper_Hours_Value(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_VerifyTransactionFeeForHours")] - public static extern uint SKY_fee_VerifyTransactionFeeForHours(ulong jarg1, ulong jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Entry_Verify")] + public static extern uint SKY_wallet_Entry_Verify(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_RequiredFee")] - public static extern uint SKY_fee_RequiredFee(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Entry_VerifyPublic")] + public static extern uint SKY_wallet_Entry_VerifyPublic(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_RemainingHours")] - public static extern uint SKY_fee_RemainingHours(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_CreateAddresses")] + public static extern uint SKY_wallet_CreateAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, byte jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_TransactionFee")] - public static extern uint SKY_fee_TransactionFee(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_GetSkycoinWalletEntry")] + public static extern uint SKY_wallet_GetSkycoinWalletEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_iputil_LocalhostIP")] - public static extern uint SKY_iputil_LocalhostIP(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_GetBitcoinWalletEntry")] + public static extern uint SKY_wallet_GetBitcoinWalletEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_iputil_IsLocalhost")] - public static extern uint SKY_iputil_IsLocalhost(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Print")] + public static extern uint SKY_secp256k1go_XYZ_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_iputil_SplitAddr")] - public static extern uint SKY_iputil_SplitAddr(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_SetXY")] + public static extern uint SKY_secp256k1go_XYZ_SetXY(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Ripemd160_Set")] - public static extern uint SKY_cipher_Ripemd160_Set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_IsInfinity")] + public static extern uint SKY_secp256k1go_XYZ_IsInfinity(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_HashRipemd160")] - public static extern uint SKY_cipher_HashRipemd160(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_IsValid")] + public static extern uint SKY_secp256k1go_XYZ_IsValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Set")] - public static extern uint SKY_cipher_SHA256_Set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Normalize")] + public static extern uint SKY_secp256k1go_XYZ_Normalize(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Hex")] - public static extern uint SKY_cipher_SHA256_Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Equals")] + public static extern uint SKY_secp256k1go_XYZ_Equals(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Xor")] - public static extern uint SKY_cipher_SHA256_Xor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_ECmult")] + public static extern uint SKY_secp256k1go_XYZ_ECmult(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SumSHA256")] - public static extern uint SKY_cipher_SumSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Neg")] + public static extern uint SKY_secp256k1go_XYZ_Neg(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256FromHex")] - public static extern uint SKY_cipher_SHA256FromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Double")] + public static extern uint SKY_secp256k1go_XYZ_Double(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_DoubleSHA256")] - public static extern uint SKY_cipher_DoubleSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_AddXY")] + public static extern uint SKY_secp256k1go_XYZ_AddXY(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddSHA256")] - public static extern uint SKY_cipher_AddSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Add")] + public static extern uint SKY_secp256k1go_XYZ_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Merkle")] - public static extern uint SKY_cipher_Merkle(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_ECmultGen")] + public static extern uint SKY_secp256k1go_ECmultGen(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_MustSumSHA256")] - public static extern uint SKY_cipher_MustSumSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encrypt_Sha256Xor_Encrypt")] + public static extern uint SKY_encrypt_Sha256Xor_Encrypt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Null")] - public static extern uint SKY_cipher_SHA256_Null(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encrypt_Sha256Xor_Decrypt")] + public static extern uint SKY_encrypt_Sha256Xor_Decrypt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Create_Transaction")] - public static extern uint SKY_coin_Create_Transaction(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_droplet_FromString")] + public static extern uint SKY_droplet_FromString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Copy")] - public static extern uint SKY_coin_Transaction_Copy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_droplet_ToString")] + public static extern uint SKY_droplet_ToString(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetTransactionObject")] - public static extern uint SKY_coin_GetTransactionObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_CryptoTypeFromString")] + public static extern uint SKY_wallet_CryptoTypeFromString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_ResetInputs")] - public static extern uint SKY_coin_Transaction_ResetInputs(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_handle_close")] + public static extern void SKY_handle_close(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetInputsCount")] - public static extern uint SKY_coin_Transaction_GetInputsCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_handle_copy")] + public static extern uint SKY_handle_copy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetInputAt")] - public static extern uint SKY_coin_Transaction_GetInputAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_logging_EnableColors")] + public static extern uint SKY_logging_EnableColors(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SetInputAt")] - public static extern uint SKY_coin_Transaction_SetInputAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_logging_DisableColors")] + public static extern uint SKY_logging_DisableColors(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetOutputsCount")] - public static extern uint SKY_coin_Transaction_GetOutputsCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_logging_Disable")] + public static extern uint SKY_logging_Disable(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetOutputAt")] - public static extern uint SKY_coin_Transaction_GetOutputAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_map_Get")] + public static extern uint SKY_map_Get(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SetOutputAt")] - public static extern uint SKY_coin_Transaction_SetOutputAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_map_HasKey")] + public static extern byte SKY_map_HasKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetSignaturesCount")] - public static extern uint SKY_coin_Transaction_GetSignaturesCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_map_Close")] + public static extern uint SKY_map_Close(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetSignatureAt")] - public static extern uint SKY_coin_Transaction_GetSignatureAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_DecodeBase58Address")] + public static extern uint SKY_cipher_DecodeBase58Address(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SetSignatureAt")] - public static extern uint SKY_coin_Transaction_SetSignatureAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_MustDecodeBase58Address")] + public static extern uint SKY_cipher_MustDecodeBase58Address(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_PushSignature")] - public static extern uint SKY_coin_Transaction_PushSignature(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinMustDecodeBase58Address")] + public static extern uint SKY_cipher_BitcoinMustDecodeBase58Address(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_ResetOutputs")] - public static extern uint SKY_coin_Transaction_ResetOutputs(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddressFromBytes")] + public static extern uint SKY_cipher_AddressFromBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_ResetSignatures")] - public static extern uint SKY_coin_Transaction_ResetSignatures(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddressFromPubKey")] + public static extern uint SKY_cipher_AddressFromPubKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Verify")] - public static extern uint SKY_coin_Transaction_Verify(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddressFromSecKey")] + public static extern uint SKY_cipher_AddressFromSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_VerifyInput")] - public static extern uint SKY_coin_Transaction_VerifyInput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinDecodeBase58Address")] + public static extern uint SKY_cipher_BitcoinDecodeBase58Address(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_PushInput")] - public static extern uint SKY_coin_Transaction_PushInput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_MustAddressFromBytes")] + public static extern uint SKY_cipher_MustAddressFromBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_TransactionOutput_UxID")] - public static extern uint SKY_coin_TransactionOutput_UxID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_Bytes")] + public static extern uint SKY_cipher_Address_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_PushOutput")] - public static extern uint SKY_coin_Transaction_PushOutput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, ulong jarg3, ulong jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_Null")] + public static extern uint SKY_cipher_Address_Null(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SignInputs")] - public static extern uint SKY_coin_Transaction_SignInputs(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_BitcoinBytes")] + public static extern uint SKY_cipher_Address_BitcoinBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Size")] - public static extern uint SKY_coin_Transaction_Size(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_Verify")] + public static extern uint SKY_cipher_Address_Verify(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Hash")] - public static extern uint SKY_coin_Transaction_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_String")] + public static extern uint SKY_cipher_Address_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SizeHash")] - public static extern uint SKY_coin_Transaction_SizeHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_BitcoinString")] + public static extern uint SKY_cipher_Address_BitcoinString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_TxID")] - public static extern uint SKY_coin_Transaction_TxID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_Checksum")] + public static extern uint SKY_cipher_Address_Checksum(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_TxIDHex")] - public static extern uint SKY_coin_Transaction_TxIDHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_BitcoinChecksum")] + public static extern uint SKY_cipher_Address_BitcoinChecksum(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_UpdateHeader")] - public static extern uint SKY_coin_Transaction_UpdateHeader(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinAddressFromPubkey")] + public static extern uint SKY_cipher_BitcoinAddressFromPubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_HashInner")] - public static extern uint SKY_coin_Transaction_HashInner(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinWalletImportFormatFromSeckey")] + public static extern uint SKY_cipher_BitcoinWalletImportFormatFromSeckey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Serialize")] - public static extern uint SKY_coin_Transaction_Serialize(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinAddressFromBytes")] + public static extern uint SKY_cipher_BitcoinAddressFromBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_MustTransactionDeserialize")] - public static extern uint SKY_coin_MustTransactionDeserialize(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKeyFromWalletImportFormat")] + public static extern uint SKY_cipher_SecKeyFromWalletImportFormat(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_TransactionDeserialize")] - public static extern uint SKY_coin_TransactionDeserialize(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_MustSecKeyFromWalletImportFormat")] + public static extern uint SKY_cipher_MustSecKeyFromWalletImportFormat(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_OutputHours")] - public static extern uint SKY_coin_Transaction_OutputHours(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_JsonEncode_Handle")] + public static extern uint SKY_JsonEncode_Handle(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Create_Transactions")] - public static extern uint SKY_coin_Create_Transactions(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Progress_GetCurrent")] + public static extern uint SKY_Handle_Progress_GetCurrent(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetTransactionsObject")] - public static extern uint SKY_coin_GetTransactionsObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Block_GetHeadSeq")] + public static extern uint SKY_Handle_Block_GetHeadSeq(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Length")] - public static extern uint SKY_coin_Transactions_Length(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Block_GetHeadHash")] + public static extern uint SKY_Handle_Block_GetHeadHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Add")] - public static extern uint SKY_coin_Transactions_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Block_GetPreviousBlockHash")] + public static extern uint SKY_Handle_Block_GetPreviousBlockHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Fees")] - public static extern uint SKY_coin_Transactions_Fees(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Blocks_GetAt")] + public static extern uint SKY_Handle_Blocks_GetAt(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_GetAt")] - public static extern uint SKY_coin_Transactions_GetAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Blocks_GetCount")] + public static extern uint SKY_Handle_Blocks_GetCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Hashes")] - public static extern uint SKY_coin_Transactions_Hashes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Connections_GetCount")] + public static extern uint SKY_Handle_Connections_GetCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Size")] - public static extern uint SKY_coin_Transactions_Size(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Strings_GetCount")] + public static extern uint SKY_Handle_Strings_GetCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_TruncateBytesTo")] - public static extern uint SKY_coin_Transactions_TruncateBytesTo(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Strings_Sort")] + public static extern uint SKY_Handle_Strings_Sort(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SortTransactions")] - public static extern uint SKY_coin_SortTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Strings_GetAt")] + public static extern uint SKY_Handle_Strings_GetAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewSortableTransactions")] - public static extern uint SKY_coin_NewSortableTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_Client_GetWalletDir")] + public static extern uint SKY_api_Handle_Client_GetWalletDir(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SortableTransactions_Sort")] - public static extern uint SKY_coin_SortableTransactions_Sort(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_Client_GetWalletFileName")] + public static extern uint SKY_api_Handle_Client_GetWalletFileName(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SortableTransactions_Len")] - public static extern uint SKY_coin_SortableTransactions_Len(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_Client_GetWalletLabel")] + public static extern uint SKY_api_Handle_Client_GetWalletLabel(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SortableTransactions_Less")] - public static extern uint SKY_coin_SortableTransactions_Less(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_Client_GetWalletFullPath")] + public static extern uint SKY_api_Handle_Client_GetWalletFullPath(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SortableTransactions_Swap")] - public static extern uint SKY_coin_SortableTransactions_Swap(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetWalletMeta")] + public static extern uint SKY_api_Handle_GetWalletMeta(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_VerifyTransactionCoinsSpending")] - public static extern uint SKY_coin_VerifyTransactionCoinsSpending(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetWalletEntriesCount")] + public static extern uint SKY_api_Handle_GetWalletEntriesCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_VerifyTransactionHoursSpending")] - public static extern uint SKY_coin_VerifyTransactionHoursSpending(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_Client_GetWalletResponseEntriesCount")] + public static extern uint SKY_api_Handle_Client_GetWalletResponseEntriesCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encrypt_Sha256Xor_Encrypt")] - public static extern uint SKY_encrypt_Sha256Xor_Encrypt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletGetEntry")] + public static extern uint SKY_api_Handle_WalletGetEntry(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encrypt_Sha256Xor_Decrypt")] - public static extern uint SKY_encrypt_Sha256Xor_Decrypt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletResponseGetEntry")] + public static extern uint SKY_api_Handle_WalletResponseGetEntry(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GenerateAddressesInFile")] - public static extern uint SKY_cli_GenerateAddressesInFile(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletResponseIsEncrypted")] + public static extern uint SKY_api_Handle_WalletResponseIsEncrypted(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_FormatAddressesAsJSON")] - public static extern uint SKY_cli_FormatAddressesAsJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletResponseGetCryptoType")] + public static extern uint SKY_api_Handle_WalletResponseGetCryptoType(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_FormatAddressesAsJoinedArray")] - public static extern uint SKY_cli_FormatAddressesAsJoinedArray(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletsResponseGetCount")] + public static extern uint SKY_api_Handle_WalletsResponseGetCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_AddressesToStrings")] - public static extern uint SKY_cli_AddressesToStrings(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletsResponseGetAt")] + public static extern uint SKY_api_Handle_WalletsResponseGetAt(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_LoadConfig")] - public static extern uint SKY_cli_LoadConfig(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetWalletFolderAddress")] + public static extern uint SKY_api_Handle_GetWalletFolderAddress(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Config_FullWalletPath")] - public static extern uint SKY_cli_Config_FullWalletPath(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetWalletSeed")] + public static extern uint SKY_api_Handle_GetWalletSeed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Config_FullDBPath")] - public static extern uint SKY_cli_Config_FullDBPath(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetWalletLastSeed")] + public static extern uint SKY_api_Handle_GetWalletLastSeed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_NewApp")] - public static extern uint SKY_cli_NewApp(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetBuildInfoData")] + public static extern uint SKY_api_Handle_GetBuildInfoData(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_RPCClientFromContext")] - public static extern uint SKY_cli_RPCClientFromContext(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ripemd160_New")] + public static extern uint SKY_ripemd160_New(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_ConfigFromContext")] - public static extern uint SKY_cli_ConfigFromContext(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ripemd160_Write")] + public static extern uint SKY_ripemd160_Write(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_PasswordFromBytes_Password")] - public static extern uint SKY_cli_PasswordFromBytes_Password(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ripemd160_Sum")] + public static extern uint SKY_ripemd160_Sum(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_PasswordFromTerm_Password")] - public static extern uint SKY_cli_PasswordFromTerm_Password(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_Create")] + public static extern uint SKY_secp256k1go_Number_Create(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_handle_close")] - public static extern void SKY_handle_close(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_Print")] + public static extern uint SKY_secp256k1go_Number_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_handle_copy")] - public static extern uint SKY_handle_copy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_SetHex")] + public static extern uint SKY_secp256k1go_Number_SetHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encoder_StructField_String")] - public static extern uint SKY_encoder_StructField_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_IsOdd")] + public static extern uint SKY_secp256k1go_Number_IsOdd(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encoder_ParseFields")] - public static extern uint SKY_encoder_ParseFields(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_IsEqual")] + public static extern uint SKY_secp256k1go_Number_IsEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxOut_Hash")] public static extern uint SKY_coin_UxOut_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1541,74 +1601,14 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Set")] public static extern uint SKY_coin_AddressUxOuts_Set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_scrypt_Key")] - public static extern uint SKY_scrypt_Key(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, long jarg4, long jarg5, long jarg6, global::System.Runtime.InteropServices.HandleRef jarg7); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewError")] - public static extern uint SKY_wallet_NewError(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewWallet")] - public static extern uint SKY_wallet_NewWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Lock")] - public static extern uint SKY_wallet_Wallet_Lock(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Unlock")] - public static extern uint SKY_wallet_Wallet_Unlock(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Load")] - public static extern uint SKY_wallet_Load(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Save")] - public static extern uint SKY_wallet_Wallet_Save(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Validate")] - public static extern uint SKY_wallet_Wallet_Validate(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Type")] - public static extern uint SKY_wallet_Wallet_Type(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Version")] - public static extern uint SKY_wallet_Wallet_Version(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Filename")] - public static extern uint SKY_wallet_Wallet_Filename(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Label")] - public static extern uint SKY_wallet_Wallet_Label(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_IsEncrypted")] - public static extern uint SKY_wallet_Wallet_IsEncrypted(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_GenerateAddresses")] - public static extern uint SKY_wallet_Wallet_GenerateAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_GetAddresses")] - public static extern uint SKY_wallet_Wallet_GetAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_GetEntry")] - public static extern uint SKY_wallet_Wallet_GetEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_AddEntry")] - public static extern uint SKY_wallet_Wallet_AddEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_DistributeSpendHours")] - public static extern uint SKY_wallet_DistributeSpendHours(ulong jarg1, ulong jarg2, byte jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_DistributeCoinHoursProportional")] - public static extern uint SKY_wallet_DistributeCoinHoursProportional(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewUxBalances")] - public static extern uint SKY_wallet_NewUxBalances(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewUxBalance")] - public static extern uint SKY_wallet_NewUxBalance(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encrypt_ScryptChacha20poly1305_Encrypt")] + public static extern uint SKY_encrypt_ScryptChacha20poly1305_Encrypt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ChooseSpendsMinimizeUxOuts")] - public static extern uint SKY_wallet_ChooseSpendsMinimizeUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encrypt_ScryptChacha20poly1305_Decrypt")] + public static extern uint SKY_encrypt_ScryptChacha20poly1305_Decrypt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ChooseSpendsMaximizeUxOuts")] - public static extern uint SKY_wallet_ChooseSpendsMaximizeUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_CreateOptionsHandle")] + public static extern void SKY_wallet_CreateOptionsHandle(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, byte jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, ulong jarg7, global::System.Runtime.InteropServices.HandleRef jarg8); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_AddPrivateKey")] public static extern uint SKY_cli_AddPrivateKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1616,383 +1616,383 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_AddPrivateKeyToFile")] public static extern uint SKY_cli_AddPrivateKeyToFile(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_App_Run")] - public static extern uint SKY_cli_App_Run(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_GenerateKeyPair")] + public static extern uint SKY_secp256k1_GenerateKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Config_GetCoin")] - public static extern uint SKY_cli_Config_GetCoin(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_PubkeyFromSeckey")] + public static extern uint SKY_secp256k1_PubkeyFromSeckey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Config_GetRPCAddress")] - public static extern uint SKY_cli_Config_GetRPCAddress(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_UncompressPubkey")] + public static extern uint SKY_secp256k1_UncompressPubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_RPCClientFromApp")] - public static extern uint SKY_cli_RPCClientFromApp(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_UncompressedPubkeyFromSeckey")] + public static extern uint SKY_secp256k1_UncompressedPubkeyFromSeckey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Getenv")] - public static extern uint SKY_cli_Getenv(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_Secp256k1Hash")] + public static extern uint SKY_secp256k1_Secp256k1Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Setenv")] - public static extern uint SKY_cli_Setenv(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_GenerateDeterministicKeyPair")] + public static extern uint SKY_secp256k1_GenerateDeterministicKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_NewClient")] - public static extern uint SKY_webrpc_NewClient(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_DeterministicKeyPairIterator")] + public static extern uint SKY_secp256k1_DeterministicKeyPairIterator(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_CSRF")] - public static extern uint SKY_webrpc_Client_CSRF(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_Sign")] + public static extern uint SKY_secp256k1_Sign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetUnspentOutputs")] - public static extern uint SKY_webrpc_Client_GetUnspentOutputs(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_SignDeterministic")] + public static extern uint SKY_secp256k1_SignDeterministic(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_InjectTransactionString")] - public static extern uint SKY_webrpc_Client_InjectTransactionString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_VerifySeckey")] + public static extern uint SKY_secp256k1_VerifySeckey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_InjectTransaction")] - public static extern uint SKY_webrpc_Client_InjectTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_VerifyPubkey")] + public static extern uint SKY_secp256k1_VerifyPubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetStatus")] - public static extern uint SKY_webrpc_Client_GetStatus(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_VerifySignatureValidity")] + public static extern uint SKY_secp256k1_VerifySignatureValidity(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetTransactionByID")] - public static extern uint SKY_webrpc_Client_GetTransactionByID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_VerifySignature")] + public static extern uint SKY_secp256k1_VerifySignature(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetAddressUxOuts")] - public static extern uint SKY_webrpc_Client_GetAddressUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_SignatureErrorString")] + public static extern uint SKY_secp256k1_SignatureErrorString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetBlocks")] - public static extern uint SKY_webrpc_Client_GetBlocks(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_RecoverPubkey")] + public static extern uint SKY_secp256k1_RecoverPubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetBlocksBySeq")] - public static extern uint SKY_webrpc_Client_GetBlocksBySeq(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_ECDH")] + public static extern uint SKY_secp256k1_ECDH(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetLastBlocks")] - public static extern uint SKY_webrpc_Client_GetLastBlocks(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_apputil_CatchInterruptPanic")] + public static extern uint SKY_apputil_CatchInterruptPanic(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_droplet_FromString")] - public static extern uint SKY_droplet_FromString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_apputil_CatchDebug")] + public static extern uint SKY_apputil_CatchDebug(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_droplet_ToString")] - public static extern uint SKY_droplet_ToString(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_apputil_PrintProgramStatus")] + public static extern uint SKY_apputil_PrintProgramStatus(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_bip39_NewDefaultMnemomic")] - public static extern uint SKY_bip39_NewDefaultMnemomic(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cert_CreateCertIfNotExists")] + public static extern uint SKY_cert_CreateCertIfNotExists(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_bip39_NewEntropy")] - public static extern uint SKY_bip39_NewEntropy(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_VerifyTransactionFee")] + public static extern uint SKY_fee_VerifyTransactionFee(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_bip39_NewMnemonic")] - public static extern uint SKY_bip39_NewMnemonic(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_VerifyTransactionFeeForHours")] + public static extern uint SKY_fee_VerifyTransactionFeeForHours(ulong jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_bip39_MnemonicToByteArray")] - public static extern uint SKY_bip39_MnemonicToByteArray(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_RequiredFee")] + public static extern uint SKY_fee_RequiredFee(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_bip39_IsMnemonicValid")] - public static extern uint SKY_bip39_IsMnemonicValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_RemainingHours")] + public static extern uint SKY_fee_RemainingHours(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Print")] - public static extern uint SKY_secp256k1go_XYZ_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_TransactionFee")] + public static extern uint SKY_fee_TransactionFee(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_SetXY")] - public static extern uint SKY_secp256k1go_XYZ_SetXY(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_LoadConfig")] + public static extern uint SKY_cli_LoadConfig(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_IsInfinity")] - public static extern uint SKY_secp256k1go_XYZ_IsInfinity(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Config_FullWalletPath")] + public static extern uint SKY_cli_Config_FullWalletPath(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_IsValid")] - public static extern uint SKY_secp256k1go_XYZ_IsValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Config_FullDBPath")] + public static extern uint SKY_cli_Config_FullDBPath(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Normalize")] - public static extern uint SKY_secp256k1go_XYZ_Normalize(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_NewApp")] + public static extern uint SKY_cli_NewApp(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Equals")] - public static extern uint SKY_secp256k1go_XYZ_Equals(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_RPCClientFromContext")] + public static extern uint SKY_cli_RPCClientFromContext(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_ECmult")] - public static extern uint SKY_secp256k1go_XYZ_ECmult(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_ConfigFromContext")] + public static extern uint SKY_cli_ConfigFromContext(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Neg")] - public static extern uint SKY_secp256k1go_XYZ_Neg(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_PasswordFromBytes_Password")] + public static extern uint SKY_cli_PasswordFromBytes_Password(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Double")] - public static extern uint SKY_secp256k1go_XYZ_Double(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_PasswordFromTerm_Password")] + public static extern uint SKY_cli_PasswordFromTerm_Password(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_AddXY")] - public static extern uint SKY_secp256k1go_XYZ_AddXY(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_CreateRawTxFromWallet")] + public static extern uint SKY_cli_CreateRawTxFromWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Add")] - public static extern uint SKY_secp256k1go_XYZ_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_CreateRawTxFromAddress")] + public static extern uint SKY_cli_CreateRawTxFromAddress(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, global::System.Runtime.InteropServices.HandleRef jarg7); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_ECmultGen")] - public static extern uint SKY_secp256k1go_ECmultGen(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_CreateRawTx")] + public static extern uint SKY_cli_CreateRawTx(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, global::System.Runtime.InteropServices.HandleRef jarg7); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewNotesFilename")] - public static extern uint SKY_wallet_NewNotesFilename(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_NewTransaction")] + public static extern uint SKY_cli_NewTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_LoadNotes")] - public static extern uint SKY_wallet_LoadNotes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_file_InitDataDir")] + public static extern uint SKY_file_InitDataDir(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_LoadReadableNotes")] - public static extern uint SKY_wallet_LoadReadableNotes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_file_UserHome")] + public static extern uint SKY_file_UserHome(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableNotes_Load")] - public static extern uint SKY_wallet_ReadableNotes_Load(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_file_ResolveResourceDirectory")] + public static extern uint SKY_file_ResolveResourceDirectory(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableNotes_ToNotes")] - public static extern uint SKY_wallet_ReadableNotes_ToNotes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_file_DetermineResourcePath")] + public static extern uint SKY_file_DetermineResourcePath(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableNotes_Save")] - public static extern uint SKY_wallet_ReadableNotes_Save(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GetWalletOutputsFromFile")] + public static extern uint SKY_cli_GetWalletOutputsFromFile(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewReadableNote")] - public static extern uint SKY_wallet_NewReadableNote(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GetWalletOutputs")] + public static extern uint SKY_cli_GetWalletOutputs(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewReadableNotesFromNotes")] - public static extern uint SKY_wallet_NewReadableNotesFromNotes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_testutil_MakeAddress")] + public static extern uint SKY_testutil_MakeAddress(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Notes_Save")] - public static extern uint SKY_wallet_Notes_Save(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_String")] + public static extern uint SKY_secp256k1go_Field_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Notes_SaveNote")] - public static extern uint SKY_wallet_Notes_SaveNote(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Print")] + public static extern uint SKY_secp256k1go_Field_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Notes_ToReadable")] - public static extern uint SKY_wallet_Notes_ToReadable(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_SetB32")] + public static extern uint SKY_secp256k1go_Field_SetB32(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NotesFileExist")] - public static extern uint SKY_wallet_NotesFileExist(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_SetBytes")] + public static extern uint SKY_secp256k1go_Field_SetBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_CreateNoteFileIfNotExist")] - public static extern uint SKY_wallet_CreateNoteFileIfNotExist(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_SetHex")] + public static extern uint SKY_secp256k1go_Field_SetHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encrypt_ScryptChacha20poly1305_Encrypt")] - public static extern uint SKY_encrypt_ScryptChacha20poly1305_Encrypt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_IsOdd")] + public static extern uint SKY_secp256k1go_Field_IsOdd(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encrypt_ScryptChacha20poly1305_Decrypt")] - public static extern uint SKY_encrypt_ScryptChacha20poly1305_Decrypt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_IsZero")] + public static extern uint SKY_secp256k1go_Field_IsZero(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddUint64")] - public static extern uint SKY_coin_AddUint64(ulong jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_SetInt")] + public static extern uint SKY_secp256k1go_Field_SetInt(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Uint64ToInt64")] - public static extern uint SKY_coin_Uint64ToInt64(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Normalize")] + public static extern uint SKY_secp256k1go_Field_Normalize(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Int64ToUint64")] - public static extern uint SKY_coin_Int64ToUint64(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_GetB32")] + public static extern uint SKY_secp256k1go_Field_GetB32(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewBalance")] - public static extern uint SKY_wallet_NewBalance(ulong jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Equals")] + public static extern uint SKY_secp256k1go_Field_Equals(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewBalanceFromUxOut")] - public static extern uint SKY_wallet_NewBalanceFromUxOut(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_SetAdd")] + public static extern uint SKY_secp256k1go_Field_SetAdd(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Balance_Add")] - public static extern uint SKY_wallet_Balance_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_MulInt")] + public static extern uint SKY_secp256k1go_Field_MulInt(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Balance_Sub")] - public static extern uint SKY_wallet_Balance_Sub(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Negate")] + public static extern uint SKY_secp256k1go_Field_Negate(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, uint jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Balance_Equals")] - public static extern uint SKY_wallet_Balance_Equals(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Inv")] + public static extern uint SKY_secp256k1go_Field_Inv(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Balance_IsZero")] - public static extern uint SKY_wallet_Balance_IsZero(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Sqrt")] + public static extern uint SKY_secp256k1go_Field_Sqrt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ripemd160_New")] - public static extern uint SKY_ripemd160_New(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_InvVar")] + public static extern uint SKY_secp256k1go_Field_InvVar(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ripemd160_Write")] - public static extern uint SKY_ripemd160_Write(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Mul")] + public static extern uint SKY_secp256k1go_Field_Mul(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ripemd160_Sum")] - public static extern uint SKY_ripemd160_Sum(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Sqr")] + public static extern uint SKY_secp256k1go_Field_Sqr(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewBlock")] - public static extern uint SKY_coin_NewBlock(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_scrypt_Key")] + public static extern uint SKY_scrypt_Key(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, long jarg4, long jarg5, long jarg6, global::System.Runtime.InteropServices.HandleRef jarg7); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SignedBlock_VerifySignature")] - public static extern uint SKY_coin_SignedBlock_VerifySignature(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Ripemd160_Set")] + public static extern uint SKY_cipher_Ripemd160_Set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewGenesisBlock")] - public static extern uint SKY_coin_NewGenesisBlock(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_HashRipemd160")] + public static extern uint SKY_cipher_HashRipemd160(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_HashHeader")] - public static extern uint SKY_coin_Block_HashHeader(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Set")] + public static extern uint SKY_cipher_SHA256_Set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_PreHashHeader")] - public static extern uint SKY_coin_Block_PreHashHeader(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Hex")] + public static extern uint SKY_cipher_SHA256_Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_Time")] - public static extern uint SKY_coin_Block_Time(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Xor")] + public static extern uint SKY_cipher_SHA256_Xor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_Seq")] - public static extern uint SKY_coin_Block_Seq(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SumSHA256")] + public static extern uint SKY_cipher_SumSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_HashBody")] - public static extern uint SKY_coin_Block_HashBody(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256FromHex")] + public static extern uint SKY_cipher_SHA256FromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_Size")] - public static extern uint SKY_coin_Block_Size(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_DoubleSHA256")] + public static extern uint SKY_cipher_DoubleSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_String")] - public static extern uint SKY_coin_Block_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddSHA256")] + public static extern uint SKY_cipher_AddSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_GetTransaction")] - public static extern uint SKY_coin_Block_GetTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Merkle")] + public static extern uint SKY_cipher_Merkle(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewBlockHeader")] - public static extern uint SKY_coin_NewBlockHeader(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, ulong jarg3, ulong jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_MustSumSHA256")] + public static extern uint SKY_cipher_MustSumSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockHeader_Hash")] - public static extern uint SKY_coin_BlockHeader_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Null")] + public static extern uint SKY_cipher_SHA256_Null(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockHeader_Bytes")] - public static extern uint SKY_coin_BlockHeader_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Create_Transaction")] + public static extern uint SKY_coin_Create_Transaction(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockHeader_String")] - public static extern uint SKY_coin_BlockHeader_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Copy")] + public static extern uint SKY_coin_Transaction_Copy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockBody_Hash")] - public static extern uint SKY_coin_BlockBody_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetTransactionObject")] + public static extern uint SKY_coin_GetTransactionObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockBody_Size")] - public static extern uint SKY_coin_BlockBody_Size(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_ResetInputs")] + public static extern uint SKY_coin_Transaction_ResetInputs(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockBody_Bytes")] - public static extern uint SKY_coin_BlockBody_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetInputsCount")] + public static extern uint SKY_coin_Transaction_GetInputsCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_CreateUnspents")] - public static extern uint SKY_coin_CreateUnspents(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetInputAt")] + public static extern uint SKY_coin_Transaction_GetInputAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_CreateUnspent")] - public static extern uint SKY_coin_CreateUnspent(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SetInputAt")] + public static extern uint SKY_coin_Transaction_SetInputAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetBlockObject")] - public static extern uint SKY_coin_GetBlockObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetOutputsCount")] + public static extern uint SKY_coin_Transaction_GetOutputsCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetBlockBody")] - public static extern uint SKY_coin_GetBlockBody(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetOutputAt")] + public static extern uint SKY_coin_Transaction_GetOutputAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewEmptyBlock")] - public static extern uint SKY_coin_NewEmptyBlock(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SetOutputAt")] + public static extern uint SKY_coin_Transaction_SetOutputAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_CreateAddresses")] - public static extern uint SKY_wallet_CreateAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, byte jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetSignaturesCount")] + public static extern uint SKY_coin_Transaction_GetSignaturesCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_GetSkycoinWalletEntry")] - public static extern uint SKY_wallet_GetSkycoinWalletEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetSignatureAt")] + public static extern uint SKY_coin_Transaction_GetSignatureAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_GetBitcoinWalletEntry")] - public static extern uint SKY_wallet_GetBitcoinWalletEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SetSignatureAt")] + public static extern uint SKY_coin_Transaction_SetSignatureAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_map_Get")] - public static extern uint SKY_map_Get(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_PushSignature")] + public static extern uint SKY_coin_Transaction_PushSignature(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_map_HasKey")] - public static extern byte SKY_map_HasKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_ResetOutputs")] + public static extern uint SKY_coin_Transaction_ResetOutputs(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_map_Close")] - public static extern uint SKY_map_Close(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_ResetSignatures")] + public static extern uint SKY_coin_Transaction_ResetSignatures(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_logging_EnableColors")] - public static extern uint SKY_logging_EnableColors(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Verify")] + public static extern uint SKY_coin_Transaction_Verify(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_logging_DisableColors")] - public static extern uint SKY_logging_DisableColors(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_VerifyInput")] + public static extern uint SKY_coin_Transaction_VerifyInput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_logging_Disable")] - public static extern uint SKY_logging_Disable(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_PushInput")] + public static extern uint SKY_coin_Transaction_PushInput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GenerateWallet")] - public static extern uint SKY_cli_GenerateWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_TransactionOutput_UxID")] + public static extern uint SKY_coin_TransactionOutput_UxID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_MakeAlphanumericSeed")] - public static extern uint SKY_cli_MakeAlphanumericSeed(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_PushOutput")] + public static extern uint SKY_coin_Transaction_PushOutput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, ulong jarg3, ulong jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Create")] - public static extern uint SKY_secp256k1go_Signature_Create(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SignInputs")] + public static extern uint SKY_coin_Transaction_SignInputs(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_GetR")] - public static extern uint SKY_secp256k1go_Signature_GetR(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Size")] + public static extern uint SKY_coin_Transaction_Size(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_GetS")] - public static extern uint SKY_secp256k1go_Signature_GetS(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Hash")] + public static extern uint SKY_coin_Transaction_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Print")] - public static extern uint SKY_secp256k1go_Signature_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SizeHash")] + public static extern uint SKY_coin_Transaction_SizeHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Verify")] - public static extern uint SKY_secp256k1go_Signature_Verify(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_TxID")] + public static extern uint SKY_coin_Transaction_TxID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Recover")] - public static extern uint SKY_secp256k1go_Signature_Recover(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, long jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_TxIDHex")] + public static extern uint SKY_coin_Transaction_TxIDHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Sign")] - public static extern uint SKY_secp256k1go_Signature_Sign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_UpdateHeader")] + public static extern uint SKY_coin_Transaction_UpdateHeader(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_ParseBytes")] - public static extern uint SKY_secp256k1go_Signature_ParseBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_HashInner")] + public static extern uint SKY_coin_Transaction_HashInner(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Bytes")] - public static extern uint SKY_secp256k1go_Signature_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Serialize")] + public static extern uint SKY_coin_Transaction_Serialize(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_Create")] - public static extern uint SKY_secp256k1go_Number_Create(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_MustTransactionDeserialize")] + public static extern uint SKY_coin_MustTransactionDeserialize(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_Print")] - public static extern uint SKY_secp256k1go_Number_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_TransactionDeserialize")] + public static extern uint SKY_coin_TransactionDeserialize(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_SetHex")] - public static extern uint SKY_secp256k1go_Number_SetHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_OutputHours")] + public static extern uint SKY_coin_Transaction_OutputHours(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_IsOdd")] - public static extern uint SKY_secp256k1go_Number_IsOdd(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Create_Transactions")] + public static extern uint SKY_coin_Create_Transactions(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_IsEqual")] - public static extern uint SKY_secp256k1go_Number_IsEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetTransactionsObject")] + public static extern uint SKY_coin_GetTransactionsObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_CreateOptionsHandle")] - public static extern void SKY_wallet_CreateOptionsHandle(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, byte jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, ulong jarg7, global::System.Runtime.InteropServices.HandleRef jarg8); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Length")] + public static extern uint SKY_coin_Transactions_Length(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_Print")] - public static extern uint SKY_secp256k1go_XY_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Add")] + public static extern uint SKY_coin_Transactions_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_ParsePubkey")] - public static extern uint SKY_secp256k1go_XY_ParsePubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Fees")] + public static extern uint SKY_coin_Transactions_Fees(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_Bytes")] - public static extern uint SKY_secp256k1go_XY_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_GetAt")] + public static extern uint SKY_coin_Transactions_GetAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_BytesUncompressed")] - public static extern uint SKY_secp256k1go_XY_BytesUncompressed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Hashes")] + public static extern uint SKY_coin_Transactions_Hashes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_SetXY")] - public static extern uint SKY_secp256k1go_XY_SetXY(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Size")] + public static extern uint SKY_coin_Transactions_Size(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_IsValid")] - public static extern uint SKY_secp256k1go_XY_IsValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_TruncateBytesTo")] + public static extern uint SKY_coin_Transactions_TruncateBytesTo(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_SetXYZ")] - public static extern uint SKY_secp256k1go_XY_SetXYZ(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SortTransactions")] + public static extern uint SKY_coin_SortTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_Neg")] - public static extern uint SKY_secp256k1go_XY_Neg(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewSortableTransactions")] + public static extern uint SKY_coin_NewSortableTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_SetXO")] - public static extern uint SKY_secp256k1go_XY_SetXO(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, byte jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SortableTransactions_Sort")] + public static extern uint SKY_coin_SortableTransactions_Sort(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_AddXY")] - public static extern uint SKY_secp256k1go_XY_AddXY(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SortableTransactions_Len")] + public static extern uint SKY_coin_SortableTransactions_Len(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_GetPublicKey")] - public static extern uint SKY_secp256k1go_XY_GetPublicKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SortableTransactions_Less")] + public static extern uint SKY_coin_SortableTransactions_Less(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Entry_Verify")] - public static extern uint SKY_wallet_Entry_Verify(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SortableTransactions_Swap")] + public static extern uint SKY_coin_SortableTransactions_Swap(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Entry_VerifyPublic")] - public static extern uint SKY_wallet_Entry_VerifyPublic(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_VerifyTransactionCoinsSpending")] + public static extern uint SKY_coin_VerifyTransactionCoinsSpending(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_CryptoTypeFromString")] - public static extern uint SKY_wallet_CryptoTypeFromString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_VerifyTransactionHoursSpending")] + public static extern uint SKY_coin_VerifyTransactionHoursSpending(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Address_isEqual")] public static extern int cipher__Address_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index 8fe4c7fe..5771f13d 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -1779,1611 +1779,2025 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_GoSlice(void * jarg1) { } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_String2Hex(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock(void * jarg1, unsigned long long jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) { unsigned int jresult ; - GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoString *argp1 ; + Block__Handle arg1 ; + GoUint64 arg2 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + Transactions__Handle arg4 ; + FeeCalculator *arg5 = (FeeCalculator *) 0 ; + Block__Handle *arg6 = (Block__Handle *) 0 ; + Block__Handle *argp1 ; + Transactions__Handle *argp4 ; GoUint32 result; - argp1 = (GoString *)jarg1; + argp1 = (Block__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_base58_String2Hex(arg1,arg2); + arg2 = (GoUint64)jarg2; + arg3 = (cipher__SHA256 *)jarg3; + argp4 = (Transactions__Handle *)jarg4; + if (!argp4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + return 0; + } + arg4 = *argp4; + arg5 = (FeeCalculator *)jarg5; + arg6 = (Block__Handle *)jarg6; + result = (GoUint32)SKY_coin_NewBlock(arg1,arg2,(GoUint8_ (*)[32])arg3,arg4,arg5,arg6); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_ToInt(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SignedBlock_VerifySignature(void * jarg1, void * jarg2) { unsigned int jresult ; - GoString arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoString *argp1 ; + coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_base58_Base58_ToInt(arg1,arg2); + arg1 = (coin__SignedBlock *)jarg1; + arg2 = (cipher__PubKey *)jarg2; + result = (GoUint32)SKY_coin_SignedBlock_VerifySignature(arg1,(GoUint8_ (*)[33])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_ToHex(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewGenesisBlock(void * jarg1, unsigned long long jarg2, unsigned long long jarg3, void * jarg4) { unsigned int jresult ; - GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoString *argp1 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoUint64 arg2 ; + GoUint64 arg3 ; + Block__Handle *arg4 = (Block__Handle *) 0 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_base58_Base58_ToHex(arg1,arg2); + arg1 = (cipher__Address *)jarg1; + arg2 = (GoUint64)jarg2; + arg3 = (GoUint64)jarg3; + arg4 = (Block__Handle *)jarg4; + result = (GoUint32)SKY_coin_NewGenesisBlock(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_Base582Int(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_HashHeader(void * jarg1, void * jarg2) { unsigned int jresult ; - GoString arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoString *argp1 ; + Block__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + Block__Handle *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; + argp1 = (Block__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_base58_Base58_Base582Int(arg1,arg2); + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_Block_HashHeader(arg1,(GoUint8_ (*)[32])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base582Hex(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_PreHashHeader(void * jarg1, void * jarg2) { unsigned int jresult ; - GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoString *argp1 ; + Block__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + Block__Handle *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; + argp1 = (Block__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_base58_Base582Hex(arg1,arg2); + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_Block_PreHashHeader(arg1,(GoUint8_ (*)[32])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_BitHex(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_Time(void * jarg1, void * jarg2) { unsigned int jresult ; - GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoString *argp1 ; + Block__Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + Block__Handle *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; + argp1 = (Block__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_base58_Base58_BitHex(arg1,arg2); + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_coin_Block_Time(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Int2Base58(long long jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_Seq(void * jarg1, void * jarg2) { unsigned int jresult ; - GoInt arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; + Block__Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + Block__Handle *argp1 ; GoUint32 result; - arg1 = (GoInt)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_base58_Int2Base58(arg1,arg2); + argp1 = (Block__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_coin_Block_Seq(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Hex2Base58(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_HashBody(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoSlice *argp1 ; + Block__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + Block__Handle *argp1 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (Block__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_base58_Hex2Base58(arg1,arg2); + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_Block_HashBody(arg1,(GoUint8_ (*)[32])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Hex2Base58String(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_Size(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoSlice *argp1 ; + Block__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + Block__Handle *argp1 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (Block__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_base58_Hex2Base58String(arg1,arg2); + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_coin_Block_Size(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Hex2Base58Str(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_String(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; + Block__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; - GoSlice *argp1 ; + Block__Handle *argp1 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (Block__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); return 0; } arg1 = *argp1; arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_base58_Hex2Base58Str(arg1,arg2); + result = (GoUint32)SKY_coin_Block_String(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewReadableEntry(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_GetTransaction(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - ReadableEntry__Handle *arg2 = (ReadableEntry__Handle *) 0 ; + Block__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + Transaction__Handle *arg3 = (Transaction__Handle *) 0 ; + GoUint8 *arg4 = (GoUint8 *) 0 ; + Block__Handle *argp1 ; GoUint32 result; - arg1 = (wallet__Entry *)jarg1; - arg2 = (ReadableEntry__Handle *)jarg2; - result = (GoUint32)SKY_wallet_NewReadableEntry(arg1,arg2); + argp1 = (Block__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__SHA256 *)jarg2; + arg3 = (Transaction__Handle *)jarg3; + arg4 = (GoUint8 *)jarg4; + result = (GoUint32)SKY_coin_Block_GetTransaction(arg1,(GoUint8_ (*)[32])arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_LoadReadableEntry(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlockHeader(void * jarg1, void * jarg2, unsigned long long jarg3, unsigned long long jarg4, void * jarg5, void * jarg6) { unsigned int jresult ; - GoString arg1 ; - ReadableEntry__Handle *arg2 = (ReadableEntry__Handle *) 0 ; - GoString *argp1 ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint64 arg3 ; + GoUint64 arg4 ; + BlockBody__Handle arg5 ; + coin__BlockHeader *arg6 = (coin__BlockHeader *) 0 ; + BlockBody__Handle *argp5 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + arg1 = (coin__BlockHeader *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + arg3 = (GoUint64)jarg3; + arg4 = (GoUint64)jarg4; + argp5 = (BlockBody__Handle *)jarg5; + if (!argp5) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null BlockBody__Handle", 0); return 0; } - arg1 = *argp1; - arg2 = (ReadableEntry__Handle *)jarg2; - result = (GoUint32)SKY_wallet_LoadReadableEntry(arg1,arg2); + arg5 = *argp5; + arg6 = (coin__BlockHeader *)jarg6; + result = (GoUint32)SKY_coin_NewBlockHeader(arg1,(GoUint8_ (*)[32])arg2,arg3,arg4,arg5,arg6); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewReadableEntryFromPubkey(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockHeader_Hash(void * jarg1, void * jarg2) { unsigned int jresult ; - GoString arg1 ; - ReadableEntry__Handle *arg2 = (ReadableEntry__Handle *) 0 ; - GoString *argp1 ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (ReadableEntry__Handle *)jarg2; - result = (GoUint32)SKY_wallet_NewReadableEntryFromPubkey(arg1,arg2); + arg1 = (coin__BlockHeader *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_BlockHeader_Hash(arg1,(GoUint8_ (*)[32])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableEntry_Save(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockHeader_Bytes(void * jarg1, void * jarg2) { unsigned int jresult ; - ReadableEntry__Handle arg1 ; - GoString arg2 ; - ReadableEntry__Handle *argp1 ; - GoString *argp2 ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoUint32 result; - argp1 = (ReadableEntry__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null ReadableEntry__Handle", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_wallet_ReadableEntry_Save(arg1,arg2); + arg1 = (coin__BlockHeader *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_coin_BlockHeader_Bytes(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_LoadReadableWallet(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockHeader_String(void * jarg1, void * jarg2) { unsigned int jresult ; - GoString arg1 ; - ReadableWallet__Handle *arg2 = (ReadableWallet__Handle *) 0 ; - GoString *argp1 ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; - argp1 = (GoString *)jarg1; + arg1 = (coin__BlockHeader *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_coin_BlockHeader_String(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Hash(void * jarg1, void * jarg2) { + unsigned int jresult ; + BlockBody__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + BlockBody__Handle *argp1 ; + GoUint32 result; + + argp1 = (BlockBody__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null BlockBody__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (ReadableWallet__Handle *)jarg2; - result = (GoUint32)SKY_wallet_LoadReadableWallet(arg1,arg2); + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_BlockBody_Hash(arg1,(GoUint8_ (*)[32])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableWallet_Save(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Size(void * jarg1, void * jarg2) { unsigned int jresult ; - ReadableWallet__Handle arg1 ; - GoString arg2 ; - ReadableWallet__Handle *argp1 ; - GoString *argp2 ; + BlockBody__Handle *arg1 = (BlockBody__Handle *) 0 ; + GoInt *arg2 = (GoInt *) 0 ; GoUint32 result; - argp1 = (ReadableWallet__Handle *)jarg1; + arg1 = (BlockBody__Handle *)jarg1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_coin_BlockBody_Size(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Bytes(void * jarg1, void * jarg2) { + unsigned int jresult ; + BlockBody__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + BlockBody__Handle *argp1 ; + GoUint32 result; + + argp1 = (BlockBody__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null ReadableWallet__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null BlockBody__Handle", 0); return 0; } arg1 = *argp1; - argp2 = (GoString *)jarg2; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_coin_BlockBody_Bytes(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_CreateUnspents(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + Transaction__Handle arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + Transaction__Handle *argp2 ; + GoUint32 result; + + arg1 = (coin__BlockHeader *)jarg1; + argp2 = (Transaction__Handle *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); return 0; } arg2 = *argp2; - result = (GoUint32)SKY_wallet_ReadableWallet_Save(arg1,arg2); + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_coin_CreateUnspents(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableWallet_Load(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_CreateUnspent(void * jarg1, void * jarg2, long long jarg3, void * jarg4) { unsigned int jresult ; - ReadableWallet__Handle arg1 ; - GoString arg2 ; - ReadableWallet__Handle *argp1 ; - GoString *argp2 ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + Transaction__Handle arg2 ; + GoInt arg3 ; + coin__UxOut *arg4 = (coin__UxOut *) 0 ; + Transaction__Handle *argp2 ; GoUint32 result; - argp1 = (ReadableWallet__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null ReadableWallet__Handle", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoString *)jarg2; + arg1 = (coin__BlockHeader *)jarg1; + argp2 = (Transaction__Handle *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); return 0; } arg2 = *argp2; - result = (GoUint32)SKY_wallet_ReadableWallet_Load(arg1,arg2); + arg3 = (GoInt)jarg3; + arg4 = (coin__UxOut *)jarg4; + result = (GoUint32)SKY_coin_CreateUnspent(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableWallet_Erase(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetBlockObject(void * jarg1, void * jarg2) { unsigned int jresult ; - ReadableWallet__Handle arg1 ; - ReadableWallet__Handle *argp1 ; + Block__Handle arg1 ; + coin__Block **arg2 = (coin__Block **) 0 ; + Block__Handle *argp1 ; GoUint32 result; - argp1 = (ReadableWallet__Handle *)jarg1; + argp1 = (Block__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null ReadableWallet__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); return 0; } arg1 = *argp1; - result = (GoUint32)SKY_wallet_ReadableWallet_Erase(arg1); + arg2 = (coin__Block **)jarg2; + result = (GoUint32)SKY_coin_GetBlockObject(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetWalletOutputsFromFile(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetBlockBody(void * jarg1, void * jarg2) { unsigned int jresult ; - WebRpcClient__Handle arg1 ; - GoString arg2 ; - OutputsResult_Handle *arg3 = (OutputsResult_Handle *) 0 ; - WebRpcClient__Handle *argp1 ; - GoString *argp2 ; + Block__Handle arg1 ; + BlockBody__Handle *arg2 = (BlockBody__Handle *) 0 ; + Block__Handle *argp1 ; GoUint32 result; - argp1 = (WebRpcClient__Handle *)jarg1; + argp1 = (Block__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); return 0; } arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - arg3 = (OutputsResult_Handle *)jarg3; - result = (GoUint32)SKY_cli_GetWalletOutputsFromFile(arg1,arg2,arg3); + arg2 = (BlockBody__Handle *)jarg2; + result = (GoUint32)SKY_coin_GetBlockBody(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetWalletOutputs(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewEmptyBlock(void * jarg1, void * jarg2) { unsigned int jresult ; - WebRpcClient__Handle arg1 ; - Wallet__Handle *arg2 = (Wallet__Handle *) 0 ; - OutputsResult_Handle *arg3 = (OutputsResult_Handle *) 0 ; - WebRpcClient__Handle *argp1 ; + Transactions__Handle arg1 ; + Block__Handle *arg2 = (Block__Handle *) 0 ; + Transactions__Handle *argp1 ; GoUint32 result; - argp1 = (WebRpcClient__Handle *)jarg1; + argp1 = (Transactions__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (Wallet__Handle *)jarg2; - arg3 = (OutputsResult_Handle *)jarg3; - result = (GoUint32)SKY_cli_GetWalletOutputs(arg1,arg2,arg3); + arg2 = (Block__Handle *)jarg2; + result = (GoUint32)SKY_coin_NewEmptyBlock(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_String(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_NewDefaultMnemomic(void * jarg1) { unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; + GoString_ *arg1 = (GoString_ *) 0 ; GoUint32 result; - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_secp256k1go_Field_String(arg1,arg2); + arg1 = (GoString_ *)jarg1; + result = (GoUint32)SKY_bip39_NewDefaultMnemomic(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Print(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_NewEntropy(long long jarg1, void * jarg2) { unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoString arg2 ; - GoString *argp2 ; + GoInt arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoUint32 result; - arg1 = (secp256k1go__Field *)jarg1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_secp256k1go_Field_Print(arg1,arg2); + arg1 = (GoInt)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_bip39_NewEntropy(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetB32(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_NewMnemonic(void * jarg1, void * jarg2) { unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoSlice arg2 ; - GoSlice *argp2 ; + GoSlice arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoSlice *argp1 ; GoUint32 result; - arg1 = (secp256k1go__Field *)jarg1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { + argp1 = (GoSlice *)jarg1; + if (!argp1) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } - arg2 = *argp2; - result = (GoUint32)SKY_secp256k1go_Field_SetB32(arg1,arg2); + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_bip39_NewMnemonic(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetBytes(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_MnemonicToByteArray(void * jarg1, void * jarg2) { unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoSlice arg2 ; - GoSlice *argp2 ; + GoString arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoString *argp1 ; GoUint32 result; - arg1 = (secp256k1go__Field *)jarg1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } - arg2 = *argp2; - result = (GoUint32)SKY_secp256k1go_Field_SetBytes(arg1,arg2); + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_bip39_MnemonicToByteArray(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetHex(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_IsMnemonicValid(void * jarg1, void * jarg2) { unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoString arg2 ; - GoString *argp2 ; + GoString arg1 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoString *argp1 ; GoUint32 result; - arg1 = (secp256k1go__Field *)jarg1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } - arg2 = *argp2; - result = (GoUint32)SKY_secp256k1go_Field_SetHex(arg1,arg2); + arg1 = *argp1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_bip39_IsMnemonicValid(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_IsOdd(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewClient(void * jarg1, void * jarg2) { unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; + GoString arg1 ; + Client__Handle *arg2 = (Client__Handle *) 0 ; + GoString *argp1 ; GoUint32 result; - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_secp256k1go_Field_IsOdd(arg1,arg2); + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Client__Handle *)jarg2; + result = (GoUint32)SKY_api_NewClient(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_IsZero(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CSRF(void * jarg1, void * jarg2) { unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; + Client__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_secp256k1go_Field_IsZero(arg1,arg2); + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_api_Client_CSRF(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetInt(void * jarg1, unsigned int jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Version(void * jarg1, void * jarg2) { unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoUint32 arg2 ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (GoUint32)jarg2; - result = (GoUint32)SKY_secp256k1go_Field_SetInt(arg1,arg2); + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Handle *)jarg2; + result = (GoUint32)SKY_api_Client_Version(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Normalize(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Outputs(void * jarg1, void * jarg2) { unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - arg1 = (secp256k1go__Field *)jarg1; - result = (GoUint32)SKY_secp256k1go_Field_Normalize(arg1); + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Handle *)jarg2; + result = (GoUint32)SKY_api_Client_Outputs(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_GetB32(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_OutputsForAddresses(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + Client__Handle arg1 ; GoSlice arg2 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; GoSlice *argp2 ; GoUint32 result; - arg1 = (secp256k1go__Field *)jarg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg2 = *argp2; - result = (GoUint32)SKY_secp256k1go_Field_GetB32(arg1,arg2); + arg3 = (Handle *)jarg3; + result = (GoUint32)SKY_api_Client_OutputsForAddresses(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Equals(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_OutputsForHashes(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - GoUint8 *arg3 = (GoUint8 *) 0 ; + Client__Handle arg1 ; + GoSlice arg2 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoSlice *argp2 ; GoUint32 result; - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - arg3 = (GoUint8 *)jarg3; - result = (GoUint32)SKY_secp256k1go_Field_Equals(arg1,arg2,arg3); + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (Handle *)jarg3; + result = (GoUint32)SKY_api_Client_OutputsForHashes(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetAdd(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CoinSupply(void * jarg1, void * jarg2) { unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - result = (GoUint32)SKY_secp256k1go_Field_SetAdd(arg1,arg2); + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Handle *)jarg2; + result = (GoUint32)SKY_api_Client_CoinSupply(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_MulInt(void * jarg1, unsigned int jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockByHash(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoUint32 arg2 ; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; GoUint32 result; - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (GoUint32)jarg2; - result = (GoUint32)SKY_secp256k1go_Field_MulInt(arg1,arg2); + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (Handle *)jarg3; + result = (GoUint32)SKY_api_Client_BlockByHash(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Negate(void * jarg1, void * jarg2, unsigned int jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockBySeq(void * jarg1, unsigned long long jarg2, void * jarg3) { unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - GoUint32 arg3 ; + Client__Handle arg1 ; + GoUint64 arg2 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - arg3 = (GoUint32)jarg3; - result = (GoUint32)SKY_secp256k1go_Field_Negate(arg1,arg2,arg3); + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64)jarg2; + arg3 = (Handle *)jarg3; + result = (GoUint32)SKY_api_Client_BlockBySeq(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Inv(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Blocks(void * jarg1, long long jarg2, long long jarg3, void * jarg4) { unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + Client__Handle arg1 ; + GoInt arg2 ; + GoInt arg3 ; + Handle *arg4 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - result = (GoUint32)SKY_secp256k1go_Field_Inv(arg1,arg2); + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt)jarg2; + arg3 = (GoInt)jarg3; + arg4 = (Handle *)jarg4; + result = (GoUint32)SKY_api_Client_Blocks(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Sqrt(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_LastBlocks(void * jarg1, long long jarg2, void * jarg3) { unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + Client__Handle arg1 ; + GoInt arg2 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - result = (GoUint32)SKY_secp256k1go_Field_Sqrt(arg1,arg2); + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt)jarg2; + arg3 = (Handle *)jarg3; + result = (GoUint32)SKY_api_Client_LastBlocks(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_InvVar(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockchainMetadata(void * jarg1, void * jarg2) { unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - result = (GoUint32)SKY_secp256k1go_Field_InvVar(arg1,arg2); + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Handle *)jarg2; + result = (GoUint32)SKY_api_Client_BlockchainMetadata(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Mul(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockchainProgress(void * jarg1, void * jarg2) { unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg3 = (secp256k1go__Field *) 0 ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - arg3 = (secp256k1go__Field *)jarg3; - result = (GoUint32)SKY_secp256k1go_Field_Mul(arg1,arg2,arg3); + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Handle *)jarg2; + result = (GoUint32)SKY_api_Client_BlockchainProgress(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Sqr(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Balance(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + Client__Handle arg1 ; + GoSlice arg2 ; + wallet__BalancePair *arg3 = (wallet__BalancePair *) 0 ; + Client__Handle *argp1 ; + GoSlice *argp2 ; GoUint32 result; - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - result = (GoUint32)SKY_secp256k1go_Field_Sqr(arg1,arg2); + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (wallet__BalancePair *)jarg3; + result = (GoUint32)SKY_api_Client_Balance(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewWalletResponse(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UxOut(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Wallet__Handle arg1 ; - WalletResponse__Handle *arg2 = (WalletResponse__Handle *) 0 ; - Wallet__Handle *argp1 ; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; GoUint32 result; - argp1 = (Wallet__Handle *)jarg1; + argp1 = (Client__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (WalletResponse__Handle *)jarg2; - result = (GoUint32)SKY_api_NewWalletResponse(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Len(void * jarg1) { - long long jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoInt result; - - arg1 = (coin__UxArray *)jarg1; - result = (GoInt)SKY_cipher_PubKeySlice_Len(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Less(void * jarg1, long long jarg2, long long jarg3) { - unsigned char jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoInt arg2 ; - GoInt arg3 ; - GoUint8 result; - - arg1 = (coin__UxArray *)jarg1; - arg2 = (GoInt)jarg2; - arg3 = (GoInt)jarg3; - result = (GoUint8)SKY_cipher_PubKeySlice_Less(arg1,arg2,arg3); + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (Handle *)jarg3; + result = (GoUint32)SKY_api_Client_UxOut(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Swap(void * jarg1, long long jarg2, long long jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressUxOuts(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoInt arg2 ; - GoInt arg3 ; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; GoUint32 result; - arg1 = (coin__UxArray *)jarg1; - arg2 = (GoInt)jarg2; - arg3 = (GoInt)jarg3; - result = (GoUint32)SKY_cipher_PubKeySlice_Swap(arg1,arg2,arg3); + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (Handle *)jarg3; + result = (GoUint32)SKY_api_Client_AddressUxOuts(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_RandByte(long long jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Wallet(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - GoInt arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; + Client__Handle arg1 ; + GoString arg2 ; + WalletResponse__Handle *arg3 = (WalletResponse__Handle *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; GoUint32 result; - arg1 = (GoInt)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_cipher_RandByte(arg1,arg2); + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (WalletResponse__Handle *)jarg3; + result = (GoUint32)SKY_api_Client_Wallet(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewPubKey(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Wallets(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; - GoSlice *argp1 ; + Client__Handle arg1 ; + Wallets__Handle *arg2 = (Wallets__Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (Client__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (cipher__PubKey *)jarg2; - result = (GoUint32)SKY_cipher_NewPubKey(arg1,(GoUint8_ (*)[33])arg2); + arg2 = (Wallets__Handle *)jarg2; + result = (GoUint32)SKY_api_Client_Wallets(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_MustPubKeyFromHex(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateUnencryptedWallet(void * jarg1, void * jarg2, void * jarg3, long long jarg4, void * jarg5) { unsigned int jresult ; - GoString arg1 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; - GoString *argp1 ; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + GoInt arg4 ; + WalletResponse__Handle *arg5 = (WalletResponse__Handle *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; + GoString *argp3 ; GoUint32 result; - argp1 = (GoString *)jarg1; + argp1 = (Client__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (cipher__PubKey *)jarg2; - result = (GoUint32)SKY_cipher_MustPubKeyFromHex(arg1,(GoUint8_ (*)[33])arg2); + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + arg4 = (GoInt)jarg4; + arg5 = (WalletResponse__Handle *)jarg5; + result = (GoUint32)SKY_api_Client_CreateUnencryptedWallet(arg1,arg2,arg3,arg4,arg5); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromHex(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateEncryptedWallet(void * jarg1, void * jarg2, void * jarg3, void * jarg4, long long jarg5, void * jarg6) { unsigned int jresult ; - GoString arg1 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; - GoString *argp1 ; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + GoString arg4 ; + GoInt arg5 ; + WalletResponse__Handle *arg6 = (WalletResponse__Handle *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; + GoString *argp3 ; + GoString *argp4 ; GoUint32 result; - argp1 = (GoString *)jarg1; + argp1 = (Client__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (cipher__PubKey *)jarg2; - result = (GoUint32)SKY_cipher_PubKeyFromHex(arg1,(GoUint8_ (*)[33])arg2); + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + argp4 = (GoString *)jarg4; + if (!argp4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg4 = *argp4; + arg5 = (GoInt)jarg5; + arg6 = (WalletResponse__Handle *)jarg6; + result = (GoUint32)SKY_api_Client_CreateEncryptedWallet(arg1,arg2,arg3,arg4,arg5,arg6); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSecKey(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NewWalletAddress(void * jarg1, void * jarg2, long long jarg3, void * jarg4, void * jarg5) { unsigned int jresult ; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + Client__Handle arg1 ; + GoString arg2 ; + GoInt arg3 ; + GoString arg4 ; + Strings__Handle *arg5 = (Strings__Handle *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; + GoString *argp4 ; GoUint32 result; - arg1 = (cipher__SecKey *)jarg1; - arg2 = (cipher__PubKey *)jarg2; - result = (GoUint32)SKY_cipher_PubKeyFromSecKey((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[33])arg2); + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (GoInt)jarg3; + argp4 = (GoString *)jarg4; + if (!argp4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg4 = *argp4; + arg5 = (Strings__Handle *)jarg5; + result = (GoUint32)SKY_api_Client_NewWalletAddress(arg1,arg2,arg3,arg4,arg5); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSig(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_WalletBalance(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - cipher__Sig *arg1 = (cipher__Sig *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - cipher__PubKey *arg3 = (cipher__PubKey *) 0 ; + Client__Handle arg1 ; + GoString arg2 ; + wallet__BalancePair *arg3 = (wallet__BalancePair *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; GoUint32 result; - arg1 = (cipher__Sig *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - arg3 = (cipher__PubKey *)jarg3; - result = (GoUint32)SKY_cipher_PubKeyFromSig((GoUint8_ (*)[65])arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[33])arg3); + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (wallet__BalancePair *)jarg3; + result = (GoUint32)SKY_api_Client_WalletBalance(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_Verify(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Spend(void * jarg1, void * jarg2, void * jarg3, unsigned long long jarg4, void * jarg5, void * jarg6) { unsigned int jresult ; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + GoUint64 arg4 ; + GoString arg5 ; + SpendResult_Handle *arg6 = (SpendResult_Handle *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; + GoString *argp3 ; + GoString *argp5 ; GoUint32 result; - arg1 = (cipher__PubKey *)jarg1; - result = (GoUint32)SKY_cipher_PubKey_Verify((GoUint8_ (*)[33])arg1); + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + arg4 = (GoUint64)jarg4; + argp5 = (GoString *)jarg5; + if (!argp5) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg5 = *argp5; + arg6 = (SpendResult_Handle *)jarg6; + result = (GoUint32)SKY_api_Client_Spend(arg1,arg2,arg3,arg4,arg5,arg6); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_Hex(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateTransaction(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + CreateTransactionResponse__Handle *arg3 = (CreateTransactionResponse__Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - arg1 = (cipher__PubKey *)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cipher_PubKey_Hex((GoUint8_ (*)[33])arg1,arg2); + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Handle *)jarg2; + arg3 = (CreateTransactionResponse__Handle *)jarg3; + result = (GoUint32)SKY_api_Client_CreateTransaction(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_ToAddressHash(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_WalletTransactions(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__Ripemd160 *arg2 = (cipher__Ripemd160 *) 0 ; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; GoUint32 result; - arg1 = (cipher__PubKey *)jarg1; - arg2 = (cipher__Ripemd160 *)jarg2; - result = (GoUint32)SKY_cipher_PubKey_ToAddressHash((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[20])arg2); + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (Handle *)jarg3; + result = (GoUint32)SKY_api_Client_WalletTransactions(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewSecKey(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UpdateWallet(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - GoSlice arg1 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - GoSlice *argp1 ; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + Client__Handle *argp1 ; + GoString *argp2 ; + GoString *argp3 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (Client__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (cipher__SecKey *)jarg2; - result = (GoUint32)SKY_cipher_NewSecKey(arg1,(GoUint8_ (*)[32])arg2); + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + result = (GoUint32)SKY_api_Client_UpdateWallet(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_MustSecKeyFromHex(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_WalletFolderName(void * jarg1, void * jarg2) { unsigned int jresult ; - GoString arg1 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - GoString *argp1 ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; + argp1 = (Client__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (cipher__SecKey *)jarg2; - result = (GoUint32)SKY_cipher_MustSecKeyFromHex(arg1,(GoUint8_ (*)[32])arg2); + arg2 = (Handle *)jarg2; + result = (GoUint32)SKY_api_Client_WalletFolderName(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKeyFromHex(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NewSeed(void * jarg1, long long jarg2, void * jarg3) { unsigned int jresult ; - GoString arg1 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - GoString *argp1 ; + Client__Handle arg1 ; + GoInt arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; + argp1 = (Client__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (cipher__SecKey *)jarg2; - result = (GoUint32)SKY_cipher_SecKeyFromHex(arg1,(GoUint8_ (*)[32])arg2); + arg2 = (GoInt)jarg2; + arg3 = (GoString_ *)jarg3; + result = (GoUint32)SKY_api_Client_NewSeed(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKey_Verify(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_GetWalletSeed(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + GoString_ *arg4 = (GoString_ *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; + GoString *argp3 ; GoUint32 result; - arg1 = (cipher__SecKey *)jarg1; - result = (GoUint32)SKY_cipher_SecKey_Verify((GoUint8_ (*)[32])arg1); + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + arg4 = (GoString_ *)jarg4; + result = (GoUint32)SKY_api_Client_GetWalletSeed(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKey_Hex(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkConnection(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; GoUint32 result; - arg1 = (cipher__SecKey *)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cipher_SecKey_Hex((GoUint8_ (*)[32])arg1,arg2); + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (Handle *)jarg3; + result = (GoUint32)SKY_api_Client_NetworkConnection(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_ECDH(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkConnections(void * jarg1, void * jarg2) { unsigned int jresult ; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - arg1 = (cipher__PubKey *)jarg1; - arg2 = (cipher__SecKey *)jarg2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_cipher_ECDH((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2,arg3); + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Handle *)jarg2; + result = (GoUint32)SKY_api_Client_NetworkConnections(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewSig(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkDefaultConnections(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - cipher__Sig *arg2 = (cipher__Sig *) 0 ; - GoSlice *argp1 ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (Client__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (cipher__Sig *)jarg2; - result = (GoUint32)SKY_cipher_NewSig(arg1,(GoUint8_ (*)[65])arg2); + arg2 = (Handle *)jarg2; + result = (GoUint32)SKY_api_Client_NetworkDefaultConnections(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_MustSigFromHex(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkTrustedConnections(void * jarg1, void * jarg2) { unsigned int jresult ; - GoString arg1 ; - cipher__Sig *arg2 = (cipher__Sig *) 0 ; - GoString *argp1 ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; + argp1 = (Client__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (cipher__Sig *)jarg2; - result = (GoUint32)SKY_cipher_MustSigFromHex(arg1,(GoUint8_ (*)[65])arg2); + arg2 = (Handle *)jarg2; + result = (GoUint32)SKY_api_Client_NetworkTrustedConnections(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SigFromHex(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkExchangeableConnections(void * jarg1, void * jarg2) { unsigned int jresult ; - GoString arg1 ; - cipher__Sig *arg2 = (cipher__Sig *) 0 ; - GoString *argp1 ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; + argp1 = (Client__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (cipher__Sig *)jarg2; - result = (GoUint32)SKY_cipher_SigFromHex(arg1,(GoUint8_ (*)[65])arg2); + arg2 = (Handle *)jarg2; + result = (GoUint32)SKY_api_Client_NetworkExchangeableConnections(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Sig_Hex(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_PendingTransactions(void * jarg1, void * jarg2) { unsigned int jresult ; - cipher__Sig *arg1 = (cipher__Sig *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - arg1 = (cipher__Sig *)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cipher_Sig_Hex((GoUint8_ (*)[65])arg1,arg2); + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Handle *)jarg2; + result = (GoUint32)SKY_api_Client_PendingTransactions(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SignHash(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Transaction(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - cipher__Sig *arg3 = (cipher__Sig *) 0 ; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; GoUint32 result; - arg1 = (cipher__SHA256 *)jarg1; - arg2 = (cipher__SecKey *)jarg2; - arg3 = (cipher__Sig *)jarg3; - result = (GoUint32)SKY_cipher_SignHash((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[65])arg3); + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (Handle *)jarg3; + result = (GoUint32)SKY_api_Client_Transaction(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_ChkSig(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Transactions(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - cipher__Sig *arg3 = (cipher__Sig *) 0 ; + Client__Handle arg1 ; + GoSlice arg2 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoSlice *argp2 ; GoUint32 result; - arg1 = (cipher__Address *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - arg3 = (cipher__Sig *)jarg3; - result = (GoUint32)SKY_cipher_ChkSig(arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[65])arg3); + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (Handle *)jarg3; + result = (GoUint32)SKY_api_Client_Transactions(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignedHash(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_ConfirmedTransactions(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - cipher__Sig *arg1 = (cipher__Sig *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + Client__Handle arg1 ; + GoSlice arg2 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoSlice *argp2 ; GoUint32 result; - arg1 = (cipher__Sig *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_cipher_VerifySignedHash((GoUint8_ (*)[65])arg1,(GoUint8_ (*)[32])arg2); + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (Handle *)jarg3; + result = (GoUint32)SKY_api_Client_ConfirmedTransactions(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignature(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UnconfirmedTransactions(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__Sig *arg2 = (cipher__Sig *) 0 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + Client__Handle arg1 ; + GoSlice arg2 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoSlice *argp2 ; GoUint32 result; - arg1 = (cipher__PubKey *)jarg1; - arg2 = (cipher__Sig *)jarg2; - arg3 = (cipher__SHA256 *)jarg3; - result = (GoUint32)SKY_cipher_VerifySignature((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[65])arg2,(GoUint8_ (*)[32])arg3); + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (Handle *)jarg3; + result = (GoUint32)SKY_api_Client_UnconfirmedTransactions(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateKeyPair(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_InjectTransaction(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + Client__Handle arg1 ; + GoString arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; GoUint32 result; - arg1 = (cipher__PubKey *)jarg1; - arg2 = (cipher__SecKey *)jarg2; - result = (GoUint32)SKY_cipher_GenerateKeyPair((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2); + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (GoString_ *)jarg3; + result = (GoUint32)SKY_api_Client_InjectTransaction(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPair(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_ResendUnconfirmedTransactions(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; - cipher__SecKey *arg3 = (cipher__SecKey *) 0 ; - GoSlice *argp1 ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (Client__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (cipher__PubKey *)jarg2; - arg3 = (cipher__SecKey *)jarg3; - result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPair(arg1,(GoUint8_ (*)[33])arg2,(GoUint8_ (*)[32])arg3); + arg2 = (Handle *)jarg2; + result = (GoUint32)SKY_api_Client_ResendUnconfirmedTransactions(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DeterministicKeyPairIterator(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_RawTransaction(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - cipher__PubKey *arg3 = (cipher__PubKey *) 0 ; - cipher__SecKey *arg4 = (cipher__SecKey *) 0 ; - GoSlice *argp1 ; + Client__Handle arg1 ; + GoString arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (Client__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - arg3 = (cipher__PubKey *)jarg3; - arg4 = (cipher__SecKey *)jarg4; - result = (GoUint32)SKY_cipher_DeterministicKeyPairIterator(arg1,arg2,(GoUint8_ (*)[33])arg3,(GoUint8_ (*)[32])arg4); + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (GoString_ *)jarg3; + result = (GoUint32)SKY_api_Client_RawTransaction(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairs(void * jarg1, long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressTransactions(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - GoSlice arg1 ; - GoInt arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (Client__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (GoInt)jarg2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPairs(arg1,arg2,arg3); + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (Handle *)jarg3; + result = (GoUint32)SKY_api_Client_AddressTransactions(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairsSeed(void * jarg1, long long jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Richlist(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - GoSlice arg1 ; - GoInt arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; + Client__Handle arg1 ; + api__RichlistParams *arg2 = (api__RichlistParams *) 0 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (Client__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (GoInt)jarg2; - arg3 = (coin__UxArray *)jarg3; - arg4 = (coin__UxArray *)jarg4; - result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPairsSeed(arg1,arg2,arg3,arg4); + arg2 = (api__RichlistParams *)jarg2; + arg3 = (Handle *)jarg3; + result = (GoUint32)SKY_api_Client_Richlist(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_TestSecKey(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressCount(void * jarg1, void * jarg2) { unsigned int jresult ; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + Client__Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - arg1 = (cipher__SecKey *)jarg1; - result = (GoUint32)SKY_cipher_TestSecKey((GoUint8_ (*)[32])arg1); + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_api_Client_AddressCount(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_TestSecKeyHash(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UnloadWallet(void * jarg1, void * jarg2) { unsigned int jresult ; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + Client__Handle arg1 ; + GoString arg2 ; + Client__Handle *argp1 ; + GoString *argp2 ; GoUint32 result; - arg1 = (cipher__SecKey *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_cipher_TestSecKeyHash((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[32])arg2); + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_api_Client_UnloadWallet(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_DecompressPoint(void * jarg1, unsigned char jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Health(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - GoUint8 arg2 ; - GoSlice arg3 ; - GoSlice *argp1 ; - GoSlice *argp3 ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (Client__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (GoUint8)jarg2; - argp3 = (GoSlice *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg3 = *argp3; - result = (GoUint32)SKY_secp256k1go_DecompressPoint(arg1,arg2,arg3); + arg2 = (Handle *)jarg2; + result = (GoUint32)SKY_api_Client_Health(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_RecoverPublicKey(void * jarg1, void * jarg2, long long jarg3, void * jarg4, void * jarg5) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_EncryptWallet(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - GoInt arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - GoInt *arg5 = (GoInt *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + WalletResponse__Handle *arg4 = (WalletResponse__Handle *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; + GoString *argp3 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (Client__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); return 0; } arg1 = *argp1; - argp2 = (GoSlice *)jarg2; + argp2 = (GoString *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg2 = *argp2; - arg3 = (GoInt)jarg3; - arg4 = (coin__UxArray *)jarg4; - arg5 = (GoInt *)jarg5; - result = (GoUint32)SKY_secp256k1go_RecoverPublicKey(arg1,arg2,arg3,arg4,arg5); + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + arg4 = (WalletResponse__Handle *)jarg4; + result = (GoUint32)SKY_api_Client_EncryptWallet(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Multiply(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_DecryptWallet(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + WalletResponse__Handle *arg4 = (WalletResponse__Handle *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; + GoString *argp3 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (Client__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); return 0; } arg1 = *argp1; - argp2 = (GoSlice *)jarg2; + argp2 = (GoString *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg2 = *argp2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_secp256k1go_Multiply(arg1,arg2,arg3); + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + arg4 = (WalletResponse__Handle *)jarg4; + result = (GoUint32)SKY_api_Client_DecryptWallet(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_BaseMultiply(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_Print(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + GoString arg2 ; + GoString *argp2 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + arg1 = (secp256k1go__XY *)jarg1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1go_BaseMultiply(arg1,arg2); + arg2 = *argp2; + result = (GoUint32)SKY_secp256k1go_XY_Print(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_BaseMultiplyAdd(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_ParsePubkey(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - GoSlice arg1 ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; + GoUint8 *arg3 = (GoUint8 *) 0 ; GoSlice *argp2 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; + arg1 = (secp256k1go__XY *)jarg1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg2 = *argp2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_secp256k1go_BaseMultiplyAdd(arg1,arg2,arg3); + arg3 = (GoUint8 *)jarg3; + result = (GoUint32)SKY_secp256k1go_XY_ParsePubkey(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_GeneratePublicKey(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_Bytes(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; + arg1 = (secp256k1go__XY *)jarg1; arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1go_GeneratePublicKey(arg1,arg2); + result = (GoUint32)SKY_secp256k1go_XY_Bytes(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_SeckeyIsValid(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_BytesUncompressed(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoSlice *argp1 ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_secp256k1go_SeckeyIsValid(arg1,arg2); + arg1 = (secp256k1go__XY *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1go_XY_BytesUncompressed(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_PubkeyIsValid(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_SetXY(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - GoSlice arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoSlice *argp1 ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + secp256k1go__Field *arg3 = (secp256k1go__Field *) 0 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_secp256k1go_PubkeyIsValid(arg1,arg2); + arg1 = (secp256k1go__XY *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + arg3 = (secp256k1go__Field *)jarg3; + result = (GoUint32)SKY_secp256k1go_XY_SetXY(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_InitDataDir(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_IsValid(void * jarg1, void * jarg2) { unsigned int jresult ; - GoString arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString *argp1 ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_file_InitDataDir(arg1,arg2); + arg1 = (secp256k1go__XY *)jarg1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_secp256k1go_XY_IsValid(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_UserHome(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_SetXYZ(void * jarg1, void * jarg2) { unsigned int jresult ; - GoString_ *arg1 = (GoString_ *) 0 ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; GoUint32 result; - arg1 = (GoString_ *)jarg1; - result = (GoUint32)SKY_file_UserHome(arg1); + arg1 = (secp256k1go__XY *)jarg1; + arg2 = (secp256k1go__XYZ *)jarg2; + result = (GoUint32)SKY_secp256k1go_XY_SetXYZ(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_ResolveResourceDirectory(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_Neg(void * jarg1, void * jarg2) { unsigned int jresult ; - GoString arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString *argp1 ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_file_ResolveResourceDirectory(arg1,arg2); + arg1 = (secp256k1go__XY *)jarg1; + arg2 = (secp256k1go__XY *)jarg2; + result = (GoUint32)SKY_secp256k1go_XY_Neg(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_DetermineResourcePath(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_SetXO(void * jarg1, void * jarg2, unsigned char jarg3) { unsigned int jresult ; - GoString arg1 ; - GoString arg2 ; - GoString arg3 ; - GoString_ *arg4 = (GoString_ *) 0 ; - GoString *argp1 ; - GoString *argp2 ; - GoString *argp3 ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + GoUint8 arg3 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; - arg4 = (GoString_ *)jarg4; - result = (GoUint32)SKY_file_DetermineResourcePath(arg1,arg2,arg3,arg4); + arg1 = (secp256k1go__XY *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + arg3 = (GoUint8)jarg3; + result = (GoUint32)SKY_secp256k1go_XY_SetXO(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_SumSHA256(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_AddXY(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1_SumSHA256(arg1,arg2); + arg1 = (secp256k1go__XY *)jarg1; + arg2 = (secp256k1go__XY *)jarg2; + result = (GoUint32)SKY_secp256k1go_XY_AddXY(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_RandByte(long long jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_GetPublicKey(void * jarg1, void * jarg2) { unsigned int jresult ; - GoInt arg1 ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoUint32 result; - arg1 = (GoInt)jarg1; + arg1 = (secp256k1go__XY *)jarg1; arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1_RandByte(arg1,arg2); + result = (GoUint32)SKY_secp256k1go_XY_GetPublicKey(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewWalletResponse(void * jarg1, void * jarg2) { + unsigned int jresult ; + Wallet__Handle arg1 ; + WalletResponse__Handle *arg2 = (WalletResponse__Handle *) 0 ; + Wallet__Handle *argp1 ; + GoUint32 result; + + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (WalletResponse__Handle *)jarg2; + result = (GoUint32)SKY_api_NewWalletResponse(arg1,arg2); jresult = result; return jresult; } @@ -3488,56 +3902,38 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreatedTransaction GoUint32 result; arg1 = (wallet__UxBalance *)jarg1; - arg2 = (CreatedTransactionInput__Handle *)jarg2; - result = (GoUint32)SKY_api_NewCreatedTransactionInput(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_browser_Open(void * jarg1) { - unsigned int jresult ; - GoString arg1 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - result = (GoUint32)SKY_browser_Open(arg1); + arg2 = (CreatedTransactionInput__Handle *)jarg2; + result = (GoUint32)SKY_api_NewCreatedTransactionInput(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DecodeBase58Address(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewError(void * jarg1) { unsigned int jresult ; - GoString arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - GoString *argp1 ; + GoInterface arg1 ; + GoInterface *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; + argp1 = (GoInterface *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInterface", 0); return 0; } arg1 = *argp1; - arg2 = (cipher__Address *)jarg2; - result = (GoUint32)SKY_cipher_DecodeBase58Address(arg1,arg2); + result = (GoUint32)SKY_wallet_NewError(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_MustDecodeBase58Address(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewWallet(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; GoString arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; + Options__Handle arg2 ; + Wallet__Handle *arg3 = (Wallet__Handle *) 0 ; GoString *argp1 ; + Options__Handle *argp2 ; GoUint32 result; argp1 = (GoString *)jarg1; @@ -3546,85 +3942,85 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_MustDecodeBase58Ad return 0; } arg1 = *argp1; - arg2 = (cipher__Address *)jarg2; - result = (GoUint32)SKY_cipher_MustDecodeBase58Address(arg1,arg2); + argp2 = (Options__Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Options__Handle", 0); + return 0; + } + arg2 = *argp2; + arg3 = (Wallet__Handle *)jarg3; + result = (GoUint32)SKY_wallet_NewWallet(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinMustDecodeBase58Address(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Lock(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - GoString arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - GoString *argp1 ; + Wallet__Handle arg1 ; + GoSlice arg2 ; + GoString arg3 ; + Wallet__Handle *argp1 ; + GoSlice *argp2 ; + GoString *argp3 ; GoUint32 result; - argp1 = (GoString *)jarg1; + argp1 = (Wallet__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (cipher__Address *)jarg2; - result = (GoUint32)SKY_cipher_BitcoinMustDecodeBase58Address(arg1,arg2); + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + result = (GoUint32)SKY_wallet_Wallet_Lock(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddressFromBytes(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Unlock(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - GoSlice arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - GoSlice *argp1 ; + Wallet__Handle arg1 ; + GoSlice arg2 ; + Wallet__Handle *arg3 = (Wallet__Handle *) 0 ; + Wallet__Handle *argp1 ; + GoSlice *argp2 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (Wallet__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (cipher__Address *)jarg2; - result = (GoUint32)SKY_cipher_AddressFromBytes(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddressFromPubKey(void * jarg1, void * jarg2) { - unsigned int jresult ; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - GoUint32 result; - - arg1 = (cipher__PubKey *)jarg1; - arg2 = (cipher__Address *)jarg2; - result = (GoUint32)SKY_cipher_AddressFromPubKey((GoUint8_ (*)[33])arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddressFromSecKey(void * jarg1, void * jarg2) { - unsigned int jresult ; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - GoUint32 result; - - arg1 = (cipher__SecKey *)jarg1; - arg2 = (cipher__Address *)jarg2; - result = (GoUint32)SKY_cipher_AddressFromSecKey((GoUint8_ (*)[32])arg1,arg2); + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (Wallet__Handle *)jarg3; + result = (GoUint32)SKY_wallet_Wallet_Unlock(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinDecodeBase58Address(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Load(void * jarg1, void * jarg2) { unsigned int jresult ; GoString arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; + Wallet__Handle *arg2 = (Wallet__Handle *) 0 ; GoString *argp1 ; GoUint32 result; @@ -3634,372 +4030,374 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinDecodeBase5 return 0; } arg1 = *argp1; - arg2 = (cipher__Address *)jarg2; - result = (GoUint32)SKY_cipher_BitcoinDecodeBase58Address(arg1,arg2); + arg2 = (Wallet__Handle *)jarg2; + result = (GoUint32)SKY_wallet_Load(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_MustAddressFromBytes(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Save(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - GoSlice *argp1 ; + Wallet__Handle arg1 ; + GoString arg2 ; + Wallet__Handle *argp1 ; + GoString *argp2 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (Wallet__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (cipher__Address *)jarg2; - result = (GoUint32)SKY_cipher_MustAddressFromBytes(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Bytes(void * jarg1, void * jarg2) { - unsigned int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint32 result; - - arg1 = (cipher__Address *)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_cipher_Address_Bytes(arg1,arg2); + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_wallet_Wallet_Save(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Null(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Validate(void * jarg1) { unsigned int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; + Wallet__Handle arg1 ; + Wallet__Handle *argp1 ; GoUint32 result; - arg1 = (cipher__Address *)jarg1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_cipher_Address_Null(arg1,arg2); + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; + } + arg1 = *argp1; + result = (GoUint32)SKY_wallet_Wallet_Validate(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_BitcoinBytes(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Type(void * jarg1, void * jarg2) { unsigned int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; + Wallet__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Wallet__Handle *argp1 ; GoUint32 result; - arg1 = (cipher__Address *)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_cipher_Address_BitcoinBytes(arg1,arg2); + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_wallet_Wallet_Type(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Verify(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Version(void * jarg1, void * jarg2) { unsigned int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + Wallet__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Wallet__Handle *argp1 ; GoUint32 result; - arg1 = (cipher__Address *)jarg1; - arg2 = (cipher__PubKey *)jarg2; - result = (GoUint32)SKY_cipher_Address_Verify(arg1,(GoUint8_ (*)[33])arg2); + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_wallet_Wallet_Version(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_String(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Filename(void * jarg1, void * jarg2) { unsigned int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; + Wallet__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; + Wallet__Handle *argp1 ; GoUint32 result; - arg1 = (cipher__Address *)jarg1; + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; + } + arg1 = *argp1; arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cipher_Address_String(arg1,arg2); + result = (GoUint32)SKY_wallet_Wallet_Filename(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_BitcoinString(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Label(void * jarg1, void * jarg2) { unsigned int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; + Wallet__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; + Wallet__Handle *argp1 ; GoUint32 result; - arg1 = (cipher__Address *)jarg1; + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; + } + arg1 = *argp1; arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cipher_Address_BitcoinString(arg1,arg2); + result = (GoUint32)SKY_wallet_Wallet_Label(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Checksum(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_IsEncrypted(void * jarg1, void * jarg2) { unsigned int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - cipher__Checksum *arg2 = (cipher__Checksum *) 0 ; + Wallet__Handle arg1 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + Wallet__Handle *argp1 ; GoUint32 result; - arg1 = (cipher__Address *)jarg1; - arg2 = (cipher__Checksum *)jarg2; - result = (GoUint32)SKY_cipher_Address_Checksum(arg1,(GoUint8_ (*)[4])arg2); + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_wallet_Wallet_IsEncrypted(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_BitcoinChecksum(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_GenerateAddresses(void * jarg1, unsigned long long jarg2, void * jarg3) { unsigned int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - cipher__Checksum *arg2 = (cipher__Checksum *) 0 ; + Wallet__Handle arg1 ; + GoUint64 arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + Wallet__Handle *argp1 ; GoUint32 result; - arg1 = (cipher__Address *)jarg1; - arg2 = (cipher__Checksum *)jarg2; - result = (GoUint32)SKY_cipher_Address_BitcoinChecksum(arg1,(GoUint8_ (*)[4])arg2); + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_wallet_Wallet_GenerateAddresses(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddressFromPubkey(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_GetAddresses(void * jarg1, void * jarg2) { unsigned int jresult ; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; + Wallet__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + Wallet__Handle *argp1 ; GoUint32 result; - arg1 = (cipher__PubKey *)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cipher_BitcoinAddressFromPubkey((GoUint8_ (*)[33])arg1,arg2); + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_wallet_Wallet_GetAddresses(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinWalletImportFormatFromSeckey(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_GetEntry(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; + Wallet__Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + wallet__Entry *arg3 = (wallet__Entry *) 0 ; + GoUint8 *arg4 = (GoUint8 *) 0 ; + Wallet__Handle *argp1 ; GoUint32 result; - arg1 = (cipher__SecKey *)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cipher_BitcoinWalletImportFormatFromSeckey((GoUint8_ (*)[32])arg1,arg2); + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__Address *)jarg2; + arg3 = (wallet__Entry *)jarg3; + arg4 = (GoUint8 *)jarg4; + result = (GoUint32)SKY_wallet_Wallet_GetEntry(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddressFromBytes(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_AddEntry(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - GoSlice *argp1 ; + Wallet__Handle arg1 ; + wallet__Entry *arg2 = (wallet__Entry *) 0 ; + Wallet__Handle *argp1 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (Wallet__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (cipher__Address *)jarg2; - result = (GoUint32)SKY_cipher_BitcoinAddressFromBytes(arg1,arg2); + arg2 = (wallet__Entry *)jarg2; + result = (GoUint32)SKY_wallet_Wallet_AddEntry(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKeyFromWalletImportFormat(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_DistributeSpendHours(unsigned long long jarg1, unsigned long long jarg2, unsigned char jarg3, void * jarg4, void * jarg5, void * jarg6) { unsigned int jresult ; - GoString arg1 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - GoString *argp1 ; + GoUint64 arg1 ; + GoUint64 arg2 ; + GoUint8 arg3 ; + GoUint64 *arg4 = (GoUint64 *) 0 ; + coin__UxArray *arg5 = (coin__UxArray *) 0 ; + GoUint64 *arg6 = (GoUint64 *) 0 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher__SecKey *)jarg2; - result = (GoUint32)SKY_cipher_SecKeyFromWalletImportFormat(arg1,(GoUint8_ (*)[32])arg2); + arg1 = (GoUint64)jarg1; + arg2 = (GoUint64)jarg2; + arg3 = (GoUint8)jarg3; + arg4 = (GoUint64 *)jarg4; + arg5 = (coin__UxArray *)jarg5; + arg6 = (GoUint64 *)jarg6; + result = (GoUint32)SKY_wallet_DistributeSpendHours(arg1,arg2,arg3,arg4,arg5,arg6); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_MustSecKeyFromWalletImportFormat(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_DistributeCoinHoursProportional(void * jarg1, unsigned long long jarg2, void * jarg3) { unsigned int jresult ; - GoString arg1 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - GoString *argp1 ; + GoSlice arg1 ; + GoUint64 arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - arg2 = (cipher__SecKey *)jarg2; - result = (GoUint32)SKY_cipher_MustSecKeyFromWalletImportFormat(arg1,(GoUint8_ (*)[32])arg2); + arg2 = (GoUint64)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_wallet_DistributeCoinHoursProportional(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_testutil_MakeAddress(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewUxBalances(unsigned long long jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; + GoUint64 arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; GoUint32 result; - arg1 = (cipher__Address *)jarg1; - result = (GoUint32)SKY_testutil_MakeAddress(arg1); + arg1 = (GoUint64)jarg1; + arg2 = (coin__UxArray *)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_wallet_NewUxBalances(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromWallet(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewUxBalance(unsigned long long jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - WebRpcClient__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - GoSlice arg4 ; - PasswordReader__Handle arg5 ; - Transaction__Handle *arg6 = (Transaction__Handle *) 0 ; - WebRpcClient__Handle *argp1 ; - GoString *argp2 ; - GoString *argp3 ; - GoSlice *argp4 ; - PasswordReader__Handle *argp5 ; + GoUint64 arg1 ; + coin__UxOut *arg2 = (coin__UxOut *) 0 ; + wallet__UxBalance *arg3 = (wallet__UxBalance *) 0 ; GoUint32 result; - argp1 = (WebRpcClient__Handle *)jarg1; + arg1 = (GoUint64)jarg1; + arg2 = (coin__UxOut *)jarg2; + arg3 = (wallet__UxBalance *)jarg3; + result = (GoUint32)SKY_wallet_NewUxBalance(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ChooseSpendsMinimizeUxOuts(void * jarg1, unsigned long long jarg2, unsigned long long jarg3, void * jarg4) { + unsigned int jresult ; + GoSlice arg1 ; + GoUint64 arg2 ; + GoUint64 arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; - argp4 = (GoSlice *)jarg4; - if (!argp4) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } - arg4 = *argp4; - argp5 = (PasswordReader__Handle *)jarg5; - if (!argp5) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null PasswordReader__Handle", 0); - return 0; - } - arg5 = *argp5; - arg6 = (Transaction__Handle *)jarg6; - result = (GoUint32)SKY_cli_CreateRawTxFromWallet(arg1,arg2,arg3,arg4,arg5,arg6); + arg1 = *argp1; + arg2 = (GoUint64)jarg2; + arg3 = (GoUint64)jarg3; + arg4 = (coin__UxArray *)jarg4; + result = (GoUint32)SKY_wallet_ChooseSpendsMinimizeUxOuts(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromAddress(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6, void * jarg7) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ChooseSpendsMaximizeUxOuts(void * jarg1, unsigned long long jarg2, unsigned long long jarg3, void * jarg4) { unsigned int jresult ; - WebRpcClient__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - GoString arg4 ; - GoSlice arg5 ; - PasswordReader__Handle arg6 ; - Transaction__Handle *arg7 = (Transaction__Handle *) 0 ; - WebRpcClient__Handle *argp1 ; - GoString *argp2 ; - GoString *argp3 ; - GoString *argp4 ; - GoSlice *argp5 ; - PasswordReader__Handle *argp6 ; + GoSlice arg1 ; + GoUint64 arg2 ; + GoUint64 arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; GoUint32 result; - argp1 = (WebRpcClient__Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; - argp4 = (GoString *)jarg4; - if (!argp4) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg4 = *argp4; - argp5 = (GoSlice *)jarg5; - if (!argp5) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; - } - arg5 = *argp5; - argp6 = (PasswordReader__Handle *)jarg6; - if (!argp6) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null PasswordReader__Handle", 0); - return 0; - } - arg6 = *argp6; - arg7 = (Transaction__Handle *)jarg7; - result = (GoUint32)SKY_cli_CreateRawTxFromAddress(arg1,arg2,arg3,arg4,arg5,arg6,arg7); + } + arg1 = *argp1; + arg2 = (GoUint64)jarg2; + arg3 = (GoUint64)jarg3; + arg4 = (coin__UxArray *)jarg4; + result = (GoUint32)SKY_wallet_ChooseSpendsMaximizeUxOuts(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTx(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6, void * jarg7) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CheckWalletBalance(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; WebRpcClient__Handle arg1 ; - Wallet__Handle arg2 ; - GoSlice arg3 ; - GoString arg4 ; - GoSlice arg5 ; - GoSlice arg6 ; - Transaction__Handle *arg7 = (Transaction__Handle *) 0 ; + GoString arg2 ; + BalanceResult_Handle *arg3 = (BalanceResult_Handle *) 0 ; WebRpcClient__Handle *argp1 ; - Wallet__Handle *argp2 ; - GoSlice *argp3 ; - GoString *argp4 ; - GoSlice *argp5 ; - GoSlice *argp6 ; + GoString *argp2 ; GoUint32 result; argp1 = (WebRpcClient__Handle *)jarg1; @@ -4008,57 +4406,31 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTx(void * ja return 0; } arg1 = *argp1; - argp2 = (Wallet__Handle *)jarg2; + argp2 = (GoString *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoSlice *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg3 = *argp3; - argp4 = (GoString *)jarg4; - if (!argp4) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } - arg4 = *argp4; - argp5 = (GoSlice *)jarg5; - if (!argp5) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg5 = *argp5; - argp6 = (GoSlice *)jarg6; - if (!argp6) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg6 = *argp6; - arg7 = (Transaction__Handle *)jarg7; - result = (GoUint32)SKY_cli_CreateRawTx(arg1,arg2,arg3,arg4,arg5,arg6,arg7); + arg2 = *argp2; + arg3 = (BalanceResult_Handle *)jarg3; + result = (GoUint32)SKY_cli_CheckWalletBalance(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_NewTransaction(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetBalanceOfAddresses(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - GoSlice arg1 ; + WebRpcClient__Handle arg1 ; GoSlice arg2 ; - GoSlice arg3 ; - Transaction__Handle *arg4 = (Transaction__Handle *) 0 ; - GoSlice *argp1 ; + BalanceResult_Handle *arg3 = (BalanceResult_Handle *) 0 ; + WebRpcClient__Handle *argp1 ; GoSlice *argp2 ; - GoSlice *argp3 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (WebRpcClient__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); return 0; } arg1 = *argp1; @@ -4068,363 +4440,503 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_NewTransaction(void * return 0; } arg2 = *argp2; - argp3 = (GoSlice *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg3 = *argp3; - arg4 = (Transaction__Handle *)jarg4; - result = (GoUint32)SKY_cli_NewTransaction(arg1,arg2,arg3,arg4); + arg3 = (BalanceResult_Handle *)jarg3; + result = (GoUint32)SKY_cli_GetBalanceOfAddresses(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_apputil_CatchInterruptPanic() { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewNotesFilename(void * jarg1) { unsigned int jresult ; + GoString_ *arg1 = (GoString_ *) 0 ; GoUint32 result; - result = (GoUint32)SKY_apputil_CatchInterruptPanic(); + arg1 = (GoString_ *)jarg1; + result = (GoUint32)SKY_wallet_NewNotesFilename(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_apputil_CatchDebug() { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_LoadNotes(void * jarg1, void * jarg2) { unsigned int jresult ; + GoString arg1 ; + WalletNotes_Handle *arg2 = (WalletNotes_Handle *) 0 ; + GoString *argp1 ; GoUint32 result; - result = (GoUint32)SKY_apputil_CatchDebug(); + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (WalletNotes_Handle *)jarg2; + result = (GoUint32)SKY_wallet_LoadNotes(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_apputil_PrintProgramStatus() { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_LoadReadableNotes(void * jarg1, void * jarg2) { unsigned int jresult ; + GoString arg1 ; + WalletReadableNotes_Handle *arg2 = (WalletReadableNotes_Handle *) 0 ; + GoString *argp1 ; GoUint32 result; - result = (GoUint32)SKY_apputil_PrintProgramStatus(); + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (WalletReadableNotes_Handle *)jarg2; + result = (GoUint32)SKY_wallet_LoadReadableNotes(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_utc_UnixNow(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableNotes_Load(void * jarg1, void * jarg2) { unsigned int jresult ; - GoInt64 *arg1 = (GoInt64 *) 0 ; + WalletReadableNotes_Handle arg1 ; + GoString arg2 ; + WalletReadableNotes_Handle *argp1 ; + GoString *argp2 ; GoUint32 result; - arg1 = (GoInt64 *)jarg1; - result = (GoUint32)SKY_utc_UnixNow(arg1); + argp1 = (WalletReadableNotes_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletReadableNotes_Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_wallet_ReadableNotes_Load(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Address_UnmarshalJSON(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableNotes_ToNotes(void * jarg1, void * jarg2) { unsigned int jresult ; - httphelper__Address *arg1 = (httphelper__Address *) 0 ; - GoSlice arg2 ; - GoSlice *argp2 ; + WalletReadableNotes_Handle arg1 ; + WalletNotes_Handle *arg2 = (WalletNotes_Handle *) 0 ; + WalletReadableNotes_Handle *argp1 ; GoUint32 result; - arg1 = (httphelper__Address *)jarg1; - argp2 = (GoSlice *)jarg2; + argp1 = (WalletReadableNotes_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletReadableNotes_Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (WalletNotes_Handle *)jarg2; + result = (GoUint32)SKY_wallet_ReadableNotes_ToNotes(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableNotes_Save(void * jarg1, void * jarg2) { + unsigned int jresult ; + WalletReadableNotes_Handle arg1 ; + GoString arg2 ; + WalletReadableNotes_Handle *argp1 ; + GoString *argp2 ; + GoUint32 result; + + argp1 = (WalletReadableNotes_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletReadableNotes_Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg2 = *argp2; - result = (GoUint32)SKY_httphelper_Address_UnmarshalJSON(arg1,arg2); + result = (GoUint32)SKY_wallet_ReadableNotes_Save(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Address_MarshalJSON(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewReadableNote(void * jarg1, void * jarg2) { unsigned int jresult ; - httphelper__Address *arg1 = (httphelper__Address *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; + wallet__Note *arg1 = (wallet__Note *) 0 ; + wallet__ReadableNote *arg2 = (wallet__ReadableNote *) 0 ; GoUint32 result; - arg1 = (httphelper__Address *)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_httphelper_Address_MarshalJSON(arg1,arg2); + arg1 = (wallet__Note *)jarg1; + arg2 = (wallet__ReadableNote *)jarg2; + result = (GoUint32)SKY_wallet_NewReadableNote(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Coins_UnmarshalJSON(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewReadableNotesFromNotes(void * jarg1, void * jarg2) { unsigned int jresult ; - httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; - GoSlice arg2 ; - GoSlice *argp2 ; + WalletNotes_Handle arg1 ; + WalletReadableNotes_Handle *arg2 = (WalletReadableNotes_Handle *) 0 ; + WalletNotes_Handle *argp1 ; GoUint32 result; - arg1 = (httphelper__Coins *)jarg1; - argp2 = (GoSlice *)jarg2; + argp1 = (WalletNotes_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletNotes_Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (WalletReadableNotes_Handle *)jarg2; + result = (GoUint32)SKY_wallet_NewReadableNotesFromNotes(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Notes_Save(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + WalletNotes_Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + WalletNotes_Handle *argp1 ; + GoString *argp2 ; + GoString *argp3 ; + GoUint32 result; + + argp1 = (WalletNotes_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletNotes_Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + result = (GoUint32)SKY_wallet_Notes_Save(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Notes_SaveNote(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + WalletNotes_Handle arg1 ; + GoString arg2 ; + wallet__Note *arg3 = (wallet__Note *) 0 ; + WalletNotes_Handle *argp1 ; + GoString *argp2 ; + GoUint32 result; + + argp1 = (WalletNotes_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletNotes_Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg2 = *argp2; - result = (GoUint32)SKY_httphelper_Coins_UnmarshalJSON(arg1,arg2); + arg3 = (wallet__Note *)jarg3; + result = (GoUint32)SKY_wallet_Notes_SaveNote(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Coins_MarshalJSON(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Notes_ToReadable(void * jarg1, void * jarg2) { unsigned int jresult ; - httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; + WalletNotes_Handle arg1 ; + WalletReadableNotes_Handle *arg2 = (WalletReadableNotes_Handle *) 0 ; + WalletNotes_Handle *argp1 ; GoUint32 result; - arg1 = (httphelper__Coins *)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_httphelper_Coins_MarshalJSON(arg1,arg2); + argp1 = (WalletNotes_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletNotes_Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (WalletReadableNotes_Handle *)jarg2; + result = (GoUint32)SKY_wallet_Notes_ToReadable(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Coins_Value(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NotesFileExist(void * jarg1, void * jarg2) { unsigned int jresult ; - httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; + GoString arg1 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoString *argp1 ; GoUint32 result; - arg1 = (httphelper__Coins *)jarg1; - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_httphelper_Coins_Value(arg1,arg2); + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_wallet_NotesFileExist(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Hours_UnmarshalJSON(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateNoteFileIfNotExist(void * jarg1) { unsigned int jresult ; - httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; - GoSlice arg2 ; - GoSlice *argp2 ; + GoString arg1 ; + GoString *argp1 ; GoUint32 result; - arg1 = (httphelper__Hours *)jarg1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } - arg2 = *argp2; - result = (GoUint32)SKY_httphelper_Hours_UnmarshalJSON(arg1,arg2); + arg1 = *argp1; + result = (GoUint32)SKY_wallet_CreateNoteFileIfNotExist(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Hours_MarshalJSON(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewReadableEntry(void * jarg1, void * jarg2) { unsigned int jresult ; - httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; + wallet__Entry *arg1 = (wallet__Entry *) 0 ; + ReadableEntry__Handle *arg2 = (ReadableEntry__Handle *) 0 ; GoUint32 result; - arg1 = (httphelper__Hours *)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_httphelper_Hours_MarshalJSON(arg1,arg2); + arg1 = (wallet__Entry *)jarg1; + arg2 = (ReadableEntry__Handle *)jarg2; + result = (GoUint32)SKY_wallet_NewReadableEntry(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Hours_Value(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_LoadReadableEntry(void * jarg1, void * jarg2) { unsigned int jresult ; - httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; + GoString arg1 ; + ReadableEntry__Handle *arg2 = (ReadableEntry__Handle *) 0 ; + GoString *argp1 ; GoUint32 result; - arg1 = (httphelper__Hours *)jarg1; - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_httphelper_Hours_Value(arg1,arg2); + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (ReadableEntry__Handle *)jarg2; + result = (GoUint32)SKY_wallet_LoadReadableEntry(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CheckWalletBalance(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewReadableEntryFromPubkey(void * jarg1, void * jarg2) { unsigned int jresult ; - WebRpcClient__Handle arg1 ; - GoString arg2 ; - BalanceResult_Handle *arg3 = (BalanceResult_Handle *) 0 ; - WebRpcClient__Handle *argp1 ; - GoString *argp2 ; + GoString arg1 ; + ReadableEntry__Handle *arg2 = (ReadableEntry__Handle *) 0 ; + GoString *argp1 ; GoUint32 result; - argp1 = (WebRpcClient__Handle *)jarg1; + argp1 = (GoString *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } - arg2 = *argp2; - arg3 = (BalanceResult_Handle *)jarg3; - result = (GoUint32)SKY_cli_CheckWalletBalance(arg1,arg2,arg3); + arg1 = *argp1; + arg2 = (ReadableEntry__Handle *)jarg2; + result = (GoUint32)SKY_wallet_NewReadableEntryFromPubkey(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetBalanceOfAddresses(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableEntry_Save(void * jarg1, void * jarg2) { unsigned int jresult ; - WebRpcClient__Handle arg1 ; - GoSlice arg2 ; - BalanceResult_Handle *arg3 = (BalanceResult_Handle *) 0 ; - WebRpcClient__Handle *argp1 ; - GoSlice *argp2 ; + ReadableEntry__Handle arg1 ; + GoString arg2 ; + ReadableEntry__Handle *argp1 ; + GoString *argp2 ; GoUint32 result; - argp1 = (WebRpcClient__Handle *)jarg1; + argp1 = (ReadableEntry__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null ReadableEntry__Handle", 0); return 0; } arg1 = *argp1; - argp2 = (GoSlice *)jarg2; + argp2 = (GoString *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg2 = *argp2; - arg3 = (BalanceResult_Handle *)jarg3; - result = (GoUint32)SKY_cli_GetBalanceOfAddresses(arg1,arg2,arg3); + result = (GoUint32)SKY_wallet_ReadableEntry_Save(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_poly1305_Verify(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_LoadReadableWallet(void * jarg1, void * jarg2) { unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoUint8 *arg4 = (GoUint8 *) 0 ; - GoSlice *argp2 ; + GoString arg1 ; + ReadableWallet__Handle *arg2 = (ReadableWallet__Handle *) 0 ; + GoString *argp1 ; GoUint32 result; - arg1 = (coin__UxArray *)jarg1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } - arg2 = *argp2; - arg3 = (coin__UxArray *)jarg3; - arg4 = (GoUint8 *)jarg4; - result = (GoUint32)SKY_poly1305_Verify(arg1,arg2,arg3,arg4); + arg1 = *argp1; + arg2 = (ReadableWallet__Handle *)jarg2; + result = (GoUint32)SKY_wallet_LoadReadableWallet(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewClient(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableWallet_Save(void * jarg1, void * jarg2) { unsigned int jresult ; - GoString arg1 ; - Client__Handle *arg2 = (Client__Handle *) 0 ; - GoString *argp1 ; + ReadableWallet__Handle arg1 ; + GoString arg2 ; + ReadableWallet__Handle *argp1 ; + GoString *argp2 ; GoUint32 result; - argp1 = (GoString *)jarg1; + argp1 = (ReadableWallet__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null ReadableWallet__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (Client__Handle *)jarg2; - result = (GoUint32)SKY_api_NewClient(arg1,arg2); + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_wallet_ReadableWallet_Save(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CSRF(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableWallet_Load(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - Client__Handle *argp1 ; + ReadableWallet__Handle arg1 ; + GoString arg2 ; + ReadableWallet__Handle *argp1 ; + GoString *argp2 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; + argp1 = (ReadableWallet__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null ReadableWallet__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_api_Client_CSRF(arg1,arg2); + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_wallet_ReadableWallet_Load(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Version(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableWallet_Erase(void * jarg1) { unsigned int jresult ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Client__Handle *argp1 ; + ReadableWallet__Handle arg1 ; + ReadableWallet__Handle *argp1 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; + argp1 = (ReadableWallet__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null ReadableWallet__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (Handle *)jarg2; - result = (GoUint32)SKY_api_Client_Version(arg1,arg2); + result = (GoUint32)SKY_wallet_ReadableWallet_Erase(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Outputs(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_DecompressPoint(void * jarg1, unsigned char jarg2, void * jarg3) { unsigned int jresult ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Client__Handle *argp1 ; + GoSlice arg1 ; + GoUint8 arg2 ; + GoSlice arg3 ; + GoSlice *argp1 ; + GoSlice *argp3 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - arg2 = (Handle *)jarg2; - result = (GoUint32)SKY_api_Client_Outputs(arg1,arg2); + arg2 = (GoUint8)jarg2; + argp3 = (GoSlice *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg3 = *argp3; + result = (GoUint32)SKY_secp256k1go_DecompressPoint(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_OutputsForAddresses(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_RecoverPublicKey(void * jarg1, void * jarg2, long long jarg3, void * jarg4, void * jarg5) { unsigned int jresult ; - Client__Handle arg1 ; + GoSlice arg1 ; GoSlice arg2 ; - Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; + GoInt arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + GoInt *arg5 = (GoInt *) 0 ; + GoSlice *argp1 ; GoSlice *argp2 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; @@ -4434,25 +4946,27 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_OutputsForAddr return 0; } arg2 = *argp2; - arg3 = (Handle *)jarg3; - result = (GoUint32)SKY_api_Client_OutputsForAddresses(arg1,arg2,arg3); + arg3 = (GoInt)jarg3; + arg4 = (coin__UxArray *)jarg4; + arg5 = (GoInt *)jarg5; + result = (GoUint32)SKY_secp256k1go_RecoverPublicKey(arg1,arg2,arg3,arg4,arg5); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_OutputsForHashes(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Multiply(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Client__Handle arg1 ; + GoSlice arg1 ; GoSlice arg2 ; - Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; GoSlice *argp2 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; @@ -4462,560 +4976,431 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_OutputsForHash return 0; } arg2 = *argp2; - arg3 = (Handle *)jarg3; - result = (GoUint32)SKY_api_Client_OutputsForHashes(arg1,arg2,arg3); + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_secp256k1go_Multiply(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CoinSupply(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_BaseMultiply(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Client__Handle *argp1 ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - arg2 = (Handle *)jarg2; - result = (GoUint32)SKY_api_Client_CoinSupply(arg1,arg2); + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1go_BaseMultiply(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockByHash(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_BaseMultiplyAdd(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; - GoString *argp2 ; + GoSlice arg1 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - argp2 = (GoString *)jarg2; + argp2 = (GoSlice *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg2 = *argp2; - arg3 = (Handle *)jarg3; - result = (GoUint32)SKY_api_Client_BlockByHash(arg1,arg2,arg3); + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_secp256k1go_BaseMultiplyAdd(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockBySeq(void * jarg1, unsigned long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_GeneratePublicKey(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - GoUint64 arg2 ; - Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - arg2 = (GoUint64)jarg2; - arg3 = (Handle *)jarg3; - result = (GoUint32)SKY_api_Client_BlockBySeq(arg1,arg2,arg3); + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1go_GeneratePublicKey(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Blocks(void * jarg1, long long jarg2, long long jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_SeckeyIsValid(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - GoInt arg2 ; - GoInt arg3 ; - Handle *arg4 = (Handle *) 0 ; - Client__Handle *argp1 ; + GoSlice arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoSlice *argp1 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - arg2 = (GoInt)jarg2; - arg3 = (GoInt)jarg3; - arg4 = (Handle *)jarg4; - result = (GoUint32)SKY_api_Client_Blocks(arg1,arg2,arg3,arg4); + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_secp256k1go_SeckeyIsValid(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_LastBlocks(void * jarg1, long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_PubkeyIsValid(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - GoInt arg2 ; - Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; + GoSlice arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoSlice *argp1 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - arg2 = (GoInt)jarg2; - arg3 = (Handle *)jarg3; - result = (GoUint32)SKY_api_Client_LastBlocks(arg1,arg2,arg3); + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_secp256k1go_PubkeyIsValid(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockchainMetadata(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_String2Hex(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Client__Handle *argp1 ; + GoString arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoString *argp1 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; + argp1 = (GoString *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg1 = *argp1; - arg2 = (Handle *)jarg2; - result = (GoUint32)SKY_api_Client_BlockchainMetadata(arg1,arg2); + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_base58_String2Hex(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockchainProgress(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_ToInt(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Client__Handle *argp1 ; + GoString arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoString *argp1 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; + argp1 = (GoString *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg1 = *argp1; - arg2 = (Handle *)jarg2; - result = (GoUint32)SKY_api_Client_BlockchainProgress(arg1,arg2); + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_base58_Base58_ToInt(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Balance(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_ToHex(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - GoSlice arg2 ; - wallet__BalancePair *arg3 = (wallet__BalancePair *) 0 ; - Client__Handle *argp1 ; - GoSlice *argp2 ; + GoString arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoString *argp1 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; + argp1 = (GoString *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (wallet__BalancePair *)jarg3; - result = (GoUint32)SKY_api_Client_Balance(arg1,arg2,arg3); + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_base58_Base58_ToHex(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UxOut(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_Base582Int(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; - GoString *argp2 ; + GoString arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoString *argp1 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; + argp1 = (GoString *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } - arg2 = *argp2; - arg3 = (Handle *)jarg3; - result = (GoUint32)SKY_api_Client_UxOut(arg1,arg2,arg3); + arg1 = *argp1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_base58_Base58_Base582Int(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressUxOuts(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base582Hex(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; - GoString *argp2 ; + GoString arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoString *argp1 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; + argp1 = (GoString *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } - arg2 = *argp2; - arg3 = (Handle *)jarg3; - result = (GoUint32)SKY_api_Client_AddressUxOuts(arg1,arg2,arg3); + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_base58_Base582Hex(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Wallet(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_BitHex(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - WalletResponse__Handle *arg3 = (WalletResponse__Handle *) 0 ; - Client__Handle *argp1 ; - GoString *argp2 ; + GoString arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoString *argp1 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; + argp1 = (GoString *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } - arg2 = *argp2; - arg3 = (WalletResponse__Handle *)jarg3; - result = (GoUint32)SKY_api_Client_Wallet(arg1,arg2,arg3); + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_base58_Base58_BitHex(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Int2Base58(long long jarg1, void * jarg2) { + unsigned int jresult ; + GoInt arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + arg1 = (GoInt)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_base58_Int2Base58(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Wallets(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Hex2Base58(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - Wallets__Handle *arg2 = (Wallets__Handle *) 0 ; - Client__Handle *argp1 ; + GoSlice arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoSlice *argp1 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - arg2 = (Wallets__Handle *)jarg2; - result = (GoUint32)SKY_api_Client_Wallets(arg1,arg2); + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_base58_Hex2Base58(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateUnencryptedWallet(void * jarg1, void * jarg2, void * jarg3, long long jarg4, void * jarg5) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Hex2Base58String(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - GoInt arg4 ; - WalletResponse__Handle *arg5 = (WalletResponse__Handle *) 0 ; - Client__Handle *argp1 ; - GoString *argp2 ; - GoString *argp3 ; + GoSlice arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoSlice *argp1 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; - arg4 = (GoInt)jarg4; - arg5 = (WalletResponse__Handle *)jarg5; - result = (GoUint32)SKY_api_Client_CreateUnencryptedWallet(arg1,arg2,arg3,arg4,arg5); + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_base58_Hex2Base58String(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateEncryptedWallet(void * jarg1, void * jarg2, void * jarg3, void * jarg4, long long jarg5, void * jarg6) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Hex2Base58Str(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - GoString arg4 ; - GoInt arg5 ; - WalletResponse__Handle *arg6 = (WalletResponse__Handle *) 0 ; - Client__Handle *argp1 ; - GoString *argp2 ; - GoString *argp3 ; - GoString *argp4 ; + GoSlice arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoSlice *argp1 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; - argp4 = (GoString *)jarg4; - if (!argp4) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg4 = *argp4; - arg5 = (GoInt)jarg5; - arg6 = (WalletResponse__Handle *)jarg6; - result = (GoUint32)SKY_api_Client_CreateEncryptedWallet(arg1,arg2,arg3,arg4,arg5,arg6); + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_base58_Hex2Base58Str(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NewWalletAddress(void * jarg1, void * jarg2, long long jarg3, void * jarg4, void * jarg5) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GenerateWallet(void * jarg1, void * jarg2, unsigned long long jarg3, void * jarg4) { unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - GoInt arg3 ; - GoString arg4 ; - Strings__Handle *arg5 = (Strings__Handle *) 0 ; - Client__Handle *argp1 ; - GoString *argp2 ; - GoString *argp4 ; + GoString arg1 ; + Options__Handle *arg2 = (Options__Handle *) 0 ; + GoUint64 arg3 ; + Wallet__Handle *arg4 = (Wallet__Handle *) 0 ; + GoString *argp1 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; + argp1 = (GoString *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - arg3 = (GoInt)jarg3; - argp4 = (GoString *)jarg4; - if (!argp4) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } - arg4 = *argp4; - arg5 = (Strings__Handle *)jarg5; - result = (GoUint32)SKY_api_Client_NewWalletAddress(arg1,arg2,arg3,arg4,arg5); + arg1 = *argp1; + arg2 = (Options__Handle *)jarg2; + arg3 = (GoUint64)jarg3; + arg4 = (Wallet__Handle *)jarg4; + result = (GoUint32)SKY_cli_GenerateWallet(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_WalletBalance(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_MakeAlphanumericSeed(void * jarg1) { unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - wallet__BalancePair *arg3 = (wallet__BalancePair *) 0 ; - Client__Handle *argp1 ; - GoString *argp2 ; + GoString_ *arg1 = (GoString_ *) 0 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - arg3 = (wallet__BalancePair *)jarg3; - result = (GoUint32)SKY_api_Client_WalletBalance(arg1,arg2,arg3); + arg1 = (GoString_ *)jarg1; + result = (GoUint32)SKY_cli_MakeAlphanumericSeed(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Spend(void * jarg1, void * jarg2, void * jarg3, unsigned long long jarg4, void * jarg5, void * jarg6) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_NewClient(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - GoUint64 arg4 ; - GoString arg5 ; - SpendResult_Handle *arg6 = (SpendResult_Handle *) 0 ; - Client__Handle *argp1 ; - GoString *argp2 ; - GoString *argp3 ; - GoString *argp5 ; + GoString arg1 ; + WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; + GoString *argp1 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; + argp1 = (GoString *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; - arg4 = (GoUint64)jarg4; - argp5 = (GoString *)jarg5; - if (!argp5) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } - arg5 = *argp5; - arg6 = (SpendResult_Handle *)jarg6; - result = (GoUint32)SKY_api_Client_Spend(arg1,arg2,arg3,arg4,arg5,arg6); + arg1 = *argp1; + arg2 = (WebRpcClient__Handle *)jarg2; + result = (GoUint32)SKY_webrpc_NewClient(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateTransaction(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_CSRF(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - CreateTransactionResponse__Handle *arg3 = (CreateTransactionResponse__Handle *) 0 ; - Client__Handle *argp1 ; + WebRpcClient__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + WebRpcClient__Handle *argp1 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; + argp1 = (WebRpcClient__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (Handle *)jarg2; - arg3 = (CreateTransactionResponse__Handle *)jarg3; - result = (GoUint32)SKY_api_Client_CreateTransaction(arg1,arg2,arg3); + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_webrpc_Client_CSRF(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_WalletTransactions(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetUnspentOutputs(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; - GoString *argp2 ; + WebRpcClient__Handle arg1 ; + GoSlice arg2 ; + OutputsResult_Handle *arg3 = (OutputsResult_Handle *) 0 ; + WebRpcClient__Handle *argp1 ; + GoSlice *argp2 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; + argp1 = (WebRpcClient__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); return 0; } arg1 = *argp1; - argp2 = (GoString *)jarg2; + argp2 = (GoSlice *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg2 = *argp2; - arg3 = (Handle *)jarg3; - result = (GoUint32)SKY_api_Client_WalletTransactions(arg1,arg2,arg3); + arg3 = (OutputsResult_Handle *)jarg3; + result = (GoUint32)SKY_webrpc_Client_GetUnspentOutputs(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UpdateWallet(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_InjectTransactionString(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Client__Handle arg1 ; + WebRpcClient__Handle arg1 ; GoString arg2 ; - GoString arg3 ; - Client__Handle *argp1 ; + GoString_ *arg3 = (GoString_ *) 0 ; + WebRpcClient__Handle *argp1 ; GoString *argp2 ; - GoString *argp3 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; + argp1 = (WebRpcClient__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); return 0; } arg1 = *argp1; @@ -5025,74 +5410,73 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UpdateWallet(v return 0; } arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; - result = (GoUint32)SKY_api_Client_UpdateWallet(arg1,arg2,arg3); + arg3 = (GoString_ *)jarg3; + result = (GoUint32)SKY_webrpc_Client_InjectTransactionString(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_WalletFolderName(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_InjectTransaction(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Client__Handle *argp1 ; + WebRpcClient__Handle arg1 ; + Transaction__Handle arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + WebRpcClient__Handle *argp1 ; + Transaction__Handle *argp2 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; + argp1 = (WebRpcClient__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (Handle *)jarg2; - result = (GoUint32)SKY_api_Client_WalletFolderName(arg1,arg2); + argp2 = (Transaction__Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg2 = *argp2; + arg3 = (GoString_ *)jarg3; + result = (GoUint32)SKY_webrpc_Client_InjectTransaction(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NewSeed(void * jarg1, long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetStatus(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - GoInt arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - Client__Handle *argp1 ; + WebRpcClient__Handle arg1 ; + StatusResult_Handle *arg2 = (StatusResult_Handle *) 0 ; + WebRpcClient__Handle *argp1 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; + argp1 = (WebRpcClient__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (GoInt)jarg2; - arg3 = (GoString_ *)jarg3; - result = (GoUint32)SKY_api_Client_NewSeed(arg1,arg2,arg3); + arg2 = (StatusResult_Handle *)jarg2; + result = (GoUint32)SKY_webrpc_Client_GetStatus(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_GetWalletSeed(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetTransactionByID(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Client__Handle arg1 ; + WebRpcClient__Handle arg1 ; GoString arg2 ; - GoString arg3 ; - GoString_ *arg4 = (GoString_ *) 0 ; - Client__Handle *argp1 ; + TransactionResult_Handle *arg3 = (TransactionResult_Handle *) 0 ; + WebRpcClient__Handle *argp1 ; GoString *argp2 ; - GoString *argp3 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; + argp1 = (WebRpcClient__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); return 0; } arg1 = *argp1; @@ -5102,215 +5486,213 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_GetWalletSeed( return 0; } arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; - arg4 = (GoString_ *)jarg4; - result = (GoUint32)SKY_api_Client_GetWalletSeed(arg1,arg2,arg3,arg4); + arg3 = (TransactionResult_Handle *)jarg3; + result = (GoUint32)SKY_webrpc_Client_GetTransactionByID(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkConnection(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetAddressUxOuts(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; - GoString *argp2 ; + WebRpcClient__Handle arg1 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + WebRpcClient__Handle *argp1 ; + GoSlice *argp2 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; + argp1 = (WebRpcClient__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); return 0; } arg1 = *argp1; - argp2 = (GoString *)jarg2; + argp2 = (GoSlice *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg2 = *argp2; - arg3 = (Handle *)jarg3; - result = (GoUint32)SKY_api_Client_NetworkConnection(arg1,arg2,arg3); + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_webrpc_Client_GetAddressUxOuts(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkConnections(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetBlocks(void * jarg1, unsigned long long jarg2, unsigned long long jarg3, void * jarg4) { unsigned int jresult ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Client__Handle *argp1 ; + WebRpcClient__Handle arg1 ; + GoUint64 arg2 ; + GoUint64 arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + WebRpcClient__Handle *argp1 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; + argp1 = (WebRpcClient__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (Handle *)jarg2; - result = (GoUint32)SKY_api_Client_NetworkConnections(arg1,arg2); + arg2 = (GoUint64)jarg2; + arg3 = (GoUint64)jarg3; + arg4 = (coin__UxArray *)jarg4; + result = (GoUint32)SKY_webrpc_Client_GetBlocks(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkDefaultConnections(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetBlocksBySeq(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Client__Handle *argp1 ; + WebRpcClient__Handle arg1 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + WebRpcClient__Handle *argp1 ; + GoSlice *argp2 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; + argp1 = (WebRpcClient__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (Handle *)jarg2; - result = (GoUint32)SKY_api_Client_NetworkDefaultConnections(arg1,arg2); + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_webrpc_Client_GetBlocksBySeq(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkTrustedConnections(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetLastBlocks(void * jarg1, unsigned long long jarg2, void * jarg3) { unsigned int jresult ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Client__Handle *argp1 ; + WebRpcClient__Handle arg1 ; + GoUint64 arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + WebRpcClient__Handle *argp1 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; + argp1 = (WebRpcClient__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (Handle *)jarg2; - result = (GoUint32)SKY_api_Client_NetworkTrustedConnections(arg1,arg2); + arg2 = (GoUint64)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_webrpc_Client_GetLastBlocks(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkExchangeableConnections(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_browser_Open(void * jarg1) { unsigned int jresult ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Client__Handle *argp1 ; + GoString arg1 ; + GoString *argp1 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; + argp1 = (GoString *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg1 = *argp1; - arg2 = (Handle *)jarg2; - result = (GoUint32)SKY_api_Client_NetworkExchangeableConnections(arg1,arg2); + result = (GoUint32)SKY_browser_Open(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_PendingTransactions(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_iputil_LocalhostIP(void * jarg1) { unsigned int jresult ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Client__Handle *argp1 ; + GoString_ *arg1 = (GoString_ *) 0 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (Handle *)jarg2; - result = (GoUint32)SKY_api_Client_PendingTransactions(arg1,arg2); + arg1 = (GoString_ *)jarg1; + result = (GoUint32)SKY_iputil_LocalhostIP(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Transaction(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_iputil_IsLocalhost(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; - GoString *argp2 ; + GoString arg1 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoString *argp1 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; + argp1 = (GoString *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } - arg2 = *argp2; - arg3 = (Handle *)jarg3; - result = (GoUint32)SKY_api_Client_Transaction(arg1,arg2,arg3); + arg1 = *argp1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_iputil_IsLocalhost(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Transactions(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_iputil_SplitAddr(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Client__Handle arg1 ; - GoSlice arg2 ; - Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; - GoSlice *argp2 ; + GoString arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint16 *arg3 = (GoUint16 *) 0 ; + GoString *argp1 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; + argp1 = (GoString *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (Handle *)jarg3; - result = (GoUint32)SKY_api_Client_Transactions(arg1,arg2,arg3); + arg2 = (GoString_ *)jarg2; + arg3 = (GoUint16 *)jarg3; + result = (GoUint32)SKY_iputil_SplitAddr(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encoder_StructField_String(void * jarg1, void * jarg2) { + unsigned int jresult ; + encoder__StructField *arg1 = (encoder__StructField *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + arg1 = (encoder__StructField *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_encoder_StructField_String(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_ConfirmedTransactions(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encoder_ParseFields(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Client__Handle arg1 ; + GoSlice arg1 ; GoSlice arg2 ; - Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; + GoStringMap_ *arg3 = (GoStringMap_ *) 0 ; + GoSlice *argp1 ; GoSlice *argp2 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; @@ -5320,1071 +5702,936 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_ConfirmedTrans return 0; } arg2 = *argp2; - arg3 = (Handle *)jarg3; - result = (GoUint32)SKY_api_Client_ConfirmedTransactions(arg1,arg2,arg3); + arg3 = (GoStringMap_ *)jarg3; + result = (GoUint32)SKY_encoder_ParseFields(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UnconfirmedTransactions(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_SumSHA256(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - GoSlice arg2 ; - Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; - GoSlice *argp2 ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } - arg2 = *argp2; - arg3 = (Handle *)jarg3; - result = (GoUint32)SKY_api_Client_UnconfirmedTransactions(arg1,arg2,arg3); + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1_SumSHA256(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_InjectTransaction(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_RandByte(long long jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - Client__Handle *argp1 ; - GoString *argp2 ; + GoInt arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - arg3 = (GoString_ *)jarg3; - result = (GoUint32)SKY_api_Client_InjectTransaction(arg1,arg2,arg3); + arg1 = (GoInt)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1_RandByte(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_ResendUnconfirmedTransactions(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GenerateAddressesInFile(void * jarg1, unsigned long long jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Client__Handle *argp1 ; + GoString arg1 ; + GoUint64 arg2 ; + PasswordReader__Handle arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + GoString *argp1 ; + PasswordReader__Handle *argp3 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; + argp1 = (GoString *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg1 = *argp1; - arg2 = (Handle *)jarg2; - result = (GoUint32)SKY_api_Client_ResendUnconfirmedTransactions(arg1,arg2); + arg2 = (GoUint64)jarg2; + argp3 = (PasswordReader__Handle *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null PasswordReader__Handle", 0); + return 0; + } + arg3 = *argp3; + arg4 = (coin__UxArray *)jarg4; + result = (GoUint32)SKY_cli_GenerateAddressesInFile(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_RawTransaction(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_FormatAddressesAsJSON(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - Client__Handle *argp1 ; - GoString *argp2 ; + GoSlice arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoSlice *argp1 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - arg3 = (GoString_ *)jarg3; - result = (GoUint32)SKY_api_Client_RawTransaction(arg1,arg2,arg3); + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cli_FormatAddressesAsJSON(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressTransactions(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_FormatAddressesAsJoinedArray(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; - GoString *argp2 ; + GoSlice arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoSlice *argp1 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - arg3 = (Handle *)jarg3; - result = (GoUint32)SKY_api_Client_AddressTransactions(arg1,arg2,arg3); + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cli_FormatAddressesAsJoinedArray(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Richlist(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_AddressesToStrings(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - api__RichlistParams *arg2 = (api__RichlistParams *) 0 ; - Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - arg2 = (api__RichlistParams *)jarg2; - arg3 = (Handle *)jarg3; - result = (GoUint32)SKY_api_Client_Richlist(arg1,arg2,arg3); + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_cli_AddressesToStrings(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressCount(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddUint64(unsigned long long jarg1, unsigned long long jarg2, void * jarg3) { unsigned int jresult ; - Client__Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - Client__Handle *argp1 ; + GoUint64 arg1 ; + GoUint64 arg2 ; + GoUint64 *arg3 = (GoUint64 *) 0 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_api_Client_AddressCount(arg1,arg2); + arg1 = (GoUint64)jarg1; + arg2 = (GoUint64)jarg2; + arg3 = (GoUint64 *)jarg3; + result = (GoUint32)SKY_coin_AddUint64(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UnloadWallet(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Uint64ToInt64(unsigned long long jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - Client__Handle *argp1 ; - GoString *argp2 ; + GoUint64 arg1 ; + GoInt64 *arg2 = (GoInt64 *) 0 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_api_Client_UnloadWallet(arg1,arg2); + arg1 = (GoUint64)jarg1; + arg2 = (GoInt64 *)jarg2; + result = (GoUint32)SKY_coin_Uint64ToInt64(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Health(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Int64ToUint64(long long jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Client__Handle *argp1 ; + GoInt64 arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (Handle *)jarg2; - result = (GoUint32)SKY_api_Client_Health(arg1,arg2); + arg1 = (GoInt64)jarg1; + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_coin_Int64ToUint64(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_EncryptWallet(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { - unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - WalletResponse__Handle *arg4 = (WalletResponse__Handle *) 0 ; - Client__Handle *argp1 ; - GoString *argp2 ; - GoString *argp3 ; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Len(void * jarg1) { + long long jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoInt result; + + arg1 = (coin__UxArray *)jarg1; + result = (GoInt)SKY_cipher_PubKeySlice_Len(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Less(void * jarg1, long long jarg2, long long jarg3) { + unsigned char jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoInt arg2 ; + GoInt arg3 ; + GoUint8 result; + + arg1 = (coin__UxArray *)jarg1; + arg2 = (GoInt)jarg2; + arg3 = (GoInt)jarg3; + result = (GoUint8)SKY_cipher_PubKeySlice_Less(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Swap(void * jarg1, long long jarg2, long long jarg3) { + unsigned int jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoInt arg2 ; + GoInt arg3 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; - arg4 = (WalletResponse__Handle *)jarg4; - result = (GoUint32)SKY_api_Client_EncryptWallet(arg1,arg2,arg3,arg4); + arg1 = (coin__UxArray *)jarg1; + arg2 = (GoInt)jarg2; + arg3 = (GoInt)jarg3; + result = (GoUint32)SKY_cipher_PubKeySlice_Swap(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_DecryptWallet(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_RandByte(long long jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - WalletResponse__Handle *arg4 = (WalletResponse__Handle *) 0 ; - Client__Handle *argp1 ; - GoString *argp2 ; - GoString *argp3 ; + GoInt arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; - arg4 = (WalletResponse__Handle *)jarg4; - result = (GoUint32)SKY_api_Client_DecryptWallet(arg1,arg2,arg3,arg4); + arg1 = (GoInt)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_cipher_RandByte(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_JsonEncode_Handle(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewPubKey(void * jarg1, void * jarg2) { unsigned int jresult ; - Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - Handle *argp1 ; + GoSlice arg1 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + GoSlice *argp1 ; GoUint32 result; - argp1 = (Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_JsonEncode_Handle(arg1,arg2); + arg2 = (cipher__PubKey *)jarg2; + result = (GoUint32)SKY_cipher_NewPubKey(arg1,(GoUint8_ (*)[33])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Progress_GetCurrent(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_MustPubKeyFromHex(void * jarg1, void * jarg2) { unsigned int jresult ; - Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - Handle *argp1 ; + GoString arg1 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + GoString *argp1 ; GoUint32 result; - argp1 = (Handle *)jarg1; + argp1 = (GoString *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg1 = *argp1; - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_Handle_Progress_GetCurrent(arg1,arg2); + arg2 = (cipher__PubKey *)jarg2; + result = (GoUint32)SKY_cipher_MustPubKeyFromHex(arg1,(GoUint8_ (*)[33])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Block_GetHeadSeq(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromHex(void * jarg1, void * jarg2) { unsigned int jresult ; - Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - Handle *argp1 ; + GoString arg1 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + GoString *argp1 ; GoUint32 result; - argp1 = (Handle *)jarg1; + argp1 = (GoString *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg1 = *argp1; - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_Handle_Block_GetHeadSeq(arg1,arg2); + arg2 = (cipher__PubKey *)jarg2; + result = (GoUint32)SKY_cipher_PubKeyFromHex(arg1,(GoUint8_ (*)[33])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Block_GetHeadHash(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSecKey(void * jarg1, void * jarg2) { unsigned int jresult ; - Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - Handle *argp1 ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; GoUint32 result; - argp1 = (Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_Handle_Block_GetHeadHash(arg1,arg2); + arg1 = (cipher__SecKey *)jarg1; + arg2 = (cipher__PubKey *)jarg2; + result = (GoUint32)SKY_cipher_PubKeyFromSecKey((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[33])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Block_GetPreviousBlockHash(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSig(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - Handle *argp1 ; + cipher__Sig *arg1 = (cipher__Sig *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + cipher__PubKey *arg3 = (cipher__PubKey *) 0 ; GoUint32 result; - argp1 = (Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_Handle_Block_GetPreviousBlockHash(arg1,arg2); + arg1 = (cipher__Sig *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + arg3 = (cipher__PubKey *)jarg3; + result = (GoUint32)SKY_cipher_PubKeyFromSig((GoUint8_ (*)[65])arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[33])arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Blocks_GetAt(void * jarg1, unsigned long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_Verify(void * jarg1) { unsigned int jresult ; - Handle arg1 ; - GoUint64 arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle *argp1 ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; GoUint32 result; - argp1 = (Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoUint64)jarg2; - arg3 = (Handle *)jarg3; - result = (GoUint32)SKY_Handle_Blocks_GetAt(arg1,arg2,arg3); + arg1 = (cipher__PubKey *)jarg1; + result = (GoUint32)SKY_cipher_PubKey_Verify((GoUint8_ (*)[33])arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Blocks_GetCount(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_Hex(void * jarg1, void * jarg2) { unsigned int jresult ; - Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - Handle *argp1 ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; - argp1 = (Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_Handle_Blocks_GetCount(arg1,arg2); + arg1 = (cipher__PubKey *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cipher_PubKey_Hex((GoUint8_ (*)[33])arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Connections_GetCount(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_ToAddressHash(void * jarg1, void * jarg2) { unsigned int jresult ; - Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - Handle *argp1 ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__Ripemd160 *arg2 = (cipher__Ripemd160 *) 0 ; GoUint32 result; - argp1 = (Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_Handle_Connections_GetCount(arg1,arg2); + arg1 = (cipher__PubKey *)jarg1; + arg2 = (cipher__Ripemd160 *)jarg2; + result = (GoUint32)SKY_cipher_PubKey_ToAddressHash((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[20])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Strings_GetCount(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewSecKey(void * jarg1, void * jarg2) { unsigned int jresult ; - Strings__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - Strings__Handle *argp1 ; + GoSlice arg1 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + GoSlice *argp1 ; GoUint32 result; - argp1 = (Strings__Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Strings__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - arg2 = (GoUint32 *)jarg2; - result = (GoUint32)SKY_Handle_Strings_GetCount(arg1,arg2); + arg2 = (cipher__SecKey *)jarg2; + result = (GoUint32)SKY_cipher_NewSecKey(arg1,(GoUint8_ (*)[32])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Strings_Sort(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_MustSecKeyFromHex(void * jarg1, void * jarg2) { unsigned int jresult ; - Strings__Handle arg1 ; - Strings__Handle *argp1 ; + GoString arg1 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + GoString *argp1 ; GoUint32 result; - argp1 = (Strings__Handle *)jarg1; + argp1 = (GoString *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Strings__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg1 = *argp1; - result = (GoUint32)SKY_Handle_Strings_Sort(arg1); + arg2 = (cipher__SecKey *)jarg2; + result = (GoUint32)SKY_cipher_MustSecKeyFromHex(arg1,(GoUint8_ (*)[32])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Strings_GetAt(void * jarg1, long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKeyFromHex(void * jarg1, void * jarg2) { unsigned int jresult ; - Strings__Handle arg1 ; - GoInt arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - Strings__Handle *argp1 ; + GoString arg1 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + GoString *argp1 ; GoUint32 result; - argp1 = (Strings__Handle *)jarg1; + argp1 = (GoString *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Strings__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg1 = *argp1; - arg2 = (GoInt)jarg2; - arg3 = (GoString_ *)jarg3; - result = (GoUint32)SKY_Handle_Strings_GetAt(arg1,arg2,arg3); + arg2 = (cipher__SecKey *)jarg2; + result = (GoUint32)SKY_cipher_SecKeyFromHex(arg1,(GoUint8_ (*)[32])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletDir(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKey_Verify(void * jarg1) { unsigned int jresult ; - Client__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - Client__Handle *argp1 ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_api_Handle_Client_GetWalletDir(arg1,arg2); + arg1 = (cipher__SecKey *)jarg1; + result = (GoUint32)SKY_cipher_SecKey_Verify((GoUint8_ (*)[32])arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletFileName(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKey_Hex(void * jarg1, void * jarg2) { unsigned int jresult ; - WalletResponse__Handle arg1 ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; GoString_ *arg2 = (GoString_ *) 0 ; - WalletResponse__Handle *argp1 ; GoUint32 result; - argp1 = (WalletResponse__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); - return 0; - } - arg1 = *argp1; + arg1 = (cipher__SecKey *)jarg1; arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_api_Handle_Client_GetWalletFileName(arg1,arg2); + result = (GoUint32)SKY_cipher_SecKey_Hex((GoUint8_ (*)[32])arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletLabel(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_ECDH(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - WalletResponse__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - WalletResponse__Handle *argp1 ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; GoUint32 result; - argp1 = (WalletResponse__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_api_Handle_Client_GetWalletLabel(arg1,arg2); + arg1 = (cipher__PubKey *)jarg1; + arg2 = (cipher__SecKey *)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_cipher_ECDH((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletFullPath(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewSig(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - WalletResponse__Handle arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - Client__Handle *argp1 ; - WalletResponse__Handle *argp2 ; + GoSlice arg1 ; + cipher__Sig *arg2 = (cipher__Sig *) 0 ; + GoSlice *argp1 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - argp2 = (WalletResponse__Handle *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); - return 0; - } - arg2 = *argp2; - arg3 = (GoString_ *)jarg3; - result = (GoUint32)SKY_api_Handle_Client_GetWalletFullPath(arg1,arg2,arg3); + arg2 = (cipher__Sig *)jarg2; + result = (GoUint32)SKY_cipher_NewSig(arg1,(GoUint8_ (*)[65])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletMeta(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_MustSigFromHex(void * jarg1, void * jarg2) { unsigned int jresult ; - Wallet__Handle arg1 ; - GoStringMap_ *arg2 = (GoStringMap_ *) 0 ; - Wallet__Handle *argp1 ; + GoString arg1 ; + cipher__Sig *arg2 = (cipher__Sig *) 0 ; + GoString *argp1 ; GoUint32 result; - argp1 = (Wallet__Handle *)jarg1; + argp1 = (GoString *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg1 = *argp1; - arg2 = (GoStringMap_ *)jarg2; - result = (GoUint32)SKY_api_Handle_GetWalletMeta(arg1,arg2); + arg2 = (cipher__Sig *)jarg2; + result = (GoUint32)SKY_cipher_MustSigFromHex(arg1,(GoUint8_ (*)[65])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletEntriesCount(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SigFromHex(void * jarg1, void * jarg2) { unsigned int jresult ; - Wallet__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - Wallet__Handle *argp1 ; + GoString arg1 ; + cipher__Sig *arg2 = (cipher__Sig *) 0 ; + GoString *argp1 ; GoUint32 result; - argp1 = (Wallet__Handle *)jarg1; + argp1 = (GoString *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg1 = *argp1; - arg2 = (GoUint32 *)jarg2; - result = (GoUint32)SKY_api_Handle_GetWalletEntriesCount(arg1,arg2); + arg2 = (cipher__Sig *)jarg2; + result = (GoUint32)SKY_cipher_SigFromHex(arg1,(GoUint8_ (*)[65])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletResponseEntriesCount(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Sig_Hex(void * jarg1, void * jarg2) { unsigned int jresult ; - WalletResponse__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - WalletResponse__Handle *argp1 ; + cipher__Sig *arg1 = (cipher__Sig *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; - argp1 = (WalletResponse__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoUint32 *)jarg2; - result = (GoUint32)SKY_api_Handle_Client_GetWalletResponseEntriesCount(arg1,arg2); + arg1 = (cipher__Sig *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cipher_Sig_Hex((GoUint8_ (*)[65])arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletGetEntry(void * jarg1, unsigned int jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SignHash(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Wallet__Handle arg1 ; - GoUint32 arg2 ; - cipher__Address *arg3 = (cipher__Address *) 0 ; - cipher__PubKey *arg4 = (cipher__PubKey *) 0 ; - Wallet__Handle *argp1 ; + cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + cipher__Sig *arg3 = (cipher__Sig *) 0 ; GoUint32 result; - argp1 = (Wallet__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoUint32)jarg2; - arg3 = (cipher__Address *)jarg3; - arg4 = (cipher__PubKey *)jarg4; - result = (GoUint32)SKY_api_Handle_WalletGetEntry(arg1,arg2,arg3,(GoUint8_ (*)[33])arg4); + arg1 = (cipher__SHA256 *)jarg1; + arg2 = (cipher__SecKey *)jarg2; + arg3 = (cipher__Sig *)jarg3; + result = (GoUint32)SKY_cipher_SignHash((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[65])arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletResponseGetEntry(void * jarg1, unsigned int jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_ChkSig(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - WalletResponse__Handle arg1 ; - GoUint32 arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - GoString_ *arg4 = (GoString_ *) 0 ; - WalletResponse__Handle *argp1 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + cipher__Sig *arg3 = (cipher__Sig *) 0 ; GoUint32 result; - argp1 = (WalletResponse__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoUint32)jarg2; - arg3 = (GoString_ *)jarg3; - arg4 = (GoString_ *)jarg4; - result = (GoUint32)SKY_api_Handle_WalletResponseGetEntry(arg1,arg2,arg3,arg4); + arg1 = (cipher__Address *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + arg3 = (cipher__Sig *)jarg3; + result = (GoUint32)SKY_cipher_ChkSig(arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[65])arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletResponseIsEncrypted(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignedHash(void * jarg1, void * jarg2) { unsigned int jresult ; - WalletResponse__Handle arg1 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - WalletResponse__Handle *argp1 ; + cipher__Sig *arg1 = (cipher__Sig *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; GoUint32 result; - argp1 = (WalletResponse__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_api_Handle_WalletResponseIsEncrypted(arg1,arg2); + arg1 = (cipher__Sig *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_cipher_VerifySignedHash((GoUint8_ (*)[65])arg1,(GoUint8_ (*)[32])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletResponseGetCryptoType(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignature(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - WalletResponse__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - WalletResponse__Handle *argp1 ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__Sig *arg2 = (cipher__Sig *) 0 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; GoUint32 result; - argp1 = (WalletResponse__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_api_Handle_WalletResponseGetCryptoType(arg1,arg2); + arg1 = (cipher__PubKey *)jarg1; + arg2 = (cipher__Sig *)jarg2; + arg3 = (cipher__SHA256 *)jarg3; + result = (GoUint32)SKY_cipher_VerifySignature((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[65])arg2,(GoUint8_ (*)[32])arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletsResponseGetCount(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateKeyPair(void * jarg1, void * jarg2) { unsigned int jresult ; - Wallets__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - Wallets__Handle *argp1 ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; GoUint32 result; - argp1 = (Wallets__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallets__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoUint32 *)jarg2; - result = (GoUint32)SKY_api_Handle_WalletsResponseGetCount(arg1,arg2); + arg1 = (cipher__PubKey *)jarg1; + arg2 = (cipher__SecKey *)jarg2; + result = (GoUint32)SKY_cipher_GenerateKeyPair((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletsResponseGetAt(void * jarg1, unsigned int jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPair(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Wallets__Handle arg1 ; - GoUint32 arg2 ; - WalletResponse__Handle *arg3 = (WalletResponse__Handle *) 0 ; - Wallets__Handle *argp1 ; + GoSlice arg1 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + cipher__SecKey *arg3 = (cipher__SecKey *) 0 ; + GoSlice *argp1 ; GoUint32 result; - argp1 = (Wallets__Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallets__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - arg2 = (GoUint32)jarg2; - arg3 = (WalletResponse__Handle *)jarg3; - result = (GoUint32)SKY_api_Handle_WalletsResponseGetAt(arg1,arg2,arg3); + arg2 = (cipher__PubKey *)jarg2; + arg3 = (cipher__SecKey *)jarg3; + result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPair(arg1,(GoUint8_ (*)[33])arg2,(GoUint8_ (*)[32])arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletFolderAddress(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DeterministicKeyPairIterator(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; - Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - Handle *argp1 ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + cipher__PubKey *arg3 = (cipher__PubKey *) 0 ; + cipher__SecKey *arg4 = (cipher__SecKey *) 0 ; + GoSlice *argp1 ; GoUint32 result; - argp1 = (Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_api_Handle_GetWalletFolderAddress(arg1,arg2); + arg2 = (coin__UxArray *)jarg2; + arg3 = (cipher__PubKey *)jarg3; + arg4 = (cipher__SecKey *)jarg4; + result = (GoUint32)SKY_cipher_DeterministicKeyPairIterator(arg1,arg2,(GoUint8_ (*)[33])arg3,(GoUint8_ (*)[32])arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletSeed(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairs(void * jarg1, long long jarg2, void * jarg3) { unsigned int jresult ; - Wallet__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - Wallet__Handle *argp1 ; + GoSlice arg1 ; + GoInt arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; GoUint32 result; - argp1 = (Wallet__Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_api_Handle_GetWalletSeed(arg1,arg2); + arg2 = (GoInt)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPairs(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletLastSeed(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairsSeed(void * jarg1, long long jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; - Wallet__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - Wallet__Handle *argp1 ; + GoSlice arg1 ; + GoInt arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; GoUint32 result; - argp1 = (Wallet__Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_api_Handle_GetWalletLastSeed(arg1,arg2); + arg2 = (GoInt)jarg2; + arg3 = (coin__UxArray *)jarg3; + arg4 = (coin__UxArray *)jarg4; + result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPairsSeed(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetBuildInfoData(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_TestSecKey(void * jarg1) { unsigned int jresult ; - BuildInfo_Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString_ *arg3 = (GoString_ *) 0 ; - GoString_ *arg4 = (GoString_ *) 0 ; - BuildInfo_Handle *argp1 ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; GoUint32 result; - argp1 = (BuildInfo_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null BuildInfo_Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - arg3 = (GoString_ *)jarg3; - arg4 = (GoString_ *)jarg4; - result = (GoUint32)SKY_api_Handle_GetBuildInfoData(arg1,arg2,arg3,arg4); + arg1 = (cipher__SecKey *)jarg1; + result = (GoUint32)SKY_cipher_TestSecKey((GoUint8_ (*)[32])arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_GenerateKeyPair(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_TestSecKeyHash(void * jarg1, void * jarg2) { unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; GoUint32 result; - arg1 = (coin__UxArray *)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1_GenerateKeyPair(arg1,arg2); + arg1 = (cipher__SecKey *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_cipher_TestSecKeyHash((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[32])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_PubkeyFromSeckey(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Create(void * jarg1) { unsigned int jresult ; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; + Signature_Handle *arg1 = (Signature_Handle *) 0 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1_PubkeyFromSeckey(arg1,arg2); + arg1 = (Signature_Handle *)jarg1; + result = (GoUint32)SKY_secp256k1go_Signature_Create(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_UncompressPubkey(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_GetR(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; + Signature_Handle arg1 ; + Number_Handle *arg2 = (Number_Handle *) 0 ; + Signature_Handle *argp1 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (Signature_Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); return 0; } arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1_UncompressPubkey(arg1,arg2); + arg2 = (Number_Handle *)jarg2; + result = (GoUint32)SKY_secp256k1go_Signature_GetR(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_UncompressedPubkeyFromSeckey(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_GetS(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; + Signature_Handle arg1 ; + Number_Handle *arg2 = (Number_Handle *) 0 ; + Signature_Handle *argp1 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (Signature_Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); return 0; } arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1_UncompressedPubkeyFromSeckey(arg1,arg2); + arg2 = (Number_Handle *)jarg2; + result = (GoUint32)SKY_secp256k1go_Signature_GetS(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_Secp256k1Hash(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Print(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; + Signature_Handle arg1 ; + GoString arg2 ; + Signature_Handle *argp1 ; + GoString *argp2 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (Signature_Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); return 0; } arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1_Secp256k1Hash(arg1,arg2); + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_secp256k1go_Signature_Print(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_GenerateDeterministicKeyPair(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Verify(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; + Signature_Handle arg1 ; + secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; + Number_Handle arg3 ; + GoUint8 *arg4 = (GoUint8 *) 0 ; + Signature_Handle *argp1 ; + Number_Handle *argp3 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (Signature_Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); return 0; } arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_secp256k1_GenerateDeterministicKeyPair(arg1,arg2,arg3); + arg2 = (secp256k1go__XY *)jarg2; + argp3 = (Number_Handle *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); + return 0; + } + arg3 = *argp3; + arg4 = (GoUint8 *)jarg4; + result = (GoUint32)SKY_secp256k1go_Signature_Verify(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_DeterministicKeyPairIterator(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Recover(void * jarg1, void * jarg2, void * jarg3, long long jarg4, void * jarg5) { unsigned int jresult ; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; + Signature_Handle arg1 ; + secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; + Number_Handle arg3 ; + GoInt arg4 ; + GoUint8 *arg5 = (GoUint8 *) 0 ; + Signature_Handle *argp1 ; + Number_Handle *argp3 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (Signature_Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); return 0; } arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - arg3 = (coin__UxArray *)jarg3; - arg4 = (coin__UxArray *)jarg4; - result = (GoUint32)SKY_secp256k1_DeterministicKeyPairIterator(arg1,arg2,arg3,arg4); + arg2 = (secp256k1go__XY *)jarg2; + argp3 = (Number_Handle *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); + return 0; + } + arg3 = *argp3; + arg4 = (GoInt)jarg4; + arg5 = (GoUint8 *)jarg5; + result = (GoUint32)SKY_secp256k1go_Signature_Recover(arg1,arg2,arg3,arg4,arg5); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_Sign(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Sign(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) { unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; + Signature_Handle arg1 ; + Number_Handle arg2 ; + Number_Handle arg3 ; + Number_Handle arg4 ; + GoInt *arg5 = (GoInt *) 0 ; + GoInt *arg6 = (GoInt *) 0 ; + Signature_Handle *argp1 ; + Number_Handle *argp2 ; + Number_Handle *argp3 ; + Number_Handle *argp4 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (Signature_Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); return 0; } arg1 = *argp1; - argp2 = (GoSlice *)jarg2; + argp2 = (Number_Handle *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); return 0; } arg2 = *argp2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_secp256k1_Sign(arg1,arg2,arg3); + argp3 = (Number_Handle *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); + return 0; + } + arg3 = *argp3; + argp4 = (Number_Handle *)jarg4; + if (!argp4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); + return 0; + } + arg4 = *argp4; + arg5 = (GoInt *)jarg5; + arg6 = (GoInt *)jarg6; + result = (GoUint32)SKY_secp256k1go_Signature_Sign(arg1,arg2,arg3,arg4,arg5,arg6); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_SignDeterministic(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_ParseBytes(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; + Signature_Handle arg1 ; GoSlice arg2 ; - GoSlice arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; + Signature_Handle *argp1 ; GoSlice *argp2 ; - GoSlice *argp3 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (Signature_Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); return 0; } arg1 = *argp1; @@ -6394,217 +6641,144 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_SignDeterminist return 0; } arg2 = *argp2; - argp3 = (GoSlice *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg3 = *argp3; - arg4 = (coin__UxArray *)jarg4; - result = (GoUint32)SKY_secp256k1_SignDeterministic(arg1,arg2,arg3,arg4); + result = (GoUint32)SKY_secp256k1go_Signature_ParseBytes(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_VerifySeckey(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Bytes(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoSlice *argp1 ; + Signature_Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + Signature_Handle *argp1 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (Signature_Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); return 0; } arg1 = *argp1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_secp256k1_VerifySeckey(arg1,arg2); + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1go_Signature_Bytes(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_VerifyPubkey(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_App_Run(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoSlice *argp1 ; + App__Handle arg1 ; + GoString arg2 ; + App__Handle *argp1 ; + GoString *argp2 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (App__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null App__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_secp256k1_VerifyPubkey(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_VerifySignatureValidity(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } - arg1 = *argp1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_secp256k1_VerifySignatureValidity(arg1,arg2); + arg2 = *argp2; + result = (GoUint32)SKY_cli_App_Run(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_VerifySignature(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_GetCoin(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - GoSlice arg3 ; - GoInt *arg4 = (GoInt *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; - GoSlice *argp3 ; + Config__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Config__Handle *argp1 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (Config__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Config__Handle", 0); return 0; } arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoSlice *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg3 = *argp3; - arg4 = (GoInt *)jarg4; - result = (GoUint32)SKY_secp256k1_VerifySignature(arg1,arg2,arg3,arg4); + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cli_Config_GetCoin(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_SignatureErrorString(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_GetRPCAddress(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - GoSlice arg3 ; - GoString_ *arg4 = (GoString_ *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; - GoSlice *argp3 ; + Config__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Config__Handle *argp1 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (Config__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Config__Handle", 0); return 0; } arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoSlice *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg3 = *argp3; - arg4 = (GoString_ *)jarg4; - result = (GoUint32)SKY_secp256k1_SignatureErrorString(arg1,arg2,arg3,arg4); + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cli_Config_GetRPCAddress(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_RecoverPubkey(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_RPCClientFromApp(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; + App__Handle arg1 ; + WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; + App__Handle *argp1 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (App__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null App__Handle", 0); return 0; } arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_secp256k1_RecoverPubkey(arg1,arg2,arg3); + arg2 = (WebRpcClient__Handle *)jarg2; + result = (GoUint32)SKY_cli_RPCClientFromApp(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_ECDH(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Getenv(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; + GoString arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString *argp1 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (GoString *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_secp256k1_ECDH(arg1,arg2,arg3); + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cli_Getenv(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cert_CreateCertIfNotExists(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Setenv(void * jarg1, void * jarg2) { unsigned int jresult ; GoString arg1 ; GoString arg2 ; - GoString arg3 ; - GoString arg4 ; GoString *argp1 ; GoString *argp2 ; - GoString *argp3 ; - GoString *argp4 ; GoUint32 result; argp1 = (GoString *)jarg1; @@ -6619,1014 +6793,852 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cert_CreateCertIfNotExist return 0; } arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; - argp4 = (GoString *)jarg4; - if (!argp4) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg4 = *argp4; - result = (GoUint32)SKY_cert_CreateCertIfNotExists(arg1,arg2,arg3,arg4); + result = (GoUint32)SKY_cli_Setenv(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_VerifyTransactionFee(void * jarg1, unsigned long long jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_poly1305_Verify(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; - Transaction__Handle arg1 ; - GoUint64 arg2 ; - Transaction__Handle *argp1 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoUint8 *arg4 = (GoUint8 *) 0 ; + GoSlice *argp2 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + arg1 = (coin__UxArray *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } - arg1 = *argp1; - arg2 = (GoUint64)jarg2; - result = (GoUint32)SKY_fee_VerifyTransactionFee(arg1,arg2); + arg2 = *argp2; + arg3 = (coin__UxArray *)jarg3; + arg4 = (GoUint8 *)jarg4; + result = (GoUint32)SKY_poly1305_Verify(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_VerifyTransactionFeeForHours(unsigned long long jarg1, unsigned long long jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewBalance(unsigned long long jarg1, unsigned long long jarg2, void * jarg3) { unsigned int jresult ; GoUint64 arg1 ; GoUint64 arg2 ; + wallet__Balance *arg3 = (wallet__Balance *) 0 ; GoUint32 result; arg1 = (GoUint64)jarg1; arg2 = (GoUint64)jarg2; - result = (GoUint32)SKY_fee_VerifyTransactionFeeForHours(arg1,arg2); + arg3 = (wallet__Balance *)jarg3; + result = (GoUint32)SKY_wallet_NewBalance(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_RequiredFee(unsigned long long jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewBalanceFromUxOut(unsigned long long jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; GoUint64 arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; + coin__UxOut *arg2 = (coin__UxOut *) 0 ; + wallet__Balance *arg3 = (wallet__Balance *) 0 ; GoUint32 result; arg1 = (GoUint64)jarg1; - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_fee_RequiredFee(arg1,arg2); + arg2 = (coin__UxOut *)jarg2; + arg3 = (wallet__Balance *)jarg3; + result = (GoUint32)SKY_wallet_NewBalanceFromUxOut(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_RemainingHours(unsigned long long jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Balance_Add(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - GoUint64 arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint32 result; - - arg1 = (GoUint64)jarg1; - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_fee_RemainingHours(arg1,arg2); + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + wallet__Balance *arg2 = (wallet__Balance *) 0 ; + wallet__Balance *arg3 = (wallet__Balance *) 0 ; + GoUint32 result; + + arg1 = (wallet__Balance *)jarg1; + arg2 = (wallet__Balance *)jarg2; + arg3 = (wallet__Balance *)jarg3; + result = (GoUint32)SKY_wallet_Balance_Add(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_TransactionFee(void * jarg1, unsigned long long jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Balance_Sub(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Transaction__Handle arg1 ; - GoUint64 arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoUint64 *arg4 = (GoUint64 *) 0 ; - Transaction__Handle *argp1 ; + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + wallet__Balance *arg2 = (wallet__Balance *) 0 ; + wallet__Balance *arg3 = (wallet__Balance *) 0 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoUint64)jarg2; - arg3 = (coin__UxArray *)jarg3; - arg4 = (GoUint64 *)jarg4; - result = (GoUint32)SKY_fee_TransactionFee(arg1,arg2,arg3,arg4); + arg1 = (wallet__Balance *)jarg1; + arg2 = (wallet__Balance *)jarg2; + arg3 = (wallet__Balance *)jarg3; + result = (GoUint32)SKY_wallet_Balance_Sub(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_iputil_LocalhostIP(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Balance_Equals(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - GoString_ *arg1 = (GoString_ *) 0 ; + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + wallet__Balance *arg2 = (wallet__Balance *) 0 ; + GoUint8 *arg3 = (GoUint8 *) 0 ; GoUint32 result; - arg1 = (GoString_ *)jarg1; - result = (GoUint32)SKY_iputil_LocalhostIP(arg1); + arg1 = (wallet__Balance *)jarg1; + arg2 = (wallet__Balance *)jarg2; + arg3 = (GoUint8 *)jarg3; + result = (GoUint32)SKY_wallet_Balance_Equals(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_iputil_IsLocalhost(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Balance_IsZero(void * jarg1, void * jarg2) { unsigned int jresult ; - GoString arg1 ; + wallet__Balance *arg1 = (wallet__Balance *) 0 ; GoUint8 *arg2 = (GoUint8 *) 0 ; - GoString *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; + arg1 = (wallet__Balance *)jarg1; arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_iputil_IsLocalhost(arg1,arg2); + result = (GoUint32)SKY_wallet_Balance_IsZero(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_iputil_SplitAddr(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_utc_UnixNow(void * jarg1) { unsigned int jresult ; - GoString arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint16 *arg3 = (GoUint16 *) 0 ; - GoString *argp1 ; + GoInt64 *arg1 = (GoInt64 *) 0 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - arg3 = (GoUint16 *)jarg3; - result = (GoUint32)SKY_iputil_SplitAddr(arg1,arg2,arg3); + arg1 = (GoInt64 *)jarg1; + result = (GoUint32)SKY_utc_UnixNow(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Ripemd160_Set(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Address_UnmarshalJSON(void * jarg1, void * jarg2) { unsigned int jresult ; - cipher__Ripemd160 *arg1 = (cipher__Ripemd160 *) 0 ; + httphelper__Address *arg1 = (httphelper__Address *) 0 ; GoSlice arg2 ; GoSlice *argp2 ; GoUint32 result; - arg1 = (cipher__Ripemd160 *)jarg1; + arg1 = (httphelper__Address *)jarg1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg2 = *argp2; - result = (GoUint32)SKY_cipher_Ripemd160_Set((GoUint8_ (*)[20])arg1,arg2); + result = (GoUint32)SKY_httphelper_Address_UnmarshalJSON(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_HashRipemd160(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Address_MarshalJSON(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - cipher__Ripemd160 *arg2 = (cipher__Ripemd160 *) 0 ; - GoSlice *argp1 ; + httphelper__Address *arg1 = (httphelper__Address *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher__Ripemd160 *)jarg2; - result = (GoUint32)SKY_cipher_HashRipemd160(arg1,(GoUint8_ (*)[20])arg2); + arg1 = (httphelper__Address *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_httphelper_Address_MarshalJSON(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Set(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Coins_UnmarshalJSON(void * jarg1, void * jarg2) { unsigned int jresult ; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; + httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; GoSlice arg2 ; GoSlice *argp2 ; GoUint32 result; - arg1 = (cipher__SHA256 *)jarg1; + arg1 = (httphelper__Coins *)jarg1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg2 = *argp2; - result = (GoUint32)SKY_cipher_SHA256_Set((GoUint8_ (*)[32])arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Hex(void * jarg1, void * jarg2) { - unsigned int jresult ; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - arg1 = (cipher__SHA256 *)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cipher_SHA256_Hex((GoUint8_ (*)[32])arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Xor(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - GoUint32 result; - - arg1 = (cipher__SHA256 *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - arg3 = (cipher__SHA256 *)jarg3; - result = (GoUint32)SKY_cipher_SHA256_Xor((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[32])arg3); + result = (GoUint32)SKY_httphelper_Coins_UnmarshalJSON(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SumSHA256(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Coins_MarshalJSON(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoSlice *argp1 ; + httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_cipher_SumSHA256(arg1,(GoUint8_ (*)[32])arg2); + arg1 = (httphelper__Coins *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_httphelper_Coins_MarshalJSON(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256FromHex(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Coins_Value(void * jarg1, void * jarg2) { unsigned int jresult ; - GoString arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoString *argp1 ; + httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_cipher_SHA256FromHex(arg1,(GoUint8_ (*)[32])arg2); + arg1 = (httphelper__Coins *)jarg1; + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_httphelper_Coins_Value(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DoubleSHA256(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Hours_UnmarshalJSON(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoSlice *argp1 ; + httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; + GoSlice arg2 ; + GoSlice *argp2 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { + arg1 = (httphelper__Hours *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } - arg1 = *argp1; - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_cipher_DoubleSHA256(arg1,(GoUint8_ (*)[32])arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddSHA256(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - GoUint32 result; - - arg1 = (cipher__SHA256 *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - arg3 = (cipher__SHA256 *)jarg3; - result = (GoUint32)SKY_cipher_AddSHA256((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[32])arg3); + arg2 = *argp2; + result = (GoUint32)SKY_httphelper_Hours_UnmarshalJSON(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Merkle(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Hours_MarshalJSON(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice *arg1 = (GoSlice *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoUint32 result; - arg1 = (GoSlice *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_cipher_Merkle(arg1,(GoUint8_ (*)[32])arg2); + arg1 = (httphelper__Hours *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_httphelper_Hours_MarshalJSON(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_MustSumSHA256(void * jarg1, long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Hours_Value(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - GoInt arg2 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - GoSlice *argp1 ; + httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoInt)jarg2; - arg3 = (cipher__SHA256 *)jarg3; - result = (GoUint32)SKY_cipher_MustSumSHA256(arg1,arg2,(GoUint8_ (*)[32])arg3); + arg1 = (httphelper__Hours *)jarg1; + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_httphelper_Hours_Value(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Null(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Entry_Verify(void * jarg1) { unsigned int jresult ; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; + wallet__Entry *arg1 = (wallet__Entry *) 0 ; GoUint32 result; - arg1 = (cipher__SHA256 *)jarg1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_cipher_SHA256_Null((GoUint8_ (*)[32])arg1,arg2); + arg1 = (wallet__Entry *)jarg1; + result = (GoUint32)SKY_wallet_Entry_Verify(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Create_Transaction(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Entry_VerifyPublic(void * jarg1) { unsigned int jresult ; - Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; + wallet__Entry *arg1 = (wallet__Entry *) 0 ; GoUint32 result; - arg1 = (Transaction__Handle *)jarg1; - result = (GoUint32)SKY_coin_Create_Transaction(arg1); + arg1 = (wallet__Entry *)jarg1; + result = (GoUint32)SKY_wallet_Entry_VerifyPublic(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Copy(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateAddresses(void * jarg1, void * jarg2, long long jarg3, unsigned char jarg4, void * jarg5) { unsigned int jresult ; - Transaction__Handle arg1 ; - Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; - Transaction__Handle *argp1 ; + GoString arg1 ; + GoString arg2 ; + GoInt arg3 ; + GoUint8 arg4 ; + ReadableWallet__Handle *arg5 = (ReadableWallet__Handle *) 0 ; + GoString *argp1 ; + GoString *argp2 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; + argp1 = (GoString *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg1 = *argp1; - arg2 = (Transaction__Handle *)jarg2; - result = (GoUint32)SKY_coin_Transaction_Copy(arg1,arg2); + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (GoInt)jarg3; + arg4 = (GoUint8)jarg4; + arg5 = (ReadableWallet__Handle *)jarg5; + result = (GoUint32)SKY_wallet_CreateAddresses(arg1,arg2,arg3,arg4,arg5); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetTransactionObject(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_GetSkycoinWalletEntry(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Transaction__Handle arg1 ; - coin__Transaction **arg2 = (coin__Transaction **) 0 ; - Transaction__Handle *argp1 ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + ReadableEntry__Handle *arg3 = (ReadableEntry__Handle *) 0 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (coin__Transaction **)jarg2; - result = (GoUint32)SKY_coin_GetTransactionObject(arg1,arg2); + arg1 = (cipher__PubKey *)jarg1; + arg2 = (cipher__SecKey *)jarg2; + arg3 = (ReadableEntry__Handle *)jarg3; + result = (GoUint32)SKY_wallet_GetSkycoinWalletEntry((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_ResetInputs(void * jarg1, long long jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_GetBitcoinWalletEntry(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Transaction__Handle arg1 ; - GoInt arg2 ; - Transaction__Handle *argp1 ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + ReadableEntry__Handle *arg3 = (ReadableEntry__Handle *) 0 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoInt)jarg2; - result = (GoUint32)SKY_coin_Transaction_ResetInputs(arg1,arg2); + arg1 = (cipher__PubKey *)jarg1; + arg2 = (cipher__SecKey *)jarg2; + arg3 = (ReadableEntry__Handle *)jarg3; + result = (GoUint32)SKY_wallet_GetBitcoinWalletEntry((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetInputsCount(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Print(void * jarg1, void * jarg2) { unsigned int jresult ; - Transaction__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - Transaction__Handle *argp1 ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + GoString arg2 ; + GoString *argp2 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + arg1 = (secp256k1go__XYZ *)jarg1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } - arg1 = *argp1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_coin_Transaction_GetInputsCount(arg1,arg2); + arg2 = *argp2; + result = (GoUint32)SKY_secp256k1go_XYZ_Print(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetInputAt(void * jarg1, long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_SetXY(void * jarg1, void * jarg2) { unsigned int jresult ; - Transaction__Handle arg1 ; - GoInt arg2 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - Transaction__Handle *argp1 ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoInt)jarg2; - arg3 = (cipher__SHA256 *)jarg3; - result = (GoUint32)SKY_coin_Transaction_GetInputAt(arg1,arg2,(GoUint8_ (*)[32])arg3); + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (secp256k1go__XY *)jarg2; + result = (GoUint32)SKY_secp256k1go_XYZ_SetXY(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SetInputAt(void * jarg1, long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_IsInfinity(void * jarg1, void * jarg2) { unsigned int jresult ; - Transaction__Handle arg1 ; - GoInt arg2 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - Transaction__Handle *argp1 ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoInt)jarg2; - arg3 = (cipher__SHA256 *)jarg3; - result = (GoUint32)SKY_coin_Transaction_SetInputAt(arg1,arg2,(GoUint8_ (*)[32])arg3); + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_secp256k1go_XYZ_IsInfinity(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetOutputsCount(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_IsValid(void * jarg1, void * jarg2) { unsigned int jresult ; - Transaction__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - Transaction__Handle *argp1 ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_coin_Transaction_GetOutputsCount(arg1,arg2); + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_secp256k1go_XYZ_IsValid(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetOutputAt(void * jarg1, long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Normalize(void * jarg1) { unsigned int jresult ; - Transaction__Handle arg1 ; - GoInt arg2 ; - coin__TransactionOutput *arg3 = (coin__TransactionOutput *) 0 ; - Transaction__Handle *argp1 ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoInt)jarg2; - arg3 = (coin__TransactionOutput *)jarg3; - result = (GoUint32)SKY_coin_Transaction_GetOutputAt(arg1,arg2,arg3); + arg1 = (secp256k1go__XYZ *)jarg1; + result = (GoUint32)SKY_secp256k1go_XYZ_Normalize(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SetOutputAt(void * jarg1, long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Equals(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Transaction__Handle arg1 ; - GoInt arg2 ; - coin__TransactionOutput *arg3 = (coin__TransactionOutput *) 0 ; - Transaction__Handle *argp1 ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; + GoUint8 *arg3 = (GoUint8 *) 0 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoInt)jarg2; - arg3 = (coin__TransactionOutput *)jarg3; - result = (GoUint32)SKY_coin_Transaction_SetOutputAt(arg1,arg2,arg3); + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (secp256k1go__XYZ *)jarg2; + arg3 = (GoUint8 *)jarg3; + result = (GoUint32)SKY_secp256k1go_XYZ_Equals(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetSignaturesCount(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_ECmult(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; - Transaction__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - Transaction__Handle *argp1 ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; + Number_Handle arg3 ; + Number_Handle arg4 ; + Number_Handle *argp3 ; + Number_Handle *argp4 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (secp256k1go__XYZ *)jarg2; + argp3 = (Number_Handle *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); return 0; } - arg1 = *argp1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_coin_Transaction_GetSignaturesCount(arg1,arg2); + arg3 = *argp3; + argp4 = (Number_Handle *)jarg4; + if (!argp4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); + return 0; + } + arg4 = *argp4; + result = (GoUint32)SKY_secp256k1go_XYZ_ECmult(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetSignatureAt(void * jarg1, long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Neg(void * jarg1, void * jarg2) { unsigned int jresult ; - Transaction__Handle arg1 ; - GoInt arg2 ; - cipher__Sig *arg3 = (cipher__Sig *) 0 ; - Transaction__Handle *argp1 ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoInt)jarg2; - arg3 = (cipher__Sig *)jarg3; - result = (GoUint32)SKY_coin_Transaction_GetSignatureAt(arg1,arg2,(GoUint8_ (*)[65])arg3); + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (secp256k1go__XYZ *)jarg2; + result = (GoUint32)SKY_secp256k1go_XYZ_Neg(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SetSignatureAt(void * jarg1, long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Double(void * jarg1, void * jarg2) { unsigned int jresult ; - Transaction__Handle arg1 ; - GoInt arg2 ; - cipher__Sig *arg3 = (cipher__Sig *) 0 ; - Transaction__Handle *argp1 ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoInt)jarg2; - arg3 = (cipher__Sig *)jarg3; - result = (GoUint32)SKY_coin_Transaction_SetSignatureAt(arg1,arg2,(GoUint8_ (*)[65])arg3); + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (secp256k1go__XYZ *)jarg2; + result = (GoUint32)SKY_secp256k1go_XYZ_Double(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_PushSignature(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_AddXY(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Transaction__Handle arg1 ; - cipher__Sig *arg2 = (cipher__Sig *) 0 ; - Transaction__Handle *argp1 ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; + secp256k1go__XY *arg3 = (secp256k1go__XY *) 0 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher__Sig *)jarg2; - result = (GoUint32)SKY_coin_Transaction_PushSignature(arg1,(GoUint8_ (*)[65])arg2); + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (secp256k1go__XYZ *)jarg2; + arg3 = (secp256k1go__XY *)jarg3; + result = (GoUint32)SKY_secp256k1go_XYZ_AddXY(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_ResetOutputs(void * jarg1, long long jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Add(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Transaction__Handle arg1 ; - GoInt arg2 ; - Transaction__Handle *argp1 ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; + secp256k1go__XYZ *arg3 = (secp256k1go__XYZ *) 0 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoInt)jarg2; - result = (GoUint32)SKY_coin_Transaction_ResetOutputs(arg1,arg2); + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (secp256k1go__XYZ *)jarg2; + arg3 = (secp256k1go__XYZ *)jarg3; + result = (GoUint32)SKY_secp256k1go_XYZ_Add(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_ResetSignatures(void * jarg1, long long jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_ECmultGen(void * jarg1, void * jarg2) { unsigned int jresult ; - Transaction__Handle arg1 ; - GoInt arg2 ; - Transaction__Handle *argp1 ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + Number_Handle arg2 ; + Number_Handle *argp2 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + arg1 = (secp256k1go__XYZ *)jarg1; + argp2 = (Number_Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); return 0; } - arg1 = *argp1; - arg2 = (GoInt)jarg2; - result = (GoUint32)SKY_coin_Transaction_ResetSignatures(arg1,arg2); + arg2 = *argp2; + result = (GoUint32)SKY_secp256k1go_ECmultGen(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Verify(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_Sha256Xor_Encrypt(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Transaction__Handle arg1 ; - Transaction__Handle *argp1 ; + GoSlice arg1 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - result = (GoUint32)SKY_coin_Transaction_Verify(arg1); + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_encrypt_Sha256Xor_Encrypt(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_VerifyInput(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_Sha256Xor_Decrypt(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Transaction__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - Transaction__Handle *argp1 ; + GoSlice arg1 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_coin_Transaction_VerifyInput(arg1,arg2); + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_encrypt_Sha256Xor_Decrypt(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_PushInput(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_droplet_FromString(void * jarg1, void * jarg2) { unsigned int jresult ; - Transaction__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoUint16 *arg3 = (GoUint16 *) 0 ; - Transaction__Handle *argp1 ; + GoString arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoString *argp1 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; + argp1 = (GoString *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg1 = *argp1; - arg2 = (cipher__SHA256 *)jarg2; - arg3 = (GoUint16 *)jarg3; - result = (GoUint32)SKY_coin_Transaction_PushInput(arg1,(GoUint8_ (*)[32])arg2,arg3); + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_droplet_FromString(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_TransactionOutput_UxID(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_droplet_ToString(unsigned long long jarg1, void * jarg2) { unsigned int jresult ; - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + GoUint64 arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; - arg1 = (coin__TransactionOutput *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - arg3 = (cipher__SHA256 *)jarg3; - result = (GoUint32)SKY_coin_TransactionOutput_UxID(arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[32])arg3); + arg1 = (GoUint64)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_droplet_ToString(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_PushOutput(void * jarg1, void * jarg2, unsigned long long jarg3, unsigned long long jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CryptoTypeFromString(void * jarg1, void * jarg2) { unsigned int jresult ; - Transaction__Handle arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - GoUint64 arg3 ; - GoUint64 arg4 ; - Transaction__Handle *argp1 ; + GoString arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString *argp1 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; + argp1 = (GoString *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg1 = *argp1; - arg2 = (cipher__Address *)jarg2; - arg3 = (GoUint64)jarg3; - arg4 = (GoUint64)jarg4; - result = (GoUint32)SKY_coin_Transaction_PushOutput(arg1,arg2,arg3,arg4); + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_wallet_CryptoTypeFromString(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SignInputs(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_handle_close(void * jarg1) { + Handle arg1 ; + Handle *argp1 ; + + argp1 = (Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); + return ; + } + arg1 = *argp1; + SKY_handle_close(arg1); +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_handle_copy(void * jarg1, void * jarg2) { unsigned int jresult ; - Transaction__Handle arg1 ; - GoSlice arg2 ; - Transaction__Handle *argp1 ; - GoSlice *argp2 ; + Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle *argp1 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; + argp1 = (Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); return 0; } arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_coin_Transaction_SignInputs(arg1,arg2); + arg2 = (Handle *)jarg2; + result = (GoUint32)SKY_handle_copy(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Size(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_logging_EnableColors() { unsigned int jresult ; - Transaction__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_coin_Transaction_Size(arg1,arg2); + result = (GoUint32)SKY_logging_EnableColors(); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Hash(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_logging_DisableColors() { unsigned int jresult ; - Transaction__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_coin_Transaction_Hash(arg1,(GoUint8_ (*)[32])arg2); + result = (GoUint32)SKY_logging_DisableColors(); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SizeHash(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_logging_Disable() { unsigned int jresult ; - Transaction__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoInt *)jarg2; - arg3 = (cipher__SHA256 *)jarg3; - result = (GoUint32)SKY_coin_Transaction_SizeHash(arg1,arg2,(GoUint8_ (*)[32])arg3); + result = (GoUint32)SKY_logging_Disable(); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_TxID(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_map_Get(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Transaction__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - Transaction__Handle *argp1 ; + GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; + GoString arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + GoString *argp2 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + arg1 = (GoStringMap_ *)jarg1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_coin_Transaction_TxID(arg1,arg2); + arg2 = *argp2; + arg3 = (GoString_ *)jarg3; + result = (GoUint32)SKY_map_Get(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_TxIDHex(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - Transaction__Handle *argp1 ; - GoUint32 result; +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_skycoin_SKY_map_HasKey(void * jarg1, void * jarg2) { + unsigned char jresult ; + GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; + GoString arg2 ; + GoString *argp2 ; + GoUint8 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + arg1 = (GoStringMap_ *)jarg1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } - arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_coin_Transaction_TxIDHex(arg1,arg2); + arg2 = *argp2; + result = (GoUint8)SKY_map_HasKey(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_UpdateHeader(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_map_Close(void * jarg1) { unsigned int jresult ; - Transaction__Handle arg1 ; - Transaction__Handle *argp1 ; + GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; - } - arg1 = *argp1; - result = (GoUint32)SKY_coin_Transaction_UpdateHeader(arg1); + arg1 = (GoStringMap_ *)jarg1; + result = (GoUint32)SKY_map_Close(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_HashInner(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DecodeBase58Address(void * jarg1, void * jarg2) { unsigned int jresult ; - Transaction__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - Transaction__Handle *argp1 ; + GoString arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoString *argp1 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; + argp1 = (GoString *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg1 = *argp1; - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_coin_Transaction_HashInner(arg1,(GoUint8_ (*)[32])arg2); + arg2 = (cipher__Address *)jarg2; + result = (GoUint32)SKY_cipher_DecodeBase58Address(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Serialize(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_MustDecodeBase58Address(void * jarg1, void * jarg2) { unsigned int jresult ; - Transaction__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - Transaction__Handle *argp1 ; + GoString arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoString *argp1 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; + argp1 = (GoString *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_coin_Transaction_Serialize(arg1,arg2); + arg2 = (cipher__Address *)jarg2; + result = (GoUint32)SKY_cipher_MustDecodeBase58Address(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_MustTransactionDeserialize(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinMustDecodeBase58Address(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; - GoSlice *argp1 ; + GoString arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoString *argp1 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (GoString *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg1 = *argp1; - arg2 = (Transaction__Handle *)jarg2; - result = (GoUint32)SKY_coin_MustTransactionDeserialize(arg1,arg2); + arg2 = (cipher__Address *)jarg2; + result = (GoUint32)SKY_cipher_BitcoinMustDecodeBase58Address(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_TransactionDeserialize(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddressFromBytes(void * jarg1, void * jarg2) { unsigned int jresult ; GoSlice arg1 ; - Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; GoSlice *argp1 ; GoUint32 result; @@ -7636,1676 +7648,1580 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_TransactionDeseriali return 0; } arg1 = *argp1; - arg2 = (Transaction__Handle *)jarg2; - result = (GoUint32)SKY_coin_TransactionDeserialize(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_OutputHours(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - Transaction__Handle *argp1 ; - GoUint32 result; - - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_coin_Transaction_OutputHours(arg1,arg2); + arg2 = (cipher__Address *)jarg2; + result = (GoUint32)SKY_cipher_AddressFromBytes(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Create_Transactions(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddressFromPubKey(void * jarg1, void * jarg2) { unsigned int jresult ; - Transactions__Handle *arg1 = (Transactions__Handle *) 0 ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; GoUint32 result; - arg1 = (Transactions__Handle *)jarg1; - result = (GoUint32)SKY_coin_Create_Transactions(arg1); + arg1 = (cipher__PubKey *)jarg1; + arg2 = (cipher__Address *)jarg2; + result = (GoUint32)SKY_cipher_AddressFromPubKey((GoUint8_ (*)[33])arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetTransactionsObject(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddressFromSecKey(void * jarg1, void * jarg2) { unsigned int jresult ; - Transactions__Handle arg1 ; - coin__UxArray **arg2 = (coin__UxArray **) 0 ; - Transactions__Handle *argp1 ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; GoUint32 result; - argp1 = (Transactions__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (coin__UxArray **)jarg2; - result = (GoUint32)SKY_coin_GetTransactionsObject(arg1,arg2); + arg1 = (cipher__SecKey *)jarg1; + arg2 = (cipher__Address *)jarg2; + result = (GoUint32)SKY_cipher_AddressFromSecKey((GoUint8_ (*)[32])arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Length(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinDecodeBase58Address(void * jarg1, void * jarg2) { unsigned int jresult ; - Transactions__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - Transactions__Handle *argp1 ; + GoString arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoString *argp1 ; GoUint32 result; - argp1 = (Transactions__Handle *)jarg1; + argp1 = (GoString *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg1 = *argp1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_coin_Transactions_Length(arg1,arg2); + arg2 = (cipher__Address *)jarg2; + result = (GoUint32)SKY_cipher_BitcoinDecodeBase58Address(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Add(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_MustAddressFromBytes(void * jarg1, void * jarg2) { unsigned int jresult ; - Transactions__Handle arg1 ; - Transaction__Handle arg2 ; - Transactions__Handle *argp1 ; - Transaction__Handle *argp2 ; + GoSlice arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoSlice *argp1 ; GoUint32 result; - argp1 = (Transactions__Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - argp2 = (Transaction__Handle *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_coin_Transactions_Add(arg1,arg2); + arg2 = (cipher__Address *)jarg2; + result = (GoUint32)SKY_cipher_MustAddressFromBytes(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Fees(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Bytes(void * jarg1, void * jarg2) { unsigned int jresult ; - Transactions__Handle arg1 ; - FeeCalculator *arg2 = (FeeCalculator *) 0 ; - GoUint64 *arg3 = (GoUint64 *) 0 ; - Transactions__Handle *argp1 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoUint32 result; - argp1 = (Transactions__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (FeeCalculator *)jarg2; - arg3 = (GoUint64 *)jarg3; - result = (GoUint32)SKY_coin_Transactions_Fees(arg1,arg2,arg3); + arg1 = (cipher__Address *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_cipher_Address_Bytes(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_GetAt(void * jarg1, long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Null(void * jarg1, void * jarg2) { unsigned int jresult ; - Transactions__Handle arg1 ; - GoInt arg2 ; - Transaction__Handle *arg3 = (Transaction__Handle *) 0 ; - Transactions__Handle *argp1 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; GoUint32 result; - argp1 = (Transactions__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoInt)jarg2; - arg3 = (Transaction__Handle *)jarg3; - result = (GoUint32)SKY_coin_Transactions_GetAt(arg1,arg2,arg3); + arg1 = (cipher__Address *)jarg1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_cipher_Address_Null(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Hashes(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_BitcoinBytes(void * jarg1, void * jarg2) { unsigned int jresult ; - Transactions__Handle arg1 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; - Transactions__Handle *argp1 ; GoUint32 result; - argp1 = (Transactions__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); - return 0; - } - arg1 = *argp1; + arg1 = (cipher__Address *)jarg1; arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_coin_Transactions_Hashes(arg1,arg2); + result = (GoUint32)SKY_cipher_Address_BitcoinBytes(arg1,arg2); jresult = result; return jresult; } - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Size(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transactions__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - Transactions__Handle *argp1 ; - GoUint32 result; - - argp1 = (Transactions__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_coin_Transactions_Size(arg1,arg2); + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Verify(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + GoUint32 result; + + arg1 = (cipher__Address *)jarg1; + arg2 = (cipher__PubKey *)jarg2; + result = (GoUint32)SKY_cipher_Address_Verify(arg1,(GoUint8_ (*)[33])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_TruncateBytesTo(void * jarg1, long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_String(void * jarg1, void * jarg2) { unsigned int jresult ; - Transactions__Handle arg1 ; - GoInt arg2 ; - Transactions__Handle *arg3 = (Transactions__Handle *) 0 ; - Transactions__Handle *argp1 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; - argp1 = (Transactions__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoInt)jarg2; - arg3 = (Transactions__Handle *)jarg3; - result = (GoUint32)SKY_coin_Transactions_TruncateBytesTo(arg1,arg2,arg3); + arg1 = (cipher__Address *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cipher_Address_String(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortTransactions(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_BitcoinString(void * jarg1, void * jarg2) { unsigned int jresult ; - Transactions__Handle arg1 ; - FeeCalculator *arg2 = (FeeCalculator *) 0 ; - Transactions__Handle *arg3 = (Transactions__Handle *) 0 ; - Transactions__Handle *argp1 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; - argp1 = (Transactions__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (FeeCalculator *)jarg2; - arg3 = (Transactions__Handle *)jarg3; - result = (GoUint32)SKY_coin_SortTransactions(arg1,arg2,arg3); + arg1 = (cipher__Address *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cipher_Address_BitcoinString(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewSortableTransactions(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Checksum(void * jarg1, void * jarg2) { unsigned int jresult ; - Transactions__Handle arg1 ; - FeeCalculator *arg2 = (FeeCalculator *) 0 ; - SortableTransactionResult_Handle *arg3 = (SortableTransactionResult_Handle *) 0 ; - Transactions__Handle *argp1 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + cipher__Checksum *arg2 = (cipher__Checksum *) 0 ; GoUint32 result; - argp1 = (Transactions__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (FeeCalculator *)jarg2; - arg3 = (SortableTransactionResult_Handle *)jarg3; - result = (GoUint32)SKY_coin_NewSortableTransactions(arg1,arg2,arg3); + arg1 = (cipher__Address *)jarg1; + arg2 = (cipher__Checksum *)jarg2; + result = (GoUint32)SKY_cipher_Address_Checksum(arg1,(GoUint8_ (*)[4])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortableTransactions_Sort(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_BitcoinChecksum(void * jarg1, void * jarg2) { unsigned int jresult ; - SortableTransactionResult_Handle arg1 ; - SortableTransactionResult_Handle *argp1 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + cipher__Checksum *arg2 = (cipher__Checksum *) 0 ; GoUint32 result; - argp1 = (SortableTransactionResult_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null SortableTransactionResult_Handle", 0); - return 0; - } - arg1 = *argp1; - result = (GoUint32)SKY_coin_SortableTransactions_Sort(arg1); + arg1 = (cipher__Address *)jarg1; + arg2 = (cipher__Checksum *)jarg2; + result = (GoUint32)SKY_cipher_Address_BitcoinChecksum(arg1,(GoUint8_ (*)[4])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortableTransactions_Len(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddressFromPubkey(void * jarg1, void * jarg2) { unsigned int jresult ; - SortableTransactionResult_Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - SortableTransactionResult_Handle *argp1 ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; - argp1 = (SortableTransactionResult_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null SortableTransactionResult_Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_coin_SortableTransactions_Len(arg1,arg2); + arg1 = (cipher__PubKey *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cipher_BitcoinAddressFromPubkey((GoUint8_ (*)[33])arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortableTransactions_Less(void * jarg1, long long jarg2, long long jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinWalletImportFormatFromSeckey(void * jarg1, void * jarg2) { unsigned int jresult ; - SortableTransactionResult_Handle arg1 ; - GoInt arg2 ; - GoInt arg3 ; - GoUint8 *arg4 = (GoUint8 *) 0 ; - SortableTransactionResult_Handle *argp1 ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; - argp1 = (SortableTransactionResult_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null SortableTransactionResult_Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoInt)jarg2; - arg3 = (GoInt)jarg3; - arg4 = (GoUint8 *)jarg4; - result = (GoUint32)SKY_coin_SortableTransactions_Less(arg1,arg2,arg3,arg4); + arg1 = (cipher__SecKey *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cipher_BitcoinWalletImportFormatFromSeckey((GoUint8_ (*)[32])arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortableTransactions_Swap(void * jarg1, long long jarg2, long long jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddressFromBytes(void * jarg1, void * jarg2) { unsigned int jresult ; - SortableTransactionResult_Handle arg1 ; - GoInt arg2 ; - GoInt arg3 ; - SortableTransactionResult_Handle *argp1 ; + GoSlice arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoSlice *argp1 ; GoUint32 result; - argp1 = (SortableTransactionResult_Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null SortableTransactionResult_Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - arg2 = (GoInt)jarg2; - arg3 = (GoInt)jarg3; - result = (GoUint32)SKY_coin_SortableTransactions_Swap(arg1,arg2,arg3); + arg2 = (cipher__Address *)jarg2; + result = (GoUint32)SKY_cipher_BitcoinAddressFromBytes(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_VerifyTransactionCoinsSpending(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKeyFromWalletImportFormat(void * jarg1, void * jarg2) { unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoString arg1 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + GoString *argp1 ; GoUint32 result; - arg1 = (coin__UxArray *)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_coin_VerifyTransactionCoinsSpending(arg1,arg2); + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__SecKey *)jarg2; + result = (GoUint32)SKY_cipher_SecKeyFromWalletImportFormat(arg1,(GoUint8_ (*)[32])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_VerifyTransactionHoursSpending(unsigned long long jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_MustSecKeyFromWalletImportFormat(void * jarg1, void * jarg2) { unsigned int jresult ; - GoUint64 arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoString arg1 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + GoString *argp1 ; GoUint32 result; - arg1 = (GoUint64)jarg1; - arg2 = (coin__UxArray *)jarg2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_coin_VerifyTransactionHoursSpending(arg1,arg2,arg3); + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__SecKey *)jarg2; + result = (GoUint32)SKY_cipher_MustSecKeyFromWalletImportFormat(arg1,(GoUint8_ (*)[32])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_Sha256Xor_Encrypt(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_JsonEncode_Handle(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; + Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Handle *argp1 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); return 0; } arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_encrypt_Sha256Xor_Encrypt(arg1,arg2,arg3); + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_JsonEncode_Handle(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_Sha256Xor_Decrypt(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Progress_GetCurrent(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; + Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + Handle *argp1 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); return 0; } arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_encrypt_Sha256Xor_Decrypt(arg1,arg2,arg3); + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_Handle_Progress_GetCurrent(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GenerateAddressesInFile(void * jarg1, unsigned long long jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Block_GetHeadSeq(void * jarg1, void * jarg2) { unsigned int jresult ; - GoString arg1 ; - GoUint64 arg2 ; - PasswordReader__Handle arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - GoString *argp1 ; - PasswordReader__Handle *argp3 ; + Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + Handle *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; + argp1 = (Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); return 0; } arg1 = *argp1; - arg2 = (GoUint64)jarg2; - argp3 = (PasswordReader__Handle *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null PasswordReader__Handle", 0); - return 0; - } - arg3 = *argp3; - arg4 = (coin__UxArray *)jarg4; - result = (GoUint32)SKY_cli_GenerateAddressesInFile(arg1,arg2,arg3,arg4); + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_Handle_Block_GetHeadSeq(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_FormatAddressesAsJSON(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Block_GetHeadHash(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; + Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; - GoSlice *argp1 ; + Handle *argp1 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); return 0; } arg1 = *argp1; arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cli_FormatAddressesAsJSON(arg1,arg2); + result = (GoUint32)SKY_Handle_Block_GetHeadHash(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_FormatAddressesAsJoinedArray(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Block_GetPreviousBlockHash(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; + Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; - GoSlice *argp1 ; + Handle *argp1 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); return 0; } arg1 = *argp1; arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cli_FormatAddressesAsJoinedArray(arg1,arg2); + result = (GoUint32)SKY_Handle_Block_GetPreviousBlockHash(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_AddressesToStrings(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Blocks_GetAt(void * jarg1, unsigned long long jarg2, void * jarg3) { unsigned int jresult ; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; + Handle arg1 ; + GoUint64 arg2 ; + Handle *arg3 = (Handle *) 0 ; + Handle *argp1 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); return 0; } arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_cli_AddressesToStrings(arg1,arg2); + arg2 = (GoUint64)jarg2; + arg3 = (Handle *)jarg3; + result = (GoUint32)SKY_Handle_Blocks_GetAt(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_LoadConfig(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Blocks_GetCount(void * jarg1, void * jarg2) { unsigned int jresult ; - Config__Handle *arg1 = (Config__Handle *) 0 ; + Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + Handle *argp1 ; GoUint32 result; - arg1 = (Config__Handle *)jarg1; - result = (GoUint32)SKY_cli_LoadConfig(arg1); + argp1 = (Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_Handle_Blocks_GetCount(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_FullWalletPath(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Connections_GetCount(void * jarg1, void * jarg2) { unsigned int jresult ; - Config__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - Config__Handle *argp1 ; + Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + Handle *argp1 ; GoUint32 result; - argp1 = (Config__Handle *)jarg1; + argp1 = (Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Config__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); return 0; } arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cli_Config_FullWalletPath(arg1,arg2); + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_Handle_Connections_GetCount(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_FullDBPath(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Strings_GetCount(void * jarg1, void * jarg2) { unsigned int jresult ; - Config__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - Config__Handle *argp1 ; + Strings__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + Strings__Handle *argp1 ; GoUint32 result; - argp1 = (Config__Handle *)jarg1; + argp1 = (Strings__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Config__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Strings__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cli_Config_FullDBPath(arg1,arg2); + arg2 = (GoUint32 *)jarg2; + result = (GoUint32)SKY_Handle_Strings_GetCount(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_NewApp(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Strings_Sort(void * jarg1) { unsigned int jresult ; - Config__Handle arg1 ; - App__Handle *arg2 = (App__Handle *) 0 ; - Config__Handle *argp1 ; + Strings__Handle arg1 ; + Strings__Handle *argp1 ; GoUint32 result; - argp1 = (Config__Handle *)jarg1; + argp1 = (Strings__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Config__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Strings__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (App__Handle *)jarg2; - result = (GoUint32)SKY_cli_NewApp(arg1,arg2); + result = (GoUint32)SKY_Handle_Strings_Sort(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_RPCClientFromContext(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Strings_GetAt(void * jarg1, long long jarg2, void * jarg3) { unsigned int jresult ; - Context__Handle arg1 ; - WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; - Context__Handle *argp1 ; + Strings__Handle arg1 ; + GoInt arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + Strings__Handle *argp1 ; GoUint32 result; - argp1 = (Context__Handle *)jarg1; + argp1 = (Strings__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Context__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Strings__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (WebRpcClient__Handle *)jarg2; - result = (GoUint32)SKY_cli_RPCClientFromContext(arg1,arg2); + arg2 = (GoInt)jarg2; + arg3 = (GoString_ *)jarg3; + result = (GoUint32)SKY_Handle_Strings_GetAt(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_ConfigFromContext(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletDir(void * jarg1, void * jarg2) { unsigned int jresult ; - Context__Handle arg1 ; - Config__Handle *arg2 = (Config__Handle *) 0 ; - Context__Handle *argp1 ; + Client__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - argp1 = (Context__Handle *)jarg1; + argp1 = (Client__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Context__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (Config__Handle *)jarg2; - result = (GoUint32)SKY_cli_ConfigFromContext(arg1,arg2); + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_api_Handle_Client_GetWalletDir(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_PasswordFromBytes_Password(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletFileName(void * jarg1, void * jarg2) { unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; + WalletResponse__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + WalletResponse__Handle *argp1 ; GoUint32 result; - arg1 = (coin__UxArray *)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_cli_PasswordFromBytes_Password(arg1,arg2); + argp1 = (WalletResponse__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_api_Handle_Client_GetWalletFileName(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_PasswordFromTerm_Password(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletLabel(void * jarg1, void * jarg2) { unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; + WalletResponse__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + WalletResponse__Handle *argp1 ; GoUint32 result; - arg1 = (coin__UxArray *)jarg1; - result = (GoUint32)SKY_cli_PasswordFromTerm_Password(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_handle_close(void * jarg1) { - Handle arg1 ; - Handle *argp1 ; - - argp1 = (Handle *)jarg1; + argp1 = (WalletResponse__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); - return ; + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); + return 0; } arg1 = *argp1; - SKY_handle_close(arg1); + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_api_Handle_Client_GetWalletLabel(arg1,arg2); + jresult = result; + return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_handle_copy(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletFullPath(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle *argp1 ; + Client__Handle arg1 ; + WalletResponse__Handle arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + Client__Handle *argp1 ; + WalletResponse__Handle *argp2 ; GoUint32 result; - argp1 = (Handle *)jarg1; + argp1 = (Client__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (Handle *)jarg2; - result = (GoUint32)SKY_handle_copy(arg1,arg2); + argp2 = (WalletResponse__Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); + return 0; + } + arg2 = *argp2; + arg3 = (GoString_ *)jarg3; + result = (GoUint32)SKY_api_Handle_Client_GetWalletFullPath(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encoder_StructField_String(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletMeta(void * jarg1, void * jarg2) { unsigned int jresult ; - encoder__StructField *arg1 = (encoder__StructField *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; + Wallet__Handle arg1 ; + GoStringMap_ *arg2 = (GoStringMap_ *) 0 ; + Wallet__Handle *argp1 ; GoUint32 result; - arg1 = (encoder__StructField *)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_encoder_StructField_String(arg1,arg2); + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoStringMap_ *)jarg2; + result = (GoUint32)SKY_api_Handle_GetWalletMeta(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encoder_ParseFields(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletEntriesCount(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - GoStringMap_ *arg3 = (GoStringMap_ *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; + Wallet__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + Wallet__Handle *argp1 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (Wallet__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); return 0; } arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (GoStringMap_ *)jarg3; - result = (GoUint32)SKY_encoder_ParseFields(arg1,arg2,arg3); + arg2 = (GoUint32 *)jarg2; + result = (GoUint32)SKY_api_Handle_GetWalletEntriesCount(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_Hash(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletResponseEntriesCount(void * jarg1, void * jarg2) { unsigned int jresult ; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + WalletResponse__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + WalletResponse__Handle *argp1 ; GoUint32 result; - arg1 = (coin__UxOut *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_coin_UxOut_Hash(arg1,(GoUint8_ (*)[32])arg2); + argp1 = (WalletResponse__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint32 *)jarg2; + result = (GoUint32)SKY_api_Handle_Client_GetWalletResponseEntriesCount(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_SnapshotHash(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletGetEntry(void * jarg1, unsigned int jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + Wallet__Handle arg1 ; + GoUint32 arg2 ; + cipher__Address *arg3 = (cipher__Address *) 0 ; + cipher__PubKey *arg4 = (cipher__PubKey *) 0 ; + Wallet__Handle *argp1 ; GoUint32 result; - arg1 = (coin__UxOut *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_coin_UxOut_SnapshotHash(arg1,(GoUint8_ (*)[32])arg2); + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint32)jarg2; + arg3 = (cipher__Address *)jarg3; + arg4 = (cipher__PubKey *)jarg4; + result = (GoUint32)SKY_api_Handle_WalletGetEntry(arg1,arg2,arg3,(GoUint8_ (*)[33])arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxBody_Hash(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletResponseGetEntry(void * jarg1, unsigned int jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + WalletResponse__Handle arg1 ; + GoUint32 arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + GoString_ *arg4 = (GoString_ *) 0 ; + WalletResponse__Handle *argp1 ; GoUint32 result; - arg1 = (coin__UxBody *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_coin_UxBody_Hash(arg1,(GoUint8_ (*)[32])arg2); + argp1 = (WalletResponse__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint32)jarg2; + arg3 = (GoString_ *)jarg3; + arg4 = (GoString_ *)jarg4; + result = (GoUint32)SKY_api_Handle_WalletResponseGetEntry(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_CoinHours(void * jarg1, unsigned long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletResponseIsEncrypted(void * jarg1, void * jarg2) { unsigned int jresult ; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - GoUint64 arg2 ; - GoUint64 *arg3 = (GoUint64 *) 0 ; + WalletResponse__Handle arg1 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + WalletResponse__Handle *argp1 ; GoUint32 result; - arg1 = (coin__UxOut *)jarg1; - arg2 = (GoUint64)jarg2; - arg3 = (GoUint64 *)jarg3; - result = (GoUint32)SKY_coin_UxOut_CoinHours(arg1,arg2,arg3); + argp1 = (WalletResponse__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_api_Handle_WalletResponseIsEncrypted(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Hashes(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletResponseGetCryptoType(void * jarg1, void * jarg2) { unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; + WalletResponse__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + WalletResponse__Handle *argp1 ; GoUint32 result; - arg1 = (coin__UxArray *)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_coin_UxArray_Hashes(arg1,arg2); + argp1 = (WalletResponse__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_api_Handle_WalletResponseGetCryptoType(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_HasDupes(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletsResponseGetCount(void * jarg1, void * jarg2) { unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; + Wallets__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + Wallets__Handle *argp1 ; GoUint32 result; - arg1 = (coin__UxArray *)jarg1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_coin_UxArray_HasDupes(arg1,arg2); + argp1 = (Wallets__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallets__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint32 *)jarg2; + result = (GoUint32)SKY_api_Handle_WalletsResponseGetCount(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Sort(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletsResponseGetAt(void * jarg1, unsigned int jarg2, void * jarg3) { unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; + Wallets__Handle arg1 ; + GoUint32 arg2 ; + WalletResponse__Handle *arg3 = (WalletResponse__Handle *) 0 ; + Wallets__Handle *argp1 ; GoUint32 result; - arg1 = (coin__UxArray *)jarg1; - result = (GoUint32)SKY_coin_UxArray_Sort(arg1); + argp1 = (Wallets__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallets__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint32)jarg2; + arg3 = (WalletResponse__Handle *)jarg3; + result = (GoUint32)SKY_api_Handle_WalletsResponseGetAt(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Len(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletFolderAddress(void * jarg1, void * jarg2) { unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoInt *arg2 = (GoInt *) 0 ; + Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Handle *argp1 ; GoUint32 result; - arg1 = (coin__UxArray *)jarg1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_coin_UxArray_Len(arg1,arg2); + argp1 = (Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_api_Handle_GetWalletFolderAddress(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Less(void * jarg1, long long jarg2, long long jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletSeed(void * jarg1, void * jarg2) { unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoInt arg2 ; - GoInt arg3 ; - GoUint8 *arg4 = (GoUint8 *) 0 ; + Wallet__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Wallet__Handle *argp1 ; GoUint32 result; - arg1 = (coin__UxArray *)jarg1; - arg2 = (GoInt)jarg2; - arg3 = (GoInt)jarg3; - arg4 = (GoUint8 *)jarg4; - result = (GoUint32)SKY_coin_UxArray_Less(arg1,arg2,arg3,arg4); + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_api_Handle_GetWalletSeed(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Swap(void * jarg1, long long jarg2, long long jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletLastSeed(void * jarg1, void * jarg2) { unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoInt arg2 ; - GoInt arg3 ; + Wallet__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Wallet__Handle *argp1 ; GoUint32 result; - arg1 = (coin__UxArray *)jarg1; - arg2 = (GoInt)jarg2; - arg3 = (GoInt)jarg3; - result = (GoUint32)SKY_coin_UxArray_Swap(arg1,arg2,arg3); + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_api_Handle_GetWalletLastSeed(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Coins(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetBuildInfoData(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; + BuildInfo_Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString_ *arg3 = (GoString_ *) 0 ; + GoString_ *arg4 = (GoString_ *) 0 ; + BuildInfo_Handle *argp1 ; GoUint32 result; - arg1 = (coin__UxArray *)jarg1; - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_coin_UxArray_Coins(arg1,arg2); + argp1 = (BuildInfo_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null BuildInfo_Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + arg3 = (GoString_ *)jarg3; + arg4 = (GoString_ *)jarg4; + result = (GoUint32)SKY_api_Handle_GetBuildInfoData(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_CoinHours(void * jarg1, unsigned long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_ripemd160_New(void * jarg1) { unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoUint64 arg2 ; - GoUint64 *arg3 = (GoUint64 *) 0 ; + Hash_Handle *arg1 = (Hash_Handle *) 0 ; GoUint32 result; - arg1 = (coin__UxArray *)jarg1; - arg2 = (GoUint64)jarg2; - arg3 = (GoUint64 *)jarg3; - result = (GoUint32)SKY_coin_UxArray_CoinHours(arg1,arg2,arg3); + arg1 = (Hash_Handle *)jarg1; + result = (GoUint32)SKY_ripemd160_New(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Sub(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_ripemd160_Write(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; + Hash_Handle arg1 ; + GoSlice arg2 ; + GoInt *arg3 = (GoInt *) 0 ; + Hash_Handle *argp1 ; + GoSlice *argp2 ; GoUint32 result; - arg1 = (coin__UxArray *)jarg1; - arg2 = (coin__UxArray *)jarg2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_coin_UxArray_Sub(arg1,arg2,arg3); + argp1 = (Hash_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Hash_Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (GoInt *)jarg3; + result = (GoUint32)SKY_ripemd160_Write(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Add(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_ripemd160_Sum(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; + Hash_Handle arg1 ; + GoSlice arg2 ; coin__UxArray *arg3 = (coin__UxArray *) 0 ; + Hash_Handle *argp1 ; + GoSlice *argp2 ; GoUint32 result; - arg1 = (coin__UxArray *)jarg1; - arg2 = (coin__UxArray *)jarg2; + argp1 = (Hash_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Hash_Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_coin_UxArray_Add(arg1,arg2,arg3); + result = (GoUint32)SKY_ripemd160_Sum(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewAddressUxOuts(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_Create(void * jarg1) { unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - AddressUxOuts_Handle *arg2 = (AddressUxOuts_Handle *) 0 ; + Number_Handle *arg1 = (Number_Handle *) 0 ; GoUint32 result; - arg1 = (coin__UxArray *)jarg1; - arg2 = (AddressUxOuts_Handle *)jarg2; - result = (GoUint32)SKY_coin_NewAddressUxOuts(arg1,arg2); + arg1 = (Number_Handle *)jarg1; + result = (GoUint32)SKY_secp256k1go_Number_Create(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Keys(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_Print(void * jarg1, void * jarg2) { unsigned int jresult ; - AddressUxOuts_Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - AddressUxOuts_Handle *argp1 ; + Number_Handle arg1 ; + GoString arg2 ; + Number_Handle *argp1 ; + GoString *argp2 ; GoUint32 result; - argp1 = (AddressUxOuts_Handle *)jarg1; + argp1 = (Number_Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); return 0; } arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_coin_AddressUxOuts_Keys(arg1,arg2); + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_secp256k1go_Number_Print(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Flatten(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_SetHex(void * jarg1, void * jarg2) { unsigned int jresult ; - AddressUxOuts_Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - AddressUxOuts_Handle *argp1 ; + Number_Handle arg1 ; + GoString arg2 ; + Number_Handle *argp1 ; + GoString *argp2 ; GoUint32 result; - argp1 = (AddressUxOuts_Handle *)jarg1; + argp1 = (Number_Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); return 0; } arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_coin_AddressUxOuts_Flatten(arg1,arg2); + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_secp256k1go_Number_SetHex(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Sub(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_IsOdd(void * jarg1, void * jarg2) { unsigned int jresult ; - AddressUxOuts_Handle arg1 ; - AddressUxOuts_Handle arg2 ; - AddressUxOuts_Handle *arg3 = (AddressUxOuts_Handle *) 0 ; - AddressUxOuts_Handle *argp1 ; - AddressUxOuts_Handle *argp2 ; + Number_Handle arg1 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + Number_Handle *argp1 ; GoUint32 result; - argp1 = (AddressUxOuts_Handle *)jarg1; + argp1 = (Number_Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); return 0; } arg1 = *argp1; - argp2 = (AddressUxOuts_Handle *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); - return 0; - } - arg2 = *argp2; - arg3 = (AddressUxOuts_Handle *)jarg3; - result = (GoUint32)SKY_coin_AddressUxOuts_Sub(arg1,arg2,arg3); + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_secp256k1go_Number_IsOdd(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Add(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_IsEqual(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - AddressUxOuts_Handle arg1 ; - AddressUxOuts_Handle arg2 ; - AddressUxOuts_Handle *arg3 = (AddressUxOuts_Handle *) 0 ; - AddressUxOuts_Handle *argp1 ; - AddressUxOuts_Handle *argp2 ; + Number_Handle arg1 ; + Number_Handle arg2 ; + GoUint8 *arg3 = (GoUint8 *) 0 ; + Number_Handle *argp1 ; + Number_Handle *argp2 ; GoUint32 result; - argp1 = (AddressUxOuts_Handle *)jarg1; + argp1 = (Number_Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); return 0; } arg1 = *argp1; - argp2 = (AddressUxOuts_Handle *)jarg2; + argp2 = (Number_Handle *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); return 0; } arg2 = *argp2; - arg3 = (AddressUxOuts_Handle *)jarg3; - result = (GoUint32)SKY_coin_AddressUxOuts_Add(arg1,arg2,arg3); + arg3 = (GoUint8 *)jarg3; + result = (GoUint32)SKY_secp256k1go_Number_IsEqual(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Get(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_Hash(void * jarg1, void * jarg2) { unsigned int jresult ; - AddressUxOuts_Handle arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - AddressUxOuts_Handle *argp1 ; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; GoUint32 result; - argp1 = (AddressUxOuts_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher__Address *)jarg2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_coin_AddressUxOuts_Get(arg1,arg2,arg3); + arg1 = (coin__UxOut *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_UxOut_Hash(arg1,(GoUint8_ (*)[32])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_HasKey(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_SnapshotHash(void * jarg1, void * jarg2) { unsigned int jresult ; - AddressUxOuts_Handle arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - GoUint8 *arg3 = (GoUint8 *) 0 ; - AddressUxOuts_Handle *argp1 ; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; GoUint32 result; - argp1 = (AddressUxOuts_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher__Address *)jarg2; - arg3 = (GoUint8 *)jarg3; - result = (GoUint32)SKY_coin_AddressUxOuts_HasKey(arg1,arg2,arg3); + arg1 = (coin__UxOut *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_UxOut_SnapshotHash(arg1,(GoUint8_ (*)[32])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_GetOutputLength(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxBody_Hash(void * jarg1, void * jarg2) { unsigned int jresult ; - AddressUxOuts_Handle arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - GoInt *arg3 = (GoInt *) 0 ; - AddressUxOuts_Handle *argp1 ; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; GoUint32 result; - argp1 = (AddressUxOuts_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher__Address *)jarg2; - arg3 = (GoInt *)jarg3; - result = (GoUint32)SKY_coin_AddressUxOuts_GetOutputLength(arg1,arg2,arg3); + arg1 = (coin__UxBody *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_UxBody_Hash(arg1,(GoUint8_ (*)[32])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Length(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_CoinHours(void * jarg1, unsigned long long jarg2, void * jarg3) { unsigned int jresult ; - AddressUxOuts_Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - AddressUxOuts_Handle *argp1 ; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + GoUint64 arg2 ; + GoUint64 *arg3 = (GoUint64 *) 0 ; GoUint32 result; - argp1 = (AddressUxOuts_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_coin_AddressUxOuts_Length(arg1,arg2); + arg1 = (coin__UxOut *)jarg1; + arg2 = (GoUint64)jarg2; + arg3 = (GoUint64 *)jarg3; + result = (GoUint32)SKY_coin_UxOut_CoinHours(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Set(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Hashes(void * jarg1, void * jarg2) { unsigned int jresult ; - AddressUxOuts_Handle arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - AddressUxOuts_Handle *argp1 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoUint32 result; - argp1 = (AddressUxOuts_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher__Address *)jarg2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_coin_AddressUxOuts_Set(arg1,arg2,arg3); + arg1 = (coin__UxArray *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_coin_UxArray_Hashes(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_scrypt_Key(void * jarg1, void * jarg2, long long jarg3, long long jarg4, long long jarg5, long long jarg6, void * jarg7) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_HasDupes(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - GoInt arg3 ; - GoInt arg4 ; - GoInt arg5 ; - GoInt arg6 ; - coin__UxArray *arg7 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (GoInt)jarg3; - arg4 = (GoInt)jarg4; - arg5 = (GoInt)jarg5; - arg6 = (GoInt)jarg6; - arg7 = (coin__UxArray *)jarg7; - result = (GoUint32)SKY_scrypt_Key(arg1,arg2,arg3,arg4,arg5,arg6,arg7); + arg1 = (coin__UxArray *)jarg1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_coin_UxArray_HasDupes(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewError(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Sort(void * jarg1) { unsigned int jresult ; - GoInterface arg1 ; - GoInterface *argp1 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; GoUint32 result; - argp1 = (GoInterface *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInterface", 0); - return 0; - } - arg1 = *argp1; - result = (GoUint32)SKY_wallet_NewError(arg1); + arg1 = (coin__UxArray *)jarg1; + result = (GoUint32)SKY_coin_UxArray_Sort(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewWallet(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Len(void * jarg1, void * jarg2) { unsigned int jresult ; - GoString arg1 ; - Options__Handle arg2 ; - Wallet__Handle *arg3 = (Wallet__Handle *) 0 ; - GoString *argp1 ; - Options__Handle *argp2 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoInt *arg2 = (GoInt *) 0 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - argp2 = (Options__Handle *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Options__Handle", 0); - return 0; - } - arg2 = *argp2; - arg3 = (Wallet__Handle *)jarg3; - result = (GoUint32)SKY_wallet_NewWallet(arg1,arg2,arg3); + arg1 = (coin__UxArray *)jarg1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_coin_UxArray_Len(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Lock(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Less(void * jarg1, long long jarg2, long long jarg3, void * jarg4) { unsigned int jresult ; - Wallet__Handle arg1 ; - GoSlice arg2 ; - GoString arg3 ; - Wallet__Handle *argp1 ; - GoSlice *argp2 ; - GoString *argp3 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoInt arg2 ; + GoInt arg3 ; + GoUint8 *arg4 = (GoUint8 *) 0 ; GoUint32 result; - argp1 = (Wallet__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; - result = (GoUint32)SKY_wallet_Wallet_Lock(arg1,arg2,arg3); + arg1 = (coin__UxArray *)jarg1; + arg2 = (GoInt)jarg2; + arg3 = (GoInt)jarg3; + arg4 = (GoUint8 *)jarg4; + result = (GoUint32)SKY_coin_UxArray_Less(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Unlock(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Swap(void * jarg1, long long jarg2, long long jarg3) { unsigned int jresult ; - Wallet__Handle arg1 ; - GoSlice arg2 ; - Wallet__Handle *arg3 = (Wallet__Handle *) 0 ; - Wallet__Handle *argp1 ; - GoSlice *argp2 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoInt arg2 ; + GoInt arg3 ; GoUint32 result; - argp1 = (Wallet__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (Wallet__Handle *)jarg3; - result = (GoUint32)SKY_wallet_Wallet_Unlock(arg1,arg2,arg3); + arg1 = (coin__UxArray *)jarg1; + arg2 = (GoInt)jarg2; + arg3 = (GoInt)jarg3; + result = (GoUint32)SKY_coin_UxArray_Swap(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Load(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Coins(void * jarg1, void * jarg2) { unsigned int jresult ; - GoString arg1 ; - Wallet__Handle *arg2 = (Wallet__Handle *) 0 ; - GoString *argp1 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (Wallet__Handle *)jarg2; - result = (GoUint32)SKY_wallet_Load(arg1,arg2); + arg1 = (coin__UxArray *)jarg1; + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_coin_UxArray_Coins(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Save(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_CoinHours(void * jarg1, unsigned long long jarg2, void * jarg3) { unsigned int jresult ; - Wallet__Handle arg1 ; - GoString arg2 ; - Wallet__Handle *argp1 ; - GoString *argp2 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoUint64 arg2 ; + GoUint64 *arg3 = (GoUint64 *) 0 ; GoUint32 result; - argp1 = (Wallet__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_wallet_Wallet_Save(arg1,arg2); + arg1 = (coin__UxArray *)jarg1; + arg2 = (GoUint64)jarg2; + arg3 = (GoUint64 *)jarg3; + result = (GoUint32)SKY_coin_UxArray_CoinHours(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Validate(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Sub(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Wallet__Handle arg1 ; - Wallet__Handle *argp1 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; GoUint32 result; - argp1 = (Wallet__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); - return 0; - } - arg1 = *argp1; - result = (GoUint32)SKY_wallet_Wallet_Validate(arg1); + arg1 = (coin__UxArray *)jarg1; + arg2 = (coin__UxArray *)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_coin_UxArray_Sub(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Type(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Add(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Wallet__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - Wallet__Handle *argp1 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; GoUint32 result; - argp1 = (Wallet__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_wallet_Wallet_Type(arg1,arg2); + arg1 = (coin__UxArray *)jarg1; + arg2 = (coin__UxArray *)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_coin_UxArray_Add(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Version(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewAddressUxOuts(void * jarg1, void * jarg2) { unsigned int jresult ; - Wallet__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - Wallet__Handle *argp1 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + AddressUxOuts_Handle *arg2 = (AddressUxOuts_Handle *) 0 ; GoUint32 result; - argp1 = (Wallet__Handle *)jarg1; + arg1 = (coin__UxArray *)jarg1; + arg2 = (AddressUxOuts_Handle *)jarg2; + result = (GoUint32)SKY_coin_NewAddressUxOuts(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Keys(void * jarg1, void * jarg2) { + unsigned int jresult ; + AddressUxOuts_Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + AddressUxOuts_Handle *argp1 ; + GoUint32 result; + + argp1 = (AddressUxOuts_Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); return 0; } arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_wallet_Wallet_Version(arg1,arg2); + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_coin_AddressUxOuts_Keys(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Filename(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Flatten(void * jarg1, void * jarg2) { unsigned int jresult ; - Wallet__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - Wallet__Handle *argp1 ; + AddressUxOuts_Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + AddressUxOuts_Handle *argp1 ; GoUint32 result; - argp1 = (Wallet__Handle *)jarg1; + argp1 = (AddressUxOuts_Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); return 0; } arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_wallet_Wallet_Filename(arg1,arg2); + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_coin_AddressUxOuts_Flatten(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Label(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Sub(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Wallet__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - Wallet__Handle *argp1 ; + AddressUxOuts_Handle arg1 ; + AddressUxOuts_Handle arg2 ; + AddressUxOuts_Handle *arg3 = (AddressUxOuts_Handle *) 0 ; + AddressUxOuts_Handle *argp1 ; + AddressUxOuts_Handle *argp2 ; GoUint32 result; - argp1 = (Wallet__Handle *)jarg1; + argp1 = (AddressUxOuts_Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); return 0; } arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_wallet_Wallet_Label(arg1,arg2); + argp2 = (AddressUxOuts_Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + return 0; + } + arg2 = *argp2; + arg3 = (AddressUxOuts_Handle *)jarg3; + result = (GoUint32)SKY_coin_AddressUxOuts_Sub(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_IsEncrypted(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Add(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Wallet__Handle arg1 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - Wallet__Handle *argp1 ; + AddressUxOuts_Handle arg1 ; + AddressUxOuts_Handle arg2 ; + AddressUxOuts_Handle *arg3 = (AddressUxOuts_Handle *) 0 ; + AddressUxOuts_Handle *argp1 ; + AddressUxOuts_Handle *argp2 ; GoUint32 result; - argp1 = (Wallet__Handle *)jarg1; + argp1 = (AddressUxOuts_Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); return 0; } arg1 = *argp1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_wallet_Wallet_IsEncrypted(arg1,arg2); + argp2 = (AddressUxOuts_Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + return 0; + } + arg2 = *argp2; + arg3 = (AddressUxOuts_Handle *)jarg3; + result = (GoUint32)SKY_coin_AddressUxOuts_Add(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_GenerateAddresses(void * jarg1, unsigned long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Get(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Wallet__Handle arg1 ; - GoUint64 arg2 ; + AddressUxOuts_Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; coin__UxArray *arg3 = (coin__UxArray *) 0 ; - Wallet__Handle *argp1 ; + AddressUxOuts_Handle *argp1 ; GoUint32 result; - argp1 = (Wallet__Handle *)jarg1; + argp1 = (AddressUxOuts_Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); return 0; } arg1 = *argp1; - arg2 = (GoUint64)jarg2; + arg2 = (cipher__Address *)jarg2; arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_wallet_Wallet_GenerateAddresses(arg1,arg2,arg3); + result = (GoUint32)SKY_coin_AddressUxOuts_Get(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_GetAddresses(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_HasKey(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Wallet__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - Wallet__Handle *argp1 ; + AddressUxOuts_Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoUint8 *arg3 = (GoUint8 *) 0 ; + AddressUxOuts_Handle *argp1 ; GoUint32 result; - argp1 = (Wallet__Handle *)jarg1; + argp1 = (AddressUxOuts_Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); return 0; } arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_wallet_Wallet_GetAddresses(arg1,arg2); + arg2 = (cipher__Address *)jarg2; + arg3 = (GoUint8 *)jarg3; + result = (GoUint32)SKY_coin_AddressUxOuts_HasKey(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_GetEntry(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_GetOutputLength(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Wallet__Handle arg1 ; + AddressUxOuts_Handle arg1 ; cipher__Address *arg2 = (cipher__Address *) 0 ; - wallet__Entry *arg3 = (wallet__Entry *) 0 ; - GoUint8 *arg4 = (GoUint8 *) 0 ; - Wallet__Handle *argp1 ; + GoInt *arg3 = (GoInt *) 0 ; + AddressUxOuts_Handle *argp1 ; GoUint32 result; - argp1 = (Wallet__Handle *)jarg1; + argp1 = (AddressUxOuts_Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); return 0; } arg1 = *argp1; arg2 = (cipher__Address *)jarg2; - arg3 = (wallet__Entry *)jarg3; - arg4 = (GoUint8 *)jarg4; - result = (GoUint32)SKY_wallet_Wallet_GetEntry(arg1,arg2,arg3,arg4); + arg3 = (GoInt *)jarg3; + result = (GoUint32)SKY_coin_AddressUxOuts_GetOutputLength(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_AddEntry(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Length(void * jarg1, void * jarg2) { unsigned int jresult ; - Wallet__Handle arg1 ; - wallet__Entry *arg2 = (wallet__Entry *) 0 ; - Wallet__Handle *argp1 ; + AddressUxOuts_Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + AddressUxOuts_Handle *argp1 ; GoUint32 result; - argp1 = (Wallet__Handle *)jarg1; + argp1 = (AddressUxOuts_Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); return 0; } arg1 = *argp1; - arg2 = (wallet__Entry *)jarg2; - result = (GoUint32)SKY_wallet_Wallet_AddEntry(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_DistributeSpendHours(unsigned long long jarg1, unsigned long long jarg2, unsigned char jarg3, void * jarg4, void * jarg5, void * jarg6) { - unsigned int jresult ; - GoUint64 arg1 ; - GoUint64 arg2 ; - GoUint8 arg3 ; - GoUint64 *arg4 = (GoUint64 *) 0 ; - coin__UxArray *arg5 = (coin__UxArray *) 0 ; - GoUint64 *arg6 = (GoUint64 *) 0 ; - GoUint32 result; - - arg1 = (GoUint64)jarg1; - arg2 = (GoUint64)jarg2; - arg3 = (GoUint8)jarg3; - arg4 = (GoUint64 *)jarg4; - arg5 = (coin__UxArray *)jarg5; - arg6 = (GoUint64 *)jarg6; - result = (GoUint32)SKY_wallet_DistributeSpendHours(arg1,arg2,arg3,arg4,arg5,arg6); + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_coin_AddressUxOuts_Length(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_DistributeCoinHoursProportional(void * jarg1, unsigned long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Set(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - GoSlice arg1 ; - GoUint64 arg2 ; + AddressUxOuts_Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; + AddressUxOuts_Handle *argp1 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (AddressUxOuts_Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); return 0; } arg1 = *argp1; - arg2 = (GoUint64)jarg2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_wallet_DistributeCoinHoursProportional(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewUxBalances(unsigned long long jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - GoUint64 arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoUint32 result; - - arg1 = (GoUint64)jarg1; - arg2 = (coin__UxArray *)jarg2; + arg2 = (cipher__Address *)jarg2; arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_wallet_NewUxBalances(arg1,arg2,arg3); + result = (GoUint32)SKY_coin_AddressUxOuts_Set(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewUxBalance(unsigned long long jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_ScryptChacha20poly1305_Encrypt(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; - GoUint64 arg1 ; - coin__UxOut *arg2 = (coin__UxOut *) 0 ; - wallet__UxBalance *arg3 = (wallet__UxBalance *) 0 ; + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + GoSlice arg2 ; + GoSlice arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + GoSlice *argp2 ; + GoSlice *argp3 ; GoUint32 result; - arg1 = (GoUint64)jarg1; - arg2 = (coin__UxOut *)jarg2; - arg3 = (wallet__UxBalance *)jarg3; - result = (GoUint32)SKY_wallet_NewUxBalance(arg1,arg2,arg3); + arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoSlice *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg3 = *argp3; + arg4 = (coin__UxArray *)jarg4; + result = (GoUint32)SKY_encrypt_ScryptChacha20poly1305_Encrypt(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ChooseSpendsMinimizeUxOuts(void * jarg1, unsigned long long jarg2, unsigned long long jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_ScryptChacha20poly1305_Decrypt(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; - GoSlice arg1 ; - GoUint64 arg2 ; - GoUint64 arg3 ; + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + GoSlice arg2 ; + GoSlice arg3 ; coin__UxArray *arg4 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; + GoSlice *argp2 ; + GoSlice *argp3 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { + arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } - arg1 = *argp1; - arg2 = (GoUint64)jarg2; - arg3 = (GoUint64)jarg3; + arg2 = *argp2; + argp3 = (GoSlice *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg3 = *argp3; arg4 = (coin__UxArray *)jarg4; - result = (GoUint32)SKY_wallet_ChooseSpendsMinimizeUxOuts(arg1,arg2,arg3,arg4); + result = (GoUint32)SKY_encrypt_ScryptChacha20poly1305_Decrypt(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ChooseSpendsMaximizeUxOuts(void * jarg1, unsigned long long jarg2, unsigned long long jarg3, void * jarg4) { - unsigned int jresult ; - GoSlice arg1 ; - GoUint64 arg2 ; - GoUint64 arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateOptionsHandle(void * jarg1, void * jarg2, void * jarg3, unsigned char jarg4, void * jarg5, void * jarg6, unsigned long long jarg7, void * jarg8) { + GoString arg1 ; + GoString arg2 ; + GoString arg3 ; + GoUint8 arg4 ; + GoString arg5 ; + GoString arg6 ; + GoUint64 arg7 ; + Options__Handle *arg8 = (Options__Handle *) 0 ; + GoString *argp1 ; + GoString *argp2 ; + GoString *argp3 ; + GoString *argp5 ; + GoString *argp6 ; - argp1 = (GoSlice *)jarg1; + argp1 = (GoString *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return ; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return ; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return ; + } + arg3 = *argp3; + arg4 = (GoUint8)jarg4; + argp5 = (GoString *)jarg5; + if (!argp5) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return ; + } + arg5 = *argp5; + argp6 = (GoString *)jarg6; + if (!argp6) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return ; } - arg1 = *argp1; - arg2 = (GoUint64)jarg2; - arg3 = (GoUint64)jarg3; - arg4 = (coin__UxArray *)jarg4; - result = (GoUint32)SKY_wallet_ChooseSpendsMaximizeUxOuts(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; + arg6 = *argp6; + arg7 = (GoUint64)jarg7; + arg8 = (Options__Handle *)jarg8; + SKY_wallet_CreateOptionsHandle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); } @@ -9369,190 +9285,188 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_AddPrivateKeyToFile(v } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_App_Run(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_GenerateKeyPair(void * jarg1, void * jarg2) { unsigned int jresult ; - App__Handle arg1 ; - GoString arg2 ; - App__Handle *argp1 ; - GoString *argp2 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoUint32 result; - argp1 = (App__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null App__Handle", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_cli_App_Run(arg1,arg2); + arg1 = (coin__UxArray *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1_GenerateKeyPair(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_GetCoin(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_PubkeyFromSeckey(void * jarg1, void * jarg2) { unsigned int jresult ; - Config__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - Config__Handle *argp1 ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; GoUint32 result; - argp1 = (Config__Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Config__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cli_Config_GetCoin(arg1,arg2); + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1_PubkeyFromSeckey(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_GetRPCAddress(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_UncompressPubkey(void * jarg1, void * jarg2) { unsigned int jresult ; - Config__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - Config__Handle *argp1 ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; GoUint32 result; - argp1 = (Config__Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Config__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cli_Config_GetRPCAddress(arg1,arg2); + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1_UncompressPubkey(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_RPCClientFromApp(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_UncompressedPubkeyFromSeckey(void * jarg1, void * jarg2) { unsigned int jresult ; - App__Handle arg1 ; - WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; - App__Handle *argp1 ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; GoUint32 result; - argp1 = (App__Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null App__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - arg2 = (WebRpcClient__Handle *)jarg2; - result = (GoUint32)SKY_cli_RPCClientFromApp(arg1,arg2); + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1_UncompressedPubkeyFromSeckey(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Getenv(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_Secp256k1Hash(void * jarg1, void * jarg2) { unsigned int jresult ; - GoString arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString *argp1 ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cli_Getenv(arg1,arg2); + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1_Secp256k1Hash(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Setenv(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_GenerateDeterministicKeyPair(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - GoString arg1 ; - GoString arg2 ; - GoString *argp1 ; - GoString *argp2 ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_cli_Setenv(arg1,arg2); + arg2 = (coin__UxArray *)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_secp256k1_GenerateDeterministicKeyPair(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_NewClient(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_DeterministicKeyPairIterator(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; - GoString arg1 ; - WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; - GoString *argp1 ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - arg2 = (WebRpcClient__Handle *)jarg2; - result = (GoUint32)SKY_webrpc_NewClient(arg1,arg2); + arg2 = (coin__UxArray *)jarg2; + arg3 = (coin__UxArray *)jarg3; + arg4 = (coin__UxArray *)jarg4; + result = (GoUint32)SKY_secp256k1_DeterministicKeyPairIterator(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_CSRF(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_Sign(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - WebRpcClient__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - WebRpcClient__Handle *argp1 ; + GoSlice arg1 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; GoUint32 result; - argp1 = (WebRpcClient__Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_webrpc_Client_CSRF(arg1,arg2); + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_secp256k1_Sign(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetUnspentOutputs(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_SignDeterministic(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; - WebRpcClient__Handle arg1 ; + GoSlice arg1 ; GoSlice arg2 ; - OutputsResult_Handle *arg3 = (OutputsResult_Handle *) 0 ; - WebRpcClient__Handle *argp1 ; + GoSlice arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; GoSlice *argp2 ; + GoSlice *argp3 ; GoUint32 result; - argp1 = (WebRpcClient__Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; @@ -9562,129 +9476,129 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetUnspentO return 0; } arg2 = *argp2; - arg3 = (OutputsResult_Handle *)jarg3; - result = (GoUint32)SKY_webrpc_Client_GetUnspentOutputs(arg1,arg2,arg3); + argp3 = (GoSlice *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg3 = *argp3; + arg4 = (coin__UxArray *)jarg4; + result = (GoUint32)SKY_secp256k1_SignDeterministic(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_InjectTransactionString(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_VerifySeckey(void * jarg1, void * jarg2) { unsigned int jresult ; - WebRpcClient__Handle arg1 ; - GoString arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - WebRpcClient__Handle *argp1 ; - GoString *argp2 ; + GoSlice arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoSlice *argp1 ; GoUint32 result; - argp1 = (WebRpcClient__Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - arg3 = (GoString_ *)jarg3; - result = (GoUint32)SKY_webrpc_Client_InjectTransactionString(arg1,arg2,arg3); + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_secp256k1_VerifySeckey(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_InjectTransaction(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_VerifyPubkey(void * jarg1, void * jarg2) { unsigned int jresult ; - WebRpcClient__Handle arg1 ; - Transaction__Handle arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - WebRpcClient__Handle *argp1 ; - Transaction__Handle *argp2 ; + GoSlice arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoSlice *argp1 ; GoUint32 result; - argp1 = (WebRpcClient__Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - argp2 = (Transaction__Handle *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; - } - arg2 = *argp2; - arg3 = (GoString_ *)jarg3; - result = (GoUint32)SKY_webrpc_Client_InjectTransaction(arg1,arg2,arg3); + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_secp256k1_VerifyPubkey(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetStatus(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_VerifySignatureValidity(void * jarg1, void * jarg2) { unsigned int jresult ; - WebRpcClient__Handle arg1 ; - StatusResult_Handle *arg2 = (StatusResult_Handle *) 0 ; - WebRpcClient__Handle *argp1 ; + GoSlice arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoSlice *argp1 ; GoUint32 result; - argp1 = (WebRpcClient__Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - arg2 = (StatusResult_Handle *)jarg2; - result = (GoUint32)SKY_webrpc_Client_GetStatus(arg1,arg2); + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_secp256k1_VerifySignatureValidity(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetTransactionByID(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_VerifySignature(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; - WebRpcClient__Handle arg1 ; - GoString arg2 ; - TransactionResult_Handle *arg3 = (TransactionResult_Handle *) 0 ; - WebRpcClient__Handle *argp1 ; - GoString *argp2 ; + GoSlice arg1 ; + GoSlice arg2 ; + GoSlice arg3 ; + GoInt *arg4 = (GoInt *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; + GoSlice *argp3 ; GoUint32 result; - argp1 = (WebRpcClient__Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - argp2 = (GoString *)jarg2; + argp2 = (GoSlice *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg2 = *argp2; - arg3 = (TransactionResult_Handle *)jarg3; - result = (GoUint32)SKY_webrpc_Client_GetTransactionByID(arg1,arg2,arg3); + argp3 = (GoSlice *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg3 = *argp3; + arg4 = (GoInt *)jarg4; + result = (GoUint32)SKY_secp256k1_VerifySignature(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetAddressUxOuts(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_SignatureErrorString(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; - WebRpcClient__Handle arg1 ; + GoSlice arg1 ; GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - WebRpcClient__Handle *argp1 ; + GoSlice arg3 ; + GoString_ *arg4 = (GoString_ *) 0 ; + GoSlice *argp1 ; GoSlice *argp2 ; + GoSlice *argp3 ; GoUint32 result; - argp1 = (WebRpcClient__Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; @@ -9694,49 +9608,59 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetAddressU return 0; } arg2 = *argp2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_webrpc_Client_GetAddressUxOuts(arg1,arg2,arg3); + argp3 = (GoSlice *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg3 = *argp3; + arg4 = (GoString_ *)jarg4; + result = (GoUint32)SKY_secp256k1_SignatureErrorString(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetBlocks(void * jarg1, unsigned long long jarg2, unsigned long long jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_RecoverPubkey(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - WebRpcClient__Handle arg1 ; - GoUint64 arg2 ; - GoUint64 arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - WebRpcClient__Handle *argp1 ; + GoSlice arg1 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; GoUint32 result; - argp1 = (WebRpcClient__Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - arg2 = (GoUint64)jarg2; - arg3 = (GoUint64)jarg3; - arg4 = (coin__UxArray *)jarg4; - result = (GoUint32)SKY_webrpc_Client_GetBlocks(arg1,arg2,arg3,arg4); + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_secp256k1_RecoverPubkey(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetBlocksBySeq(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_ECDH(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - WebRpcClient__Handle arg1 ; + GoSlice arg1 ; GoSlice arg2 ; coin__UxArray *arg3 = (coin__UxArray *) 0 ; - WebRpcClient__Handle *argp1 ; + GoSlice *argp1 ; GoSlice *argp2 ; GoUint32 result; - argp1 = (WebRpcClient__Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; @@ -9747,39 +9671,52 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetBlocksBy } arg2 = *argp2; arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_webrpc_Client_GetBlocksBySeq(arg1,arg2,arg3); + result = (GoUint32)SKY_secp256k1_ECDH(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetLastBlocks(void * jarg1, unsigned long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_apputil_CatchInterruptPanic() { unsigned int jresult ; - WebRpcClient__Handle arg1 ; - GoUint64 arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - WebRpcClient__Handle *argp1 ; GoUint32 result; - argp1 = (WebRpcClient__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoUint64)jarg2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_webrpc_Client_GetLastBlocks(arg1,arg2,arg3); + result = (GoUint32)SKY_apputil_CatchInterruptPanic(); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_droplet_FromString(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_apputil_CatchDebug() { + unsigned int jresult ; + GoUint32 result; + + result = (GoUint32)SKY_apputil_CatchDebug(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_apputil_PrintProgramStatus() { + unsigned int jresult ; + GoUint32 result; + + result = (GoUint32)SKY_apputil_PrintProgramStatus(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cert_CreateCertIfNotExists(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; GoString arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; + GoString arg2 ; + GoString arg3 ; + GoString arg4 ; GoString *argp1 ; + GoString *argp2 ; + GoString *argp3 ; + GoString *argp4 ; GoUint32 result; argp1 = (GoString *)jarg1; @@ -9788,329 +9725,498 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_droplet_FromString(void * return 0; } arg1 = *argp1; - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_droplet_FromString(arg1,arg2); + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + argp4 = (GoString *)jarg4; + if (!argp4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg4 = *argp4; + result = (GoUint32)SKY_cert_CreateCertIfNotExists(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_droplet_ToString(unsigned long long jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_VerifyTransactionFee(void * jarg1, unsigned long long jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoUint64 arg2 ; + Transaction__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64)jarg2; + result = (GoUint32)SKY_fee_VerifyTransactionFee(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_VerifyTransactionFeeForHours(unsigned long long jarg1, unsigned long long jarg2) { unsigned int jresult ; GoUint64 arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; + GoUint64 arg2 ; GoUint32 result; arg1 = (GoUint64)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_droplet_ToString(arg1,arg2); + arg2 = (GoUint64)jarg2; + result = (GoUint32)SKY_fee_VerifyTransactionFeeForHours(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_NewDefaultMnemomic(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_RequiredFee(unsigned long long jarg1, void * jarg2) { unsigned int jresult ; - GoString_ *arg1 = (GoString_ *) 0 ; + GoUint64 arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; GoUint32 result; - arg1 = (GoString_ *)jarg1; - result = (GoUint32)SKY_bip39_NewDefaultMnemomic(arg1); + arg1 = (GoUint64)jarg1; + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_fee_RequiredFee(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_NewEntropy(long long jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_RemainingHours(unsigned long long jarg1, void * jarg2) { unsigned int jresult ; - GoInt arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint64 arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; GoUint32 result; - arg1 = (GoInt)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_bip39_NewEntropy(arg1,arg2); + arg1 = (GoUint64)jarg1; + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_fee_RemainingHours(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_NewMnemonic(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_TransactionFee(void * jarg1, unsigned long long jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; - GoSlice arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoSlice *argp1 ; + Transaction__Handle arg1 ; + GoUint64 arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoUint64 *arg4 = (GoUint64 *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (Transaction__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_bip39_NewMnemonic(arg1,arg2); + arg2 = (GoUint64)jarg2; + arg3 = (coin__UxArray *)jarg3; + arg4 = (GoUint64 *)jarg4; + result = (GoUint32)SKY_fee_TransactionFee(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_MnemonicToByteArray(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_LoadConfig(void * jarg1) { unsigned int jresult ; - GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoString *argp1 ; + Config__Handle *arg1 = (Config__Handle *) 0 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_bip39_MnemonicToByteArray(arg1,arg2); + arg1 = (Config__Handle *)jarg1; + result = (GoUint32)SKY_cli_LoadConfig(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_IsMnemonicValid(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_FullWalletPath(void * jarg1, void * jarg2) { unsigned int jresult ; - GoString arg1 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoString *argp1 ; + Config__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Config__Handle *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; + argp1 = (Config__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Config__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_bip39_IsMnemonicValid(arg1,arg2); + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cli_Config_FullWalletPath(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Print(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_FullDBPath(void * jarg1, void * jarg2) { unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - GoString arg2 ; - GoString *argp2 ; + Config__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Config__Handle *argp1 ; GoUint32 result; - arg1 = (secp256k1go__XYZ *)jarg1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + argp1 = (Config__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Config__Handle", 0); return 0; } - arg2 = *argp2; - result = (GoUint32)SKY_secp256k1go_XYZ_Print(arg1,arg2); + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cli_Config_FullDBPath(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_SetXY(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_NewApp(void * jarg1, void * jarg2) { unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; + Config__Handle arg1 ; + App__Handle *arg2 = (App__Handle *) 0 ; + Config__Handle *argp1 ; GoUint32 result; - arg1 = (secp256k1go__XYZ *)jarg1; - arg2 = (secp256k1go__XY *)jarg2; - result = (GoUint32)SKY_secp256k1go_XYZ_SetXY(arg1,arg2); + argp1 = (Config__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Config__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (App__Handle *)jarg2; + result = (GoUint32)SKY_cli_NewApp(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_IsInfinity(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_RPCClientFromContext(void * jarg1, void * jarg2) { unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; + Context__Handle arg1 ; + WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; + Context__Handle *argp1 ; GoUint32 result; - arg1 = (secp256k1go__XYZ *)jarg1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_secp256k1go_XYZ_IsInfinity(arg1,arg2); + argp1 = (Context__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Context__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (WebRpcClient__Handle *)jarg2; + result = (GoUint32)SKY_cli_RPCClientFromContext(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_IsValid(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_ConfigFromContext(void * jarg1, void * jarg2) { unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; + Context__Handle arg1 ; + Config__Handle *arg2 = (Config__Handle *) 0 ; + Context__Handle *argp1 ; GoUint32 result; - arg1 = (secp256k1go__XYZ *)jarg1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_secp256k1go_XYZ_IsValid(arg1,arg2); + argp1 = (Context__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Context__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Config__Handle *)jarg2; + result = (GoUint32)SKY_cli_ConfigFromContext(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Normalize(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_PasswordFromBytes_Password(void * jarg1, void * jarg2) { unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoUint32 result; - arg1 = (secp256k1go__XYZ *)jarg1; - result = (GoUint32)SKY_secp256k1go_XYZ_Normalize(arg1); + arg1 = (coin__UxArray *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_cli_PasswordFromBytes_Password(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Equals(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_PasswordFromTerm_Password(void * jarg1) { unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; - GoUint8 *arg3 = (GoUint8 *) 0 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; GoUint32 result; - arg1 = (secp256k1go__XYZ *)jarg1; - arg2 = (secp256k1go__XYZ *)jarg2; - arg3 = (GoUint8 *)jarg3; - result = (GoUint32)SKY_secp256k1go_XYZ_Equals(arg1,arg2,arg3); + arg1 = (coin__UxArray *)jarg1; + result = (GoUint32)SKY_cli_PasswordFromTerm_Password(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_ECmult(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromWallet(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) { unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; - Number_Handle arg3 ; - Number_Handle arg4 ; - Number_Handle *argp3 ; - Number_Handle *argp4 ; + WebRpcClient__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + GoSlice arg4 ; + PasswordReader__Handle arg5 ; + Transaction__Handle *arg6 = (Transaction__Handle *) 0 ; + WebRpcClient__Handle *argp1 ; + GoString *argp2 ; + GoString *argp3 ; + GoSlice *argp4 ; + PasswordReader__Handle *argp5 ; GoUint32 result; - arg1 = (secp256k1go__XYZ *)jarg1; - arg2 = (secp256k1go__XYZ *)jarg2; - argp3 = (Number_Handle *)jarg3; + argp1 = (WebRpcClient__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg3 = *argp3; - argp4 = (Number_Handle *)jarg4; + argp4 = (GoSlice *)jarg4; if (!argp4) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg4 = *argp4; - result = (GoUint32)SKY_secp256k1go_XYZ_ECmult(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Neg(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; - GoUint32 result; - - arg1 = (secp256k1go__XYZ *)jarg1; - arg2 = (secp256k1go__XYZ *)jarg2; - result = (GoUint32)SKY_secp256k1go_XYZ_Neg(arg1,arg2); + argp5 = (PasswordReader__Handle *)jarg5; + if (!argp5) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null PasswordReader__Handle", 0); + return 0; + } + arg5 = *argp5; + arg6 = (Transaction__Handle *)jarg6; + result = (GoUint32)SKY_cli_CreateRawTxFromWallet(arg1,arg2,arg3,arg4,arg5,arg6); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Double(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromAddress(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6, void * jarg7) { unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; + WebRpcClient__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + GoString arg4 ; + GoSlice arg5 ; + PasswordReader__Handle arg6 ; + Transaction__Handle *arg7 = (Transaction__Handle *) 0 ; + WebRpcClient__Handle *argp1 ; + GoString *argp2 ; + GoString *argp3 ; + GoString *argp4 ; + GoSlice *argp5 ; + PasswordReader__Handle *argp6 ; GoUint32 result; - arg1 = (secp256k1go__XYZ *)jarg1; - arg2 = (secp256k1go__XYZ *)jarg2; - result = (GoUint32)SKY_secp256k1go_XYZ_Double(arg1,arg2); + argp1 = (WebRpcClient__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + argp4 = (GoString *)jarg4; + if (!argp4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg4 = *argp4; + argp5 = (GoSlice *)jarg5; + if (!argp5) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg5 = *argp5; + argp6 = (PasswordReader__Handle *)jarg6; + if (!argp6) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null PasswordReader__Handle", 0); + return 0; + } + arg6 = *argp6; + arg7 = (Transaction__Handle *)jarg7; + result = (GoUint32)SKY_cli_CreateRawTxFromAddress(arg1,arg2,arg3,arg4,arg5,arg6,arg7); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_AddXY(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTx(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6, void * jarg7) { unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XY *arg3 = (secp256k1go__XY *) 0 ; + WebRpcClient__Handle arg1 ; + Wallet__Handle arg2 ; + GoSlice arg3 ; + GoString arg4 ; + GoSlice arg5 ; + GoSlice arg6 ; + Transaction__Handle *arg7 = (Transaction__Handle *) 0 ; + WebRpcClient__Handle *argp1 ; + Wallet__Handle *argp2 ; + GoSlice *argp3 ; + GoString *argp4 ; + GoSlice *argp5 ; + GoSlice *argp6 ; GoUint32 result; - arg1 = (secp256k1go__XYZ *)jarg1; - arg2 = (secp256k1go__XYZ *)jarg2; - arg3 = (secp256k1go__XY *)jarg3; - result = (GoUint32)SKY_secp256k1go_XYZ_AddXY(arg1,arg2,arg3); + argp1 = (WebRpcClient__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (Wallet__Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoSlice *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg3 = *argp3; + argp4 = (GoString *)jarg4; + if (!argp4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg4 = *argp4; + argp5 = (GoSlice *)jarg5; + if (!argp5) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg5 = *argp5; + argp6 = (GoSlice *)jarg6; + if (!argp6) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg6 = *argp6; + arg7 = (Transaction__Handle *)jarg7; + result = (GoUint32)SKY_cli_CreateRawTx(arg1,arg2,arg3,arg4,arg5,arg6,arg7); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Add(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_NewTransaction(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XYZ *arg3 = (secp256k1go__XYZ *) 0 ; + GoSlice arg1 ; + GoSlice arg2 ; + GoSlice arg3 ; + Transaction__Handle *arg4 = (Transaction__Handle *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; + GoSlice *argp3 ; GoUint32 result; - arg1 = (secp256k1go__XYZ *)jarg1; - arg2 = (secp256k1go__XYZ *)jarg2; - arg3 = (secp256k1go__XYZ *)jarg3; - result = (GoUint32)SKY_secp256k1go_XYZ_Add(arg1,arg2,arg3); + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoSlice *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg3 = *argp3; + arg4 = (Transaction__Handle *)jarg4; + result = (GoUint32)SKY_cli_NewTransaction(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_ECmultGen(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_InitDataDir(void * jarg1, void * jarg2) { unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - Number_Handle arg2 ; - Number_Handle *argp2 ; + GoString arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString *argp1 ; GoUint32 result; - arg1 = (secp256k1go__XYZ *)jarg1; - argp2 = (Number_Handle *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } - arg2 = *argp2; - result = (GoUint32)SKY_secp256k1go_ECmultGen(arg1,arg2); + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_file_InitDataDir(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewNotesFilename(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_UserHome(void * jarg1) { unsigned int jresult ; GoString_ *arg1 = (GoString_ *) 0 ; GoUint32 result; arg1 = (GoString_ *)jarg1; - result = (GoUint32)SKY_wallet_NewNotesFilename(arg1); + result = (GoUint32)SKY_file_UserHome(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_LoadNotes(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_ResolveResourceDirectory(void * jarg1, void * jarg2) { unsigned int jresult ; GoString arg1 ; - WalletNotes_Handle *arg2 = (WalletNotes_Handle *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoString *argp1 ; GoUint32 result; @@ -10120,18 +10226,22 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_LoadNotes(void * j return 0; } arg1 = *argp1; - arg2 = (WalletNotes_Handle *)jarg2; - result = (GoUint32)SKY_wallet_LoadNotes(arg1,arg2); + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_file_ResolveResourceDirectory(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_LoadReadableNotes(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_DetermineResourcePath(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; GoString arg1 ; - WalletReadableNotes_Handle *arg2 = (WalletReadableNotes_Handle *) 0 ; + GoString arg2 ; + GoString arg3 ; + GoString_ *arg4 = (GoString_ *) 0 ; GoString *argp1 ; + GoString *argp2 ; + GoString *argp3 ; GoUint32 result; argp1 = (GoString *)jarg1; @@ -10140,24 +10250,37 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_LoadReadableNotes( return 0; } arg1 = *argp1; - arg2 = (WalletReadableNotes_Handle *)jarg2; - result = (GoUint32)SKY_wallet_LoadReadableNotes(arg1,arg2); + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + arg4 = (GoString_ *)jarg4; + result = (GoUint32)SKY_file_DetermineResourcePath(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableNotes_Load(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetWalletOutputsFromFile(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - WalletReadableNotes_Handle arg1 ; + WebRpcClient__Handle arg1 ; GoString arg2 ; - WalletReadableNotes_Handle *argp1 ; + OutputsResult_Handle *arg3 = (OutputsResult_Handle *) 0 ; + WebRpcClient__Handle *argp1 ; GoString *argp2 ; GoUint32 result; - argp1 = (WalletReadableNotes_Handle *)jarg1; + argp1 = (WebRpcClient__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletReadableNotes_Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); return 0; } arg1 = *argp1; @@ -10167,434 +10290,363 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableNotes_Load return 0; } arg2 = *argp2; - result = (GoUint32)SKY_wallet_ReadableNotes_Load(arg1,arg2); + arg3 = (OutputsResult_Handle *)jarg3; + result = (GoUint32)SKY_cli_GetWalletOutputsFromFile(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableNotes_ToNotes(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetWalletOutputs(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - WalletReadableNotes_Handle arg1 ; - WalletNotes_Handle *arg2 = (WalletNotes_Handle *) 0 ; - WalletReadableNotes_Handle *argp1 ; + WebRpcClient__Handle arg1 ; + Wallet__Handle *arg2 = (Wallet__Handle *) 0 ; + OutputsResult_Handle *arg3 = (OutputsResult_Handle *) 0 ; + WebRpcClient__Handle *argp1 ; GoUint32 result; - argp1 = (WalletReadableNotes_Handle *)jarg1; + argp1 = (WebRpcClient__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletReadableNotes_Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (WalletNotes_Handle *)jarg2; - result = (GoUint32)SKY_wallet_ReadableNotes_ToNotes(arg1,arg2); + arg2 = (Wallet__Handle *)jarg2; + arg3 = (OutputsResult_Handle *)jarg3; + result = (GoUint32)SKY_cli_GetWalletOutputs(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableNotes_Save(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_testutil_MakeAddress(void * jarg1) { unsigned int jresult ; - WalletReadableNotes_Handle arg1 ; - GoString arg2 ; - WalletReadableNotes_Handle *argp1 ; - GoString *argp2 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; GoUint32 result; - argp1 = (WalletReadableNotes_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletReadableNotes_Handle", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_wallet_ReadableNotes_Save(arg1,arg2); + arg1 = (cipher__Address *)jarg1; + result = (GoUint32)SKY_testutil_MakeAddress(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewReadableNote(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_String(void * jarg1, void * jarg2) { unsigned int jresult ; - wallet__Note *arg1 = (wallet__Note *) 0 ; - wallet__ReadableNote *arg2 = (wallet__ReadableNote *) 0 ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; - arg1 = (wallet__Note *)jarg1; - arg2 = (wallet__ReadableNote *)jarg2; - result = (GoUint32)SKY_wallet_NewReadableNote(arg1,arg2); + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_secp256k1go_Field_String(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewReadableNotesFromNotes(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Print(void * jarg1, void * jarg2) { unsigned int jresult ; - WalletNotes_Handle arg1 ; - WalletReadableNotes_Handle *arg2 = (WalletReadableNotes_Handle *) 0 ; - WalletNotes_Handle *argp1 ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoString arg2 ; + GoString *argp2 ; GoUint32 result; - argp1 = (WalletNotes_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletNotes_Handle", 0); + arg1 = (secp256k1go__Field *)jarg1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } - arg1 = *argp1; - arg2 = (WalletReadableNotes_Handle *)jarg2; - result = (GoUint32)SKY_wallet_NewReadableNotesFromNotes(arg1,arg2); + arg2 = *argp2; + result = (GoUint32)SKY_secp256k1go_Field_Print(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Notes_Save(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetB32(void * jarg1, void * jarg2) { unsigned int jresult ; - WalletNotes_Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - WalletNotes_Handle *argp1 ; - GoString *argp2 ; - GoString *argp3 ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoSlice arg2 ; + GoSlice *argp2 ; GoUint32 result; - argp1 = (WalletNotes_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletNotes_Handle", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoString *)jarg2; + arg1 = (secp256k1go__Field *)jarg1; + argp2 = (GoSlice *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + result = (GoUint32)SKY_secp256k1go_Field_SetB32(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetBytes(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoSlice arg2 ; + GoSlice *argp2 ; + GoUint32 result; + + arg1 = (secp256k1go__Field *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } - arg3 = *argp3; - result = (GoUint32)SKY_wallet_Notes_Save(arg1,arg2,arg3); + arg2 = *argp2; + result = (GoUint32)SKY_secp256k1go_Field_SetBytes(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Notes_SaveNote(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetHex(void * jarg1, void * jarg2) { unsigned int jresult ; - WalletNotes_Handle arg1 ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; GoString arg2 ; - wallet__Note *arg3 = (wallet__Note *) 0 ; - WalletNotes_Handle *argp1 ; GoString *argp2 ; GoUint32 result; - argp1 = (WalletNotes_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletNotes_Handle", 0); - return 0; - } - arg1 = *argp1; + arg1 = (secp256k1go__Field *)jarg1; argp2 = (GoString *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg2 = *argp2; - arg3 = (wallet__Note *)jarg3; - result = (GoUint32)SKY_wallet_Notes_SaveNote(arg1,arg2,arg3); + result = (GoUint32)SKY_secp256k1go_Field_SetHex(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Notes_ToReadable(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_IsOdd(void * jarg1, void * jarg2) { unsigned int jresult ; - WalletNotes_Handle arg1 ; - WalletReadableNotes_Handle *arg2 = (WalletReadableNotes_Handle *) 0 ; - WalletNotes_Handle *argp1 ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; GoUint32 result; - argp1 = (WalletNotes_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletNotes_Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (WalletReadableNotes_Handle *)jarg2; - result = (GoUint32)SKY_wallet_Notes_ToReadable(arg1,arg2); + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_secp256k1go_Field_IsOdd(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NotesFileExist(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_IsZero(void * jarg1, void * jarg2) { unsigned int jresult ; - GoString arg1 ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; GoUint8 *arg2 = (GoUint8 *) 0 ; - GoString *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; + arg1 = (secp256k1go__Field *)jarg1; arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_wallet_NotesFileExist(arg1,arg2); + result = (GoUint32)SKY_secp256k1go_Field_IsZero(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateNoteFileIfNotExist(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetInt(void * jarg1, unsigned int jarg2) { unsigned int jresult ; - GoString arg1 ; - GoString *argp1 ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoUint32 arg2 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - result = (GoUint32)SKY_wallet_CreateNoteFileIfNotExist(arg1); + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (GoUint32)jarg2; + result = (GoUint32)SKY_secp256k1go_Field_SetInt(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_ScryptChacha20poly1305_Encrypt(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Normalize(void * jarg1) { unsigned int jresult ; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - GoSlice arg2 ; - GoSlice arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - GoSlice *argp2 ; - GoSlice *argp3 ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; GoUint32 result; - arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoSlice *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg3 = *argp3; - arg4 = (coin__UxArray *)jarg4; - result = (GoUint32)SKY_encrypt_ScryptChacha20poly1305_Encrypt(arg1,arg2,arg3,arg4); + arg1 = (secp256k1go__Field *)jarg1; + result = (GoUint32)SKY_secp256k1go_Field_Normalize(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_ScryptChacha20poly1305_Decrypt(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_GetB32(void * jarg1, void * jarg2) { unsigned int jresult ; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; GoSlice arg2 ; - GoSlice arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; GoSlice *argp2 ; - GoSlice *argp3 ; GoUint32 result; - arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; + arg1 = (secp256k1go__Field *)jarg1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg2 = *argp2; - argp3 = (GoSlice *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg3 = *argp3; - arg4 = (coin__UxArray *)jarg4; - result = (GoUint32)SKY_encrypt_ScryptChacha20poly1305_Decrypt(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddUint64(unsigned long long jarg1, unsigned long long jarg2, void * jarg3) { - unsigned int jresult ; - GoUint64 arg1 ; - GoUint64 arg2 ; - GoUint64 *arg3 = (GoUint64 *) 0 ; - GoUint32 result; - - arg1 = (GoUint64)jarg1; - arg2 = (GoUint64)jarg2; - arg3 = (GoUint64 *)jarg3; - result = (GoUint32)SKY_coin_AddUint64(arg1,arg2,arg3); + result = (GoUint32)SKY_secp256k1go_Field_GetB32(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Uint64ToInt64(unsigned long long jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Equals(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - GoUint64 arg1 ; - GoInt64 *arg2 = (GoInt64 *) 0 ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + GoUint8 *arg3 = (GoUint8 *) 0 ; GoUint32 result; - arg1 = (GoUint64)jarg1; - arg2 = (GoInt64 *)jarg2; - result = (GoUint32)SKY_coin_Uint64ToInt64(arg1,arg2); + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + arg3 = (GoUint8 *)jarg3; + result = (GoUint32)SKY_secp256k1go_Field_Equals(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Int64ToUint64(long long jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetAdd(void * jarg1, void * jarg2) { unsigned int jresult ; - GoInt64 arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; GoUint32 result; - arg1 = (GoInt64)jarg1; - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_coin_Int64ToUint64(arg1,arg2); + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + result = (GoUint32)SKY_secp256k1go_Field_SetAdd(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewBalance(unsigned long long jarg1, unsigned long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_MulInt(void * jarg1, unsigned int jarg2) { unsigned int jresult ; - GoUint64 arg1 ; - GoUint64 arg2 ; - wallet__Balance *arg3 = (wallet__Balance *) 0 ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoUint32 arg2 ; GoUint32 result; - arg1 = (GoUint64)jarg1; - arg2 = (GoUint64)jarg2; - arg3 = (wallet__Balance *)jarg3; - result = (GoUint32)SKY_wallet_NewBalance(arg1,arg2,arg3); + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (GoUint32)jarg2; + result = (GoUint32)SKY_secp256k1go_Field_MulInt(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewBalanceFromUxOut(unsigned long long jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Negate(void * jarg1, void * jarg2, unsigned int jarg3) { unsigned int jresult ; - GoUint64 arg1 ; - coin__UxOut *arg2 = (coin__UxOut *) 0 ; - wallet__Balance *arg3 = (wallet__Balance *) 0 ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + GoUint32 arg3 ; GoUint32 result; - arg1 = (GoUint64)jarg1; - arg2 = (coin__UxOut *)jarg2; - arg3 = (wallet__Balance *)jarg3; - result = (GoUint32)SKY_wallet_NewBalanceFromUxOut(arg1,arg2,arg3); + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + arg3 = (GoUint32)jarg3; + result = (GoUint32)SKY_secp256k1go_Field_Negate(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Balance_Add(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Inv(void * jarg1, void * jarg2) { unsigned int jresult ; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - wallet__Balance *arg2 = (wallet__Balance *) 0 ; - wallet__Balance *arg3 = (wallet__Balance *) 0 ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; GoUint32 result; - arg1 = (wallet__Balance *)jarg1; - arg2 = (wallet__Balance *)jarg2; - arg3 = (wallet__Balance *)jarg3; - result = (GoUint32)SKY_wallet_Balance_Add(arg1,arg2,arg3); + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + result = (GoUint32)SKY_secp256k1go_Field_Inv(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Balance_Sub(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Sqrt(void * jarg1, void * jarg2) { unsigned int jresult ; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - wallet__Balance *arg2 = (wallet__Balance *) 0 ; - wallet__Balance *arg3 = (wallet__Balance *) 0 ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; GoUint32 result; - arg1 = (wallet__Balance *)jarg1; - arg2 = (wallet__Balance *)jarg2; - arg3 = (wallet__Balance *)jarg3; - result = (GoUint32)SKY_wallet_Balance_Sub(arg1,arg2,arg3); + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + result = (GoUint32)SKY_secp256k1go_Field_Sqrt(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Balance_Equals(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_InvVar(void * jarg1, void * jarg2) { unsigned int jresult ; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - wallet__Balance *arg2 = (wallet__Balance *) 0 ; - GoUint8 *arg3 = (GoUint8 *) 0 ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; GoUint32 result; - arg1 = (wallet__Balance *)jarg1; - arg2 = (wallet__Balance *)jarg2; - arg3 = (GoUint8 *)jarg3; - result = (GoUint32)SKY_wallet_Balance_Equals(arg1,arg2,arg3); + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + result = (GoUint32)SKY_secp256k1go_Field_InvVar(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Balance_IsZero(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Mul(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + secp256k1go__Field *arg3 = (secp256k1go__Field *) 0 ; GoUint32 result; - arg1 = (wallet__Balance *)jarg1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_wallet_Balance_IsZero(arg1,arg2); + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + arg3 = (secp256k1go__Field *)jarg3; + result = (GoUint32)SKY_secp256k1go_Field_Mul(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_ripemd160_New(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Sqr(void * jarg1, void * jarg2) { unsigned int jresult ; - Hash_Handle *arg1 = (Hash_Handle *) 0 ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; GoUint32 result; - arg1 = (Hash_Handle *)jarg1; - result = (GoUint32)SKY_ripemd160_New(arg1); + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + result = (GoUint32)SKY_secp256k1go_Field_Sqr(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_ripemd160_Write(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_scrypt_Key(void * jarg1, void * jarg2, long long jarg3, long long jarg4, long long jarg5, long long jarg6, void * jarg7) { unsigned int jresult ; - Hash_Handle arg1 ; + GoSlice arg1 ; GoSlice arg2 ; - GoInt *arg3 = (GoInt *) 0 ; - Hash_Handle *argp1 ; + GoInt arg3 ; + GoInt arg4 ; + GoInt arg5 ; + GoInt arg6 ; + coin__UxArray *arg7 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; GoSlice *argp2 ; GoUint32 result; - argp1 = (Hash_Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Hash_Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; @@ -10604,1292 +10656,1240 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_ripemd160_Write(void * ja return 0; } arg2 = *argp2; - arg3 = (GoInt *)jarg3; - result = (GoUint32)SKY_ripemd160_Write(arg1,arg2,arg3); + arg3 = (GoInt)jarg3; + arg4 = (GoInt)jarg4; + arg5 = (GoInt)jarg5; + arg6 = (GoInt)jarg6; + arg7 = (coin__UxArray *)jarg7; + result = (GoUint32)SKY_scrypt_Key(arg1,arg2,arg3,arg4,arg5,arg6,arg7); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_ripemd160_Sum(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Ripemd160_Set(void * jarg1, void * jarg2) { unsigned int jresult ; - Hash_Handle arg1 ; + cipher__Ripemd160 *arg1 = (cipher__Ripemd160 *) 0 ; GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - Hash_Handle *argp1 ; GoSlice *argp2 ; GoUint32 result; - argp1 = (Hash_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Hash_Handle", 0); - return 0; - } - arg1 = *argp1; + arg1 = (cipher__Ripemd160 *)jarg1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg2 = *argp2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_ripemd160_Sum(arg1,arg2,arg3); + result = (GoUint32)SKY_cipher_Ripemd160_Set((GoUint8_ (*)[20])arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock(void * jarg1, unsigned long long jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_HashRipemd160(void * jarg1, void * jarg2) { unsigned int jresult ; - Block__Handle arg1 ; - GoUint64 arg2 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - Transactions__Handle arg4 ; - FeeCalculator *arg5 = (FeeCalculator *) 0 ; - Block__Handle *arg6 = (Block__Handle *) 0 ; - Block__Handle *argp1 ; - Transactions__Handle *argp4 ; + GoSlice arg1 ; + cipher__Ripemd160 *arg2 = (cipher__Ripemd160 *) 0 ; + GoSlice *argp1 ; GoUint32 result; - argp1 = (Block__Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - arg2 = (GoUint64)jarg2; - arg3 = (cipher__SHA256 *)jarg3; - argp4 = (Transactions__Handle *)jarg4; - if (!argp4) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); - return 0; - } - arg4 = *argp4; - arg5 = (FeeCalculator *)jarg5; - arg6 = (Block__Handle *)jarg6; - result = (GoUint32)SKY_coin_NewBlock(arg1,arg2,(GoUint8_ (*)[32])arg3,arg4,arg5,arg6); + arg2 = (cipher__Ripemd160 *)jarg2; + result = (GoUint32)SKY_cipher_HashRipemd160(arg1,(GoUint8_ (*)[20])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SignedBlock_VerifySignature(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Set(void * jarg1, void * jarg2) { unsigned int jresult ; - coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; + GoSlice arg2 ; + GoSlice *argp2 ; GoUint32 result; - arg1 = (coin__SignedBlock *)jarg1; - arg2 = (cipher__PubKey *)jarg2; - result = (GoUint32)SKY_coin_SignedBlock_VerifySignature(arg1,(GoUint8_ (*)[33])arg2); + arg1 = (cipher__SHA256 *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_cipher_SHA256_Set((GoUint8_ (*)[32])arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewGenesisBlock(void * jarg1, unsigned long long jarg2, unsigned long long jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Hex(void * jarg1, void * jarg2) { unsigned int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - GoUint64 arg2 ; - GoUint64 arg3 ; - Block__Handle *arg4 = (Block__Handle *) 0 ; + cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; - arg1 = (cipher__Address *)jarg1; - arg2 = (GoUint64)jarg2; - arg3 = (GoUint64)jarg3; - arg4 = (Block__Handle *)jarg4; - result = (GoUint32)SKY_coin_NewGenesisBlock(arg1,arg2,arg3,arg4); + arg1 = (cipher__SHA256 *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cipher_SHA256_Hex((GoUint8_ (*)[32])arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_HashHeader(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Xor(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Block__Handle arg1 ; + cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - Block__Handle *argp1 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; GoUint32 result; - argp1 = (Block__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); - return 0; - } - arg1 = *argp1; + arg1 = (cipher__SHA256 *)jarg1; arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_coin_Block_HashHeader(arg1,(GoUint8_ (*)[32])arg2); + arg3 = (cipher__SHA256 *)jarg3; + result = (GoUint32)SKY_cipher_SHA256_Xor((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[32])arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_PreHashHeader(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SumSHA256(void * jarg1, void * jarg2) { unsigned int jresult ; - Block__Handle arg1 ; + GoSlice arg1 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - Block__Handle *argp1 ; + GoSlice *argp1 ; GoUint32 result; - argp1 = (Block__Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_coin_Block_PreHashHeader(arg1,(GoUint8_ (*)[32])arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_Time(void * jarg1, void * jarg2) { - unsigned int jresult ; - Block__Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - Block__Handle *argp1 ; - GoUint32 result; - - argp1 = (Block__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_coin_Block_Time(arg1,arg2); + result = (GoUint32)SKY_cipher_SumSHA256(arg1,(GoUint8_ (*)[32])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_Seq(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256FromHex(void * jarg1, void * jarg2) { unsigned int jresult ; - Block__Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - Block__Handle *argp1 ; + GoString arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoString *argp1 ; GoUint32 result; - argp1 = (Block__Handle *)jarg1; + argp1 = (GoString *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg1 = *argp1; - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_coin_Block_Seq(arg1,arg2); + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_cipher_SHA256FromHex(arg1,(GoUint8_ (*)[32])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_HashBody(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DoubleSHA256(void * jarg1, void * jarg2) { unsigned int jresult ; - Block__Handle arg1 ; + GoSlice arg1 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - Block__Handle *argp1 ; + GoSlice *argp1 ; GoUint32 result; - argp1 = (Block__Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_coin_Block_HashBody(arg1,(GoUint8_ (*)[32])arg2); + result = (GoUint32)SKY_cipher_DoubleSHA256(arg1,(GoUint8_ (*)[32])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_Size(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddSHA256(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Block__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - Block__Handle *argp1 ; + cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; GoUint32 result; - argp1 = (Block__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_coin_Block_Size(arg1,arg2); + arg1 = (cipher__SHA256 *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + arg3 = (cipher__SHA256 *)jarg3; + result = (GoUint32)SKY_cipher_AddSHA256((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[32])arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_String(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Merkle(void * jarg1, void * jarg2) { unsigned int jresult ; - Block__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - Block__Handle *argp1 ; + GoSlice *arg1 = (GoSlice *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; GoUint32 result; - argp1 = (Block__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_coin_Block_String(arg1,arg2); + arg1 = (GoSlice *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_cipher_Merkle(arg1,(GoUint8_ (*)[32])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_GetTransaction(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_MustSumSHA256(void * jarg1, long long jarg2, void * jarg3) { unsigned int jresult ; - Block__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - Transaction__Handle *arg3 = (Transaction__Handle *) 0 ; - GoUint8 *arg4 = (GoUint8 *) 0 ; - Block__Handle *argp1 ; + GoSlice arg1 ; + GoInt arg2 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + GoSlice *argp1 ; GoUint32 result; - argp1 = (Block__Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - arg2 = (cipher__SHA256 *)jarg2; - arg3 = (Transaction__Handle *)jarg3; - arg4 = (GoUint8 *)jarg4; - result = (GoUint32)SKY_coin_Block_GetTransaction(arg1,(GoUint8_ (*)[32])arg2,arg3,arg4); + arg2 = (GoInt)jarg2; + arg3 = (cipher__SHA256 *)jarg3; + result = (GoUint32)SKY_cipher_MustSumSHA256(arg1,arg2,(GoUint8_ (*)[32])arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlockHeader(void * jarg1, void * jarg2, unsigned long long jarg3, unsigned long long jarg4, void * jarg5, void * jarg6) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Null(void * jarg1, void * jarg2) { unsigned int jresult ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoUint64 arg3 ; - GoUint64 arg4 ; - BlockBody__Handle arg5 ; - coin__BlockHeader *arg6 = (coin__BlockHeader *) 0 ; - BlockBody__Handle *argp5 ; + cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; GoUint32 result; - arg1 = (coin__BlockHeader *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - arg3 = (GoUint64)jarg3; - arg4 = (GoUint64)jarg4; - argp5 = (BlockBody__Handle *)jarg5; - if (!argp5) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null BlockBody__Handle", 0); - return 0; - } - arg5 = *argp5; - arg6 = (coin__BlockHeader *)jarg6; - result = (GoUint32)SKY_coin_NewBlockHeader(arg1,(GoUint8_ (*)[32])arg2,arg3,arg4,arg5,arg6); + arg1 = (cipher__SHA256 *)jarg1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_cipher_SHA256_Null((GoUint8_ (*)[32])arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockHeader_Hash(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Create_Transaction(void * jarg1) { unsigned int jresult ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; GoUint32 result; - arg1 = (coin__BlockHeader *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_coin_BlockHeader_Hash(arg1,(GoUint8_ (*)[32])arg2); + arg1 = (Transaction__Handle *)jarg1; + result = (GoUint32)SKY_coin_Create_Transaction(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockHeader_Bytes(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Copy(void * jarg1, void * jarg2) { unsigned int jresult ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; + Transaction__Handle arg1 ; + Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - arg1 = (coin__BlockHeader *)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_coin_BlockHeader_Bytes(arg1,arg2); + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Transaction__Handle *)jarg2; + result = (GoUint32)SKY_coin_Transaction_Copy(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockHeader_String(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetTransactionObject(void * jarg1, void * jarg2) { unsigned int jresult ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; + Transaction__Handle arg1 ; + coin__Transaction **arg2 = (coin__Transaction **) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - arg1 = (coin__BlockHeader *)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_coin_BlockHeader_String(arg1,arg2); + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__Transaction **)jarg2; + result = (GoUint32)SKY_coin_GetTransactionObject(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Hash(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_ResetInputs(void * jarg1, long long jarg2) { unsigned int jresult ; - BlockBody__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - BlockBody__Handle *argp1 ; + Transaction__Handle arg1 ; + GoInt arg2 ; + Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (BlockBody__Handle *)jarg1; + argp1 = (Transaction__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null BlockBody__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_coin_BlockBody_Hash(arg1,(GoUint8_ (*)[32])arg2); + arg2 = (GoInt)jarg2; + result = (GoUint32)SKY_coin_Transaction_ResetInputs(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Size(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetInputsCount(void * jarg1, void * jarg2) { unsigned int jresult ; - BlockBody__Handle *arg1 = (BlockBody__Handle *) 0 ; + Transaction__Handle arg1 ; GoInt *arg2 = (GoInt *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - arg1 = (BlockBody__Handle *)jarg1; + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_coin_BlockBody_Size(arg1,arg2); + result = (GoUint32)SKY_coin_Transaction_GetInputsCount(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Bytes(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetInputAt(void * jarg1, long long jarg2, void * jarg3) { unsigned int jresult ; - BlockBody__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - BlockBody__Handle *argp1 ; + Transaction__Handle arg1 ; + GoInt arg2 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (BlockBody__Handle *)jarg1; + argp1 = (Transaction__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null BlockBody__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_coin_BlockBody_Bytes(arg1,arg2); + arg2 = (GoInt)jarg2; + arg3 = (cipher__SHA256 *)jarg3; + result = (GoUint32)SKY_coin_Transaction_GetInputAt(arg1,arg2,(GoUint8_ (*)[32])arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_CreateUnspents(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SetInputAt(void * jarg1, long long jarg2, void * jarg3) { unsigned int jresult ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - Transaction__Handle arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - Transaction__Handle *argp2 ; + Transaction__Handle arg1 ; + GoInt arg2 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - arg1 = (coin__BlockHeader *)jarg1; - argp2 = (Transaction__Handle *)jarg2; - if (!argp2) { + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); return 0; } - arg2 = *argp2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_coin_CreateUnspents(arg1,arg2,arg3); + arg1 = *argp1; + arg2 = (GoInt)jarg2; + arg3 = (cipher__SHA256 *)jarg3; + result = (GoUint32)SKY_coin_Transaction_SetInputAt(arg1,arg2,(GoUint8_ (*)[32])arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_CreateUnspent(void * jarg1, void * jarg2, long long jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetOutputsCount(void * jarg1, void * jarg2) { unsigned int jresult ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - Transaction__Handle arg2 ; - GoInt arg3 ; - coin__UxOut *arg4 = (coin__UxOut *) 0 ; - Transaction__Handle *argp2 ; + Transaction__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - arg1 = (coin__BlockHeader *)jarg1; - argp2 = (Transaction__Handle *)jarg2; - if (!argp2) { + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); return 0; } - arg2 = *argp2; - arg3 = (GoInt)jarg3; - arg4 = (coin__UxOut *)jarg4; - result = (GoUint32)SKY_coin_CreateUnspent(arg1,arg2,arg3,arg4); + arg1 = *argp1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_coin_Transaction_GetOutputsCount(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetBlockObject(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetOutputAt(void * jarg1, long long jarg2, void * jarg3) { unsigned int jresult ; - Block__Handle arg1 ; - coin__Block **arg2 = (coin__Block **) 0 ; - Block__Handle *argp1 ; + Transaction__Handle arg1 ; + GoInt arg2 ; + coin__TransactionOutput *arg3 = (coin__TransactionOutput *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Block__Handle *)jarg1; + argp1 = (Transaction__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (coin__Block **)jarg2; - result = (GoUint32)SKY_coin_GetBlockObject(arg1,arg2); + arg2 = (GoInt)jarg2; + arg3 = (coin__TransactionOutput *)jarg3; + result = (GoUint32)SKY_coin_Transaction_GetOutputAt(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetBlockBody(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SetOutputAt(void * jarg1, long long jarg2, void * jarg3) { unsigned int jresult ; - Block__Handle arg1 ; - BlockBody__Handle *arg2 = (BlockBody__Handle *) 0 ; - Block__Handle *argp1 ; + Transaction__Handle arg1 ; + GoInt arg2 ; + coin__TransactionOutput *arg3 = (coin__TransactionOutput *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Block__Handle *)jarg1; + argp1 = (Transaction__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (BlockBody__Handle *)jarg2; - result = (GoUint32)SKY_coin_GetBlockBody(arg1,arg2); + arg2 = (GoInt)jarg2; + arg3 = (coin__TransactionOutput *)jarg3; + result = (GoUint32)SKY_coin_Transaction_SetOutputAt(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewEmptyBlock(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetSignaturesCount(void * jarg1, void * jarg2) { unsigned int jresult ; - Transactions__Handle arg1 ; - Block__Handle *arg2 = (Block__Handle *) 0 ; - Transactions__Handle *argp1 ; + Transaction__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Transactions__Handle *)jarg1; + argp1 = (Transaction__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (Block__Handle *)jarg2; - result = (GoUint32)SKY_coin_NewEmptyBlock(arg1,arg2); + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_coin_Transaction_GetSignaturesCount(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateAddresses(void * jarg1, void * jarg2, long long jarg3, unsigned char jarg4, void * jarg5) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetSignatureAt(void * jarg1, long long jarg2, void * jarg3) { unsigned int jresult ; - GoString arg1 ; - GoString arg2 ; - GoInt arg3 ; - GoUint8 arg4 ; - ReadableWallet__Handle *arg5 = (ReadableWallet__Handle *) 0 ; - GoString *argp1 ; - GoString *argp2 ; + Transaction__Handle arg1 ; + GoInt arg2 ; + cipher__Sig *arg3 = (cipher__Sig *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; + argp1 = (Transaction__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); return 0; } arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - arg3 = (GoInt)jarg3; - arg4 = (GoUint8)jarg4; - arg5 = (ReadableWallet__Handle *)jarg5; - result = (GoUint32)SKY_wallet_CreateAddresses(arg1,arg2,arg3,arg4,arg5); + arg2 = (GoInt)jarg2; + arg3 = (cipher__Sig *)jarg3; + result = (GoUint32)SKY_coin_Transaction_GetSignatureAt(arg1,arg2,(GoUint8_ (*)[65])arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_GetSkycoinWalletEntry(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SetSignatureAt(void * jarg1, long long jarg2, void * jarg3) { unsigned int jresult ; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - ReadableEntry__Handle *arg3 = (ReadableEntry__Handle *) 0 ; + Transaction__Handle arg1 ; + GoInt arg2 ; + cipher__Sig *arg3 = (cipher__Sig *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - arg1 = (cipher__PubKey *)jarg1; - arg2 = (cipher__SecKey *)jarg2; - arg3 = (ReadableEntry__Handle *)jarg3; - result = (GoUint32)SKY_wallet_GetSkycoinWalletEntry((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2,arg3); + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt)jarg2; + arg3 = (cipher__Sig *)jarg3; + result = (GoUint32)SKY_coin_Transaction_SetSignatureAt(arg1,arg2,(GoUint8_ (*)[65])arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_GetBitcoinWalletEntry(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_PushSignature(void * jarg1, void * jarg2) { unsigned int jresult ; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - ReadableEntry__Handle *arg3 = (ReadableEntry__Handle *) 0 ; + Transaction__Handle arg1 ; + cipher__Sig *arg2 = (cipher__Sig *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - arg1 = (cipher__PubKey *)jarg1; - arg2 = (cipher__SecKey *)jarg2; - arg3 = (ReadableEntry__Handle *)jarg3; - result = (GoUint32)SKY_wallet_GetBitcoinWalletEntry((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2,arg3); + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__Sig *)jarg2; + result = (GoUint32)SKY_coin_Transaction_PushSignature(arg1,(GoUint8_ (*)[65])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_map_Get(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_ResetOutputs(void * jarg1, long long jarg2) { unsigned int jresult ; - GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; - GoString arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - GoString *argp2 ; + Transaction__Handle arg1 ; + GoInt arg2 ; + Transaction__Handle *argp1 ; GoUint32 result; - arg1 = (GoStringMap_ *)jarg1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); return 0; } - arg2 = *argp2; - arg3 = (GoString_ *)jarg3; - result = (GoUint32)SKY_map_Get(arg1,arg2,arg3); + arg1 = *argp1; + arg2 = (GoInt)jarg2; + result = (GoUint32)SKY_coin_Transaction_ResetOutputs(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_skycoin_SKY_map_HasKey(void * jarg1, void * jarg2) { - unsigned char jresult ; - GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; - GoString arg2 ; - GoString *argp2 ; - GoUint8 result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_ResetSignatures(void * jarg1, long long jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoInt arg2 ; + Transaction__Handle *argp1 ; + GoUint32 result; - arg1 = (GoStringMap_ *)jarg1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); return 0; } - arg2 = *argp2; - result = (GoUint8)SKY_map_HasKey(arg1,arg2); + arg1 = *argp1; + arg2 = (GoInt)jarg2; + result = (GoUint32)SKY_coin_Transaction_ResetSignatures(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_map_Close(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Verify(void * jarg1) { unsigned int jresult ; - GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; + Transaction__Handle arg1 ; + Transaction__Handle *argp1 ; GoUint32 result; - arg1 = (GoStringMap_ *)jarg1; - result = (GoUint32)SKY_map_Close(arg1); + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + result = (GoUint32)SKY_coin_Transaction_Verify(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_logging_EnableColors() { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_VerifyInput(void * jarg1, void * jarg2) { unsigned int jresult ; + Transaction__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - result = (GoUint32)SKY_logging_EnableColors(); + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_coin_Transaction_VerifyInput(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_logging_DisableColors() { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_PushInput(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; + Transaction__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint16 *arg3 = (GoUint16 *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - result = (GoUint32)SKY_logging_DisableColors(); + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__SHA256 *)jarg2; + arg3 = (GoUint16 *)jarg3; + result = (GoUint32)SKY_coin_Transaction_PushInput(arg1,(GoUint8_ (*)[32])arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_logging_Disable() { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_TransactionOutput_UxID(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; GoUint32 result; - result = (GoUint32)SKY_logging_Disable(); + arg1 = (coin__TransactionOutput *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + arg3 = (cipher__SHA256 *)jarg3; + result = (GoUint32)SKY_coin_TransactionOutput_UxID(arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[32])arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GenerateWallet(void * jarg1, void * jarg2, unsigned long long jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_PushOutput(void * jarg1, void * jarg2, unsigned long long jarg3, unsigned long long jarg4) { unsigned int jresult ; - GoString arg1 ; - Options__Handle *arg2 = (Options__Handle *) 0 ; + Transaction__Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; GoUint64 arg3 ; - Wallet__Handle *arg4 = (Wallet__Handle *) 0 ; - GoString *argp1 ; + GoUint64 arg4 ; + Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; + argp1 = (Transaction__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (Options__Handle *)jarg2; + arg2 = (cipher__Address *)jarg2; arg3 = (GoUint64)jarg3; - arg4 = (Wallet__Handle *)jarg4; - result = (GoUint32)SKY_cli_GenerateWallet(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_MakeAlphanumericSeed(void * jarg1) { - unsigned int jresult ; - GoString_ *arg1 = (GoString_ *) 0 ; - GoUint32 result; - - arg1 = (GoString_ *)jarg1; - result = (GoUint32)SKY_cli_MakeAlphanumericSeed(arg1); + arg4 = (GoUint64)jarg4; + result = (GoUint32)SKY_coin_Transaction_PushOutput(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Create(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SignInputs(void * jarg1, void * jarg2) { unsigned int jresult ; - Signature_Handle *arg1 = (Signature_Handle *) 0 ; + Transaction__Handle arg1 ; + GoSlice arg2 ; + Transaction__Handle *argp1 ; + GoSlice *argp2 ; GoUint32 result; - arg1 = (Signature_Handle *)jarg1; - result = (GoUint32)SKY_secp256k1go_Signature_Create(arg1); + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_coin_Transaction_SignInputs(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_GetR(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Size(void * jarg1, void * jarg2) { unsigned int jresult ; - Signature_Handle arg1 ; - Number_Handle *arg2 = (Number_Handle *) 0 ; - Signature_Handle *argp1 ; + Transaction__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Signature_Handle *)jarg1; + argp1 = (Transaction__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (Number_Handle *)jarg2; - result = (GoUint32)SKY_secp256k1go_Signature_GetR(arg1,arg2); + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_coin_Transaction_Size(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_GetS(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Hash(void * jarg1, void * jarg2) { unsigned int jresult ; - Signature_Handle arg1 ; - Number_Handle *arg2 = (Number_Handle *) 0 ; - Signature_Handle *argp1 ; + Transaction__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Signature_Handle *)jarg1; + argp1 = (Transaction__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (Number_Handle *)jarg2; - result = (GoUint32)SKY_secp256k1go_Signature_GetS(arg1,arg2); + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_Transaction_Hash(arg1,(GoUint8_ (*)[32])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Print(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SizeHash(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Signature_Handle arg1 ; - GoString arg2 ; - Signature_Handle *argp1 ; - GoString *argp2 ; + Transaction__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Signature_Handle *)jarg1; + argp1 = (Transaction__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); return 0; } arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_secp256k1go_Signature_Print(arg1,arg2); + arg2 = (GoInt *)jarg2; + arg3 = (cipher__SHA256 *)jarg3; + result = (GoUint32)SKY_coin_Transaction_SizeHash(arg1,arg2,(GoUint8_ (*)[32])arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Verify(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_TxID(void * jarg1, void * jarg2) { unsigned int jresult ; - Signature_Handle arg1 ; - secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; - Number_Handle arg3 ; - GoUint8 *arg4 = (GoUint8 *) 0 ; - Signature_Handle *argp1 ; - Number_Handle *argp3 ; + Transaction__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Signature_Handle *)jarg1; + argp1 = (Transaction__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (secp256k1go__XY *)jarg2; - argp3 = (Number_Handle *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); - return 0; - } - arg3 = *argp3; - arg4 = (GoUint8 *)jarg4; - result = (GoUint32)SKY_secp256k1go_Signature_Verify(arg1,arg2,arg3,arg4); + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_coin_Transaction_TxID(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Recover(void * jarg1, void * jarg2, void * jarg3, long long jarg4, void * jarg5) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_TxIDHex(void * jarg1, void * jarg2) { unsigned int jresult ; - Signature_Handle arg1 ; - secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; - Number_Handle arg3 ; - GoInt arg4 ; - GoUint8 *arg5 = (GoUint8 *) 0 ; - Signature_Handle *argp1 ; - Number_Handle *argp3 ; + Transaction__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Signature_Handle *)jarg1; + argp1 = (Transaction__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (secp256k1go__XY *)jarg2; - argp3 = (Number_Handle *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); - return 0; - } - arg3 = *argp3; - arg4 = (GoInt)jarg4; - arg5 = (GoUint8 *)jarg5; - result = (GoUint32)SKY_secp256k1go_Signature_Recover(arg1,arg2,arg3,arg4,arg5); + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_coin_Transaction_TxIDHex(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Sign(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_UpdateHeader(void * jarg1) { unsigned int jresult ; - Signature_Handle arg1 ; - Number_Handle arg2 ; - Number_Handle arg3 ; - Number_Handle arg4 ; - GoInt *arg5 = (GoInt *) 0 ; - GoInt *arg6 = (GoInt *) 0 ; - Signature_Handle *argp1 ; - Number_Handle *argp2 ; - Number_Handle *argp3 ; - Number_Handle *argp4 ; + Transaction__Handle arg1 ; + Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Signature_Handle *)jarg1; + argp1 = (Transaction__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); return 0; } arg1 = *argp1; - argp2 = (Number_Handle *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); - return 0; - } - arg2 = *argp2; - argp3 = (Number_Handle *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); - return 0; - } - arg3 = *argp3; - argp4 = (Number_Handle *)jarg4; - if (!argp4) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); - return 0; - } - arg4 = *argp4; - arg5 = (GoInt *)jarg5; - arg6 = (GoInt *)jarg6; - result = (GoUint32)SKY_secp256k1go_Signature_Sign(arg1,arg2,arg3,arg4,arg5,arg6); + result = (GoUint32)SKY_coin_Transaction_UpdateHeader(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_ParseBytes(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_HashInner(void * jarg1, void * jarg2) { unsigned int jresult ; - Signature_Handle arg1 ; - GoSlice arg2 ; - Signature_Handle *argp1 ; - GoSlice *argp2 ; + Transaction__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Signature_Handle *)jarg1; + argp1 = (Transaction__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); return 0; } arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_secp256k1go_Signature_ParseBytes(arg1,arg2); + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_Transaction_HashInner(arg1,(GoUint8_ (*)[32])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Bytes(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Serialize(void * jarg1, void * jarg2) { unsigned int jresult ; - Signature_Handle arg1 ; + Transaction__Handle arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; - Signature_Handle *argp1 ; + Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Signature_Handle *)jarg1; + argp1 = (Transaction__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); return 0; } arg1 = *argp1; arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1go_Signature_Bytes(arg1,arg2); + result = (GoUint32)SKY_coin_Transaction_Serialize(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_Create(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_MustTransactionDeserialize(void * jarg1, void * jarg2) { unsigned int jresult ; - Number_Handle *arg1 = (Number_Handle *) 0 ; + GoSlice arg1 ; + Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; + GoSlice *argp1 ; GoUint32 result; - arg1 = (Number_Handle *)jarg1; - result = (GoUint32)SKY_secp256k1go_Number_Create(arg1); + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Transaction__Handle *)jarg2; + result = (GoUint32)SKY_coin_MustTransactionDeserialize(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_Print(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_TransactionDeserialize(void * jarg1, void * jarg2) { unsigned int jresult ; - Number_Handle arg1 ; - GoString arg2 ; - Number_Handle *argp1 ; - GoString *argp2 ; + GoSlice arg1 ; + Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; + GoSlice *argp1 ; GoUint32 result; - argp1 = (Number_Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_secp256k1go_Number_Print(arg1,arg2); + arg2 = (Transaction__Handle *)jarg2; + result = (GoUint32)SKY_coin_TransactionDeserialize(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_SetHex(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_OutputHours(void * jarg1, void * jarg2) { unsigned int jresult ; - Number_Handle arg1 ; - GoString arg2 ; - Number_Handle *argp1 ; - GoString *argp2 ; + Transaction__Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Number_Handle *)jarg1; + argp1 = (Transaction__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); return 0; } arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_secp256k1go_Number_SetHex(arg1,arg2); + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_coin_Transaction_OutputHours(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_IsOdd(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Create_Transactions(void * jarg1) { unsigned int jresult ; - Number_Handle arg1 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - Number_Handle *argp1 ; + Transactions__Handle *arg1 = (Transactions__Handle *) 0 ; GoUint32 result; - argp1 = (Number_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_secp256k1go_Number_IsOdd(arg1,arg2); + arg1 = (Transactions__Handle *)jarg1; + result = (GoUint32)SKY_coin_Create_Transactions(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_IsEqual(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetTransactionsObject(void * jarg1, void * jarg2) { unsigned int jresult ; - Number_Handle arg1 ; - Number_Handle arg2 ; - GoUint8 *arg3 = (GoUint8 *) 0 ; - Number_Handle *argp1 ; - Number_Handle *argp2 ; + Transactions__Handle arg1 ; + coin__UxArray **arg2 = (coin__UxArray **) 0 ; + Transactions__Handle *argp1 ; GoUint32 result; - argp1 = (Number_Handle *)jarg1; + argp1 = (Transactions__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); return 0; } arg1 = *argp1; - argp2 = (Number_Handle *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); - return 0; - } - arg2 = *argp2; - arg3 = (GoUint8 *)jarg3; - result = (GoUint32)SKY_secp256k1go_Number_IsEqual(arg1,arg2,arg3); + arg2 = (coin__UxArray **)jarg2; + result = (GoUint32)SKY_coin_GetTransactionsObject(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateOptionsHandle(void * jarg1, void * jarg2, void * jarg3, unsigned char jarg4, void * jarg5, void * jarg6, unsigned long long jarg7, void * jarg8) { - GoString arg1 ; - GoString arg2 ; - GoString arg3 ; - GoUint8 arg4 ; - GoString arg5 ; - GoString arg6 ; - GoUint64 arg7 ; - Options__Handle *arg8 = (Options__Handle *) 0 ; - GoString *argp1 ; - GoString *argp2 ; - GoString *argp3 ; - GoString *argp5 ; - GoString *argp6 ; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Length(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transactions__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + Transactions__Handle *argp1 ; + GoUint32 result; - argp1 = (GoString *)jarg1; + argp1 = (Transactions__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return ; + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + return 0; } arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return ; - } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return ; - } - arg3 = *argp3; - arg4 = (GoUint8)jarg4; - argp5 = (GoString *)jarg5; - if (!argp5) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return ; - } - arg5 = *argp5; - argp6 = (GoString *)jarg6; - if (!argp6) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return ; - } - arg6 = *argp6; - arg7 = (GoUint64)jarg7; - arg8 = (Options__Handle *)jarg8; - SKY_wallet_CreateOptionsHandle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_coin_Transactions_Length(arg1,arg2); + jresult = result; + return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_Print(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Add(void * jarg1, void * jarg2) { unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - GoString arg2 ; - GoString *argp2 ; + Transactions__Handle arg1 ; + Transaction__Handle arg2 ; + Transactions__Handle *argp1 ; + Transaction__Handle *argp2 ; GoUint32 result; - - arg1 = (secp256k1go__XY *)jarg1; - argp2 = (GoString *)jarg2; + + argp1 = (Transactions__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (Transaction__Handle *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); return 0; } arg2 = *argp2; - result = (GoUint32)SKY_secp256k1go_XY_Print(arg1,arg2); + result = (GoUint32)SKY_coin_Transactions_Add(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_ParsePubkey(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Fees(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - GoSlice arg2 ; - GoUint8 *arg3 = (GoUint8 *) 0 ; - GoSlice *argp2 ; + Transactions__Handle arg1 ; + FeeCalculator *arg2 = (FeeCalculator *) 0 ; + GoUint64 *arg3 = (GoUint64 *) 0 ; + Transactions__Handle *argp1 ; GoUint32 result; - arg1 = (secp256k1go__XY *)jarg1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + argp1 = (Transactions__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); return 0; } - arg2 = *argp2; - arg3 = (GoUint8 *)jarg3; - result = (GoUint32)SKY_secp256k1go_XY_ParsePubkey(arg1,arg2,arg3); + arg1 = *argp1; + arg2 = (FeeCalculator *)jarg2; + arg3 = (GoUint64 *)jarg3; + result = (GoUint32)SKY_coin_Transactions_Fees(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_Bytes(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_GetAt(void * jarg1, long long jarg2, void * jarg3) { unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; + Transactions__Handle arg1 ; + GoInt arg2 ; + Transaction__Handle *arg3 = (Transaction__Handle *) 0 ; + Transactions__Handle *argp1 ; GoUint32 result; - arg1 = (secp256k1go__XY *)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1go_XY_Bytes(arg1,arg2); + argp1 = (Transactions__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt)jarg2; + arg3 = (Transaction__Handle *)jarg3; + result = (GoUint32)SKY_coin_Transactions_GetAt(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_BytesUncompressed(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Hashes(void * jarg1, void * jarg2) { unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + Transactions__Handle arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; + Transactions__Handle *argp1 ; GoUint32 result; - arg1 = (secp256k1go__XY *)jarg1; + argp1 = (Transactions__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + return 0; + } + arg1 = *argp1; arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1go_XY_BytesUncompressed(arg1,arg2); + result = (GoUint32)SKY_coin_Transactions_Hashes(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_SetXY(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Size(void * jarg1, void * jarg2) { unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg3 = (secp256k1go__Field *) 0 ; + Transactions__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + Transactions__Handle *argp1 ; GoUint32 result; - arg1 = (secp256k1go__XY *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - arg3 = (secp256k1go__Field *)jarg3; - result = (GoUint32)SKY_secp256k1go_XY_SetXY(arg1,arg2,arg3); + argp1 = (Transactions__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_coin_Transactions_Size(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_IsValid(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_TruncateBytesTo(void * jarg1, long long jarg2, void * jarg3) { unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; + Transactions__Handle arg1 ; + GoInt arg2 ; + Transactions__Handle *arg3 = (Transactions__Handle *) 0 ; + Transactions__Handle *argp1 ; GoUint32 result; - arg1 = (secp256k1go__XY *)jarg1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_secp256k1go_XY_IsValid(arg1,arg2); + argp1 = (Transactions__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt)jarg2; + arg3 = (Transactions__Handle *)jarg3; + result = (GoUint32)SKY_coin_Transactions_TruncateBytesTo(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_SetXYZ(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortTransactions(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; + Transactions__Handle arg1 ; + FeeCalculator *arg2 = (FeeCalculator *) 0 ; + Transactions__Handle *arg3 = (Transactions__Handle *) 0 ; + Transactions__Handle *argp1 ; GoUint32 result; - arg1 = (secp256k1go__XY *)jarg1; - arg2 = (secp256k1go__XYZ *)jarg2; - result = (GoUint32)SKY_secp256k1go_XY_SetXYZ(arg1,arg2); + argp1 = (Transactions__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (FeeCalculator *)jarg2; + arg3 = (Transactions__Handle *)jarg3; + result = (GoUint32)SKY_coin_SortTransactions(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_Neg(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewSortableTransactions(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; + Transactions__Handle arg1 ; + FeeCalculator *arg2 = (FeeCalculator *) 0 ; + SortableTransactionResult_Handle *arg3 = (SortableTransactionResult_Handle *) 0 ; + Transactions__Handle *argp1 ; GoUint32 result; - arg1 = (secp256k1go__XY *)jarg1; - arg2 = (secp256k1go__XY *)jarg2; - result = (GoUint32)SKY_secp256k1go_XY_Neg(arg1,arg2); + argp1 = (Transactions__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (FeeCalculator *)jarg2; + arg3 = (SortableTransactionResult_Handle *)jarg3; + result = (GoUint32)SKY_coin_NewSortableTransactions(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_SetXO(void * jarg1, void * jarg2, unsigned char jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortableTransactions_Sort(void * jarg1) { unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - GoUint8 arg3 ; + SortableTransactionResult_Handle arg1 ; + SortableTransactionResult_Handle *argp1 ; GoUint32 result; - arg1 = (secp256k1go__XY *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - arg3 = (GoUint8)jarg3; - result = (GoUint32)SKY_secp256k1go_XY_SetXO(arg1,arg2,arg3); + argp1 = (SortableTransactionResult_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null SortableTransactionResult_Handle", 0); + return 0; + } + arg1 = *argp1; + result = (GoUint32)SKY_coin_SortableTransactions_Sort(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_AddXY(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortableTransactions_Len(void * jarg1, void * jarg2) { unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; + SortableTransactionResult_Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + SortableTransactionResult_Handle *argp1 ; GoUint32 result; - arg1 = (secp256k1go__XY *)jarg1; - arg2 = (secp256k1go__XY *)jarg2; - result = (GoUint32)SKY_secp256k1go_XY_AddXY(arg1,arg2); + argp1 = (SortableTransactionResult_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null SortableTransactionResult_Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_coin_SortableTransactions_Len(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_GetPublicKey(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortableTransactions_Less(void * jarg1, long long jarg2, long long jarg3, void * jarg4) { unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; + SortableTransactionResult_Handle arg1 ; + GoInt arg2 ; + GoInt arg3 ; + GoUint8 *arg4 = (GoUint8 *) 0 ; + SortableTransactionResult_Handle *argp1 ; GoUint32 result; - arg1 = (secp256k1go__XY *)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1go_XY_GetPublicKey(arg1,arg2); + argp1 = (SortableTransactionResult_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null SortableTransactionResult_Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt)jarg2; + arg3 = (GoInt)jarg3; + arg4 = (GoUint8 *)jarg4; + result = (GoUint32)SKY_coin_SortableTransactions_Less(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Entry_Verify(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortableTransactions_Swap(void * jarg1, long long jarg2, long long jarg3) { unsigned int jresult ; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; + SortableTransactionResult_Handle arg1 ; + GoInt arg2 ; + GoInt arg3 ; + SortableTransactionResult_Handle *argp1 ; GoUint32 result; - arg1 = (wallet__Entry *)jarg1; - result = (GoUint32)SKY_wallet_Entry_Verify(arg1); + argp1 = (SortableTransactionResult_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null SortableTransactionResult_Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt)jarg2; + arg3 = (GoInt)jarg3; + result = (GoUint32)SKY_coin_SortableTransactions_Swap(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Entry_VerifyPublic(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_VerifyTransactionCoinsSpending(void * jarg1, void * jarg2) { unsigned int jresult ; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoUint32 result; - arg1 = (wallet__Entry *)jarg1; - result = (GoUint32)SKY_wallet_Entry_VerifyPublic(arg1); + arg1 = (coin__UxArray *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_coin_VerifyTransactionCoinsSpending(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CryptoTypeFromString(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_VerifyTransactionHoursSpending(unsigned long long jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - GoString arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString *argp1 ; + GoUint64 arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_wallet_CryptoTypeFromString(arg1,arg2); + arg1 = (GoUint64)jarg1; + arg2 = (coin__UxArray *)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_coin_VerifyTransactionHoursSpending(arg1,arg2,arg3); jresult = result; return jresult; } diff --git a/LibskycoinNetTest/check_cipher_address.cs b/LibskycoinNetTest/check_cipher_address.cs index 69ffcc23..61a10169 100644 --- a/LibskycoinNetTest/check_cipher_address.cs +++ b/LibskycoinNetTest/check_cipher_address.cs @@ -6,10 +6,10 @@ namespace LibskycoinNetTest { public class check_cipher_address { [Test ()] public void TestDecodeBase58Address () { - // var p = new skycoin.cipher_PubKey (); - // var s = new skycoin.cipher_SecKey (); + var p = new skycoin.cipher_PubKey (); + var s = new skycoin.cipher_SecKey (); uint err = 0; - // uint err = skycoin.skycoin.SKY_cipher_GenerateKeyPair(p,s); + Assert.AreEqual (err, 0); Assert.AreEqual (err, 0); } diff --git a/LibskycoinNetTest/cipher_address.cs b/LibskycoinNetTest/cipher_address.cs index 4ef1abac..bc0da155 100644 --- a/LibskycoinNetTest/cipher_address.cs +++ b/LibskycoinNetTest/cipher_address.cs @@ -6,7 +6,7 @@ namespace LibskycoinNetTest { public class cipher_address { [Test ()] public void TestCase () { - // var addr = new skycoin.secp256k1go__XY(); + var addr = new skycoin.secp256k1go__XY(); Assert.AreEqual (null, null); } diff --git a/Makefile b/Makefile index f1c3e3bd..a4da8557 100644 --- a/Makefile +++ b/Makefile @@ -55,6 +55,11 @@ install: nuget restore LibskycoinNet.sln nuget install NUnit.Runners -Version 2.6.4 -OutputDirectory testrunner -test: build-libc build-swig build-libskycoin-net install - msbuild LibskycoinNet.sln - mono ./testrunner/NUnit.Runners.2.6.4/tools/nunit-console.exe ./LibskycoinNetTest/bin/Debug/LibskycoinNetTest.dll \ No newline at end of file +test: + nuget restore LibskycoinNet.sln + nuget install NUnit.Runners -Version 2.6.4 -OutputDirectory testrunner + make build-libc + make build-swig + msbuild /p:Configuration=Release LibskycoinNet.sln + make build-libskycoin-net + mono ./testrunner/NUnit.Runners.2.6.4/tools/nunit-console.exe ./LibskycoinNetTest/bin/Release/LibskycoinNetTest.dll \ No newline at end of file diff --git a/swig/include/libskycoin.h b/swig/include/libskycoin.h index 445533d7..fcb055c9 100644 --- a/swig/include/libskycoin.h +++ b/swig/include/libskycoin.h @@ -17,17 +17,18 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; /* Start of preamble from import "C" comments. */ -#line 10 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.base58.base58.go" +#line 12 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/coin.block.go" #include #include #include "skytypes.h" + #include "feecalc.h" #line 1 "cgo-generated-wrapper" -#line 9 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet.readable.go" +#line 10 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.go-bip39.bip39.go" #include @@ -37,7 +38,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 7 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli.outputs.go" +#line 9 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/api.client.go" #include @@ -47,7 +48,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 9 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.secp256k1-go.secp256k1-go2.field.go" +#line 10 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.secp256k1-go.secp256k1-go2.xy.go" #include @@ -57,7 +58,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 5 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/api.wallet.go" +#line 5 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/api.wallet.go" #include @@ -67,7 +68,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.crypto.go" +#line 12 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/api.spend.go" #include @@ -77,7 +78,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.secp256k1-go.secp256k1-go2.ec.go" +#line 12 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet.wallet.go" #include @@ -87,7 +88,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 5 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.file.file.go" +#line 9 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli.check_balance.go" #include @@ -97,7 +98,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.secp256k1-go.secp256_rand.go" +#line 9 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet.notes.go" #include @@ -107,7 +108,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 12 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/api.spend.go" +#line 9 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet.readable.go" #include @@ -117,7 +118,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 5 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.browser.browser.go" +#line 10 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.secp256k1-go.secp256k1-go2.ec.go" #include @@ -127,18 +128,17 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.address.go" +#line 10 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.base58.base58.go" -#include -#include -#include "skytypes.h" + #include + #include #include "skytypes.h" #line 1 "cgo-generated-wrapper" -#line 9 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/testutil.testutil.go" +#line 7 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli.generate_wallet.go" #include @@ -148,7 +148,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 12 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli.create_rawtx.go" +#line 10 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/api.webrpc.client.go" #include @@ -158,7 +158,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 5 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.apputil.apputil.go" +#line 5 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.browser.browser.go" #include @@ -168,7 +168,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 5 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.utc.utc.go" +#line 5 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.iputil.iputil.go" #include @@ -178,7 +178,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.http.json.go" +#line 9 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.encoder.field.go" #include @@ -188,7 +188,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 9 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli.check_balance.go" +#line 10 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.secp256k1-go.secp256_rand.go" #include @@ -198,7 +198,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 9 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.poly1305.poly1305.go" +#line 11 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli.generate_addrs.go" #include @@ -208,7 +208,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 9 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/api.client.go" +#line 5 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/coin.math.go" #include @@ -218,18 +218,17 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 3 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/libsky_handle_helper.go" +#line 10 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.crypto.go" #include #include - #include "skytypes.h" #line 1 "cgo-generated-wrapper" -#line 10 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.secp256k1-go.secp256k1.go" +#line 10 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.secp256k1-go.secp256k1-go2.sig.go" #include @@ -239,7 +238,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 5 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.cert.cert.go" +#line 9 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli_helper.go" #include @@ -249,7 +248,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.fee.fee.go" +#line 9 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.poly1305.poly1305.go" #include @@ -259,7 +258,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 5 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.iputil.iputil.go" +#line 10 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet.balance.go" #include @@ -269,7 +268,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.hash.go" +#line 5 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.utc.utc.go" #include @@ -279,18 +278,17 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 12 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/coin.transactions.go" +#line 10 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.http.json.go" #include #include #include "skytypes.h" - #include "feecalc.h" #line 1 "cgo-generated-wrapper" -#line 10 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.encrypt.sha256xor.go" +#line 9 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet.entry.go" #include @@ -300,7 +298,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 11 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli.generate_addrs.go" +#line 10 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet.addresses.go" #include @@ -310,7 +308,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 11 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli.cli.go" +#line 9 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.secp256k1-go.secp256k1-go2.xyz.go" #include @@ -320,18 +318,17 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 3 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/libsky_handle.go" +#line 10 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.encrypt.sha256xor.go" #include #include - #include "skytypes.h" #line 1 "cgo-generated-wrapper" -#line 9 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.encoder.field.go" +#line 5 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.droplet.droplet.go" #include @@ -341,7 +338,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 11 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/coin.outputs.go" +#line 7 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet.crypto.go" #include @@ -351,17 +348,18 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.scrypt.scrypt.go" +#line 3 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/libsky_handle.go" #include #include + #include "skytypes.h" #line 1 "cgo-generated-wrapper" -#line 12 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet.wallet.go" +#line 5 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.logging.logging.go" #include @@ -371,7 +369,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 7 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli.add_private_key.go" +#line 3 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/libsky_map.go" #include @@ -381,27 +379,29 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 9 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli_helper.go" +#line 10 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.address.go" - #include - #include +#include +#include +#include "skytypes.h" #include "skytypes.h" #line 1 "cgo-generated-wrapper" -#line 10 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/api.webrpc.client.go" +#line 3 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/libsky_handle_helper.go" #include #include + #include "skytypes.h" #line 1 "cgo-generated-wrapper" -#line 5 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.droplet.droplet.go" +#line 10 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.ripemd160.ripemd160.go" #include @@ -411,7 +411,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.go-bip39.bip39.go" +#line 9 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.secp256k1-go.secp256k1-go2.num.go" #include @@ -421,7 +421,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 9 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.secp256k1-go.secp256k1-go2.xyz.go" +#line 11 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/coin.outputs.go" #include @@ -431,7 +431,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 9 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet.notes.go" +#line 10 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.encrypt.scrypt_chacha20poly1305.go" #include @@ -441,8 +441,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.encrypt.scrypt_chacha20poly1305.go" - +#line 7 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet_option.go" #include #include @@ -451,7 +450,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 5 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/coin.math.go" +#line 7 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli.add_private_key.go" #include @@ -461,7 +460,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet.balance.go" +#line 10 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.secp256k1-go.secp256k1.go" #include @@ -471,7 +470,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.ripemd160.ripemd160.go" +#line 5 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.apputil.apputil.go" #include @@ -481,18 +480,17 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 12 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/coin.block.go" +#line 5 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.cert.cert.go" #include #include #include "skytypes.h" - #include "feecalc.h" #line 1 "cgo-generated-wrapper" -#line 10 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet.addresses.go" +#line 10 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.fee.fee.go" #include @@ -502,7 +500,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 3 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/libsky_map.go" +#line 11 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli.cli.go" #include @@ -512,7 +510,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 5 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.logging.logging.go" +#line 12 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli.create_rawtx.go" #include @@ -522,7 +520,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 7 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli.generate_wallet.go" +#line 5 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.file.file.go" #include @@ -532,7 +530,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.secp256k1-go.secp256k1-go2.sig.go" +#line 7 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli.outputs.go" #include @@ -542,7 +540,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 9 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.secp256k1-go.secp256k1-go2.num.go" +#line 9 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/testutil.testutil.go" #include @@ -552,7 +550,8 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 7 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet_option.go" +#line 9 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.secp256k1-go.secp256k1-go2.field.go" + #include #include @@ -561,7 +560,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.secp256k1-go.secp256k1-go2.xy.go" +#line 10 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.scrypt.scrypt.go" #include @@ -571,7 +570,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 9 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet.entry.go" +#line 10 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.hash.go" #include @@ -581,13 +580,14 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 7 "/home/ratmil/Projects/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet.crypto.go" +#line 12 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/coin.transactions.go" #include #include #include "skytypes.h" + #include "feecalc.h" #line 1 "cgo-generated-wrapper" @@ -636,179 +636,183 @@ extern "C" { #endif -extern GoUint32 SKY_base58_String2Hex(GoString p0, coin__UxArray* p1); +extern GoUint32 SKY_coin_NewBlock(Block__Handle p0, GoUint64 p1, cipher__SHA256* p2, Transactions__Handle p3, FeeCalculator* p4, Block__Handle* p5); -extern GoUint32 SKY_base58_Base58_ToInt(GoString p0, GoInt* p1); +extern GoUint32 SKY_coin_SignedBlock_VerifySignature(coin__SignedBlock* p0, cipher__PubKey* p1); -extern GoUint32 SKY_base58_Base58_ToHex(GoString p0, coin__UxArray* p1); +extern GoUint32 SKY_coin_NewGenesisBlock(cipher__Address* p0, GoUint64 p1, GoUint64 p2, Block__Handle* p3); -extern GoUint32 SKY_base58_Base58_Base582Int(GoString p0, GoInt* p1); +extern GoUint32 SKY_coin_Block_HashHeader(Block__Handle p0, cipher__SHA256* p1); -extern GoUint32 SKY_base58_Base582Hex(GoString p0, coin__UxArray* p1); +extern GoUint32 SKY_coin_Block_PreHashHeader(Block__Handle p0, cipher__SHA256* p1); -extern GoUint32 SKY_base58_Base58_BitHex(GoString p0, coin__UxArray* p1); +extern GoUint32 SKY_coin_Block_Time(Block__Handle p0, GoUint64* p1); -extern GoUint32 SKY_base58_Int2Base58(GoInt p0, GoString_* p1); +extern GoUint32 SKY_coin_Block_Seq(Block__Handle p0, GoUint64* p1); -extern GoUint32 SKY_base58_Hex2Base58(GoSlice p0, GoString_* p1); +extern GoUint32 SKY_coin_Block_HashBody(Block__Handle p0, cipher__SHA256* p1); -extern GoUint32 SKY_base58_Hex2Base58String(GoSlice p0, GoString_* p1); +extern GoUint32 SKY_coin_Block_Size(Block__Handle p0, GoInt* p1); -extern GoUint32 SKY_base58_Hex2Base58Str(GoSlice p0, GoString_* p1); +extern GoUint32 SKY_coin_Block_String(Block__Handle p0, GoString_* p1); -extern GoUint32 SKY_wallet_NewReadableEntry(wallet__Entry* p0, ReadableEntry__Handle* p1); +extern GoUint32 SKY_coin_Block_GetTransaction(Block__Handle p0, cipher__SHA256* p1, Transaction__Handle* p2, GoUint8* p3); -extern GoUint32 SKY_wallet_LoadReadableEntry(GoString p0, ReadableEntry__Handle* p1); +extern GoUint32 SKY_coin_NewBlockHeader(coin__BlockHeader* p0, cipher__SHA256* p1, GoUint64 p2, GoUint64 p3, BlockBody__Handle p4, coin__BlockHeader* p5); -extern GoUint32 SKY_wallet_NewReadableEntryFromPubkey(GoString p0, ReadableEntry__Handle* p1); +extern GoUint32 SKY_coin_BlockHeader_Hash(coin__BlockHeader* p0, cipher__SHA256* p1); -extern GoUint32 SKY_wallet_ReadableEntry_Save(ReadableEntry__Handle p0, GoString p1); +extern GoUint32 SKY_coin_BlockHeader_Bytes(coin__BlockHeader* p0, coin__UxArray* p1); -extern GoUint32 SKY_wallet_LoadReadableWallet(GoString p0, ReadableWallet__Handle* p1); +extern GoUint32 SKY_coin_BlockHeader_String(coin__BlockHeader* p0, GoString_* p1); -extern GoUint32 SKY_wallet_ReadableWallet_Save(ReadableWallet__Handle p0, GoString p1); +extern GoUint32 SKY_coin_BlockBody_Hash(BlockBody__Handle p0, cipher__SHA256* p1); -extern GoUint32 SKY_wallet_ReadableWallet_Load(ReadableWallet__Handle p0, GoString p1); +extern GoUint32 SKY_coin_BlockBody_Size(BlockBody__Handle* p0, GoInt* p1); -extern GoUint32 SKY_wallet_ReadableWallet_Erase(ReadableWallet__Handle p0); +extern GoUint32 SKY_coin_BlockBody_Bytes(BlockBody__Handle p0, coin__UxArray* p1); -extern GoUint32 SKY_cli_GetWalletOutputsFromFile(WebRpcClient__Handle p0, GoString p1, OutputsResult_Handle* p2); +extern GoUint32 SKY_coin_CreateUnspents(coin__BlockHeader* p0, Transaction__Handle p1, coin__UxArray* p2); -extern GoUint32 SKY_cli_GetWalletOutputs(WebRpcClient__Handle p0, Wallet__Handle* p1, OutputsResult_Handle* p2); +extern GoUint32 SKY_coin_CreateUnspent(coin__BlockHeader* p0, Transaction__Handle p1, GoInt p2, coin__UxOut* p3); -extern GoUint32 SKY_secp256k1go_Field_String(secp256k1go__Field* p0, GoString_* p1); +extern GoUint32 SKY_coin_GetBlockObject(Block__Handle p0, coin__Block** p1); -extern GoUint32 SKY_secp256k1go_Field_Print(secp256k1go__Field* p0, GoString p1); +extern GoUint32 SKY_coin_GetBlockBody(Block__Handle p0, BlockBody__Handle* p1); -extern GoUint32 SKY_secp256k1go_Field_SetB32(secp256k1go__Field* p0, GoSlice p1); +extern GoUint32 SKY_coin_NewEmptyBlock(Transactions__Handle p0, Block__Handle* p1); -extern GoUint32 SKY_secp256k1go_Field_SetBytes(secp256k1go__Field* p0, GoSlice p1); +extern GoUint32 SKY_bip39_NewDefaultMnemomic(GoString_* p0); -extern GoUint32 SKY_secp256k1go_Field_SetHex(secp256k1go__Field* p0, GoString p1); +extern GoUint32 SKY_bip39_NewEntropy(GoInt p0, coin__UxArray* p1); -extern GoUint32 SKY_secp256k1go_Field_IsOdd(secp256k1go__Field* p0, GoUint8* p1); +extern GoUint32 SKY_bip39_NewMnemonic(GoSlice p0, GoString_* p1); -extern GoUint32 SKY_secp256k1go_Field_IsZero(secp256k1go__Field* p0, GoUint8* p1); +extern GoUint32 SKY_bip39_MnemonicToByteArray(GoString p0, coin__UxArray* p1); -extern GoUint32 SKY_secp256k1go_Field_SetInt(secp256k1go__Field* p0, GoUint32 p1); +extern GoUint32 SKY_bip39_IsMnemonicValid(GoString p0, GoUint8* p1); -extern GoUint32 SKY_secp256k1go_Field_Normalize(secp256k1go__Field* p0); +extern GoUint32 SKY_api_NewClient(GoString p0, Client__Handle* p1); -extern GoUint32 SKY_secp256k1go_Field_GetB32(secp256k1go__Field* p0, GoSlice p1); +extern GoUint32 SKY_api_Client_CSRF(Client__Handle p0, GoString_* p1); -extern GoUint32 SKY_secp256k1go_Field_Equals(secp256k1go__Field* p0, secp256k1go__Field* p1, GoUint8* p2); +extern GoUint32 SKY_api_Client_Version(Client__Handle p0, Handle* p1); -extern GoUint32 SKY_secp256k1go_Field_SetAdd(secp256k1go__Field* p0, secp256k1go__Field* p1); +extern GoUint32 SKY_api_Client_Outputs(Client__Handle p0, Handle* p1); -extern GoUint32 SKY_secp256k1go_Field_MulInt(secp256k1go__Field* p0, GoUint32 p1); +extern GoUint32 SKY_api_Client_OutputsForAddresses(Client__Handle p0, GoSlice p1, Handle* p2); -extern GoUint32 SKY_secp256k1go_Field_Negate(secp256k1go__Field* p0, secp256k1go__Field* p1, GoUint32 p2); +extern GoUint32 SKY_api_Client_OutputsForHashes(Client__Handle p0, GoSlice p1, Handle* p2); -extern GoUint32 SKY_secp256k1go_Field_Inv(secp256k1go__Field* p0, secp256k1go__Field* p1); +extern GoUint32 SKY_api_Client_CoinSupply(Client__Handle p0, Handle* p1); -extern GoUint32 SKY_secp256k1go_Field_Sqrt(secp256k1go__Field* p0, secp256k1go__Field* p1); +extern GoUint32 SKY_api_Client_BlockByHash(Client__Handle p0, GoString p1, Handle* p2); -extern GoUint32 SKY_secp256k1go_Field_InvVar(secp256k1go__Field* p0, secp256k1go__Field* p1); +extern GoUint32 SKY_api_Client_BlockBySeq(Client__Handle p0, GoUint64 p1, Handle* p2); -extern GoUint32 SKY_secp256k1go_Field_Mul(secp256k1go__Field* p0, secp256k1go__Field* p1, secp256k1go__Field* p2); +extern GoUint32 SKY_api_Client_Blocks(Client__Handle p0, GoInt p1, GoInt p2, Handle* p3); -extern GoUint32 SKY_secp256k1go_Field_Sqr(secp256k1go__Field* p0, secp256k1go__Field* p1); +extern GoUint32 SKY_api_Client_LastBlocks(Client__Handle p0, GoInt p1, Handle* p2); -extern GoUint32 SKY_api_NewWalletResponse(Wallet__Handle p0, WalletResponse__Handle* p1); +extern GoUint32 SKY_api_Client_BlockchainMetadata(Client__Handle p0, Handle* p1); -extern GoInt SKY_cipher_PubKeySlice_Len(coin__UxArray* p0); +extern GoUint32 SKY_api_Client_BlockchainProgress(Client__Handle p0, Handle* p1); -extern GoUint8 SKY_cipher_PubKeySlice_Less(coin__UxArray* p0, GoInt p1, GoInt p2); +extern GoUint32 SKY_api_Client_Balance(Client__Handle p0, GoSlice p1, wallet__BalancePair* p2); -extern GoUint32 SKY_cipher_PubKeySlice_Swap(coin__UxArray* p0, GoInt p1, GoInt p2); +extern GoUint32 SKY_api_Client_UxOut(Client__Handle p0, GoString p1, Handle* p2); -extern GoUint32 SKY_cipher_RandByte(GoInt p0, coin__UxArray* p1); +extern GoUint32 SKY_api_Client_AddressUxOuts(Client__Handle p0, GoString p1, Handle* p2); -extern GoUint32 SKY_cipher_NewPubKey(GoSlice p0, cipher__PubKey* p1); +extern GoUint32 SKY_api_Client_Wallet(Client__Handle p0, GoString p1, WalletResponse__Handle* p2); -extern GoUint32 SKY_cipher_MustPubKeyFromHex(GoString p0, cipher__PubKey* p1); +extern GoUint32 SKY_api_Client_Wallets(Client__Handle p0, Wallets__Handle* p1); -extern GoUint32 SKY_cipher_PubKeyFromHex(GoString p0, cipher__PubKey* p1); +extern GoUint32 SKY_api_Client_CreateUnencryptedWallet(Client__Handle p0, GoString p1, GoString p2, GoInt p3, WalletResponse__Handle* p4); -extern GoUint32 SKY_cipher_PubKeyFromSecKey(cipher__SecKey* p0, cipher__PubKey* p1); +extern GoUint32 SKY_api_Client_CreateEncryptedWallet(Client__Handle p0, GoString p1, GoString p2, GoString p3, GoInt p4, WalletResponse__Handle* p5); -extern GoUint32 SKY_cipher_PubKeyFromSig(cipher__Sig* p0, cipher__SHA256* p1, cipher__PubKey* p2); +extern GoUint32 SKY_api_Client_NewWalletAddress(Client__Handle p0, GoString p1, GoInt p2, GoString p3, Strings__Handle* p4); -extern GoUint32 SKY_cipher_PubKey_Verify(cipher__PubKey* p0); +extern GoUint32 SKY_api_Client_WalletBalance(Client__Handle p0, GoString p1, wallet__BalancePair* p2); -extern GoUint32 SKY_cipher_PubKey_Hex(cipher__PubKey* p0, GoString_* p1); +extern GoUint32 SKY_api_Client_Spend(Client__Handle p0, GoString p1, GoString p2, GoUint64 p3, GoString p4, SpendResult_Handle* p5); -extern GoUint32 SKY_cipher_PubKey_ToAddressHash(cipher__PubKey* p0, cipher__Ripemd160* p1); +extern GoUint32 SKY_api_Client_CreateTransaction(Client__Handle p0, Handle* p1, CreateTransactionResponse__Handle* p2); -extern GoUint32 SKY_cipher_NewSecKey(GoSlice p0, cipher__SecKey* p1); +extern GoUint32 SKY_api_Client_WalletTransactions(Client__Handle p0, GoString p1, Handle* p2); -extern GoUint32 SKY_cipher_MustSecKeyFromHex(GoString p0, cipher__SecKey* p1); +extern GoUint32 SKY_api_Client_UpdateWallet(Client__Handle p0, GoString p1, GoString p2); -extern GoUint32 SKY_cipher_SecKeyFromHex(GoString p0, cipher__SecKey* p1); +extern GoUint32 SKY_api_Client_WalletFolderName(Client__Handle p0, Handle* p1); -extern GoUint32 SKY_cipher_SecKey_Verify(cipher__SecKey* p0); +extern GoUint32 SKY_api_Client_NewSeed(Client__Handle p0, GoInt p1, GoString_* p2); -extern GoUint32 SKY_cipher_SecKey_Hex(cipher__SecKey* p0, GoString_* p1); +extern GoUint32 SKY_api_Client_GetWalletSeed(Client__Handle p0, GoString p1, GoString p2, GoString_* p3); -extern GoUint32 SKY_cipher_ECDH(cipher__PubKey* p0, cipher__SecKey* p1, coin__UxArray* p2); +extern GoUint32 SKY_api_Client_NetworkConnection(Client__Handle p0, GoString p1, Handle* p2); -extern GoUint32 SKY_cipher_NewSig(GoSlice p0, cipher__Sig* p1); +extern GoUint32 SKY_api_Client_NetworkConnections(Client__Handle p0, Handle* p1); -extern GoUint32 SKY_cipher_MustSigFromHex(GoString p0, cipher__Sig* p1); +extern GoUint32 SKY_api_Client_NetworkDefaultConnections(Client__Handle p0, Handle* p1); -extern GoUint32 SKY_cipher_SigFromHex(GoString p0, cipher__Sig* p1); +extern GoUint32 SKY_api_Client_NetworkTrustedConnections(Client__Handle p0, Handle* p1); -extern GoUint32 SKY_cipher_Sig_Hex(cipher__Sig* p0, GoString_* p1); +extern GoUint32 SKY_api_Client_NetworkExchangeableConnections(Client__Handle p0, Handle* p1); -extern GoUint32 SKY_cipher_SignHash(cipher__SHA256* p0, cipher__SecKey* p1, cipher__Sig* p2); +extern GoUint32 SKY_api_Client_PendingTransactions(Client__Handle p0, Handle* p1); -extern GoUint32 SKY_cipher_ChkSig(cipher__Address* p0, cipher__SHA256* p1, cipher__Sig* p2); +extern GoUint32 SKY_api_Client_Transaction(Client__Handle p0, GoString p1, Handle* p2); -extern GoUint32 SKY_cipher_VerifySignedHash(cipher__Sig* p0, cipher__SHA256* p1); +extern GoUint32 SKY_api_Client_Transactions(Client__Handle p0, GoSlice p1, Handle* p2); -extern GoUint32 SKY_cipher_VerifySignature(cipher__PubKey* p0, cipher__Sig* p1, cipher__SHA256* p2); +extern GoUint32 SKY_api_Client_ConfirmedTransactions(Client__Handle p0, GoSlice p1, Handle* p2); -extern GoUint32 SKY_cipher_GenerateKeyPair(cipher__PubKey* p0, cipher__SecKey* p1); +extern GoUint32 SKY_api_Client_UnconfirmedTransactions(Client__Handle p0, GoSlice p1, Handle* p2); -extern GoUint32 SKY_cipher_GenerateDeterministicKeyPair(GoSlice p0, cipher__PubKey* p1, cipher__SecKey* p2); +extern GoUint32 SKY_api_Client_InjectTransaction(Client__Handle p0, GoString p1, GoString_* p2); -extern GoUint32 SKY_cipher_DeterministicKeyPairIterator(GoSlice p0, coin__UxArray* p1, cipher__PubKey* p2, cipher__SecKey* p3); +extern GoUint32 SKY_api_Client_ResendUnconfirmedTransactions(Client__Handle p0, Handle* p1); -extern GoUint32 SKY_cipher_GenerateDeterministicKeyPairs(GoSlice p0, GoInt p1, coin__UxArray* p2); +extern GoUint32 SKY_api_Client_RawTransaction(Client__Handle p0, GoString p1, GoString_* p2); -extern GoUint32 SKY_cipher_GenerateDeterministicKeyPairsSeed(GoSlice p0, GoInt p1, coin__UxArray* p2, coin__UxArray* p3); +extern GoUint32 SKY_api_Client_AddressTransactions(Client__Handle p0, GoString p1, Handle* p2); -extern GoUint32 SKY_cipher_TestSecKey(cipher__SecKey* p0); +extern GoUint32 SKY_api_Client_Richlist(Client__Handle p0, api__RichlistParams* p1, Handle* p2); -extern GoUint32 SKY_cipher_TestSecKeyHash(cipher__SecKey* p0, cipher__SHA256* p1); +extern GoUint32 SKY_api_Client_AddressCount(Client__Handle p0, GoUint64* p1); -extern GoUint32 SKY_secp256k1go_DecompressPoint(GoSlice p0, GoUint8 p1, GoSlice p2); +extern GoUint32 SKY_api_Client_UnloadWallet(Client__Handle p0, GoString p1); -extern GoUint32 SKY_secp256k1go_RecoverPublicKey(GoSlice p0, GoSlice p1, GoInt p2, coin__UxArray* p3, GoInt* p4); +extern GoUint32 SKY_api_Client_Health(Client__Handle p0, Handle* p1); -extern GoUint32 SKY_secp256k1go_Multiply(GoSlice p0, GoSlice p1, coin__UxArray* p2); +extern GoUint32 SKY_api_Client_EncryptWallet(Client__Handle p0, GoString p1, GoString p2, WalletResponse__Handle* p3); -extern GoUint32 SKY_secp256k1go_BaseMultiply(GoSlice p0, coin__UxArray* p1); +extern GoUint32 SKY_api_Client_DecryptWallet(Client__Handle p0, GoString p1, GoString p2, WalletResponse__Handle* p3); -extern GoUint32 SKY_secp256k1go_BaseMultiplyAdd(GoSlice p0, GoSlice p1, coin__UxArray* p2); +extern GoUint32 SKY_secp256k1go_XY_Print(secp256k1go__XY* p0, GoString p1); -extern GoUint32 SKY_secp256k1go_GeneratePublicKey(GoSlice p0, coin__UxArray* p1); +extern GoUint32 SKY_secp256k1go_XY_ParsePubkey(secp256k1go__XY* p0, GoSlice p1, GoUint8* p2); -extern GoUint32 SKY_secp256k1go_SeckeyIsValid(GoSlice p0, GoInt* p1); +extern GoUint32 SKY_secp256k1go_XY_Bytes(secp256k1go__XY* p0, coin__UxArray* p1); -extern GoUint32 SKY_secp256k1go_PubkeyIsValid(GoSlice p0, GoInt* p1); +extern GoUint32 SKY_secp256k1go_XY_BytesUncompressed(secp256k1go__XY* p0, coin__UxArray* p1); -extern GoUint32 SKY_file_InitDataDir(GoString p0, GoString_* p1); +extern GoUint32 SKY_secp256k1go_XY_SetXY(secp256k1go__XY* p0, secp256k1go__Field* p1, secp256k1go__Field* p2); -extern GoUint32 SKY_file_UserHome(GoString_* p0); +extern GoUint32 SKY_secp256k1go_XY_IsValid(secp256k1go__XY* p0, GoUint8* p1); -extern GoUint32 SKY_file_ResolveResourceDirectory(GoString p0, GoString_* p1); +extern GoUint32 SKY_secp256k1go_XY_SetXYZ(secp256k1go__XY* p0, secp256k1go__XYZ* p1); -extern GoUint32 SKY_file_DetermineResourcePath(GoString p0, GoString p1, GoString p2, GoString_* p3); +extern GoUint32 SKY_secp256k1go_XY_Neg(secp256k1go__XY* p0, secp256k1go__XY* p1); -extern GoUint32 SKY_secp256k1_SumSHA256(GoSlice p0, coin__UxArray* p1); +extern GoUint32 SKY_secp256k1go_XY_SetXO(secp256k1go__XY* p0, secp256k1go__Field* p1, GoUint8 p2); -extern GoUint32 SKY_secp256k1_RandByte(GoInt p0, coin__UxArray* p1); +extern GoUint32 SKY_secp256k1go_XY_AddXY(secp256k1go__XY* p0, secp256k1go__XY* p1); + +extern GoUint32 SKY_secp256k1go_XY_GetPublicKey(secp256k1go__XY* p0, coin__UxArray* p1); + +extern GoUint32 SKY_api_NewWalletResponse(Wallet__Handle p0, WalletResponse__Handle* p1); extern GoUint32 SKY_api_NewCreateTransactionResponse(Transaction__Handle p0, GoSlice p1, CreateTransactionResponse__Handle* p2); @@ -820,453 +824,489 @@ extern GoUint32 SKY_api_NewCreatedTransactionOutput(coin__TransactionOutput* p0, extern GoUint32 SKY_api_NewCreatedTransactionInput(wallet__UxBalance* p0, CreatedTransactionInput__Handle* p1); -extern GoUint32 SKY_browser_Open(GoString p0); +extern GoUint32 SKY_wallet_NewError(GoInterface p0); -extern GoUint32 SKY_cipher_DecodeBase58Address(GoString p0, cipher__Address* p1); +extern GoUint32 SKY_wallet_NewWallet(GoString p0, Options__Handle p1, Wallet__Handle* p2); -extern GoUint32 SKY_cipher_MustDecodeBase58Address(GoString p0, cipher__Address* p1); +extern GoUint32 SKY_wallet_Wallet_Lock(Wallet__Handle p0, GoSlice p1, GoString p2); -extern GoUint32 SKY_cipher_BitcoinMustDecodeBase58Address(GoString p0, cipher__Address* p1); +extern GoUint32 SKY_wallet_Wallet_Unlock(Wallet__Handle p0, GoSlice p1, Wallet__Handle* p2); -extern GoUint32 SKY_cipher_AddressFromBytes(GoSlice p0, cipher__Address* p1); +extern GoUint32 SKY_wallet_Load(GoString p0, Wallet__Handle* p1); -extern GoUint32 SKY_cipher_AddressFromPubKey(cipher__PubKey* p0, cipher__Address* p1); +extern GoUint32 SKY_wallet_Wallet_Save(Wallet__Handle p0, GoString p1); -extern GoUint32 SKY_cipher_AddressFromSecKey(cipher__SecKey* p0, cipher__Address* p1); +extern GoUint32 SKY_wallet_Wallet_Validate(Wallet__Handle p0); -extern GoUint32 SKY_cipher_BitcoinDecodeBase58Address(GoString p0, cipher__Address* p1); +extern GoUint32 SKY_wallet_Wallet_Type(Wallet__Handle p0, GoString_* p1); -extern GoUint32 SKY_cipher_MustAddressFromBytes(GoSlice p0, cipher__Address* p1); +extern GoUint32 SKY_wallet_Wallet_Version(Wallet__Handle p0, GoString_* p1); -extern GoUint32 SKY_cipher_Address_Bytes(cipher__Address* p0, coin__UxArray* p1); +extern GoUint32 SKY_wallet_Wallet_Filename(Wallet__Handle p0, GoString_* p1); -extern GoUint32 SKY_cipher_Address_Null(cipher__Address* p0, GoUint8* p1); +extern GoUint32 SKY_wallet_Wallet_Label(Wallet__Handle p0, GoString_* p1); -extern GoUint32 SKY_cipher_Address_BitcoinBytes(cipher__Address* p0, coin__UxArray* p1); +extern GoUint32 SKY_wallet_Wallet_IsEncrypted(Wallet__Handle p0, GoUint8* p1); -extern GoUint32 SKY_cipher_Address_Verify(cipher__Address* p0, cipher__PubKey* p1); +extern GoUint32 SKY_wallet_Wallet_GenerateAddresses(Wallet__Handle p0, GoUint64 p1, coin__UxArray* p2); -extern GoUint32 SKY_cipher_Address_String(cipher__Address* p0, GoString_* p1); +extern GoUint32 SKY_wallet_Wallet_GetAddresses(Wallet__Handle p0, coin__UxArray* p1); -extern GoUint32 SKY_cipher_Address_BitcoinString(cipher__Address* p0, GoString_* p1); +extern GoUint32 SKY_wallet_Wallet_GetEntry(Wallet__Handle p0, cipher__Address* p1, wallet__Entry* p2, GoUint8* p3); -extern GoUint32 SKY_cipher_Address_Checksum(cipher__Address* p0, cipher__Checksum* p1); +extern GoUint32 SKY_wallet_Wallet_AddEntry(Wallet__Handle p0, wallet__Entry* p1); -extern GoUint32 SKY_cipher_Address_BitcoinChecksum(cipher__Address* p0, cipher__Checksum* p1); +extern GoUint32 SKY_wallet_DistributeSpendHours(GoUint64 p0, GoUint64 p1, GoUint8 p2, GoUint64* p3, coin__UxArray* p4, GoUint64* p5); -extern GoUint32 SKY_cipher_BitcoinAddressFromPubkey(cipher__PubKey* p0, GoString_* p1); +extern GoUint32 SKY_wallet_DistributeCoinHoursProportional(GoSlice p0, GoUint64 p1, coin__UxArray* p2); -extern GoUint32 SKY_cipher_BitcoinWalletImportFormatFromSeckey(cipher__SecKey* p0, GoString_* p1); +extern GoUint32 SKY_wallet_NewUxBalances(GoUint64 p0, coin__UxArray* p1, coin__UxArray* p2); -extern GoUint32 SKY_cipher_BitcoinAddressFromBytes(GoSlice p0, cipher__Address* p1); +extern GoUint32 SKY_wallet_NewUxBalance(GoUint64 p0, coin__UxOut* p1, wallet__UxBalance* p2); -extern GoUint32 SKY_cipher_SecKeyFromWalletImportFormat(GoString p0, cipher__SecKey* p1); +extern GoUint32 SKY_wallet_ChooseSpendsMinimizeUxOuts(GoSlice p0, GoUint64 p1, GoUint64 p2, coin__UxArray* p3); -extern GoUint32 SKY_cipher_MustSecKeyFromWalletImportFormat(GoString p0, cipher__SecKey* p1); +extern GoUint32 SKY_wallet_ChooseSpendsMaximizeUxOuts(GoSlice p0, GoUint64 p1, GoUint64 p2, coin__UxArray* p3); -extern GoUint32 SKY_testutil_MakeAddress(cipher__Address* p0); +extern GoUint32 SKY_cli_CheckWalletBalance(WebRpcClient__Handle p0, GoString p1, BalanceResult_Handle* p2); -extern GoUint32 SKY_cli_CreateRawTxFromWallet(WebRpcClient__Handle p0, GoString p1, GoString p2, GoSlice p3, PasswordReader__Handle p4, Transaction__Handle* p5); +extern GoUint32 SKY_cli_GetBalanceOfAddresses(WebRpcClient__Handle p0, GoSlice p1, BalanceResult_Handle* p2); -extern GoUint32 SKY_cli_CreateRawTxFromAddress(WebRpcClient__Handle p0, GoString p1, GoString p2, GoString p3, GoSlice p4, PasswordReader__Handle p5, Transaction__Handle* p6); +extern GoUint32 SKY_wallet_NewNotesFilename(GoString_* p0); -extern GoUint32 SKY_cli_CreateRawTx(WebRpcClient__Handle p0, Wallet__Handle p1, GoSlice p2, GoString p3, GoSlice p4, GoSlice p5, Transaction__Handle* p6); +extern GoUint32 SKY_wallet_LoadNotes(GoString p0, WalletNotes_Handle* p1); -extern GoUint32 SKY_cli_NewTransaction(GoSlice p0, GoSlice p1, GoSlice p2, Transaction__Handle* p3); +extern GoUint32 SKY_wallet_LoadReadableNotes(GoString p0, WalletReadableNotes_Handle* p1); -extern GoUint32 SKY_apputil_CatchInterruptPanic(); +extern GoUint32 SKY_wallet_ReadableNotes_Load(WalletReadableNotes_Handle p0, GoString p1); -extern GoUint32 SKY_apputil_CatchDebug(); +extern GoUint32 SKY_wallet_ReadableNotes_ToNotes(WalletReadableNotes_Handle p0, WalletNotes_Handle* p1); -extern GoUint32 SKY_apputil_PrintProgramStatus(); +extern GoUint32 SKY_wallet_ReadableNotes_Save(WalletReadableNotes_Handle p0, GoString p1); -extern GoUint32 SKY_utc_UnixNow(GoInt64* p0); +extern GoUint32 SKY_wallet_NewReadableNote(wallet__Note* p0, wallet__ReadableNote* p1); -extern GoUint32 SKY_httphelper_Address_UnmarshalJSON(httphelper__Address* p0, GoSlice p1); +extern GoUint32 SKY_wallet_NewReadableNotesFromNotes(WalletNotes_Handle p0, WalletReadableNotes_Handle* p1); -extern GoUint32 SKY_httphelper_Address_MarshalJSON(httphelper__Address* p0, coin__UxArray* p1); +extern GoUint32 SKY_wallet_Notes_Save(WalletNotes_Handle p0, GoString p1, GoString p2); -extern GoUint32 SKY_httphelper_Coins_UnmarshalJSON(httphelper__Coins* p0, GoSlice p1); +extern GoUint32 SKY_wallet_Notes_SaveNote(WalletNotes_Handle p0, GoString p1, wallet__Note* p2); -extern GoUint32 SKY_httphelper_Coins_MarshalJSON(httphelper__Coins* p0, coin__UxArray* p1); +extern GoUint32 SKY_wallet_Notes_ToReadable(WalletNotes_Handle p0, WalletReadableNotes_Handle* p1); -extern GoUint32 SKY_httphelper_Coins_Value(httphelper__Coins* p0, GoUint64* p1); +extern GoUint32 SKY_wallet_NotesFileExist(GoString p0, GoUint8* p1); -extern GoUint32 SKY_httphelper_Hours_UnmarshalJSON(httphelper__Hours* p0, GoSlice p1); +extern GoUint32 SKY_wallet_CreateNoteFileIfNotExist(GoString p0); -extern GoUint32 SKY_httphelper_Hours_MarshalJSON(httphelper__Hours* p0, coin__UxArray* p1); +extern GoUint32 SKY_wallet_NewReadableEntry(wallet__Entry* p0, ReadableEntry__Handle* p1); -extern GoUint32 SKY_httphelper_Hours_Value(httphelper__Hours* p0, GoUint64* p1); +extern GoUint32 SKY_wallet_LoadReadableEntry(GoString p0, ReadableEntry__Handle* p1); -extern GoUint32 SKY_cli_CheckWalletBalance(WebRpcClient__Handle p0, GoString p1, BalanceResult_Handle* p2); +extern GoUint32 SKY_wallet_NewReadableEntryFromPubkey(GoString p0, ReadableEntry__Handle* p1); -extern GoUint32 SKY_cli_GetBalanceOfAddresses(WebRpcClient__Handle p0, GoSlice p1, BalanceResult_Handle* p2); +extern GoUint32 SKY_wallet_ReadableEntry_Save(ReadableEntry__Handle p0, GoString p1); -extern GoUint32 SKY_poly1305_Verify(coin__UxArray* p0, GoSlice p1, coin__UxArray* p2, GoUint8* p3); +extern GoUint32 SKY_wallet_LoadReadableWallet(GoString p0, ReadableWallet__Handle* p1); -extern GoUint32 SKY_api_NewClient(GoString p0, Client__Handle* p1); +extern GoUint32 SKY_wallet_ReadableWallet_Save(ReadableWallet__Handle p0, GoString p1); -extern GoUint32 SKY_api_Client_CSRF(Client__Handle p0, GoString_* p1); +extern GoUint32 SKY_wallet_ReadableWallet_Load(ReadableWallet__Handle p0, GoString p1); -extern GoUint32 SKY_api_Client_Version(Client__Handle p0, Handle* p1); +extern GoUint32 SKY_wallet_ReadableWallet_Erase(ReadableWallet__Handle p0); -extern GoUint32 SKY_api_Client_Outputs(Client__Handle p0, Handle* p1); +extern GoUint32 SKY_secp256k1go_DecompressPoint(GoSlice p0, GoUint8 p1, GoSlice p2); -extern GoUint32 SKY_api_Client_OutputsForAddresses(Client__Handle p0, GoSlice p1, Handle* p2); +extern GoUint32 SKY_secp256k1go_RecoverPublicKey(GoSlice p0, GoSlice p1, GoInt p2, coin__UxArray* p3, GoInt* p4); -extern GoUint32 SKY_api_Client_OutputsForHashes(Client__Handle p0, GoSlice p1, Handle* p2); +extern GoUint32 SKY_secp256k1go_Multiply(GoSlice p0, GoSlice p1, coin__UxArray* p2); -extern GoUint32 SKY_api_Client_CoinSupply(Client__Handle p0, Handle* p1); +extern GoUint32 SKY_secp256k1go_BaseMultiply(GoSlice p0, coin__UxArray* p1); -extern GoUint32 SKY_api_Client_BlockByHash(Client__Handle p0, GoString p1, Handle* p2); +extern GoUint32 SKY_secp256k1go_BaseMultiplyAdd(GoSlice p0, GoSlice p1, coin__UxArray* p2); -extern GoUint32 SKY_api_Client_BlockBySeq(Client__Handle p0, GoUint64 p1, Handle* p2); +extern GoUint32 SKY_secp256k1go_GeneratePublicKey(GoSlice p0, coin__UxArray* p1); -extern GoUint32 SKY_api_Client_Blocks(Client__Handle p0, GoInt p1, GoInt p2, Handle* p3); +extern GoUint32 SKY_secp256k1go_SeckeyIsValid(GoSlice p0, GoInt* p1); -extern GoUint32 SKY_api_Client_LastBlocks(Client__Handle p0, GoInt p1, Handle* p2); +extern GoUint32 SKY_secp256k1go_PubkeyIsValid(GoSlice p0, GoInt* p1); -extern GoUint32 SKY_api_Client_BlockchainMetadata(Client__Handle p0, Handle* p1); +extern GoUint32 SKY_base58_String2Hex(GoString p0, coin__UxArray* p1); -extern GoUint32 SKY_api_Client_BlockchainProgress(Client__Handle p0, Handle* p1); +extern GoUint32 SKY_base58_Base58_ToInt(GoString p0, GoInt* p1); -extern GoUint32 SKY_api_Client_Balance(Client__Handle p0, GoSlice p1, wallet__BalancePair* p2); +extern GoUint32 SKY_base58_Base58_ToHex(GoString p0, coin__UxArray* p1); -extern GoUint32 SKY_api_Client_UxOut(Client__Handle p0, GoString p1, Handle* p2); +extern GoUint32 SKY_base58_Base58_Base582Int(GoString p0, GoInt* p1); -extern GoUint32 SKY_api_Client_AddressUxOuts(Client__Handle p0, GoString p1, Handle* p2); +extern GoUint32 SKY_base58_Base582Hex(GoString p0, coin__UxArray* p1); -extern GoUint32 SKY_api_Client_Wallet(Client__Handle p0, GoString p1, WalletResponse__Handle* p2); +extern GoUint32 SKY_base58_Base58_BitHex(GoString p0, coin__UxArray* p1); -extern GoUint32 SKY_api_Client_Wallets(Client__Handle p0, Wallets__Handle* p1); +extern GoUint32 SKY_base58_Int2Base58(GoInt p0, GoString_* p1); -extern GoUint32 SKY_api_Client_CreateUnencryptedWallet(Client__Handle p0, GoString p1, GoString p2, GoInt p3, WalletResponse__Handle* p4); +extern GoUint32 SKY_base58_Hex2Base58(GoSlice p0, GoString_* p1); -extern GoUint32 SKY_api_Client_CreateEncryptedWallet(Client__Handle p0, GoString p1, GoString p2, GoString p3, GoInt p4, WalletResponse__Handle* p5); +extern GoUint32 SKY_base58_Hex2Base58String(GoSlice p0, GoString_* p1); -extern GoUint32 SKY_api_Client_NewWalletAddress(Client__Handle p0, GoString p1, GoInt p2, GoString p3, Strings__Handle* p4); +extern GoUint32 SKY_base58_Hex2Base58Str(GoSlice p0, GoString_* p1); -extern GoUint32 SKY_api_Client_WalletBalance(Client__Handle p0, GoString p1, wallet__BalancePair* p2); +extern GoUint32 SKY_cli_GenerateWallet(GoString p0, Options__Handle* p1, GoUint64 p2, Wallet__Handle* p3); -extern GoUint32 SKY_api_Client_Spend(Client__Handle p0, GoString p1, GoString p2, GoUint64 p3, GoString p4, SpendResult_Handle* p5); +extern GoUint32 SKY_cli_MakeAlphanumericSeed(GoString_* p0); -extern GoUint32 SKY_api_Client_CreateTransaction(Client__Handle p0, Handle* p1, CreateTransactionResponse__Handle* p2); +extern GoUint32 SKY_webrpc_NewClient(GoString p0, WebRpcClient__Handle* p1); -extern GoUint32 SKY_api_Client_WalletTransactions(Client__Handle p0, GoString p1, Handle* p2); +extern GoUint32 SKY_webrpc_Client_CSRF(WebRpcClient__Handle p0, GoString_* p1); -extern GoUint32 SKY_api_Client_UpdateWallet(Client__Handle p0, GoString p1, GoString p2); +extern GoUint32 SKY_webrpc_Client_GetUnspentOutputs(WebRpcClient__Handle p0, GoSlice p1, OutputsResult_Handle* p2); -extern GoUint32 SKY_api_Client_WalletFolderName(Client__Handle p0, Handle* p1); +extern GoUint32 SKY_webrpc_Client_InjectTransactionString(WebRpcClient__Handle p0, GoString p1, GoString_* p2); -extern GoUint32 SKY_api_Client_NewSeed(Client__Handle p0, GoInt p1, GoString_* p2); +extern GoUint32 SKY_webrpc_Client_InjectTransaction(WebRpcClient__Handle p0, Transaction__Handle p1, GoString_* p2); -extern GoUint32 SKY_api_Client_GetWalletSeed(Client__Handle p0, GoString p1, GoString p2, GoString_* p3); +extern GoUint32 SKY_webrpc_Client_GetStatus(WebRpcClient__Handle p0, StatusResult_Handle* p1); -extern GoUint32 SKY_api_Client_NetworkConnection(Client__Handle p0, GoString p1, Handle* p2); +extern GoUint32 SKY_webrpc_Client_GetTransactionByID(WebRpcClient__Handle p0, GoString p1, TransactionResult_Handle* p2); -extern GoUint32 SKY_api_Client_NetworkConnections(Client__Handle p0, Handle* p1); +extern GoUint32 SKY_webrpc_Client_GetAddressUxOuts(WebRpcClient__Handle p0, GoSlice p1, coin__UxArray* p2); -extern GoUint32 SKY_api_Client_NetworkDefaultConnections(Client__Handle p0, Handle* p1); +extern GoUint32 SKY_webrpc_Client_GetBlocks(WebRpcClient__Handle p0, GoUint64 p1, GoUint64 p2, coin__UxArray* p3); -extern GoUint32 SKY_api_Client_NetworkTrustedConnections(Client__Handle p0, Handle* p1); +extern GoUint32 SKY_webrpc_Client_GetBlocksBySeq(WebRpcClient__Handle p0, GoSlice p1, coin__UxArray* p2); -extern GoUint32 SKY_api_Client_NetworkExchangeableConnections(Client__Handle p0, Handle* p1); +extern GoUint32 SKY_webrpc_Client_GetLastBlocks(WebRpcClient__Handle p0, GoUint64 p1, coin__UxArray* p2); -extern GoUint32 SKY_api_Client_PendingTransactions(Client__Handle p0, Handle* p1); +extern GoUint32 SKY_browser_Open(GoString p0); -extern GoUint32 SKY_api_Client_Transaction(Client__Handle p0, GoString p1, Handle* p2); +extern GoUint32 SKY_iputil_LocalhostIP(GoString_* p0); -extern GoUint32 SKY_api_Client_Transactions(Client__Handle p0, GoSlice p1, Handle* p2); +extern GoUint32 SKY_iputil_IsLocalhost(GoString p0, GoUint8* p1); -extern GoUint32 SKY_api_Client_ConfirmedTransactions(Client__Handle p0, GoSlice p1, Handle* p2); +extern GoUint32 SKY_iputil_SplitAddr(GoString p0, GoString_* p1, GoUint16* p2); -extern GoUint32 SKY_api_Client_UnconfirmedTransactions(Client__Handle p0, GoSlice p1, Handle* p2); +extern GoUint32 SKY_encoder_StructField_String(encoder__StructField* p0, GoString_* p1); -extern GoUint32 SKY_api_Client_InjectTransaction(Client__Handle p0, GoString p1, GoString_* p2); +extern GoUint32 SKY_encoder_ParseFields(GoSlice p0, GoSlice p1, GoStringMap_* p2); -extern GoUint32 SKY_api_Client_ResendUnconfirmedTransactions(Client__Handle p0, Handle* p1); +extern GoUint32 SKY_secp256k1_SumSHA256(GoSlice p0, coin__UxArray* p1); -extern GoUint32 SKY_api_Client_RawTransaction(Client__Handle p0, GoString p1, GoString_* p2); +extern GoUint32 SKY_secp256k1_RandByte(GoInt p0, coin__UxArray* p1); -extern GoUint32 SKY_api_Client_AddressTransactions(Client__Handle p0, GoString p1, Handle* p2); +extern GoUint32 SKY_cli_GenerateAddressesInFile(GoString p0, GoUint64 p1, PasswordReader__Handle p2, coin__UxArray* p3); -extern GoUint32 SKY_api_Client_Richlist(Client__Handle p0, api__RichlistParams* p1, Handle* p2); +extern GoUint32 SKY_cli_FormatAddressesAsJSON(GoSlice p0, GoString_* p1); -extern GoUint32 SKY_api_Client_AddressCount(Client__Handle p0, GoUint64* p1); +extern GoUint32 SKY_cli_FormatAddressesAsJoinedArray(GoSlice p0, GoString_* p1); -extern GoUint32 SKY_api_Client_UnloadWallet(Client__Handle p0, GoString p1); +extern GoUint32 SKY_cli_AddressesToStrings(GoSlice p0, coin__UxArray* p1); -extern GoUint32 SKY_api_Client_Health(Client__Handle p0, Handle* p1); +extern GoUint32 SKY_coin_AddUint64(GoUint64 p0, GoUint64 p1, GoUint64* p2); -extern GoUint32 SKY_api_Client_EncryptWallet(Client__Handle p0, GoString p1, GoString p2, WalletResponse__Handle* p3); +extern GoUint32 SKY_coin_Uint64ToInt64(GoUint64 p0, GoInt64* p1); -extern GoUint32 SKY_api_Client_DecryptWallet(Client__Handle p0, GoString p1, GoString p2, WalletResponse__Handle* p3); +extern GoUint32 SKY_coin_Int64ToUint64(GoInt64 p0, GoUint64* p1); -extern GoUint32 SKY_JsonEncode_Handle(Handle p0, GoString_* p1); +extern GoInt SKY_cipher_PubKeySlice_Len(coin__UxArray* p0); -extern GoUint32 SKY_Handle_Progress_GetCurrent(Handle p0, GoUint64* p1); +extern GoUint8 SKY_cipher_PubKeySlice_Less(coin__UxArray* p0, GoInt p1, GoInt p2); -extern GoUint32 SKY_Handle_Block_GetHeadSeq(Handle p0, GoUint64* p1); +extern GoUint32 SKY_cipher_PubKeySlice_Swap(coin__UxArray* p0, GoInt p1, GoInt p2); -extern GoUint32 SKY_Handle_Block_GetHeadHash(Handle p0, GoString_* p1); +extern GoUint32 SKY_cipher_RandByte(GoInt p0, coin__UxArray* p1); -extern GoUint32 SKY_Handle_Block_GetPreviousBlockHash(Handle p0, GoString_* p1); +extern GoUint32 SKY_cipher_NewPubKey(GoSlice p0, cipher__PubKey* p1); -extern GoUint32 SKY_Handle_Blocks_GetAt(Handle p0, GoUint64 p1, Handle* p2); +extern GoUint32 SKY_cipher_MustPubKeyFromHex(GoString p0, cipher__PubKey* p1); -extern GoUint32 SKY_Handle_Blocks_GetCount(Handle p0, GoUint64* p1); +extern GoUint32 SKY_cipher_PubKeyFromHex(GoString p0, cipher__PubKey* p1); -extern GoUint32 SKY_Handle_Connections_GetCount(Handle p0, GoUint64* p1); +extern GoUint32 SKY_cipher_PubKeyFromSecKey(cipher__SecKey* p0, cipher__PubKey* p1); -extern GoUint32 SKY_Handle_Strings_GetCount(Strings__Handle p0, GoUint32* p1); +extern GoUint32 SKY_cipher_PubKeyFromSig(cipher__Sig* p0, cipher__SHA256* p1, cipher__PubKey* p2); -extern GoUint32 SKY_Handle_Strings_Sort(Strings__Handle p0); +extern GoUint32 SKY_cipher_PubKey_Verify(cipher__PubKey* p0); -extern GoUint32 SKY_Handle_Strings_GetAt(Strings__Handle p0, GoInt p1, GoString_* p2); +extern GoUint32 SKY_cipher_PubKey_Hex(cipher__PubKey* p0, GoString_* p1); -extern GoUint32 SKY_api_Handle_Client_GetWalletDir(Client__Handle p0, GoString_* p1); +extern GoUint32 SKY_cipher_PubKey_ToAddressHash(cipher__PubKey* p0, cipher__Ripemd160* p1); -extern GoUint32 SKY_api_Handle_Client_GetWalletFileName(WalletResponse__Handle p0, GoString_* p1); +extern GoUint32 SKY_cipher_NewSecKey(GoSlice p0, cipher__SecKey* p1); -extern GoUint32 SKY_api_Handle_Client_GetWalletLabel(WalletResponse__Handle p0, GoString_* p1); +extern GoUint32 SKY_cipher_MustSecKeyFromHex(GoString p0, cipher__SecKey* p1); -extern GoUint32 SKY_api_Handle_Client_GetWalletFullPath(Client__Handle p0, WalletResponse__Handle p1, GoString_* p2); +extern GoUint32 SKY_cipher_SecKeyFromHex(GoString p0, cipher__SecKey* p1); -extern GoUint32 SKY_api_Handle_GetWalletMeta(Wallet__Handle p0, GoStringMap_* p1); +extern GoUint32 SKY_cipher_SecKey_Verify(cipher__SecKey* p0); -extern GoUint32 SKY_api_Handle_GetWalletEntriesCount(Wallet__Handle p0, GoUint32* p1); +extern GoUint32 SKY_cipher_SecKey_Hex(cipher__SecKey* p0, GoString_* p1); -extern GoUint32 SKY_api_Handle_Client_GetWalletResponseEntriesCount(WalletResponse__Handle p0, GoUint32* p1); +extern GoUint32 SKY_cipher_ECDH(cipher__PubKey* p0, cipher__SecKey* p1, coin__UxArray* p2); -extern GoUint32 SKY_api_Handle_WalletGetEntry(Wallet__Handle p0, GoUint32 p1, cipher__Address* p2, cipher__PubKey* p3); +extern GoUint32 SKY_cipher_NewSig(GoSlice p0, cipher__Sig* p1); -extern GoUint32 SKY_api_Handle_WalletResponseGetEntry(WalletResponse__Handle p0, GoUint32 p1, GoString_* p2, GoString_* p3); +extern GoUint32 SKY_cipher_MustSigFromHex(GoString p0, cipher__Sig* p1); -extern GoUint32 SKY_api_Handle_WalletResponseIsEncrypted(WalletResponse__Handle p0, GoUint8* p1); +extern GoUint32 SKY_cipher_SigFromHex(GoString p0, cipher__Sig* p1); -extern GoUint32 SKY_api_Handle_WalletResponseGetCryptoType(WalletResponse__Handle p0, GoString_* p1); +extern GoUint32 SKY_cipher_Sig_Hex(cipher__Sig* p0, GoString_* p1); -extern GoUint32 SKY_api_Handle_WalletsResponseGetCount(Wallets__Handle p0, GoUint32* p1); +extern GoUint32 SKY_cipher_SignHash(cipher__SHA256* p0, cipher__SecKey* p1, cipher__Sig* p2); -extern GoUint32 SKY_api_Handle_WalletsResponseGetAt(Wallets__Handle p0, GoUint32 p1, WalletResponse__Handle* p2); +extern GoUint32 SKY_cipher_ChkSig(cipher__Address* p0, cipher__SHA256* p1, cipher__Sig* p2); -extern GoUint32 SKY_api_Handle_GetWalletFolderAddress(Handle p0, GoString_* p1); +extern GoUint32 SKY_cipher_VerifySignedHash(cipher__Sig* p0, cipher__SHA256* p1); -extern GoUint32 SKY_api_Handle_GetWalletSeed(Wallet__Handle p0, GoString_* p1); +extern GoUint32 SKY_cipher_VerifySignature(cipher__PubKey* p0, cipher__Sig* p1, cipher__SHA256* p2); -extern GoUint32 SKY_api_Handle_GetWalletLastSeed(Wallet__Handle p0, GoString_* p1); +extern GoUint32 SKY_cipher_GenerateKeyPair(cipher__PubKey* p0, cipher__SecKey* p1); -extern GoUint32 SKY_api_Handle_GetBuildInfoData(BuildInfo_Handle p0, GoString_* p1, GoString_* p2, GoString_* p3); +extern GoUint32 SKY_cipher_GenerateDeterministicKeyPair(GoSlice p0, cipher__PubKey* p1, cipher__SecKey* p2); -extern GoUint32 SKY_secp256k1_GenerateKeyPair(coin__UxArray* p0, coin__UxArray* p1); +extern GoUint32 SKY_cipher_DeterministicKeyPairIterator(GoSlice p0, coin__UxArray* p1, cipher__PubKey* p2, cipher__SecKey* p3); -extern GoUint32 SKY_secp256k1_PubkeyFromSeckey(GoSlice p0, coin__UxArray* p1); +extern GoUint32 SKY_cipher_GenerateDeterministicKeyPairs(GoSlice p0, GoInt p1, coin__UxArray* p2); -extern GoUint32 SKY_secp256k1_UncompressPubkey(GoSlice p0, coin__UxArray* p1); +extern GoUint32 SKY_cipher_GenerateDeterministicKeyPairsSeed(GoSlice p0, GoInt p1, coin__UxArray* p2, coin__UxArray* p3); -extern GoUint32 SKY_secp256k1_UncompressedPubkeyFromSeckey(GoSlice p0, coin__UxArray* p1); +extern GoUint32 SKY_cipher_TestSecKey(cipher__SecKey* p0); -extern GoUint32 SKY_secp256k1_Secp256k1Hash(GoSlice p0, coin__UxArray* p1); +extern GoUint32 SKY_cipher_TestSecKeyHash(cipher__SecKey* p0, cipher__SHA256* p1); -extern GoUint32 SKY_secp256k1_GenerateDeterministicKeyPair(GoSlice p0, coin__UxArray* p1, coin__UxArray* p2); +extern GoUint32 SKY_secp256k1go_Signature_Create(Signature_Handle* p0); -extern GoUint32 SKY_secp256k1_DeterministicKeyPairIterator(GoSlice p0, coin__UxArray* p1, coin__UxArray* p2, coin__UxArray* p3); +extern GoUint32 SKY_secp256k1go_Signature_GetR(Signature_Handle p0, Number_Handle* p1); -extern GoUint32 SKY_secp256k1_Sign(GoSlice p0, GoSlice p1, coin__UxArray* p2); +extern GoUint32 SKY_secp256k1go_Signature_GetS(Signature_Handle p0, Number_Handle* p1); -extern GoUint32 SKY_secp256k1_SignDeterministic(GoSlice p0, GoSlice p1, GoSlice p2, coin__UxArray* p3); +extern GoUint32 SKY_secp256k1go_Signature_Print(Signature_Handle p0, GoString p1); -extern GoUint32 SKY_secp256k1_VerifySeckey(GoSlice p0, GoInt* p1); +extern GoUint32 SKY_secp256k1go_Signature_Verify(Signature_Handle p0, secp256k1go__XY* p1, Number_Handle p2, GoUint8* p3); -extern GoUint32 SKY_secp256k1_VerifyPubkey(GoSlice p0, GoInt* p1); +extern GoUint32 SKY_secp256k1go_Signature_Recover(Signature_Handle p0, secp256k1go__XY* p1, Number_Handle p2, GoInt p3, GoUint8* p4); -extern GoUint32 SKY_secp256k1_VerifySignatureValidity(GoSlice p0, GoInt* p1); +extern GoUint32 SKY_secp256k1go_Signature_Sign(Signature_Handle p0, Number_Handle p1, Number_Handle p2, Number_Handle p3, GoInt* p4, GoInt* p5); -extern GoUint32 SKY_secp256k1_VerifySignature(GoSlice p0, GoSlice p1, GoSlice p2, GoInt* p3); +extern GoUint32 SKY_secp256k1go_Signature_ParseBytes(Signature_Handle p0, GoSlice p1); -extern GoUint32 SKY_secp256k1_SignatureErrorString(GoSlice p0, GoSlice p1, GoSlice p2, GoString_* p3); +extern GoUint32 SKY_secp256k1go_Signature_Bytes(Signature_Handle p0, coin__UxArray* p1); -extern GoUint32 SKY_secp256k1_RecoverPubkey(GoSlice p0, GoSlice p1, coin__UxArray* p2); +extern GoUint32 SKY_cli_App_Run(App__Handle p0, GoString p1); -extern GoUint32 SKY_secp256k1_ECDH(GoSlice p0, GoSlice p1, coin__UxArray* p2); +extern GoUint32 SKY_cli_Config_GetCoin(Config__Handle p0, GoString_* p1); -extern GoUint32 SKY_cert_CreateCertIfNotExists(GoString p0, GoString p1, GoString p2, GoString p3); +extern GoUint32 SKY_cli_Config_GetRPCAddress(Config__Handle p0, GoString_* p1); -extern GoUint32 SKY_fee_VerifyTransactionFee(Transaction__Handle p0, GoUint64 p1); +extern GoUint32 SKY_cli_RPCClientFromApp(App__Handle p0, WebRpcClient__Handle* p1); -extern GoUint32 SKY_fee_VerifyTransactionFeeForHours(GoUint64 p0, GoUint64 p1); +extern GoUint32 SKY_cli_Getenv(GoString p0, GoString_* p1); -extern GoUint32 SKY_fee_RequiredFee(GoUint64 p0, GoUint64* p1); +extern GoUint32 SKY_cli_Setenv(GoString p0, GoString p1); -extern GoUint32 SKY_fee_RemainingHours(GoUint64 p0, GoUint64* p1); +extern GoUint32 SKY_poly1305_Verify(coin__UxArray* p0, GoSlice p1, coin__UxArray* p2, GoUint8* p3); -extern GoUint32 SKY_fee_TransactionFee(Transaction__Handle p0, GoUint64 p1, coin__UxArray* p2, GoUint64* p3); +extern GoUint32 SKY_wallet_NewBalance(GoUint64 p0, GoUint64 p1, wallet__Balance* p2); -extern GoUint32 SKY_iputil_LocalhostIP(GoString_* p0); +extern GoUint32 SKY_wallet_NewBalanceFromUxOut(GoUint64 p0, coin__UxOut* p1, wallet__Balance* p2); -extern GoUint32 SKY_iputil_IsLocalhost(GoString p0, GoUint8* p1); +extern GoUint32 SKY_wallet_Balance_Add(wallet__Balance* p0, wallet__Balance* p1, wallet__Balance* p2); -extern GoUint32 SKY_iputil_SplitAddr(GoString p0, GoString_* p1, GoUint16* p2); +extern GoUint32 SKY_wallet_Balance_Sub(wallet__Balance* p0, wallet__Balance* p1, wallet__Balance* p2); -extern GoUint32 SKY_cipher_Ripemd160_Set(cipher__Ripemd160* p0, GoSlice p1); +extern GoUint32 SKY_wallet_Balance_Equals(wallet__Balance* p0, wallet__Balance* p1, GoUint8* p2); -extern GoUint32 SKY_cipher_HashRipemd160(GoSlice p0, cipher__Ripemd160* p1); +extern GoUint32 SKY_wallet_Balance_IsZero(wallet__Balance* p0, GoUint8* p1); -extern GoUint32 SKY_cipher_SHA256_Set(cipher__SHA256* p0, GoSlice p1); +extern GoUint32 SKY_utc_UnixNow(GoInt64* p0); -extern GoUint32 SKY_cipher_SHA256_Hex(cipher__SHA256* p0, GoString_* p1); +extern GoUint32 SKY_httphelper_Address_UnmarshalJSON(httphelper__Address* p0, GoSlice p1); -extern GoUint32 SKY_cipher_SHA256_Xor(cipher__SHA256* p0, cipher__SHA256* p1, cipher__SHA256* p2); +extern GoUint32 SKY_httphelper_Address_MarshalJSON(httphelper__Address* p0, coin__UxArray* p1); -extern GoUint32 SKY_cipher_SumSHA256(GoSlice p0, cipher__SHA256* p1); +extern GoUint32 SKY_httphelper_Coins_UnmarshalJSON(httphelper__Coins* p0, GoSlice p1); -extern GoUint32 SKY_cipher_SHA256FromHex(GoString p0, cipher__SHA256* p1); +extern GoUint32 SKY_httphelper_Coins_MarshalJSON(httphelper__Coins* p0, coin__UxArray* p1); -extern GoUint32 SKY_cipher_DoubleSHA256(GoSlice p0, cipher__SHA256* p1); +extern GoUint32 SKY_httphelper_Coins_Value(httphelper__Coins* p0, GoUint64* p1); -extern GoUint32 SKY_cipher_AddSHA256(cipher__SHA256* p0, cipher__SHA256* p1, cipher__SHA256* p2); +extern GoUint32 SKY_httphelper_Hours_UnmarshalJSON(httphelper__Hours* p0, GoSlice p1); -extern GoUint32 SKY_cipher_Merkle(GoSlice* p0, cipher__SHA256* p1); +extern GoUint32 SKY_httphelper_Hours_MarshalJSON(httphelper__Hours* p0, coin__UxArray* p1); -extern GoUint32 SKY_cipher_MustSumSHA256(GoSlice p0, GoInt p1, cipher__SHA256* p2); +extern GoUint32 SKY_httphelper_Hours_Value(httphelper__Hours* p0, GoUint64* p1); -extern GoUint32 SKY_cipher_SHA256_Null(cipher__SHA256* p0, GoUint8* p1); +extern GoUint32 SKY_wallet_Entry_Verify(wallet__Entry* p0); -extern GoUint32 SKY_coin_Create_Transaction(Transaction__Handle* p0); +extern GoUint32 SKY_wallet_Entry_VerifyPublic(wallet__Entry* p0); -extern GoUint32 SKY_coin_Transaction_Copy(Transaction__Handle p0, Transaction__Handle* p1); +extern GoUint32 SKY_wallet_CreateAddresses(GoString p0, GoString p1, GoInt p2, GoUint8 p3, ReadableWallet__Handle* p4); -extern GoUint32 SKY_coin_GetTransactionObject(Transaction__Handle p0, coin__Transaction** p1); +extern GoUint32 SKY_wallet_GetSkycoinWalletEntry(cipher__PubKey* p0, cipher__SecKey* p1, ReadableEntry__Handle* p2); -extern GoUint32 SKY_coin_Transaction_ResetInputs(Transaction__Handle p0, GoInt p1); +extern GoUint32 SKY_wallet_GetBitcoinWalletEntry(cipher__PubKey* p0, cipher__SecKey* p1, ReadableEntry__Handle* p2); -extern GoUint32 SKY_coin_Transaction_GetInputsCount(Transaction__Handle p0, GoInt* p1); +extern GoUint32 SKY_secp256k1go_XYZ_Print(secp256k1go__XYZ* p0, GoString p1); -extern GoUint32 SKY_coin_Transaction_GetInputAt(Transaction__Handle p0, GoInt p1, cipher__SHA256* p2); +extern GoUint32 SKY_secp256k1go_XYZ_SetXY(secp256k1go__XYZ* p0, secp256k1go__XY* p1); -extern GoUint32 SKY_coin_Transaction_SetInputAt(Transaction__Handle p0, GoInt p1, cipher__SHA256* p2); +extern GoUint32 SKY_secp256k1go_XYZ_IsInfinity(secp256k1go__XYZ* p0, GoUint8* p1); -extern GoUint32 SKY_coin_Transaction_GetOutputsCount(Transaction__Handle p0, GoInt* p1); +extern GoUint32 SKY_secp256k1go_XYZ_IsValid(secp256k1go__XYZ* p0, GoUint8* p1); -extern GoUint32 SKY_coin_Transaction_GetOutputAt(Transaction__Handle p0, GoInt p1, coin__TransactionOutput* p2); +extern GoUint32 SKY_secp256k1go_XYZ_Normalize(secp256k1go__XYZ* p0); -extern GoUint32 SKY_coin_Transaction_SetOutputAt(Transaction__Handle p0, GoInt p1, coin__TransactionOutput* p2); +extern GoUint32 SKY_secp256k1go_XYZ_Equals(secp256k1go__XYZ* p0, secp256k1go__XYZ* p1, GoUint8* p2); -extern GoUint32 SKY_coin_Transaction_GetSignaturesCount(Transaction__Handle p0, GoInt* p1); +extern GoUint32 SKY_secp256k1go_XYZ_ECmult(secp256k1go__XYZ* p0, secp256k1go__XYZ* p1, Number_Handle p2, Number_Handle p3); -extern GoUint32 SKY_coin_Transaction_GetSignatureAt(Transaction__Handle p0, GoInt p1, cipher__Sig* p2); +extern GoUint32 SKY_secp256k1go_XYZ_Neg(secp256k1go__XYZ* p0, secp256k1go__XYZ* p1); -extern GoUint32 SKY_coin_Transaction_SetSignatureAt(Transaction__Handle p0, GoInt p1, cipher__Sig* p2); +extern GoUint32 SKY_secp256k1go_XYZ_Double(secp256k1go__XYZ* p0, secp256k1go__XYZ* p1); -extern GoUint32 SKY_coin_Transaction_PushSignature(Transaction__Handle p0, cipher__Sig* p1); +extern GoUint32 SKY_secp256k1go_XYZ_AddXY(secp256k1go__XYZ* p0, secp256k1go__XYZ* p1, secp256k1go__XY* p2); -extern GoUint32 SKY_coin_Transaction_ResetOutputs(Transaction__Handle p0, GoInt p1); +extern GoUint32 SKY_secp256k1go_XYZ_Add(secp256k1go__XYZ* p0, secp256k1go__XYZ* p1, secp256k1go__XYZ* p2); -extern GoUint32 SKY_coin_Transaction_ResetSignatures(Transaction__Handle p0, GoInt p1); +extern GoUint32 SKY_secp256k1go_ECmultGen(secp256k1go__XYZ* p0, Number_Handle p1); -extern GoUint32 SKY_coin_Transaction_Verify(Transaction__Handle p0); +extern GoUint32 SKY_encrypt_Sha256Xor_Encrypt(GoSlice p0, GoSlice p1, coin__UxArray* p2); -extern GoUint32 SKY_coin_Transaction_VerifyInput(Transaction__Handle p0, coin__UxArray* p1); +extern GoUint32 SKY_encrypt_Sha256Xor_Decrypt(GoSlice p0, GoSlice p1, coin__UxArray* p2); -extern GoUint32 SKY_coin_Transaction_PushInput(Transaction__Handle p0, cipher__SHA256* p1, GoUint16* p2); +extern GoUint32 SKY_droplet_FromString(GoString p0, GoUint64* p1); -extern GoUint32 SKY_coin_TransactionOutput_UxID(coin__TransactionOutput* p0, cipher__SHA256* p1, cipher__SHA256* p2); +extern GoUint32 SKY_droplet_ToString(GoUint64 p0, GoString_* p1); -extern GoUint32 SKY_coin_Transaction_PushOutput(Transaction__Handle p0, cipher__Address* p1, GoUint64 p2, GoUint64 p3); +extern GoUint32 SKY_wallet_CryptoTypeFromString(GoString p0, GoString_* p1); -extern GoUint32 SKY_coin_Transaction_SignInputs(Transaction__Handle p0, GoSlice p1); +extern void SKY_handle_close(Handle p0); -extern GoUint32 SKY_coin_Transaction_Size(Transaction__Handle p0, GoInt* p1); +extern GoUint32 SKY_handle_copy(Handle p0, Handle* p1); -extern GoUint32 SKY_coin_Transaction_Hash(Transaction__Handle p0, cipher__SHA256* p1); +extern GoUint32 SKY_logging_EnableColors(); -extern GoUint32 SKY_coin_Transaction_SizeHash(Transaction__Handle p0, GoInt* p1, cipher__SHA256* p2); +extern GoUint32 SKY_logging_DisableColors(); -extern GoUint32 SKY_coin_Transaction_TxID(Transaction__Handle p0, coin__UxArray* p1); +extern GoUint32 SKY_logging_Disable(); -extern GoUint32 SKY_coin_Transaction_TxIDHex(Transaction__Handle p0, GoString_* p1); +extern GoUint32 SKY_map_Get(GoStringMap_* p0, GoString p1, GoString_* p2); -extern GoUint32 SKY_coin_Transaction_UpdateHeader(Transaction__Handle p0); +extern GoUint8 SKY_map_HasKey(GoStringMap_* p0, GoString p1); -extern GoUint32 SKY_coin_Transaction_HashInner(Transaction__Handle p0, cipher__SHA256* p1); +extern GoUint32 SKY_map_Close(GoStringMap_* p0); -extern GoUint32 SKY_coin_Transaction_Serialize(Transaction__Handle p0, coin__UxArray* p1); +extern GoUint32 SKY_cipher_DecodeBase58Address(GoString p0, cipher__Address* p1); -extern GoUint32 SKY_coin_MustTransactionDeserialize(GoSlice p0, Transaction__Handle* p1); +extern GoUint32 SKY_cipher_MustDecodeBase58Address(GoString p0, cipher__Address* p1); -extern GoUint32 SKY_coin_TransactionDeserialize(GoSlice p0, Transaction__Handle* p1); +extern GoUint32 SKY_cipher_BitcoinMustDecodeBase58Address(GoString p0, cipher__Address* p1); -extern GoUint32 SKY_coin_Transaction_OutputHours(Transaction__Handle p0, GoUint64* p1); +extern GoUint32 SKY_cipher_AddressFromBytes(GoSlice p0, cipher__Address* p1); -extern GoUint32 SKY_coin_Create_Transactions(Transactions__Handle* p0); +extern GoUint32 SKY_cipher_AddressFromPubKey(cipher__PubKey* p0, cipher__Address* p1); -extern GoUint32 SKY_coin_GetTransactionsObject(Transactions__Handle p0, coin__UxArray** p1); +extern GoUint32 SKY_cipher_AddressFromSecKey(cipher__SecKey* p0, cipher__Address* p1); -extern GoUint32 SKY_coin_Transactions_Length(Transactions__Handle p0, GoInt* p1); +extern GoUint32 SKY_cipher_BitcoinDecodeBase58Address(GoString p0, cipher__Address* p1); -extern GoUint32 SKY_coin_Transactions_Add(Transactions__Handle p0, Transaction__Handle p1); +extern GoUint32 SKY_cipher_MustAddressFromBytes(GoSlice p0, cipher__Address* p1); -extern GoUint32 SKY_coin_Transactions_Fees(Transactions__Handle p0, FeeCalculator* p1, GoUint64* p2); +extern GoUint32 SKY_cipher_Address_Bytes(cipher__Address* p0, coin__UxArray* p1); -extern GoUint32 SKY_coin_Transactions_GetAt(Transactions__Handle p0, GoInt p1, Transaction__Handle* p2); +extern GoUint32 SKY_cipher_Address_Null(cipher__Address* p0, GoUint8* p1); -extern GoUint32 SKY_coin_Transactions_Hashes(Transactions__Handle p0, coin__UxArray* p1); +extern GoUint32 SKY_cipher_Address_BitcoinBytes(cipher__Address* p0, coin__UxArray* p1); -extern GoUint32 SKY_coin_Transactions_Size(Transactions__Handle p0, GoInt* p1); +extern GoUint32 SKY_cipher_Address_Verify(cipher__Address* p0, cipher__PubKey* p1); -extern GoUint32 SKY_coin_Transactions_TruncateBytesTo(Transactions__Handle p0, GoInt p1, Transactions__Handle* p2); +extern GoUint32 SKY_cipher_Address_String(cipher__Address* p0, GoString_* p1); -extern GoUint32 SKY_coin_SortTransactions(Transactions__Handle p0, FeeCalculator* p1, Transactions__Handle* p2); +extern GoUint32 SKY_cipher_Address_BitcoinString(cipher__Address* p0, GoString_* p1); -extern GoUint32 SKY_coin_NewSortableTransactions(Transactions__Handle p0, FeeCalculator* p1, SortableTransactionResult_Handle* p2); +extern GoUint32 SKY_cipher_Address_Checksum(cipher__Address* p0, cipher__Checksum* p1); -extern GoUint32 SKY_coin_SortableTransactions_Sort(SortableTransactionResult_Handle p0); +extern GoUint32 SKY_cipher_Address_BitcoinChecksum(cipher__Address* p0, cipher__Checksum* p1); -extern GoUint32 SKY_coin_SortableTransactions_Len(SortableTransactionResult_Handle p0, GoInt* p1); +extern GoUint32 SKY_cipher_BitcoinAddressFromPubkey(cipher__PubKey* p0, GoString_* p1); -extern GoUint32 SKY_coin_SortableTransactions_Less(SortableTransactionResult_Handle p0, GoInt p1, GoInt p2, GoUint8* p3); +extern GoUint32 SKY_cipher_BitcoinWalletImportFormatFromSeckey(cipher__SecKey* p0, GoString_* p1); -extern GoUint32 SKY_coin_SortableTransactions_Swap(SortableTransactionResult_Handle p0, GoInt p1, GoInt p2); +extern GoUint32 SKY_cipher_BitcoinAddressFromBytes(GoSlice p0, cipher__Address* p1); -extern GoUint32 SKY_coin_VerifyTransactionCoinsSpending(coin__UxArray* p0, coin__UxArray* p1); +extern GoUint32 SKY_cipher_SecKeyFromWalletImportFormat(GoString p0, cipher__SecKey* p1); -extern GoUint32 SKY_coin_VerifyTransactionHoursSpending(GoUint64 p0, coin__UxArray* p1, coin__UxArray* p2); +extern GoUint32 SKY_cipher_MustSecKeyFromWalletImportFormat(GoString p0, cipher__SecKey* p1); -extern GoUint32 SKY_encrypt_Sha256Xor_Encrypt(GoSlice p0, GoSlice p1, coin__UxArray* p2); +extern GoUint32 SKY_JsonEncode_Handle(Handle p0, GoString_* p1); -extern GoUint32 SKY_encrypt_Sha256Xor_Decrypt(GoSlice p0, GoSlice p1, coin__UxArray* p2); +extern GoUint32 SKY_Handle_Progress_GetCurrent(Handle p0, GoUint64* p1); -extern GoUint32 SKY_cli_GenerateAddressesInFile(GoString p0, GoUint64 p1, PasswordReader__Handle p2, coin__UxArray* p3); +extern GoUint32 SKY_Handle_Block_GetHeadSeq(Handle p0, GoUint64* p1); -extern GoUint32 SKY_cli_FormatAddressesAsJSON(GoSlice p0, GoString_* p1); +extern GoUint32 SKY_Handle_Block_GetHeadHash(Handle p0, GoString_* p1); -extern GoUint32 SKY_cli_FormatAddressesAsJoinedArray(GoSlice p0, GoString_* p1); +extern GoUint32 SKY_Handle_Block_GetPreviousBlockHash(Handle p0, GoString_* p1); -extern GoUint32 SKY_cli_AddressesToStrings(GoSlice p0, coin__UxArray* p1); +extern GoUint32 SKY_Handle_Blocks_GetAt(Handle p0, GoUint64 p1, Handle* p2); -extern GoUint32 SKY_cli_LoadConfig(Config__Handle* p0); +extern GoUint32 SKY_Handle_Blocks_GetCount(Handle p0, GoUint64* p1); -extern GoUint32 SKY_cli_Config_FullWalletPath(Config__Handle p0, GoString_* p1); +extern GoUint32 SKY_Handle_Connections_GetCount(Handle p0, GoUint64* p1); -extern GoUint32 SKY_cli_Config_FullDBPath(Config__Handle p0, GoString_* p1); +extern GoUint32 SKY_Handle_Strings_GetCount(Strings__Handle p0, GoUint32* p1); -extern GoUint32 SKY_cli_NewApp(Config__Handle p0, App__Handle* p1); +extern GoUint32 SKY_Handle_Strings_Sort(Strings__Handle p0); -extern GoUint32 SKY_cli_RPCClientFromContext(Context__Handle p0, WebRpcClient__Handle* p1); +extern GoUint32 SKY_Handle_Strings_GetAt(Strings__Handle p0, GoInt p1, GoString_* p2); -extern GoUint32 SKY_cli_ConfigFromContext(Context__Handle p0, Config__Handle* p1); +extern GoUint32 SKY_api_Handle_Client_GetWalletDir(Client__Handle p0, GoString_* p1); -extern GoUint32 SKY_cli_PasswordFromBytes_Password(coin__UxArray* p0, coin__UxArray* p1); +extern GoUint32 SKY_api_Handle_Client_GetWalletFileName(WalletResponse__Handle p0, GoString_* p1); -extern GoUint32 SKY_cli_PasswordFromTerm_Password(coin__UxArray* p0); +extern GoUint32 SKY_api_Handle_Client_GetWalletLabel(WalletResponse__Handle p0, GoString_* p1); -extern void SKY_handle_close(Handle p0); +extern GoUint32 SKY_api_Handle_Client_GetWalletFullPath(Client__Handle p0, WalletResponse__Handle p1, GoString_* p2); -extern GoUint32 SKY_handle_copy(Handle p0, Handle* p1); +extern GoUint32 SKY_api_Handle_GetWalletMeta(Wallet__Handle p0, GoStringMap_* p1); -extern GoUint32 SKY_encoder_StructField_String(encoder__StructField* p0, GoString_* p1); +extern GoUint32 SKY_api_Handle_GetWalletEntriesCount(Wallet__Handle p0, GoUint32* p1); -extern GoUint32 SKY_encoder_ParseFields(GoSlice p0, GoSlice p1, GoStringMap_* p2); +extern GoUint32 SKY_api_Handle_Client_GetWalletResponseEntriesCount(WalletResponse__Handle p0, GoUint32* p1); + +extern GoUint32 SKY_api_Handle_WalletGetEntry(Wallet__Handle p0, GoUint32 p1, cipher__Address* p2, cipher__PubKey* p3); + +extern GoUint32 SKY_api_Handle_WalletResponseGetEntry(WalletResponse__Handle p0, GoUint32 p1, GoString_* p2, GoString_* p3); + +extern GoUint32 SKY_api_Handle_WalletResponseIsEncrypted(WalletResponse__Handle p0, GoUint8* p1); + +extern GoUint32 SKY_api_Handle_WalletResponseGetCryptoType(WalletResponse__Handle p0, GoString_* p1); + +extern GoUint32 SKY_api_Handle_WalletsResponseGetCount(Wallets__Handle p0, GoUint32* p1); + +extern GoUint32 SKY_api_Handle_WalletsResponseGetAt(Wallets__Handle p0, GoUint32 p1, WalletResponse__Handle* p2); + +extern GoUint32 SKY_api_Handle_GetWalletFolderAddress(Handle p0, GoString_* p1); + +extern GoUint32 SKY_api_Handle_GetWalletSeed(Wallet__Handle p0, GoString_* p1); + +extern GoUint32 SKY_api_Handle_GetWalletLastSeed(Wallet__Handle p0, GoString_* p1); + +extern GoUint32 SKY_api_Handle_GetBuildInfoData(BuildInfo_Handle p0, GoString_* p1, GoString_* p2, GoString_* p3); + +extern GoUint32 SKY_ripemd160_New(Hash_Handle* p0); + +extern GoUint32 SKY_ripemd160_Write(Hash_Handle p0, GoSlice p1, GoInt* p2); + +extern GoUint32 SKY_ripemd160_Sum(Hash_Handle p0, GoSlice p1, coin__UxArray* p2); + +extern GoUint32 SKY_secp256k1go_Number_Create(Number_Handle* p0); + +extern GoUint32 SKY_secp256k1go_Number_Print(Number_Handle p0, GoString p1); + +extern GoUint32 SKY_secp256k1go_Number_SetHex(Number_Handle p0, GoString p1); + +extern GoUint32 SKY_secp256k1go_Number_IsOdd(Number_Handle p0, GoUint8* p1); + +extern GoUint32 SKY_secp256k1go_Number_IsEqual(Number_Handle p0, Number_Handle p1, GoUint8* p2); extern GoUint32 SKY_coin_UxOut_Hash(coin__UxOut* p0, cipher__SHA256* p1); @@ -1316,307 +1356,267 @@ extern GoUint32 SKY_coin_AddressUxOuts_Length(AddressUxOuts_Handle p0, GoInt* p1 extern GoUint32 SKY_coin_AddressUxOuts_Set(AddressUxOuts_Handle p0, cipher__Address* p1, coin__UxArray* p2); -extern GoUint32 SKY_scrypt_Key(GoSlice p0, GoSlice p1, GoInt p2, GoInt p3, GoInt p4, GoInt p5, coin__UxArray* p6); - -extern GoUint32 SKY_wallet_NewError(GoInterface p0); - -extern GoUint32 SKY_wallet_NewWallet(GoString p0, Options__Handle p1, Wallet__Handle* p2); - -extern GoUint32 SKY_wallet_Wallet_Lock(Wallet__Handle p0, GoSlice p1, GoString p2); - -extern GoUint32 SKY_wallet_Wallet_Unlock(Wallet__Handle p0, GoSlice p1, Wallet__Handle* p2); - -extern GoUint32 SKY_wallet_Load(GoString p0, Wallet__Handle* p1); - -extern GoUint32 SKY_wallet_Wallet_Save(Wallet__Handle p0, GoString p1); - -extern GoUint32 SKY_wallet_Wallet_Validate(Wallet__Handle p0); - -extern GoUint32 SKY_wallet_Wallet_Type(Wallet__Handle p0, GoString_* p1); - -extern GoUint32 SKY_wallet_Wallet_Version(Wallet__Handle p0, GoString_* p1); - -extern GoUint32 SKY_wallet_Wallet_Filename(Wallet__Handle p0, GoString_* p1); - -extern GoUint32 SKY_wallet_Wallet_Label(Wallet__Handle p0, GoString_* p1); - -extern GoUint32 SKY_wallet_Wallet_IsEncrypted(Wallet__Handle p0, GoUint8* p1); - -extern GoUint32 SKY_wallet_Wallet_GenerateAddresses(Wallet__Handle p0, GoUint64 p1, coin__UxArray* p2); - -extern GoUint32 SKY_wallet_Wallet_GetAddresses(Wallet__Handle p0, coin__UxArray* p1); - -extern GoUint32 SKY_wallet_Wallet_GetEntry(Wallet__Handle p0, cipher__Address* p1, wallet__Entry* p2, GoUint8* p3); - -extern GoUint32 SKY_wallet_Wallet_AddEntry(Wallet__Handle p0, wallet__Entry* p1); - -extern GoUint32 SKY_wallet_DistributeSpendHours(GoUint64 p0, GoUint64 p1, GoUint8 p2, GoUint64* p3, coin__UxArray* p4, GoUint64* p5); - -extern GoUint32 SKY_wallet_DistributeCoinHoursProportional(GoSlice p0, GoUint64 p1, coin__UxArray* p2); - -extern GoUint32 SKY_wallet_NewUxBalances(GoUint64 p0, coin__UxArray* p1, coin__UxArray* p2); - -extern GoUint32 SKY_wallet_NewUxBalance(GoUint64 p0, coin__UxOut* p1, wallet__UxBalance* p2); +extern GoUint32 SKY_encrypt_ScryptChacha20poly1305_Encrypt(encrypt__ScryptChacha20poly1305* p0, GoSlice p1, GoSlice p2, coin__UxArray* p3); -extern GoUint32 SKY_wallet_ChooseSpendsMinimizeUxOuts(GoSlice p0, GoUint64 p1, GoUint64 p2, coin__UxArray* p3); +extern GoUint32 SKY_encrypt_ScryptChacha20poly1305_Decrypt(encrypt__ScryptChacha20poly1305* p0, GoSlice p1, GoSlice p2, coin__UxArray* p3); -extern GoUint32 SKY_wallet_ChooseSpendsMaximizeUxOuts(GoSlice p0, GoUint64 p1, GoUint64 p2, coin__UxArray* p3); +extern void SKY_wallet_CreateOptionsHandle(GoString p0, GoString p1, GoString p2, GoUint8 p3, GoString p4, GoString p5, GoUint64 p6, Options__Handle* p7); extern GoUint32 SKY_cli_AddPrivateKey(Wallet__Handle p0, GoString p1); extern GoUint32 SKY_cli_AddPrivateKeyToFile(GoString p0, GoString p1, PasswordReader__Handle p2); -extern GoUint32 SKY_cli_App_Run(App__Handle p0, GoString p1); +extern GoUint32 SKY_secp256k1_GenerateKeyPair(coin__UxArray* p0, coin__UxArray* p1); -extern GoUint32 SKY_cli_Config_GetCoin(Config__Handle p0, GoString_* p1); +extern GoUint32 SKY_secp256k1_PubkeyFromSeckey(GoSlice p0, coin__UxArray* p1); -extern GoUint32 SKY_cli_Config_GetRPCAddress(Config__Handle p0, GoString_* p1); +extern GoUint32 SKY_secp256k1_UncompressPubkey(GoSlice p0, coin__UxArray* p1); -extern GoUint32 SKY_cli_RPCClientFromApp(App__Handle p0, WebRpcClient__Handle* p1); +extern GoUint32 SKY_secp256k1_UncompressedPubkeyFromSeckey(GoSlice p0, coin__UxArray* p1); -extern GoUint32 SKY_cli_Getenv(GoString p0, GoString_* p1); +extern GoUint32 SKY_secp256k1_Secp256k1Hash(GoSlice p0, coin__UxArray* p1); -extern GoUint32 SKY_cli_Setenv(GoString p0, GoString p1); +extern GoUint32 SKY_secp256k1_GenerateDeterministicKeyPair(GoSlice p0, coin__UxArray* p1, coin__UxArray* p2); -extern GoUint32 SKY_webrpc_NewClient(GoString p0, WebRpcClient__Handle* p1); +extern GoUint32 SKY_secp256k1_DeterministicKeyPairIterator(GoSlice p0, coin__UxArray* p1, coin__UxArray* p2, coin__UxArray* p3); -extern GoUint32 SKY_webrpc_Client_CSRF(WebRpcClient__Handle p0, GoString_* p1); +extern GoUint32 SKY_secp256k1_Sign(GoSlice p0, GoSlice p1, coin__UxArray* p2); -extern GoUint32 SKY_webrpc_Client_GetUnspentOutputs(WebRpcClient__Handle p0, GoSlice p1, OutputsResult_Handle* p2); +extern GoUint32 SKY_secp256k1_SignDeterministic(GoSlice p0, GoSlice p1, GoSlice p2, coin__UxArray* p3); -extern GoUint32 SKY_webrpc_Client_InjectTransactionString(WebRpcClient__Handle p0, GoString p1, GoString_* p2); +extern GoUint32 SKY_secp256k1_VerifySeckey(GoSlice p0, GoInt* p1); -extern GoUint32 SKY_webrpc_Client_InjectTransaction(WebRpcClient__Handle p0, Transaction__Handle p1, GoString_* p2); +extern GoUint32 SKY_secp256k1_VerifyPubkey(GoSlice p0, GoInt* p1); -extern GoUint32 SKY_webrpc_Client_GetStatus(WebRpcClient__Handle p0, StatusResult_Handle* p1); +extern GoUint32 SKY_secp256k1_VerifySignatureValidity(GoSlice p0, GoInt* p1); -extern GoUint32 SKY_webrpc_Client_GetTransactionByID(WebRpcClient__Handle p0, GoString p1, TransactionResult_Handle* p2); +extern GoUint32 SKY_secp256k1_VerifySignature(GoSlice p0, GoSlice p1, GoSlice p2, GoInt* p3); -extern GoUint32 SKY_webrpc_Client_GetAddressUxOuts(WebRpcClient__Handle p0, GoSlice p1, coin__UxArray* p2); +extern GoUint32 SKY_secp256k1_SignatureErrorString(GoSlice p0, GoSlice p1, GoSlice p2, GoString_* p3); -extern GoUint32 SKY_webrpc_Client_GetBlocks(WebRpcClient__Handle p0, GoUint64 p1, GoUint64 p2, coin__UxArray* p3); +extern GoUint32 SKY_secp256k1_RecoverPubkey(GoSlice p0, GoSlice p1, coin__UxArray* p2); -extern GoUint32 SKY_webrpc_Client_GetBlocksBySeq(WebRpcClient__Handle p0, GoSlice p1, coin__UxArray* p2); +extern GoUint32 SKY_secp256k1_ECDH(GoSlice p0, GoSlice p1, coin__UxArray* p2); -extern GoUint32 SKY_webrpc_Client_GetLastBlocks(WebRpcClient__Handle p0, GoUint64 p1, coin__UxArray* p2); +extern GoUint32 SKY_apputil_CatchInterruptPanic(); -extern GoUint32 SKY_droplet_FromString(GoString p0, GoUint64* p1); +extern GoUint32 SKY_apputil_CatchDebug(); -extern GoUint32 SKY_droplet_ToString(GoUint64 p0, GoString_* p1); +extern GoUint32 SKY_apputil_PrintProgramStatus(); -extern GoUint32 SKY_bip39_NewDefaultMnemomic(GoString_* p0); +extern GoUint32 SKY_cert_CreateCertIfNotExists(GoString p0, GoString p1, GoString p2, GoString p3); -extern GoUint32 SKY_bip39_NewEntropy(GoInt p0, coin__UxArray* p1); +extern GoUint32 SKY_fee_VerifyTransactionFee(Transaction__Handle p0, GoUint64 p1); -extern GoUint32 SKY_bip39_NewMnemonic(GoSlice p0, GoString_* p1); +extern GoUint32 SKY_fee_VerifyTransactionFeeForHours(GoUint64 p0, GoUint64 p1); -extern GoUint32 SKY_bip39_MnemonicToByteArray(GoString p0, coin__UxArray* p1); +extern GoUint32 SKY_fee_RequiredFee(GoUint64 p0, GoUint64* p1); -extern GoUint32 SKY_bip39_IsMnemonicValid(GoString p0, GoUint8* p1); +extern GoUint32 SKY_fee_RemainingHours(GoUint64 p0, GoUint64* p1); -extern GoUint32 SKY_secp256k1go_XYZ_Print(secp256k1go__XYZ* p0, GoString p1); +extern GoUint32 SKY_fee_TransactionFee(Transaction__Handle p0, GoUint64 p1, coin__UxArray* p2, GoUint64* p3); -extern GoUint32 SKY_secp256k1go_XYZ_SetXY(secp256k1go__XYZ* p0, secp256k1go__XY* p1); +extern GoUint32 SKY_cli_LoadConfig(Config__Handle* p0); -extern GoUint32 SKY_secp256k1go_XYZ_IsInfinity(secp256k1go__XYZ* p0, GoUint8* p1); +extern GoUint32 SKY_cli_Config_FullWalletPath(Config__Handle p0, GoString_* p1); -extern GoUint32 SKY_secp256k1go_XYZ_IsValid(secp256k1go__XYZ* p0, GoUint8* p1); +extern GoUint32 SKY_cli_Config_FullDBPath(Config__Handle p0, GoString_* p1); -extern GoUint32 SKY_secp256k1go_XYZ_Normalize(secp256k1go__XYZ* p0); +extern GoUint32 SKY_cli_NewApp(Config__Handle p0, App__Handle* p1); -extern GoUint32 SKY_secp256k1go_XYZ_Equals(secp256k1go__XYZ* p0, secp256k1go__XYZ* p1, GoUint8* p2); +extern GoUint32 SKY_cli_RPCClientFromContext(Context__Handle p0, WebRpcClient__Handle* p1); -extern GoUint32 SKY_secp256k1go_XYZ_ECmult(secp256k1go__XYZ* p0, secp256k1go__XYZ* p1, Number_Handle p2, Number_Handle p3); +extern GoUint32 SKY_cli_ConfigFromContext(Context__Handle p0, Config__Handle* p1); -extern GoUint32 SKY_secp256k1go_XYZ_Neg(secp256k1go__XYZ* p0, secp256k1go__XYZ* p1); +extern GoUint32 SKY_cli_PasswordFromBytes_Password(coin__UxArray* p0, coin__UxArray* p1); -extern GoUint32 SKY_secp256k1go_XYZ_Double(secp256k1go__XYZ* p0, secp256k1go__XYZ* p1); +extern GoUint32 SKY_cli_PasswordFromTerm_Password(coin__UxArray* p0); -extern GoUint32 SKY_secp256k1go_XYZ_AddXY(secp256k1go__XYZ* p0, secp256k1go__XYZ* p1, secp256k1go__XY* p2); +extern GoUint32 SKY_cli_CreateRawTxFromWallet(WebRpcClient__Handle p0, GoString p1, GoString p2, GoSlice p3, PasswordReader__Handle p4, Transaction__Handle* p5); -extern GoUint32 SKY_secp256k1go_XYZ_Add(secp256k1go__XYZ* p0, secp256k1go__XYZ* p1, secp256k1go__XYZ* p2); +extern GoUint32 SKY_cli_CreateRawTxFromAddress(WebRpcClient__Handle p0, GoString p1, GoString p2, GoString p3, GoSlice p4, PasswordReader__Handle p5, Transaction__Handle* p6); -extern GoUint32 SKY_secp256k1go_ECmultGen(secp256k1go__XYZ* p0, Number_Handle p1); +extern GoUint32 SKY_cli_CreateRawTx(WebRpcClient__Handle p0, Wallet__Handle p1, GoSlice p2, GoString p3, GoSlice p4, GoSlice p5, Transaction__Handle* p6); -extern GoUint32 SKY_wallet_NewNotesFilename(GoString_* p0); +extern GoUint32 SKY_cli_NewTransaction(GoSlice p0, GoSlice p1, GoSlice p2, Transaction__Handle* p3); -extern GoUint32 SKY_wallet_LoadNotes(GoString p0, WalletNotes_Handle* p1); +extern GoUint32 SKY_file_InitDataDir(GoString p0, GoString_* p1); -extern GoUint32 SKY_wallet_LoadReadableNotes(GoString p0, WalletReadableNotes_Handle* p1); +extern GoUint32 SKY_file_UserHome(GoString_* p0); -extern GoUint32 SKY_wallet_ReadableNotes_Load(WalletReadableNotes_Handle p0, GoString p1); +extern GoUint32 SKY_file_ResolveResourceDirectory(GoString p0, GoString_* p1); -extern GoUint32 SKY_wallet_ReadableNotes_ToNotes(WalletReadableNotes_Handle p0, WalletNotes_Handle* p1); +extern GoUint32 SKY_file_DetermineResourcePath(GoString p0, GoString p1, GoString p2, GoString_* p3); -extern GoUint32 SKY_wallet_ReadableNotes_Save(WalletReadableNotes_Handle p0, GoString p1); +extern GoUint32 SKY_cli_GetWalletOutputsFromFile(WebRpcClient__Handle p0, GoString p1, OutputsResult_Handle* p2); -extern GoUint32 SKY_wallet_NewReadableNote(wallet__Note* p0, wallet__ReadableNote* p1); +extern GoUint32 SKY_cli_GetWalletOutputs(WebRpcClient__Handle p0, Wallet__Handle* p1, OutputsResult_Handle* p2); -extern GoUint32 SKY_wallet_NewReadableNotesFromNotes(WalletNotes_Handle p0, WalletReadableNotes_Handle* p1); +extern GoUint32 SKY_testutil_MakeAddress(cipher__Address* p0); -extern GoUint32 SKY_wallet_Notes_Save(WalletNotes_Handle p0, GoString p1, GoString p2); +extern GoUint32 SKY_secp256k1go_Field_String(secp256k1go__Field* p0, GoString_* p1); -extern GoUint32 SKY_wallet_Notes_SaveNote(WalletNotes_Handle p0, GoString p1, wallet__Note* p2); +extern GoUint32 SKY_secp256k1go_Field_Print(secp256k1go__Field* p0, GoString p1); -extern GoUint32 SKY_wallet_Notes_ToReadable(WalletNotes_Handle p0, WalletReadableNotes_Handle* p1); +extern GoUint32 SKY_secp256k1go_Field_SetB32(secp256k1go__Field* p0, GoSlice p1); -extern GoUint32 SKY_wallet_NotesFileExist(GoString p0, GoUint8* p1); +extern GoUint32 SKY_secp256k1go_Field_SetBytes(secp256k1go__Field* p0, GoSlice p1); -extern GoUint32 SKY_wallet_CreateNoteFileIfNotExist(GoString p0); +extern GoUint32 SKY_secp256k1go_Field_SetHex(secp256k1go__Field* p0, GoString p1); -extern GoUint32 SKY_encrypt_ScryptChacha20poly1305_Encrypt(encrypt__ScryptChacha20poly1305* p0, GoSlice p1, GoSlice p2, coin__UxArray* p3); +extern GoUint32 SKY_secp256k1go_Field_IsOdd(secp256k1go__Field* p0, GoUint8* p1); -extern GoUint32 SKY_encrypt_ScryptChacha20poly1305_Decrypt(encrypt__ScryptChacha20poly1305* p0, GoSlice p1, GoSlice p2, coin__UxArray* p3); +extern GoUint32 SKY_secp256k1go_Field_IsZero(secp256k1go__Field* p0, GoUint8* p1); -extern GoUint32 SKY_coin_AddUint64(GoUint64 p0, GoUint64 p1, GoUint64* p2); +extern GoUint32 SKY_secp256k1go_Field_SetInt(secp256k1go__Field* p0, GoUint32 p1); -extern GoUint32 SKY_coin_Uint64ToInt64(GoUint64 p0, GoInt64* p1); +extern GoUint32 SKY_secp256k1go_Field_Normalize(secp256k1go__Field* p0); -extern GoUint32 SKY_coin_Int64ToUint64(GoInt64 p0, GoUint64* p1); +extern GoUint32 SKY_secp256k1go_Field_GetB32(secp256k1go__Field* p0, GoSlice p1); -extern GoUint32 SKY_wallet_NewBalance(GoUint64 p0, GoUint64 p1, wallet__Balance* p2); +extern GoUint32 SKY_secp256k1go_Field_Equals(secp256k1go__Field* p0, secp256k1go__Field* p1, GoUint8* p2); -extern GoUint32 SKY_wallet_NewBalanceFromUxOut(GoUint64 p0, coin__UxOut* p1, wallet__Balance* p2); +extern GoUint32 SKY_secp256k1go_Field_SetAdd(secp256k1go__Field* p0, secp256k1go__Field* p1); -extern GoUint32 SKY_wallet_Balance_Add(wallet__Balance* p0, wallet__Balance* p1, wallet__Balance* p2); +extern GoUint32 SKY_secp256k1go_Field_MulInt(secp256k1go__Field* p0, GoUint32 p1); -extern GoUint32 SKY_wallet_Balance_Sub(wallet__Balance* p0, wallet__Balance* p1, wallet__Balance* p2); +extern GoUint32 SKY_secp256k1go_Field_Negate(secp256k1go__Field* p0, secp256k1go__Field* p1, GoUint32 p2); -extern GoUint32 SKY_wallet_Balance_Equals(wallet__Balance* p0, wallet__Balance* p1, GoUint8* p2); +extern GoUint32 SKY_secp256k1go_Field_Inv(secp256k1go__Field* p0, secp256k1go__Field* p1); -extern GoUint32 SKY_wallet_Balance_IsZero(wallet__Balance* p0, GoUint8* p1); +extern GoUint32 SKY_secp256k1go_Field_Sqrt(secp256k1go__Field* p0, secp256k1go__Field* p1); -extern GoUint32 SKY_ripemd160_New(Hash_Handle* p0); +extern GoUint32 SKY_secp256k1go_Field_InvVar(secp256k1go__Field* p0, secp256k1go__Field* p1); -extern GoUint32 SKY_ripemd160_Write(Hash_Handle p0, GoSlice p1, GoInt* p2); +extern GoUint32 SKY_secp256k1go_Field_Mul(secp256k1go__Field* p0, secp256k1go__Field* p1, secp256k1go__Field* p2); -extern GoUint32 SKY_ripemd160_Sum(Hash_Handle p0, GoSlice p1, coin__UxArray* p2); +extern GoUint32 SKY_secp256k1go_Field_Sqr(secp256k1go__Field* p0, secp256k1go__Field* p1); -extern GoUint32 SKY_coin_NewBlock(Block__Handle p0, GoUint64 p1, cipher__SHA256* p2, Transactions__Handle p3, FeeCalculator* p4, Block__Handle* p5); +extern GoUint32 SKY_scrypt_Key(GoSlice p0, GoSlice p1, GoInt p2, GoInt p3, GoInt p4, GoInt p5, coin__UxArray* p6); -extern GoUint32 SKY_coin_SignedBlock_VerifySignature(coin__SignedBlock* p0, cipher__PubKey* p1); +extern GoUint32 SKY_cipher_Ripemd160_Set(cipher__Ripemd160* p0, GoSlice p1); -extern GoUint32 SKY_coin_NewGenesisBlock(cipher__Address* p0, GoUint64 p1, GoUint64 p2, Block__Handle* p3); +extern GoUint32 SKY_cipher_HashRipemd160(GoSlice p0, cipher__Ripemd160* p1); -extern GoUint32 SKY_coin_Block_HashHeader(Block__Handle p0, cipher__SHA256* p1); +extern GoUint32 SKY_cipher_SHA256_Set(cipher__SHA256* p0, GoSlice p1); -extern GoUint32 SKY_coin_Block_PreHashHeader(Block__Handle p0, cipher__SHA256* p1); +extern GoUint32 SKY_cipher_SHA256_Hex(cipher__SHA256* p0, GoString_* p1); -extern GoUint32 SKY_coin_Block_Time(Block__Handle p0, GoUint64* p1); +extern GoUint32 SKY_cipher_SHA256_Xor(cipher__SHA256* p0, cipher__SHA256* p1, cipher__SHA256* p2); -extern GoUint32 SKY_coin_Block_Seq(Block__Handle p0, GoUint64* p1); +extern GoUint32 SKY_cipher_SumSHA256(GoSlice p0, cipher__SHA256* p1); -extern GoUint32 SKY_coin_Block_HashBody(Block__Handle p0, cipher__SHA256* p1); +extern GoUint32 SKY_cipher_SHA256FromHex(GoString p0, cipher__SHA256* p1); -extern GoUint32 SKY_coin_Block_Size(Block__Handle p0, GoInt* p1); +extern GoUint32 SKY_cipher_DoubleSHA256(GoSlice p0, cipher__SHA256* p1); -extern GoUint32 SKY_coin_Block_String(Block__Handle p0, GoString_* p1); +extern GoUint32 SKY_cipher_AddSHA256(cipher__SHA256* p0, cipher__SHA256* p1, cipher__SHA256* p2); -extern GoUint32 SKY_coin_Block_GetTransaction(Block__Handle p0, cipher__SHA256* p1, Transaction__Handle* p2, GoUint8* p3); +extern GoUint32 SKY_cipher_Merkle(GoSlice* p0, cipher__SHA256* p1); -extern GoUint32 SKY_coin_NewBlockHeader(coin__BlockHeader* p0, cipher__SHA256* p1, GoUint64 p2, GoUint64 p3, BlockBody__Handle p4, coin__BlockHeader* p5); +extern GoUint32 SKY_cipher_MustSumSHA256(GoSlice p0, GoInt p1, cipher__SHA256* p2); -extern GoUint32 SKY_coin_BlockHeader_Hash(coin__BlockHeader* p0, cipher__SHA256* p1); +extern GoUint32 SKY_cipher_SHA256_Null(cipher__SHA256* p0, GoUint8* p1); -extern GoUint32 SKY_coin_BlockHeader_Bytes(coin__BlockHeader* p0, coin__UxArray* p1); +extern GoUint32 SKY_coin_Create_Transaction(Transaction__Handle* p0); -extern GoUint32 SKY_coin_BlockHeader_String(coin__BlockHeader* p0, GoString_* p1); +extern GoUint32 SKY_coin_Transaction_Copy(Transaction__Handle p0, Transaction__Handle* p1); -extern GoUint32 SKY_coin_BlockBody_Hash(BlockBody__Handle p0, cipher__SHA256* p1); +extern GoUint32 SKY_coin_GetTransactionObject(Transaction__Handle p0, coin__Transaction** p1); -extern GoUint32 SKY_coin_BlockBody_Size(BlockBody__Handle* p0, GoInt* p1); +extern GoUint32 SKY_coin_Transaction_ResetInputs(Transaction__Handle p0, GoInt p1); -extern GoUint32 SKY_coin_BlockBody_Bytes(BlockBody__Handle p0, coin__UxArray* p1); +extern GoUint32 SKY_coin_Transaction_GetInputsCount(Transaction__Handle p0, GoInt* p1); -extern GoUint32 SKY_coin_CreateUnspents(coin__BlockHeader* p0, Transaction__Handle p1, coin__UxArray* p2); +extern GoUint32 SKY_coin_Transaction_GetInputAt(Transaction__Handle p0, GoInt p1, cipher__SHA256* p2); -extern GoUint32 SKY_coin_CreateUnspent(coin__BlockHeader* p0, Transaction__Handle p1, GoInt p2, coin__UxOut* p3); +extern GoUint32 SKY_coin_Transaction_SetInputAt(Transaction__Handle p0, GoInt p1, cipher__SHA256* p2); -extern GoUint32 SKY_coin_GetBlockObject(Block__Handle p0, coin__Block** p1); +extern GoUint32 SKY_coin_Transaction_GetOutputsCount(Transaction__Handle p0, GoInt* p1); -extern GoUint32 SKY_coin_GetBlockBody(Block__Handle p0, BlockBody__Handle* p1); +extern GoUint32 SKY_coin_Transaction_GetOutputAt(Transaction__Handle p0, GoInt p1, coin__TransactionOutput* p2); -extern GoUint32 SKY_coin_NewEmptyBlock(Transactions__Handle p0, Block__Handle* p1); +extern GoUint32 SKY_coin_Transaction_SetOutputAt(Transaction__Handle p0, GoInt p1, coin__TransactionOutput* p2); -extern GoUint32 SKY_wallet_CreateAddresses(GoString p0, GoString p1, GoInt p2, GoUint8 p3, ReadableWallet__Handle* p4); +extern GoUint32 SKY_coin_Transaction_GetSignaturesCount(Transaction__Handle p0, GoInt* p1); -extern GoUint32 SKY_wallet_GetSkycoinWalletEntry(cipher__PubKey* p0, cipher__SecKey* p1, ReadableEntry__Handle* p2); +extern GoUint32 SKY_coin_Transaction_GetSignatureAt(Transaction__Handle p0, GoInt p1, cipher__Sig* p2); -extern GoUint32 SKY_wallet_GetBitcoinWalletEntry(cipher__PubKey* p0, cipher__SecKey* p1, ReadableEntry__Handle* p2); +extern GoUint32 SKY_coin_Transaction_SetSignatureAt(Transaction__Handle p0, GoInt p1, cipher__Sig* p2); -extern GoUint32 SKY_map_Get(GoStringMap_* p0, GoString p1, GoString_* p2); +extern GoUint32 SKY_coin_Transaction_PushSignature(Transaction__Handle p0, cipher__Sig* p1); -extern GoUint8 SKY_map_HasKey(GoStringMap_* p0, GoString p1); +extern GoUint32 SKY_coin_Transaction_ResetOutputs(Transaction__Handle p0, GoInt p1); -extern GoUint32 SKY_map_Close(GoStringMap_* p0); +extern GoUint32 SKY_coin_Transaction_ResetSignatures(Transaction__Handle p0, GoInt p1); -extern GoUint32 SKY_logging_EnableColors(); +extern GoUint32 SKY_coin_Transaction_Verify(Transaction__Handle p0); -extern GoUint32 SKY_logging_DisableColors(); +extern GoUint32 SKY_coin_Transaction_VerifyInput(Transaction__Handle p0, coin__UxArray* p1); -extern GoUint32 SKY_logging_Disable(); +extern GoUint32 SKY_coin_Transaction_PushInput(Transaction__Handle p0, cipher__SHA256* p1, GoUint16* p2); -extern GoUint32 SKY_cli_GenerateWallet(GoString p0, Options__Handle* p1, GoUint64 p2, Wallet__Handle* p3); +extern GoUint32 SKY_coin_TransactionOutput_UxID(coin__TransactionOutput* p0, cipher__SHA256* p1, cipher__SHA256* p2); -extern GoUint32 SKY_cli_MakeAlphanumericSeed(GoString_* p0); +extern GoUint32 SKY_coin_Transaction_PushOutput(Transaction__Handle p0, cipher__Address* p1, GoUint64 p2, GoUint64 p3); -extern GoUint32 SKY_secp256k1go_Signature_Create(Signature_Handle* p0); +extern GoUint32 SKY_coin_Transaction_SignInputs(Transaction__Handle p0, GoSlice p1); -extern GoUint32 SKY_secp256k1go_Signature_GetR(Signature_Handle p0, Number_Handle* p1); +extern GoUint32 SKY_coin_Transaction_Size(Transaction__Handle p0, GoInt* p1); -extern GoUint32 SKY_secp256k1go_Signature_GetS(Signature_Handle p0, Number_Handle* p1); +extern GoUint32 SKY_coin_Transaction_Hash(Transaction__Handle p0, cipher__SHA256* p1); -extern GoUint32 SKY_secp256k1go_Signature_Print(Signature_Handle p0, GoString p1); +extern GoUint32 SKY_coin_Transaction_SizeHash(Transaction__Handle p0, GoInt* p1, cipher__SHA256* p2); -extern GoUint32 SKY_secp256k1go_Signature_Verify(Signature_Handle p0, secp256k1go__XY* p1, Number_Handle p2, GoUint8* p3); +extern GoUint32 SKY_coin_Transaction_TxID(Transaction__Handle p0, coin__UxArray* p1); -extern GoUint32 SKY_secp256k1go_Signature_Recover(Signature_Handle p0, secp256k1go__XY* p1, Number_Handle p2, GoInt p3, GoUint8* p4); +extern GoUint32 SKY_coin_Transaction_TxIDHex(Transaction__Handle p0, GoString_* p1); -extern GoUint32 SKY_secp256k1go_Signature_Sign(Signature_Handle p0, Number_Handle p1, Number_Handle p2, Number_Handle p3, GoInt* p4, GoInt* p5); +extern GoUint32 SKY_coin_Transaction_UpdateHeader(Transaction__Handle p0); -extern GoUint32 SKY_secp256k1go_Signature_ParseBytes(Signature_Handle p0, GoSlice p1); +extern GoUint32 SKY_coin_Transaction_HashInner(Transaction__Handle p0, cipher__SHA256* p1); -extern GoUint32 SKY_secp256k1go_Signature_Bytes(Signature_Handle p0, coin__UxArray* p1); +extern GoUint32 SKY_coin_Transaction_Serialize(Transaction__Handle p0, coin__UxArray* p1); -extern GoUint32 SKY_secp256k1go_Number_Create(Number_Handle* p0); +extern GoUint32 SKY_coin_MustTransactionDeserialize(GoSlice p0, Transaction__Handle* p1); -extern GoUint32 SKY_secp256k1go_Number_Print(Number_Handle p0, GoString p1); +extern GoUint32 SKY_coin_TransactionDeserialize(GoSlice p0, Transaction__Handle* p1); -extern GoUint32 SKY_secp256k1go_Number_SetHex(Number_Handle p0, GoString p1); +extern GoUint32 SKY_coin_Transaction_OutputHours(Transaction__Handle p0, GoUint64* p1); -extern GoUint32 SKY_secp256k1go_Number_IsOdd(Number_Handle p0, GoUint8* p1); +extern GoUint32 SKY_coin_Create_Transactions(Transactions__Handle* p0); -extern GoUint32 SKY_secp256k1go_Number_IsEqual(Number_Handle p0, Number_Handle p1, GoUint8* p2); +extern GoUint32 SKY_coin_GetTransactionsObject(Transactions__Handle p0, coin__UxArray** p1); -extern void SKY_wallet_CreateOptionsHandle(GoString p0, GoString p1, GoString p2, GoUint8 p3, GoString p4, GoString p5, GoUint64 p6, Options__Handle* p7); +extern GoUint32 SKY_coin_Transactions_Length(Transactions__Handle p0, GoInt* p1); -extern GoUint32 SKY_secp256k1go_XY_Print(secp256k1go__XY* p0, GoString p1); +extern GoUint32 SKY_coin_Transactions_Add(Transactions__Handle p0, Transaction__Handle p1); -extern GoUint32 SKY_secp256k1go_XY_ParsePubkey(secp256k1go__XY* p0, GoSlice p1, GoUint8* p2); +extern GoUint32 SKY_coin_Transactions_Fees(Transactions__Handle p0, FeeCalculator* p1, GoUint64* p2); -extern GoUint32 SKY_secp256k1go_XY_Bytes(secp256k1go__XY* p0, coin__UxArray* p1); +extern GoUint32 SKY_coin_Transactions_GetAt(Transactions__Handle p0, GoInt p1, Transaction__Handle* p2); -extern GoUint32 SKY_secp256k1go_XY_BytesUncompressed(secp256k1go__XY* p0, coin__UxArray* p1); +extern GoUint32 SKY_coin_Transactions_Hashes(Transactions__Handle p0, coin__UxArray* p1); -extern GoUint32 SKY_secp256k1go_XY_SetXY(secp256k1go__XY* p0, secp256k1go__Field* p1, secp256k1go__Field* p2); +extern GoUint32 SKY_coin_Transactions_Size(Transactions__Handle p0, GoInt* p1); -extern GoUint32 SKY_secp256k1go_XY_IsValid(secp256k1go__XY* p0, GoUint8* p1); +extern GoUint32 SKY_coin_Transactions_TruncateBytesTo(Transactions__Handle p0, GoInt p1, Transactions__Handle* p2); -extern GoUint32 SKY_secp256k1go_XY_SetXYZ(secp256k1go__XY* p0, secp256k1go__XYZ* p1); +extern GoUint32 SKY_coin_SortTransactions(Transactions__Handle p0, FeeCalculator* p1, Transactions__Handle* p2); -extern GoUint32 SKY_secp256k1go_XY_Neg(secp256k1go__XY* p0, secp256k1go__XY* p1); +extern GoUint32 SKY_coin_NewSortableTransactions(Transactions__Handle p0, FeeCalculator* p1, SortableTransactionResult_Handle* p2); -extern GoUint32 SKY_secp256k1go_XY_SetXO(secp256k1go__XY* p0, secp256k1go__Field* p1, GoUint8 p2); +extern GoUint32 SKY_coin_SortableTransactions_Sort(SortableTransactionResult_Handle p0); -extern GoUint32 SKY_secp256k1go_XY_AddXY(secp256k1go__XY* p0, secp256k1go__XY* p1); +extern GoUint32 SKY_coin_SortableTransactions_Len(SortableTransactionResult_Handle p0, GoInt* p1); -extern GoUint32 SKY_secp256k1go_XY_GetPublicKey(secp256k1go__XY* p0, coin__UxArray* p1); +extern GoUint32 SKY_coin_SortableTransactions_Less(SortableTransactionResult_Handle p0, GoInt p1, GoInt p2, GoUint8* p3); -extern GoUint32 SKY_wallet_Entry_Verify(wallet__Entry* p0); +extern GoUint32 SKY_coin_SortableTransactions_Swap(SortableTransactionResult_Handle p0, GoInt p1, GoInt p2); -extern GoUint32 SKY_wallet_Entry_VerifyPublic(wallet__Entry* p0); +extern GoUint32 SKY_coin_VerifyTransactionCoinsSpending(coin__UxArray* p0, coin__UxArray* p1); -extern GoUint32 SKY_wallet_CryptoTypeFromString(GoString p0, GoString_* p1); +extern GoUint32 SKY_coin_VerifyTransactionHoursSpending(GoUint64 p0, coin__UxArray* p1, coin__UxArray* p2); #ifdef __cplusplus } From bc76c3e3822f2920677a4f8f246cfc5e7d7416b8 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Sat, 1 Sep 2018 08:51:39 -0400 Subject: [PATCH 10/73] [submodule] refs #4 Update submodule --- gopath/src/github.com/skycoin/skycoin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index ff7775bd..c8e1a1db 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit ff7775bdf39d4e7845ac8bc7b0187870b28f1906 +Subproject commit c8e1a1dbb617d154ddbc1ec6fd67be7c60594bab From bfa91b4322945ae613a237996011a148a5ff5277 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Sun, 2 Sep 2018 19:25:19 -0400 Subject: [PATCH 11/73] [libnet] refs #4 Added error and update submodule --- .gitignore | 1 + LibskycoinNet/LibskycoinNet.csproj | 4 +- .../SWIGTYPE_p_ReadableOutputSet__Handle.cs | 29 + LibskycoinNet/skycoin/cipher_Addresses.cs | 69 + LibskycoinNet/skycoin/skycoin.cs | 614 +- LibskycoinNet/skycoin/skycoinPINVOKE.cs | 639 +- LibskycoinNet/skycoin/skycoinnet_wrap.c | 4236 +++-- LibskycoinNet/skycoin1/GoInterface.cs | 70 + LibskycoinNet/skycoin1/GoSlice.cs | 79 + .../SWIGTYPE_p_AddressUxOuts_Handle.cs | 29 + .../skycoin1/SWIGTYPE_p_App__Handle.cs | 29 + LibskycoinNet/skycoin1/SWIGTYPE_p_BOOL.cs | 29 + .../SWIGTYPE_p_BalanceResult_Handle.cs | 29 + .../skycoin1/SWIGTYPE_p_BlockBody__Handle.cs | 29 + .../skycoin1/SWIGTYPE_p_Block__Handle.cs | 29 + .../skycoin1/SWIGTYPE_p_BuildInfo_Handle.cs | 29 + .../skycoin1/SWIGTYPE_p_Client__Handle.cs | 29 + .../skycoin1/SWIGTYPE_p_Config__Handle.cs | 29 + .../skycoin1/SWIGTYPE_p_Context__Handle.cs | 29 + ...YPE_p_CreateTransactionResponse__Handle.cs | 29 + ...GTYPE_p_CreatedTransactionInput__Handle.cs | 29 + ...TYPE_p_CreatedTransactionOutput__Handle.cs | 29 + .../SWIGTYPE_p_CreatedTransaction__Handle.cs | 29 + .../skycoin1/SWIGTYPE_p_FeeCalculator.cs | 29 + LibskycoinNet/skycoin1/SWIGTYPE_p_GoInt32_.cs | 29 + LibskycoinNet/skycoin1/SWIGTYPE_p_GoInt64_.cs | 29 + LibskycoinNet/skycoin1/SWIGTYPE_p_GoInt8_.cs | 29 + LibskycoinNet/skycoin1/SWIGTYPE_p_GoInt_.cs | 29 + LibskycoinNet/skycoin1/SWIGTYPE_p_GoMap_.cs | 29 + LibskycoinNet/skycoin1/SWIGTYPE_p_GoSlice_.cs | 29 + .../skycoin1/SWIGTYPE_p_GoStringMap_.cs | 29 + .../skycoin1/SWIGTYPE_p_GoString_.cs | 29 + .../skycoin1/SWIGTYPE_p_GoUint32_.cs | 29 + .../skycoin1/SWIGTYPE_p_GoUint64_.cs | 29 + LibskycoinNet/skycoin1/SWIGTYPE_p_GoUint8_.cs | 29 + LibskycoinNet/skycoin1/SWIGTYPE_p_Handle.cs | 29 + .../skycoin1/SWIGTYPE_p_Hash_Handle.cs | 29 + .../skycoin1/SWIGTYPE_p_Number_Handle.cs | 29 + .../skycoin1/SWIGTYPE_p_Options__Handle.cs | 29 + .../SWIGTYPE_p_OutputsResult_Handle.cs | 0 .../SWIGTYPE_p_PasswordReader__Handle.cs | 29 + .../SWIGTYPE_p_ReadableEntry__Handle.cs | 29 + .../SWIGTYPE_p_ReadableOutputSet__Handle.cs | 29 + .../SWIGTYPE_p_ReadableWallet__Handle.cs | 29 + .../skycoin1/SWIGTYPE_p_Signature_Handle.cs | 29 + ...TYPE_p_SortableTransactionResult_Handle.cs | 29 + .../skycoin1/SWIGTYPE_p_SpendResult_Handle.cs | 29 + .../SWIGTYPE_p_StatusResult_Handle.cs | 29 + .../skycoin1/SWIGTYPE_p_Strings__Handle.cs | 29 + .../SWIGTYPE_p_TransactionResult_Handle.cs | 29 + .../SWIGTYPE_p_Transaction__Handle.cs | 29 + .../SWIGTYPE_p_Transactions__Handle.cs | 29 + .../SWIGTYPE_p_WalletNotes_Handle.cs | 0 .../SWIGTYPE_p_WalletReadableNotes_Handle.cs | 0 .../SWIGTYPE_p_WalletResponse__Handle.cs | 29 + .../skycoin1/SWIGTYPE_p_Wallet__Handle.cs | 29 + .../skycoin1/SWIGTYPE_p_Wallets__Handle.cs | 29 + .../SWIGTYPE_p_WebRpcClient__Handle.cs | 29 + .../skycoin1/SWIGTYPE_p_a_20__GoUint8_.cs | 29 + .../SWIGTYPE_p_a_20__unsigned_char.cs | 29 + .../skycoin1/SWIGTYPE_p_a_32__GoUint8_.cs | 29 + .../SWIGTYPE_p_a_32__unsigned_char.cs | 29 + .../skycoin1/SWIGTYPE_p_a_33__GoUint8_.cs | 29 + .../SWIGTYPE_p_a_33__unsigned_char.cs | 29 + .../skycoin1/SWIGTYPE_p_a_4__GoUint8_.cs | 29 + .../skycoin1/SWIGTYPE_p_a_4__unsigned_char.cs | 29 + .../skycoin1/SWIGTYPE_p_a_65__GoUint8_.cs | 29 + .../SWIGTYPE_p_a_65__unsigned_char.cs | 29 + .../skycoin1/SWIGTYPE_p_cipher_PubKeyint.cs | 29 + LibskycoinNet/skycoin1/SWIGTYPE_p_int.cs | 29 + .../skycoin1/SWIGTYPE_p_long_long.cs | 29 + .../skycoin1/SWIGTYPE_p_p_GoSlice_.cs | 29 + .../skycoin1/SWIGTYPE_p_p_coin__Block.cs | 29 + .../SWIGTYPE_p_p_coin__Transaction.cs | 29 + .../skycoin1/SWIGTYPE_p_ptrdiff_t.cs | 29 + .../skycoin1/SWIGTYPE_p_unsigned_char.cs | 29 + .../skycoin1/SWIGTYPE_p_unsigned_int.cs | 29 + .../skycoin1/SWIGTYPE_p_unsigned_long_long.cs | 29 + .../skycoin1/SWIGTYPE_p_unsigned_short.cs | 29 + LibskycoinNet/skycoin1/SWIGTYPE_p_void.cs | 29 + LibskycoinNet/skycoin1/_GoString_.cs | 70 + LibskycoinNet/skycoin1/api__RichlistParams.cs | 72 + LibskycoinNet/skycoin1/cipher_Addresses.cs | 69 + LibskycoinNet/skycoin1/cipher_Checksum.cs | 72 + LibskycoinNet/skycoin1/cipher_PubKey.cs | 72 + LibskycoinNet/skycoin1/cipher_PubKeys.cs | 93 + LibskycoinNet/skycoin1/cipher_Ripemd160.cs | 72 + LibskycoinNet/skycoin1/cipher_SHA256.cs | 72 + LibskycoinNet/skycoin1/cipher_SHA256s.cs | 93 + LibskycoinNet/skycoin1/cipher_SecKey.cs | 72 + LibskycoinNet/skycoin1/cipher_SecKeys.cs | 93 + LibskycoinNet/skycoin1/cipher_Sig.cs | 72 + LibskycoinNet/skycoin1/cipher__Address.cs | 76 + LibskycoinNet/skycoin1/cli__SendAmount.cs | 72 + LibskycoinNet/skycoin1/coin_UxOutArray.cs | 93 + LibskycoinNet/skycoin1/coin__Block.cs | 70 + LibskycoinNet/skycoin1/coin__BlockBody.cs | 65 + LibskycoinNet/skycoin1/coin__BlockHeader.cs | 134 + LibskycoinNet/skycoin1/coin__SignedBlock.cs | 70 + .../skycoin1/coin__SortableTransactions.cs | 84 + LibskycoinNet/skycoin1/coin__Transaction.cs | 124 + .../skycoin1/coin__TransactionOutput.cs | 88 + LibskycoinNet/skycoin1/coin__UxBody.cs | 94 + LibskycoinNet/skycoin1/coin__UxHead.cs | 72 + LibskycoinNet/skycoin1/coin__UxOut.cs | 75 + .../skycoin1/encoder__StructField.cs | 96 + .../encrypt__ScryptChacha20poly1305.cs | 96 + LibskycoinNet/skycoin1/httphelper__Address.cs | 59 + LibskycoinNet/skycoin1/secp256k1go__Field.cs | 59 + LibskycoinNet/skycoin1/secp256k1go__XY.cs | 82 + LibskycoinNet/skycoin1/secp256k1go__XYZ.cs | 93 + LibskycoinNet/skycoin1/skycoin.cs | 2728 +++ LibskycoinNet/skycoin1/skycoinPINVOKE.cs | 3039 ++++ LibskycoinNet/skycoin1/skycoinnet_wrap.c | 15044 ++++++++++++++++ LibskycoinNet/skycoin1/wallet__Balance.cs | 72 + LibskycoinNet/skycoin1/wallet__BalancePair.cs | 70 + LibskycoinNet/skycoin1/wallet__Entry.cs | 81 + LibskycoinNet/skycoin1/wallet__Note.cs | 72 + .../skycoin1/wallet__ReadableNote.cs | 72 + LibskycoinNet/skycoin1/wallet__UxBalance.cs | 106 + LibskycoinNet/skycoin1/wallet__Wallet.cs | 72 + LibskycoinNetTest/LibskycoinNetTest.cs | 33 +- LibskycoinNetTest/LibskycoinNetTest.csproj | 1 - LibskycoinNetTest/check_cipher_address.cs | 10 +- LibskycoinNetTest/cipher_address.cs | 14 - gopath/src/github.com/skycoin/skycoin | 2 +- swig/include/libskycoin.h | 198 +- 127 files changed, 29275 insertions(+), 2576 deletions(-) create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_ReadableOutputSet__Handle.cs create mode 100644 LibskycoinNet/skycoin/cipher_Addresses.cs create mode 100644 LibskycoinNet/skycoin1/GoInterface.cs create mode 100644 LibskycoinNet/skycoin1/GoSlice.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_AddressUxOuts_Handle.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_App__Handle.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_BOOL.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_BalanceResult_Handle.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_BlockBody__Handle.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_Block__Handle.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_BuildInfo_Handle.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_Client__Handle.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_Config__Handle.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_Context__Handle.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_CreateTransactionResponse__Handle.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_CreatedTransactionInput__Handle.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_CreatedTransactionOutput__Handle.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_CreatedTransaction__Handle.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_FeeCalculator.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_GoInt32_.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_GoInt64_.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_GoInt8_.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_GoInt_.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_GoMap_.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_GoSlice_.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_GoStringMap_.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_GoString_.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_GoUint32_.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_GoUint64_.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_GoUint8_.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_Handle.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_Hash_Handle.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_Number_Handle.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_Options__Handle.cs rename LibskycoinNet/{skycoin => skycoin1}/SWIGTYPE_p_OutputsResult_Handle.cs (100%) create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_PasswordReader__Handle.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_ReadableEntry__Handle.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_ReadableOutputSet__Handle.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_ReadableWallet__Handle.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_Signature_Handle.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_SortableTransactionResult_Handle.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_SpendResult_Handle.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_StatusResult_Handle.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_Strings__Handle.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_TransactionResult_Handle.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_Transaction__Handle.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_Transactions__Handle.cs rename LibskycoinNet/{skycoin => skycoin1}/SWIGTYPE_p_WalletNotes_Handle.cs (100%) rename LibskycoinNet/{skycoin => skycoin1}/SWIGTYPE_p_WalletReadableNotes_Handle.cs (100%) create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_WalletResponse__Handle.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_Wallet__Handle.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_Wallets__Handle.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_WebRpcClient__Handle.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_a_20__GoUint8_.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_a_20__unsigned_char.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_a_32__GoUint8_.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_a_32__unsigned_char.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_a_33__GoUint8_.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_a_33__unsigned_char.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_a_4__GoUint8_.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_a_4__unsigned_char.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_a_65__GoUint8_.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_a_65__unsigned_char.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_cipher_PubKeyint.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_int.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_long_long.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_p_GoSlice_.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_p_coin__Block.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_p_coin__Transaction.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_ptrdiff_t.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_unsigned_char.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_unsigned_int.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_unsigned_long_long.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_unsigned_short.cs create mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_void.cs create mode 100644 LibskycoinNet/skycoin1/_GoString_.cs create mode 100644 LibskycoinNet/skycoin1/api__RichlistParams.cs create mode 100644 LibskycoinNet/skycoin1/cipher_Addresses.cs create mode 100644 LibskycoinNet/skycoin1/cipher_Checksum.cs create mode 100644 LibskycoinNet/skycoin1/cipher_PubKey.cs create mode 100644 LibskycoinNet/skycoin1/cipher_PubKeys.cs create mode 100644 LibskycoinNet/skycoin1/cipher_Ripemd160.cs create mode 100644 LibskycoinNet/skycoin1/cipher_SHA256.cs create mode 100644 LibskycoinNet/skycoin1/cipher_SHA256s.cs create mode 100644 LibskycoinNet/skycoin1/cipher_SecKey.cs create mode 100644 LibskycoinNet/skycoin1/cipher_SecKeys.cs create mode 100644 LibskycoinNet/skycoin1/cipher_Sig.cs create mode 100644 LibskycoinNet/skycoin1/cipher__Address.cs create mode 100644 LibskycoinNet/skycoin1/cli__SendAmount.cs create mode 100644 LibskycoinNet/skycoin1/coin_UxOutArray.cs create mode 100644 LibskycoinNet/skycoin1/coin__Block.cs create mode 100644 LibskycoinNet/skycoin1/coin__BlockBody.cs create mode 100644 LibskycoinNet/skycoin1/coin__BlockHeader.cs create mode 100644 LibskycoinNet/skycoin1/coin__SignedBlock.cs create mode 100644 LibskycoinNet/skycoin1/coin__SortableTransactions.cs create mode 100644 LibskycoinNet/skycoin1/coin__Transaction.cs create mode 100644 LibskycoinNet/skycoin1/coin__TransactionOutput.cs create mode 100644 LibskycoinNet/skycoin1/coin__UxBody.cs create mode 100644 LibskycoinNet/skycoin1/coin__UxHead.cs create mode 100644 LibskycoinNet/skycoin1/coin__UxOut.cs create mode 100644 LibskycoinNet/skycoin1/encoder__StructField.cs create mode 100644 LibskycoinNet/skycoin1/encrypt__ScryptChacha20poly1305.cs create mode 100644 LibskycoinNet/skycoin1/httphelper__Address.cs create mode 100644 LibskycoinNet/skycoin1/secp256k1go__Field.cs create mode 100644 LibskycoinNet/skycoin1/secp256k1go__XY.cs create mode 100644 LibskycoinNet/skycoin1/secp256k1go__XYZ.cs create mode 100644 LibskycoinNet/skycoin1/skycoin.cs create mode 100644 LibskycoinNet/skycoin1/skycoinPINVOKE.cs create mode 100644 LibskycoinNet/skycoin1/skycoinnet_wrap.c create mode 100644 LibskycoinNet/skycoin1/wallet__Balance.cs create mode 100644 LibskycoinNet/skycoin1/wallet__BalancePair.cs create mode 100644 LibskycoinNet/skycoin1/wallet__Entry.cs create mode 100644 LibskycoinNet/skycoin1/wallet__Note.cs create mode 100644 LibskycoinNet/skycoin1/wallet__ReadableNote.cs create mode 100644 LibskycoinNet/skycoin1/wallet__UxBalance.cs create mode 100644 LibskycoinNet/skycoin1/wallet__Wallet.cs delete mode 100644 LibskycoinNetTest/cipher_address.cs diff --git a/.gitignore b/.gitignore index 65639452..4d40709d 100644 --- a/.gitignore +++ b/.gitignore @@ -253,3 +253,4 @@ paket-files/ # JetBrains Rider .idea/ *.sln.iml +testrunner/ \ No newline at end of file diff --git a/LibskycoinNet/LibskycoinNet.csproj b/LibskycoinNet/LibskycoinNet.csproj index 6086bf59..7889bfd9 100644 --- a/LibskycoinNet/LibskycoinNet.csproj +++ b/LibskycoinNet/LibskycoinNet.csproj @@ -63,7 +63,6 @@ - @@ -75,8 +74,6 @@ - - @@ -135,6 +132,7 @@ + diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_ReadableOutputSet__Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_ReadableOutputSet__Handle.cs new file mode 100644 index 00000000..c01b8b93 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_ReadableOutputSet__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_ReadableOutputSet__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_ReadableOutputSet__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_ReadableOutputSet__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_ReadableOutputSet__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/cipher_Addresses.cs b/LibskycoinNet/skycoin/cipher_Addresses.cs new file mode 100644 index 00000000..16368271 --- /dev/null +++ b/LibskycoinNet/skycoin/cipher_Addresses.cs @@ -0,0 +1,69 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class cipher_Addresses : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal cipher_Addresses(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(cipher_Addresses obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~cipher_Addresses() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_cipher_Addresses(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public cipher__Address data { + set { + skycoinPINVOKE.cipher_Addresses_data_set(swigCPtr, cipher__Address.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.cipher_Addresses_data_get(swigCPtr); + cipher__Address ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher__Address(cPtr, false); + return ret; + } + } + + public int count { + set { + skycoinPINVOKE.cipher_Addresses_count_set(swigCPtr, value); + } + get { + int ret = skycoinPINVOKE.cipher_Addresses_count_get(swigCPtr); + return ret; + } + } + + public cipher_Addresses() : this(skycoinPINVOKE.new_cipher_Addresses(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs index 6a894ed5..849d0ade 100644 --- a/LibskycoinNet/skycoin/skycoin.cs +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -37,7 +37,6 @@ public static int equalBlockHeaders(coin__BlockHeader bh1, coin__BlockHeader bh2 public static uint SKY_coin_NewBlock(SWIGTYPE_p_Block__Handle p0, ulong p1, SWIGTYPE_p_a_32__GoUint8_ p2, SWIGTYPE_p_Transactions__Handle p3, SWIGTYPE_p_FeeCalculator p4, SWIGTYPE_p_Block__Handle p5) { uint ret = skycoinPINVOKE.SKY_coin_NewBlock(SWIGTYPE_p_Block__Handle.getCPtr(p0), p1, SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2), SWIGTYPE_p_Transactions__Handle.getCPtr(p3), SWIGTYPE_p_FeeCalculator.getCPtr(p4), SWIGTYPE_p_Block__Handle.getCPtr(p5)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -53,55 +52,46 @@ public static uint SKY_coin_NewGenesisBlock(cipher__Address p0, ulong p1, ulong public static uint SKY_coin_Block_HashHeader(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { uint ret = skycoinPINVOKE.SKY_coin_Block_HashHeader(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Block_PreHashHeader(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { uint ret = skycoinPINVOKE.SKY_coin_Block_PreHashHeader(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Block_Time(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_unsigned_long_long p1) { uint ret = skycoinPINVOKE.SKY_coin_Block_Time(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Block_Seq(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_unsigned_long_long p1) { uint ret = skycoinPINVOKE.SKY_coin_Block_Seq(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Block_HashBody(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { uint ret = skycoinPINVOKE.SKY_coin_Block_HashBody(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Block_Size(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_long_long p1) { uint ret = skycoinPINVOKE.SKY_coin_Block_Size(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Block_String(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_GoString_ p1) { uint ret = skycoinPINVOKE.SKY_coin_Block_String(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Block_GetTransaction(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_Transaction__Handle p2, SWIGTYPE_p_unsigned_char p3) { uint ret = skycoinPINVOKE.SKY_coin_Block_GetTransaction(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_Transaction__Handle.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_NewBlockHeader(coin__BlockHeader p0, SWIGTYPE_p_a_32__GoUint8_ p1, ulong p2, ulong p3, SWIGTYPE_p_BlockBody__Handle p4, coin__BlockHeader p5) { uint ret = skycoinPINVOKE.SKY_coin_NewBlockHeader(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), p2, p3, SWIGTYPE_p_BlockBody__Handle.getCPtr(p4), coin__BlockHeader.getCPtr(p5)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -122,7 +112,6 @@ public static uint SKY_coin_BlockHeader_String(coin__BlockHeader p0, SWIGTYPE_p_ public static uint SKY_coin_BlockBody_Hash(SWIGTYPE_p_BlockBody__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Hash(SWIGTYPE_p_BlockBody__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -133,37 +122,31 @@ public static uint SKY_coin_BlockBody_Size(SWIGTYPE_p_BlockBody__Handle p0, SWIG public static uint SKY_coin_BlockBody_Bytes(SWIGTYPE_p_BlockBody__Handle p0, SWIGTYPE_p_GoSlice_ p1) { uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Bytes(SWIGTYPE_p_BlockBody__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_CreateUnspents(coin__BlockHeader p0, SWIGTYPE_p_Transaction__Handle p1, SWIGTYPE_p_GoSlice_ p2) { uint ret = skycoinPINVOKE.SKY_coin_CreateUnspents(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_CreateUnspent(coin__BlockHeader p0, SWIGTYPE_p_Transaction__Handle p1, long p2, coin__UxOut p3) { uint ret = skycoinPINVOKE.SKY_coin_CreateUnspent(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), p2, coin__UxOut.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_GetBlockObject(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_p_coin__Block p1) { uint ret = skycoinPINVOKE.SKY_coin_GetBlockObject(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_p_coin__Block.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_GetBlockBody(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_BlockBody__Handle p1) { uint ret = skycoinPINVOKE.SKY_coin_GetBlockBody(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_BlockBody__Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_NewEmptyBlock(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_Block__Handle p1) { uint ret = skycoinPINVOKE.SKY_coin_NewEmptyBlock(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_Block__Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -203,73 +186,64 @@ public static uint SKY_api_NewClient(_GoString_ p0, SWIGTYPE_p_Client__Handle p1 public static uint SKY_api_Client_CSRF(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_GoString_ p1) { uint ret = skycoinPINVOKE.SKY_api_Client_CSRF(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_Version(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_Version(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_api_Client_Version(SWIGTYPE_p_Client__Handle p0) { + uint ret = skycoinPINVOKE.SKY_api_Client_Version(SWIGTYPE_p_Client__Handle.getCPtr(p0)); return ret; } - public static uint SKY_api_Client_Outputs(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_Outputs(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_api_Client_Outputs(SWIGTYPE_p_Client__Handle p0) { + uint ret = skycoinPINVOKE.SKY_api_Client_Outputs(SWIGTYPE_p_Client__Handle.getCPtr(p0)); return ret; } - public static uint SKY_api_Client_OutputsForAddresses(SWIGTYPE_p_Client__Handle p0, GoSlice p1, SWIGTYPE_p_Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_OutputsForAddresses(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + public static uint SKY_api_Client_OutputsForAddresses(SWIGTYPE_p_Client__Handle p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_OutputsForAddresses(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_OutputsForHashes(SWIGTYPE_p_Client__Handle p0, GoSlice p1, SWIGTYPE_p_Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_OutputsForHashes(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + public static uint SKY_api_Client_OutputsForHashes(SWIGTYPE_p_Client__Handle p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_OutputsForHashes(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_CoinSupply(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_CoinSupply(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_api_Client_CoinSupply(SWIGTYPE_p_Client__Handle p0) { + uint ret = skycoinPINVOKE.SKY_api_Client_CoinSupply(SWIGTYPE_p_Client__Handle.getCPtr(p0)); return ret; } - public static uint SKY_api_Client_BlockByHash(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_BlockByHash(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + public static uint SKY_api_Client_BlockByHash(SWIGTYPE_p_Client__Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_BlockByHash(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_BlockBySeq(SWIGTYPE_p_Client__Handle p0, ulong p1, SWIGTYPE_p_Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_BlockBySeq(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1, SWIGTYPE_p_Handle.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_api_Client_BlockBySeq(SWIGTYPE_p_Client__Handle p0, ulong p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_BlockBySeq(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1); return ret; } - public static uint SKY_api_Client_Blocks(SWIGTYPE_p_Client__Handle p0, long p1, long p2, SWIGTYPE_p_Handle p3) { - uint ret = skycoinPINVOKE.SKY_api_Client_Blocks(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1, p2, SWIGTYPE_p_Handle.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_api_Client_Blocks(SWIGTYPE_p_Client__Handle p0, ulong p1, ulong p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_Blocks(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1, p2); return ret; } - public static uint SKY_api_Client_LastBlocks(SWIGTYPE_p_Client__Handle p0, long p1, SWIGTYPE_p_Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_LastBlocks(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1, SWIGTYPE_p_Handle.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_api_Client_LastBlocks(SWIGTYPE_p_Client__Handle p0, ulong p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_LastBlocks(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1); return ret; } - public static uint SKY_api_Client_BlockchainMetadata(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_BlockchainMetadata(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_api_Client_BlockchainMetadata(SWIGTYPE_p_Client__Handle p0) { + uint ret = skycoinPINVOKE.SKY_api_Client_BlockchainMetadata(SWIGTYPE_p_Client__Handle.getCPtr(p0)); return ret; } - public static uint SKY_api_Client_BlockchainProgress(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_BlockchainProgress(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_api_Client_BlockchainProgress(SWIGTYPE_p_Client__Handle p0) { + uint ret = skycoinPINVOKE.SKY_api_Client_BlockchainProgress(SWIGTYPE_p_Client__Handle.getCPtr(p0)); return ret; } @@ -279,14 +253,14 @@ public static uint SKY_api_Client_Balance(SWIGTYPE_p_Client__Handle p0, GoSlice return ret; } - public static uint SKY_api_Client_UxOut(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_UxOut(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + public static uint SKY_api_Client_UxOut(SWIGTYPE_p_Client__Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_UxOut(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_AddressUxOuts(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_AddressUxOuts(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + public static uint SKY_api_Client_AddressUxOuts(SWIGTYPE_p_Client__Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_AddressUxOuts(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -299,7 +273,6 @@ public static uint SKY_api_Client_Wallet(SWIGTYPE_p_Client__Handle p0, _GoString public static uint SKY_api_Client_Wallets(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Wallets__Handle p1) { uint ret = skycoinPINVOKE.SKY_api_Client_Wallets(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Wallets__Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -333,15 +306,8 @@ public static uint SKY_api_Client_Spend(SWIGTYPE_p_Client__Handle p0, _GoString_ return ret; } - public static uint SKY_api_Client_CreateTransaction(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1, SWIGTYPE_p_CreateTransactionResponse__Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_CreateTransaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1), SWIGTYPE_p_CreateTransactionResponse__Handle.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_api_Client_WalletTransactions(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_WalletTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_api_Client_CreateTransaction(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_CreateTransactionResponse__Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_CreateTransaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_CreateTransactionResponse__Handle.getCPtr(p2)); return ret; } @@ -351,15 +317,13 @@ public static uint SKY_api_Client_UpdateWallet(SWIGTYPE_p_Client__Handle p0, _Go return ret; } - public static uint SKY_api_Client_WalletFolderName(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_WalletFolderName(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_api_Client_WalletFolderName(SWIGTYPE_p_Client__Handle p0) { + uint ret = skycoinPINVOKE.SKY_api_Client_WalletFolderName(SWIGTYPE_p_Client__Handle.getCPtr(p0)); return ret; } public static uint SKY_api_Client_NewSeed(SWIGTYPE_p_Client__Handle p0, long p1, SWIGTYPE_p_GoString_ p2) { uint ret = skycoinPINVOKE.SKY_api_Client_NewSeed(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoString_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -369,75 +333,68 @@ public static uint SKY_api_Client_GetWalletSeed(SWIGTYPE_p_Client__Handle p0, _G return ret; } - public static uint SKY_api_Client_NetworkConnection(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_NetworkConnection(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + public static uint SKY_api_Client_NetworkConnection(SWIGTYPE_p_Client__Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_NetworkConnection(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_NetworkConnections(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_NetworkConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_api_Client_NetworkConnections(SWIGTYPE_p_Client__Handle p0) { + uint ret = skycoinPINVOKE.SKY_api_Client_NetworkConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0)); return ret; } - public static uint SKY_api_Client_NetworkDefaultConnections(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_NetworkDefaultConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_api_Client_NetworkDefaultConnections(SWIGTYPE_p_Client__Handle p0) { + uint ret = skycoinPINVOKE.SKY_api_Client_NetworkDefaultConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0)); return ret; } - public static uint SKY_api_Client_NetworkTrustedConnections(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_NetworkTrustedConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_api_Client_NetworkTrustedConnections(SWIGTYPE_p_Client__Handle p0) { + uint ret = skycoinPINVOKE.SKY_api_Client_NetworkTrustedConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0)); return ret; } - public static uint SKY_api_Client_NetworkExchangeableConnections(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_NetworkExchangeableConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_api_Client_NetworkExchangeableConnections(SWIGTYPE_p_Client__Handle p0) { + uint ret = skycoinPINVOKE.SKY_api_Client_NetworkExchangeableConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0)); return ret; } - public static uint SKY_api_Client_PendingTransactions(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_PendingTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_api_Client_PendingTransactions(SWIGTYPE_p_Client__Handle p0) { + uint ret = skycoinPINVOKE.SKY_api_Client_PendingTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0)); return ret; } - public static uint SKY_api_Client_Transaction(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_Transaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + public static uint SKY_api_Client_Transaction(SWIGTYPE_p_Client__Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_Transaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_Transactions(SWIGTYPE_p_Client__Handle p0, GoSlice p1, SWIGTYPE_p_Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_Transactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + public static uint SKY_api_Client_Transactions(SWIGTYPE_p_Client__Handle p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_Transactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_ConfirmedTransactions(SWIGTYPE_p_Client__Handle p0, GoSlice p1, SWIGTYPE_p_Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_ConfirmedTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + public static uint SKY_api_Client_ConfirmedTransactions(SWIGTYPE_p_Client__Handle p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_ConfirmedTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_UnconfirmedTransactions(SWIGTYPE_p_Client__Handle p0, GoSlice p1, SWIGTYPE_p_Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_UnconfirmedTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + public static uint SKY_api_Client_UnconfirmedTransactions(SWIGTYPE_p_Client__Handle p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_UnconfirmedTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_InjectTransaction(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_GoString_ p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_InjectTransaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_api_Client_InjectTransaction(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Transaction__Handle p1, SWIGTYPE_p_GoString_ p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_InjectTransaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); return ret; } - public static uint SKY_api_Client_ResendUnconfirmedTransactions(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_ResendUnconfirmedTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_api_Client_ResendUnconfirmedTransactions(SWIGTYPE_p_Client__Handle p0) { + uint ret = skycoinPINVOKE.SKY_api_Client_ResendUnconfirmedTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0)); return ret; } @@ -447,21 +404,19 @@ public static uint SKY_api_Client_RawTransaction(SWIGTYPE_p_Client__Handle p0, _ return ret; } - public static uint SKY_api_Client_AddressTransactions(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_AddressTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + public static uint SKY_api_Client_AddressTransactions(SWIGTYPE_p_Client__Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_AddressTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_Richlist(SWIGTYPE_p_Client__Handle p0, api__RichlistParams p1, SWIGTYPE_p_Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_Richlist(SWIGTYPE_p_Client__Handle.getCPtr(p0), api__RichlistParams.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_api_Client_Richlist(SWIGTYPE_p_Client__Handle p0, api__RichlistParams p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_Richlist(SWIGTYPE_p_Client__Handle.getCPtr(p0), api__RichlistParams.getCPtr(p1)); return ret; } public static uint SKY_api_Client_AddressCount(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_unsigned_long_long p1) { uint ret = skycoinPINVOKE.SKY_api_Client_AddressCount(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -471,9 +426,8 @@ public static uint SKY_api_Client_UnloadWallet(SWIGTYPE_p_Client__Handle p0, _Go return ret; } - public static uint SKY_api_Client_Health(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_Health(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_api_Client_Health(SWIGTYPE_p_Client__Handle p0) { + uint ret = skycoinPINVOKE.SKY_api_Client_Health(SWIGTYPE_p_Client__Handle.getCPtr(p0)); return ret; } @@ -548,7 +502,6 @@ public static uint SKY_secp256k1go_XY_GetPublicKey(secp256k1go__XY p0, SWIGTYPE_ public static uint SKY_api_NewWalletResponse(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_WalletResponse__Handle p1) { uint ret = skycoinPINVOKE.SKY_api_NewWalletResponse(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -566,7 +519,6 @@ public static uint SKY_api_NewCreatedTransaction(SWIGTYPE_p_Transaction__Handle public static uint SKY_api_CreatedTransaction_ToTransaction(SWIGTYPE_p_CreatedTransaction__Handle p0, SWIGTYPE_p_Transaction__Handle p1) { uint ret = skycoinPINVOKE.SKY_api_CreatedTransaction_ToTransaction(SWIGTYPE_p_CreatedTransaction__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -618,61 +570,51 @@ public static uint SKY_wallet_Wallet_Save(SWIGTYPE_p_Wallet__Handle p0, _GoStrin public static uint SKY_wallet_Wallet_Validate(SWIGTYPE_p_Wallet__Handle p0) { uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Validate(SWIGTYPE_p_Wallet__Handle.getCPtr(p0)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_wallet_Wallet_Type(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoString_ p1) { uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Type(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_wallet_Wallet_Version(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoString_ p1) { uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Version(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_wallet_Wallet_Filename(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoString_ p1) { uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Filename(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_wallet_Wallet_Label(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoString_ p1) { uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Label(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_wallet_Wallet_IsEncrypted(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_unsigned_char p1) { uint ret = skycoinPINVOKE.SKY_wallet_Wallet_IsEncrypted(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_wallet_Wallet_GenerateAddresses(SWIGTYPE_p_Wallet__Handle p0, ulong p1, SWIGTYPE_p_GoSlice_ p2) { uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GenerateAddresses(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_wallet_Wallet_GetAddresses(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoSlice_ p1) { uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GetAddresses(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_wallet_Wallet_GetEntry(SWIGTYPE_p_Wallet__Handle p0, cipher__Address p1, wallet__Entry p2, SWIGTYPE_p_unsigned_char p3) { uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GetEntry(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), cipher__Address.getCPtr(p1), wallet__Entry.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_wallet_Wallet_AddEntry(SWIGTYPE_p_Wallet__Handle p0, wallet__Entry p1) { uint ret = skycoinPINVOKE.SKY_wallet_Wallet_AddEntry(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), wallet__Entry.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -721,82 +663,6 @@ public static uint SKY_cli_GetBalanceOfAddresses(SWIGTYPE_p_WebRpcClient__Handle return ret; } - public static uint SKY_wallet_NewNotesFilename(SWIGTYPE_p_GoString_ p0) { - uint ret = skycoinPINVOKE.SKY_wallet_NewNotesFilename(SWIGTYPE_p_GoString_.getCPtr(p0)); - return ret; - } - - public static uint SKY_wallet_LoadNotes(_GoString_ p0, SWIGTYPE_p_WalletNotes_Handle p1) { - uint ret = skycoinPINVOKE.SKY_wallet_LoadNotes(_GoString_.getCPtr(p0), SWIGTYPE_p_WalletNotes_Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_LoadReadableNotes(_GoString_ p0, SWIGTYPE_p_WalletReadableNotes_Handle p1) { - uint ret = skycoinPINVOKE.SKY_wallet_LoadReadableNotes(_GoString_.getCPtr(p0), SWIGTYPE_p_WalletReadableNotes_Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_ReadableNotes_Load(SWIGTYPE_p_WalletReadableNotes_Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_ReadableNotes_Load(SWIGTYPE_p_WalletReadableNotes_Handle.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_ReadableNotes_ToNotes(SWIGTYPE_p_WalletReadableNotes_Handle p0, SWIGTYPE_p_WalletNotes_Handle p1) { - uint ret = skycoinPINVOKE.SKY_wallet_ReadableNotes_ToNotes(SWIGTYPE_p_WalletReadableNotes_Handle.getCPtr(p0), SWIGTYPE_p_WalletNotes_Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_ReadableNotes_Save(SWIGTYPE_p_WalletReadableNotes_Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_ReadableNotes_Save(SWIGTYPE_p_WalletReadableNotes_Handle.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_NewReadableNote(wallet__Note p0, wallet__ReadableNote p1) { - uint ret = skycoinPINVOKE.SKY_wallet_NewReadableNote(wallet__Note.getCPtr(p0), wallet__ReadableNote.getCPtr(p1)); - return ret; - } - - public static uint SKY_wallet_NewReadableNotesFromNotes(SWIGTYPE_p_WalletNotes_Handle p0, SWIGTYPE_p_WalletReadableNotes_Handle p1) { - uint ret = skycoinPINVOKE.SKY_wallet_NewReadableNotesFromNotes(SWIGTYPE_p_WalletNotes_Handle.getCPtr(p0), SWIGTYPE_p_WalletReadableNotes_Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_Notes_Save(SWIGTYPE_p_WalletNotes_Handle p0, _GoString_ p1, _GoString_ p2) { - uint ret = skycoinPINVOKE.SKY_wallet_Notes_Save(SWIGTYPE_p_WalletNotes_Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_Notes_SaveNote(SWIGTYPE_p_WalletNotes_Handle p0, _GoString_ p1, wallet__Note p2) { - uint ret = skycoinPINVOKE.SKY_wallet_Notes_SaveNote(SWIGTYPE_p_WalletNotes_Handle.getCPtr(p0), _GoString_.getCPtr(p1), wallet__Note.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_Notes_ToReadable(SWIGTYPE_p_WalletNotes_Handle p0, SWIGTYPE_p_WalletReadableNotes_Handle p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Notes_ToReadable(SWIGTYPE_p_WalletNotes_Handle.getCPtr(p0), SWIGTYPE_p_WalletReadableNotes_Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_NotesFileExist(_GoString_ p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_wallet_NotesFileExist(_GoString_.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_CreateNoteFileIfNotExist(_GoString_ p0) { - uint ret = skycoinPINVOKE.SKY_wallet_CreateNoteFileIfNotExist(_GoString_.getCPtr(p0)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - public static uint SKY_wallet_NewReadableEntry(wallet__Entry p0, SWIGTYPE_p_ReadableEntry__Handle p1) { uint ret = skycoinPINVOKE.SKY_wallet_NewReadableEntry(wallet__Entry.getCPtr(p0), SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p1)); return ret; @@ -840,7 +706,6 @@ public static uint SKY_wallet_ReadableWallet_Load(SWIGTYPE_p_ReadableWallet__Han public static uint SKY_wallet_ReadableWallet_Erase(SWIGTYPE_p_ReadableWallet__Handle p0) { uint ret = skycoinPINVOKE.SKY_wallet_ReadableWallet_Erase(SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p0)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -970,31 +835,16 @@ public static uint SKY_webrpc_NewClient(_GoString_ p0, SWIGTYPE_p_WebRpcClient__ public static uint SKY_webrpc_Client_CSRF(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_GoString_ p1) { uint ret = skycoinPINVOKE.SKY_webrpc_Client_CSRF(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_webrpc_Client_GetUnspentOutputs(SWIGTYPE_p_WebRpcClient__Handle p0, GoSlice p1, SWIGTYPE_p_OutputsResult_Handle p2) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetUnspentOutputs(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_OutputsResult_Handle.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_webrpc_Client_InjectTransactionString(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, SWIGTYPE_p_GoString_ p2) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_InjectTransactionString(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_webrpc_Client_InjectTransaction(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_Transaction__Handle p1, SWIGTYPE_p_GoString_ p2) { uint ret = skycoinPINVOKE.SKY_webrpc_Client_InjectTransaction(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_webrpc_Client_GetStatus(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_StatusResult_Handle p1) { uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetStatus(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_StatusResult_Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -1012,7 +862,6 @@ public static uint SKY_webrpc_Client_GetAddressUxOuts(SWIGTYPE_p_WebRpcClient__H public static uint SKY_webrpc_Client_GetBlocks(SWIGTYPE_p_WebRpcClient__Handle p0, ulong p1, ulong p2, SWIGTYPE_p_GoSlice_ p3) { uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetBlocks(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), p1, p2, SWIGTYPE_p_GoSlice_.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -1024,7 +873,6 @@ public static uint SKY_webrpc_Client_GetBlocksBySeq(SWIGTYPE_p_WebRpcClient__Han public static uint SKY_webrpc_Client_GetLastBlocks(SWIGTYPE_p_WebRpcClient__Handle p0, ulong p1, SWIGTYPE_p_GoSlice_ p2) { uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetLastBlocks(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -1112,13 +960,13 @@ public static uint SKY_coin_Int64ToUint64(long p0, SWIGTYPE_p_unsigned_long_long return ret; } - public static long SKY_cipher_PubKeySlice_Len(SWIGTYPE_p_GoSlice_ p0) { - long ret = skycoinPINVOKE.SKY_cipher_PubKeySlice_Len(SWIGTYPE_p_GoSlice_.getCPtr(p0)); + public static uint SKY_cipher_PubKeySlice_Len(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_cipher_PubKeySlice_Len(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); return ret; } - public static byte SKY_cipher_PubKeySlice_Less(SWIGTYPE_p_GoSlice_ p0, long p1, long p2) { - byte ret = skycoinPINVOKE.SKY_cipher_PubKeySlice_Less(SWIGTYPE_p_GoSlice_.getCPtr(p0), p1, p2); + public static uint SKY_cipher_PubKeySlice_Less(SWIGTYPE_p_GoSlice_ p0, long p1, long p2, SWIGTYPE_p_unsigned_char p3) { + uint ret = skycoinPINVOKE.SKY_cipher_PubKeySlice_Less(SWIGTYPE_p_GoSlice_.getCPtr(p0), p1, p2, SWIGTYPE_p_unsigned_char.getCPtr(p3)); return ret; } @@ -1138,12 +986,6 @@ public static uint SKY_cipher_NewPubKey(GoSlice p0, SWIGTYPE_p_a_33__GoUint8_ p1 return ret; } - public static uint SKY_cipher_MustPubKeyFromHex(_GoString_ p0, SWIGTYPE_p_a_33__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_MustPubKeyFromHex(_GoString_.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - public static uint SKY_cipher_PubKeyFromHex(_GoString_ p0, SWIGTYPE_p_a_33__GoUint8_ p1) { uint ret = skycoinPINVOKE.SKY_cipher_PubKeyFromHex(_GoString_.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); @@ -1181,12 +1023,6 @@ public static uint SKY_cipher_NewSecKey(GoSlice p0, SWIGTYPE_p_a_32__GoUint8_ p1 return ret; } - public static uint SKY_cipher_MustSecKeyFromHex(_GoString_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_MustSecKeyFromHex(_GoString_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - public static uint SKY_cipher_SecKeyFromHex(_GoString_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { uint ret = skycoinPINVOKE.SKY_cipher_SecKeyFromHex(_GoString_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); @@ -1214,12 +1050,6 @@ public static uint SKY_cipher_NewSig(GoSlice p0, SWIGTYPE_p_a_65__GoUint8_ p1) { return ret; } - public static uint SKY_cipher_MustSigFromHex(_GoString_ p0, SWIGTYPE_p_a_65__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_MustSigFromHex(_GoString_.getCPtr(p0), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - public static uint SKY_cipher_SigFromHex(_GoString_ p0, SWIGTYPE_p_a_65__GoUint8_ p1) { uint ret = skycoinPINVOKE.SKY_cipher_SigFromHex(_GoString_.getCPtr(p0), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); @@ -1251,11 +1081,6 @@ public static uint SKY_cipher_VerifySignature(SWIGTYPE_p_a_33__GoUint8_ p0, SWIG return ret; } - public static uint SKY_cipher_GenerateKeyPair(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_GenerateKeyPair(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - return ret; - } - public static uint SKY_cipher_GenerateDeterministicKeyPair(GoSlice p0, SWIGTYPE_p_a_33__GoUint8_ p1, SWIGTYPE_p_a_32__GoUint8_ p2) { uint ret = skycoinPINVOKE.SKY_cipher_GenerateDeterministicKeyPair(GoSlice.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); @@ -1290,6 +1115,11 @@ public static uint SKY_cipher_TestSecKeyHash(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGT return ret; } + public static uint SKY_cipher_GenerateKeyPair(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_GenerateKeyPair(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + return ret; + } + public static uint SKY_secp256k1go_Signature_Create(SWIGTYPE_p_Signature_Handle p0) { uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Create(SWIGTYPE_p_Signature_Handle.getCPtr(p0)); return ret; @@ -1297,13 +1127,11 @@ public static uint SKY_secp256k1go_Signature_Create(SWIGTYPE_p_Signature_Handle public static uint SKY_secp256k1go_Signature_GetR(SWIGTYPE_p_Signature_Handle p0, SWIGTYPE_p_Number_Handle p1) { uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_GetR(SWIGTYPE_p_Signature_Handle.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_secp256k1go_Signature_GetS(SWIGTYPE_p_Signature_Handle p0, SWIGTYPE_p_Number_Handle p1) { uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_GetS(SWIGTYPE_p_Signature_Handle.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -1315,19 +1143,16 @@ public static uint SKY_secp256k1go_Signature_Print(SWIGTYPE_p_Signature_Handle p public static uint SKY_secp256k1go_Signature_Verify(SWIGTYPE_p_Signature_Handle p0, secp256k1go__XY p1, SWIGTYPE_p_Number_Handle p2, SWIGTYPE_p_unsigned_char p3) { uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Verify(SWIGTYPE_p_Signature_Handle.getCPtr(p0), secp256k1go__XY.getCPtr(p1), SWIGTYPE_p_Number_Handle.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_secp256k1go_Signature_Recover(SWIGTYPE_p_Signature_Handle p0, secp256k1go__XY p1, SWIGTYPE_p_Number_Handle p2, long p3, SWIGTYPE_p_unsigned_char p4) { uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Recover(SWIGTYPE_p_Signature_Handle.getCPtr(p0), secp256k1go__XY.getCPtr(p1), SWIGTYPE_p_Number_Handle.getCPtr(p2), p3, SWIGTYPE_p_unsigned_char.getCPtr(p4)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_secp256k1go_Signature_Sign(SWIGTYPE_p_Signature_Handle p0, SWIGTYPE_p_Number_Handle p1, SWIGTYPE_p_Number_Handle p2, SWIGTYPE_p_Number_Handle p3, SWIGTYPE_p_long_long p4, SWIGTYPE_p_long_long p5) { uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Sign(SWIGTYPE_p_Signature_Handle.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1), SWIGTYPE_p_Number_Handle.getCPtr(p2), SWIGTYPE_p_Number_Handle.getCPtr(p3), SWIGTYPE_p_long_long.getCPtr(p4), SWIGTYPE_p_long_long.getCPtr(p5)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -1339,7 +1164,6 @@ public static uint SKY_secp256k1go_Signature_ParseBytes(SWIGTYPE_p_Signature_Han public static uint SKY_secp256k1go_Signature_Bytes(SWIGTYPE_p_Signature_Handle p0, SWIGTYPE_p_GoSlice_ p1) { uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Bytes(SWIGTYPE_p_Signature_Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -1351,19 +1175,16 @@ public static uint SKY_cli_App_Run(SWIGTYPE_p_App__Handle p0, _GoString_ p1) { public static uint SKY_cli_Config_GetCoin(SWIGTYPE_p_Config__Handle p0, SWIGTYPE_p_GoString_ p1) { uint ret = skycoinPINVOKE.SKY_cli_Config_GetCoin(SWIGTYPE_p_Config__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_cli_Config_GetRPCAddress(SWIGTYPE_p_Config__Handle p0, SWIGTYPE_p_GoString_ p1) { uint ret = skycoinPINVOKE.SKY_cli_Config_GetRPCAddress(SWIGTYPE_p_Config__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_cli_RPCClientFromApp(SWIGTYPE_p_App__Handle p0, SWIGTYPE_p_WebRpcClient__Handle p1) { uint ret = skycoinPINVOKE.SKY_cli_RPCClientFromApp(SWIGTYPE_p_App__Handle.getCPtr(p0), SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -1522,7 +1343,6 @@ public static uint SKY_secp256k1go_XYZ_Equals(secp256k1go__XYZ p0, secp256k1go__ public static uint SKY_secp256k1go_XYZ_ECmult(secp256k1go__XYZ p0, secp256k1go__XYZ p1, SWIGTYPE_p_Number_Handle p2, SWIGTYPE_p_Number_Handle p3) { uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_ECmult(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1), SWIGTYPE_p_Number_Handle.getCPtr(p2), SWIGTYPE_p_Number_Handle.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -1548,7 +1368,6 @@ public static uint SKY_secp256k1go_XYZ_Add(secp256k1go__XYZ p0, secp256k1go__XYZ public static uint SKY_secp256k1go_ECmultGen(secp256k1go__XYZ p0, SWIGTYPE_p_Number_Handle p1) { uint ret = skycoinPINVOKE.SKY_secp256k1go_ECmultGen(secp256k1go__XYZ.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -1583,12 +1402,10 @@ public static uint SKY_wallet_CryptoTypeFromString(_GoString_ p0, SWIGTYPE_p_GoS public static void SKY_handle_close(SWIGTYPE_p_Handle p0) { skycoinPINVOKE.SKY_handle_close(SWIGTYPE_p_Handle.getCPtr(p0)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } - public static uint SKY_handle_copy(SWIGTYPE_p_Handle p0, SWIGTYPE_p_Handle p1) { - uint ret = skycoinPINVOKE.SKY_handle_copy(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_handle_copy(SWIGTYPE_p_Handle p0) { + uint ret = skycoinPINVOKE.SKY_handle_copy(SWIGTYPE_p_Handle.getCPtr(p0)); return ret; } @@ -1630,18 +1447,6 @@ public static uint SKY_cipher_DecodeBase58Address(_GoString_ p0, cipher__Address return ret; } - public static uint SKY_cipher_MustDecodeBase58Address(_GoString_ p0, cipher__Address p1) { - uint ret = skycoinPINVOKE.SKY_cipher_MustDecodeBase58Address(_GoString_.getCPtr(p0), cipher__Address.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cipher_BitcoinMustDecodeBase58Address(_GoString_ p0, cipher__Address p1) { - uint ret = skycoinPINVOKE.SKY_cipher_BitcoinMustDecodeBase58Address(_GoString_.getCPtr(p0), cipher__Address.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - public static uint SKY_cipher_AddressFromBytes(GoSlice p0, cipher__Address p1) { uint ret = skycoinPINVOKE.SKY_cipher_AddressFromBytes(GoSlice.getCPtr(p0), cipher__Address.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); @@ -1664,9 +1469,8 @@ public static uint SKY_cipher_BitcoinDecodeBase58Address(_GoString_ p0, cipher__ return ret; } - public static uint SKY_cipher_MustAddressFromBytes(GoSlice p0, cipher__Address p1) { - uint ret = skycoinPINVOKE.SKY_cipher_MustAddressFromBytes(GoSlice.getCPtr(p0), cipher__Address.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_cipher_Address_Null(cipher__Address p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_cipher_Address_Null(cipher__Address.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); return ret; } @@ -1675,11 +1479,6 @@ public static uint SKY_cipher_Address_Bytes(cipher__Address p0, SWIGTYPE_p_GoSli return ret; } - public static uint SKY_cipher_Address_Null(cipher__Address p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_cipher_Address_Null(cipher__Address.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); - return ret; - } - public static uint SKY_cipher_Address_BitcoinBytes(cipher__Address p0, SWIGTYPE_p_GoSlice_ p1) { uint ret = skycoinPINVOKE.SKY_cipher_Address_BitcoinBytes(cipher__Address.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); return ret; @@ -1732,177 +1531,143 @@ public static uint SKY_cipher_SecKeyFromWalletImportFormat(_GoString_ p0, SWIGTY return ret; } - public static uint SKY_cipher_MustSecKeyFromWalletImportFormat(_GoString_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_MustSecKeyFromWalletImportFormat(_GoString_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - public static uint SKY_JsonEncode_Handle(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { uint ret = skycoinPINVOKE.SKY_JsonEncode_Handle(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_Handle_Progress_GetCurrent(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { uint ret = skycoinPINVOKE.SKY_Handle_Progress_GetCurrent(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_Handle_Block_GetHeadSeq(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { uint ret = skycoinPINVOKE.SKY_Handle_Block_GetHeadSeq(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_Handle_Block_GetHeadHash(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { uint ret = skycoinPINVOKE.SKY_Handle_Block_GetHeadHash(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_Handle_Block_GetPreviousBlockHash(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { uint ret = skycoinPINVOKE.SKY_Handle_Block_GetPreviousBlockHash(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_Handle_Blocks_GetAt(SWIGTYPE_p_Handle p0, ulong p1, SWIGTYPE_p_Handle p2) { - uint ret = skycoinPINVOKE.SKY_Handle_Blocks_GetAt(SWIGTYPE_p_Handle.getCPtr(p0), p1, SWIGTYPE_p_Handle.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_Handle_Blocks_GetAt(SWIGTYPE_p_Handle p0, ulong p1) { + uint ret = skycoinPINVOKE.SKY_Handle_Blocks_GetAt(SWIGTYPE_p_Handle.getCPtr(p0), p1); return ret; } public static uint SKY_Handle_Blocks_GetCount(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { uint ret = skycoinPINVOKE.SKY_Handle_Blocks_GetCount(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_Handle_Connections_GetCount(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { uint ret = skycoinPINVOKE.SKY_Handle_Connections_GetCount(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_Handle_Strings_GetCount(SWIGTYPE_p_Strings__Handle p0, SWIGTYPE_p_unsigned_int p1) { uint ret = skycoinPINVOKE.SKY_Handle_Strings_GetCount(SWIGTYPE_p_Strings__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_Handle_Strings_Sort(SWIGTYPE_p_Strings__Handle p0) { uint ret = skycoinPINVOKE.SKY_Handle_Strings_Sort(SWIGTYPE_p_Strings__Handle.getCPtr(p0)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_Handle_Strings_GetAt(SWIGTYPE_p_Strings__Handle p0, long p1, SWIGTYPE_p_GoString_ p2) { uint ret = skycoinPINVOKE.SKY_Handle_Strings_GetAt(SWIGTYPE_p_Strings__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoString_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_api_Handle_Client_GetWalletDir(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_GoString_ p1) { uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletDir(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_api_Handle_Client_GetWalletFileName(SWIGTYPE_p_WalletResponse__Handle p0, SWIGTYPE_p_GoString_ p1) { uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletFileName(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_api_Handle_Client_GetWalletLabel(SWIGTYPE_p_WalletResponse__Handle p0, SWIGTYPE_p_GoString_ p1) { uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletLabel(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_api_Handle_Client_GetWalletFullPath(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_WalletResponse__Handle p1, SWIGTYPE_p_GoString_ p2) { uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletFullPath(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_api_Handle_GetWalletMeta(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoStringMap_ p1) { uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletMeta(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoStringMap_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_api_Handle_GetWalletEntriesCount(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_unsigned_int p1) { uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletEntriesCount(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_api_Handle_Client_GetWalletResponseEntriesCount(SWIGTYPE_p_WalletResponse__Handle p0, SWIGTYPE_p_unsigned_int p1) { uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletResponseEntriesCount(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_api_Handle_WalletGetEntry(SWIGTYPE_p_Wallet__Handle p0, uint p1, cipher__Address p2, SWIGTYPE_p_a_33__GoUint8_ p3) { uint ret = skycoinPINVOKE.SKY_api_Handle_WalletGetEntry(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), p1, cipher__Address.getCPtr(p2), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_api_Handle_WalletResponseGetEntry(SWIGTYPE_p_WalletResponse__Handle p0, uint p1, SWIGTYPE_p_GoString_ p2, SWIGTYPE_p_GoString_ p3) { uint ret = skycoinPINVOKE.SKY_api_Handle_WalletResponseGetEntry(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoString_.getCPtr(p2), SWIGTYPE_p_GoString_.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_api_Handle_WalletResponseIsEncrypted(SWIGTYPE_p_WalletResponse__Handle p0, SWIGTYPE_p_unsigned_char p1) { uint ret = skycoinPINVOKE.SKY_api_Handle_WalletResponseIsEncrypted(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_api_Handle_WalletResponseGetCryptoType(SWIGTYPE_p_WalletResponse__Handle p0, SWIGTYPE_p_GoString_ p1) { uint ret = skycoinPINVOKE.SKY_api_Handle_WalletResponseGetCryptoType(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_api_Handle_WalletsResponseGetCount(SWIGTYPE_p_Wallets__Handle p0, SWIGTYPE_p_unsigned_int p1) { uint ret = skycoinPINVOKE.SKY_api_Handle_WalletsResponseGetCount(SWIGTYPE_p_Wallets__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_api_Handle_WalletsResponseGetAt(SWIGTYPE_p_Wallets__Handle p0, uint p1, SWIGTYPE_p_WalletResponse__Handle p2) { uint ret = skycoinPINVOKE.SKY_api_Handle_WalletsResponseGetAt(SWIGTYPE_p_Wallets__Handle.getCPtr(p0), p1, SWIGTYPE_p_WalletResponse__Handle.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_api_Handle_GetWalletFolderAddress(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletFolderAddress(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_api_Handle_GetWalletSeed(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoString_ p1) { uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletSeed(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_api_Handle_GetWalletLastSeed(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoString_ p1) { uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletLastSeed(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_api_Handle_GetBuildInfoData(SWIGTYPE_p_BuildInfo_Handle p0, SWIGTYPE_p_GoString_ p1, SWIGTYPE_p_GoString_ p2, SWIGTYPE_p_GoString_ p3) { uint ret = skycoinPINVOKE.SKY_api_Handle_GetBuildInfoData(SWIGTYPE_p_BuildInfo_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2), SWIGTYPE_p_GoString_.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -1942,13 +1707,11 @@ public static uint SKY_secp256k1go_Number_SetHex(SWIGTYPE_p_Number_Handle p0, _G public static uint SKY_secp256k1go_Number_IsOdd(SWIGTYPE_p_Number_Handle p0, SWIGTYPE_p_unsigned_char p1) { uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_IsOdd(SWIGTYPE_p_Number_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_secp256k1go_Number_IsEqual(SWIGTYPE_p_Number_Handle p0, SWIGTYPE_p_Number_Handle p1, SWIGTYPE_p_unsigned_char p2) { uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_IsEqual(SWIGTYPE_p_Number_Handle.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -2093,9 +1856,10 @@ public static uint SKY_encrypt_ScryptChacha20poly1305_Decrypt(encrypt__ScryptCha return ret; } - public static void SKY_wallet_CreateOptionsHandle(_GoString_ p0, _GoString_ p1, _GoString_ p2, byte p3, _GoString_ p4, _GoString_ p5, ulong p6, SWIGTYPE_p_Options__Handle p7) { - skycoinPINVOKE.SKY_wallet_CreateOptionsHandle(_GoString_.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), p3, _GoString_.getCPtr(p4), _GoString_.getCPtr(p5), p6, SWIGTYPE_p_Options__Handle.getCPtr(p7)); + public static uint SKY_wallet_CreateOptionsHandle(_GoString_ p0, _GoString_ p1, _GoString_ p2, byte p3, _GoString_ p4, _GoString_ p5, ulong p6, SWIGTYPE_p_Options__Handle p7) { + uint ret = skycoinPINVOKE.SKY_wallet_CreateOptionsHandle(_GoString_.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), p3, _GoString_.getCPtr(p4), _GoString_.getCPtr(p5), p6, SWIGTYPE_p_Options__Handle.getCPtr(p7)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; } public static uint SKY_cli_AddPrivateKey(SWIGTYPE_p_Wallet__Handle p0, _GoString_ p1) { @@ -2228,7 +1992,6 @@ public static uint SKY_cert_CreateCertIfNotExists(_GoString_ p0, _GoString_ p1, public static uint SKY_fee_VerifyTransactionFee(SWIGTYPE_p_Transaction__Handle p0, ulong p1) { uint ret = skycoinPINVOKE.SKY_fee_VerifyTransactionFee(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -2249,7 +2012,6 @@ public static uint SKY_fee_RemainingHours(ulong p0, SWIGTYPE_p_unsigned_long_lon public static uint SKY_fee_TransactionFee(SWIGTYPE_p_Transaction__Handle p0, ulong p1, SWIGTYPE_p_GoSlice_ p2, SWIGTYPE_p_unsigned_long_long p3) { uint ret = skycoinPINVOKE.SKY_fee_TransactionFee(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2), SWIGTYPE_p_unsigned_long_long.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -2260,31 +2022,26 @@ public static uint SKY_cli_LoadConfig(SWIGTYPE_p_Config__Handle p0) { public static uint SKY_cli_Config_FullWalletPath(SWIGTYPE_p_Config__Handle p0, SWIGTYPE_p_GoString_ p1) { uint ret = skycoinPINVOKE.SKY_cli_Config_FullWalletPath(SWIGTYPE_p_Config__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_cli_Config_FullDBPath(SWIGTYPE_p_Config__Handle p0, SWIGTYPE_p_GoString_ p1) { uint ret = skycoinPINVOKE.SKY_cli_Config_FullDBPath(SWIGTYPE_p_Config__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_cli_NewApp(SWIGTYPE_p_Config__Handle p0, SWIGTYPE_p_App__Handle p1) { uint ret = skycoinPINVOKE.SKY_cli_NewApp(SWIGTYPE_p_Config__Handle.getCPtr(p0), SWIGTYPE_p_App__Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_cli_RPCClientFromContext(SWIGTYPE_p_Context__Handle p0, SWIGTYPE_p_WebRpcClient__Handle p1) { uint ret = skycoinPINVOKE.SKY_cli_RPCClientFromContext(SWIGTYPE_p_Context__Handle.getCPtr(p0), SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_cli_ConfigFromContext(SWIGTYPE_p_Context__Handle p0, SWIGTYPE_p_Config__Handle p1) { uint ret = skycoinPINVOKE.SKY_cli_ConfigFromContext(SWIGTYPE_p_Context__Handle.getCPtr(p0), SWIGTYPE_p_Config__Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -2345,15 +2102,14 @@ public static uint SKY_file_DetermineResourcePath(_GoString_ p0, _GoString_ p1, return ret; } - public static uint SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, SWIGTYPE_p_OutputsResult_Handle p2) { - uint ret = skycoinPINVOKE.SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_OutputsResult_Handle.getCPtr(p2)); + public static uint SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, SWIGTYPE_p_ReadableOutputSet__Handle p2) { + uint ret = skycoinPINVOKE.SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_ReadableOutputSet__Handle.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cli_GetWalletOutputs(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_Wallet__Handle p1, SWIGTYPE_p_OutputsResult_Handle p2) { - uint ret = skycoinPINVOKE.SKY_cli_GetWalletOutputs(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_Wallet__Handle.getCPtr(p1), SWIGTYPE_p_OutputsResult_Handle.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_cli_GetWalletOutputs(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_Wallet__Handle p1, SWIGTYPE_p_ReadableOutputSet__Handle p2) { + uint ret = skycoinPINVOKE.SKY_cli_GetWalletOutputs(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_Wallet__Handle.getCPtr(p1), SWIGTYPE_p_ReadableOutputSet__Handle.getCPtr(p2)); return ret; } @@ -2524,12 +2280,6 @@ public static uint SKY_cipher_Merkle(GoSlice p0, SWIGTYPE_p_a_32__GoUint8_ p1) { return ret; } - public static uint SKY_cipher_MustSumSHA256(GoSlice p0, long p1, SWIGTYPE_p_a_32__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_cipher_MustSumSHA256(GoSlice.getCPtr(p0), p1, SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - public static uint SKY_cipher_SHA256_Null(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_unsigned_char p1) { uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Null(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); return ret; @@ -2542,109 +2292,91 @@ public static uint SKY_coin_Create_Transaction(SWIGTYPE_p_Transaction__Handle p0 public static uint SKY_coin_Transaction_Copy(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_Transaction__Handle p1) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_Copy(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_GetTransactionObject(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_p_coin__Transaction p1) { uint ret = skycoinPINVOKE.SKY_coin_GetTransactionObject(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_p_coin__Transaction.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transaction_ResetInputs(SWIGTYPE_p_Transaction__Handle p0, long p1) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_ResetInputs(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transaction_GetInputsCount(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetInputsCount(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transaction_GetInputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, SWIGTYPE_p_a_32__GoUint8_ p2) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetInputAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transaction_SetInputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, SWIGTYPE_p_a_32__GoUint8_ p2) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetInputAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transaction_GetOutputsCount(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetOutputsCount(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transaction_GetOutputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, coin__TransactionOutput p2) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetOutputAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, coin__TransactionOutput.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transaction_SetOutputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, coin__TransactionOutput p2) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetOutputAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, coin__TransactionOutput.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transaction_GetSignaturesCount(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetSignaturesCount(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transaction_GetSignatureAt(SWIGTYPE_p_Transaction__Handle p0, long p1, SWIGTYPE_p_a_65__GoUint8_ p2) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetSignatureAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transaction_SetSignatureAt(SWIGTYPE_p_Transaction__Handle p0, long p1, SWIGTYPE_p_a_65__GoUint8_ p2) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetSignatureAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transaction_PushSignature(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_a_65__GoUint8_ p1) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushSignature(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transaction_ResetOutputs(SWIGTYPE_p_Transaction__Handle p0, long p1) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_ResetOutputs(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transaction_ResetSignatures(SWIGTYPE_p_Transaction__Handle p0, long p1) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_ResetSignatures(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transaction_Verify(SWIGTYPE_p_Transaction__Handle p0) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_Verify(SWIGTYPE_p_Transaction__Handle.getCPtr(p0)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transaction_VerifyInput(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_GoSlice_ p1) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_VerifyInput(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transaction_PushInput(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_unsigned_short p2) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushInput(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_unsigned_short.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -2655,7 +2387,6 @@ public static uint SKY_coin_TransactionOutput_UxID(coin__TransactionOutput p0, S public static uint SKY_coin_Transaction_PushOutput(SWIGTYPE_p_Transaction__Handle p0, cipher__Address p1, ulong p2, ulong p3) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushOutput(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), cipher__Address.getCPtr(p1), p2, p3); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -2667,55 +2398,41 @@ public static uint SKY_coin_Transaction_SignInputs(SWIGTYPE_p_Transaction__Handl public static uint SKY_coin_Transaction_Size(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_Size(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transaction_Hash(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_Hash(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transaction_SizeHash(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1, SWIGTYPE_p_a_32__GoUint8_ p2) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_SizeHash(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transaction_TxID(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_GoSlice_ p1) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_TxID(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transaction_TxIDHex(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_GoString_ p1) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_TxIDHex(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transaction_UpdateHeader(SWIGTYPE_p_Transaction__Handle p0) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_UpdateHeader(SWIGTYPE_p_Transaction__Handle.getCPtr(p0)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transaction_HashInner(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_HashInner(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transaction_Serialize(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_GoSlice_ p1) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_Serialize(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_coin_MustTransactionDeserialize(GoSlice p0, SWIGTYPE_p_Transaction__Handle p1) { - uint ret = skycoinPINVOKE.SKY_coin_MustTransactionDeserialize(GoSlice.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -2727,7 +2444,6 @@ public static uint SKY_coin_TransactionDeserialize(GoSlice p0, SWIGTYPE_p_Transa public static uint SKY_coin_Transaction_OutputHours(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_unsigned_long_long p1) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_OutputHours(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -2738,61 +2454,51 @@ public static uint SKY_coin_Create_Transactions(SWIGTYPE_p_Transactions__Handle public static uint SKY_coin_GetTransactionsObject(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_p_GoSlice_ p1) { uint ret = skycoinPINVOKE.SKY_coin_GetTransactionsObject(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transactions_Length(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_long_long p1) { uint ret = skycoinPINVOKE.SKY_coin_Transactions_Length(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transactions_Add(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_Transaction__Handle p1) { uint ret = skycoinPINVOKE.SKY_coin_Transactions_Add(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transactions_Fees(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_FeeCalculator p1, SWIGTYPE_p_unsigned_long_long p2) { uint ret = skycoinPINVOKE.SKY_coin_Transactions_Fees(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1), SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transactions_GetAt(SWIGTYPE_p_Transactions__Handle p0, long p1, SWIGTYPE_p_Transaction__Handle p2) { uint ret = skycoinPINVOKE.SKY_coin_Transactions_GetAt(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), p1, SWIGTYPE_p_Transaction__Handle.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transactions_Hashes(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_GoSlice_ p1) { uint ret = skycoinPINVOKE.SKY_coin_Transactions_Hashes(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transactions_Size(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_long_long p1) { uint ret = skycoinPINVOKE.SKY_coin_Transactions_Size(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transactions_TruncateBytesTo(SWIGTYPE_p_Transactions__Handle p0, long p1, SWIGTYPE_p_Transactions__Handle p2) { uint ret = skycoinPINVOKE.SKY_coin_Transactions_TruncateBytesTo(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), p1, SWIGTYPE_p_Transactions__Handle.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_SortTransactions(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_FeeCalculator p1, SWIGTYPE_p_Transactions__Handle p2) { uint ret = skycoinPINVOKE.SKY_coin_SortTransactions(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1), SWIGTYPE_p_Transactions__Handle.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_NewSortableTransactions(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_FeeCalculator p1, SWIGTYPE_p_SortableTransactionResult_Handle p2) { uint ret = skycoinPINVOKE.SKY_coin_NewSortableTransactions(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1), SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -2830,6 +2536,162 @@ public static uint SKY_coin_VerifyTransactionHoursSpending(ulong p0, SWIGTYPE_p_ return ret; } + public static readonly long SKY_ErrVerifySignatureInvalidPubkeysLength = skycoinPINVOKE.SKY_ErrVerifySignatureInvalidPubkeysLength_get(); + public static readonly long SKY_OK = skycoinPINVOKE.SKY_OK_get(); + public static readonly long SKY_ERROR = skycoinPINVOKE.SKY_ERROR_get(); + public static readonly long SKY_PKG_API = skycoinPINVOKE.SKY_PKG_API_get(); + public static readonly long SKY_PKG_CIPHER = skycoinPINVOKE.SKY_PKG_CIPHER_get(); + public static readonly long SKY_PKG_CLI = skycoinPINVOKE.SKY_PKG_CLI_get(); + public static readonly long SKY_PKG_COIN = skycoinPINVOKE.SKY_PKG_COIN_get(); + public static readonly long SKY_PKG_CONSENSUS = skycoinPINVOKE.SKY_PKG_CONSENSUS_get(); + public static readonly long SKY_PKG_DAEMON = skycoinPINVOKE.SKY_PKG_DAEMON_get(); + public static readonly long SKY_PKG_GUI = skycoinPINVOKE.SKY_PKG_GUI_get(); + public static readonly long SKY_PKG_SKYCOIN = skycoinPINVOKE.SKY_PKG_SKYCOIN_get(); + public static readonly long SKY_PKG_UTIL = skycoinPINVOKE.SKY_PKG_UTIL_get(); + public static readonly long SKY_PKG_VISOR = skycoinPINVOKE.SKY_PKG_VISOR_get(); + public static readonly long SKY_PKG_WALLET = skycoinPINVOKE.SKY_PKG_WALLET_get(); + public static readonly long SKY_ErrAddressInvalidLength = skycoinPINVOKE.SKY_ErrAddressInvalidLength_get(); + public static readonly long SKY_ErrAddressInvalidChecksum = skycoinPINVOKE.SKY_ErrAddressInvalidChecksum_get(); + public static readonly long SKY_ErrAddressInvalidVersion = skycoinPINVOKE.SKY_ErrAddressInvalidVersion_get(); + public static readonly long SKY_ErrAddressInvalidPubKey = skycoinPINVOKE.SKY_ErrAddressInvalidPubKey_get(); + public static readonly long SKY_ErrAddressInvalidFirstByte = skycoinPINVOKE.SKY_ErrAddressInvalidFirstByte_get(); + public static readonly long SKY_ErrAddressInvalidLastByte = skycoinPINVOKE.SKY_ErrAddressInvalidLastByte_get(); + public static readonly long SKY_ErrBufferUnderflow = skycoinPINVOKE.SKY_ErrBufferUnderflow_get(); + public static readonly long SKY_ErrInvalidOmitEmpty = skycoinPINVOKE.SKY_ErrInvalidOmitEmpty_get(); + public static readonly long SKY_ErrInvalidLengthPubKey = skycoinPINVOKE.SKY_ErrInvalidLengthPubKey_get(); + public static readonly long SKY_ErrPubKeyFromNullSecKey = skycoinPINVOKE.SKY_ErrPubKeyFromNullSecKey_get(); + public static readonly long SKY_ErrPubKeyFromBadSecKey = skycoinPINVOKE.SKY_ErrPubKeyFromBadSecKey_get(); + public static readonly long SKY_ErrInvalidLengthSecKey = skycoinPINVOKE.SKY_ErrInvalidLengthSecKey_get(); + public static readonly long SKY_ErrECHDInvalidPubKey = skycoinPINVOKE.SKY_ErrECHDInvalidPubKey_get(); + public static readonly long SKY_ErrECHDInvalidSecKey = skycoinPINVOKE.SKY_ErrECHDInvalidSecKey_get(); + public static readonly long SKY_ErrInvalidLengthSig = skycoinPINVOKE.SKY_ErrInvalidLengthSig_get(); + public static readonly long SKY_ErrInvalidLengthRipemd160 = skycoinPINVOKE.SKY_ErrInvalidLengthRipemd160_get(); + public static readonly long SKY_ErrInvalidLengthSHA256 = skycoinPINVOKE.SKY_ErrInvalidLengthSHA256_get(); + public static readonly long SKY_ErrInvalidBase58Char = skycoinPINVOKE.SKY_ErrInvalidBase58Char_get(); + public static readonly long SKY_ErrInvalidBase58String = skycoinPINVOKE.SKY_ErrInvalidBase58String_get(); + public static readonly long SKY_ErrInvalidBase58Length = skycoinPINVOKE.SKY_ErrInvalidBase58Length_get(); + public static readonly long SKY_ErrInvalidHexLength = skycoinPINVOKE.SKY_ErrInvalidHexLength_get(); + public static readonly long SKY_ErrInvalidBytesLength = skycoinPINVOKE.SKY_ErrInvalidBytesLength_get(); + public static readonly long SKY_ErrInvalidPubKey = skycoinPINVOKE.SKY_ErrInvalidPubKey_get(); + public static readonly long SKY_ErrInvalidSecKey = skycoinPINVOKE.SKY_ErrInvalidSecKey_get(); + public static readonly long SKY_ErrInvalidSigForPubKey = skycoinPINVOKE.SKY_ErrInvalidSigForPubKey_get(); + public static readonly long SKY_ErrInvalidSecKeyHex = skycoinPINVOKE.SKY_ErrInvalidSecKeyHex_get(); + public static readonly long SKY_ErrInvalidAddressForSig = skycoinPINVOKE.SKY_ErrInvalidAddressForSig_get(); + public static readonly long SKY_ErrInvalidHashForSig = skycoinPINVOKE.SKY_ErrInvalidHashForSig_get(); + public static readonly long SKY_ErrPubKeyRecoverMismatch = skycoinPINVOKE.SKY_ErrPubKeyRecoverMismatch_get(); + public static readonly long SKY_ErrInvalidSigInvalidPubKey = skycoinPINVOKE.SKY_ErrInvalidSigInvalidPubKey_get(); + public static readonly long SKY_ErrInvalidSigValidity = skycoinPINVOKE.SKY_ErrInvalidSigValidity_get(); + public static readonly long SKY_ErrInvalidSigForMessage = skycoinPINVOKE.SKY_ErrInvalidSigForMessage_get(); + public static readonly long SKY_ErrInvalidSecKyVerification = skycoinPINVOKE.SKY_ErrInvalidSecKyVerification_get(); + public static readonly long SKY_ErrNullPubKeyFromSecKey = skycoinPINVOKE.SKY_ErrNullPubKeyFromSecKey_get(); + public static readonly long SKY_ErrInvalidDerivedPubKeyFromSecKey = skycoinPINVOKE.SKY_ErrInvalidDerivedPubKeyFromSecKey_get(); + public static readonly long SKY_ErrInvalidPubKeyFromHash = skycoinPINVOKE.SKY_ErrInvalidPubKeyFromHash_get(); + public static readonly long SKY_ErrPubKeyFromSecKeyMissmatch = skycoinPINVOKE.SKY_ErrPubKeyFromSecKeyMissmatch_get(); + public static readonly long SKY_ErrTemporaryInsufficientBalance = skycoinPINVOKE.SKY_ErrTemporaryInsufficientBalance_get(); + public static readonly long SKY_ErrAddress = skycoinPINVOKE.SKY_ErrAddress_get(); + public static readonly long SKY_ErrWalletName = skycoinPINVOKE.SKY_ErrWalletName_get(); + public static readonly long SKY_ErrJSONMarshal = skycoinPINVOKE.SKY_ErrJSONMarshal_get(); + public static readonly long SKY_WalletLoadError = skycoinPINVOKE.SKY_WalletLoadError_get(); + public static readonly long SKY_WalletSaveError = skycoinPINVOKE.SKY_WalletSaveError_get(); + public static readonly long SKY_ErrAddEarnedCoinHoursAdditionOverflow = skycoinPINVOKE.SKY_ErrAddEarnedCoinHoursAdditionOverflow_get(); + public static readonly long SKY_ErrUint64MultOverflow = skycoinPINVOKE.SKY_ErrUint64MultOverflow_get(); + public static readonly long SKY_ErrUint64AddOverflow = skycoinPINVOKE.SKY_ErrUint64AddOverflow_get(); + public static readonly long SKY_ErrUint32AddOverflow = skycoinPINVOKE.SKY_ErrUint32AddOverflow_get(); + public static readonly long SKY_ErrUint64OverflowsInt64 = skycoinPINVOKE.SKY_ErrUint64OverflowsInt64_get(); + public static readonly long SKY_ErrInt64UnderflowsUint64 = skycoinPINVOKE.SKY_ErrInt64UnderflowsUint64_get(); + public static readonly long SKY_ErrPeerlistFull = skycoinPINVOKE.SKY_ErrPeerlistFull_get(); + public static readonly long SKY_ErrInvalidAddress = skycoinPINVOKE.SKY_ErrInvalidAddress_get(); + public static readonly long SKY_ErrNoLocalhost = skycoinPINVOKE.SKY_ErrNoLocalhost_get(); + public static readonly long SKY_ErrNotExternalIP = skycoinPINVOKE.SKY_ErrNotExternalIP_get(); + public static readonly long SKY_ErrPortTooLow = skycoinPINVOKE.SKY_ErrPortTooLow_get(); + public static readonly long SKY_ErrBlacklistedAddress = skycoinPINVOKE.SKY_ErrBlacklistedAddress_get(); + public static readonly long SKY_ErrDisconnectReadFailed = skycoinPINVOKE.SKY_ErrDisconnectReadFailed_get(); + public static readonly long SKY_ErrDisconnectWriteFailed = skycoinPINVOKE.SKY_ErrDisconnectWriteFailed_get(); + public static readonly long SKY_ErrDisconnectSetReadDeadlineFailed = skycoinPINVOKE.SKY_ErrDisconnectSetReadDeadlineFailed_get(); + public static readonly long SKY_ErrDisconnectInvalidMessageLength = skycoinPINVOKE.SKY_ErrDisconnectInvalidMessageLength_get(); + public static readonly long SKY_ErrDisconnectMalformedMessage = skycoinPINVOKE.SKY_ErrDisconnectMalformedMessage_get(); + public static readonly long SKY_ErrDisconnectUnknownMessage = skycoinPINVOKE.SKY_ErrDisconnectUnknownMessage_get(); + public static readonly long SKY_ErrDisconnectUnexpectedError = skycoinPINVOKE.SKY_ErrDisconnectUnexpectedError_get(); + public static readonly long SKY_ErrConnectionPoolClosed = skycoinPINVOKE.SKY_ErrConnectionPoolClosed_get(); + public static readonly long SKY_ErrWriteQueueFull = skycoinPINVOKE.SKY_ErrWriteQueueFull_get(); + public static readonly long SKY_ErrNoReachableConnections = skycoinPINVOKE.SKY_ErrNoReachableConnections_get(); + public static readonly long SKY_ErrMaxDefaultConnectionsReached = skycoinPINVOKE.SKY_ErrMaxDefaultConnectionsReached_get(); + public static readonly long SKY_ErrDisconnectInvalidVersion = skycoinPINVOKE.SKY_ErrDisconnectInvalidVersion_get(); + public static readonly long SKY_ErrDisconnectIntroductionTimeout = skycoinPINVOKE.SKY_ErrDisconnectIntroductionTimeout_get(); + public static readonly long SKY_ErrDisconnectVersionSendFailed = skycoinPINVOKE.SKY_ErrDisconnectVersionSendFailed_get(); + public static readonly long SKY_ErrDisconnectIsBlacklisted = skycoinPINVOKE.SKY_ErrDisconnectIsBlacklisted_get(); + public static readonly long SKY_ErrDisconnectSelf = skycoinPINVOKE.SKY_ErrDisconnectSelf_get(); + public static readonly long SKY_ErrDisconnectConnectedTwice = skycoinPINVOKE.SKY_ErrDisconnectConnectedTwice_get(); + public static readonly long SKY_ErrDisconnectIdle = skycoinPINVOKE.SKY_ErrDisconnectIdle_get(); + public static readonly long SKY_ErrDisconnectNoIntroduction = skycoinPINVOKE.SKY_ErrDisconnectNoIntroduction_get(); + public static readonly long SKY_ErrDisconnectIPLimitReached = skycoinPINVOKE.SKY_ErrDisconnectIPLimitReached_get(); + public static readonly long SKY_ErrDisconnectOtherError = skycoinPINVOKE.SKY_ErrDisconnectOtherError_get(); + public static readonly long SKY_ErrDisconnectMaxDefaultConnectionReached = skycoinPINVOKE.SKY_ErrDisconnectMaxDefaultConnectionReached_get(); + public static readonly long SKY_ErrDisconnectMaxOutgoingConnectionsReached = skycoinPINVOKE.SKY_ErrDisconnectMaxOutgoingConnectionsReached_get(); + public static readonly long SKY_ConnectionError = skycoinPINVOKE.SKY_ConnectionError_get(); + public static readonly long SKY_ErrTxnNoFee = skycoinPINVOKE.SKY_ErrTxnNoFee_get(); + public static readonly long SKY_ErrTxnInsufficientFee = skycoinPINVOKE.SKY_ErrTxnInsufficientFee_get(); + public static readonly long SKY_ErrTxnInsufficientCoinHours = skycoinPINVOKE.SKY_ErrTxnInsufficientCoinHours_get(); + public static readonly long SKY_ErrNegativeValue = skycoinPINVOKE.SKY_ErrNegativeValue_get(); + public static readonly long SKY_ErrTooManyDecimals = skycoinPINVOKE.SKY_ErrTooManyDecimals_get(); + public static readonly long SKY_ErrTooLarge = skycoinPINVOKE.SKY_ErrTooLarge_get(); + public static readonly long SKY_ErrEmptyDirectoryName = skycoinPINVOKE.SKY_ErrEmptyDirectoryName_get(); + public static readonly long SKY_ErrDotDirectoryName = skycoinPINVOKE.SKY_ErrDotDirectoryName_get(); + public static readonly long SKY_ErrHistoryDBCorrupted = skycoinPINVOKE.SKY_ErrHistoryDBCorrupted_get(); + public static readonly long SKY_ErrUxOutNotExist = skycoinPINVOKE.SKY_ErrUxOutNotExist_get(); + public static readonly long SKY_ErrNoHeadBlock = skycoinPINVOKE.SKY_ErrNoHeadBlock_get(); + public static readonly long SKY_ErrMissingSignature = skycoinPINVOKE.SKY_ErrMissingSignature_get(); + public static readonly long SKY_ErrUnspentNotExist = skycoinPINVOKE.SKY_ErrUnspentNotExist_get(); + public static readonly long SKY_ErrVerifyStopped = skycoinPINVOKE.SKY_ErrVerifyStopped_get(); + public static readonly long SKY_ErrCreateBucketFailed = skycoinPINVOKE.SKY_ErrCreateBucketFailed_get(); + public static readonly long SKY_ErrBucketNotExist = skycoinPINVOKE.SKY_ErrBucketNotExist_get(); + public static readonly long SKY_ErrTxnViolatesHardConstraint = skycoinPINVOKE.SKY_ErrTxnViolatesHardConstraint_get(); + public static readonly long SKY_ErrTxnViolatesSoftConstraint = skycoinPINVOKE.SKY_ErrTxnViolatesSoftConstraint_get(); + public static readonly long SKY_ErrTxnViolatesUserConstraint = skycoinPINVOKE.SKY_ErrTxnViolatesUserConstraint_get(); + public static readonly long SKY_ErrInsufficientBalance = skycoinPINVOKE.SKY_ErrInsufficientBalance_get(); + public static readonly long SKY_ErrInsufficientHours = skycoinPINVOKE.SKY_ErrInsufficientHours_get(); + public static readonly long SKY_ErrZeroSpend = skycoinPINVOKE.SKY_ErrZeroSpend_get(); + public static readonly long SKY_ErrSpendingUnconfirmed = skycoinPINVOKE.SKY_ErrSpendingUnconfirmed_get(); + public static readonly long SKY_ErrInvalidEncryptedField = skycoinPINVOKE.SKY_ErrInvalidEncryptedField_get(); + public static readonly long SKY_ErrWalletEncrypted = skycoinPINVOKE.SKY_ErrWalletEncrypted_get(); + public static readonly long SKY_ErrWalletNotEncrypted = skycoinPINVOKE.SKY_ErrWalletNotEncrypted_get(); + public static readonly long SKY_ErrMissingPassword = skycoinPINVOKE.SKY_ErrMissingPassword_get(); + public static readonly long SKY_ErrMissingEncrypt = skycoinPINVOKE.SKY_ErrMissingEncrypt_get(); + public static readonly long SKY_ErrInvalidPassword = skycoinPINVOKE.SKY_ErrInvalidPassword_get(); + public static readonly long SKY_ErrMissingSeed = skycoinPINVOKE.SKY_ErrMissingSeed_get(); + public static readonly long SKY_ErrMissingAuthenticated = skycoinPINVOKE.SKY_ErrMissingAuthenticated_get(); + public static readonly long SKY_ErrWrongCryptoType = skycoinPINVOKE.SKY_ErrWrongCryptoType_get(); + public static readonly long SKY_ErrWalletNotExist = skycoinPINVOKE.SKY_ErrWalletNotExist_get(); + public static readonly long SKY_ErrSeedUsed = skycoinPINVOKE.SKY_ErrSeedUsed_get(); + public static readonly long SKY_ErrWalletAPIDisabled = skycoinPINVOKE.SKY_ErrWalletAPIDisabled_get(); + public static readonly long SKY_ErrSeedAPIDisabled = skycoinPINVOKE.SKY_ErrSeedAPIDisabled_get(); + public static readonly long SKY_ErrWalletNameConflict = skycoinPINVOKE.SKY_ErrWalletNameConflict_get(); + public static readonly long SKY_ErrInvalidHoursSelectionMode = skycoinPINVOKE.SKY_ErrInvalidHoursSelectionMode_get(); + public static readonly long SKY_ErrInvalidHoursSelectionType = skycoinPINVOKE.SKY_ErrInvalidHoursSelectionType_get(); + public static readonly long SKY_ErrUnknownAddress = skycoinPINVOKE.SKY_ErrUnknownAddress_get(); + public static readonly long SKY_ErrUnknownUxOut = skycoinPINVOKE.SKY_ErrUnknownUxOut_get(); + public static readonly long SKY_ErrNoUnspents = skycoinPINVOKE.SKY_ErrNoUnspents_get(); + public static readonly long SKY_ErrNullChangeAddress = skycoinPINVOKE.SKY_ErrNullChangeAddress_get(); + public static readonly long SKY_ErrMissingTo = skycoinPINVOKE.SKY_ErrMissingTo_get(); + public static readonly long SKY_ErrZeroCoinsTo = skycoinPINVOKE.SKY_ErrZeroCoinsTo_get(); + public static readonly long SKY_ErrNullAddressTo = skycoinPINVOKE.SKY_ErrNullAddressTo_get(); + public static readonly long SKY_ErrDuplicateTo = skycoinPINVOKE.SKY_ErrDuplicateTo_get(); + public static readonly long SKY_ErrMissingWalletID = skycoinPINVOKE.SKY_ErrMissingWalletID_get(); + public static readonly long SKY_ErrIncludesNullAddress = skycoinPINVOKE.SKY_ErrIncludesNullAddress_get(); + public static readonly long SKY_ErrDuplicateAddresses = skycoinPINVOKE.SKY_ErrDuplicateAddresses_get(); + public static readonly long SKY_ErrZeroToHoursAuto = skycoinPINVOKE.SKY_ErrZeroToHoursAuto_get(); + public static readonly long SKY_ErrMissingModeAuto = skycoinPINVOKE.SKY_ErrMissingModeAuto_get(); + public static readonly long SKY_ErrInvalidHoursSelMode = skycoinPINVOKE.SKY_ErrInvalidHoursSelMode_get(); + public static readonly long SKY_ErrInvalidModeManual = skycoinPINVOKE.SKY_ErrInvalidModeManual_get(); + public static readonly long SKY_ErrInvalidHoursSelType = skycoinPINVOKE.SKY_ErrInvalidHoursSelType_get(); + public static readonly long SKY_ErrMissingShareFactor = skycoinPINVOKE.SKY_ErrMissingShareFactor_get(); + public static readonly long SKY_ErrInvalidShareFactor = skycoinPINVOKE.SKY_ErrInvalidShareFactor_get(); + public static readonly long SKY_ErrShareFactorOutOfRange = skycoinPINVOKE.SKY_ErrShareFactorOutOfRange_get(); + public static readonly long SKY_ErrWalletConstraint = skycoinPINVOKE.SKY_ErrWalletConstraint_get(); + public static readonly long SKY_ErrDuplicateUxOuts = skycoinPINVOKE.SKY_ErrDuplicateUxOuts_get(); + public static readonly long SKY_ErrUnknownWalletID = skycoinPINVOKE.SKY_ErrUnknownWalletID_get(); + public static readonly long SKY_ErrSHA256orMissingPassword = skycoinPINVOKE.SKY_ErrSHA256orMissingPassword_get(); + public static readonly long SKY_ErrSHA256LenghtDataOverflowMaxUint32 = skycoinPINVOKE.SKY_ErrSHA256LenghtDataOverflowMaxUint32_get(); } } diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index 63019281..9d2f5980 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -203,6 +203,474 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_equalBlockHeaders")] public static extern int equalBlockHeaders(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrVerifySignatureInvalidPubkeysLength_get")] + public static extern long SKY_ErrVerifySignatureInvalidPubkeysLength_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_OK_get")] + public static extern long SKY_OK_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ERROR_get")] + public static extern long SKY_ERROR_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_API_get")] + public static extern long SKY_PKG_API_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_CIPHER_get")] + public static extern long SKY_PKG_CIPHER_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_CLI_get")] + public static extern long SKY_PKG_CLI_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_COIN_get")] + public static extern long SKY_PKG_COIN_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_CONSENSUS_get")] + public static extern long SKY_PKG_CONSENSUS_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_DAEMON_get")] + public static extern long SKY_PKG_DAEMON_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_GUI_get")] + public static extern long SKY_PKG_GUI_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_SKYCOIN_get")] + public static extern long SKY_PKG_SKYCOIN_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_UTIL_get")] + public static extern long SKY_PKG_UTIL_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_VISOR_get")] + public static extern long SKY_PKG_VISOR_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_WALLET_get")] + public static extern long SKY_PKG_WALLET_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrAddressInvalidLength_get")] + public static extern long SKY_ErrAddressInvalidLength_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrAddressInvalidChecksum_get")] + public static extern long SKY_ErrAddressInvalidChecksum_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrAddressInvalidVersion_get")] + public static extern long SKY_ErrAddressInvalidVersion_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrAddressInvalidPubKey_get")] + public static extern long SKY_ErrAddressInvalidPubKey_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrAddressInvalidFirstByte_get")] + public static extern long SKY_ErrAddressInvalidFirstByte_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrAddressInvalidLastByte_get")] + public static extern long SKY_ErrAddressInvalidLastByte_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrBufferUnderflow_get")] + public static extern long SKY_ErrBufferUnderflow_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidOmitEmpty_get")] + public static extern long SKY_ErrInvalidOmitEmpty_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidLengthPubKey_get")] + public static extern long SKY_ErrInvalidLengthPubKey_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrPubKeyFromNullSecKey_get")] + public static extern long SKY_ErrPubKeyFromNullSecKey_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrPubKeyFromBadSecKey_get")] + public static extern long SKY_ErrPubKeyFromBadSecKey_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidLengthSecKey_get")] + public static extern long SKY_ErrInvalidLengthSecKey_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrECHDInvalidPubKey_get")] + public static extern long SKY_ErrECHDInvalidPubKey_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrECHDInvalidSecKey_get")] + public static extern long SKY_ErrECHDInvalidSecKey_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidLengthSig_get")] + public static extern long SKY_ErrInvalidLengthSig_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidLengthRipemd160_get")] + public static extern long SKY_ErrInvalidLengthRipemd160_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidLengthSHA256_get")] + public static extern long SKY_ErrInvalidLengthSHA256_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidBase58Char_get")] + public static extern long SKY_ErrInvalidBase58Char_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidBase58String_get")] + public static extern long SKY_ErrInvalidBase58String_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidBase58Length_get")] + public static extern long SKY_ErrInvalidBase58Length_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidHexLength_get")] + public static extern long SKY_ErrInvalidHexLength_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidBytesLength_get")] + public static extern long SKY_ErrInvalidBytesLength_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidPubKey_get")] + public static extern long SKY_ErrInvalidPubKey_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidSecKey_get")] + public static extern long SKY_ErrInvalidSecKey_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidSigForPubKey_get")] + public static extern long SKY_ErrInvalidSigForPubKey_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidSecKeyHex_get")] + public static extern long SKY_ErrInvalidSecKeyHex_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidAddressForSig_get")] + public static extern long SKY_ErrInvalidAddressForSig_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidHashForSig_get")] + public static extern long SKY_ErrInvalidHashForSig_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrPubKeyRecoverMismatch_get")] + public static extern long SKY_ErrPubKeyRecoverMismatch_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidSigInvalidPubKey_get")] + public static extern long SKY_ErrInvalidSigInvalidPubKey_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidSigValidity_get")] + public static extern long SKY_ErrInvalidSigValidity_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidSigForMessage_get")] + public static extern long SKY_ErrInvalidSigForMessage_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidSecKyVerification_get")] + public static extern long SKY_ErrInvalidSecKyVerification_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrNullPubKeyFromSecKey_get")] + public static extern long SKY_ErrNullPubKeyFromSecKey_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidDerivedPubKeyFromSecKey_get")] + public static extern long SKY_ErrInvalidDerivedPubKeyFromSecKey_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidPubKeyFromHash_get")] + public static extern long SKY_ErrInvalidPubKeyFromHash_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrPubKeyFromSecKeyMissmatch_get")] + public static extern long SKY_ErrPubKeyFromSecKeyMissmatch_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrTemporaryInsufficientBalance_get")] + public static extern long SKY_ErrTemporaryInsufficientBalance_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrAddress_get")] + public static extern long SKY_ErrAddress_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrWalletName_get")] + public static extern long SKY_ErrWalletName_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrJSONMarshal_get")] + public static extern long SKY_ErrJSONMarshal_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_WalletLoadError_get")] + public static extern long SKY_WalletLoadError_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_WalletSaveError_get")] + public static extern long SKY_WalletSaveError_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrAddEarnedCoinHoursAdditionOverflow_get")] + public static extern long SKY_ErrAddEarnedCoinHoursAdditionOverflow_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrUint64MultOverflow_get")] + public static extern long SKY_ErrUint64MultOverflow_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrUint64AddOverflow_get")] + public static extern long SKY_ErrUint64AddOverflow_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrUint32AddOverflow_get")] + public static extern long SKY_ErrUint32AddOverflow_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrUint64OverflowsInt64_get")] + public static extern long SKY_ErrUint64OverflowsInt64_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInt64UnderflowsUint64_get")] + public static extern long SKY_ErrInt64UnderflowsUint64_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrPeerlistFull_get")] + public static extern long SKY_ErrPeerlistFull_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidAddress_get")] + public static extern long SKY_ErrInvalidAddress_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrNoLocalhost_get")] + public static extern long SKY_ErrNoLocalhost_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrNotExternalIP_get")] + public static extern long SKY_ErrNotExternalIP_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrPortTooLow_get")] + public static extern long SKY_ErrPortTooLow_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrBlacklistedAddress_get")] + public static extern long SKY_ErrBlacklistedAddress_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectReadFailed_get")] + public static extern long SKY_ErrDisconnectReadFailed_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectWriteFailed_get")] + public static extern long SKY_ErrDisconnectWriteFailed_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectSetReadDeadlineFailed_get")] + public static extern long SKY_ErrDisconnectSetReadDeadlineFailed_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectInvalidMessageLength_get")] + public static extern long SKY_ErrDisconnectInvalidMessageLength_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectMalformedMessage_get")] + public static extern long SKY_ErrDisconnectMalformedMessage_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectUnknownMessage_get")] + public static extern long SKY_ErrDisconnectUnknownMessage_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectUnexpectedError_get")] + public static extern long SKY_ErrDisconnectUnexpectedError_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrConnectionPoolClosed_get")] + public static extern long SKY_ErrConnectionPoolClosed_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrWriteQueueFull_get")] + public static extern long SKY_ErrWriteQueueFull_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrNoReachableConnections_get")] + public static extern long SKY_ErrNoReachableConnections_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrMaxDefaultConnectionsReached_get")] + public static extern long SKY_ErrMaxDefaultConnectionsReached_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectInvalidVersion_get")] + public static extern long SKY_ErrDisconnectInvalidVersion_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectIntroductionTimeout_get")] + public static extern long SKY_ErrDisconnectIntroductionTimeout_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectVersionSendFailed_get")] + public static extern long SKY_ErrDisconnectVersionSendFailed_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectIsBlacklisted_get")] + public static extern long SKY_ErrDisconnectIsBlacklisted_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectSelf_get")] + public static extern long SKY_ErrDisconnectSelf_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectConnectedTwice_get")] + public static extern long SKY_ErrDisconnectConnectedTwice_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectIdle_get")] + public static extern long SKY_ErrDisconnectIdle_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectNoIntroduction_get")] + public static extern long SKY_ErrDisconnectNoIntroduction_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectIPLimitReached_get")] + public static extern long SKY_ErrDisconnectIPLimitReached_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectOtherError_get")] + public static extern long SKY_ErrDisconnectOtherError_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectMaxDefaultConnectionReached_get")] + public static extern long SKY_ErrDisconnectMaxDefaultConnectionReached_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectMaxOutgoingConnectionsReached_get")] + public static extern long SKY_ErrDisconnectMaxOutgoingConnectionsReached_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ConnectionError_get")] + public static extern long SKY_ConnectionError_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrTxnNoFee_get")] + public static extern long SKY_ErrTxnNoFee_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrTxnInsufficientFee_get")] + public static extern long SKY_ErrTxnInsufficientFee_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrTxnInsufficientCoinHours_get")] + public static extern long SKY_ErrTxnInsufficientCoinHours_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrNegativeValue_get")] + public static extern long SKY_ErrNegativeValue_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrTooManyDecimals_get")] + public static extern long SKY_ErrTooManyDecimals_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrTooLarge_get")] + public static extern long SKY_ErrTooLarge_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrEmptyDirectoryName_get")] + public static extern long SKY_ErrEmptyDirectoryName_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDotDirectoryName_get")] + public static extern long SKY_ErrDotDirectoryName_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrHistoryDBCorrupted_get")] + public static extern long SKY_ErrHistoryDBCorrupted_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrUxOutNotExist_get")] + public static extern long SKY_ErrUxOutNotExist_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrNoHeadBlock_get")] + public static extern long SKY_ErrNoHeadBlock_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrMissingSignature_get")] + public static extern long SKY_ErrMissingSignature_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrUnspentNotExist_get")] + public static extern long SKY_ErrUnspentNotExist_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrVerifyStopped_get")] + public static extern long SKY_ErrVerifyStopped_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrCreateBucketFailed_get")] + public static extern long SKY_ErrCreateBucketFailed_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrBucketNotExist_get")] + public static extern long SKY_ErrBucketNotExist_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrTxnViolatesHardConstraint_get")] + public static extern long SKY_ErrTxnViolatesHardConstraint_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrTxnViolatesSoftConstraint_get")] + public static extern long SKY_ErrTxnViolatesSoftConstraint_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrTxnViolatesUserConstraint_get")] + public static extern long SKY_ErrTxnViolatesUserConstraint_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInsufficientBalance_get")] + public static extern long SKY_ErrInsufficientBalance_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInsufficientHours_get")] + public static extern long SKY_ErrInsufficientHours_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrZeroSpend_get")] + public static extern long SKY_ErrZeroSpend_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrSpendingUnconfirmed_get")] + public static extern long SKY_ErrSpendingUnconfirmed_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidEncryptedField_get")] + public static extern long SKY_ErrInvalidEncryptedField_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrWalletEncrypted_get")] + public static extern long SKY_ErrWalletEncrypted_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrWalletNotEncrypted_get")] + public static extern long SKY_ErrWalletNotEncrypted_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrMissingPassword_get")] + public static extern long SKY_ErrMissingPassword_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrMissingEncrypt_get")] + public static extern long SKY_ErrMissingEncrypt_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidPassword_get")] + public static extern long SKY_ErrInvalidPassword_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrMissingSeed_get")] + public static extern long SKY_ErrMissingSeed_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrMissingAuthenticated_get")] + public static extern long SKY_ErrMissingAuthenticated_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrWrongCryptoType_get")] + public static extern long SKY_ErrWrongCryptoType_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrWalletNotExist_get")] + public static extern long SKY_ErrWalletNotExist_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrSeedUsed_get")] + public static extern long SKY_ErrSeedUsed_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrWalletAPIDisabled_get")] + public static extern long SKY_ErrWalletAPIDisabled_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrSeedAPIDisabled_get")] + public static extern long SKY_ErrSeedAPIDisabled_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrWalletNameConflict_get")] + public static extern long SKY_ErrWalletNameConflict_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidHoursSelectionMode_get")] + public static extern long SKY_ErrInvalidHoursSelectionMode_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidHoursSelectionType_get")] + public static extern long SKY_ErrInvalidHoursSelectionType_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrUnknownAddress_get")] + public static extern long SKY_ErrUnknownAddress_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrUnknownUxOut_get")] + public static extern long SKY_ErrUnknownUxOut_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrNoUnspents_get")] + public static extern long SKY_ErrNoUnspents_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrNullChangeAddress_get")] + public static extern long SKY_ErrNullChangeAddress_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrMissingTo_get")] + public static extern long SKY_ErrMissingTo_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrZeroCoinsTo_get")] + public static extern long SKY_ErrZeroCoinsTo_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrNullAddressTo_get")] + public static extern long SKY_ErrNullAddressTo_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDuplicateTo_get")] + public static extern long SKY_ErrDuplicateTo_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrMissingWalletID_get")] + public static extern long SKY_ErrMissingWalletID_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrIncludesNullAddress_get")] + public static extern long SKY_ErrIncludesNullAddress_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDuplicateAddresses_get")] + public static extern long SKY_ErrDuplicateAddresses_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrZeroToHoursAuto_get")] + public static extern long SKY_ErrZeroToHoursAuto_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrMissingModeAuto_get")] + public static extern long SKY_ErrMissingModeAuto_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidHoursSelMode_get")] + public static extern long SKY_ErrInvalidHoursSelMode_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidModeManual_get")] + public static extern long SKY_ErrInvalidModeManual_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidHoursSelType_get")] + public static extern long SKY_ErrInvalidHoursSelType_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrMissingShareFactor_get")] + public static extern long SKY_ErrMissingShareFactor_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidShareFactor_get")] + public static extern long SKY_ErrInvalidShareFactor_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrShareFactorOutOfRange_get")] + public static extern long SKY_ErrShareFactorOutOfRange_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrWalletConstraint_get")] + public static extern long SKY_ErrWalletConstraint_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDuplicateUxOuts_get")] + public static extern long SKY_ErrDuplicateUxOuts_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrUnknownWalletID_get")] + public static extern long SKY_ErrUnknownWalletID_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrSHA256orMissingPassword_get")] + public static extern long SKY_ErrSHA256orMissingPassword_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrSHA256LenghtDataOverflowMaxUint32_get")] + public static extern long SKY_ErrSHA256LenghtDataOverflowMaxUint32_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKey_isEqual")] public static extern int cipher_PubKey_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -461,6 +929,24 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin_UxOutArray")] public static extern void delete_coin_UxOutArray(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Addresses_data_set")] + public static extern void cipher_Addresses_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Addresses_data_get")] + public static extern global::System.IntPtr cipher_Addresses_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Addresses_count_set")] + public static extern void cipher_Addresses_count_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Addresses_count_get")] + public static extern int cipher_Addresses_count_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_Addresses")] + public static extern global::System.IntPtr new_cipher_Addresses(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_Addresses")] + public static extern void delete_cipher_Addresses(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin__GoString__p_set")] public static extern void _GoString__p_set(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); @@ -612,46 +1098,46 @@ static skycoinPINVOKE() { public static extern uint SKY_api_Client_CSRF(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Version")] - public static extern uint SKY_api_Client_Version(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_api_Client_Version(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Outputs")] - public static extern uint SKY_api_Client_Outputs(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_api_Client_Outputs(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_OutputsForAddresses")] - public static extern uint SKY_api_Client_OutputsForAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_api_Client_OutputsForAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_OutputsForHashes")] - public static extern uint SKY_api_Client_OutputsForHashes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_api_Client_OutputsForHashes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CoinSupply")] - public static extern uint SKY_api_Client_CoinSupply(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_api_Client_CoinSupply(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_BlockByHash")] - public static extern uint SKY_api_Client_BlockByHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_api_Client_BlockByHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_BlockBySeq")] - public static extern uint SKY_api_Client_BlockBySeq(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_api_Client_BlockBySeq(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Blocks")] - public static extern uint SKY_api_Client_Blocks(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + public static extern uint SKY_api_Client_Blocks(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_LastBlocks")] - public static extern uint SKY_api_Client_LastBlocks(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_api_Client_LastBlocks(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_BlockchainMetadata")] - public static extern uint SKY_api_Client_BlockchainMetadata(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_api_Client_BlockchainMetadata(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_BlockchainProgress")] - public static extern uint SKY_api_Client_BlockchainProgress(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_api_Client_BlockchainProgress(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Balance")] public static extern uint SKY_api_Client_Balance(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_UxOut")] - public static extern uint SKY_api_Client_UxOut(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_api_Client_UxOut(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_AddressUxOuts")] - public static extern uint SKY_api_Client_AddressUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_api_Client_AddressUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Wallet")] public static extern uint SKY_api_Client_Wallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -675,16 +1161,13 @@ static skycoinPINVOKE() { public static extern uint SKY_api_Client_Spend(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, ulong jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CreateTransaction")] - public static extern uint SKY_api_Client_CreateTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_WalletTransactions")] - public static extern uint SKY_api_Client_WalletTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_api_Client_CreateTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_UpdateWallet")] public static extern uint SKY_api_Client_UpdateWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_WalletFolderName")] - public static extern uint SKY_api_Client_WalletFolderName(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_api_Client_WalletFolderName(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NewSeed")] public static extern uint SKY_api_Client_NewSeed(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -693,49 +1176,49 @@ static skycoinPINVOKE() { public static extern uint SKY_api_Client_GetWalletSeed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkConnection")] - public static extern uint SKY_api_Client_NetworkConnection(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_api_Client_NetworkConnection(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkConnections")] - public static extern uint SKY_api_Client_NetworkConnections(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_api_Client_NetworkConnections(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkDefaultConnections")] - public static extern uint SKY_api_Client_NetworkDefaultConnections(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_api_Client_NetworkDefaultConnections(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkTrustedConnections")] - public static extern uint SKY_api_Client_NetworkTrustedConnections(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_api_Client_NetworkTrustedConnections(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkExchangeableConnections")] - public static extern uint SKY_api_Client_NetworkExchangeableConnections(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_api_Client_NetworkExchangeableConnections(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_PendingTransactions")] - public static extern uint SKY_api_Client_PendingTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_api_Client_PendingTransactions(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Transaction")] - public static extern uint SKY_api_Client_Transaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_api_Client_Transaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Transactions")] - public static extern uint SKY_api_Client_Transactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_api_Client_Transactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_ConfirmedTransactions")] - public static extern uint SKY_api_Client_ConfirmedTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_api_Client_ConfirmedTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_UnconfirmedTransactions")] - public static extern uint SKY_api_Client_UnconfirmedTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_api_Client_UnconfirmedTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_InjectTransaction")] public static extern uint SKY_api_Client_InjectTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_ResendUnconfirmedTransactions")] - public static extern uint SKY_api_Client_ResendUnconfirmedTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_api_Client_ResendUnconfirmedTransactions(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_RawTransaction")] public static extern uint SKY_api_Client_RawTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_AddressTransactions")] - public static extern uint SKY_api_Client_AddressTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_api_Client_AddressTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Richlist")] - public static extern uint SKY_api_Client_Richlist(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_api_Client_Richlist(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_AddressCount")] public static extern uint SKY_api_Client_AddressCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -744,7 +1227,7 @@ static skycoinPINVOKE() { public static extern uint SKY_api_Client_UnloadWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Health")] - public static extern uint SKY_api_Client_Health(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_api_Client_Health(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_EncryptWallet")] public static extern uint SKY_api_Client_EncryptWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); @@ -875,45 +1358,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GetBalanceOfAddresses")] public static extern uint SKY_cli_GetBalanceOfAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewNotesFilename")] - public static extern uint SKY_wallet_NewNotesFilename(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_LoadNotes")] - public static extern uint SKY_wallet_LoadNotes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_LoadReadableNotes")] - public static extern uint SKY_wallet_LoadReadableNotes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableNotes_Load")] - public static extern uint SKY_wallet_ReadableNotes_Load(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableNotes_ToNotes")] - public static extern uint SKY_wallet_ReadableNotes_ToNotes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableNotes_Save")] - public static extern uint SKY_wallet_ReadableNotes_Save(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewReadableNote")] - public static extern uint SKY_wallet_NewReadableNote(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewReadableNotesFromNotes")] - public static extern uint SKY_wallet_NewReadableNotesFromNotes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Notes_Save")] - public static extern uint SKY_wallet_Notes_Save(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Notes_SaveNote")] - public static extern uint SKY_wallet_Notes_SaveNote(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Notes_ToReadable")] - public static extern uint SKY_wallet_Notes_ToReadable(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NotesFileExist")] - public static extern uint SKY_wallet_NotesFileExist(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_CreateNoteFileIfNotExist")] - public static extern uint SKY_wallet_CreateNoteFileIfNotExist(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewReadableEntry")] public static extern uint SKY_wallet_NewReadableEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1004,12 +1448,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_CSRF")] public static extern uint SKY_webrpc_Client_CSRF(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetUnspentOutputs")] - public static extern uint SKY_webrpc_Client_GetUnspentOutputs(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_InjectTransactionString")] - public static extern uint SKY_webrpc_Client_InjectTransactionString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_InjectTransaction")] public static extern uint SKY_webrpc_Client_InjectTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -1077,10 +1515,10 @@ static skycoinPINVOKE() { public static extern uint SKY_coin_Int64ToUint64(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeySlice_Len")] - public static extern long SKY_cipher_PubKeySlice_Len(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint SKY_cipher_PubKeySlice_Len(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeySlice_Less")] - public static extern byte SKY_cipher_PubKeySlice_Less(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3); + public static extern uint SKY_cipher_PubKeySlice_Less(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeySlice_Swap")] public static extern uint SKY_cipher_PubKeySlice_Swap(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3); @@ -1091,9 +1529,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_NewPubKey")] public static extern uint SKY_cipher_NewPubKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_MustPubKeyFromHex")] - public static extern uint SKY_cipher_MustPubKeyFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromHex")] public static extern uint SKY_cipher_PubKeyFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1115,9 +1550,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_NewSecKey")] public static extern uint SKY_cipher_NewSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_MustSecKeyFromHex")] - public static extern uint SKY_cipher_MustSecKeyFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKeyFromHex")] public static extern uint SKY_cipher_SecKeyFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1133,9 +1565,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_NewSig")] public static extern uint SKY_cipher_NewSig(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_MustSigFromHex")] - public static extern uint SKY_cipher_MustSigFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SigFromHex")] public static extern uint SKY_cipher_SigFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1154,9 +1583,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_VerifySignature")] public static extern uint SKY_cipher_VerifySignature(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateKeyPair")] - public static extern uint SKY_cipher_GenerateKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPair")] public static extern uint SKY_cipher_GenerateDeterministicKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -1175,6 +1601,9 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_TestSecKeyHash")] public static extern uint SKY_cipher_TestSecKeyHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateKeyPair")] + public static extern uint SKY_cipher_GenerateKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Create")] public static extern uint SKY_secp256k1go_Signature_Create(global::System.Runtime.InteropServices.HandleRef jarg1); @@ -1338,7 +1767,7 @@ static skycoinPINVOKE() { public static extern void SKY_handle_close(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_handle_copy")] - public static extern uint SKY_handle_copy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_handle_copy(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_logging_EnableColors")] public static extern uint SKY_logging_EnableColors(); @@ -1361,12 +1790,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_DecodeBase58Address")] public static extern uint SKY_cipher_DecodeBase58Address(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_MustDecodeBase58Address")] - public static extern uint SKY_cipher_MustDecodeBase58Address(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinMustDecodeBase58Address")] - public static extern uint SKY_cipher_BitcoinMustDecodeBase58Address(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddressFromBytes")] public static extern uint SKY_cipher_AddressFromBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1379,15 +1802,12 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinDecodeBase58Address")] public static extern uint SKY_cipher_BitcoinDecodeBase58Address(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_MustAddressFromBytes")] - public static extern uint SKY_cipher_MustAddressFromBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_Null")] + public static extern uint SKY_cipher_Address_Null(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_Bytes")] public static extern uint SKY_cipher_Address_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_Null")] - public static extern uint SKY_cipher_Address_Null(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_BitcoinBytes")] public static extern uint SKY_cipher_Address_BitcoinBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1418,9 +1838,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKeyFromWalletImportFormat")] public static extern uint SKY_cipher_SecKeyFromWalletImportFormat(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_MustSecKeyFromWalletImportFormat")] - public static extern uint SKY_cipher_MustSecKeyFromWalletImportFormat(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_JsonEncode_Handle")] public static extern uint SKY_JsonEncode_Handle(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1437,7 +1854,7 @@ static skycoinPINVOKE() { public static extern uint SKY_Handle_Block_GetPreviousBlockHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Blocks_GetAt")] - public static extern uint SKY_Handle_Blocks_GetAt(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_Handle_Blocks_GetAt(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Blocks_GetCount")] public static extern uint SKY_Handle_Blocks_GetCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1608,7 +2025,7 @@ static skycoinPINVOKE() { public static extern uint SKY_encrypt_ScryptChacha20poly1305_Decrypt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_CreateOptionsHandle")] - public static extern void SKY_wallet_CreateOptionsHandle(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, byte jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, ulong jarg7, global::System.Runtime.InteropServices.HandleRef jarg8); + public static extern uint SKY_wallet_CreateOptionsHandle(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, byte jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, ulong jarg7, global::System.Runtime.InteropServices.HandleRef jarg8); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_AddPrivateKey")] public static extern uint SKY_cli_AddPrivateKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1838,9 +2255,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Merkle")] public static extern uint SKY_cipher_Merkle(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_MustSumSHA256")] - public static extern uint SKY_cipher_MustSumSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Null")] public static extern uint SKY_cipher_SHA256_Null(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1934,9 +2348,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Serialize")] public static extern uint SKY_coin_Transaction_Serialize(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_MustTransactionDeserialize")] - public static extern uint SKY_coin_MustTransactionDeserialize(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_TransactionDeserialize")] public static extern uint SKY_coin_TransactionDeserialize(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index 5771f13d..891d797f 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -590,16 +590,1590 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalBlockHeaders(void * jarg1, void * } +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrVerifySignatureInvalidPubkeysLength_get() { + long long jresult ; + long long result; + + result = (long long)(0x0b000036); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_OK_get() { + long long jresult ; + long long result; + + result = (long long)(0); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ERROR_get() { + long long jresult ; + long long result; + + result = (long long)(0x7FFFFFFF); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_API_get() { + long long jresult ; + long long result; + + result = (long long)(0x01000000); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_CIPHER_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000000); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_CLI_get() { + long long jresult ; + long long result; + + result = (long long)(0x03000000); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_COIN_get() { + long long jresult ; + long long result; + + result = (long long)(0x04000000); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_CONSENSUS_get() { + long long jresult ; + long long result; + + result = (long long)(0x05000000); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_DAEMON_get() { + long long jresult ; + long long result; + + result = (long long)(0x06000000); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_GUI_get() { + long long jresult ; + long long result; + + result = (long long)(0x07000000); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_SKYCOIN_get() { + long long jresult ; + long long result; + + result = (long long)(0x08000000); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_UTIL_get() { + long long jresult ; + long long result; + + result = (long long)(0x09000000); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_VISOR_get() { + long long jresult ; + long long result; + + result = (long long)(0x0A000000); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_WALLET_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000000); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrAddressInvalidLength_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000000); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrAddressInvalidChecksum_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000001); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrAddressInvalidVersion_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000002); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrAddressInvalidPubKey_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000003); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrAddressInvalidFirstByte_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000004); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrAddressInvalidLastByte_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000005); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrBufferUnderflow_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000006); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidOmitEmpty_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000007); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidLengthPubKey_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000008); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrPubKeyFromNullSecKey_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000009); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrPubKeyFromBadSecKey_get() { + long long jresult ; + long long result; + + result = (long long)(0x0200000A); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidLengthSecKey_get() { + long long jresult ; + long long result; + + result = (long long)(0x0200000B); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrECHDInvalidPubKey_get() { + long long jresult ; + long long result; + + result = (long long)(0x0200000C); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrECHDInvalidSecKey_get() { + long long jresult ; + long long result; + + result = (long long)(0x0200000D); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidLengthSig_get() { + long long jresult ; + long long result; + + result = (long long)(0x0200000E); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidLengthRipemd160_get() { + long long jresult ; + long long result; + + result = (long long)(0x0200000F); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidLengthSHA256_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000010); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidBase58Char_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000011); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidBase58String_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000012); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidBase58Length_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000013); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidHexLength_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000014); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidBytesLength_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000015); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidPubKey_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000016); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidSecKey_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000017); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidSigForPubKey_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000018); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidSecKeyHex_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000019); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidAddressForSig_get() { + long long jresult ; + long long result; + + result = (long long)(0x0200001A); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidHashForSig_get() { + long long jresult ; + long long result; + + result = (long long)(0x0200001B); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrPubKeyRecoverMismatch_get() { + long long jresult ; + long long result; + + result = (long long)(0x0200001C); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidSigInvalidPubKey_get() { + long long jresult ; + long long result; + + result = (long long)(0x0200001D); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidSigValidity_get() { + long long jresult ; + long long result; + + result = (long long)(0x0200001E); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidSigForMessage_get() { + long long jresult ; + long long result; + + result = (long long)(0x0200001F); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidSecKyVerification_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000020); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrNullPubKeyFromSecKey_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000021); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidDerivedPubKeyFromSecKey_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000022); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidPubKeyFromHash_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000023); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrPubKeyFromSecKeyMissmatch_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000024); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTemporaryInsufficientBalance_get() { + long long jresult ; + long long result; + + result = (long long)(0x03000000); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrAddress_get() { + long long jresult ; + long long result; + + result = (long long)(0x03000001); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrWalletName_get() { + long long jresult ; + long long result; + + result = (long long)(0x03000002); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrJSONMarshal_get() { + long long jresult ; + long long result; + + result = (long long)(0x03000003); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_WalletLoadError_get() { + long long jresult ; + long long result; + + result = (long long)(0x03000004); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_WalletSaveError_get() { + long long jresult ; + long long result; + + result = (long long)(0x03000005); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrAddEarnedCoinHoursAdditionOverflow_get() { + long long jresult ; + long long result; + + result = (long long)(0x04000000); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrUint64MultOverflow_get() { + long long jresult ; + long long result; + + result = (long long)(0x04000001); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrUint64AddOverflow_get() { + long long jresult ; + long long result; + + result = (long long)(0x04000002); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrUint32AddOverflow_get() { + long long jresult ; + long long result; + + result = (long long)(0x04000003); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrUint64OverflowsInt64_get() { + long long jresult ; + long long result; + + result = (long long)(0x04000004); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInt64UnderflowsUint64_get() { + long long jresult ; + long long result; + + result = (long long)(0x04000005); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrPeerlistFull_get() { + long long jresult ; + long long result; + + result = (long long)(0x06000000); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidAddress_get() { + long long jresult ; + long long result; + + result = (long long)(0x06000001); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrNoLocalhost_get() { + long long jresult ; + long long result; + + result = (long long)(0x06000002); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrNotExternalIP_get() { + long long jresult ; + long long result; + + result = (long long)(0x06000003); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrPortTooLow_get() { + long long jresult ; + long long result; + + result = (long long)(0x06000004); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrBlacklistedAddress_get() { + long long jresult ; + long long result; + + result = (long long)(0x06000005); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectReadFailed_get() { + long long jresult ; + long long result; + + result = (long long)(0x06000006); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectWriteFailed_get() { + long long jresult ; + long long result; + + result = (long long)(0x06000007); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectSetReadDeadlineFailed_get() { + long long jresult ; + long long result; + + result = (long long)(0x06000008); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectInvalidMessageLength_get() { + long long jresult ; + long long result; + + result = (long long)(0x06000009); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectMalformedMessage_get() { + long long jresult ; + long long result; + + result = (long long)(0x0600000A); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectUnknownMessage_get() { + long long jresult ; + long long result; + + result = (long long)(0x0600000B); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectUnexpectedError_get() { + long long jresult ; + long long result; + + result = (long long)(0x0600000C); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrConnectionPoolClosed_get() { + long long jresult ; + long long result; + + result = (long long)(0x0600000D); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrWriteQueueFull_get() { + long long jresult ; + long long result; + + result = (long long)(0x0600000E); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrNoReachableConnections_get() { + long long jresult ; + long long result; + + result = (long long)(0x0600000F); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMaxDefaultConnectionsReached_get() { + long long jresult ; + long long result; + + result = (long long)(0x06000010); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectInvalidVersion_get() { + long long jresult ; + long long result; + + result = (long long)(0x06000011); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectIntroductionTimeout_get() { + long long jresult ; + long long result; + + result = (long long)(0x06000012); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectVersionSendFailed_get() { + long long jresult ; + long long result; + + result = (long long)(0x06000013); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectIsBlacklisted_get() { + long long jresult ; + long long result; + + result = (long long)(0x06000014); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectSelf_get() { + long long jresult ; + long long result; + + result = (long long)(0x06000015); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectConnectedTwice_get() { + long long jresult ; + long long result; + + result = (long long)(0x06000016); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectIdle_get() { + long long jresult ; + long long result; + + result = (long long)(0x06000017); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectNoIntroduction_get() { + long long jresult ; + long long result; + + result = (long long)(0x06000018); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectIPLimitReached_get() { + long long jresult ; + long long result; + + result = (long long)(0x06000019); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectOtherError_get() { + long long jresult ; + long long result; + + result = (long long)(0x0600001A); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectMaxDefaultConnectionReached_get() { + long long jresult ; + long long result; + + result = (long long)(0x0600001B); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectMaxOutgoingConnectionsReached_get() { + long long jresult ; + long long result; + + result = (long long)(0x0600001C); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ConnectionError_get() { + long long jresult ; + long long result; + + result = (long long)(0x0600001D); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTxnNoFee_get() { + long long jresult ; + long long result; + + result = (long long)(0x09000000); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTxnInsufficientFee_get() { + long long jresult ; + long long result; + + result = (long long)(0x09000001); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTxnInsufficientCoinHours_get() { + long long jresult ; + long long result; + + result = (long long)(0x09000002); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrNegativeValue_get() { + long long jresult ; + long long result; + + result = (long long)(0x09000003); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTooManyDecimals_get() { + long long jresult ; + long long result; + + result = (long long)(0x09000004); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTooLarge_get() { + long long jresult ; + long long result; + + result = (long long)(0x09000005); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrEmptyDirectoryName_get() { + long long jresult ; + long long result; + + result = (long long)(0x09000006); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDotDirectoryName_get() { + long long jresult ; + long long result; + + result = (long long)(0x09000007); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrHistoryDBCorrupted_get() { + long long jresult ; + long long result; + + result = (long long)(0x0A000000); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrUxOutNotExist_get() { + long long jresult ; + long long result; + + result = (long long)(0x0A000001); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrNoHeadBlock_get() { + long long jresult ; + long long result; + + result = (long long)(0x0A000002); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMissingSignature_get() { + long long jresult ; + long long result; + + result = (long long)(0x0A000003); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrUnspentNotExist_get() { + long long jresult ; + long long result; + + result = (long long)(0x0A000004); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrVerifyStopped_get() { + long long jresult ; + long long result; + + result = (long long)(0x0A000005); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrCreateBucketFailed_get() { + long long jresult ; + long long result; + + result = (long long)(0x0A000000); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrBucketNotExist_get() { + long long jresult ; + long long result; + + result = (long long)(0x0A000006); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTxnViolatesHardConstraint_get() { + long long jresult ; + long long result; + + result = (long long)(0x0A000007); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTxnViolatesSoftConstraint_get() { + long long jresult ; + long long result; + + result = (long long)(0x0A000008); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTxnViolatesUserConstraint_get() { + long long jresult ; + long long result; + + result = (long long)(0x0A000009); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInsufficientBalance_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000000); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInsufficientHours_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000001); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrZeroSpend_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000002); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrSpendingUnconfirmed_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000003); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidEncryptedField_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000004); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrWalletEncrypted_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000005); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrWalletNotEncrypted_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000006); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMissingPassword_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000007); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMissingEncrypt_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000008); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidPassword_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000009); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMissingSeed_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B00000A); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMissingAuthenticated_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B00000B); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrWrongCryptoType_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B00000C); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrWalletNotExist_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B00000D); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrSeedUsed_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B00000E); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrWalletAPIDisabled_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B00000F); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrSeedAPIDisabled_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000010); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrWalletNameConflict_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000011); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidHoursSelectionMode_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000012); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidHoursSelectionType_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000013); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrUnknownAddress_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000014); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrUnknownUxOut_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000015); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrNoUnspents_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000016); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrNullChangeAddress_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000017); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMissingTo_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000018); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrZeroCoinsTo_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000019); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrNullAddressTo_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B00001A); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDuplicateTo_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B00001B); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMissingWalletID_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B00001C); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrIncludesNullAddress_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B00001D); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDuplicateAddresses_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B00001E); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrZeroToHoursAuto_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B00001F); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMissingModeAuto_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000020); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidHoursSelMode_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000021); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidModeManual_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000022); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidHoursSelType_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000023); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMissingShareFactor_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000024); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidShareFactor_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000025); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrShareFactorOutOfRange_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000026); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrWalletConstraint_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000027); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDuplicateUxOuts_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000028); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrUnknownWalletID_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000029); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrSHA256orMissingPassword_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B00002A); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrSHA256LenghtDataOverflowMaxUint32_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B00002B); + jresult = result; + return jresult; +} + + SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_PubKey_isEqual(void * jarg1, void * jarg2) { int jresult ; cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; cipher_PubKey *arg2 = (cipher_PubKey *) 0 ; + cipher_PubKey temp1 ; + cipher_PubKey temp2 ; int result; - arg1 = (cipher_PubKey *)jarg1; - arg2 = (cipher_PubKey *)jarg2; + { + //Typemap in *Config Handle + arg1 = &temp1; + } + { + //Typemap in *Config Handle + arg2 = &temp2; + } result = (int)cipher_PubKey_isEqual(arg1,arg2); jresult = result; + { + //Typemap freearg *ConfigHandle + } + { + //Typemap freearg *ConfigHandle + } return jresult; } @@ -607,45 +2181,73 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_PubKey_isEqual(void * jarg1, vo SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKey_assignFrom(void * jarg1, void * jarg2) { cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; void *arg2 = (void *) 0 ; + cipher_PubKey temp1 ; - arg1 = (cipher_PubKey *)jarg1; + { + //Typemap in *Config Handle + arg1 = &temp1; + } arg2 = (void *)jarg2; cipher_PubKey_assignFrom(arg1,arg2); + { + //Typemap freearg *ConfigHandle + } } SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKey_assignTo(void * jarg1, void * jarg2) { cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; void *arg2 = (void *) 0 ; + cipher_PubKey temp1 ; - arg1 = (cipher_PubKey *)jarg1; + { + //Typemap in *Config Handle + arg1 = &temp1; + } arg2 = (void *)jarg2; cipher_PubKey_assignTo(arg1,arg2); + { + //Typemap freearg *ConfigHandle + } } SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKey_data_set(void * jarg1, void * jarg2) { cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; GoUint8 *arg2 ; + cipher_PubKey temp1 ; - arg1 = (cipher_PubKey *)jarg1; + { + //Typemap in *Config Handle + arg1 = &temp1; + } arg2 = (GoUint8 *)jarg2; { size_t ii; GoUint8 *b = (GoUint8 *) arg1->data; for (ii = 0; ii < (size_t)33; ii++) b[ii] = *((GoUint8 *) arg2 + ii); } + { + //Typemap freearg *ConfigHandle + } } SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_PubKey_data_get(void * jarg1) { void * jresult ; cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; + cipher_PubKey temp1 ; GoUint8 *result = 0 ; - arg1 = (cipher_PubKey *)jarg1; + { + //Typemap in *Config Handle + arg1 = &temp1; + } result = (GoUint8 *)(GoUint8 *) ((arg1)->data); jresult = result; + { + //Typemap freearg *ConfigHandle + } return jresult; } @@ -662,9 +2264,16 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_PubKey() { SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_PubKey(void * jarg1) { cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; + cipher_PubKey temp1 ; - arg1 = (cipher_PubKey *)jarg1; + { + //Typemap in *Config Handle + arg1 = &temp1; + } free((char *) arg1); + { + //Typemap freearg *ConfigHandle + } } @@ -1201,13 +2810,20 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_setAt(void * jarg1, int cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; int arg2 ; cipher_PubKey *arg3 = (cipher_PubKey *) 0 ; + cipher_PubKey temp3 ; int result; arg1 = (cipher_PubKeys *)jarg1; arg2 = (int)jarg2; - arg3 = (cipher_PubKey *)jarg3; + { + //Typemap in *Config Handle + arg3 = &temp3; + } result = (int)cipher_PubKeys_setAt(arg1,arg2,arg3); jresult = result; + { + //Typemap freearg *ConfigHandle + } return jresult; } @@ -1247,10 +2863,17 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_release(void * jarg1) SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_data_set(void * jarg1, void * jarg2) { cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; cipher_PubKey *arg2 = (cipher_PubKey *) 0 ; + cipher_PubKey temp2 ; arg1 = (cipher_PubKeys *)jarg1; - arg2 = (cipher_PubKey *)jarg2; + { + //Typemap in *Config Handle + arg2 = &temp2; + } if (arg1) (arg1)->data = arg2; + { + //Typemap freearg *ConfigHandle + } } @@ -1554,6 +3177,68 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin_UxOutArray(void * jarg1) } +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Addresses_data_set(void * jarg1, void * jarg2) { + cipher_Addresses *arg1 = (cipher_Addresses *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + + arg1 = (cipher_Addresses *)jarg1; + arg2 = (cipher__Address *)jarg2; + if (arg1) (arg1)->data = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_Addresses_data_get(void * jarg1) { + void * jresult ; + cipher_Addresses *arg1 = (cipher_Addresses *) 0 ; + cipher__Address *result = 0 ; + + arg1 = (cipher_Addresses *)jarg1; + result = (cipher__Address *) ((arg1)->data); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Addresses_count_set(void * jarg1, int jarg2) { + cipher_Addresses *arg1 = (cipher_Addresses *) 0 ; + int arg2 ; + + arg1 = (cipher_Addresses *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->count = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_Addresses_count_get(void * jarg1) { + int jresult ; + cipher_Addresses *arg1 = (cipher_Addresses *) 0 ; + int result; + + arg1 = (cipher_Addresses *)jarg1; + result = (int) ((arg1)->count); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_Addresses() { + void * jresult ; + cipher_Addresses *result = 0 ; + + result = (cipher_Addresses *)calloc(1, sizeof(cipher_Addresses)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_Addresses(void * jarg1) { + cipher_Addresses *arg1 = (cipher_Addresses *) 0 ; + + arg1 = (cipher_Addresses *)jarg1; + free((char *) arg1); +} + + SWIGEXPORT void SWIGSTDCALL CSharp_skycoin__GoString__p_set(void * jarg1, char * jarg2) { _GoString_ *arg1 = (_GoString_ *) 0 ; char *arg2 = (char *) 0 ; @@ -1787,24 +3472,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock(void * jarg Transactions__Handle arg4 ; FeeCalculator *arg5 = (FeeCalculator *) 0 ; Block__Handle *arg6 = (Block__Handle *) 0 ; - Block__Handle *argp1 ; - Transactions__Handle *argp4 ; GoUint32 result; - argp1 = (Block__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoUint64)jarg2; arg3 = (cipher__SHA256 *)jarg3; - argp4 = (Transactions__Handle *)jarg4; - if (!argp4) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg4, (long*)&arg4); } - arg4 = *argp4; arg5 = (FeeCalculator *)jarg5; arg6 = (Block__Handle *)jarg6; result = (GoUint32)SKY_coin_NewBlock(arg1,arg2,(GoUint8_ (*)[32])arg3,arg4,arg5,arg6); @@ -1849,15 +3526,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_HashHeader(voi unsigned int jresult ; Block__Handle arg1 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - Block__Handle *argp1 ; GoUint32 result; - argp1 = (Block__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (cipher__SHA256 *)jarg2; result = (GoUint32)SKY_coin_Block_HashHeader(arg1,(GoUint8_ (*)[32])arg2); jresult = result; @@ -1869,15 +3542,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_PreHashHeader( unsigned int jresult ; Block__Handle arg1 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - Block__Handle *argp1 ; GoUint32 result; - argp1 = (Block__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (cipher__SHA256 *)jarg2; result = (GoUint32)SKY_coin_Block_PreHashHeader(arg1,(GoUint8_ (*)[32])arg2); jresult = result; @@ -1889,15 +3558,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_Time(void * ja unsigned int jresult ; Block__Handle arg1 ; GoUint64 *arg2 = (GoUint64 *) 0 ; - Block__Handle *argp1 ; GoUint32 result; - argp1 = (Block__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoUint64 *)jarg2; result = (GoUint32)SKY_coin_Block_Time(arg1,arg2); jresult = result; @@ -1909,15 +3574,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_Seq(void * jar unsigned int jresult ; Block__Handle arg1 ; GoUint64 *arg2 = (GoUint64 *) 0 ; - Block__Handle *argp1 ; GoUint32 result; - argp1 = (Block__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoUint64 *)jarg2; result = (GoUint32)SKY_coin_Block_Seq(arg1,arg2); jresult = result; @@ -1929,15 +3590,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_HashBody(void unsigned int jresult ; Block__Handle arg1 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - Block__Handle *argp1 ; GoUint32 result; - argp1 = (Block__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (cipher__SHA256 *)jarg2; result = (GoUint32)SKY_coin_Block_HashBody(arg1,(GoUint8_ (*)[32])arg2); jresult = result; @@ -1949,15 +3606,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_Size(void * ja unsigned int jresult ; Block__Handle arg1 ; GoInt *arg2 = (GoInt *) 0 ; - Block__Handle *argp1 ; GoUint32 result; - argp1 = (Block__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoInt *)jarg2; result = (GoUint32)SKY_coin_Block_Size(arg1,arg2); jresult = result; @@ -1969,15 +3622,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_String(void * unsigned int jresult ; Block__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; - Block__Handle *argp1 ; GoUint32 result; - argp1 = (Block__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_coin_Block_String(arg1,arg2); jresult = result; @@ -1991,15 +3640,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_GetTransaction cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; Transaction__Handle *arg3 = (Transaction__Handle *) 0 ; GoUint8 *arg4 = (GoUint8 *) 0 ; - Block__Handle *argp1 ; GoUint32 result; - argp1 = (Block__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (cipher__SHA256 *)jarg2; arg3 = (Transaction__Handle *)jarg3; arg4 = (GoUint8 *)jarg4; @@ -2017,19 +3662,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlockHeader(void GoUint64 arg4 ; BlockBody__Handle arg5 ; coin__BlockHeader *arg6 = (coin__BlockHeader *) 0 ; - BlockBody__Handle *argp5 ; GoUint32 result; arg1 = (coin__BlockHeader *)jarg1; arg2 = (cipher__SHA256 *)jarg2; arg3 = (GoUint64)jarg3; arg4 = (GoUint64)jarg4; - argp5 = (BlockBody__Handle *)jarg5; - if (!argp5) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null BlockBody__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg5, (long*)&arg5); } - arg5 = *argp5; arg6 = (coin__BlockHeader *)jarg6; result = (GoUint32)SKY_coin_NewBlockHeader(arg1,(GoUint8_ (*)[32])arg2,arg3,arg4,arg5,arg6); jresult = result; @@ -2083,15 +3724,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Hash(void unsigned int jresult ; BlockBody__Handle arg1 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - BlockBody__Handle *argp1 ; GoUint32 result; - argp1 = (BlockBody__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null BlockBody__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (cipher__SHA256 *)jarg2; result = (GoUint32)SKY_coin_BlockBody_Hash(arg1,(GoUint8_ (*)[32])arg2); jresult = result; @@ -2117,15 +3754,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Bytes(void unsigned int jresult ; BlockBody__Handle arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; - BlockBody__Handle *argp1 ; GoUint32 result; - argp1 = (BlockBody__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null BlockBody__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (coin__UxArray *)jarg2; result = (GoUint32)SKY_coin_BlockBody_Bytes(arg1,arg2); jresult = result; @@ -2138,16 +3771,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_CreateUnspents(void coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; Transaction__Handle arg2 ; coin__UxArray *arg3 = (coin__UxArray *) 0 ; - Transaction__Handle *argp2 ; GoUint32 result; arg1 = (coin__BlockHeader *)jarg1; - argp2 = (Transaction__Handle *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg2, (long*)&arg2); } - arg2 = *argp2; arg3 = (coin__UxArray *)jarg3; result = (GoUint32)SKY_coin_CreateUnspents(arg1,arg2,arg3); jresult = result; @@ -2161,16 +3790,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_CreateUnspent(void * Transaction__Handle arg2 ; GoInt arg3 ; coin__UxOut *arg4 = (coin__UxOut *) 0 ; - Transaction__Handle *argp2 ; GoUint32 result; arg1 = (coin__BlockHeader *)jarg1; - argp2 = (Transaction__Handle *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg2, (long*)&arg2); } - arg2 = *argp2; arg3 = (GoInt)jarg3; arg4 = (coin__UxOut *)jarg4; result = (GoUint32)SKY_coin_CreateUnspent(arg1,arg2,arg3,arg4); @@ -2183,15 +3808,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetBlockObject(void unsigned int jresult ; Block__Handle arg1 ; coin__Block **arg2 = (coin__Block **) 0 ; - Block__Handle *argp1 ; GoUint32 result; - argp1 = (Block__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (coin__Block **)jarg2; result = (GoUint32)SKY_coin_GetBlockObject(arg1,arg2); jresult = result; @@ -2203,15 +3824,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetBlockBody(void * unsigned int jresult ; Block__Handle arg1 ; BlockBody__Handle *arg2 = (BlockBody__Handle *) 0 ; - Block__Handle *argp1 ; GoUint32 result; - argp1 = (Block__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (BlockBody__Handle *)jarg2; result = (GoUint32)SKY_coin_GetBlockBody(arg1,arg2); jresult = result; @@ -2223,15 +3840,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewEmptyBlock(void * unsigned int jresult ; Transactions__Handle arg1 ; Block__Handle *arg2 = (Block__Handle *) 0 ; - Transactions__Handle *argp1 ; GoUint32 result; - argp1 = (Transactions__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (Block__Handle *)jarg2; result = (GoUint32)SKY_coin_NewEmptyBlock(arg1,arg2); jresult = result; @@ -2349,15 +3962,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CSRF(void * ja unsigned int jresult ; Client__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; - Client__Handle *argp1 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_api_Client_CSRF(arg1,arg2); jresult = result; @@ -2365,252 +3974,241 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CSRF(void * ja } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Version(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Version(void * jarg1) { unsigned int jresult ; Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; - Client__Handle *argp1 ; + Handle temp2 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; - arg2 = (Handle *)jarg2; result = (GoUint32)SKY_api_Client_Version(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Outputs(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Outputs(void * jarg1) { unsigned int jresult ; Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; - Client__Handle *argp1 ; + Handle temp2 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; - arg2 = (Handle *)jarg2; result = (GoUint32)SKY_api_Client_Outputs(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_OutputsForAddresses(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_OutputsForAddresses(void * jarg1, void * jarg2) { unsigned int jresult ; Client__Handle arg1 ; GoSlice arg2 ; Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; GoSlice *argp2 ; + Handle temp3 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg2 = *argp2; - arg3 = (Handle *)jarg3; result = (GoUint32)SKY_api_Client_OutputsForAddresses(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_OutputsForHashes(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_OutputsForHashes(void * jarg1, void * jarg2) { unsigned int jresult ; Client__Handle arg1 ; GoSlice arg2 ; Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; GoSlice *argp2 ; + Handle temp3 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg2 = *argp2; - arg3 = (Handle *)jarg3; result = (GoUint32)SKY_api_Client_OutputsForHashes(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CoinSupply(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CoinSupply(void * jarg1) { unsigned int jresult ; Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; - Client__Handle *argp1 ; + Handle temp2 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; - arg2 = (Handle *)jarg2; result = (GoUint32)SKY_api_Client_CoinSupply(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockByHash(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockByHash(void * jarg1, void * jarg2) { unsigned int jresult ; Client__Handle arg1 ; GoString arg2 ; Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; GoString *argp2 ; + Handle temp3 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoString *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg2 = *argp2; - arg3 = (Handle *)jarg3; result = (GoUint32)SKY_api_Client_BlockByHash(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockBySeq(void * jarg1, unsigned long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockBySeq(void * jarg1, unsigned long long jarg2) { unsigned int jresult ; Client__Handle arg1 ; GoUint64 arg2 ; Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; + Handle temp3 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoUint64)jarg2; - arg3 = (Handle *)jarg3; result = (GoUint32)SKY_api_Client_BlockBySeq(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Blocks(void * jarg1, long long jarg2, long long jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Blocks(void * jarg1, unsigned long long jarg2, unsigned long long jarg3) { unsigned int jresult ; Client__Handle arg1 ; - GoInt arg2 ; - GoInt arg3 ; + GoUint64 arg2 ; + GoUint64 arg3 ; Handle *arg4 = (Handle *) 0 ; - Client__Handle *argp1 ; + Handle temp4 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + arg4 = &temp4; } - arg1 = *argp1; - arg2 = (GoInt)jarg2; - arg3 = (GoInt)jarg3; - arg4 = (Handle *)jarg4; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoUint64)jarg2; + arg3 = (GoUint64)jarg3; result = (GoUint32)SKY_api_Client_Blocks(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_LastBlocks(void * jarg1, long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_LastBlocks(void * jarg1, unsigned long long jarg2) { unsigned int jresult ; Client__Handle arg1 ; - GoInt arg2 ; + GoUint64 arg2 ; Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; + Handle temp3 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + arg3 = &temp3; } - arg1 = *argp1; - arg2 = (GoInt)jarg2; - arg3 = (Handle *)jarg3; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoUint64)jarg2; result = (GoUint32)SKY_api_Client_LastBlocks(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockchainMetadata(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockchainMetadata(void * jarg1) { unsigned int jresult ; Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; - Client__Handle *argp1 ; + Handle temp2 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; - arg2 = (Handle *)jarg2; result = (GoUint32)SKY_api_Client_BlockchainMetadata(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockchainProgress(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockchainProgress(void * jarg1) { unsigned int jresult ; Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; - Client__Handle *argp1 ; + Handle temp2 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; - arg2 = (Handle *)jarg2; result = (GoUint32)SKY_api_Client_BlockchainProgress(arg1,arg2); jresult = result; return jresult; @@ -2622,16 +4220,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Balance(void * Client__Handle arg1 ; GoSlice arg2 ; wallet__BalancePair *arg3 = (wallet__BalancePair *) 0 ; - Client__Handle *argp1 ; GoSlice *argp2 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); @@ -2645,56 +4239,54 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Balance(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UxOut(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UxOut(void * jarg1, void * jarg2) { unsigned int jresult ; Client__Handle arg1 ; GoString arg2 ; Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; GoString *argp2 ; + Handle temp3 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoString *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg2 = *argp2; - arg3 = (Handle *)jarg3; result = (GoUint32)SKY_api_Client_UxOut(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressUxOuts(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressUxOuts(void * jarg1, void * jarg2) { unsigned int jresult ; Client__Handle arg1 ; GoString arg2 ; Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; GoString *argp2 ; + Handle temp3 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoString *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg2 = *argp2; - arg3 = (Handle *)jarg3; result = (GoUint32)SKY_api_Client_AddressUxOuts(arg1,arg2,arg3); jresult = result; return jresult; @@ -2706,16 +4298,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Wallet(void * Client__Handle arg1 ; GoString arg2 ; WalletResponse__Handle *arg3 = (WalletResponse__Handle *) 0 ; - Client__Handle *argp1 ; GoString *argp2 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoString *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); @@ -2733,15 +4321,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Wallets(void * unsigned int jresult ; Client__Handle arg1 ; Wallets__Handle *arg2 = (Wallets__Handle *) 0 ; - Client__Handle *argp1 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (Wallets__Handle *)jarg2; result = (GoUint32)SKY_api_Client_Wallets(arg1,arg2); jresult = result; @@ -2756,17 +4340,13 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateUnencryp GoString arg3 ; GoInt arg4 ; WalletResponse__Handle *arg5 = (WalletResponse__Handle *) 0 ; - Client__Handle *argp1 ; GoString *argp2 ; GoString *argp3 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoString *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); @@ -2795,18 +4375,14 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateEncrypte GoString arg4 ; GoInt arg5 ; WalletResponse__Handle *arg6 = (WalletResponse__Handle *) 0 ; - Client__Handle *argp1 ; GoString *argp2 ; GoString *argp3 ; GoString *argp4 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoString *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); @@ -2840,17 +4416,13 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NewWalletAddre GoInt arg3 ; GoString arg4 ; Strings__Handle *arg5 = (Strings__Handle *) 0 ; - Client__Handle *argp1 ; GoString *argp2 ; GoString *argp4 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoString *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); @@ -2876,16 +4448,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_WalletBalance( Client__Handle arg1 ; GoString arg2 ; wallet__BalancePair *arg3 = (wallet__BalancePair *) 0 ; - Client__Handle *argp1 ; GoString *argp2 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoString *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); @@ -2907,18 +4475,14 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Spend(void * j GoUint64 arg4 ; GoString arg5 ; SpendResult_Handle *arg6 = (SpendResult_Handle *) 0 ; - Client__Handle *argp1 ; GoString *argp2 ; GoString *argp3 ; GoString *argp5 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoString *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); @@ -2945,21 +4509,20 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Spend(void * j } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateTransaction(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateTransaction(void * jarg1, void * jarg3) { unsigned int jresult ; Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; CreateTransactionResponse__Handle *arg3 = (CreateTransactionResponse__Handle *) 0 ; - Client__Handle *argp1 ; + Handle temp2 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; - arg2 = (Handle *)jarg2; arg3 = (CreateTransactionResponse__Handle *)jarg3; result = (GoUint32)SKY_api_Client_CreateTransaction(arg1,arg2,arg3); jresult = result; @@ -2967,50 +4530,18 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateTransact } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_WalletTransactions(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; - GoString *argp2 ; - GoUint32 result; - - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - arg3 = (Handle *)jarg3; - result = (GoUint32)SKY_api_Client_WalletTransactions(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UpdateWallet(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; Client__Handle arg1 ; GoString arg2 ; GoString arg3 ; - Client__Handle *argp1 ; GoString *argp2 ; GoString *argp3 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoString *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); @@ -3029,20 +4560,19 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UpdateWallet(v } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_WalletFolderName(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_WalletFolderName(void * jarg1) { unsigned int jresult ; Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; - Client__Handle *argp1 ; + Handle temp2 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; - arg2 = (Handle *)jarg2; result = (GoUint32)SKY_api_Client_WalletFolderName(arg1,arg2); jresult = result; return jresult; @@ -3054,15 +4584,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NewSeed(void * Client__Handle arg1 ; GoInt arg2 ; GoString_ *arg3 = (GoString_ *) 0 ; - Client__Handle *argp1 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoInt)jarg2; arg3 = (GoString_ *)jarg3; result = (GoUint32)SKY_api_Client_NewSeed(arg1,arg2,arg3); @@ -3077,17 +4603,13 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_GetWalletSeed( GoString arg2 ; GoString arg3 ; GoString_ *arg4 = (GoString_ *) 0 ; - Client__Handle *argp1 ; GoString *argp2 ; GoString *argp3 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoString *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); @@ -3107,240 +4629,230 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_GetWalletSeed( } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkConnection(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkConnection(void * jarg1, void * jarg2) { unsigned int jresult ; Client__Handle arg1 ; GoString arg2 ; Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; GoString *argp2 ; + Handle temp3 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoString *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg2 = *argp2; - arg3 = (Handle *)jarg3; result = (GoUint32)SKY_api_Client_NetworkConnection(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkConnections(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkConnections(void * jarg1) { unsigned int jresult ; Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; - Client__Handle *argp1 ; + Handle temp2 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; - arg2 = (Handle *)jarg2; result = (GoUint32)SKY_api_Client_NetworkConnections(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkDefaultConnections(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkDefaultConnections(void * jarg1) { unsigned int jresult ; Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; - Client__Handle *argp1 ; + Handle temp2 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; - arg2 = (Handle *)jarg2; result = (GoUint32)SKY_api_Client_NetworkDefaultConnections(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkTrustedConnections(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkTrustedConnections(void * jarg1) { unsigned int jresult ; Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; - Client__Handle *argp1 ; + Handle temp2 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; - arg2 = (Handle *)jarg2; result = (GoUint32)SKY_api_Client_NetworkTrustedConnections(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkExchangeableConnections(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkExchangeableConnections(void * jarg1) { unsigned int jresult ; Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; - Client__Handle *argp1 ; + Handle temp2 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; - arg2 = (Handle *)jarg2; result = (GoUint32)SKY_api_Client_NetworkExchangeableConnections(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_PendingTransactions(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_PendingTransactions(void * jarg1) { unsigned int jresult ; Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; - Client__Handle *argp1 ; + Handle temp2 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; - arg2 = (Handle *)jarg2; result = (GoUint32)SKY_api_Client_PendingTransactions(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Transaction(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Transaction(void * jarg1, void * jarg2) { unsigned int jresult ; Client__Handle arg1 ; GoString arg2 ; Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; GoString *argp2 ; + Handle temp3 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoString *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg2 = *argp2; - arg3 = (Handle *)jarg3; result = (GoUint32)SKY_api_Client_Transaction(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Transactions(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Transactions(void * jarg1, void * jarg2) { unsigned int jresult ; Client__Handle arg1 ; GoSlice arg2 ; Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; GoSlice *argp2 ; + Handle temp3 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg2 = *argp2; - arg3 = (Handle *)jarg3; result = (GoUint32)SKY_api_Client_Transactions(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_ConfirmedTransactions(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_ConfirmedTransactions(void * jarg1, void * jarg2) { unsigned int jresult ; Client__Handle arg1 ; GoSlice arg2 ; Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; GoSlice *argp2 ; + Handle temp3 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg2 = *argp2; - arg3 = (Handle *)jarg3; result = (GoUint32)SKY_api_Client_ConfirmedTransactions(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UnconfirmedTransactions(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UnconfirmedTransactions(void * jarg1, void * jarg2) { unsigned int jresult ; Client__Handle arg1 ; GoSlice arg2 ; Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; GoSlice *argp2 ; + Handle temp3 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg2 = *argp2; - arg3 = (Handle *)jarg3; result = (GoUint32)SKY_api_Client_UnconfirmedTransactions(arg1,arg2,arg3); jresult = result; return jresult; @@ -3350,24 +4862,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UnconfirmedTra SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_InjectTransaction(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; Client__Handle arg1 ; - GoString arg2 ; + Transaction__Handle arg2 ; GoString_ *arg3 = (GoString_ *) 0 ; - Client__Handle *argp1 ; - GoString *argp2 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; + { + SWIG_AsVal_long(jarg2, (long*)&arg2); } - arg2 = *argp2; arg3 = (GoString_ *)jarg3; result = (GoUint32)SKY_api_Client_InjectTransaction(arg1,arg2,arg3); jresult = result; @@ -3375,20 +4879,19 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_InjectTransact } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_ResendUnconfirmedTransactions(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_ResendUnconfirmedTransactions(void * jarg1) { unsigned int jresult ; Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; - Client__Handle *argp1 ; + Handle temp2 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; - arg2 = (Handle *)jarg2; result = (GoUint32)SKY_api_Client_ResendUnconfirmedTransactions(arg1,arg2); jresult = result; return jresult; @@ -3400,16 +4903,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_RawTransaction Client__Handle arg1 ; GoString arg2 ; GoString_ *arg3 = (GoString_ *) 0 ; - Client__Handle *argp1 ; GoString *argp2 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoString *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); @@ -3423,50 +4922,48 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_RawTransaction } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressTransactions(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressTransactions(void * jarg1, void * jarg2) { unsigned int jresult ; Client__Handle arg1 ; GoString arg2 ; Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; GoString *argp2 ; + Handle temp3 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoString *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg2 = *argp2; - arg3 = (Handle *)jarg3; result = (GoUint32)SKY_api_Client_AddressTransactions(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Richlist(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Richlist(void * jarg1, void * jarg2) { unsigned int jresult ; Client__Handle arg1 ; api__RichlistParams *arg2 = (api__RichlistParams *) 0 ; Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; + Handle temp3 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (api__RichlistParams *)jarg2; - arg3 = (Handle *)jarg3; result = (GoUint32)SKY_api_Client_Richlist(arg1,arg2,arg3); jresult = result; return jresult; @@ -3477,15 +4974,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressCount(v unsigned int jresult ; Client__Handle arg1 ; GoUint64 *arg2 = (GoUint64 *) 0 ; - Client__Handle *argp1 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoUint64 *)jarg2; result = (GoUint32)SKY_api_Client_AddressCount(arg1,arg2); jresult = result; @@ -3497,16 +4990,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UnloadWallet(v unsigned int jresult ; Client__Handle arg1 ; GoString arg2 ; - Client__Handle *argp1 ; GoString *argp2 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoString *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); @@ -3519,20 +5008,19 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UnloadWallet(v } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Health(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Health(void * jarg1) { unsigned int jresult ; Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; - Client__Handle *argp1 ; + Handle temp2 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; - arg2 = (Handle *)jarg2; result = (GoUint32)SKY_api_Client_Health(arg1,arg2); jresult = result; return jresult; @@ -3545,17 +5033,13 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_EncryptWallet( GoString arg2 ; GoString arg3 ; WalletResponse__Handle *arg4 = (WalletResponse__Handle *) 0 ; - Client__Handle *argp1 ; GoString *argp2 ; GoString *argp3 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoString *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); @@ -3581,17 +5065,13 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_DecryptWallet( GoString arg2 ; GoString arg3 ; WalletResponse__Handle *arg4 = (WalletResponse__Handle *) 0 ; - Client__Handle *argp1 ; GoString *argp2 ; GoString *argp3 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoString *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); @@ -3787,15 +5267,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewWalletResponse(voi unsigned int jresult ; Wallet__Handle arg1 ; WalletResponse__Handle *arg2 = (WalletResponse__Handle *) 0 ; - Wallet__Handle *argp1 ; GoUint32 result; - argp1 = (Wallet__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (WalletResponse__Handle *)jarg2; result = (GoUint32)SKY_api_NewWalletResponse(arg1,arg2); jresult = result; @@ -3808,16 +5284,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreateTransactionR Transaction__Handle arg1 ; GoSlice arg2 ; CreateTransactionResponse__Handle *arg3 = (CreateTransactionResponse__Handle *) 0 ; - Transaction__Handle *argp1 ; GoSlice *argp2 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); @@ -3836,16 +5308,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreatedTransaction Transaction__Handle arg1 ; GoSlice arg2 ; CreatedTransaction__Handle *arg3 = (CreatedTransaction__Handle *) 0 ; - Transaction__Handle *argp1 ; GoSlice *argp2 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); @@ -3863,15 +5331,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_CreatedTransaction_To unsigned int jresult ; CreatedTransaction__Handle arg1 ; Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; - CreatedTransaction__Handle *argp1 ; GoUint32 result; - argp1 = (CreatedTransaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null CreatedTransaction__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (Transaction__Handle *)jarg2; result = (GoUint32)SKY_api_CreatedTransaction_ToTransaction(arg1,arg2); jresult = result; @@ -3933,7 +5397,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewWallet(void * j Options__Handle arg2 ; Wallet__Handle *arg3 = (Wallet__Handle *) 0 ; GoString *argp1 ; - Options__Handle *argp2 ; GoUint32 result; argp1 = (GoString *)jarg1; @@ -3942,12 +5405,9 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewWallet(void * j return 0; } arg1 = *argp1; - argp2 = (Options__Handle *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Options__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg2, (long*)&arg2); } - arg2 = *argp2; arg3 = (Wallet__Handle *)jarg3; result = (GoUint32)SKY_wallet_NewWallet(arg1,arg2,arg3); jresult = result; @@ -3960,17 +5420,13 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Lock(void * Wallet__Handle arg1 ; GoSlice arg2 ; GoString arg3 ; - Wallet__Handle *argp1 ; GoSlice *argp2 ; GoString *argp3 ; GoUint32 result; - argp1 = (Wallet__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); @@ -3994,16 +5450,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Unlock(void Wallet__Handle arg1 ; GoSlice arg2 ; Wallet__Handle *arg3 = (Wallet__Handle *) 0 ; - Wallet__Handle *argp1 ; GoSlice *argp2 ; GoUint32 result; - argp1 = (Wallet__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); @@ -4041,16 +5493,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Save(void * unsigned int jresult ; Wallet__Handle arg1 ; GoString arg2 ; - Wallet__Handle *argp1 ; GoString *argp2 ; GoUint32 result; - argp1 = (Wallet__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoString *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); @@ -4066,15 +5514,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Save(void * SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Validate(void * jarg1) { unsigned int jresult ; Wallet__Handle arg1 ; - Wallet__Handle *argp1 ; GoUint32 result; - argp1 = (Wallet__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; result = (GoUint32)SKY_wallet_Wallet_Validate(arg1); jresult = result; return jresult; @@ -4085,15 +5529,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Type(void * unsigned int jresult ; Wallet__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; - Wallet__Handle *argp1 ; GoUint32 result; - argp1 = (Wallet__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_wallet_Wallet_Type(arg1,arg2); jresult = result; @@ -4105,15 +5545,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Version(voi unsigned int jresult ; Wallet__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; - Wallet__Handle *argp1 ; GoUint32 result; - argp1 = (Wallet__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_wallet_Wallet_Version(arg1,arg2); jresult = result; @@ -4125,15 +5561,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Filename(vo unsigned int jresult ; Wallet__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; - Wallet__Handle *argp1 ; GoUint32 result; - argp1 = (Wallet__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_wallet_Wallet_Filename(arg1,arg2); jresult = result; @@ -4145,15 +5577,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Label(void unsigned int jresult ; Wallet__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; - Wallet__Handle *argp1 ; GoUint32 result; - argp1 = (Wallet__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_wallet_Wallet_Label(arg1,arg2); jresult = result; @@ -4165,15 +5593,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_IsEncrypted unsigned int jresult ; Wallet__Handle arg1 ; GoUint8 *arg2 = (GoUint8 *) 0 ; - Wallet__Handle *argp1 ; GoUint32 result; - argp1 = (Wallet__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoUint8 *)jarg2; result = (GoUint32)SKY_wallet_Wallet_IsEncrypted(arg1,arg2); jresult = result; @@ -4186,15 +5610,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_GenerateAdd Wallet__Handle arg1 ; GoUint64 arg2 ; coin__UxArray *arg3 = (coin__UxArray *) 0 ; - Wallet__Handle *argp1 ; GoUint32 result; - argp1 = (Wallet__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoUint64)jarg2; arg3 = (coin__UxArray *)jarg3; result = (GoUint32)SKY_wallet_Wallet_GenerateAddresses(arg1,arg2,arg3); @@ -4207,15 +5627,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_GetAddresse unsigned int jresult ; Wallet__Handle arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; - Wallet__Handle *argp1 ; GoUint32 result; - argp1 = (Wallet__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (coin__UxArray *)jarg2; result = (GoUint32)SKY_wallet_Wallet_GetAddresses(arg1,arg2); jresult = result; @@ -4229,15 +5645,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_GetEntry(vo cipher__Address *arg2 = (cipher__Address *) 0 ; wallet__Entry *arg3 = (wallet__Entry *) 0 ; GoUint8 *arg4 = (GoUint8 *) 0 ; - Wallet__Handle *argp1 ; GoUint32 result; - argp1 = (Wallet__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (cipher__Address *)jarg2; arg3 = (wallet__Entry *)jarg3; arg4 = (GoUint8 *)jarg4; @@ -4251,15 +5663,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_AddEntry(vo unsigned int jresult ; Wallet__Handle arg1 ; wallet__Entry *arg2 = (wallet__Entry *) 0 ; - Wallet__Handle *argp1 ; GoUint32 result; - argp1 = (Wallet__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (wallet__Entry *)jarg2; result = (GoUint32)SKY_wallet_Wallet_AddEntry(arg1,arg2); jresult = result; @@ -4396,16 +5804,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CheckWalletBalance(vo WebRpcClient__Handle arg1 ; GoString arg2 ; BalanceResult_Handle *arg3 = (BalanceResult_Handle *) 0 ; - WebRpcClient__Handle *argp1 ; GoString *argp2 ; GoUint32 result; - argp1 = (WebRpcClient__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoString *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); @@ -4424,16 +5828,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetBalanceOfAddresses WebRpcClient__Handle arg1 ; GoSlice arg2 ; BalanceResult_Handle *arg3 = (BalanceResult_Handle *) 0 ; - WebRpcClient__Handle *argp1 ; GoSlice *argp2 ; GoUint32 result; - argp1 = (WebRpcClient__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); @@ -4447,284 +5847,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetBalanceOfAddresses } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewNotesFilename(void * jarg1) { - unsigned int jresult ; - GoString_ *arg1 = (GoString_ *) 0 ; - GoUint32 result; - - arg1 = (GoString_ *)jarg1; - result = (GoUint32)SKY_wallet_NewNotesFilename(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_LoadNotes(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - WalletNotes_Handle *arg2 = (WalletNotes_Handle *) 0 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (WalletNotes_Handle *)jarg2; - result = (GoUint32)SKY_wallet_LoadNotes(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_LoadReadableNotes(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - WalletReadableNotes_Handle *arg2 = (WalletReadableNotes_Handle *) 0 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (WalletReadableNotes_Handle *)jarg2; - result = (GoUint32)SKY_wallet_LoadReadableNotes(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableNotes_Load(void * jarg1, void * jarg2) { - unsigned int jresult ; - WalletReadableNotes_Handle arg1 ; - GoString arg2 ; - WalletReadableNotes_Handle *argp1 ; - GoString *argp2 ; - GoUint32 result; - - argp1 = (WalletReadableNotes_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletReadableNotes_Handle", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_wallet_ReadableNotes_Load(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableNotes_ToNotes(void * jarg1, void * jarg2) { - unsigned int jresult ; - WalletReadableNotes_Handle arg1 ; - WalletNotes_Handle *arg2 = (WalletNotes_Handle *) 0 ; - WalletReadableNotes_Handle *argp1 ; - GoUint32 result; - - argp1 = (WalletReadableNotes_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletReadableNotes_Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (WalletNotes_Handle *)jarg2; - result = (GoUint32)SKY_wallet_ReadableNotes_ToNotes(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableNotes_Save(void * jarg1, void * jarg2) { - unsigned int jresult ; - WalletReadableNotes_Handle arg1 ; - GoString arg2 ; - WalletReadableNotes_Handle *argp1 ; - GoString *argp2 ; - GoUint32 result; - - argp1 = (WalletReadableNotes_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletReadableNotes_Handle", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_wallet_ReadableNotes_Save(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewReadableNote(void * jarg1, void * jarg2) { - unsigned int jresult ; - wallet__Note *arg1 = (wallet__Note *) 0 ; - wallet__ReadableNote *arg2 = (wallet__ReadableNote *) 0 ; - GoUint32 result; - - arg1 = (wallet__Note *)jarg1; - arg2 = (wallet__ReadableNote *)jarg2; - result = (GoUint32)SKY_wallet_NewReadableNote(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewReadableNotesFromNotes(void * jarg1, void * jarg2) { - unsigned int jresult ; - WalletNotes_Handle arg1 ; - WalletReadableNotes_Handle *arg2 = (WalletReadableNotes_Handle *) 0 ; - WalletNotes_Handle *argp1 ; - GoUint32 result; - - argp1 = (WalletNotes_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletNotes_Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (WalletReadableNotes_Handle *)jarg2; - result = (GoUint32)SKY_wallet_NewReadableNotesFromNotes(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Notes_Save(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - WalletNotes_Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - WalletNotes_Handle *argp1 ; - GoString *argp2 ; - GoString *argp3 ; - GoUint32 result; - - argp1 = (WalletNotes_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletNotes_Handle", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; - result = (GoUint32)SKY_wallet_Notes_Save(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Notes_SaveNote(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - WalletNotes_Handle arg1 ; - GoString arg2 ; - wallet__Note *arg3 = (wallet__Note *) 0 ; - WalletNotes_Handle *argp1 ; - GoString *argp2 ; - GoUint32 result; - - argp1 = (WalletNotes_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletNotes_Handle", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - arg3 = (wallet__Note *)jarg3; - result = (GoUint32)SKY_wallet_Notes_SaveNote(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Notes_ToReadable(void * jarg1, void * jarg2) { - unsigned int jresult ; - WalletNotes_Handle arg1 ; - WalletReadableNotes_Handle *arg2 = (WalletReadableNotes_Handle *) 0 ; - WalletNotes_Handle *argp1 ; - GoUint32 result; - - argp1 = (WalletNotes_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletNotes_Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (WalletReadableNotes_Handle *)jarg2; - result = (GoUint32)SKY_wallet_Notes_ToReadable(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NotesFileExist(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_wallet_NotesFileExist(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateNoteFileIfNotExist(void * jarg1) { - unsigned int jresult ; - GoString arg1 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - result = (GoUint32)SKY_wallet_CreateNoteFileIfNotExist(arg1); - jresult = result; - return jresult; -} - - SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewReadableEntry(void * jarg1, void * jarg2) { unsigned int jresult ; wallet__Entry *arg1 = (wallet__Entry *) 0 ; @@ -4783,16 +5905,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableEntry_Save unsigned int jresult ; ReadableEntry__Handle arg1 ; GoString arg2 ; - ReadableEntry__Handle *argp1 ; GoString *argp2 ; GoUint32 result; - argp1 = (ReadableEntry__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null ReadableEntry__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoString *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); @@ -4829,16 +5947,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableWallet_Sav unsigned int jresult ; ReadableWallet__Handle arg1 ; GoString arg2 ; - ReadableWallet__Handle *argp1 ; GoString *argp2 ; GoUint32 result; - argp1 = (ReadableWallet__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null ReadableWallet__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoString *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); @@ -4855,16 +5969,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableWallet_Loa unsigned int jresult ; ReadableWallet__Handle arg1 ; GoString arg2 ; - ReadableWallet__Handle *argp1 ; GoString *argp2 ; GoUint32 result; - argp1 = (ReadableWallet__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null ReadableWallet__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoString *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); @@ -4880,15 +5990,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableWallet_Loa SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableWallet_Erase(void * jarg1) { unsigned int jresult ; ReadableWallet__Handle arg1 ; - ReadableWallet__Handle *argp1 ; GoUint32 result; - argp1 = (ReadableWallet__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null ReadableWallet__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; result = (GoUint32)SKY_wallet_ReadableWallet_Erase(arg1); jresult = result; return jresult; @@ -5345,15 +6451,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_CSRF(void * unsigned int jresult ; WebRpcClient__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; - WebRpcClient__Handle *argp1 ; GoUint32 result; - argp1 = (WebRpcClient__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_webrpc_Client_CSRF(arg1,arg2); jresult = result; @@ -5361,83 +6463,19 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_CSRF(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetUnspentOutputs(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - WebRpcClient__Handle arg1 ; - GoSlice arg2 ; - OutputsResult_Handle *arg3 = (OutputsResult_Handle *) 0 ; - WebRpcClient__Handle *argp1 ; - GoSlice *argp2 ; - GoUint32 result; - - argp1 = (WebRpcClient__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (OutputsResult_Handle *)jarg3; - result = (GoUint32)SKY_webrpc_Client_GetUnspentOutputs(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_InjectTransactionString(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - WebRpcClient__Handle arg1 ; - GoString arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - WebRpcClient__Handle *argp1 ; - GoString *argp2 ; - GoUint32 result; - - argp1 = (WebRpcClient__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - arg3 = (GoString_ *)jarg3; - result = (GoUint32)SKY_webrpc_Client_InjectTransactionString(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_InjectTransaction(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; WebRpcClient__Handle arg1 ; Transaction__Handle arg2 ; GoString_ *arg3 = (GoString_ *) 0 ; - WebRpcClient__Handle *argp1 ; - Transaction__Handle *argp2 ; GoUint32 result; - argp1 = (WebRpcClient__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; - argp2 = (Transaction__Handle *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg2, (long*)&arg2); } - arg2 = *argp2; arg3 = (GoString_ *)jarg3; result = (GoUint32)SKY_webrpc_Client_InjectTransaction(arg1,arg2,arg3); jresult = result; @@ -5449,15 +6487,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetStatus(v unsigned int jresult ; WebRpcClient__Handle arg1 ; StatusResult_Handle *arg2 = (StatusResult_Handle *) 0 ; - WebRpcClient__Handle *argp1 ; GoUint32 result; - argp1 = (WebRpcClient__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (StatusResult_Handle *)jarg2; result = (GoUint32)SKY_webrpc_Client_GetStatus(arg1,arg2); jresult = result; @@ -5470,16 +6504,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetTransact WebRpcClient__Handle arg1 ; GoString arg2 ; TransactionResult_Handle *arg3 = (TransactionResult_Handle *) 0 ; - WebRpcClient__Handle *argp1 ; GoString *argp2 ; GoUint32 result; - argp1 = (WebRpcClient__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoString *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); @@ -5498,16 +6528,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetAddressU WebRpcClient__Handle arg1 ; GoSlice arg2 ; coin__UxArray *arg3 = (coin__UxArray *) 0 ; - WebRpcClient__Handle *argp1 ; GoSlice *argp2 ; GoUint32 result; - argp1 = (WebRpcClient__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); @@ -5527,15 +6553,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetBlocks(v GoUint64 arg2 ; GoUint64 arg3 ; coin__UxArray *arg4 = (coin__UxArray *) 0 ; - WebRpcClient__Handle *argp1 ; GoUint32 result; - argp1 = (WebRpcClient__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoUint64)jarg2; arg3 = (GoUint64)jarg3; arg4 = (coin__UxArray *)jarg4; @@ -5550,16 +6572,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetBlocksBy WebRpcClient__Handle arg1 ; GoSlice arg2 ; coin__UxArray *arg3 = (coin__UxArray *) 0 ; - WebRpcClient__Handle *argp1 ; GoSlice *argp2 ; GoUint32 result; - argp1 = (WebRpcClient__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); @@ -5578,15 +6596,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetLastBloc WebRpcClient__Handle arg1 ; GoUint64 arg2 ; coin__UxArray *arg3 = (coin__UxArray *) 0 ; - WebRpcClient__Handle *argp1 ; GoUint32 result; - argp1 = (WebRpcClient__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoUint64)jarg2; arg3 = (coin__UxArray *)jarg3; result = (GoUint32)SKY_webrpc_Client_GetLastBlocks(arg1,arg2,arg3); @@ -5877,29 +6891,33 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Int64ToUint64(long l } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Len(void * jarg1) { - long long jresult ; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Len(void * jarg1, void * jarg2) { + unsigned int jresult ; coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoInt result; + GoInt *arg2 = (GoInt *) 0 ; + GoUint32 result; arg1 = (coin__UxArray *)jarg1; - result = (GoInt)SKY_cipher_PubKeySlice_Len(arg1); + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_cipher_PubKeySlice_Len(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Less(void * jarg1, long long jarg2, long long jarg3) { - unsigned char jresult ; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Less(void * jarg1, long long jarg2, long long jarg3, void * jarg4) { + unsigned int jresult ; coin__UxArray *arg1 = (coin__UxArray *) 0 ; GoInt arg2 ; GoInt arg3 ; - GoUint8 result; + GoUint8 *arg4 = (GoUint8 *) 0 ; + GoUint32 result; arg1 = (coin__UxArray *)jarg1; arg2 = (GoInt)jarg2; arg3 = (GoInt)jarg3; - result = (GoUint8)SKY_cipher_PubKeySlice_Less(arg1,arg2,arg3); + arg4 = (GoUint8 *)jarg4; + result = (GoUint32)SKY_cipher_PubKeySlice_Less(arg1,arg2,arg3,arg4); jresult = result; return jresult; } @@ -5955,26 +6973,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewPubKey(void * j } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_MustPubKeyFromHex(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher__PubKey *)jarg2; - result = (GoUint32)SKY_cipher_MustPubKeyFromHex(arg1,(GoUint8_ (*)[33])arg2); - jresult = result; - return jresult; -} - - SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromHex(void * jarg1, void * jarg2) { unsigned int jresult ; GoString arg1 ; @@ -6085,26 +7083,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewSecKey(void * j } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_MustSecKeyFromHex(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher__SecKey *)jarg2; - result = (GoUint32)SKY_cipher_MustSecKeyFromHex(arg1,(GoUint8_ (*)[32])arg2); - jresult = result; - return jresult; -} - - SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKeyFromHex(void * jarg1, void * jarg2) { unsigned int jresult ; GoString arg1 ; @@ -6187,26 +7165,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewSig(void * jarg } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_MustSigFromHex(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - cipher__Sig *arg2 = (cipher__Sig *) 0 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher__Sig *)jarg2; - result = (GoUint32)SKY_cipher_MustSigFromHex(arg1,(GoUint8_ (*)[65])arg2); - jresult = result; - return jresult; -} - - SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SigFromHex(void * jarg1, void * jarg2) { unsigned int jresult ; GoString arg1 ; @@ -6303,20 +7261,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignature(vo } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateKeyPair(void * jarg1, void * jarg2) { - unsigned int jresult ; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - GoUint32 result; - - arg1 = (cipher__PubKey *)jarg1; - arg2 = (cipher__SecKey *)jarg2; - result = (GoUint32)SKY_cipher_GenerateKeyPair((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2); - jresult = result; - return jresult; -} - - SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPair(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; GoSlice arg1 ; @@ -6435,6 +7379,20 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_TestSecKeyHash(voi } +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateKeyPair(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + GoUint32 result; + + arg1 = (cipher__PubKey *)jarg1; + arg2 = (cipher__SecKey *)jarg2; + result = (GoUint32)SKY_cipher_GenerateKeyPair((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Create(void * jarg1) { unsigned int jresult ; Signature_Handle *arg1 = (Signature_Handle *) 0 ; @@ -6451,15 +7409,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Get unsigned int jresult ; Signature_Handle arg1 ; Number_Handle *arg2 = (Number_Handle *) 0 ; - Signature_Handle *argp1 ; GoUint32 result; - argp1 = (Signature_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (Number_Handle *)jarg2; result = (GoUint32)SKY_secp256k1go_Signature_GetR(arg1,arg2); jresult = result; @@ -6471,15 +7425,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Get unsigned int jresult ; Signature_Handle arg1 ; Number_Handle *arg2 = (Number_Handle *) 0 ; - Signature_Handle *argp1 ; GoUint32 result; - argp1 = (Signature_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (Number_Handle *)jarg2; result = (GoUint32)SKY_secp256k1go_Signature_GetS(arg1,arg2); jresult = result; @@ -6491,16 +7441,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Pri unsigned int jresult ; Signature_Handle arg1 ; GoString arg2 ; - Signature_Handle *argp1 ; GoString *argp2 ; GoUint32 result; - argp1 = (Signature_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoString *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); @@ -6519,23 +7465,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Ver secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; Number_Handle arg3 ; GoUint8 *arg4 = (GoUint8 *) 0 ; - Signature_Handle *argp1 ; - Number_Handle *argp3 ; GoUint32 result; - argp1 = (Signature_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (secp256k1go__XY *)jarg2; - argp3 = (Number_Handle *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg3, (long*)&arg3); } - arg3 = *argp3; arg4 = (GoUint8 *)jarg4; result = (GoUint32)SKY_secp256k1go_Signature_Verify(arg1,arg2,arg3,arg4); jresult = result; @@ -6550,23 +7488,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Rec Number_Handle arg3 ; GoInt arg4 ; GoUint8 *arg5 = (GoUint8 *) 0 ; - Signature_Handle *argp1 ; - Number_Handle *argp3 ; GoUint32 result; - argp1 = (Signature_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (secp256k1go__XY *)jarg2; - argp3 = (Number_Handle *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg3, (long*)&arg3); } - arg3 = *argp3; arg4 = (GoInt)jarg4; arg5 = (GoUint8 *)jarg5; result = (GoUint32)SKY_secp256k1go_Signature_Recover(arg1,arg2,arg3,arg4,arg5); @@ -6583,36 +7513,20 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Sig Number_Handle arg4 ; GoInt *arg5 = (GoInt *) 0 ; GoInt *arg6 = (GoInt *) 0 ; - Signature_Handle *argp1 ; - Number_Handle *argp2 ; - Number_Handle *argp3 ; - Number_Handle *argp4 ; GoUint32 result; - argp1 = (Signature_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; - argp2 = (Number_Handle *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg2, (long*)&arg2); } - arg2 = *argp2; - argp3 = (Number_Handle *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg3, (long*)&arg3); } - arg3 = *argp3; - argp4 = (Number_Handle *)jarg4; - if (!argp4) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg4, (long*)&arg4); } - arg4 = *argp4; arg5 = (GoInt *)jarg5; arg6 = (GoInt *)jarg6; result = (GoUint32)SKY_secp256k1go_Signature_Sign(arg1,arg2,arg3,arg4,arg5,arg6); @@ -6625,16 +7539,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Par unsigned int jresult ; Signature_Handle arg1 ; GoSlice arg2 ; - Signature_Handle *argp1 ; GoSlice *argp2 ; GoUint32 result; - argp1 = (Signature_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); @@ -6651,15 +7561,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Byt unsigned int jresult ; Signature_Handle arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; - Signature_Handle *argp1 ; GoUint32 result; - argp1 = (Signature_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (coin__UxArray *)jarg2; result = (GoUint32)SKY_secp256k1go_Signature_Bytes(arg1,arg2); jresult = result; @@ -6671,16 +7577,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_App_Run(void * jarg1, unsigned int jresult ; App__Handle arg1 ; GoString arg2 ; - App__Handle *argp1 ; GoString *argp2 ; GoUint32 result; - argp1 = (App__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null App__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoString *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); @@ -6697,15 +7599,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_GetCoin(void * unsigned int jresult ; Config__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; - Config__Handle *argp1 ; GoUint32 result; - argp1 = (Config__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Config__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_cli_Config_GetCoin(arg1,arg2); jresult = result; @@ -6717,15 +7615,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_GetRPCAddress( unsigned int jresult ; Config__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; - Config__Handle *argp1 ; GoUint32 result; - argp1 = (Config__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Config__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_cli_Config_GetRPCAddress(arg1,arg2); jresult = result; @@ -6737,15 +7631,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_RPCClientFromApp(void unsigned int jresult ; App__Handle arg1 ; WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; - App__Handle *argp1 ; GoUint32 result; - argp1 = (App__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null App__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (WebRpcClient__Handle *)jarg2; result = (GoUint32)SKY_cli_RPCClientFromApp(arg1,arg2); jresult = result; @@ -7243,24 +8133,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_ECmult(vo secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; Number_Handle arg3 ; Number_Handle arg4 ; - Number_Handle *argp3 ; - Number_Handle *argp4 ; GoUint32 result; arg1 = (secp256k1go__XYZ *)jarg1; arg2 = (secp256k1go__XYZ *)jarg2; - argp3 = (Number_Handle *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg3, (long*)&arg3); } - arg3 = *argp3; - argp4 = (Number_Handle *)jarg4; - if (!argp4) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg4, (long*)&arg4); } - arg4 = *argp4; result = (GoUint32)SKY_secp256k1go_XYZ_ECmult(arg1,arg2,arg3,arg4); jresult = result; return jresult; @@ -7331,16 +8213,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_ECmultGen(voi unsigned int jresult ; secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; Number_Handle arg2 ; - Number_Handle *argp2 ; GoUint32 result; arg1 = (secp256k1go__XYZ *)jarg1; - argp2 = (Number_Handle *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg2, (long*)&arg2); } - arg2 = *argp2; result = (GoUint32)SKY_secp256k1go_ECmultGen(arg1,arg2); jresult = result; return jresult; @@ -7459,32 +8337,27 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CryptoTypeFromStri SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_handle_close(void * jarg1) { Handle arg1 ; - Handle *argp1 ; - argp1 = (Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); - return ; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; SKY_handle_close(arg1); } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_handle_copy(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_handle_copy(void * jarg1) { unsigned int jresult ; Handle arg1 ; Handle *arg2 = (Handle *) 0 ; - Handle *argp1 ; + Handle temp2 ; GoUint32 result; - argp1 = (Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); - return 0; + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; - arg2 = (Handle *)jarg2; result = (GoUint32)SKY_handle_copy(arg1,arg2); jresult = result; return jresult; @@ -7595,46 +8468,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DecodeBase58Addres } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_MustDecodeBase58Address(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher__Address *)jarg2; - result = (GoUint32)SKY_cipher_MustDecodeBase58Address(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinMustDecodeBase58Address(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher__Address *)jarg2; - result = (GoUint32)SKY_cipher_BitcoinMustDecodeBase58Address(arg1,arg2); - jresult = result; - return jresult; -} - - SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddressFromBytes(void * jarg1, void * jarg2) { unsigned int jresult ; GoSlice arg1 ; @@ -7703,21 +8536,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinDecodeBase5 } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_MustAddressFromBytes(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Null(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - GoSlice *argp1 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher__Address *)jarg2; - result = (GoUint32)SKY_cipher_MustAddressFromBytes(arg1,arg2); + arg1 = (cipher__Address *)jarg1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_cipher_Address_Null(arg1,arg2); jresult = result; return jresult; } @@ -7737,20 +8564,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Bytes(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Null(void * jarg1, void * jarg2) { - unsigned int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoUint32 result; - - arg1 = (cipher__Address *)jarg1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_cipher_Address_Null(arg1,arg2); - jresult = result; - return jresult; -} - - SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_BitcoinBytes(void * jarg1, void * jarg2) { unsigned int jresult ; cipher__Address *arg1 = (cipher__Address *) 0 ; @@ -7903,39 +8716,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKeyFromWalletIm } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_MustSecKeyFromWalletImportFormat(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher__SecKey *)jarg2; - result = (GoUint32)SKY_cipher_MustSecKeyFromWalletImportFormat(arg1,(GoUint8_ (*)[32])arg2); - jresult = result; - return jresult; -} - - SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_JsonEncode_Handle(void * jarg1, void * jarg2) { unsigned int jresult ; Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; - Handle *argp1 ; GoUint32 result; - argp1 = (Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_JsonEncode_Handle(arg1,arg2); jresult = result; @@ -7947,15 +8736,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Progress_GetCurren unsigned int jresult ; Handle arg1 ; GoUint64 *arg2 = (GoUint64 *) 0 ; - Handle *argp1 ; GoUint32 result; - argp1 = (Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoUint64 *)jarg2; result = (GoUint32)SKY_Handle_Progress_GetCurrent(arg1,arg2); jresult = result; @@ -7967,15 +8752,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Block_GetHeadSeq(v unsigned int jresult ; Handle arg1 ; GoUint64 *arg2 = (GoUint64 *) 0 ; - Handle *argp1 ; GoUint32 result; - argp1 = (Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoUint64 *)jarg2; result = (GoUint32)SKY_Handle_Block_GetHeadSeq(arg1,arg2); jresult = result; @@ -7987,15 +8768,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Block_GetHeadHash( unsigned int jresult ; Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; - Handle *argp1 ; GoUint32 result; - argp1 = (Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_Handle_Block_GetHeadHash(arg1,arg2); jresult = result; @@ -8007,15 +8784,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Block_GetPreviousB unsigned int jresult ; Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; - Handle *argp1 ; GoUint32 result; - argp1 = (Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_Handle_Block_GetPreviousBlockHash(arg1,arg2); jresult = result; @@ -8023,22 +8796,21 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Block_GetPreviousB } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Blocks_GetAt(void * jarg1, unsigned long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Blocks_GetAt(void * jarg1, unsigned long long jarg2) { unsigned int jresult ; Handle arg1 ; GoUint64 arg2 ; Handle *arg3 = (Handle *) 0 ; - Handle *argp1 ; + Handle temp3 ; GoUint32 result; - argp1 = (Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); - return 0; + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoUint64)jarg2; - arg3 = (Handle *)jarg3; result = (GoUint32)SKY_Handle_Blocks_GetAt(arg1,arg2,arg3); jresult = result; return jresult; @@ -8049,15 +8821,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Blocks_GetCount(vo unsigned int jresult ; Handle arg1 ; GoUint64 *arg2 = (GoUint64 *) 0 ; - Handle *argp1 ; GoUint32 result; - argp1 = (Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoUint64 *)jarg2; result = (GoUint32)SKY_Handle_Blocks_GetCount(arg1,arg2); jresult = result; @@ -8069,15 +8837,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Connections_GetCou unsigned int jresult ; Handle arg1 ; GoUint64 *arg2 = (GoUint64 *) 0 ; - Handle *argp1 ; GoUint32 result; - argp1 = (Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoUint64 *)jarg2; result = (GoUint32)SKY_Handle_Connections_GetCount(arg1,arg2); jresult = result; @@ -8089,15 +8853,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Strings_GetCount(v unsigned int jresult ; Strings__Handle arg1 ; GoUint32 *arg2 = (GoUint32 *) 0 ; - Strings__Handle *argp1 ; GoUint32 result; - argp1 = (Strings__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Strings__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoUint32 *)jarg2; result = (GoUint32)SKY_Handle_Strings_GetCount(arg1,arg2); jresult = result; @@ -8108,15 +8868,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Strings_GetCount(v SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Strings_Sort(void * jarg1) { unsigned int jresult ; Strings__Handle arg1 ; - Strings__Handle *argp1 ; GoUint32 result; - argp1 = (Strings__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Strings__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; result = (GoUint32)SKY_Handle_Strings_Sort(arg1); jresult = result; return jresult; @@ -8128,15 +8884,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Strings_GetAt(void Strings__Handle arg1 ; GoInt arg2 ; GoString_ *arg3 = (GoString_ *) 0 ; - Strings__Handle *argp1 ; GoUint32 result; - argp1 = (Strings__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Strings__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoInt)jarg2; arg3 = (GoString_ *)jarg3; result = (GoUint32)SKY_Handle_Strings_GetAt(arg1,arg2,arg3); @@ -8149,15 +8901,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWall unsigned int jresult ; Client__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; - Client__Handle *argp1 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_api_Handle_Client_GetWalletDir(arg1,arg2); jresult = result; @@ -8169,15 +8917,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWall unsigned int jresult ; WalletResponse__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; - WalletResponse__Handle *argp1 ; GoUint32 result; - argp1 = (WalletResponse__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_api_Handle_Client_GetWalletFileName(arg1,arg2); jresult = result; @@ -8189,15 +8933,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWall unsigned int jresult ; WalletResponse__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; - WalletResponse__Handle *argp1 ; GoUint32 result; - argp1 = (WalletResponse__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_api_Handle_Client_GetWalletLabel(arg1,arg2); jresult = result; @@ -8210,22 +8950,14 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWall Client__Handle arg1 ; WalletResponse__Handle arg2 ; GoString_ *arg3 = (GoString_ *) 0 ; - Client__Handle *argp1 ; - WalletResponse__Handle *argp2 ; GoUint32 result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; - argp2 = (WalletResponse__Handle *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg2, (long*)&arg2); } - arg2 = *argp2; arg3 = (GoString_ *)jarg3; result = (GoUint32)SKY_api_Handle_Client_GetWalletFullPath(arg1,arg2,arg3); jresult = result; @@ -8237,15 +8969,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletMeta( unsigned int jresult ; Wallet__Handle arg1 ; GoStringMap_ *arg2 = (GoStringMap_ *) 0 ; - Wallet__Handle *argp1 ; GoUint32 result; - argp1 = (Wallet__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoStringMap_ *)jarg2; result = (GoUint32)SKY_api_Handle_GetWalletMeta(arg1,arg2); jresult = result; @@ -8257,15 +8985,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletEntri unsigned int jresult ; Wallet__Handle arg1 ; GoUint32 *arg2 = (GoUint32 *) 0 ; - Wallet__Handle *argp1 ; GoUint32 result; - argp1 = (Wallet__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoUint32 *)jarg2; result = (GoUint32)SKY_api_Handle_GetWalletEntriesCount(arg1,arg2); jresult = result; @@ -8277,15 +9001,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWall unsigned int jresult ; WalletResponse__Handle arg1 ; GoUint32 *arg2 = (GoUint32 *) 0 ; - WalletResponse__Handle *argp1 ; GoUint32 result; - argp1 = (WalletResponse__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoUint32 *)jarg2; result = (GoUint32)SKY_api_Handle_Client_GetWalletResponseEntriesCount(arg1,arg2); jresult = result; @@ -8299,15 +9019,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletGetEntry GoUint32 arg2 ; cipher__Address *arg3 = (cipher__Address *) 0 ; cipher__PubKey *arg4 = (cipher__PubKey *) 0 ; - Wallet__Handle *argp1 ; GoUint32 result; - argp1 = (Wallet__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoUint32)jarg2; arg3 = (cipher__Address *)jarg3; arg4 = (cipher__PubKey *)jarg4; @@ -8323,15 +9039,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletResponse GoUint32 arg2 ; GoString_ *arg3 = (GoString_ *) 0 ; GoString_ *arg4 = (GoString_ *) 0 ; - WalletResponse__Handle *argp1 ; GoUint32 result; - argp1 = (WalletResponse__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoUint32)jarg2; arg3 = (GoString_ *)jarg3; arg4 = (GoString_ *)jarg4; @@ -8345,15 +9057,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletResponse unsigned int jresult ; WalletResponse__Handle arg1 ; GoUint8 *arg2 = (GoUint8 *) 0 ; - WalletResponse__Handle *argp1 ; GoUint32 result; - argp1 = (WalletResponse__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoUint8 *)jarg2; result = (GoUint32)SKY_api_Handle_WalletResponseIsEncrypted(arg1,arg2); jresult = result; @@ -8365,15 +9073,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletResponse unsigned int jresult ; WalletResponse__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; - WalletResponse__Handle *argp1 ; GoUint32 result; - argp1 = (WalletResponse__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_api_Handle_WalletResponseGetCryptoType(arg1,arg2); jresult = result; @@ -8385,15 +9089,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletsRespons unsigned int jresult ; Wallets__Handle arg1 ; GoUint32 *arg2 = (GoUint32 *) 0 ; - Wallets__Handle *argp1 ; GoUint32 result; - argp1 = (Wallets__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallets__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoUint32 *)jarg2; result = (GoUint32)SKY_api_Handle_WalletsResponseGetCount(arg1,arg2); jresult = result; @@ -8406,15 +9106,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletsRespons Wallets__Handle arg1 ; GoUint32 arg2 ; WalletResponse__Handle *arg3 = (WalletResponse__Handle *) 0 ; - Wallets__Handle *argp1 ; GoUint32 result; - argp1 = (Wallets__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallets__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoUint32)jarg2; arg3 = (WalletResponse__Handle *)jarg3; result = (GoUint32)SKY_api_Handle_WalletsResponseGetAt(arg1,arg2,arg3); @@ -8427,15 +9123,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletFolde unsigned int jresult ; Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; - Handle *argp1 ; GoUint32 result; - argp1 = (Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_api_Handle_GetWalletFolderAddress(arg1,arg2); jresult = result; @@ -8447,15 +9139,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletSeed( unsigned int jresult ; Wallet__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; - Wallet__Handle *argp1 ; GoUint32 result; - argp1 = (Wallet__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_api_Handle_GetWalletSeed(arg1,arg2); jresult = result; @@ -8467,15 +9155,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletLastS unsigned int jresult ; Wallet__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; - Wallet__Handle *argp1 ; GoUint32 result; - argp1 = (Wallet__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_api_Handle_GetWalletLastSeed(arg1,arg2); jresult = result; @@ -8489,15 +9173,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetBuildInfoDa GoString_ *arg2 = (GoString_ *) 0 ; GoString_ *arg3 = (GoString_ *) 0 ; GoString_ *arg4 = (GoString_ *) 0 ; - BuildInfo_Handle *argp1 ; GoUint32 result; - argp1 = (BuildInfo_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null BuildInfo_Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoString_ *)jarg2; arg3 = (GoString_ *)jarg3; arg4 = (GoString_ *)jarg4; @@ -8591,16 +9271,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_Print( unsigned int jresult ; Number_Handle arg1 ; GoString arg2 ; - Number_Handle *argp1 ; GoString *argp2 ; GoUint32 result; - argp1 = (Number_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoString *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); @@ -8617,16 +9293,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_SetHex unsigned int jresult ; Number_Handle arg1 ; GoString arg2 ; - Number_Handle *argp1 ; GoString *argp2 ; GoUint32 result; - argp1 = (Number_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoString *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); @@ -8643,15 +9315,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_IsOdd( unsigned int jresult ; Number_Handle arg1 ; GoUint8 *arg2 = (GoUint8 *) 0 ; - Number_Handle *argp1 ; GoUint32 result; - argp1 = (Number_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoUint8 *)jarg2; result = (GoUint32)SKY_secp256k1go_Number_IsOdd(arg1,arg2); jresult = result; @@ -8664,22 +9332,14 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_IsEqua Number_Handle arg1 ; Number_Handle arg2 ; GoUint8 *arg3 = (GoUint8 *) 0 ; - Number_Handle *argp1 ; - Number_Handle *argp2 ; GoUint32 result; - argp1 = (Number_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; - argp2 = (Number_Handle *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg2, (long*)&arg2); } - arg2 = *argp2; arg3 = (GoUint8 *)jarg3; result = (GoUint32)SKY_secp256k1go_Number_IsEqual(arg1,arg2,arg3); jresult = result; @@ -9173,7 +9833,8 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_ScryptChacha20pol } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateOptionsHandle(void * jarg1, void * jarg2, void * jarg3, unsigned char jarg4, void * jarg5, void * jarg6, unsigned long long jarg7, void * jarg8) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateOptionsHandle(void * jarg1, void * jarg2, void * jarg3, unsigned char jarg4, void * jarg5, void * jarg6, unsigned long long jarg7, void * jarg8) { + unsigned int jresult ; GoString arg1 ; GoString arg2 ; GoString arg3 ; @@ -9187,41 +9848,44 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateOptionsHandle(void * GoString *argp3 ; GoString *argp5 ; GoString *argp6 ; + GoUint32 result; argp1 = (GoString *)jarg1; if (!argp1) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return ; + return 0; } arg1 = *argp1; argp2 = (GoString *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return ; + return 0; } arg2 = *argp2; argp3 = (GoString *)jarg3; if (!argp3) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return ; + return 0; } arg3 = *argp3; arg4 = (GoUint8)jarg4; argp5 = (GoString *)jarg5; if (!argp5) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return ; + return 0; } arg5 = *argp5; argp6 = (GoString *)jarg6; if (!argp6) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return ; + return 0; } arg6 = *argp6; arg7 = (GoUint64)jarg7; arg8 = (Options__Handle *)jarg8; - SKY_wallet_CreateOptionsHandle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); + result = (GoUint32)SKY_wallet_CreateOptionsHandle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); + jresult = result; + return jresult; } @@ -9229,16 +9893,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_AddPrivateKey(void * unsigned int jresult ; Wallet__Handle arg1 ; GoString arg2 ; - Wallet__Handle *argp1 ; GoString *argp2 ; GoUint32 result; - argp1 = (Wallet__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoString *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); @@ -9753,15 +10413,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_VerifyTransactionFee( unsigned int jresult ; Transaction__Handle arg1 ; GoUint64 arg2 ; - Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoUint64)jarg2; result = (GoUint32)SKY_fee_VerifyTransactionFee(arg1,arg2); jresult = result; @@ -9817,15 +10473,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_TransactionFee(void * GoUint64 arg2 ; coin__UxArray *arg3 = (coin__UxArray *) 0 ; GoUint64 *arg4 = (GoUint64 *) 0 ; - Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoUint64)jarg2; arg3 = (coin__UxArray *)jarg3; arg4 = (GoUint64 *)jarg4; @@ -9851,15 +10503,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_FullWalletPath unsigned int jresult ; Config__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; - Config__Handle *argp1 ; GoUint32 result; - argp1 = (Config__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Config__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_cli_Config_FullWalletPath(arg1,arg2); jresult = result; @@ -9871,15 +10519,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_FullDBPath(voi unsigned int jresult ; Config__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; - Config__Handle *argp1 ; GoUint32 result; - argp1 = (Config__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Config__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_cli_Config_FullDBPath(arg1,arg2); jresult = result; @@ -9891,15 +10535,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_NewApp(void * jarg1, unsigned int jresult ; Config__Handle arg1 ; App__Handle *arg2 = (App__Handle *) 0 ; - Config__Handle *argp1 ; GoUint32 result; - argp1 = (Config__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Config__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (App__Handle *)jarg2; result = (GoUint32)SKY_cli_NewApp(arg1,arg2); jresult = result; @@ -9911,15 +10551,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_RPCClientFromContext( unsigned int jresult ; Context__Handle arg1 ; WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; - Context__Handle *argp1 ; GoUint32 result; - argp1 = (Context__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Context__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (WebRpcClient__Handle *)jarg2; result = (GoUint32)SKY_cli_RPCClientFromContext(arg1,arg2); jresult = result; @@ -9931,15 +10567,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_ConfigFromContext(voi unsigned int jresult ; Context__Handle arg1 ; Config__Handle *arg2 = (Config__Handle *) 0 ; - Context__Handle *argp1 ; GoUint32 result; - argp1 = (Context__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Context__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (Config__Handle *)jarg2; result = (GoUint32)SKY_cli_ConfigFromContext(arg1,arg2); jresult = result; @@ -9981,19 +10613,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromWallet GoSlice arg4 ; PasswordReader__Handle arg5 ; Transaction__Handle *arg6 = (Transaction__Handle *) 0 ; - WebRpcClient__Handle *argp1 ; GoString *argp2 ; GoString *argp3 ; GoSlice *argp4 ; PasswordReader__Handle *argp5 ; GoUint32 result; - argp1 = (WebRpcClient__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoString *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); @@ -10034,7 +10662,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromAddres GoSlice arg5 ; PasswordReader__Handle arg6 ; Transaction__Handle *arg7 = (Transaction__Handle *) 0 ; - WebRpcClient__Handle *argp1 ; GoString *argp2 ; GoString *argp3 ; GoString *argp4 ; @@ -10042,12 +10669,9 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromAddres PasswordReader__Handle *argp6 ; GoUint32 result; - argp1 = (WebRpcClient__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoString *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); @@ -10094,26 +10718,18 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTx(void * ja GoSlice arg5 ; GoSlice arg6 ; Transaction__Handle *arg7 = (Transaction__Handle *) 0 ; - WebRpcClient__Handle *argp1 ; - Wallet__Handle *argp2 ; GoSlice *argp3 ; GoString *argp4 ; GoSlice *argp5 ; GoSlice *argp6 ; GoUint32 result; - argp1 = (WebRpcClient__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; - argp2 = (Wallet__Handle *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg2, (long*)&arg2); } - arg2 = *argp2; argp3 = (GoSlice *)jarg3; if (!argp3) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); @@ -10273,24 +10889,20 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetWalletOutputsFromF unsigned int jresult ; WebRpcClient__Handle arg1 ; GoString arg2 ; - OutputsResult_Handle *arg3 = (OutputsResult_Handle *) 0 ; - WebRpcClient__Handle *argp1 ; + ReadableOutputSet__Handle *arg3 = (ReadableOutputSet__Handle *) 0 ; GoString *argp2 ; GoUint32 result; - argp1 = (WebRpcClient__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoString *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg2 = *argp2; - arg3 = (OutputsResult_Handle *)jarg3; + arg3 = (ReadableOutputSet__Handle *)jarg3; result = (GoUint32)SKY_cli_GetWalletOutputsFromFile(arg1,arg2,arg3); jresult = result; return jresult; @@ -10301,18 +10913,14 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetWalletOutputs(void unsigned int jresult ; WebRpcClient__Handle arg1 ; Wallet__Handle *arg2 = (Wallet__Handle *) 0 ; - OutputsResult_Handle *arg3 = (OutputsResult_Handle *) 0 ; - WebRpcClient__Handle *argp1 ; + ReadableOutputSet__Handle *arg3 = (ReadableOutputSet__Handle *) 0 ; GoUint32 result; - argp1 = (WebRpcClient__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (Wallet__Handle *)jarg2; - arg3 = (OutputsResult_Handle *)jarg3; + arg3 = (ReadableOutputSet__Handle *)jarg3; result = (GoUint32)SKY_cli_GetWalletOutputs(arg1,arg2,arg3); jresult = result; return jresult; @@ -10847,28 +11455,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Merkle(void * jarg } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_MustSumSHA256(void * jarg1, long long jarg2, void * jarg3) { - unsigned int jresult ; - GoSlice arg1 ; - GoInt arg2 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoInt)jarg2; - arg3 = (cipher__SHA256 *)jarg3; - result = (GoUint32)SKY_cipher_MustSumSHA256(arg1,arg2,(GoUint8_ (*)[32])arg3); - jresult = result; - return jresult; -} - - SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Null(void * jarg1, void * jarg2) { unsigned int jresult ; cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; @@ -10899,15 +11485,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Copy(voi unsigned int jresult ; Transaction__Handle arg1 ; Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; - Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (Transaction__Handle *)jarg2; result = (GoUint32)SKY_coin_Transaction_Copy(arg1,arg2); jresult = result; @@ -10919,15 +11501,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetTransactionObject unsigned int jresult ; Transaction__Handle arg1 ; coin__Transaction **arg2 = (coin__Transaction **) 0 ; - Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (coin__Transaction **)jarg2; result = (GoUint32)SKY_coin_GetTransactionObject(arg1,arg2); jresult = result; @@ -10939,15 +11517,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_ResetInp unsigned int jresult ; Transaction__Handle arg1 ; GoInt arg2 ; - Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoInt)jarg2; result = (GoUint32)SKY_coin_Transaction_ResetInputs(arg1,arg2); jresult = result; @@ -10959,15 +11533,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetInput unsigned int jresult ; Transaction__Handle arg1 ; GoInt *arg2 = (GoInt *) 0 ; - Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoInt *)jarg2; result = (GoUint32)SKY_coin_Transaction_GetInputsCount(arg1,arg2); jresult = result; @@ -10980,15 +11550,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetInput Transaction__Handle arg1 ; GoInt arg2 ; cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoInt)jarg2; arg3 = (cipher__SHA256 *)jarg3; result = (GoUint32)SKY_coin_Transaction_GetInputAt(arg1,arg2,(GoUint8_ (*)[32])arg3); @@ -11002,15 +11568,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SetInput Transaction__Handle arg1 ; GoInt arg2 ; cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoInt)jarg2; arg3 = (cipher__SHA256 *)jarg3; result = (GoUint32)SKY_coin_Transaction_SetInputAt(arg1,arg2,(GoUint8_ (*)[32])arg3); @@ -11023,15 +11585,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetOutpu unsigned int jresult ; Transaction__Handle arg1 ; GoInt *arg2 = (GoInt *) 0 ; - Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoInt *)jarg2; result = (GoUint32)SKY_coin_Transaction_GetOutputsCount(arg1,arg2); jresult = result; @@ -11044,15 +11602,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetOutpu Transaction__Handle arg1 ; GoInt arg2 ; coin__TransactionOutput *arg3 = (coin__TransactionOutput *) 0 ; - Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoInt)jarg2; arg3 = (coin__TransactionOutput *)jarg3; result = (GoUint32)SKY_coin_Transaction_GetOutputAt(arg1,arg2,arg3); @@ -11066,15 +11620,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SetOutpu Transaction__Handle arg1 ; GoInt arg2 ; coin__TransactionOutput *arg3 = (coin__TransactionOutput *) 0 ; - Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoInt)jarg2; arg3 = (coin__TransactionOutput *)jarg3; result = (GoUint32)SKY_coin_Transaction_SetOutputAt(arg1,arg2,arg3); @@ -11087,15 +11637,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetSigna unsigned int jresult ; Transaction__Handle arg1 ; GoInt *arg2 = (GoInt *) 0 ; - Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoInt *)jarg2; result = (GoUint32)SKY_coin_Transaction_GetSignaturesCount(arg1,arg2); jresult = result; @@ -11108,15 +11654,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetSigna Transaction__Handle arg1 ; GoInt arg2 ; cipher__Sig *arg3 = (cipher__Sig *) 0 ; - Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoInt)jarg2; arg3 = (cipher__Sig *)jarg3; result = (GoUint32)SKY_coin_Transaction_GetSignatureAt(arg1,arg2,(GoUint8_ (*)[65])arg3); @@ -11130,15 +11672,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SetSigna Transaction__Handle arg1 ; GoInt arg2 ; cipher__Sig *arg3 = (cipher__Sig *) 0 ; - Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoInt)jarg2; arg3 = (cipher__Sig *)jarg3; result = (GoUint32)SKY_coin_Transaction_SetSignatureAt(arg1,arg2,(GoUint8_ (*)[65])arg3); @@ -11151,15 +11689,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_PushSign unsigned int jresult ; Transaction__Handle arg1 ; cipher__Sig *arg2 = (cipher__Sig *) 0 ; - Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (cipher__Sig *)jarg2; result = (GoUint32)SKY_coin_Transaction_PushSignature(arg1,(GoUint8_ (*)[65])arg2); jresult = result; @@ -11171,15 +11705,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_ResetOut unsigned int jresult ; Transaction__Handle arg1 ; GoInt arg2 ; - Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoInt)jarg2; result = (GoUint32)SKY_coin_Transaction_ResetOutputs(arg1,arg2); jresult = result; @@ -11191,15 +11721,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_ResetSig unsigned int jresult ; Transaction__Handle arg1 ; GoInt arg2 ; - Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoInt)jarg2; result = (GoUint32)SKY_coin_Transaction_ResetSignatures(arg1,arg2); jresult = result; @@ -11210,15 +11736,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_ResetSig SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Verify(void * jarg1) { unsigned int jresult ; Transaction__Handle arg1 ; - Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; result = (GoUint32)SKY_coin_Transaction_Verify(arg1); jresult = result; return jresult; @@ -11229,15 +11751,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_VerifyIn unsigned int jresult ; Transaction__Handle arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; - Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (coin__UxArray *)jarg2; result = (GoUint32)SKY_coin_Transaction_VerifyInput(arg1,arg2); jresult = result; @@ -11250,15 +11768,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_PushInpu Transaction__Handle arg1 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; GoUint16 *arg3 = (GoUint16 *) 0 ; - Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (cipher__SHA256 *)jarg2; arg3 = (GoUint16 *)jarg3; result = (GoUint32)SKY_coin_Transaction_PushInput(arg1,(GoUint8_ (*)[32])arg2,arg3); @@ -11289,15 +11803,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_PushOutp cipher__Address *arg2 = (cipher__Address *) 0 ; GoUint64 arg3 ; GoUint64 arg4 ; - Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (cipher__Address *)jarg2; arg3 = (GoUint64)jarg3; arg4 = (GoUint64)jarg4; @@ -11311,16 +11821,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SignInpu unsigned int jresult ; Transaction__Handle arg1 ; GoSlice arg2 ; - Transaction__Handle *argp1 ; GoSlice *argp2 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); @@ -11337,15 +11843,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Size(voi unsigned int jresult ; Transaction__Handle arg1 ; GoInt *arg2 = (GoInt *) 0 ; - Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoInt *)jarg2; result = (GoUint32)SKY_coin_Transaction_Size(arg1,arg2); jresult = result; @@ -11357,15 +11859,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Hash(voi unsigned int jresult ; Transaction__Handle arg1 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (cipher__SHA256 *)jarg2; result = (GoUint32)SKY_coin_Transaction_Hash(arg1,(GoUint8_ (*)[32])arg2); jresult = result; @@ -11378,15 +11876,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SizeHash Transaction__Handle arg1 ; GoInt *arg2 = (GoInt *) 0 ; cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoInt *)jarg2; arg3 = (cipher__SHA256 *)jarg3; result = (GoUint32)SKY_coin_Transaction_SizeHash(arg1,arg2,(GoUint8_ (*)[32])arg3); @@ -11399,15 +11893,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_TxID(voi unsigned int jresult ; Transaction__Handle arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; - Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (coin__UxArray *)jarg2; result = (GoUint32)SKY_coin_Transaction_TxID(arg1,arg2); jresult = result; @@ -11419,15 +11909,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_TxIDHex( unsigned int jresult ; Transaction__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; - Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_coin_Transaction_TxIDHex(arg1,arg2); jresult = result; @@ -11438,15 +11924,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_TxIDHex( SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_UpdateHeader(void * jarg1) { unsigned int jresult ; Transaction__Handle arg1 ; - Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; result = (GoUint32)SKY_coin_Transaction_UpdateHeader(arg1); jresult = result; return jresult; @@ -11457,15 +11939,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_HashInne unsigned int jresult ; Transaction__Handle arg1 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (cipher__SHA256 *)jarg2; result = (GoUint32)SKY_coin_Transaction_HashInner(arg1,(GoUint8_ (*)[32])arg2); jresult = result; @@ -11477,15 +11955,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Serializ unsigned int jresult ; Transaction__Handle arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; - Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (coin__UxArray *)jarg2; result = (GoUint32)SKY_coin_Transaction_Serialize(arg1,arg2); jresult = result; @@ -11493,26 +11967,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Serializ } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_MustTransactionDeserialize(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (Transaction__Handle *)jarg2; - result = (GoUint32)SKY_coin_MustTransactionDeserialize(arg1,arg2); - jresult = result; - return jresult; -} - - SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_TransactionDeserialize(void * jarg1, void * jarg2) { unsigned int jresult ; GoSlice arg1 ; @@ -11537,15 +11991,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_OutputHo unsigned int jresult ; Transaction__Handle arg1 ; GoUint64 *arg2 = (GoUint64 *) 0 ; - Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoUint64 *)jarg2; result = (GoUint32)SKY_coin_Transaction_OutputHours(arg1,arg2); jresult = result; @@ -11569,15 +12019,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetTransactionsObjec unsigned int jresult ; Transactions__Handle arg1 ; coin__UxArray **arg2 = (coin__UxArray **) 0 ; - Transactions__Handle *argp1 ; GoUint32 result; - argp1 = (Transactions__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (coin__UxArray **)jarg2; result = (GoUint32)SKY_coin_GetTransactionsObject(arg1,arg2); jresult = result; @@ -11589,15 +12035,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Length( unsigned int jresult ; Transactions__Handle arg1 ; GoInt *arg2 = (GoInt *) 0 ; - Transactions__Handle *argp1 ; GoUint32 result; - argp1 = (Transactions__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoInt *)jarg2; result = (GoUint32)SKY_coin_Transactions_Length(arg1,arg2); jresult = result; @@ -11609,22 +12051,14 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Add(voi unsigned int jresult ; Transactions__Handle arg1 ; Transaction__Handle arg2 ; - Transactions__Handle *argp1 ; - Transaction__Handle *argp2 ; GoUint32 result; - argp1 = (Transactions__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; - argp2 = (Transaction__Handle *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg2, (long*)&arg2); } - arg2 = *argp2; result = (GoUint32)SKY_coin_Transactions_Add(arg1,arg2); jresult = result; return jresult; @@ -11636,15 +12070,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Fees(vo Transactions__Handle arg1 ; FeeCalculator *arg2 = (FeeCalculator *) 0 ; GoUint64 *arg3 = (GoUint64 *) 0 ; - Transactions__Handle *argp1 ; GoUint32 result; - argp1 = (Transactions__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (FeeCalculator *)jarg2; arg3 = (GoUint64 *)jarg3; result = (GoUint32)SKY_coin_Transactions_Fees(arg1,arg2,arg3); @@ -11658,15 +12088,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_GetAt(v Transactions__Handle arg1 ; GoInt arg2 ; Transaction__Handle *arg3 = (Transaction__Handle *) 0 ; - Transactions__Handle *argp1 ; GoUint32 result; - argp1 = (Transactions__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoInt)jarg2; arg3 = (Transaction__Handle *)jarg3; result = (GoUint32)SKY_coin_Transactions_GetAt(arg1,arg2,arg3); @@ -11679,15 +12105,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Hashes( unsigned int jresult ; Transactions__Handle arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; - Transactions__Handle *argp1 ; GoUint32 result; - argp1 = (Transactions__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (coin__UxArray *)jarg2; result = (GoUint32)SKY_coin_Transactions_Hashes(arg1,arg2); jresult = result; @@ -11699,15 +12121,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Size(vo unsigned int jresult ; Transactions__Handle arg1 ; GoInt *arg2 = (GoInt *) 0 ; - Transactions__Handle *argp1 ; GoUint32 result; - argp1 = (Transactions__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoInt *)jarg2; result = (GoUint32)SKY_coin_Transactions_Size(arg1,arg2); jresult = result; @@ -11720,15 +12138,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Truncat Transactions__Handle arg1 ; GoInt arg2 ; Transactions__Handle *arg3 = (Transactions__Handle *) 0 ; - Transactions__Handle *argp1 ; GoUint32 result; - argp1 = (Transactions__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoInt)jarg2; arg3 = (Transactions__Handle *)jarg3; result = (GoUint32)SKY_coin_Transactions_TruncateBytesTo(arg1,arg2,arg3); @@ -11742,15 +12156,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortTransactions(voi Transactions__Handle arg1 ; FeeCalculator *arg2 = (FeeCalculator *) 0 ; Transactions__Handle *arg3 = (Transactions__Handle *) 0 ; - Transactions__Handle *argp1 ; GoUint32 result; - argp1 = (Transactions__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (FeeCalculator *)jarg2; arg3 = (Transactions__Handle *)jarg3; result = (GoUint32)SKY_coin_SortTransactions(arg1,arg2,arg3); @@ -11764,15 +12174,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewSortableTransacti Transactions__Handle arg1 ; FeeCalculator *arg2 = (FeeCalculator *) 0 ; SortableTransactionResult_Handle *arg3 = (SortableTransactionResult_Handle *) 0 ; - Transactions__Handle *argp1 ; GoUint32 result; - argp1 = (Transactions__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (FeeCalculator *)jarg2; arg3 = (SortableTransactionResult_Handle *)jarg3; result = (GoUint32)SKY_coin_NewSortableTransactions(arg1,arg2,arg3); diff --git a/LibskycoinNet/skycoin1/GoInterface.cs b/LibskycoinNet/skycoin1/GoInterface.cs new file mode 100644 index 00000000..6c3f46c1 --- /dev/null +++ b/LibskycoinNet/skycoin1/GoInterface.cs @@ -0,0 +1,70 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class GoInterface : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal GoInterface(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(GoInterface obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~GoInterface() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_GoInterface(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_void t { + set { + skycoinPINVOKE.GoInterface_t_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.GoInterface_t_get(swigCPtr); + SWIGTYPE_p_void ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_void v { + set { + skycoinPINVOKE.GoInterface_v_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.GoInterface_v_get(swigCPtr); + SWIGTYPE_p_void ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + } + + public GoInterface() : this(skycoinPINVOKE.new_GoInterface(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin1/GoSlice.cs b/LibskycoinNet/skycoin1/GoSlice.cs new file mode 100644 index 00000000..d0d23f9d --- /dev/null +++ b/LibskycoinNet/skycoin1/GoSlice.cs @@ -0,0 +1,79 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class GoSlice : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal GoSlice(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(GoSlice obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~GoSlice() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_GoSlice(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_void data { + set { + skycoinPINVOKE.GoSlice_data_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.GoSlice_data_get(swigCPtr); + SWIGTYPE_p_void ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + } + + public long len { + set { + skycoinPINVOKE.GoSlice_len_set(swigCPtr, value); + } + get { + long ret = skycoinPINVOKE.GoSlice_len_get(swigCPtr); + return ret; + } + } + + public long cap { + set { + skycoinPINVOKE.GoSlice_cap_set(swigCPtr, value); + } + get { + long ret = skycoinPINVOKE.GoSlice_cap_get(swigCPtr); + return ret; + } + } + + public GoSlice() : this(skycoinPINVOKE.new_GoSlice(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_AddressUxOuts_Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_AddressUxOuts_Handle.cs new file mode 100644 index 00000000..e516001f --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_AddressUxOuts_Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_AddressUxOuts_Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_AddressUxOuts_Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_AddressUxOuts_Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_AddressUxOuts_Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_App__Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_App__Handle.cs new file mode 100644 index 00000000..ff1a432f --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_App__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_App__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_App__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_App__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_App__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_BOOL.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_BOOL.cs new file mode 100644 index 00000000..bd909667 --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_BOOL.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_BOOL { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_BOOL(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_BOOL() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_BOOL obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_BalanceResult_Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_BalanceResult_Handle.cs new file mode 100644 index 00000000..7fed0386 --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_BalanceResult_Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_BalanceResult_Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_BalanceResult_Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_BalanceResult_Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_BalanceResult_Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_BlockBody__Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_BlockBody__Handle.cs new file mode 100644 index 00000000..d074a103 --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_BlockBody__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_BlockBody__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_BlockBody__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_BlockBody__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_BlockBody__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_Block__Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_Block__Handle.cs new file mode 100644 index 00000000..a48c533f --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_Block__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_Block__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_Block__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_Block__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Block__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_BuildInfo_Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_BuildInfo_Handle.cs new file mode 100644 index 00000000..b97ebbcb --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_BuildInfo_Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_BuildInfo_Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_BuildInfo_Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_BuildInfo_Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_BuildInfo_Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_Client__Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_Client__Handle.cs new file mode 100644 index 00000000..21dee0c7 --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_Client__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_Client__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_Client__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_Client__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Client__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_Config__Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_Config__Handle.cs new file mode 100644 index 00000000..50cc120d --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_Config__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_Config__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_Config__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_Config__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Config__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_Context__Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_Context__Handle.cs new file mode 100644 index 00000000..f8f29831 --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_Context__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_Context__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_Context__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_Context__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Context__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_CreateTransactionResponse__Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_CreateTransactionResponse__Handle.cs new file mode 100644 index 00000000..6198a1da --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_CreateTransactionResponse__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_CreateTransactionResponse__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_CreateTransactionResponse__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_CreateTransactionResponse__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_CreateTransactionResponse__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_CreatedTransactionInput__Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_CreatedTransactionInput__Handle.cs new file mode 100644 index 00000000..f27373fc --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_CreatedTransactionInput__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_CreatedTransactionInput__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_CreatedTransactionInput__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_CreatedTransactionInput__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_CreatedTransactionInput__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_CreatedTransactionOutput__Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_CreatedTransactionOutput__Handle.cs new file mode 100644 index 00000000..592e5b9e --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_CreatedTransactionOutput__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_CreatedTransactionOutput__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_CreatedTransactionOutput__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_CreatedTransactionOutput__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_CreatedTransactionOutput__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_CreatedTransaction__Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_CreatedTransaction__Handle.cs new file mode 100644 index 00000000..9482fe6e --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_CreatedTransaction__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_CreatedTransaction__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_CreatedTransaction__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_CreatedTransaction__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_CreatedTransaction__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_FeeCalculator.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_FeeCalculator.cs new file mode 100644 index 00000000..96b48383 --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_FeeCalculator.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_FeeCalculator { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_FeeCalculator(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_FeeCalculator() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_FeeCalculator obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_GoInt32_.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_GoInt32_.cs new file mode 100644 index 00000000..7ef9e109 --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_GoInt32_.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_GoInt32_ { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_GoInt32_(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_GoInt32_() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_GoInt32_ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_GoInt64_.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_GoInt64_.cs new file mode 100644 index 00000000..e9aa1c63 --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_GoInt64_.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_GoInt64_ { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_GoInt64_(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_GoInt64_() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_GoInt64_ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_GoInt8_.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_GoInt8_.cs new file mode 100644 index 00000000..e2c73313 --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_GoInt8_.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_GoInt8_ { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_GoInt8_(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_GoInt8_() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_GoInt8_ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_GoInt_.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_GoInt_.cs new file mode 100644 index 00000000..31a900ee --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_GoInt_.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_GoInt_ { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_GoInt_(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_GoInt_() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_GoInt_ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_GoMap_.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_GoMap_.cs new file mode 100644 index 00000000..cbdd11ac --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_GoMap_.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_GoMap_ { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_GoMap_(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_GoMap_() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_GoMap_ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_GoSlice_.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_GoSlice_.cs new file mode 100644 index 00000000..1baac701 --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_GoSlice_.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_GoSlice_ { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_GoSlice_(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_GoSlice_() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_GoSlice_ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_GoStringMap_.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_GoStringMap_.cs new file mode 100644 index 00000000..3c6416e4 --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_GoStringMap_.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_GoStringMap_ { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_GoStringMap_(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_GoStringMap_() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_GoStringMap_ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_GoString_.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_GoString_.cs new file mode 100644 index 00000000..465712d7 --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_GoString_.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_GoString_ { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_GoString_(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_GoString_() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_GoString_ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_GoUint32_.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_GoUint32_.cs new file mode 100644 index 00000000..c74ace3b --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_GoUint32_.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_GoUint32_ { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_GoUint32_(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_GoUint32_() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_GoUint32_ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_GoUint64_.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_GoUint64_.cs new file mode 100644 index 00000000..88aa2bb4 --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_GoUint64_.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_GoUint64_ { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_GoUint64_(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_GoUint64_() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_GoUint64_ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_GoUint8_.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_GoUint8_.cs new file mode 100644 index 00000000..b51d2ca0 --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_GoUint8_.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_GoUint8_ { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_GoUint8_(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_GoUint8_() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_GoUint8_ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_Handle.cs new file mode 100644 index 00000000..e23cb818 --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_Hash_Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_Hash_Handle.cs new file mode 100644 index 00000000..0e5a2b34 --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_Hash_Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_Hash_Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_Hash_Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_Hash_Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Hash_Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_Number_Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_Number_Handle.cs new file mode 100644 index 00000000..ada6d62a --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_Number_Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_Number_Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_Number_Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_Number_Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Number_Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_Options__Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_Options__Handle.cs new file mode 100644 index 00000000..860d732e --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_Options__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_Options__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_Options__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_Options__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Options__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_OutputsResult_Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_OutputsResult_Handle.cs similarity index 100% rename from LibskycoinNet/skycoin/SWIGTYPE_p_OutputsResult_Handle.cs rename to LibskycoinNet/skycoin1/SWIGTYPE_p_OutputsResult_Handle.cs diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_PasswordReader__Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_PasswordReader__Handle.cs new file mode 100644 index 00000000..3dcc2483 --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_PasswordReader__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_PasswordReader__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_PasswordReader__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_PasswordReader__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_PasswordReader__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_ReadableEntry__Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_ReadableEntry__Handle.cs new file mode 100644 index 00000000..719734ec --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_ReadableEntry__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_ReadableEntry__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_ReadableEntry__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_ReadableEntry__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_ReadableEntry__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_ReadableOutputSet__Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_ReadableOutputSet__Handle.cs new file mode 100644 index 00000000..c01b8b93 --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_ReadableOutputSet__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_ReadableOutputSet__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_ReadableOutputSet__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_ReadableOutputSet__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_ReadableOutputSet__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_ReadableWallet__Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_ReadableWallet__Handle.cs new file mode 100644 index 00000000..c8417273 --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_ReadableWallet__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_ReadableWallet__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_ReadableWallet__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_ReadableWallet__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_ReadableWallet__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_Signature_Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_Signature_Handle.cs new file mode 100644 index 00000000..572ca68e --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_Signature_Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_Signature_Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_Signature_Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_Signature_Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Signature_Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_SortableTransactionResult_Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_SortableTransactionResult_Handle.cs new file mode 100644 index 00000000..a2516295 --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_SortableTransactionResult_Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_SortableTransactionResult_Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_SortableTransactionResult_Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_SortableTransactionResult_Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_SortableTransactionResult_Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_SpendResult_Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_SpendResult_Handle.cs new file mode 100644 index 00000000..7d1f0494 --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_SpendResult_Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_SpendResult_Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_SpendResult_Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_SpendResult_Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_SpendResult_Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_StatusResult_Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_StatusResult_Handle.cs new file mode 100644 index 00000000..b4a99547 --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_StatusResult_Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_StatusResult_Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_StatusResult_Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_StatusResult_Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_StatusResult_Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_Strings__Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_Strings__Handle.cs new file mode 100644 index 00000000..24d6077a --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_Strings__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_Strings__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_Strings__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_Strings__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Strings__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_TransactionResult_Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_TransactionResult_Handle.cs new file mode 100644 index 00000000..21b9b665 --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_TransactionResult_Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_TransactionResult_Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_TransactionResult_Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_TransactionResult_Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_TransactionResult_Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_Transaction__Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_Transaction__Handle.cs new file mode 100644 index 00000000..1d23f647 --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_Transaction__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_Transaction__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_Transaction__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_Transaction__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Transaction__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_Transactions__Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_Transactions__Handle.cs new file mode 100644 index 00000000..0f9acbd5 --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_Transactions__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_Transactions__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_Transactions__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_Transactions__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Transactions__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_WalletNotes_Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_WalletNotes_Handle.cs similarity index 100% rename from LibskycoinNet/skycoin/SWIGTYPE_p_WalletNotes_Handle.cs rename to LibskycoinNet/skycoin1/SWIGTYPE_p_WalletNotes_Handle.cs diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_WalletReadableNotes_Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_WalletReadableNotes_Handle.cs similarity index 100% rename from LibskycoinNet/skycoin/SWIGTYPE_p_WalletReadableNotes_Handle.cs rename to LibskycoinNet/skycoin1/SWIGTYPE_p_WalletReadableNotes_Handle.cs diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_WalletResponse__Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_WalletResponse__Handle.cs new file mode 100644 index 00000000..800aa5c8 --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_WalletResponse__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_WalletResponse__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_WalletResponse__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_WalletResponse__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_WalletResponse__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_Wallet__Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_Wallet__Handle.cs new file mode 100644 index 00000000..0ca53bbc --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_Wallet__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_Wallet__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_Wallet__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_Wallet__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Wallet__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_Wallets__Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_Wallets__Handle.cs new file mode 100644 index 00000000..74cbd0ab --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_Wallets__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_Wallets__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_Wallets__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_Wallets__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Wallets__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_WebRpcClient__Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_WebRpcClient__Handle.cs new file mode 100644 index 00000000..5758eb23 --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_WebRpcClient__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_WebRpcClient__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_WebRpcClient__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_WebRpcClient__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_WebRpcClient__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_a_20__GoUint8_.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_a_20__GoUint8_.cs new file mode 100644 index 00000000..1d90b1fc --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_a_20__GoUint8_.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_a_20__GoUint8_ { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_a_20__GoUint8_(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_a_20__GoUint8_() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_a_20__GoUint8_ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_a_20__unsigned_char.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_a_20__unsigned_char.cs new file mode 100644 index 00000000..a7ac283c --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_a_20__unsigned_char.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_a_20__unsigned_char { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_a_20__unsigned_char(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_a_20__unsigned_char() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_a_20__unsigned_char obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_a_32__GoUint8_.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_a_32__GoUint8_.cs new file mode 100644 index 00000000..31785e54 --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_a_32__GoUint8_.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_a_32__GoUint8_ { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_a_32__GoUint8_(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_a_32__GoUint8_() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_a_32__GoUint8_ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_a_32__unsigned_char.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_a_32__unsigned_char.cs new file mode 100644 index 00000000..6832b2c8 --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_a_32__unsigned_char.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_a_32__unsigned_char { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_a_32__unsigned_char(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_a_32__unsigned_char() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_a_32__unsigned_char obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_a_33__GoUint8_.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_a_33__GoUint8_.cs new file mode 100644 index 00000000..53b8410d --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_a_33__GoUint8_.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_a_33__GoUint8_ { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_a_33__GoUint8_(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_a_33__GoUint8_() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_a_33__GoUint8_ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_a_33__unsigned_char.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_a_33__unsigned_char.cs new file mode 100644 index 00000000..318d8697 --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_a_33__unsigned_char.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_a_33__unsigned_char { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_a_33__unsigned_char(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_a_33__unsigned_char() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_a_33__unsigned_char obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_a_4__GoUint8_.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_a_4__GoUint8_.cs new file mode 100644 index 00000000..876a246f --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_a_4__GoUint8_.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_a_4__GoUint8_ { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_a_4__GoUint8_(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_a_4__GoUint8_() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_a_4__GoUint8_ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_a_4__unsigned_char.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_a_4__unsigned_char.cs new file mode 100644 index 00000000..0adc706b --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_a_4__unsigned_char.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_a_4__unsigned_char { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_a_4__unsigned_char(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_a_4__unsigned_char() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_a_4__unsigned_char obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_a_65__GoUint8_.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_a_65__GoUint8_.cs new file mode 100644 index 00000000..478f2206 --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_a_65__GoUint8_.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_a_65__GoUint8_ { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_a_65__GoUint8_(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_a_65__GoUint8_() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_a_65__GoUint8_ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_a_65__unsigned_char.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_a_65__unsigned_char.cs new file mode 100644 index 00000000..b8a8cc82 --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_a_65__unsigned_char.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_a_65__unsigned_char { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_a_65__unsigned_char(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_a_65__unsigned_char() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_a_65__unsigned_char obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_cipher_PubKeyint.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_cipher_PubKeyint.cs new file mode 100644 index 00000000..6bee3a25 --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_cipher_PubKeyint.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_cipher_PubKeyint { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_cipher_PubKeyint(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_cipher_PubKeyint() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_cipher_PubKeyint obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_int.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_int.cs new file mode 100644 index 00000000..d8b0dd29 --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_int.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_int { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_int(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_int() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_int obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_long_long.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_long_long.cs new file mode 100644 index 00000000..e61be3d8 --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_long_long.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_long_long { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_long_long(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_long_long() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_long_long obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_p_GoSlice_.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_p_GoSlice_.cs new file mode 100644 index 00000000..d1ee7548 --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_p_GoSlice_.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_p_GoSlice_ { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_p_GoSlice_(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_GoSlice_() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_p_GoSlice_ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_p_coin__Block.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_p_coin__Block.cs new file mode 100644 index 00000000..42843ea3 --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_p_coin__Block.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_p_coin__Block { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_p_coin__Block(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_coin__Block() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_p_coin__Block obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_p_coin__Transaction.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_p_coin__Transaction.cs new file mode 100644 index 00000000..6b055d2d --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_p_coin__Transaction.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_p_coin__Transaction { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_p_coin__Transaction(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_coin__Transaction() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_p_coin__Transaction obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_ptrdiff_t.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_ptrdiff_t.cs new file mode 100644 index 00000000..a2d0da0b --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_ptrdiff_t.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_ptrdiff_t { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_ptrdiff_t(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_ptrdiff_t() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_ptrdiff_t obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_unsigned_char.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_unsigned_char.cs new file mode 100644 index 00000000..01c281d9 --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_unsigned_char.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_unsigned_char { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_unsigned_char(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_unsigned_char() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_unsigned_char obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_unsigned_int.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_unsigned_int.cs new file mode 100644 index 00000000..ddd31977 --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_unsigned_int.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_unsigned_int { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_unsigned_int(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_unsigned_int() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_unsigned_int obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_unsigned_long_long.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_unsigned_long_long.cs new file mode 100644 index 00000000..7a44b6fc --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_unsigned_long_long.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_unsigned_long_long { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_unsigned_long_long(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_unsigned_long_long() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_unsigned_long_long obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_unsigned_short.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_unsigned_short.cs new file mode 100644 index 00000000..ff9b269b --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_unsigned_short.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_unsigned_short { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_unsigned_short(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_unsigned_short() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_unsigned_short obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_void.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_void.cs new file mode 100644 index 00000000..6b683d89 --- /dev/null +++ b/LibskycoinNet/skycoin1/SWIGTYPE_p_void.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_void { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_void(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_void() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_void obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/_GoString_.cs b/LibskycoinNet/skycoin1/_GoString_.cs new file mode 100644 index 00000000..2c9d87b3 --- /dev/null +++ b/LibskycoinNet/skycoin1/_GoString_.cs @@ -0,0 +1,70 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class _GoString_ : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal _GoString_(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(_GoString_ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~_GoString_() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete__GoString_(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public string p { + set { + skycoinPINVOKE._GoString__p_set(swigCPtr, value); + } + get { + string ret = skycoinPINVOKE._GoString__p_get(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_ptrdiff_t n { + set { + skycoinPINVOKE._GoString__n_set(swigCPtr, SWIGTYPE_p_ptrdiff_t.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_ptrdiff_t ret = new SWIGTYPE_p_ptrdiff_t(skycoinPINVOKE._GoString__n_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public _GoString_() : this(skycoinPINVOKE.new__GoString_(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin1/api__RichlistParams.cs b/LibskycoinNet/skycoin1/api__RichlistParams.cs new file mode 100644 index 00000000..7d036643 --- /dev/null +++ b/LibskycoinNet/skycoin1/api__RichlistParams.cs @@ -0,0 +1,72 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class api__RichlistParams : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal api__RichlistParams(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(api__RichlistParams obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~api__RichlistParams() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_api__RichlistParams(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_GoInt_ N { + set { + skycoinPINVOKE.api__RichlistParams_N_set(swigCPtr, SWIGTYPE_p_GoInt_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoInt_ ret = new SWIGTYPE_p_GoInt_(skycoinPINVOKE.api__RichlistParams_N_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_BOOL IncludeDistribution { + set { + skycoinPINVOKE.api__RichlistParams_IncludeDistribution_set(swigCPtr, SWIGTYPE_p_BOOL.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_BOOL ret = new SWIGTYPE_p_BOOL(skycoinPINVOKE.api__RichlistParams_IncludeDistribution_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public api__RichlistParams() : this(skycoinPINVOKE.new_api__RichlistParams(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin1/cipher_Addresses.cs b/LibskycoinNet/skycoin1/cipher_Addresses.cs new file mode 100644 index 00000000..16368271 --- /dev/null +++ b/LibskycoinNet/skycoin1/cipher_Addresses.cs @@ -0,0 +1,69 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class cipher_Addresses : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal cipher_Addresses(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(cipher_Addresses obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~cipher_Addresses() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_cipher_Addresses(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public cipher__Address data { + set { + skycoinPINVOKE.cipher_Addresses_data_set(swigCPtr, cipher__Address.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.cipher_Addresses_data_get(swigCPtr); + cipher__Address ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher__Address(cPtr, false); + return ret; + } + } + + public int count { + set { + skycoinPINVOKE.cipher_Addresses_count_set(swigCPtr, value); + } + get { + int ret = skycoinPINVOKE.cipher_Addresses_count_get(swigCPtr); + return ret; + } + } + + public cipher_Addresses() : this(skycoinPINVOKE.new_cipher_Addresses(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin1/cipher_Checksum.cs b/LibskycoinNet/skycoin1/cipher_Checksum.cs new file mode 100644 index 00000000..35260312 --- /dev/null +++ b/LibskycoinNet/skycoin1/cipher_Checksum.cs @@ -0,0 +1,72 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class cipher_Checksum : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal cipher_Checksum(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(cipher_Checksum obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~cipher_Checksum() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_cipher_Checksum(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public int isEqual(cipher_Checksum a) { + int ret = skycoinPINVOKE.cipher_Checksum_isEqual(swigCPtr, cipher_Checksum.getCPtr(a)); + return ret; + } + + public void assignFrom(SWIGTYPE_p_void data) { + skycoinPINVOKE.cipher_Checksum_assignFrom(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); + } + + public void assignTo(SWIGTYPE_p_void data) { + skycoinPINVOKE.cipher_Checksum_assignTo(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); + } + + public SWIGTYPE_p_unsigned_char data { + set { + skycoinPINVOKE.cipher_Checksum_data_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.cipher_Checksum_data_get(swigCPtr); + SWIGTYPE_p_unsigned_char ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); + return ret; + } + } + + public cipher_Checksum() : this(skycoinPINVOKE.new_cipher_Checksum(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin1/cipher_PubKey.cs b/LibskycoinNet/skycoin1/cipher_PubKey.cs new file mode 100644 index 00000000..d640f7e8 --- /dev/null +++ b/LibskycoinNet/skycoin1/cipher_PubKey.cs @@ -0,0 +1,72 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class cipher_PubKey : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal cipher_PubKey(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(cipher_PubKey obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~cipher_PubKey() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_cipher_PubKey(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public int isEqual(cipher_PubKey a) { + int ret = skycoinPINVOKE.cipher_PubKey_isEqual(swigCPtr, cipher_PubKey.getCPtr(a)); + return ret; + } + + public void assignFrom(SWIGTYPE_p_void data) { + skycoinPINVOKE.cipher_PubKey_assignFrom(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); + } + + public void assignTo(SWIGTYPE_p_void data) { + skycoinPINVOKE.cipher_PubKey_assignTo(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); + } + + public SWIGTYPE_p_unsigned_char data { + set { + skycoinPINVOKE.cipher_PubKey_data_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.cipher_PubKey_data_get(swigCPtr); + SWIGTYPE_p_unsigned_char ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); + return ret; + } + } + + public cipher_PubKey() : this(skycoinPINVOKE.new_cipher_PubKey(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin1/cipher_PubKeys.cs b/LibskycoinNet/skycoin1/cipher_PubKeys.cs new file mode 100644 index 00000000..0586b5c8 --- /dev/null +++ b/LibskycoinNet/skycoin1/cipher_PubKeys.cs @@ -0,0 +1,93 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class cipher_PubKeys : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal cipher_PubKeys(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(cipher_PubKeys obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~cipher_PubKeys() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_cipher_PubKeys(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public cipher_PubKey getAt(int i) { + global::System.IntPtr cPtr = skycoinPINVOKE.cipher_PubKeys_getAt(swigCPtr, i); + cipher_PubKey ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher_PubKey(cPtr, false); + return ret; + } + + public int setAt(int i, cipher_PubKey pubkey) { + int ret = skycoinPINVOKE.cipher_PubKeys_setAt(swigCPtr, i, cipher_PubKey.getCPtr(pubkey)); + return ret; + } + + public int isEqual(cipher_PubKeys a) { + int ret = skycoinPINVOKE.cipher_PubKeys_isEqual(swigCPtr, cipher_PubKeys.getCPtr(a)); + return ret; + } + + public void allocate(int n) { + skycoinPINVOKE.cipher_PubKeys_allocate(swigCPtr, n); + } + + public void release() { + skycoinPINVOKE.cipher_PubKeys_release(swigCPtr); + } + + public cipher_PubKey data { + set { + skycoinPINVOKE.cipher_PubKeys_data_set(swigCPtr, cipher_PubKey.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.cipher_PubKeys_data_get(swigCPtr); + cipher_PubKey ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher_PubKey(cPtr, false); + return ret; + } + } + + public int count { + set { + skycoinPINVOKE.cipher_PubKeys_count_set(swigCPtr, value); + } + get { + int ret = skycoinPINVOKE.cipher_PubKeys_count_get(swigCPtr); + return ret; + } + } + + public cipher_PubKeys() : this(skycoinPINVOKE.new_cipher_PubKeys(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin1/cipher_Ripemd160.cs b/LibskycoinNet/skycoin1/cipher_Ripemd160.cs new file mode 100644 index 00000000..39490c60 --- /dev/null +++ b/LibskycoinNet/skycoin1/cipher_Ripemd160.cs @@ -0,0 +1,72 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class cipher_Ripemd160 : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal cipher_Ripemd160(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(cipher_Ripemd160 obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~cipher_Ripemd160() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_cipher_Ripemd160(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public int isEqual(cipher_Ripemd160 a) { + int ret = skycoinPINVOKE.cipher_Ripemd160_isEqual(swigCPtr, cipher_Ripemd160.getCPtr(a)); + return ret; + } + + public void assignFrom(SWIGTYPE_p_void data) { + skycoinPINVOKE.cipher_Ripemd160_assignFrom(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); + } + + public void assignTo(SWIGTYPE_p_void data) { + skycoinPINVOKE.cipher_Ripemd160_assignTo(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); + } + + public SWIGTYPE_p_unsigned_char data { + set { + skycoinPINVOKE.cipher_Ripemd160_data_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.cipher_Ripemd160_data_get(swigCPtr); + SWIGTYPE_p_unsigned_char ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); + return ret; + } + } + + public cipher_Ripemd160() : this(skycoinPINVOKE.new_cipher_Ripemd160(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin1/cipher_SHA256.cs b/LibskycoinNet/skycoin1/cipher_SHA256.cs new file mode 100644 index 00000000..0bf1631b --- /dev/null +++ b/LibskycoinNet/skycoin1/cipher_SHA256.cs @@ -0,0 +1,72 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class cipher_SHA256 : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal cipher_SHA256(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(cipher_SHA256 obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~cipher_SHA256() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_cipher_SHA256(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public int isEqual(cipher_SHA256 a) { + int ret = skycoinPINVOKE.cipher_SHA256_isEqual(swigCPtr, cipher_SHA256.getCPtr(a)); + return ret; + } + + public void assignFrom(SWIGTYPE_p_void data) { + skycoinPINVOKE.cipher_SHA256_assignFrom(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); + } + + public void assignTo(SWIGTYPE_p_void data) { + skycoinPINVOKE.cipher_SHA256_assignTo(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); + } + + public SWIGTYPE_p_unsigned_char data { + set { + skycoinPINVOKE.cipher_SHA256_data_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.cipher_SHA256_data_get(swigCPtr); + SWIGTYPE_p_unsigned_char ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); + return ret; + } + } + + public cipher_SHA256() : this(skycoinPINVOKE.new_cipher_SHA256(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin1/cipher_SHA256s.cs b/LibskycoinNet/skycoin1/cipher_SHA256s.cs new file mode 100644 index 00000000..a390b06c --- /dev/null +++ b/LibskycoinNet/skycoin1/cipher_SHA256s.cs @@ -0,0 +1,93 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class cipher_SHA256s : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal cipher_SHA256s(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(cipher_SHA256s obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~cipher_SHA256s() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_cipher_SHA256s(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public cipher_SHA256 getAt(int i) { + global::System.IntPtr cPtr = skycoinPINVOKE.cipher_SHA256s_getAt(swigCPtr, i); + cipher_SHA256 ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher_SHA256(cPtr, false); + return ret; + } + + public int setAt(int i, cipher_SHA256 hash) { + int ret = skycoinPINVOKE.cipher_SHA256s_setAt(swigCPtr, i, cipher_SHA256.getCPtr(hash)); + return ret; + } + + public int isEqual(cipher_SHA256s a) { + int ret = skycoinPINVOKE.cipher_SHA256s_isEqual(swigCPtr, cipher_SHA256s.getCPtr(a)); + return ret; + } + + public void allocate(int n) { + skycoinPINVOKE.cipher_SHA256s_allocate(swigCPtr, n); + } + + public void release() { + skycoinPINVOKE.cipher_SHA256s_release(swigCPtr); + } + + public cipher_SHA256 data { + set { + skycoinPINVOKE.cipher_SHA256s_data_set(swigCPtr, cipher_SHA256.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.cipher_SHA256s_data_get(swigCPtr); + cipher_SHA256 ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher_SHA256(cPtr, false); + return ret; + } + } + + public int count { + set { + skycoinPINVOKE.cipher_SHA256s_count_set(swigCPtr, value); + } + get { + int ret = skycoinPINVOKE.cipher_SHA256s_count_get(swigCPtr); + return ret; + } + } + + public cipher_SHA256s() : this(skycoinPINVOKE.new_cipher_SHA256s(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin1/cipher_SecKey.cs b/LibskycoinNet/skycoin1/cipher_SecKey.cs new file mode 100644 index 00000000..974a4fca --- /dev/null +++ b/LibskycoinNet/skycoin1/cipher_SecKey.cs @@ -0,0 +1,72 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class cipher_SecKey : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal cipher_SecKey(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(cipher_SecKey obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~cipher_SecKey() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_cipher_SecKey(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public int isEqual(cipher_SecKey a) { + int ret = skycoinPINVOKE.cipher_SecKey_isEqual(swigCPtr, cipher_SecKey.getCPtr(a)); + return ret; + } + + public void assignFrom(SWIGTYPE_p_void data) { + skycoinPINVOKE.cipher_SecKey_assignFrom(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); + } + + public void assignTo(SWIGTYPE_p_void data) { + skycoinPINVOKE.cipher_SecKey_assignTo(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); + } + + public SWIGTYPE_p_unsigned_char data { + set { + skycoinPINVOKE.cipher_SecKey_data_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.cipher_SecKey_data_get(swigCPtr); + SWIGTYPE_p_unsigned_char ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); + return ret; + } + } + + public cipher_SecKey() : this(skycoinPINVOKE.new_cipher_SecKey(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin1/cipher_SecKeys.cs b/LibskycoinNet/skycoin1/cipher_SecKeys.cs new file mode 100644 index 00000000..5740661b --- /dev/null +++ b/LibskycoinNet/skycoin1/cipher_SecKeys.cs @@ -0,0 +1,93 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class cipher_SecKeys : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal cipher_SecKeys(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(cipher_SecKeys obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~cipher_SecKeys() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_cipher_SecKeys(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public cipher_SecKey getAt(int i) { + global::System.IntPtr cPtr = skycoinPINVOKE.cipher_SecKeys_getAt(swigCPtr, i); + cipher_SecKey ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher_SecKey(cPtr, false); + return ret; + } + + public int setAt(int i, cipher_SecKey seckey) { + int ret = skycoinPINVOKE.cipher_SecKeys_setAt(swigCPtr, i, cipher_SecKey.getCPtr(seckey)); + return ret; + } + + public int isEqual(cipher_SecKeys a) { + int ret = skycoinPINVOKE.cipher_SecKeys_isEqual(swigCPtr, cipher_SecKeys.getCPtr(a)); + return ret; + } + + public void allocate(int n) { + skycoinPINVOKE.cipher_SecKeys_allocate(swigCPtr, n); + } + + public void release() { + skycoinPINVOKE.cipher_SecKeys_release(swigCPtr); + } + + public cipher_SecKey data { + set { + skycoinPINVOKE.cipher_SecKeys_data_set(swigCPtr, cipher_SecKey.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.cipher_SecKeys_data_get(swigCPtr); + cipher_SecKey ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher_SecKey(cPtr, false); + return ret; + } + } + + public int count { + set { + skycoinPINVOKE.cipher_SecKeys_count_set(swigCPtr, value); + } + get { + int ret = skycoinPINVOKE.cipher_SecKeys_count_get(swigCPtr); + return ret; + } + } + + public cipher_SecKeys() : this(skycoinPINVOKE.new_cipher_SecKeys(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin1/cipher_Sig.cs b/LibskycoinNet/skycoin1/cipher_Sig.cs new file mode 100644 index 00000000..9233ff0c --- /dev/null +++ b/LibskycoinNet/skycoin1/cipher_Sig.cs @@ -0,0 +1,72 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class cipher_Sig : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal cipher_Sig(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(cipher_Sig obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~cipher_Sig() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_cipher_Sig(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public int isEqual(cipher_Sig a) { + int ret = skycoinPINVOKE.cipher_Sig_isEqual(swigCPtr, cipher_Sig.getCPtr(a)); + return ret; + } + + public void assignFrom(SWIGTYPE_p_void data) { + skycoinPINVOKE.cipher_Sig_assignFrom(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); + } + + public void assignTo(SWIGTYPE_p_void data) { + skycoinPINVOKE.cipher_Sig_assignTo(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); + } + + public SWIGTYPE_p_unsigned_char data { + set { + skycoinPINVOKE.cipher_Sig_data_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.cipher_Sig_data_get(swigCPtr); + SWIGTYPE_p_unsigned_char ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); + return ret; + } + } + + public cipher_Sig() : this(skycoinPINVOKE.new_cipher_Sig(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin1/cipher__Address.cs b/LibskycoinNet/skycoin1/cipher__Address.cs new file mode 100644 index 00000000..12bc8028 --- /dev/null +++ b/LibskycoinNet/skycoin1/cipher__Address.cs @@ -0,0 +1,76 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class cipher__Address : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal cipher__Address(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(cipher__Address obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~cipher__Address() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_cipher__Address(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public int isEqual(cipher__Address a) { + int ret = skycoinPINVOKE.cipher__Address_isEqual(swigCPtr, cipher__Address.getCPtr(a)); + return ret; + } + + public SWIGTYPE_p_GoUint8_ Version { + set { + skycoinPINVOKE.cipher__Address_Version_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoUint8_ ret = new SWIGTYPE_p_GoUint8_(skycoinPINVOKE.cipher__Address_Version_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoUint8_ Key { + set { + skycoinPINVOKE.cipher__Address_Key_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.cipher__Address_Key_get(swigCPtr); + SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); + return ret; + } + } + + public cipher__Address() : this(skycoinPINVOKE.new_cipher__Address(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin1/cli__SendAmount.cs b/LibskycoinNet/skycoin1/cli__SendAmount.cs new file mode 100644 index 00000000..f74e4d54 --- /dev/null +++ b/LibskycoinNet/skycoin1/cli__SendAmount.cs @@ -0,0 +1,72 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class cli__SendAmount : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal cli__SendAmount(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(cli__SendAmount obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~cli__SendAmount() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_cli__SendAmount(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_GoString_ Addr { + set { + skycoinPINVOKE.cli__SendAmount_Addr_set(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.cli__SendAmount_Addr_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoInt64_ Coins { + set { + skycoinPINVOKE.cli__SendAmount_Coins_set(swigCPtr, SWIGTYPE_p_GoInt64_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoInt64_ ret = new SWIGTYPE_p_GoInt64_(skycoinPINVOKE.cli__SendAmount_Coins_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public cli__SendAmount() : this(skycoinPINVOKE.new_cli__SendAmount(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin1/coin_UxOutArray.cs b/LibskycoinNet/skycoin1/coin_UxOutArray.cs new file mode 100644 index 00000000..a204cbae --- /dev/null +++ b/LibskycoinNet/skycoin1/coin_UxOutArray.cs @@ -0,0 +1,93 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class coin_UxOutArray : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal coin_UxOutArray(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(coin_UxOutArray obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~coin_UxOutArray() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_coin_UxOutArray(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public coin__UxOut getAt(int i) { + global::System.IntPtr cPtr = skycoinPINVOKE.coin_UxOutArray_getAt(swigCPtr, i); + coin__UxOut ret = (cPtr == global::System.IntPtr.Zero) ? null : new coin__UxOut(cPtr, false); + return ret; + } + + public int setAt(int i, coin__UxOut uxout) { + int ret = skycoinPINVOKE.coin_UxOutArray_setAt(swigCPtr, i, coin__UxOut.getCPtr(uxout)); + return ret; + } + + public int isEqual(coin_UxOutArray a) { + int ret = skycoinPINVOKE.coin_UxOutArray_isEqual(swigCPtr, coin_UxOutArray.getCPtr(a)); + return ret; + } + + public void allocate(int n) { + skycoinPINVOKE.coin_UxOutArray_allocate(swigCPtr, n); + } + + public void release() { + skycoinPINVOKE.coin_UxOutArray_release(swigCPtr); + } + + public coin__UxOut data { + set { + skycoinPINVOKE.coin_UxOutArray_data_set(swigCPtr, coin__UxOut.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.coin_UxOutArray_data_get(swigCPtr); + coin__UxOut ret = (cPtr == global::System.IntPtr.Zero) ? null : new coin__UxOut(cPtr, false); + return ret; + } + } + + public int count { + set { + skycoinPINVOKE.coin_UxOutArray_count_set(swigCPtr, value); + } + get { + int ret = skycoinPINVOKE.coin_UxOutArray_count_get(swigCPtr); + return ret; + } + } + + public coin_UxOutArray() : this(skycoinPINVOKE.new_coin_UxOutArray(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin1/coin__Block.cs b/LibskycoinNet/skycoin1/coin__Block.cs new file mode 100644 index 00000000..2f434119 --- /dev/null +++ b/LibskycoinNet/skycoin1/coin__Block.cs @@ -0,0 +1,70 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class coin__Block : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal coin__Block(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(coin__Block obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~coin__Block() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_coin__Block(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public coin__BlockHeader Head { + set { + skycoinPINVOKE.coin__Block_Head_set(swigCPtr, coin__BlockHeader.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.coin__Block_Head_get(swigCPtr); + coin__BlockHeader ret = (cPtr == global::System.IntPtr.Zero) ? null : new coin__BlockHeader(cPtr, false); + return ret; + } + } + + public coin__BlockBody Body { + set { + skycoinPINVOKE.coin__Block_Body_set(swigCPtr, coin__BlockBody.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.coin__Block_Body_get(swigCPtr); + coin__BlockBody ret = (cPtr == global::System.IntPtr.Zero) ? null : new coin__BlockBody(cPtr, false); + return ret; + } + } + + public coin__Block() : this(skycoinPINVOKE.new_coin__Block(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin1/coin__BlockBody.cs b/LibskycoinNet/skycoin1/coin__BlockBody.cs new file mode 100644 index 00000000..24aa32eb --- /dev/null +++ b/LibskycoinNet/skycoin1/coin__BlockBody.cs @@ -0,0 +1,65 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class coin__BlockBody : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal coin__BlockBody(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(coin__BlockBody obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~coin__BlockBody() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_coin__BlockBody(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public int isEqual(coin__BlockBody b) { + int ret = skycoinPINVOKE.coin__BlockBody_isEqual(swigCPtr, coin__BlockBody.getCPtr(b)); + return ret; + } + + public SWIGTYPE_p_GoSlice_ Transactions { + set { + skycoinPINVOKE.coin__BlockBody_Transactions_set(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.coin__BlockBody_Transactions_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public coin__BlockBody() : this(skycoinPINVOKE.new_coin__BlockBody(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin1/coin__BlockHeader.cs b/LibskycoinNet/skycoin1/coin__BlockHeader.cs new file mode 100644 index 00000000..1c4703a2 --- /dev/null +++ b/LibskycoinNet/skycoin1/coin__BlockHeader.cs @@ -0,0 +1,134 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class coin__BlockHeader : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal coin__BlockHeader(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(coin__BlockHeader obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~coin__BlockHeader() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_coin__BlockHeader(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public int isEqual(coin__BlockHeader bh) { + int ret = skycoinPINVOKE.coin__BlockHeader_isEqual(swigCPtr, coin__BlockHeader.getCPtr(bh)); + return ret; + } + + public SWIGTYPE_p_GoUint32_ Version { + set { + skycoinPINVOKE.coin__BlockHeader_Version_set(swigCPtr, SWIGTYPE_p_GoUint32_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoUint32_ ret = new SWIGTYPE_p_GoUint32_(skycoinPINVOKE.coin__BlockHeader_Version_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoUint64_ Time { + set { + skycoinPINVOKE.coin__BlockHeader_Time_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.coin__BlockHeader_Time_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoUint64_ BkSeq { + set { + skycoinPINVOKE.coin__BlockHeader_BkSeq_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.coin__BlockHeader_BkSeq_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoUint64_ Fee { + set { + skycoinPINVOKE.coin__BlockHeader_Fee_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.coin__BlockHeader_Fee_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoUint8_ PrevHash { + set { + skycoinPINVOKE.coin__BlockHeader_PrevHash_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.coin__BlockHeader_PrevHash_get(swigCPtr); + SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_GoUint8_ BodyHash { + set { + skycoinPINVOKE.coin__BlockHeader_BodyHash_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.coin__BlockHeader_BodyHash_get(swigCPtr); + SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_GoUint8_ UxHash { + set { + skycoinPINVOKE.coin__BlockHeader_UxHash_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.coin__BlockHeader_UxHash_get(swigCPtr); + SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); + return ret; + } + } + + public coin__BlockHeader() : this(skycoinPINVOKE.new_coin__BlockHeader(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin1/coin__SignedBlock.cs b/LibskycoinNet/skycoin1/coin__SignedBlock.cs new file mode 100644 index 00000000..20b63f9f --- /dev/null +++ b/LibskycoinNet/skycoin1/coin__SignedBlock.cs @@ -0,0 +1,70 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class coin__SignedBlock : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal coin__SignedBlock(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(coin__SignedBlock obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~coin__SignedBlock() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_coin__SignedBlock(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public coin__Block _unnamed { + set { + skycoinPINVOKE.coin__SignedBlock__unnamed_set(swigCPtr, coin__Block.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.coin__SignedBlock__unnamed_get(swigCPtr); + coin__Block ret = (cPtr == global::System.IntPtr.Zero) ? null : new coin__Block(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_GoUint8_ Sig { + set { + skycoinPINVOKE.coin__SignedBlock_Sig_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.coin__SignedBlock_Sig_get(swigCPtr); + SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); + return ret; + } + } + + public coin__SignedBlock() : this(skycoinPINVOKE.new_coin__SignedBlock(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin1/coin__SortableTransactions.cs b/LibskycoinNet/skycoin1/coin__SortableTransactions.cs new file mode 100644 index 00000000..534b34a4 --- /dev/null +++ b/LibskycoinNet/skycoin1/coin__SortableTransactions.cs @@ -0,0 +1,84 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class coin__SortableTransactions : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal coin__SortableTransactions(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(coin__SortableTransactions obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~coin__SortableTransactions() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_coin__SortableTransactions(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_GoSlice_ Txns { + set { + skycoinPINVOKE.coin__SortableTransactions_Txns_set(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.coin__SortableTransactions_Txns_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoSlice_ Fees { + set { + skycoinPINVOKE.coin__SortableTransactions_Fees_set(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.coin__SortableTransactions_Fees_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoSlice_ Hashes { + set { + skycoinPINVOKE.coin__SortableTransactions_Hashes_set(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.coin__SortableTransactions_Hashes_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public coin__SortableTransactions() : this(skycoinPINVOKE.new_coin__SortableTransactions(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin1/coin__Transaction.cs b/LibskycoinNet/skycoin1/coin__Transaction.cs new file mode 100644 index 00000000..68a75704 --- /dev/null +++ b/LibskycoinNet/skycoin1/coin__Transaction.cs @@ -0,0 +1,124 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class coin__Transaction : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal coin__Transaction(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(coin__Transaction obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~coin__Transaction() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_coin__Transaction(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public int isEqual(coin__Transaction t) { + int ret = skycoinPINVOKE.coin__Transaction_isEqual(swigCPtr, coin__Transaction.getCPtr(t)); + return ret; + } + + public SWIGTYPE_p_GoInt32_ Length { + set { + skycoinPINVOKE.coin__Transaction_Length_set(swigCPtr, SWIGTYPE_p_GoInt32_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoInt32_ ret = new SWIGTYPE_p_GoInt32_(skycoinPINVOKE.coin__Transaction_Length_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoInt8_ Type { + set { + skycoinPINVOKE.coin__Transaction_Type_set(swigCPtr, SWIGTYPE_p_GoInt8_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoInt8_ ret = new SWIGTYPE_p_GoInt8_(skycoinPINVOKE.coin__Transaction_Type_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoUint8_ InnerHash { + set { + skycoinPINVOKE.coin__Transaction_InnerHash_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.coin__Transaction_InnerHash_get(swigCPtr); + SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_GoSlice_ Sigs { + set { + skycoinPINVOKE.coin__Transaction_Sigs_set(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.coin__Transaction_Sigs_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoSlice_ In { + set { + skycoinPINVOKE.coin__Transaction_In_set(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.coin__Transaction_In_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoSlice_ Out { + set { + skycoinPINVOKE.coin__Transaction_Out_set(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.coin__Transaction_Out_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public coin__Transaction() : this(skycoinPINVOKE.new_coin__Transaction(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin1/coin__TransactionOutput.cs b/LibskycoinNet/skycoin1/coin__TransactionOutput.cs new file mode 100644 index 00000000..656d769b --- /dev/null +++ b/LibskycoinNet/skycoin1/coin__TransactionOutput.cs @@ -0,0 +1,88 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class coin__TransactionOutput : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal coin__TransactionOutput(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(coin__TransactionOutput obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~coin__TransactionOutput() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_coin__TransactionOutput(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public int isEqual(coin__TransactionOutput t) { + int ret = skycoinPINVOKE.coin__TransactionOutput_isEqual(swigCPtr, coin__TransactionOutput.getCPtr(t)); + return ret; + } + + public cipher__Address Address { + set { + skycoinPINVOKE.coin__TransactionOutput_Address_set(swigCPtr, cipher__Address.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.coin__TransactionOutput_Address_get(swigCPtr); + cipher__Address ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher__Address(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_GoUint64_ Coins { + set { + skycoinPINVOKE.coin__TransactionOutput_Coins_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.coin__TransactionOutput_Coins_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoUint64_ Hours { + set { + skycoinPINVOKE.coin__TransactionOutput_Hours_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.coin__TransactionOutput_Hours_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public coin__TransactionOutput() : this(skycoinPINVOKE.new_coin__TransactionOutput(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin1/coin__UxBody.cs b/LibskycoinNet/skycoin1/coin__UxBody.cs new file mode 100644 index 00000000..2dffc686 --- /dev/null +++ b/LibskycoinNet/skycoin1/coin__UxBody.cs @@ -0,0 +1,94 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class coin__UxBody : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal coin__UxBody(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(coin__UxBody obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~coin__UxBody() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_coin__UxBody(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_GoUint8_ SrcTransaction { + set { + skycoinPINVOKE.coin__UxBody_SrcTransaction_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.coin__UxBody_SrcTransaction_get(swigCPtr); + SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); + return ret; + } + } + + public cipher__Address Address { + set { + skycoinPINVOKE.coin__UxBody_Address_set(swigCPtr, cipher__Address.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.coin__UxBody_Address_get(swigCPtr); + cipher__Address ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher__Address(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_GoUint64_ Coins { + set { + skycoinPINVOKE.coin__UxBody_Coins_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.coin__UxBody_Coins_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoUint64_ Hours { + set { + skycoinPINVOKE.coin__UxBody_Hours_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.coin__UxBody_Hours_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public coin__UxBody() : this(skycoinPINVOKE.new_coin__UxBody(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin1/coin__UxHead.cs b/LibskycoinNet/skycoin1/coin__UxHead.cs new file mode 100644 index 00000000..5a7f245e --- /dev/null +++ b/LibskycoinNet/skycoin1/coin__UxHead.cs @@ -0,0 +1,72 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class coin__UxHead : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal coin__UxHead(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(coin__UxHead obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~coin__UxHead() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_coin__UxHead(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_GoUint64_ Time { + set { + skycoinPINVOKE.coin__UxHead_Time_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.coin__UxHead_Time_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoUint64_ BkSeq { + set { + skycoinPINVOKE.coin__UxHead_BkSeq_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.coin__UxHead_BkSeq_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public coin__UxHead() : this(skycoinPINVOKE.new_coin__UxHead(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin1/coin__UxOut.cs b/LibskycoinNet/skycoin1/coin__UxOut.cs new file mode 100644 index 00000000..ac1bfc43 --- /dev/null +++ b/LibskycoinNet/skycoin1/coin__UxOut.cs @@ -0,0 +1,75 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class coin__UxOut : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal coin__UxOut(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(coin__UxOut obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~coin__UxOut() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_coin__UxOut(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public int isEqual(coin__UxOut u) { + int ret = skycoinPINVOKE.coin__UxOut_isEqual(swigCPtr, coin__UxOut.getCPtr(u)); + return ret; + } + + public coin__UxHead Head { + set { + skycoinPINVOKE.coin__UxOut_Head_set(swigCPtr, coin__UxHead.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.coin__UxOut_Head_get(swigCPtr); + coin__UxHead ret = (cPtr == global::System.IntPtr.Zero) ? null : new coin__UxHead(cPtr, false); + return ret; + } + } + + public coin__UxBody Body { + set { + skycoinPINVOKE.coin__UxOut_Body_set(swigCPtr, coin__UxBody.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.coin__UxOut_Body_get(swigCPtr); + coin__UxBody ret = (cPtr == global::System.IntPtr.Zero) ? null : new coin__UxBody(cPtr, false); + return ret; + } + } + + public coin__UxOut() : this(skycoinPINVOKE.new_coin__UxOut(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin1/encoder__StructField.cs b/LibskycoinNet/skycoin1/encoder__StructField.cs new file mode 100644 index 00000000..7283d5be --- /dev/null +++ b/LibskycoinNet/skycoin1/encoder__StructField.cs @@ -0,0 +1,96 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class encoder__StructField : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal encoder__StructField(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(encoder__StructField obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~encoder__StructField() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_encoder__StructField(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_GoString_ Name { + set { + skycoinPINVOKE.encoder__StructField_Name_set(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.encoder__StructField_Name_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoUint32_ Kind { + set { + skycoinPINVOKE.encoder__StructField_Kind_set(swigCPtr, SWIGTYPE_p_GoUint32_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoUint32_ ret = new SWIGTYPE_p_GoUint32_(skycoinPINVOKE.encoder__StructField_Kind_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoString_ Type { + set { + skycoinPINVOKE.encoder__StructField_Type_set(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.encoder__StructField_Type_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoString_ Tag { + set { + skycoinPINVOKE.encoder__StructField_Tag_set(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.encoder__StructField_Tag_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public encoder__StructField() : this(skycoinPINVOKE.new_encoder__StructField(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin1/encrypt__ScryptChacha20poly1305.cs b/LibskycoinNet/skycoin1/encrypt__ScryptChacha20poly1305.cs new file mode 100644 index 00000000..a7960fe1 --- /dev/null +++ b/LibskycoinNet/skycoin1/encrypt__ScryptChacha20poly1305.cs @@ -0,0 +1,96 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class encrypt__ScryptChacha20poly1305 : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal encrypt__ScryptChacha20poly1305(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(encrypt__ScryptChacha20poly1305 obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~encrypt__ScryptChacha20poly1305() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_encrypt__ScryptChacha20poly1305(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_GoInt_ N { + set { + skycoinPINVOKE.encrypt__ScryptChacha20poly1305_N_set(swigCPtr, SWIGTYPE_p_GoInt_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoInt_ ret = new SWIGTYPE_p_GoInt_(skycoinPINVOKE.encrypt__ScryptChacha20poly1305_N_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoInt_ R { + set { + skycoinPINVOKE.encrypt__ScryptChacha20poly1305_R_set(swigCPtr, SWIGTYPE_p_GoInt_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoInt_ ret = new SWIGTYPE_p_GoInt_(skycoinPINVOKE.encrypt__ScryptChacha20poly1305_R_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoInt_ P { + set { + skycoinPINVOKE.encrypt__ScryptChacha20poly1305_P_set(swigCPtr, SWIGTYPE_p_GoInt_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoInt_ ret = new SWIGTYPE_p_GoInt_(skycoinPINVOKE.encrypt__ScryptChacha20poly1305_P_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoInt_ KeyLen { + set { + skycoinPINVOKE.encrypt__ScryptChacha20poly1305_KeyLen_set(swigCPtr, SWIGTYPE_p_GoInt_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoInt_ ret = new SWIGTYPE_p_GoInt_(skycoinPINVOKE.encrypt__ScryptChacha20poly1305_KeyLen_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public encrypt__ScryptChacha20poly1305() : this(skycoinPINVOKE.new_encrypt__ScryptChacha20poly1305(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin1/httphelper__Address.cs b/LibskycoinNet/skycoin1/httphelper__Address.cs new file mode 100644 index 00000000..882e75ad --- /dev/null +++ b/LibskycoinNet/skycoin1/httphelper__Address.cs @@ -0,0 +1,59 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class httphelper__Address : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal httphelper__Address(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(httphelper__Address obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~httphelper__Address() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_httphelper__Address(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public cipher__Address _unnamed { + set { + skycoinPINVOKE.httphelper__Address__unnamed_set(swigCPtr, cipher__Address.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.httphelper__Address__unnamed_get(swigCPtr); + cipher__Address ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher__Address(cPtr, false); + return ret; + } + } + + public httphelper__Address() : this(skycoinPINVOKE.new_httphelper__Address(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin1/secp256k1go__Field.cs b/LibskycoinNet/skycoin1/secp256k1go__Field.cs new file mode 100644 index 00000000..ca0d1113 --- /dev/null +++ b/LibskycoinNet/skycoin1/secp256k1go__Field.cs @@ -0,0 +1,59 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class secp256k1go__Field : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal secp256k1go__Field(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(secp256k1go__Field obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~secp256k1go__Field() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_secp256k1go__Field(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_GoUint32_ n { + set { + skycoinPINVOKE.secp256k1go__Field_n_set(swigCPtr, SWIGTYPE_p_GoUint32_.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.secp256k1go__Field_n_get(swigCPtr); + SWIGTYPE_p_GoUint32_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint32_(cPtr, false); + return ret; + } + } + + public secp256k1go__Field() : this(skycoinPINVOKE.new_secp256k1go__Field(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin1/secp256k1go__XY.cs b/LibskycoinNet/skycoin1/secp256k1go__XY.cs new file mode 100644 index 00000000..5fa89e8f --- /dev/null +++ b/LibskycoinNet/skycoin1/secp256k1go__XY.cs @@ -0,0 +1,82 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class secp256k1go__XY : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal secp256k1go__XY(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(secp256k1go__XY obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~secp256k1go__XY() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_secp256k1go__XY(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public secp256k1go__Field X { + set { + skycoinPINVOKE.secp256k1go__XY_X_set(swigCPtr, secp256k1go__Field.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.secp256k1go__XY_X_get(swigCPtr); + secp256k1go__Field ret = (cPtr == global::System.IntPtr.Zero) ? null : new secp256k1go__Field(cPtr, false); + return ret; + } + } + + public secp256k1go__Field Y { + set { + skycoinPINVOKE.secp256k1go__XY_Y_set(swigCPtr, secp256k1go__Field.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.secp256k1go__XY_Y_get(swigCPtr); + secp256k1go__Field ret = (cPtr == global::System.IntPtr.Zero) ? null : new secp256k1go__Field(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_BOOL Infinity { + set { + skycoinPINVOKE.secp256k1go__XY_Infinity_set(swigCPtr, SWIGTYPE_p_BOOL.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_BOOL ret = new SWIGTYPE_p_BOOL(skycoinPINVOKE.secp256k1go__XY_Infinity_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public secp256k1go__XY() : this(skycoinPINVOKE.new_secp256k1go__XY(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin1/secp256k1go__XYZ.cs b/LibskycoinNet/skycoin1/secp256k1go__XYZ.cs new file mode 100644 index 00000000..a8d9d665 --- /dev/null +++ b/LibskycoinNet/skycoin1/secp256k1go__XYZ.cs @@ -0,0 +1,93 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class secp256k1go__XYZ : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal secp256k1go__XYZ(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(secp256k1go__XYZ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~secp256k1go__XYZ() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_secp256k1go__XYZ(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public secp256k1go__Field X { + set { + skycoinPINVOKE.secp256k1go__XYZ_X_set(swigCPtr, secp256k1go__Field.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.secp256k1go__XYZ_X_get(swigCPtr); + secp256k1go__Field ret = (cPtr == global::System.IntPtr.Zero) ? null : new secp256k1go__Field(cPtr, false); + return ret; + } + } + + public secp256k1go__Field Y { + set { + skycoinPINVOKE.secp256k1go__XYZ_Y_set(swigCPtr, secp256k1go__Field.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.secp256k1go__XYZ_Y_get(swigCPtr); + secp256k1go__Field ret = (cPtr == global::System.IntPtr.Zero) ? null : new secp256k1go__Field(cPtr, false); + return ret; + } + } + + public secp256k1go__Field Z { + set { + skycoinPINVOKE.secp256k1go__XYZ_Z_set(swigCPtr, secp256k1go__Field.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.secp256k1go__XYZ_Z_get(swigCPtr); + secp256k1go__Field ret = (cPtr == global::System.IntPtr.Zero) ? null : new secp256k1go__Field(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_BOOL Infinity { + set { + skycoinPINVOKE.secp256k1go__XYZ_Infinity_set(swigCPtr, SWIGTYPE_p_BOOL.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_BOOL ret = new SWIGTYPE_p_BOOL(skycoinPINVOKE.secp256k1go__XYZ_Infinity_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public secp256k1go__XYZ() : this(skycoinPINVOKE.new_secp256k1go__XYZ(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin1/skycoin.cs b/LibskycoinNet/skycoin1/skycoin.cs new file mode 100644 index 00000000..0e40fd88 --- /dev/null +++ b/LibskycoinNet/skycoin1/skycoin.cs @@ -0,0 +1,2728 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class skycoin { + public static void destroy_cipher_SecKeys(cipher_SecKeys p) { + skycoinPINVOKE.destroy_cipher_SecKeys(cipher_SecKeys.getCPtr(p)); + } + + public static int equalSlices(GoSlice slice1, GoSlice slice2, int elem_size) { + int ret = skycoinPINVOKE.equalSlices(GoSlice.getCPtr(slice1), GoSlice.getCPtr(slice2), elem_size); + return ret; + } + + public static int equalTransactions(coin__Transaction t1, coin__Transaction t2) { + int ret = skycoinPINVOKE.equalTransactions(coin__Transaction.getCPtr(t1), coin__Transaction.getCPtr(t2)); + return ret; + } + + public static int equalTransactionsArrays(SWIGTYPE_p_GoSlice_ pTxs1, SWIGTYPE_p_GoSlice_ pTxs2) { + int ret = skycoinPINVOKE.equalTransactionsArrays(SWIGTYPE_p_GoSlice_.getCPtr(pTxs1), SWIGTYPE_p_GoSlice_.getCPtr(pTxs2)); + return ret; + } + + public static int equalBlockHeaders(coin__BlockHeader bh1, coin__BlockHeader bh2) { + int ret = skycoinPINVOKE.equalBlockHeaders(coin__BlockHeader.getCPtr(bh1), coin__BlockHeader.getCPtr(bh2)); + return ret; + } + + public static cipher_PubKey new_cipher_PubKeyp() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_cipher_PubKeyp(); + cipher_PubKey ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher_PubKey(cPtr, false); + return ret; + } + + public static cipher_PubKey copy_cipher_PubKeyp(cipher_PubKey value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_cipher_PubKeyp(cipher_PubKey.getCPtr(value)); + cipher_PubKey ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher_PubKey(cPtr, false); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static void delete_cipher_PubKeyp(cipher_PubKey obj) { + skycoinPINVOKE.delete_cipher_PubKeyp(cipher_PubKey.getCPtr(obj)); + } + + public static void cipher_PubKeyp_assign(cipher_PubKey obj, cipher_PubKey value) { + skycoinPINVOKE.cipher_PubKeyp_assign(cipher_PubKey.getCPtr(obj), cipher_PubKey.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + + public static cipher_PubKey cipher_PubKeyp_value(cipher_PubKey obj) { + cipher_PubKey ret = new cipher_PubKey(skycoinPINVOKE.cipher_PubKeyp_value(cipher_PubKey.getCPtr(obj)), true); + return ret; + } + + public static void add(cipher_PubKey arg0, cipher_PubKey arg1, cipher_PubKey OUTPUT) { + skycoinPINVOKE.add(cipher_PubKey.getCPtr(arg0), cipher_PubKey.getCPtr(arg1), cipher_PubKey.getCPtr(OUTPUT)); + } + + public static uint SKY_coin_NewBlock(SWIGTYPE_p_Block__Handle p0, ulong p1, SWIGTYPE_p_a_32__GoUint8_ p2, SWIGTYPE_p_Transactions__Handle p3, SWIGTYPE_p_FeeCalculator p4, SWIGTYPE_p_Block__Handle p5) { + uint ret = skycoinPINVOKE.SKY_coin_NewBlock(SWIGTYPE_p_Block__Handle.getCPtr(p0), p1, SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2), SWIGTYPE_p_Transactions__Handle.getCPtr(p3), SWIGTYPE_p_FeeCalculator.getCPtr(p4), SWIGTYPE_p_Block__Handle.getCPtr(p5)); + return ret; + } + + public static uint SKY_coin_SignedBlock_VerifySignature(coin__SignedBlock p0, SWIGTYPE_p_a_33__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_SignedBlock_VerifySignature(coin__SignedBlock.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_NewGenesisBlock(cipher__Address p0, ulong p1, ulong p2, SWIGTYPE_p_Block__Handle p3) { + uint ret = skycoinPINVOKE.SKY_coin_NewGenesisBlock(cipher__Address.getCPtr(p0), p1, p2, SWIGTYPE_p_Block__Handle.getCPtr(p3)); + return ret; + } + + public static uint SKY_coin_Block_HashHeader(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Block_HashHeader(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_Block_PreHashHeader(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Block_PreHashHeader(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_Block_Time(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Block_Time(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_Block_Seq(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Block_Seq(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_Block_HashBody(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Block_HashBody(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_Block_Size(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Block_Size(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_Block_String(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Block_String(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_Block_GetTransaction(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_Transaction__Handle p2, SWIGTYPE_p_unsigned_char p3) { + uint ret = skycoinPINVOKE.SKY_coin_Block_GetTransaction(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_Transaction__Handle.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); + return ret; + } + + public static uint SKY_coin_NewBlockHeader(coin__BlockHeader p0, SWIGTYPE_p_a_32__GoUint8_ p1, ulong p2, ulong p3, SWIGTYPE_p_BlockBody__Handle p4, coin__BlockHeader p5) { + uint ret = skycoinPINVOKE.SKY_coin_NewBlockHeader(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), p2, p3, SWIGTYPE_p_BlockBody__Handle.getCPtr(p4), coin__BlockHeader.getCPtr(p5)); + return ret; + } + + public static uint SKY_coin_BlockHeader_Hash(coin__BlockHeader p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_BlockHeader_Hash(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_BlockHeader_Bytes(coin__BlockHeader p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_BlockHeader_Bytes(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_BlockHeader_String(coin__BlockHeader p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_BlockHeader_String(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_BlockBody_Hash(SWIGTYPE_p_BlockBody__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Hash(SWIGTYPE_p_BlockBody__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_BlockBody_Size(SWIGTYPE_p_BlockBody__Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Size(SWIGTYPE_p_BlockBody__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_BlockBody_Bytes(SWIGTYPE_p_BlockBody__Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Bytes(SWIGTYPE_p_BlockBody__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_CreateUnspents(coin__BlockHeader p0, SWIGTYPE_p_Transaction__Handle p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_CreateUnspents(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + return ret; + } + + public static uint SKY_coin_CreateUnspent(coin__BlockHeader p0, SWIGTYPE_p_Transaction__Handle p1, long p2, coin__UxOut p3) { + uint ret = skycoinPINVOKE.SKY_coin_CreateUnspent(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), p2, coin__UxOut.getCPtr(p3)); + return ret; + } + + public static uint SKY_coin_GetBlockObject(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_p_coin__Block p1) { + uint ret = skycoinPINVOKE.SKY_coin_GetBlockObject(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_p_coin__Block.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_GetBlockBody(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_BlockBody__Handle p1) { + uint ret = skycoinPINVOKE.SKY_coin_GetBlockBody(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_BlockBody__Handle.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_NewEmptyBlock(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_Block__Handle p1) { + uint ret = skycoinPINVOKE.SKY_coin_NewEmptyBlock(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_Block__Handle.getCPtr(p1)); + return ret; + } + + public static uint SKY_bip39_NewDefaultMnemomic(SWIGTYPE_p_GoString_ p0) { + uint ret = skycoinPINVOKE.SKY_bip39_NewDefaultMnemomic(SWIGTYPE_p_GoString_.getCPtr(p0)); + return ret; + } + + public static uint SKY_bip39_NewEntropy(long p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_bip39_NewEntropy(p0, SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_bip39_NewMnemonic(GoSlice p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_bip39_NewMnemonic(GoSlice.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_bip39_MnemonicToByteArray(_GoString_ p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_bip39_MnemonicToByteArray(_GoString_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_bip39_IsMnemonicValid(_GoString_ p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_bip39_IsMnemonicValid(_GoString_.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_NewClient(_GoString_ p0, SWIGTYPE_p_Client__Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_NewClient(_GoString_.getCPtr(p0), SWIGTYPE_p_Client__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_CSRF(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_CSRF(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_api_Client_Version(SWIGTYPE_p_Client__Handle p0) { + uint ret = skycoinPINVOKE.SKY_api_Client_Version(SWIGTYPE_p_Client__Handle.getCPtr(p0)); + return ret; + } + + public static uint SKY_api_Client_Outputs(SWIGTYPE_p_Client__Handle p0) { + uint ret = skycoinPINVOKE.SKY_api_Client_Outputs(SWIGTYPE_p_Client__Handle.getCPtr(p0)); + return ret; + } + + public static uint SKY_api_Client_OutputsForAddresses(SWIGTYPE_p_Client__Handle p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_OutputsForAddresses(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_OutputsForHashes(SWIGTYPE_p_Client__Handle p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_OutputsForHashes(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_CoinSupply(SWIGTYPE_p_Client__Handle p0) { + uint ret = skycoinPINVOKE.SKY_api_Client_CoinSupply(SWIGTYPE_p_Client__Handle.getCPtr(p0)); + return ret; + } + + public static uint SKY_api_Client_BlockByHash(SWIGTYPE_p_Client__Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_BlockByHash(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_BlockBySeq(SWIGTYPE_p_Client__Handle p0, ulong p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_BlockBySeq(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1); + return ret; + } + + public static uint SKY_api_Client_Blocks(SWIGTYPE_p_Client__Handle p0, ulong p1, ulong p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_Blocks(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1, p2); + return ret; + } + + public static uint SKY_api_Client_LastBlocks(SWIGTYPE_p_Client__Handle p0, ulong p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_LastBlocks(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1); + return ret; + } + + public static uint SKY_api_Client_BlockchainMetadata(SWIGTYPE_p_Client__Handle p0) { + uint ret = skycoinPINVOKE.SKY_api_Client_BlockchainMetadata(SWIGTYPE_p_Client__Handle.getCPtr(p0)); + return ret; + } + + public static uint SKY_api_Client_BlockchainProgress(SWIGTYPE_p_Client__Handle p0) { + uint ret = skycoinPINVOKE.SKY_api_Client_BlockchainProgress(SWIGTYPE_p_Client__Handle.getCPtr(p0)); + return ret; + } + + public static uint SKY_api_Client_Balance(SWIGTYPE_p_Client__Handle p0, GoSlice p1, wallet__BalancePair p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_Balance(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), wallet__BalancePair.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_UxOut(SWIGTYPE_p_Client__Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_UxOut(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_AddressUxOuts(SWIGTYPE_p_Client__Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_AddressUxOuts(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_Wallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_WalletResponse__Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_Wallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_Wallets(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Wallets__Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_Wallets(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Wallets__Handle.getCPtr(p1)); + return ret; + } + + public static uint SKY_api_Client_CreateUnencryptedWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, long p3, SWIGTYPE_p_WalletResponse__Handle p4) { + uint ret = skycoinPINVOKE.SKY_api_Client_CreateUnencryptedWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), p3, SWIGTYPE_p_WalletResponse__Handle.getCPtr(p4)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_CreateEncryptedWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, _GoString_ p3, long p4, SWIGTYPE_p_WalletResponse__Handle p5) { + uint ret = skycoinPINVOKE.SKY_api_Client_CreateEncryptedWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), _GoString_.getCPtr(p3), p4, SWIGTYPE_p_WalletResponse__Handle.getCPtr(p5)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_NewWalletAddress(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, long p2, _GoString_ p3, SWIGTYPE_p_Strings__Handle p4) { + uint ret = skycoinPINVOKE.SKY_api_Client_NewWalletAddress(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p2, _GoString_.getCPtr(p3), SWIGTYPE_p_Strings__Handle.getCPtr(p4)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_WalletBalance(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, wallet__BalancePair p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_WalletBalance(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), wallet__BalancePair.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_Spend(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, ulong p3, _GoString_ p4, SWIGTYPE_p_SpendResult_Handle p5) { + uint ret = skycoinPINVOKE.SKY_api_Client_Spend(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), p3, _GoString_.getCPtr(p4), SWIGTYPE_p_SpendResult_Handle.getCPtr(p5)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_CreateTransaction(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_CreateTransactionResponse__Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_CreateTransaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_CreateTransactionResponse__Handle.getCPtr(p2)); + return ret; + } + + public static uint SKY_api_Client_UpdateWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_UpdateWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_WalletFolderName(SWIGTYPE_p_Client__Handle p0) { + uint ret = skycoinPINVOKE.SKY_api_Client_WalletFolderName(SWIGTYPE_p_Client__Handle.getCPtr(p0)); + return ret; + } + + public static uint SKY_api_Client_NewSeed(SWIGTYPE_p_Client__Handle p0, long p1, SWIGTYPE_p_GoString_ p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_NewSeed(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoString_.getCPtr(p2)); + return ret; + } + + public static uint SKY_api_Client_GetWalletSeed(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, SWIGTYPE_p_GoString_ p3) { + uint ret = skycoinPINVOKE.SKY_api_Client_GetWalletSeed(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), SWIGTYPE_p_GoString_.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_NetworkConnection(SWIGTYPE_p_Client__Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_NetworkConnection(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_NetworkConnections(SWIGTYPE_p_Client__Handle p0) { + uint ret = skycoinPINVOKE.SKY_api_Client_NetworkConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0)); + return ret; + } + + public static uint SKY_api_Client_NetworkDefaultConnections(SWIGTYPE_p_Client__Handle p0) { + uint ret = skycoinPINVOKE.SKY_api_Client_NetworkDefaultConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0)); + return ret; + } + + public static uint SKY_api_Client_NetworkTrustedConnections(SWIGTYPE_p_Client__Handle p0) { + uint ret = skycoinPINVOKE.SKY_api_Client_NetworkTrustedConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0)); + return ret; + } + + public static uint SKY_api_Client_NetworkExchangeableConnections(SWIGTYPE_p_Client__Handle p0) { + uint ret = skycoinPINVOKE.SKY_api_Client_NetworkExchangeableConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0)); + return ret; + } + + public static uint SKY_api_Client_PendingTransactions(SWIGTYPE_p_Client__Handle p0) { + uint ret = skycoinPINVOKE.SKY_api_Client_PendingTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0)); + return ret; + } + + public static uint SKY_api_Client_Transaction(SWIGTYPE_p_Client__Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_Transaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_Transactions(SWIGTYPE_p_Client__Handle p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_Transactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_ConfirmedTransactions(SWIGTYPE_p_Client__Handle p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_ConfirmedTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_UnconfirmedTransactions(SWIGTYPE_p_Client__Handle p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_UnconfirmedTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_InjectTransaction(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Transaction__Handle p1, SWIGTYPE_p_GoString_ p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_InjectTransaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); + return ret; + } + + public static uint SKY_api_Client_ResendUnconfirmedTransactions(SWIGTYPE_p_Client__Handle p0) { + uint ret = skycoinPINVOKE.SKY_api_Client_ResendUnconfirmedTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0)); + return ret; + } + + public static uint SKY_api_Client_RawTransaction(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_GoString_ p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_RawTransaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_AddressTransactions(SWIGTYPE_p_Client__Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_AddressTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_Richlist(SWIGTYPE_p_Client__Handle p0, api__RichlistParams p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_Richlist(SWIGTYPE_p_Client__Handle.getCPtr(p0), api__RichlistParams.getCPtr(p1)); + return ret; + } + + public static uint SKY_api_Client_AddressCount(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_AddressCount(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + return ret; + } + + public static uint SKY_api_Client_UnloadWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_UnloadWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_Health(SWIGTYPE_p_Client__Handle p0) { + uint ret = skycoinPINVOKE.SKY_api_Client_Health(SWIGTYPE_p_Client__Handle.getCPtr(p0)); + return ret; + } + + public static uint SKY_api_Client_EncryptWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, SWIGTYPE_p_WalletResponse__Handle p3) { + uint ret = skycoinPINVOKE.SKY_api_Client_EncryptWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_Client_DecryptWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, SWIGTYPE_p_WalletResponse__Handle p3) { + uint ret = skycoinPINVOKE.SKY_api_Client_DecryptWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_XY_Print(secp256k1go__XY p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_Print(secp256k1go__XY.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_XY_ParsePubkey(secp256k1go__XY p0, GoSlice p1, SWIGTYPE_p_unsigned_char p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_ParsePubkey(secp256k1go__XY.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_XY_Bytes(secp256k1go__XY p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_Bytes(secp256k1go__XY.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_XY_BytesUncompressed(secp256k1go__XY p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_BytesUncompressed(secp256k1go__XY.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_XY_SetXY(secp256k1go__XY p0, secp256k1go__Field p1, secp256k1go__Field p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_SetXY(secp256k1go__XY.getCPtr(p0), secp256k1go__Field.getCPtr(p1), secp256k1go__Field.getCPtr(p2)); + return ret; + } + + public static uint SKY_secp256k1go_XY_IsValid(secp256k1go__XY p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_IsValid(secp256k1go__XY.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_XY_SetXYZ(secp256k1go__XY p0, secp256k1go__XYZ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_SetXYZ(secp256k1go__XY.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_XY_Neg(secp256k1go__XY p0, secp256k1go__XY p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_Neg(secp256k1go__XY.getCPtr(p0), secp256k1go__XY.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_XY_SetXO(secp256k1go__XY p0, secp256k1go__Field p1, byte p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_SetXO(secp256k1go__XY.getCPtr(p0), secp256k1go__Field.getCPtr(p1), p2); + return ret; + } + + public static uint SKY_secp256k1go_XY_AddXY(secp256k1go__XY p0, secp256k1go__XY p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_AddXY(secp256k1go__XY.getCPtr(p0), secp256k1go__XY.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_XY_GetPublicKey(secp256k1go__XY p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_GetPublicKey(secp256k1go__XY.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_api_NewWalletResponse(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_WalletResponse__Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_NewWalletResponse(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p1)); + return ret; + } + + public static uint SKY_api_NewCreateTransactionResponse(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1, SWIGTYPE_p_CreateTransactionResponse__Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_NewCreateTransactionResponse(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_CreateTransactionResponse__Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_NewCreatedTransaction(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1, SWIGTYPE_p_CreatedTransaction__Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_NewCreatedTransaction(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_CreatedTransaction__Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_api_CreatedTransaction_ToTransaction(SWIGTYPE_p_CreatedTransaction__Handle p0, SWIGTYPE_p_Transaction__Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_CreatedTransaction_ToTransaction(SWIGTYPE_p_CreatedTransaction__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); + return ret; + } + + public static uint SKY_api_NewCreatedTransactionOutput(coin__TransactionOutput p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_CreatedTransactionOutput__Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_NewCreatedTransactionOutput(coin__TransactionOutput.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_CreatedTransactionOutput__Handle.getCPtr(p2)); + return ret; + } + + public static uint SKY_api_NewCreatedTransactionInput(wallet__UxBalance p0, SWIGTYPE_p_CreatedTransactionInput__Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_NewCreatedTransactionInput(wallet__UxBalance.getCPtr(p0), SWIGTYPE_p_CreatedTransactionInput__Handle.getCPtr(p1)); + return ret; + } + + public static uint SKY_wallet_NewError(GoInterface p0) { + uint ret = skycoinPINVOKE.SKY_wallet_NewError(GoInterface.getCPtr(p0)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_NewWallet(_GoString_ p0, SWIGTYPE_p_Options__Handle p1, SWIGTYPE_p_Wallet__Handle p2) { + uint ret = skycoinPINVOKE.SKY_wallet_NewWallet(_GoString_.getCPtr(p0), SWIGTYPE_p_Options__Handle.getCPtr(p1), SWIGTYPE_p_Wallet__Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_Wallet_Lock(SWIGTYPE_p_Wallet__Handle p0, GoSlice p1, _GoString_ p2) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Lock(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), GoSlice.getCPtr(p1), _GoString_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_Wallet_Unlock(SWIGTYPE_p_Wallet__Handle p0, GoSlice p1, SWIGTYPE_p_Wallet__Handle p2) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Unlock(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_Wallet__Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_Load(_GoString_ p0, SWIGTYPE_p_Wallet__Handle p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Load(_GoString_.getCPtr(p0), SWIGTYPE_p_Wallet__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_Wallet_Save(SWIGTYPE_p_Wallet__Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Save(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_Wallet_Validate(SWIGTYPE_p_Wallet__Handle p0) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Validate(SWIGTYPE_p_Wallet__Handle.getCPtr(p0)); + return ret; + } + + public static uint SKY_wallet_Wallet_Type(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Type(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_wallet_Wallet_Version(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Version(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_wallet_Wallet_Filename(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Filename(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_wallet_Wallet_Label(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Label(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_wallet_Wallet_IsEncrypted(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_IsEncrypted(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + return ret; + } + + public static uint SKY_wallet_Wallet_GenerateAddresses(SWIGTYPE_p_Wallet__Handle p0, ulong p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GenerateAddresses(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2)); + return ret; + } + + public static uint SKY_wallet_Wallet_GetAddresses(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GetAddresses(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_wallet_Wallet_GetEntry(SWIGTYPE_p_Wallet__Handle p0, cipher__Address p1, wallet__Entry p2, SWIGTYPE_p_unsigned_char p3) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GetEntry(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), cipher__Address.getCPtr(p1), wallet__Entry.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); + return ret; + } + + public static uint SKY_wallet_Wallet_AddEntry(SWIGTYPE_p_Wallet__Handle p0, wallet__Entry p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_AddEntry(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), wallet__Entry.getCPtr(p1)); + return ret; + } + + public static uint SKY_wallet_DistributeSpendHours(ulong p0, ulong p1, byte p2, SWIGTYPE_p_unsigned_long_long p3, SWIGTYPE_p_GoSlice_ p4, SWIGTYPE_p_unsigned_long_long p5) { + uint ret = skycoinPINVOKE.SKY_wallet_DistributeSpendHours(p0, p1, p2, SWIGTYPE_p_unsigned_long_long.getCPtr(p3), SWIGTYPE_p_GoSlice_.getCPtr(p4), SWIGTYPE_p_unsigned_long_long.getCPtr(p5)); + return ret; + } + + public static uint SKY_wallet_DistributeCoinHoursProportional(GoSlice p0, ulong p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_wallet_DistributeCoinHoursProportional(GoSlice.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_NewUxBalances(ulong p0, SWIGTYPE_p_GoSlice_ p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_wallet_NewUxBalances(p0, SWIGTYPE_p_GoSlice_.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + return ret; + } + + public static uint SKY_wallet_NewUxBalance(ulong p0, coin__UxOut p1, wallet__UxBalance p2) { + uint ret = skycoinPINVOKE.SKY_wallet_NewUxBalance(p0, coin__UxOut.getCPtr(p1), wallet__UxBalance.getCPtr(p2)); + return ret; + } + + public static uint SKY_wallet_ChooseSpendsMinimizeUxOuts(GoSlice p0, ulong p1, ulong p2, SWIGTYPE_p_GoSlice_ p3) { + uint ret = skycoinPINVOKE.SKY_wallet_ChooseSpendsMinimizeUxOuts(GoSlice.getCPtr(p0), p1, p2, SWIGTYPE_p_GoSlice_.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_ChooseSpendsMaximizeUxOuts(GoSlice p0, ulong p1, ulong p2, SWIGTYPE_p_GoSlice_ p3) { + uint ret = skycoinPINVOKE.SKY_wallet_ChooseSpendsMaximizeUxOuts(GoSlice.getCPtr(p0), p1, p2, SWIGTYPE_p_GoSlice_.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cli_CheckWalletBalance(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, SWIGTYPE_p_BalanceResult_Handle p2) { + uint ret = skycoinPINVOKE.SKY_cli_CheckWalletBalance(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_BalanceResult_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cli_GetBalanceOfAddresses(SWIGTYPE_p_WebRpcClient__Handle p0, GoSlice p1, SWIGTYPE_p_BalanceResult_Handle p2) { + uint ret = skycoinPINVOKE.SKY_cli_GetBalanceOfAddresses(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_BalanceResult_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_NewReadableEntry(wallet__Entry p0, SWIGTYPE_p_ReadableEntry__Handle p1) { + uint ret = skycoinPINVOKE.SKY_wallet_NewReadableEntry(wallet__Entry.getCPtr(p0), SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p1)); + return ret; + } + + public static uint SKY_wallet_LoadReadableEntry(_GoString_ p0, SWIGTYPE_p_ReadableEntry__Handle p1) { + uint ret = skycoinPINVOKE.SKY_wallet_LoadReadableEntry(_GoString_.getCPtr(p0), SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_NewReadableEntryFromPubkey(_GoString_ p0, SWIGTYPE_p_ReadableEntry__Handle p1) { + uint ret = skycoinPINVOKE.SKY_wallet_NewReadableEntryFromPubkey(_GoString_.getCPtr(p0), SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_ReadableEntry_Save(SWIGTYPE_p_ReadableEntry__Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_ReadableEntry_Save(SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_LoadReadableWallet(_GoString_ p0, SWIGTYPE_p_ReadableWallet__Handle p1) { + uint ret = skycoinPINVOKE.SKY_wallet_LoadReadableWallet(_GoString_.getCPtr(p0), SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_ReadableWallet_Save(SWIGTYPE_p_ReadableWallet__Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_ReadableWallet_Save(SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_ReadableWallet_Load(SWIGTYPE_p_ReadableWallet__Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_ReadableWallet_Load(SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_ReadableWallet_Erase(SWIGTYPE_p_ReadableWallet__Handle p0) { + uint ret = skycoinPINVOKE.SKY_wallet_ReadableWallet_Erase(SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p0)); + return ret; + } + + public static uint SKY_secp256k1go_DecompressPoint(GoSlice p0, byte p1, GoSlice p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_DecompressPoint(GoSlice.getCPtr(p0), p1, GoSlice.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_RecoverPublicKey(GoSlice p0, GoSlice p1, long p2, SWIGTYPE_p_GoSlice_ p3, SWIGTYPE_p_long_long p4) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_RecoverPublicKey(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), p2, SWIGTYPE_p_GoSlice_.getCPtr(p3), SWIGTYPE_p_long_long.getCPtr(p4)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_Multiply(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Multiply(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_BaseMultiply(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_BaseMultiply(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_BaseMultiplyAdd(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_BaseMultiplyAdd(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_GeneratePublicKey(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_GeneratePublicKey(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_SeckeyIsValid(GoSlice p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_SeckeyIsValid(GoSlice.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_PubkeyIsValid(GoSlice p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_PubkeyIsValid(GoSlice.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_base58_String2Hex(_GoString_ p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_base58_String2Hex(_GoString_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_base58_Base58_ToInt(_GoString_ p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_base58_Base58_ToInt(_GoString_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_base58_Base58_ToHex(_GoString_ p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_base58_Base58_ToHex(_GoString_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_base58_Base58_Base582Int(_GoString_ p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_base58_Base58_Base582Int(_GoString_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_base58_Base582Hex(_GoString_ p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_base58_Base582Hex(_GoString_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_base58_Base58_BitHex(_GoString_ p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_base58_Base58_BitHex(_GoString_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_base58_Int2Base58(long p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_base58_Int2Base58(p0, SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_base58_Hex2Base58(GoSlice p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_base58_Hex2Base58(GoSlice.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_base58_Hex2Base58String(GoSlice p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_base58_Hex2Base58String(GoSlice.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_base58_Hex2Base58Str(GoSlice p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_base58_Hex2Base58Str(GoSlice.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cli_GenerateWallet(_GoString_ p0, SWIGTYPE_p_Options__Handle p1, ulong p2, SWIGTYPE_p_Wallet__Handle p3) { + uint ret = skycoinPINVOKE.SKY_cli_GenerateWallet(_GoString_.getCPtr(p0), SWIGTYPE_p_Options__Handle.getCPtr(p1), p2, SWIGTYPE_p_Wallet__Handle.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cli_MakeAlphanumericSeed(SWIGTYPE_p_GoString_ p0) { + uint ret = skycoinPINVOKE.SKY_cli_MakeAlphanumericSeed(SWIGTYPE_p_GoString_.getCPtr(p0)); + return ret; + } + + public static uint SKY_webrpc_NewClient(_GoString_ p0, SWIGTYPE_p_WebRpcClient__Handle p1) { + uint ret = skycoinPINVOKE.SKY_webrpc_NewClient(_GoString_.getCPtr(p0), SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_webrpc_Client_CSRF(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_CSRF(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_webrpc_Client_InjectTransaction(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_Transaction__Handle p1, SWIGTYPE_p_GoString_ p2) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_InjectTransaction(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); + return ret; + } + + public static uint SKY_webrpc_Client_GetStatus(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_StatusResult_Handle p1) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetStatus(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_StatusResult_Handle.getCPtr(p1)); + return ret; + } + + public static uint SKY_webrpc_Client_GetTransactionByID(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, SWIGTYPE_p_TransactionResult_Handle p2) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetTransactionByID(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_TransactionResult_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_webrpc_Client_GetAddressUxOuts(SWIGTYPE_p_WebRpcClient__Handle p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetAddressUxOuts(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_webrpc_Client_GetBlocks(SWIGTYPE_p_WebRpcClient__Handle p0, ulong p1, ulong p2, SWIGTYPE_p_GoSlice_ p3) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetBlocks(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), p1, p2, SWIGTYPE_p_GoSlice_.getCPtr(p3)); + return ret; + } + + public static uint SKY_webrpc_Client_GetBlocksBySeq(SWIGTYPE_p_WebRpcClient__Handle p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetBlocksBySeq(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_webrpc_Client_GetLastBlocks(SWIGTYPE_p_WebRpcClient__Handle p0, ulong p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetLastBlocks(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2)); + return ret; + } + + public static uint SKY_browser_Open(_GoString_ p0) { + uint ret = skycoinPINVOKE.SKY_browser_Open(_GoString_.getCPtr(p0)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_iputil_LocalhostIP(SWIGTYPE_p_GoString_ p0) { + uint ret = skycoinPINVOKE.SKY_iputil_LocalhostIP(SWIGTYPE_p_GoString_.getCPtr(p0)); + return ret; + } + + public static uint SKY_iputil_IsLocalhost(_GoString_ p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_iputil_IsLocalhost(_GoString_.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_iputil_SplitAddr(_GoString_ p0, SWIGTYPE_p_GoString_ p1, SWIGTYPE_p_unsigned_short p2) { + uint ret = skycoinPINVOKE.SKY_iputil_SplitAddr(_GoString_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1), SWIGTYPE_p_unsigned_short.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_encoder_StructField_String(encoder__StructField p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_encoder_StructField_String(encoder__StructField.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_encoder_ParseFields(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoStringMap_ p2) { + uint ret = skycoinPINVOKE.SKY_encoder_ParseFields(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoStringMap_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1_SumSHA256(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1_SumSHA256(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1_RandByte(long p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1_RandByte(p0, SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cli_GenerateAddressesInFile(_GoString_ p0, ulong p1, SWIGTYPE_p_PasswordReader__Handle p2, SWIGTYPE_p_GoSlice_ p3) { + uint ret = skycoinPINVOKE.SKY_cli_GenerateAddressesInFile(_GoString_.getCPtr(p0), p1, SWIGTYPE_p_PasswordReader__Handle.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cli_FormatAddressesAsJSON(GoSlice p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_FormatAddressesAsJSON(GoSlice.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cli_FormatAddressesAsJoinedArray(GoSlice p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_FormatAddressesAsJoinedArray(GoSlice.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cli_AddressesToStrings(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_AddressesToStrings(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_AddUint64(ulong p0, ulong p1, SWIGTYPE_p_unsigned_long_long p2) { + uint ret = skycoinPINVOKE.SKY_coin_AddUint64(p0, p1, SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); + return ret; + } + + public static uint SKY_coin_Uint64ToInt64(ulong p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Uint64ToInt64(p0, SWIGTYPE_p_long_long.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_Int64ToUint64(long p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Int64ToUint64(p0, SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_PubKeySlice_Len(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_cipher_PubKeySlice_Len(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_PubKeySlice_Less(SWIGTYPE_p_GoSlice_ p0, long p1, long p2, SWIGTYPE_p_unsigned_char p3) { + uint ret = skycoinPINVOKE.SKY_cipher_PubKeySlice_Less(SWIGTYPE_p_GoSlice_.getCPtr(p0), p1, p2, SWIGTYPE_p_unsigned_char.getCPtr(p3)); + return ret; + } + + public static uint SKY_cipher_PubKeySlice_Swap(SWIGTYPE_p_GoSlice_ p0, long p1, long p2) { + uint ret = skycoinPINVOKE.SKY_cipher_PubKeySlice_Swap(SWIGTYPE_p_GoSlice_.getCPtr(p0), p1, p2); + return ret; + } + + public static uint SKY_cipher_RandByte(long p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_RandByte(p0, SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_NewPubKey(GoSlice p0, SWIGTYPE_p_a_33__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_NewPubKey(GoSlice.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_PubKeyFromHex(_GoString_ p0, SWIGTYPE_p_a_33__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_PubKeyFromHex(_GoString_.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_PubKeyFromSecKey(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_a_33__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_PubKeyFromSecKey(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_PubKeyFromSig(SWIGTYPE_p_a_65__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_a_33__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_cipher_PubKeyFromSig(SWIGTYPE_p_a_65__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p2)); + return ret; + } + + public static uint SKY_cipher_PubKey_Verify(SWIGTYPE_p_a_33__GoUint8_ p0) { + uint ret = skycoinPINVOKE.SKY_cipher_PubKey_Verify(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0)); + return ret; + } + + public static uint SKY_cipher_PubKey_Hex(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_PubKey_Hex(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_PubKey_ToAddressHash(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_20__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_PubKey_ToAddressHash(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_20__GoUint8_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_NewSecKey(GoSlice p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_NewSecKey(GoSlice.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_SecKeyFromHex(_GoString_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_SecKeyFromHex(_GoString_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_SecKey_Verify(SWIGTYPE_p_a_32__GoUint8_ p0) { + uint ret = skycoinPINVOKE.SKY_cipher_SecKey_Verify(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0)); + return ret; + } + + public static uint SKY_cipher_SecKey_Hex(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_SecKey_Hex(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_ECDH(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_cipher_ECDH(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + return ret; + } + + public static uint SKY_cipher_NewSig(GoSlice p0, SWIGTYPE_p_a_65__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_NewSig(GoSlice.getCPtr(p0), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_SigFromHex(_GoString_ p0, SWIGTYPE_p_a_65__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_SigFromHex(_GoString_.getCPtr(p0), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_Sig_Hex(SWIGTYPE_p_a_65__GoUint8_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_Sig_Hex(SWIGTYPE_p_a_65__GoUint8_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_SignHash(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_a_65__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_cipher_SignHash(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); + return ret; + } + + public static uint SKY_cipher_ChkSig(cipher__Address p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_a_65__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_cipher_ChkSig(cipher__Address.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); + return ret; + } + + public static uint SKY_cipher_VerifySignedHash(SWIGTYPE_p_a_65__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_VerifySignedHash(SWIGTYPE_p_a_65__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_VerifySignature(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_65__GoUint8_ p1, SWIGTYPE_p_a_32__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_cipher_VerifySignature(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); + return ret; + } + + public static uint SKY_cipher_GenerateDeterministicKeyPair(GoSlice p0, SWIGTYPE_p_a_33__GoUint8_ p1, SWIGTYPE_p_a_32__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_cipher_GenerateDeterministicKeyPair(GoSlice.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_DeterministicKeyPairIterator(GoSlice p0, SWIGTYPE_p_GoSlice_ p1, SWIGTYPE_p_a_33__GoUint8_ p2, SWIGTYPE_p_a_32__GoUint8_ p3) { + uint ret = skycoinPINVOKE.SKY_cipher_DeterministicKeyPairIterator(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p2), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_GenerateDeterministicKeyPairs(GoSlice p0, long p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_cipher_GenerateDeterministicKeyPairs(GoSlice.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_GenerateDeterministicKeyPairsSeed(GoSlice p0, long p1, SWIGTYPE_p_GoSlice_ p2, SWIGTYPE_p_GoSlice_ p3) { + uint ret = skycoinPINVOKE.SKY_cipher_GenerateDeterministicKeyPairsSeed(GoSlice.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_TestSecKey(SWIGTYPE_p_a_32__GoUint8_ p0) { + uint ret = skycoinPINVOKE.SKY_cipher_TestSecKey(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0)); + return ret; + } + + public static uint SKY_cipher_TestSecKeyHash(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_TestSecKeyHash(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_GenerateKeyPair(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_GenerateKeyPair(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_Signature_Create(SWIGTYPE_p_Signature_Handle p0) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Create(SWIGTYPE_p_Signature_Handle.getCPtr(p0)); + return ret; + } + + public static uint SKY_secp256k1go_Signature_GetR(SWIGTYPE_p_Signature_Handle p0, SWIGTYPE_p_Number_Handle p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_GetR(SWIGTYPE_p_Signature_Handle.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_Signature_GetS(SWIGTYPE_p_Signature_Handle p0, SWIGTYPE_p_Number_Handle p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_GetS(SWIGTYPE_p_Signature_Handle.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_Signature_Print(SWIGTYPE_p_Signature_Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Print(SWIGTYPE_p_Signature_Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_Signature_Verify(SWIGTYPE_p_Signature_Handle p0, secp256k1go__XY p1, SWIGTYPE_p_Number_Handle p2, SWIGTYPE_p_unsigned_char p3) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Verify(SWIGTYPE_p_Signature_Handle.getCPtr(p0), secp256k1go__XY.getCPtr(p1), SWIGTYPE_p_Number_Handle.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); + return ret; + } + + public static uint SKY_secp256k1go_Signature_Recover(SWIGTYPE_p_Signature_Handle p0, secp256k1go__XY p1, SWIGTYPE_p_Number_Handle p2, long p3, SWIGTYPE_p_unsigned_char p4) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Recover(SWIGTYPE_p_Signature_Handle.getCPtr(p0), secp256k1go__XY.getCPtr(p1), SWIGTYPE_p_Number_Handle.getCPtr(p2), p3, SWIGTYPE_p_unsigned_char.getCPtr(p4)); + return ret; + } + + public static uint SKY_secp256k1go_Signature_Sign(SWIGTYPE_p_Signature_Handle p0, SWIGTYPE_p_Number_Handle p1, SWIGTYPE_p_Number_Handle p2, SWIGTYPE_p_Number_Handle p3, SWIGTYPE_p_long_long p4, SWIGTYPE_p_long_long p5) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Sign(SWIGTYPE_p_Signature_Handle.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1), SWIGTYPE_p_Number_Handle.getCPtr(p2), SWIGTYPE_p_Number_Handle.getCPtr(p3), SWIGTYPE_p_long_long.getCPtr(p4), SWIGTYPE_p_long_long.getCPtr(p5)); + return ret; + } + + public static uint SKY_secp256k1go_Signature_ParseBytes(SWIGTYPE_p_Signature_Handle p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_ParseBytes(SWIGTYPE_p_Signature_Handle.getCPtr(p0), GoSlice.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_Signature_Bytes(SWIGTYPE_p_Signature_Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Bytes(SWIGTYPE_p_Signature_Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cli_App_Run(SWIGTYPE_p_App__Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_App_Run(SWIGTYPE_p_App__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cli_Config_GetCoin(SWIGTYPE_p_Config__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_Config_GetCoin(SWIGTYPE_p_Config__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cli_Config_GetRPCAddress(SWIGTYPE_p_Config__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_Config_GetRPCAddress(SWIGTYPE_p_Config__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cli_RPCClientFromApp(SWIGTYPE_p_App__Handle p0, SWIGTYPE_p_WebRpcClient__Handle p1) { + uint ret = skycoinPINVOKE.SKY_cli_RPCClientFromApp(SWIGTYPE_p_App__Handle.getCPtr(p0), SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p1)); + return ret; + } + + public static uint SKY_cli_Getenv(_GoString_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_Getenv(_GoString_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cli_Setenv(_GoString_ p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_Setenv(_GoString_.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_poly1305_Verify(SWIGTYPE_p_GoSlice_ p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2, SWIGTYPE_p_unsigned_char p3) { + uint ret = skycoinPINVOKE.SKY_poly1305_Verify(SWIGTYPE_p_GoSlice_.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_NewBalance(ulong p0, ulong p1, wallet__Balance p2) { + uint ret = skycoinPINVOKE.SKY_wallet_NewBalance(p0, p1, wallet__Balance.getCPtr(p2)); + return ret; + } + + public static uint SKY_wallet_NewBalanceFromUxOut(ulong p0, coin__UxOut p1, wallet__Balance p2) { + uint ret = skycoinPINVOKE.SKY_wallet_NewBalanceFromUxOut(p0, coin__UxOut.getCPtr(p1), wallet__Balance.getCPtr(p2)); + return ret; + } + + public static uint SKY_wallet_Balance_Add(wallet__Balance p0, wallet__Balance p1, wallet__Balance p2) { + uint ret = skycoinPINVOKE.SKY_wallet_Balance_Add(wallet__Balance.getCPtr(p0), wallet__Balance.getCPtr(p1), wallet__Balance.getCPtr(p2)); + return ret; + } + + public static uint SKY_wallet_Balance_Sub(wallet__Balance p0, wallet__Balance p1, wallet__Balance p2) { + uint ret = skycoinPINVOKE.SKY_wallet_Balance_Sub(wallet__Balance.getCPtr(p0), wallet__Balance.getCPtr(p1), wallet__Balance.getCPtr(p2)); + return ret; + } + + public static uint SKY_wallet_Balance_Equals(wallet__Balance p0, wallet__Balance p1, SWIGTYPE_p_unsigned_char p2) { + uint ret = skycoinPINVOKE.SKY_wallet_Balance_Equals(wallet__Balance.getCPtr(p0), wallet__Balance.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); + return ret; + } + + public static uint SKY_wallet_Balance_IsZero(wallet__Balance p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Balance_IsZero(wallet__Balance.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + return ret; + } + + public static uint SKY_utc_UnixNow(SWIGTYPE_p_long_long p0) { + uint ret = skycoinPINVOKE.SKY_utc_UnixNow(SWIGTYPE_p_long_long.getCPtr(p0)); + return ret; + } + + public static uint SKY_httphelper_Address_UnmarshalJSON(httphelper__Address p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_httphelper_Address_UnmarshalJSON(httphelper__Address.getCPtr(p0), GoSlice.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_httphelper_Address_MarshalJSON(httphelper__Address p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_httphelper_Address_MarshalJSON(httphelper__Address.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_httphelper_Coins_UnmarshalJSON(SWIGTYPE_p_GoUint64_ p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_httphelper_Coins_UnmarshalJSON(SWIGTYPE_p_GoUint64_.getCPtr(p0), GoSlice.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_httphelper_Coins_MarshalJSON(SWIGTYPE_p_GoUint64_ p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_httphelper_Coins_MarshalJSON(SWIGTYPE_p_GoUint64_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_httphelper_Coins_Value(SWIGTYPE_p_GoUint64_ p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_httphelper_Coins_Value(SWIGTYPE_p_GoUint64_.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + return ret; + } + + public static uint SKY_httphelper_Hours_UnmarshalJSON(SWIGTYPE_p_GoUint64_ p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_httphelper_Hours_UnmarshalJSON(SWIGTYPE_p_GoUint64_.getCPtr(p0), GoSlice.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_httphelper_Hours_MarshalJSON(SWIGTYPE_p_GoUint64_ p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_httphelper_Hours_MarshalJSON(SWIGTYPE_p_GoUint64_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_httphelper_Hours_Value(SWIGTYPE_p_GoUint64_ p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_httphelper_Hours_Value(SWIGTYPE_p_GoUint64_.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + return ret; + } + + public static uint SKY_wallet_Entry_Verify(wallet__Entry p0) { + uint ret = skycoinPINVOKE.SKY_wallet_Entry_Verify(wallet__Entry.getCPtr(p0)); + return ret; + } + + public static uint SKY_wallet_Entry_VerifyPublic(wallet__Entry p0) { + uint ret = skycoinPINVOKE.SKY_wallet_Entry_VerifyPublic(wallet__Entry.getCPtr(p0)); + return ret; + } + + public static uint SKY_wallet_CreateAddresses(_GoString_ p0, _GoString_ p1, long p2, byte p3, SWIGTYPE_p_ReadableWallet__Handle p4) { + uint ret = skycoinPINVOKE.SKY_wallet_CreateAddresses(_GoString_.getCPtr(p0), _GoString_.getCPtr(p1), p2, p3, SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p4)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_GetSkycoinWalletEntry(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_ReadableEntry__Handle p2) { + uint ret = skycoinPINVOKE.SKY_wallet_GetSkycoinWalletEntry(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p2)); + return ret; + } + + public static uint SKY_wallet_GetBitcoinWalletEntry(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_ReadableEntry__Handle p2) { + uint ret = skycoinPINVOKE.SKY_wallet_GetBitcoinWalletEntry(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p2)); + return ret; + } + + public static uint SKY_secp256k1go_XYZ_Print(secp256k1go__XYZ p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_Print(secp256k1go__XYZ.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_XYZ_SetXY(secp256k1go__XYZ p0, secp256k1go__XY p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_SetXY(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XY.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_XYZ_IsInfinity(secp256k1go__XYZ p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_IsInfinity(secp256k1go__XYZ.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_XYZ_IsValid(secp256k1go__XYZ p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_IsValid(secp256k1go__XYZ.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_XYZ_Normalize(secp256k1go__XYZ p0) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_Normalize(secp256k1go__XYZ.getCPtr(p0)); + return ret; + } + + public static uint SKY_secp256k1go_XYZ_Equals(secp256k1go__XYZ p0, secp256k1go__XYZ p1, SWIGTYPE_p_unsigned_char p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_Equals(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); + return ret; + } + + public static uint SKY_secp256k1go_XYZ_ECmult(secp256k1go__XYZ p0, secp256k1go__XYZ p1, SWIGTYPE_p_Number_Handle p2, SWIGTYPE_p_Number_Handle p3) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_ECmult(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1), SWIGTYPE_p_Number_Handle.getCPtr(p2), SWIGTYPE_p_Number_Handle.getCPtr(p3)); + return ret; + } + + public static uint SKY_secp256k1go_XYZ_Neg(secp256k1go__XYZ p0, secp256k1go__XYZ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_Neg(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_XYZ_Double(secp256k1go__XYZ p0, secp256k1go__XYZ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_Double(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_XYZ_AddXY(secp256k1go__XYZ p0, secp256k1go__XYZ p1, secp256k1go__XY p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_AddXY(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1), secp256k1go__XY.getCPtr(p2)); + return ret; + } + + public static uint SKY_secp256k1go_XYZ_Add(secp256k1go__XYZ p0, secp256k1go__XYZ p1, secp256k1go__XYZ p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_Add(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1), secp256k1go__XYZ.getCPtr(p2)); + return ret; + } + + public static uint SKY_secp256k1go_ECmultGen(secp256k1go__XYZ p0, SWIGTYPE_p_Number_Handle p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_ECmultGen(secp256k1go__XYZ.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1)); + return ret; + } + + public static uint SKY_encrypt_Sha256Xor_Encrypt(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_encrypt_Sha256Xor_Encrypt(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_encrypt_Sha256Xor_Decrypt(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_encrypt_Sha256Xor_Decrypt(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_droplet_FromString(_GoString_ p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_droplet_FromString(_GoString_.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_droplet_ToString(ulong p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_droplet_ToString(p0, SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_wallet_CryptoTypeFromString(_GoString_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_CryptoTypeFromString(_GoString_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static void SKY_handle_close(SWIGTYPE_p_Handle p0) { + skycoinPINVOKE.SKY_handle_close(SWIGTYPE_p_Handle.getCPtr(p0)); + } + + public static uint SKY_handle_copy(SWIGTYPE_p_Handle p0) { + uint ret = skycoinPINVOKE.SKY_handle_copy(SWIGTYPE_p_Handle.getCPtr(p0)); + return ret; + } + + public static uint SKY_logging_EnableColors() { + uint ret = skycoinPINVOKE.SKY_logging_EnableColors(); + return ret; + } + + public static uint SKY_logging_DisableColors() { + uint ret = skycoinPINVOKE.SKY_logging_DisableColors(); + return ret; + } + + public static uint SKY_logging_Disable() { + uint ret = skycoinPINVOKE.SKY_logging_Disable(); + return ret; + } + + public static uint SKY_map_Get(SWIGTYPE_p_GoStringMap_ p0, _GoString_ p1, SWIGTYPE_p_GoString_ p2) { + uint ret = skycoinPINVOKE.SKY_map_Get(SWIGTYPE_p_GoStringMap_.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static byte SKY_map_HasKey(SWIGTYPE_p_GoStringMap_ p0, _GoString_ p1) { + byte ret = skycoinPINVOKE.SKY_map_HasKey(SWIGTYPE_p_GoStringMap_.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_map_Close(SWIGTYPE_p_GoStringMap_ p0) { + uint ret = skycoinPINVOKE.SKY_map_Close(SWIGTYPE_p_GoStringMap_.getCPtr(p0)); + return ret; + } + + public static uint SKY_cipher_DecodeBase58Address(_GoString_ p0, cipher__Address p1) { + uint ret = skycoinPINVOKE.SKY_cipher_DecodeBase58Address(_GoString_.getCPtr(p0), cipher__Address.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_AddressFromBytes(GoSlice p0, cipher__Address p1) { + uint ret = skycoinPINVOKE.SKY_cipher_AddressFromBytes(GoSlice.getCPtr(p0), cipher__Address.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_AddressFromPubKey(SWIGTYPE_p_a_33__GoUint8_ p0, cipher__Address p1) { + uint ret = skycoinPINVOKE.SKY_cipher_AddressFromPubKey(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), cipher__Address.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_AddressFromSecKey(SWIGTYPE_p_a_32__GoUint8_ p0, cipher__Address p1) { + uint ret = skycoinPINVOKE.SKY_cipher_AddressFromSecKey(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), cipher__Address.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_BitcoinDecodeBase58Address(_GoString_ p0, cipher__Address p1) { + uint ret = skycoinPINVOKE.SKY_cipher_BitcoinDecodeBase58Address(_GoString_.getCPtr(p0), cipher__Address.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_Address_Null(cipher__Address p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_cipher_Address_Null(cipher__Address.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_Address_Bytes(cipher__Address p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_Address_Bytes(cipher__Address.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_Address_BitcoinBytes(cipher__Address p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_Address_BitcoinBytes(cipher__Address.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_Address_Verify(cipher__Address p0, SWIGTYPE_p_a_33__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_Address_Verify(cipher__Address.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_Address_String(cipher__Address p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_Address_String(cipher__Address.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_Address_BitcoinString(cipher__Address p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_Address_BitcoinString(cipher__Address.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_Address_Checksum(cipher__Address p0, SWIGTYPE_p_a_4__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_Address_Checksum(cipher__Address.getCPtr(p0), SWIGTYPE_p_a_4__GoUint8_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_Address_BitcoinChecksum(cipher__Address p0, SWIGTYPE_p_a_4__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_Address_BitcoinChecksum(cipher__Address.getCPtr(p0), SWIGTYPE_p_a_4__GoUint8_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_BitcoinAddressFromPubkey(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_BitcoinAddressFromPubkey(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_BitcoinWalletImportFormatFromSeckey(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_BitcoinWalletImportFormatFromSeckey(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_BitcoinAddressFromBytes(GoSlice p0, cipher__Address p1) { + uint ret = skycoinPINVOKE.SKY_cipher_BitcoinAddressFromBytes(GoSlice.getCPtr(p0), cipher__Address.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_SecKeyFromWalletImportFormat(_GoString_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_SecKeyFromWalletImportFormat(_GoString_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_JsonEncode_Handle(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_JsonEncode_Handle(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_Handle_Progress_GetCurrent(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_Handle_Progress_GetCurrent(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + return ret; + } + + public static uint SKY_Handle_Block_GetHeadSeq(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_Handle_Block_GetHeadSeq(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + return ret; + } + + public static uint SKY_Handle_Block_GetHeadHash(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_Handle_Block_GetHeadHash(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_Handle_Block_GetPreviousBlockHash(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_Handle_Block_GetPreviousBlockHash(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_Handle_Blocks_GetAt(SWIGTYPE_p_Handle p0, ulong p1) { + uint ret = skycoinPINVOKE.SKY_Handle_Blocks_GetAt(SWIGTYPE_p_Handle.getCPtr(p0), p1); + return ret; + } + + public static uint SKY_Handle_Blocks_GetCount(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_Handle_Blocks_GetCount(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + return ret; + } + + public static uint SKY_Handle_Connections_GetCount(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_Handle_Connections_GetCount(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + return ret; + } + + public static uint SKY_Handle_Strings_GetCount(SWIGTYPE_p_Strings__Handle p0, SWIGTYPE_p_unsigned_int p1) { + uint ret = skycoinPINVOKE.SKY_Handle_Strings_GetCount(SWIGTYPE_p_Strings__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); + return ret; + } + + public static uint SKY_Handle_Strings_Sort(SWIGTYPE_p_Strings__Handle p0) { + uint ret = skycoinPINVOKE.SKY_Handle_Strings_Sort(SWIGTYPE_p_Strings__Handle.getCPtr(p0)); + return ret; + } + + public static uint SKY_Handle_Strings_GetAt(SWIGTYPE_p_Strings__Handle p0, long p1, SWIGTYPE_p_GoString_ p2) { + uint ret = skycoinPINVOKE.SKY_Handle_Strings_GetAt(SWIGTYPE_p_Strings__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoString_.getCPtr(p2)); + return ret; + } + + public static uint SKY_api_Handle_Client_GetWalletDir(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletDir(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_api_Handle_Client_GetWalletFileName(SWIGTYPE_p_WalletResponse__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletFileName(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_api_Handle_Client_GetWalletLabel(SWIGTYPE_p_WalletResponse__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletLabel(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_api_Handle_Client_GetWalletFullPath(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_WalletResponse__Handle p1, SWIGTYPE_p_GoString_ p2) { + uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletFullPath(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); + return ret; + } + + public static uint SKY_api_Handle_GetWalletMeta(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoStringMap_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletMeta(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoStringMap_.getCPtr(p1)); + return ret; + } + + public static uint SKY_api_Handle_GetWalletEntriesCount(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_unsigned_int p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletEntriesCount(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); + return ret; + } + + public static uint SKY_api_Handle_Client_GetWalletResponseEntriesCount(SWIGTYPE_p_WalletResponse__Handle p0, SWIGTYPE_p_unsigned_int p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletResponseEntriesCount(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); + return ret; + } + + public static uint SKY_api_Handle_WalletGetEntry(SWIGTYPE_p_Wallet__Handle p0, uint p1, cipher__Address p2, SWIGTYPE_p_a_33__GoUint8_ p3) { + uint ret = skycoinPINVOKE.SKY_api_Handle_WalletGetEntry(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), p1, cipher__Address.getCPtr(p2), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p3)); + return ret; + } + + public static uint SKY_api_Handle_WalletResponseGetEntry(SWIGTYPE_p_WalletResponse__Handle p0, uint p1, SWIGTYPE_p_GoString_ p2, SWIGTYPE_p_GoString_ p3) { + uint ret = skycoinPINVOKE.SKY_api_Handle_WalletResponseGetEntry(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoString_.getCPtr(p2), SWIGTYPE_p_GoString_.getCPtr(p3)); + return ret; + } + + public static uint SKY_api_Handle_WalletResponseIsEncrypted(SWIGTYPE_p_WalletResponse__Handle p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_WalletResponseIsEncrypted(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + return ret; + } + + public static uint SKY_api_Handle_WalletResponseGetCryptoType(SWIGTYPE_p_WalletResponse__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_WalletResponseGetCryptoType(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_api_Handle_WalletsResponseGetCount(SWIGTYPE_p_Wallets__Handle p0, SWIGTYPE_p_unsigned_int p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_WalletsResponseGetCount(SWIGTYPE_p_Wallets__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); + return ret; + } + + public static uint SKY_api_Handle_WalletsResponseGetAt(SWIGTYPE_p_Wallets__Handle p0, uint p1, SWIGTYPE_p_WalletResponse__Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Handle_WalletsResponseGetAt(SWIGTYPE_p_Wallets__Handle.getCPtr(p0), p1, SWIGTYPE_p_WalletResponse__Handle.getCPtr(p2)); + return ret; + } + + public static uint SKY_api_Handle_GetWalletFolderAddress(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletFolderAddress(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_api_Handle_GetWalletSeed(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletSeed(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_api_Handle_GetWalletLastSeed(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletLastSeed(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_api_Handle_GetBuildInfoData(SWIGTYPE_p_BuildInfo_Handle p0, SWIGTYPE_p_GoString_ p1, SWIGTYPE_p_GoString_ p2, SWIGTYPE_p_GoString_ p3) { + uint ret = skycoinPINVOKE.SKY_api_Handle_GetBuildInfoData(SWIGTYPE_p_BuildInfo_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2), SWIGTYPE_p_GoString_.getCPtr(p3)); + return ret; + } + + public static uint SKY_ripemd160_New(SWIGTYPE_p_Hash_Handle p0) { + uint ret = skycoinPINVOKE.SKY_ripemd160_New(SWIGTYPE_p_Hash_Handle.getCPtr(p0)); + return ret; + } + + public static uint SKY_ripemd160_Write(SWIGTYPE_p_Hash_Handle p0, GoSlice p1, SWIGTYPE_p_long_long p2) { + uint ret = skycoinPINVOKE.SKY_ripemd160_Write(SWIGTYPE_p_Hash_Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_long_long.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_ripemd160_Sum(SWIGTYPE_p_Hash_Handle p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_ripemd160_Sum(SWIGTYPE_p_Hash_Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_Number_Create(SWIGTYPE_p_Number_Handle p0) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_Create(SWIGTYPE_p_Number_Handle.getCPtr(p0)); + return ret; + } + + public static uint SKY_secp256k1go_Number_Print(SWIGTYPE_p_Number_Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_Print(SWIGTYPE_p_Number_Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_Number_SetHex(SWIGTYPE_p_Number_Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_SetHex(SWIGTYPE_p_Number_Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_Number_IsOdd(SWIGTYPE_p_Number_Handle p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_IsOdd(SWIGTYPE_p_Number_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_Number_IsEqual(SWIGTYPE_p_Number_Handle p0, SWIGTYPE_p_Number_Handle p1, SWIGTYPE_p_unsigned_char p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_IsEqual(SWIGTYPE_p_Number_Handle.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); + return ret; + } + + public static uint SKY_coin_UxOut_Hash(coin__UxOut p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_UxOut_Hash(coin__UxOut.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_UxOut_SnapshotHash(coin__UxOut p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_UxOut_SnapshotHash(coin__UxOut.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_UxBody_Hash(coin__UxBody p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_UxBody_Hash(coin__UxBody.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_UxOut_CoinHours(coin__UxOut p0, ulong p1, SWIGTYPE_p_unsigned_long_long p2) { + uint ret = skycoinPINVOKE.SKY_coin_UxOut_CoinHours(coin__UxOut.getCPtr(p0), p1, SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); + return ret; + } + + public static uint SKY_coin_UxArray_Hashes(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Hashes(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_UxArray_HasDupes(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_coin_UxArray_HasDupes(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_UxArray_Sort(SWIGTYPE_p_GoSlice_ p0) { + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Sort(SWIGTYPE_p_GoSlice_.getCPtr(p0)); + return ret; + } + + public static uint SKY_coin_UxArray_Len(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Len(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_UxArray_Less(SWIGTYPE_p_GoSlice_ p0, long p1, long p2, SWIGTYPE_p_unsigned_char p3) { + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Less(SWIGTYPE_p_GoSlice_.getCPtr(p0), p1, p2, SWIGTYPE_p_unsigned_char.getCPtr(p3)); + return ret; + } + + public static uint SKY_coin_UxArray_Swap(SWIGTYPE_p_GoSlice_ p0, long p1, long p2) { + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Swap(SWIGTYPE_p_GoSlice_.getCPtr(p0), p1, p2); + return ret; + } + + public static uint SKY_coin_UxArray_Coins(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Coins(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_UxArray_CoinHours(SWIGTYPE_p_GoSlice_ p0, ulong p1, SWIGTYPE_p_unsigned_long_long p2) { + uint ret = skycoinPINVOKE.SKY_coin_UxArray_CoinHours(SWIGTYPE_p_GoSlice_.getCPtr(p0), p1, SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); + return ret; + } + + public static uint SKY_coin_UxArray_Sub(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_GoSlice_ p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Sub(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + return ret; + } + + public static uint SKY_coin_UxArray_Add(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_GoSlice_ p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Add(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + return ret; + } + + public static uint SKY_coin_NewAddressUxOuts(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_AddressUxOuts_Handle p1) { + uint ret = skycoinPINVOKE.SKY_coin_NewAddressUxOuts(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_AddressUxOuts_Keys(SWIGTYPE_p_AddressUxOuts_Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Keys(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_AddressUxOuts_Flatten(SWIGTYPE_p_AddressUxOuts_Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Flatten(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_AddressUxOuts_Sub(SWIGTYPE_p_AddressUxOuts_Handle p0, SWIGTYPE_p_AddressUxOuts_Handle p1, SWIGTYPE_p_AddressUxOuts_Handle p2) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Sub(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p1), SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_AddressUxOuts_Add(SWIGTYPE_p_AddressUxOuts_Handle p0, SWIGTYPE_p_AddressUxOuts_Handle p1, SWIGTYPE_p_AddressUxOuts_Handle p2) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Add(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p1), SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_AddressUxOuts_Get(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher__Address p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Get(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_AddressUxOuts_HasKey(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher__Address p1, SWIGTYPE_p_unsigned_char p2) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_HasKey(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_AddressUxOuts_GetOutputLength(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher__Address p1, SWIGTYPE_p_long_long p2) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_GetOutputLength(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), SWIGTYPE_p_long_long.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_AddressUxOuts_Length(SWIGTYPE_p_AddressUxOuts_Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Length(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_AddressUxOuts_Set(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher__Address p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Set(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_encrypt_ScryptChacha20poly1305_Encrypt(encrypt__ScryptChacha20poly1305 p0, GoSlice p1, GoSlice p2, SWIGTYPE_p_GoSlice_ p3) { + uint ret = skycoinPINVOKE.SKY_encrypt_ScryptChacha20poly1305_Encrypt(encrypt__ScryptChacha20poly1305.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_encrypt_ScryptChacha20poly1305_Decrypt(encrypt__ScryptChacha20poly1305 p0, GoSlice p1, GoSlice p2, SWIGTYPE_p_GoSlice_ p3) { + uint ret = skycoinPINVOKE.SKY_encrypt_ScryptChacha20poly1305_Decrypt(encrypt__ScryptChacha20poly1305.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_wallet_CreateOptionsHandle(_GoString_ p0, _GoString_ p1, _GoString_ p2, byte p3, _GoString_ p4, _GoString_ p5, ulong p6, SWIGTYPE_p_Options__Handle p7) { + uint ret = skycoinPINVOKE.SKY_wallet_CreateOptionsHandle(_GoString_.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), p3, _GoString_.getCPtr(p4), _GoString_.getCPtr(p5), p6, SWIGTYPE_p_Options__Handle.getCPtr(p7)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cli_AddPrivateKey(SWIGTYPE_p_Wallet__Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_AddPrivateKey(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cli_AddPrivateKeyToFile(_GoString_ p0, _GoString_ p1, SWIGTYPE_p_PasswordReader__Handle p2) { + uint ret = skycoinPINVOKE.SKY_cli_AddPrivateKeyToFile(_GoString_.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_PasswordReader__Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1_GenerateKeyPair(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1_GenerateKeyPair(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1_PubkeyFromSeckey(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1_PubkeyFromSeckey(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1_UncompressPubkey(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1_UncompressPubkey(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1_UncompressedPubkeyFromSeckey(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1_UncompressedPubkeyFromSeckey(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1_Secp256k1Hash(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1_Secp256k1Hash(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1_GenerateDeterministicKeyPair(GoSlice p0, SWIGTYPE_p_GoSlice_ p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1_GenerateDeterministicKeyPair(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1_DeterministicKeyPairIterator(GoSlice p0, SWIGTYPE_p_GoSlice_ p1, SWIGTYPE_p_GoSlice_ p2, SWIGTYPE_p_GoSlice_ p3) { + uint ret = skycoinPINVOKE.SKY_secp256k1_DeterministicKeyPairIterator(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1_Sign(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1_Sign(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1_SignDeterministic(GoSlice p0, GoSlice p1, GoSlice p2, SWIGTYPE_p_GoSlice_ p3) { + uint ret = skycoinPINVOKE.SKY_secp256k1_SignDeterministic(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1_VerifySeckey(GoSlice p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1_VerifySeckey(GoSlice.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1_VerifyPubkey(GoSlice p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1_VerifyPubkey(GoSlice.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1_VerifySignatureValidity(GoSlice p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1_VerifySignatureValidity(GoSlice.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1_VerifySignature(GoSlice p0, GoSlice p1, GoSlice p2, SWIGTYPE_p_long_long p3) { + uint ret = skycoinPINVOKE.SKY_secp256k1_VerifySignature(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), SWIGTYPE_p_long_long.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1_SignatureErrorString(GoSlice p0, GoSlice p1, GoSlice p2, SWIGTYPE_p_GoString_ p3) { + uint ret = skycoinPINVOKE.SKY_secp256k1_SignatureErrorString(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), SWIGTYPE_p_GoString_.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1_RecoverPubkey(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1_RecoverPubkey(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1_ECDH(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1_ECDH(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_apputil_CatchInterruptPanic() { + uint ret = skycoinPINVOKE.SKY_apputil_CatchInterruptPanic(); + return ret; + } + + public static uint SKY_apputil_CatchDebug() { + uint ret = skycoinPINVOKE.SKY_apputil_CatchDebug(); + return ret; + } + + public static uint SKY_apputil_PrintProgramStatus() { + uint ret = skycoinPINVOKE.SKY_apputil_PrintProgramStatus(); + return ret; + } + + public static uint SKY_cert_CreateCertIfNotExists(_GoString_ p0, _GoString_ p1, _GoString_ p2, _GoString_ p3) { + uint ret = skycoinPINVOKE.SKY_cert_CreateCertIfNotExists(_GoString_.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), _GoString_.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_fee_VerifyTransactionFee(SWIGTYPE_p_Transaction__Handle p0, ulong p1) { + uint ret = skycoinPINVOKE.SKY_fee_VerifyTransactionFee(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); + return ret; + } + + public static uint SKY_fee_VerifyTransactionFeeForHours(ulong p0, ulong p1) { + uint ret = skycoinPINVOKE.SKY_fee_VerifyTransactionFeeForHours(p0, p1); + return ret; + } + + public static uint SKY_fee_RequiredFee(ulong p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_fee_RequiredFee(p0, SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + return ret; + } + + public static uint SKY_fee_RemainingHours(ulong p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_fee_RemainingHours(p0, SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + return ret; + } + + public static uint SKY_fee_TransactionFee(SWIGTYPE_p_Transaction__Handle p0, ulong p1, SWIGTYPE_p_GoSlice_ p2, SWIGTYPE_p_unsigned_long_long p3) { + uint ret = skycoinPINVOKE.SKY_fee_TransactionFee(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2), SWIGTYPE_p_unsigned_long_long.getCPtr(p3)); + return ret; + } + + public static uint SKY_cli_LoadConfig(SWIGTYPE_p_Config__Handle p0) { + uint ret = skycoinPINVOKE.SKY_cli_LoadConfig(SWIGTYPE_p_Config__Handle.getCPtr(p0)); + return ret; + } + + public static uint SKY_cli_Config_FullWalletPath(SWIGTYPE_p_Config__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_Config_FullWalletPath(SWIGTYPE_p_Config__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cli_Config_FullDBPath(SWIGTYPE_p_Config__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_Config_FullDBPath(SWIGTYPE_p_Config__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cli_NewApp(SWIGTYPE_p_Config__Handle p0, SWIGTYPE_p_App__Handle p1) { + uint ret = skycoinPINVOKE.SKY_cli_NewApp(SWIGTYPE_p_Config__Handle.getCPtr(p0), SWIGTYPE_p_App__Handle.getCPtr(p1)); + return ret; + } + + public static uint SKY_cli_RPCClientFromContext(SWIGTYPE_p_Context__Handle p0, SWIGTYPE_p_WebRpcClient__Handle p1) { + uint ret = skycoinPINVOKE.SKY_cli_RPCClientFromContext(SWIGTYPE_p_Context__Handle.getCPtr(p0), SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p1)); + return ret; + } + + public static uint SKY_cli_ConfigFromContext(SWIGTYPE_p_Context__Handle p0, SWIGTYPE_p_Config__Handle p1) { + uint ret = skycoinPINVOKE.SKY_cli_ConfigFromContext(SWIGTYPE_p_Context__Handle.getCPtr(p0), SWIGTYPE_p_Config__Handle.getCPtr(p1)); + return ret; + } + + public static uint SKY_cli_PasswordFromBytes_Password(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_PasswordFromBytes_Password(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cli_PasswordFromTerm_Password(SWIGTYPE_p_GoSlice_ p0) { + uint ret = skycoinPINVOKE.SKY_cli_PasswordFromTerm_Password(SWIGTYPE_p_GoSlice_.getCPtr(p0)); + return ret; + } + + public static uint SKY_cli_CreateRawTxFromWallet(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, _GoString_ p2, GoSlice p3, SWIGTYPE_p_PasswordReader__Handle p4, SWIGTYPE_p_Transaction__Handle p5) { + uint ret = skycoinPINVOKE.SKY_cli_CreateRawTxFromWallet(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), GoSlice.getCPtr(p3), SWIGTYPE_p_PasswordReader__Handle.getCPtr(p4), SWIGTYPE_p_Transaction__Handle.getCPtr(p5)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cli_CreateRawTxFromAddress(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, _GoString_ p2, _GoString_ p3, GoSlice p4, SWIGTYPE_p_PasswordReader__Handle p5, SWIGTYPE_p_Transaction__Handle p6) { + uint ret = skycoinPINVOKE.SKY_cli_CreateRawTxFromAddress(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), _GoString_.getCPtr(p3), GoSlice.getCPtr(p4), SWIGTYPE_p_PasswordReader__Handle.getCPtr(p5), SWIGTYPE_p_Transaction__Handle.getCPtr(p6)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cli_CreateRawTx(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_Wallet__Handle p1, GoSlice p2, _GoString_ p3, GoSlice p4, GoSlice p5, SWIGTYPE_p_Transaction__Handle p6) { + uint ret = skycoinPINVOKE.SKY_cli_CreateRawTx(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_Wallet__Handle.getCPtr(p1), GoSlice.getCPtr(p2), _GoString_.getCPtr(p3), GoSlice.getCPtr(p4), GoSlice.getCPtr(p5), SWIGTYPE_p_Transaction__Handle.getCPtr(p6)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cli_NewTransaction(GoSlice p0, GoSlice p1, GoSlice p2, SWIGTYPE_p_Transaction__Handle p3) { + uint ret = skycoinPINVOKE.SKY_cli_NewTransaction(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), SWIGTYPE_p_Transaction__Handle.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_file_InitDataDir(_GoString_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_file_InitDataDir(_GoString_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_file_UserHome(SWIGTYPE_p_GoString_ p0) { + uint ret = skycoinPINVOKE.SKY_file_UserHome(SWIGTYPE_p_GoString_.getCPtr(p0)); + return ret; + } + + public static uint SKY_file_ResolveResourceDirectory(_GoString_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_file_ResolveResourceDirectory(_GoString_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_file_DetermineResourcePath(_GoString_ p0, _GoString_ p1, _GoString_ p2, SWIGTYPE_p_GoString_ p3) { + uint ret = skycoinPINVOKE.SKY_file_DetermineResourcePath(_GoString_.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), SWIGTYPE_p_GoString_.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, SWIGTYPE_p_ReadableOutputSet__Handle p2) { + uint ret = skycoinPINVOKE.SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_ReadableOutputSet__Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cli_GetWalletOutputs(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_Wallet__Handle p1, SWIGTYPE_p_ReadableOutputSet__Handle p2) { + uint ret = skycoinPINVOKE.SKY_cli_GetWalletOutputs(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_Wallet__Handle.getCPtr(p1), SWIGTYPE_p_ReadableOutputSet__Handle.getCPtr(p2)); + return ret; + } + + public static uint SKY_testutil_MakeAddress(cipher__Address p0) { + uint ret = skycoinPINVOKE.SKY_testutil_MakeAddress(cipher__Address.getCPtr(p0)); + return ret; + } + + public static uint SKY_secp256k1go_Field_String(secp256k1go__Field p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_String(secp256k1go__Field.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_Field_Print(secp256k1go__Field p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Print(secp256k1go__Field.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_Field_SetB32(secp256k1go__Field p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_SetB32(secp256k1go__Field.getCPtr(p0), GoSlice.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_Field_SetBytes(secp256k1go__Field p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_SetBytes(secp256k1go__Field.getCPtr(p0), GoSlice.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_Field_SetHex(secp256k1go__Field p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_SetHex(secp256k1go__Field.getCPtr(p0), _GoString_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_Field_IsOdd(secp256k1go__Field p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_IsOdd(secp256k1go__Field.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_Field_IsZero(secp256k1go__Field p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_IsZero(secp256k1go__Field.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_Field_SetInt(secp256k1go__Field p0, uint p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_SetInt(secp256k1go__Field.getCPtr(p0), p1); + return ret; + } + + public static uint SKY_secp256k1go_Field_Normalize(secp256k1go__Field p0) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Normalize(secp256k1go__Field.getCPtr(p0)); + return ret; + } + + public static uint SKY_secp256k1go_Field_GetB32(secp256k1go__Field p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_GetB32(secp256k1go__Field.getCPtr(p0), GoSlice.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_secp256k1go_Field_Equals(secp256k1go__Field p0, secp256k1go__Field p1, SWIGTYPE_p_unsigned_char p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Equals(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); + return ret; + } + + public static uint SKY_secp256k1go_Field_SetAdd(secp256k1go__Field p0, secp256k1go__Field p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_SetAdd(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_Field_MulInt(secp256k1go__Field p0, uint p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_MulInt(secp256k1go__Field.getCPtr(p0), p1); + return ret; + } + + public static uint SKY_secp256k1go_Field_Negate(secp256k1go__Field p0, secp256k1go__Field p1, uint p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Negate(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1), p2); + return ret; + } + + public static uint SKY_secp256k1go_Field_Inv(secp256k1go__Field p0, secp256k1go__Field p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Inv(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_Field_Sqrt(secp256k1go__Field p0, secp256k1go__Field p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Sqrt(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_Field_InvVar(secp256k1go__Field p0, secp256k1go__Field p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_InvVar(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1)); + return ret; + } + + public static uint SKY_secp256k1go_Field_Mul(secp256k1go__Field p0, secp256k1go__Field p1, secp256k1go__Field p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Mul(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1), secp256k1go__Field.getCPtr(p2)); + return ret; + } + + public static uint SKY_secp256k1go_Field_Sqr(secp256k1go__Field p0, secp256k1go__Field p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Sqr(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1)); + return ret; + } + + public static uint SKY_scrypt_Key(GoSlice p0, GoSlice p1, long p2, long p3, long p4, long p5, SWIGTYPE_p_GoSlice_ p6) { + uint ret = skycoinPINVOKE.SKY_scrypt_Key(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), p2, p3, p4, p5, SWIGTYPE_p_GoSlice_.getCPtr(p6)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_Ripemd160_Set(SWIGTYPE_p_a_20__GoUint8_ p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_cipher_Ripemd160_Set(SWIGTYPE_p_a_20__GoUint8_.getCPtr(p0), GoSlice.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_HashRipemd160(GoSlice p0, SWIGTYPE_p_a_20__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_HashRipemd160(GoSlice.getCPtr(p0), SWIGTYPE_p_a_20__GoUint8_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_SHA256_Set(SWIGTYPE_p_a_32__GoUint8_ p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Set(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), GoSlice.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_SHA256_Hex(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Hex(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_SHA256_Xor(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_a_32__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Xor(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); + return ret; + } + + public static uint SKY_cipher_SumSHA256(GoSlice p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_SumSHA256(GoSlice.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_SHA256FromHex(_GoString_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_SHA256FromHex(_GoString_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_DoubleSHA256(GoSlice p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_DoubleSHA256(GoSlice.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_AddSHA256(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_a_32__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_cipher_AddSHA256(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); + return ret; + } + + public static uint SKY_cipher_Merkle(GoSlice p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_cipher_Merkle(GoSlice.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + return ret; + } + + public static uint SKY_cipher_SHA256_Null(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Null(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_Create_Transaction(SWIGTYPE_p_Transaction__Handle p0) { + uint ret = skycoinPINVOKE.SKY_coin_Create_Transaction(SWIGTYPE_p_Transaction__Handle.getCPtr(p0)); + return ret; + } + + public static uint SKY_coin_Transaction_Copy(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_Transaction__Handle p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_Copy(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_GetTransactionObject(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_p_coin__Transaction p1) { + uint ret = skycoinPINVOKE.SKY_coin_GetTransactionObject(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_p_coin__Transaction.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_Transaction_ResetInputs(SWIGTYPE_p_Transaction__Handle p0, long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_ResetInputs(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); + return ret; + } + + public static uint SKY_coin_Transaction_GetInputsCount(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetInputsCount(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_Transaction_GetInputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, SWIGTYPE_p_a_32__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetInputAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); + return ret; + } + + public static uint SKY_coin_Transaction_SetInputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, SWIGTYPE_p_a_32__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetInputAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); + return ret; + } + + public static uint SKY_coin_Transaction_GetOutputsCount(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetOutputsCount(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_Transaction_GetOutputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, coin__TransactionOutput p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetOutputAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, coin__TransactionOutput.getCPtr(p2)); + return ret; + } + + public static uint SKY_coin_Transaction_SetOutputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, coin__TransactionOutput p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetOutputAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, coin__TransactionOutput.getCPtr(p2)); + return ret; + } + + public static uint SKY_coin_Transaction_GetSignaturesCount(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetSignaturesCount(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_Transaction_GetSignatureAt(SWIGTYPE_p_Transaction__Handle p0, long p1, SWIGTYPE_p_a_65__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetSignatureAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); + return ret; + } + + public static uint SKY_coin_Transaction_SetSignatureAt(SWIGTYPE_p_Transaction__Handle p0, long p1, SWIGTYPE_p_a_65__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetSignatureAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); + return ret; + } + + public static uint SKY_coin_Transaction_PushSignature(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_a_65__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushSignature(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_Transaction_ResetOutputs(SWIGTYPE_p_Transaction__Handle p0, long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_ResetOutputs(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); + return ret; + } + + public static uint SKY_coin_Transaction_ResetSignatures(SWIGTYPE_p_Transaction__Handle p0, long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_ResetSignatures(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); + return ret; + } + + public static uint SKY_coin_Transaction_Verify(SWIGTYPE_p_Transaction__Handle p0) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_Verify(SWIGTYPE_p_Transaction__Handle.getCPtr(p0)); + return ret; + } + + public static uint SKY_coin_Transaction_VerifyInput(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_VerifyInput(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_Transaction_PushInput(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_unsigned_short p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushInput(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_unsigned_short.getCPtr(p2)); + return ret; + } + + public static uint SKY_coin_TransactionOutput_UxID(coin__TransactionOutput p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_a_32__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_TransactionOutput_UxID(coin__TransactionOutput.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); + return ret; + } + + public static uint SKY_coin_Transaction_PushOutput(SWIGTYPE_p_Transaction__Handle p0, cipher__Address p1, ulong p2, ulong p3) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushOutput(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), cipher__Address.getCPtr(p1), p2, p3); + return ret; + } + + public static uint SKY_coin_Transaction_SignInputs(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_SignInputs(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Transaction_Size(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_Size(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_Transaction_Hash(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_Hash(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_Transaction_SizeHash(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1, SWIGTYPE_p_a_32__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_SizeHash(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); + return ret; + } + + public static uint SKY_coin_Transaction_TxID(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_TxID(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_Transaction_TxIDHex(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_TxIDHex(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_Transaction_UpdateHeader(SWIGTYPE_p_Transaction__Handle p0) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_UpdateHeader(SWIGTYPE_p_Transaction__Handle.getCPtr(p0)); + return ret; + } + + public static uint SKY_coin_Transaction_HashInner(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_HashInner(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_Transaction_Serialize(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_Serialize(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_TransactionDeserialize(GoSlice p0, SWIGTYPE_p_Transaction__Handle p1) { + uint ret = skycoinPINVOKE.SKY_coin_TransactionDeserialize(GoSlice.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Transaction_OutputHours(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_OutputHours(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_Create_Transactions(SWIGTYPE_p_Transactions__Handle p0) { + uint ret = skycoinPINVOKE.SKY_coin_Create_Transactions(SWIGTYPE_p_Transactions__Handle.getCPtr(p0)); + return ret; + } + + public static uint SKY_coin_GetTransactionsObject(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_GetTransactionsObject(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_Transactions_Length(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_Length(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_Transactions_Add(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_Transaction__Handle p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_Add(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_Transactions_Fees(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_FeeCalculator p1, SWIGTYPE_p_unsigned_long_long p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_Fees(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1), SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); + return ret; + } + + public static uint SKY_coin_Transactions_GetAt(SWIGTYPE_p_Transactions__Handle p0, long p1, SWIGTYPE_p_Transaction__Handle p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_GetAt(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), p1, SWIGTYPE_p_Transaction__Handle.getCPtr(p2)); + return ret; + } + + public static uint SKY_coin_Transactions_Hashes(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_Hashes(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_Transactions_Size(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_Size(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_Transactions_TruncateBytesTo(SWIGTYPE_p_Transactions__Handle p0, long p1, SWIGTYPE_p_Transactions__Handle p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_TruncateBytesTo(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), p1, SWIGTYPE_p_Transactions__Handle.getCPtr(p2)); + return ret; + } + + public static uint SKY_coin_SortTransactions(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_FeeCalculator p1, SWIGTYPE_p_Transactions__Handle p2) { + uint ret = skycoinPINVOKE.SKY_coin_SortTransactions(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1), SWIGTYPE_p_Transactions__Handle.getCPtr(p2)); + return ret; + } + + public static uint SKY_coin_NewSortableTransactions(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_FeeCalculator p1, SWIGTYPE_p_SortableTransactionResult_Handle p2) { + uint ret = skycoinPINVOKE.SKY_coin_NewSortableTransactions(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1), SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p2)); + return ret; + } + + public static uint SKY_coin_SortableTransactions_Sort(SWIGTYPE_p_SortableTransactionResult_Handle p0) { + uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Sort(SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p0)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_SortableTransactions_Len(SWIGTYPE_p_SortableTransactionResult_Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Len(SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_SortableTransactions_Less(SWIGTYPE_p_SortableTransactionResult_Handle p0, long p1, long p2, SWIGTYPE_p_unsigned_char p3) { + uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Less(SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p0), p1, p2, SWIGTYPE_p_unsigned_char.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_SortableTransactions_Swap(SWIGTYPE_p_SortableTransactionResult_Handle p0, long p1, long p2) { + uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Swap(SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p0), p1, p2); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_VerifyTransactionCoinsSpending(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_VerifyTransactionCoinsSpending(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_VerifyTransactionHoursSpending(ulong p0, SWIGTYPE_p_GoSlice_ p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_VerifyTransactionHoursSpending(p0, SWIGTYPE_p_GoSlice_.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + return ret; + } + + public static readonly long SKY_ErrVerifySignatureInvalidPubkeysLength = skycoinPINVOKE.SKY_ErrVerifySignatureInvalidPubkeysLength_get(); + public static readonly long SKY_OK = skycoinPINVOKE.SKY_OK_get(); + public static readonly long SKY_ERROR = skycoinPINVOKE.SKY_ERROR_get(); + public static readonly long SKY_PKG_API = skycoinPINVOKE.SKY_PKG_API_get(); + public static readonly long SKY_PKG_CIPHER = skycoinPINVOKE.SKY_PKG_CIPHER_get(); + public static readonly long SKY_PKG_CLI = skycoinPINVOKE.SKY_PKG_CLI_get(); + public static readonly long SKY_PKG_COIN = skycoinPINVOKE.SKY_PKG_COIN_get(); + public static readonly long SKY_PKG_CONSENSUS = skycoinPINVOKE.SKY_PKG_CONSENSUS_get(); + public static readonly long SKY_PKG_DAEMON = skycoinPINVOKE.SKY_PKG_DAEMON_get(); + public static readonly long SKY_PKG_GUI = skycoinPINVOKE.SKY_PKG_GUI_get(); + public static readonly long SKY_PKG_SKYCOIN = skycoinPINVOKE.SKY_PKG_SKYCOIN_get(); + public static readonly long SKY_PKG_UTIL = skycoinPINVOKE.SKY_PKG_UTIL_get(); + public static readonly long SKY_PKG_VISOR = skycoinPINVOKE.SKY_PKG_VISOR_get(); + public static readonly long SKY_PKG_WALLET = skycoinPINVOKE.SKY_PKG_WALLET_get(); + public static readonly long SKY_ErrAddressInvalidLength = skycoinPINVOKE.SKY_ErrAddressInvalidLength_get(); + public static readonly long SKY_ErrAddressInvalidChecksum = skycoinPINVOKE.SKY_ErrAddressInvalidChecksum_get(); + public static readonly long SKY_ErrAddressInvalidVersion = skycoinPINVOKE.SKY_ErrAddressInvalidVersion_get(); + public static readonly long SKY_ErrAddressInvalidPubKey = skycoinPINVOKE.SKY_ErrAddressInvalidPubKey_get(); + public static readonly long SKY_ErrAddressInvalidFirstByte = skycoinPINVOKE.SKY_ErrAddressInvalidFirstByte_get(); + public static readonly long SKY_ErrAddressInvalidLastByte = skycoinPINVOKE.SKY_ErrAddressInvalidLastByte_get(); + public static readonly long SKY_ErrBufferUnderflow = skycoinPINVOKE.SKY_ErrBufferUnderflow_get(); + public static readonly long SKY_ErrInvalidOmitEmpty = skycoinPINVOKE.SKY_ErrInvalidOmitEmpty_get(); + public static readonly long SKY_ErrInvalidLengthPubKey = skycoinPINVOKE.SKY_ErrInvalidLengthPubKey_get(); + public static readonly long SKY_ErrPubKeyFromNullSecKey = skycoinPINVOKE.SKY_ErrPubKeyFromNullSecKey_get(); + public static readonly long SKY_ErrPubKeyFromBadSecKey = skycoinPINVOKE.SKY_ErrPubKeyFromBadSecKey_get(); + public static readonly long SKY_ErrInvalidLengthSecKey = skycoinPINVOKE.SKY_ErrInvalidLengthSecKey_get(); + public static readonly long SKY_ErrECHDInvalidPubKey = skycoinPINVOKE.SKY_ErrECHDInvalidPubKey_get(); + public static readonly long SKY_ErrECHDInvalidSecKey = skycoinPINVOKE.SKY_ErrECHDInvalidSecKey_get(); + public static readonly long SKY_ErrInvalidLengthSig = skycoinPINVOKE.SKY_ErrInvalidLengthSig_get(); + public static readonly long SKY_ErrInvalidLengthRipemd160 = skycoinPINVOKE.SKY_ErrInvalidLengthRipemd160_get(); + public static readonly long SKY_ErrInvalidLengthSHA256 = skycoinPINVOKE.SKY_ErrInvalidLengthSHA256_get(); + public static readonly long SKY_ErrInvalidBase58Char = skycoinPINVOKE.SKY_ErrInvalidBase58Char_get(); + public static readonly long SKY_ErrInvalidBase58String = skycoinPINVOKE.SKY_ErrInvalidBase58String_get(); + public static readonly long SKY_ErrInvalidBase58Length = skycoinPINVOKE.SKY_ErrInvalidBase58Length_get(); + public static readonly long SKY_ErrInvalidHexLength = skycoinPINVOKE.SKY_ErrInvalidHexLength_get(); + public static readonly long SKY_ErrInvalidBytesLength = skycoinPINVOKE.SKY_ErrInvalidBytesLength_get(); + public static readonly long SKY_ErrInvalidPubKey = skycoinPINVOKE.SKY_ErrInvalidPubKey_get(); + public static readonly long SKY_ErrInvalidSecKey = skycoinPINVOKE.SKY_ErrInvalidSecKey_get(); + public static readonly long SKY_ErrInvalidSigForPubKey = skycoinPINVOKE.SKY_ErrInvalidSigForPubKey_get(); + public static readonly long SKY_ErrInvalidSecKeyHex = skycoinPINVOKE.SKY_ErrInvalidSecKeyHex_get(); + public static readonly long SKY_ErrInvalidAddressForSig = skycoinPINVOKE.SKY_ErrInvalidAddressForSig_get(); + public static readonly long SKY_ErrInvalidHashForSig = skycoinPINVOKE.SKY_ErrInvalidHashForSig_get(); + public static readonly long SKY_ErrPubKeyRecoverMismatch = skycoinPINVOKE.SKY_ErrPubKeyRecoverMismatch_get(); + public static readonly long SKY_ErrInvalidSigInvalidPubKey = skycoinPINVOKE.SKY_ErrInvalidSigInvalidPubKey_get(); + public static readonly long SKY_ErrInvalidSigValidity = skycoinPINVOKE.SKY_ErrInvalidSigValidity_get(); + public static readonly long SKY_ErrInvalidSigForMessage = skycoinPINVOKE.SKY_ErrInvalidSigForMessage_get(); + public static readonly long SKY_ErrInvalidSecKyVerification = skycoinPINVOKE.SKY_ErrInvalidSecKyVerification_get(); + public static readonly long SKY_ErrNullPubKeyFromSecKey = skycoinPINVOKE.SKY_ErrNullPubKeyFromSecKey_get(); + public static readonly long SKY_ErrInvalidDerivedPubKeyFromSecKey = skycoinPINVOKE.SKY_ErrInvalidDerivedPubKeyFromSecKey_get(); + public static readonly long SKY_ErrInvalidPubKeyFromHash = skycoinPINVOKE.SKY_ErrInvalidPubKeyFromHash_get(); + public static readonly long SKY_ErrPubKeyFromSecKeyMissmatch = skycoinPINVOKE.SKY_ErrPubKeyFromSecKeyMissmatch_get(); + public static readonly long SKY_ErrTemporaryInsufficientBalance = skycoinPINVOKE.SKY_ErrTemporaryInsufficientBalance_get(); + public static readonly long SKY_ErrAddress = skycoinPINVOKE.SKY_ErrAddress_get(); + public static readonly long SKY_ErrWalletName = skycoinPINVOKE.SKY_ErrWalletName_get(); + public static readonly long SKY_ErrJSONMarshal = skycoinPINVOKE.SKY_ErrJSONMarshal_get(); + public static readonly long SKY_WalletLoadError = skycoinPINVOKE.SKY_WalletLoadError_get(); + public static readonly long SKY_WalletSaveError = skycoinPINVOKE.SKY_WalletSaveError_get(); + public static readonly long SKY_ErrAddEarnedCoinHoursAdditionOverflow = skycoinPINVOKE.SKY_ErrAddEarnedCoinHoursAdditionOverflow_get(); + public static readonly long SKY_ErrUint64MultOverflow = skycoinPINVOKE.SKY_ErrUint64MultOverflow_get(); + public static readonly long SKY_ErrUint64AddOverflow = skycoinPINVOKE.SKY_ErrUint64AddOverflow_get(); + public static readonly long SKY_ErrUint32AddOverflow = skycoinPINVOKE.SKY_ErrUint32AddOverflow_get(); + public static readonly long SKY_ErrUint64OverflowsInt64 = skycoinPINVOKE.SKY_ErrUint64OverflowsInt64_get(); + public static readonly long SKY_ErrInt64UnderflowsUint64 = skycoinPINVOKE.SKY_ErrInt64UnderflowsUint64_get(); + public static readonly long SKY_ErrPeerlistFull = skycoinPINVOKE.SKY_ErrPeerlistFull_get(); + public static readonly long SKY_ErrInvalidAddress = skycoinPINVOKE.SKY_ErrInvalidAddress_get(); + public static readonly long SKY_ErrNoLocalhost = skycoinPINVOKE.SKY_ErrNoLocalhost_get(); + public static readonly long SKY_ErrNotExternalIP = skycoinPINVOKE.SKY_ErrNotExternalIP_get(); + public static readonly long SKY_ErrPortTooLow = skycoinPINVOKE.SKY_ErrPortTooLow_get(); + public static readonly long SKY_ErrBlacklistedAddress = skycoinPINVOKE.SKY_ErrBlacklistedAddress_get(); + public static readonly long SKY_ErrDisconnectReadFailed = skycoinPINVOKE.SKY_ErrDisconnectReadFailed_get(); + public static readonly long SKY_ErrDisconnectWriteFailed = skycoinPINVOKE.SKY_ErrDisconnectWriteFailed_get(); + public static readonly long SKY_ErrDisconnectSetReadDeadlineFailed = skycoinPINVOKE.SKY_ErrDisconnectSetReadDeadlineFailed_get(); + public static readonly long SKY_ErrDisconnectInvalidMessageLength = skycoinPINVOKE.SKY_ErrDisconnectInvalidMessageLength_get(); + public static readonly long SKY_ErrDisconnectMalformedMessage = skycoinPINVOKE.SKY_ErrDisconnectMalformedMessage_get(); + public static readonly long SKY_ErrDisconnectUnknownMessage = skycoinPINVOKE.SKY_ErrDisconnectUnknownMessage_get(); + public static readonly long SKY_ErrDisconnectUnexpectedError = skycoinPINVOKE.SKY_ErrDisconnectUnexpectedError_get(); + public static readonly long SKY_ErrConnectionPoolClosed = skycoinPINVOKE.SKY_ErrConnectionPoolClosed_get(); + public static readonly long SKY_ErrWriteQueueFull = skycoinPINVOKE.SKY_ErrWriteQueueFull_get(); + public static readonly long SKY_ErrNoReachableConnections = skycoinPINVOKE.SKY_ErrNoReachableConnections_get(); + public static readonly long SKY_ErrMaxDefaultConnectionsReached = skycoinPINVOKE.SKY_ErrMaxDefaultConnectionsReached_get(); + public static readonly long SKY_ErrDisconnectInvalidVersion = skycoinPINVOKE.SKY_ErrDisconnectInvalidVersion_get(); + public static readonly long SKY_ErrDisconnectIntroductionTimeout = skycoinPINVOKE.SKY_ErrDisconnectIntroductionTimeout_get(); + public static readonly long SKY_ErrDisconnectVersionSendFailed = skycoinPINVOKE.SKY_ErrDisconnectVersionSendFailed_get(); + public static readonly long SKY_ErrDisconnectIsBlacklisted = skycoinPINVOKE.SKY_ErrDisconnectIsBlacklisted_get(); + public static readonly long SKY_ErrDisconnectSelf = skycoinPINVOKE.SKY_ErrDisconnectSelf_get(); + public static readonly long SKY_ErrDisconnectConnectedTwice = skycoinPINVOKE.SKY_ErrDisconnectConnectedTwice_get(); + public static readonly long SKY_ErrDisconnectIdle = skycoinPINVOKE.SKY_ErrDisconnectIdle_get(); + public static readonly long SKY_ErrDisconnectNoIntroduction = skycoinPINVOKE.SKY_ErrDisconnectNoIntroduction_get(); + public static readonly long SKY_ErrDisconnectIPLimitReached = skycoinPINVOKE.SKY_ErrDisconnectIPLimitReached_get(); + public static readonly long SKY_ErrDisconnectOtherError = skycoinPINVOKE.SKY_ErrDisconnectOtherError_get(); + public static readonly long SKY_ErrDisconnectMaxDefaultConnectionReached = skycoinPINVOKE.SKY_ErrDisconnectMaxDefaultConnectionReached_get(); + public static readonly long SKY_ErrDisconnectMaxOutgoingConnectionsReached = skycoinPINVOKE.SKY_ErrDisconnectMaxOutgoingConnectionsReached_get(); + public static readonly long SKY_ConnectionError = skycoinPINVOKE.SKY_ConnectionError_get(); + public static readonly long SKY_ErrTxnNoFee = skycoinPINVOKE.SKY_ErrTxnNoFee_get(); + public static readonly long SKY_ErrTxnInsufficientFee = skycoinPINVOKE.SKY_ErrTxnInsufficientFee_get(); + public static readonly long SKY_ErrTxnInsufficientCoinHours = skycoinPINVOKE.SKY_ErrTxnInsufficientCoinHours_get(); + public static readonly long SKY_ErrNegativeValue = skycoinPINVOKE.SKY_ErrNegativeValue_get(); + public static readonly long SKY_ErrTooManyDecimals = skycoinPINVOKE.SKY_ErrTooManyDecimals_get(); + public static readonly long SKY_ErrTooLarge = skycoinPINVOKE.SKY_ErrTooLarge_get(); + public static readonly long SKY_ErrEmptyDirectoryName = skycoinPINVOKE.SKY_ErrEmptyDirectoryName_get(); + public static readonly long SKY_ErrDotDirectoryName = skycoinPINVOKE.SKY_ErrDotDirectoryName_get(); + public static readonly long SKY_ErrHistoryDBCorrupted = skycoinPINVOKE.SKY_ErrHistoryDBCorrupted_get(); + public static readonly long SKY_ErrUxOutNotExist = skycoinPINVOKE.SKY_ErrUxOutNotExist_get(); + public static readonly long SKY_ErrNoHeadBlock = skycoinPINVOKE.SKY_ErrNoHeadBlock_get(); + public static readonly long SKY_ErrMissingSignature = skycoinPINVOKE.SKY_ErrMissingSignature_get(); + public static readonly long SKY_ErrUnspentNotExist = skycoinPINVOKE.SKY_ErrUnspentNotExist_get(); + public static readonly long SKY_ErrVerifyStopped = skycoinPINVOKE.SKY_ErrVerifyStopped_get(); + public static readonly long SKY_ErrCreateBucketFailed = skycoinPINVOKE.SKY_ErrCreateBucketFailed_get(); + public static readonly long SKY_ErrBucketNotExist = skycoinPINVOKE.SKY_ErrBucketNotExist_get(); + public static readonly long SKY_ErrTxnViolatesHardConstraint = skycoinPINVOKE.SKY_ErrTxnViolatesHardConstraint_get(); + public static readonly long SKY_ErrTxnViolatesSoftConstraint = skycoinPINVOKE.SKY_ErrTxnViolatesSoftConstraint_get(); + public static readonly long SKY_ErrTxnViolatesUserConstraint = skycoinPINVOKE.SKY_ErrTxnViolatesUserConstraint_get(); + public static readonly long SKY_ErrInsufficientBalance = skycoinPINVOKE.SKY_ErrInsufficientBalance_get(); + public static readonly long SKY_ErrInsufficientHours = skycoinPINVOKE.SKY_ErrInsufficientHours_get(); + public static readonly long SKY_ErrZeroSpend = skycoinPINVOKE.SKY_ErrZeroSpend_get(); + public static readonly long SKY_ErrSpendingUnconfirmed = skycoinPINVOKE.SKY_ErrSpendingUnconfirmed_get(); + public static readonly long SKY_ErrInvalidEncryptedField = skycoinPINVOKE.SKY_ErrInvalidEncryptedField_get(); + public static readonly long SKY_ErrWalletEncrypted = skycoinPINVOKE.SKY_ErrWalletEncrypted_get(); + public static readonly long SKY_ErrWalletNotEncrypted = skycoinPINVOKE.SKY_ErrWalletNotEncrypted_get(); + public static readonly long SKY_ErrMissingPassword = skycoinPINVOKE.SKY_ErrMissingPassword_get(); + public static readonly long SKY_ErrMissingEncrypt = skycoinPINVOKE.SKY_ErrMissingEncrypt_get(); + public static readonly long SKY_ErrInvalidPassword = skycoinPINVOKE.SKY_ErrInvalidPassword_get(); + public static readonly long SKY_ErrMissingSeed = skycoinPINVOKE.SKY_ErrMissingSeed_get(); + public static readonly long SKY_ErrMissingAuthenticated = skycoinPINVOKE.SKY_ErrMissingAuthenticated_get(); + public static readonly long SKY_ErrWrongCryptoType = skycoinPINVOKE.SKY_ErrWrongCryptoType_get(); + public static readonly long SKY_ErrWalletNotExist = skycoinPINVOKE.SKY_ErrWalletNotExist_get(); + public static readonly long SKY_ErrSeedUsed = skycoinPINVOKE.SKY_ErrSeedUsed_get(); + public static readonly long SKY_ErrWalletAPIDisabled = skycoinPINVOKE.SKY_ErrWalletAPIDisabled_get(); + public static readonly long SKY_ErrSeedAPIDisabled = skycoinPINVOKE.SKY_ErrSeedAPIDisabled_get(); + public static readonly long SKY_ErrWalletNameConflict = skycoinPINVOKE.SKY_ErrWalletNameConflict_get(); + public static readonly long SKY_ErrInvalidHoursSelectionMode = skycoinPINVOKE.SKY_ErrInvalidHoursSelectionMode_get(); + public static readonly long SKY_ErrInvalidHoursSelectionType = skycoinPINVOKE.SKY_ErrInvalidHoursSelectionType_get(); + public static readonly long SKY_ErrUnknownAddress = skycoinPINVOKE.SKY_ErrUnknownAddress_get(); + public static readonly long SKY_ErrUnknownUxOut = skycoinPINVOKE.SKY_ErrUnknownUxOut_get(); + public static readonly long SKY_ErrNoUnspents = skycoinPINVOKE.SKY_ErrNoUnspents_get(); + public static readonly long SKY_ErrNullChangeAddress = skycoinPINVOKE.SKY_ErrNullChangeAddress_get(); + public static readonly long SKY_ErrMissingTo = skycoinPINVOKE.SKY_ErrMissingTo_get(); + public static readonly long SKY_ErrZeroCoinsTo = skycoinPINVOKE.SKY_ErrZeroCoinsTo_get(); + public static readonly long SKY_ErrNullAddressTo = skycoinPINVOKE.SKY_ErrNullAddressTo_get(); + public static readonly long SKY_ErrDuplicateTo = skycoinPINVOKE.SKY_ErrDuplicateTo_get(); + public static readonly long SKY_ErrMissingWalletID = skycoinPINVOKE.SKY_ErrMissingWalletID_get(); + public static readonly long SKY_ErrIncludesNullAddress = skycoinPINVOKE.SKY_ErrIncludesNullAddress_get(); + public static readonly long SKY_ErrDuplicateAddresses = skycoinPINVOKE.SKY_ErrDuplicateAddresses_get(); + public static readonly long SKY_ErrZeroToHoursAuto = skycoinPINVOKE.SKY_ErrZeroToHoursAuto_get(); + public static readonly long SKY_ErrMissingModeAuto = skycoinPINVOKE.SKY_ErrMissingModeAuto_get(); + public static readonly long SKY_ErrInvalidHoursSelMode = skycoinPINVOKE.SKY_ErrInvalidHoursSelMode_get(); + public static readonly long SKY_ErrInvalidModeManual = skycoinPINVOKE.SKY_ErrInvalidModeManual_get(); + public static readonly long SKY_ErrInvalidHoursSelType = skycoinPINVOKE.SKY_ErrInvalidHoursSelType_get(); + public static readonly long SKY_ErrMissingShareFactor = skycoinPINVOKE.SKY_ErrMissingShareFactor_get(); + public static readonly long SKY_ErrInvalidShareFactor = skycoinPINVOKE.SKY_ErrInvalidShareFactor_get(); + public static readonly long SKY_ErrShareFactorOutOfRange = skycoinPINVOKE.SKY_ErrShareFactorOutOfRange_get(); + public static readonly long SKY_ErrWalletConstraint = skycoinPINVOKE.SKY_ErrWalletConstraint_get(); + public static readonly long SKY_ErrDuplicateUxOuts = skycoinPINVOKE.SKY_ErrDuplicateUxOuts_get(); + public static readonly long SKY_ErrUnknownWalletID = skycoinPINVOKE.SKY_ErrUnknownWalletID_get(); + public static readonly long SKY_ErrSHA256orMissingPassword = skycoinPINVOKE.SKY_ErrSHA256orMissingPassword_get(); + public static readonly long SKY_ErrSHA256LenghtDataOverflowMaxUint32 = skycoinPINVOKE.SKY_ErrSHA256LenghtDataOverflowMaxUint32_get(); +} + +} diff --git a/LibskycoinNet/skycoin1/skycoinPINVOKE.cs b/LibskycoinNet/skycoin1/skycoinPINVOKE.cs new file mode 100644 index 00000000..ae7dc3f6 --- /dev/null +++ b/LibskycoinNet/skycoin1/skycoinPINVOKE.cs @@ -0,0 +1,3039 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +class skycoinPINVOKE { + + protected class SWIGExceptionHelper { + + public delegate void ExceptionDelegate(string message); + public delegate void ExceptionArgumentDelegate(string message, string paramName); + + static ExceptionDelegate applicationDelegate = new ExceptionDelegate(SetPendingApplicationException); + static ExceptionDelegate arithmeticDelegate = new ExceptionDelegate(SetPendingArithmeticException); + static ExceptionDelegate divideByZeroDelegate = new ExceptionDelegate(SetPendingDivideByZeroException); + static ExceptionDelegate indexOutOfRangeDelegate = new ExceptionDelegate(SetPendingIndexOutOfRangeException); + static ExceptionDelegate invalidCastDelegate = new ExceptionDelegate(SetPendingInvalidCastException); + static ExceptionDelegate invalidOperationDelegate = new ExceptionDelegate(SetPendingInvalidOperationException); + static ExceptionDelegate ioDelegate = new ExceptionDelegate(SetPendingIOException); + static ExceptionDelegate nullReferenceDelegate = new ExceptionDelegate(SetPendingNullReferenceException); + static ExceptionDelegate outOfMemoryDelegate = new ExceptionDelegate(SetPendingOutOfMemoryException); + static ExceptionDelegate overflowDelegate = new ExceptionDelegate(SetPendingOverflowException); + static ExceptionDelegate systemDelegate = new ExceptionDelegate(SetPendingSystemException); + + static ExceptionArgumentDelegate argumentDelegate = new ExceptionArgumentDelegate(SetPendingArgumentException); + static ExceptionArgumentDelegate argumentNullDelegate = new ExceptionArgumentDelegate(SetPendingArgumentNullException); + static ExceptionArgumentDelegate argumentOutOfRangeDelegate = new ExceptionArgumentDelegate(SetPendingArgumentOutOfRangeException); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="SWIGRegisterExceptionCallbacks_skycoin")] + public static extern void SWIGRegisterExceptionCallbacks_skycoin( + ExceptionDelegate applicationDelegate, + ExceptionDelegate arithmeticDelegate, + ExceptionDelegate divideByZeroDelegate, + ExceptionDelegate indexOutOfRangeDelegate, + ExceptionDelegate invalidCastDelegate, + ExceptionDelegate invalidOperationDelegate, + ExceptionDelegate ioDelegate, + ExceptionDelegate nullReferenceDelegate, + ExceptionDelegate outOfMemoryDelegate, + ExceptionDelegate overflowDelegate, + ExceptionDelegate systemExceptionDelegate); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="SWIGRegisterExceptionArgumentCallbacks_skycoin")] + public static extern void SWIGRegisterExceptionCallbacksArgument_skycoin( + ExceptionArgumentDelegate argumentDelegate, + ExceptionArgumentDelegate argumentNullDelegate, + ExceptionArgumentDelegate argumentOutOfRangeDelegate); + + static void SetPendingApplicationException(string message) { + SWIGPendingException.Set(new global::System.ApplicationException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingArithmeticException(string message) { + SWIGPendingException.Set(new global::System.ArithmeticException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingDivideByZeroException(string message) { + SWIGPendingException.Set(new global::System.DivideByZeroException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingIndexOutOfRangeException(string message) { + SWIGPendingException.Set(new global::System.IndexOutOfRangeException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingInvalidCastException(string message) { + SWIGPendingException.Set(new global::System.InvalidCastException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingInvalidOperationException(string message) { + SWIGPendingException.Set(new global::System.InvalidOperationException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingIOException(string message) { + SWIGPendingException.Set(new global::System.IO.IOException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingNullReferenceException(string message) { + SWIGPendingException.Set(new global::System.NullReferenceException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingOutOfMemoryException(string message) { + SWIGPendingException.Set(new global::System.OutOfMemoryException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingOverflowException(string message) { + SWIGPendingException.Set(new global::System.OverflowException(message, SWIGPendingException.Retrieve())); + } + static void SetPendingSystemException(string message) { + SWIGPendingException.Set(new global::System.SystemException(message, SWIGPendingException.Retrieve())); + } + + static void SetPendingArgumentException(string message, string paramName) { + SWIGPendingException.Set(new global::System.ArgumentException(message, paramName, SWIGPendingException.Retrieve())); + } + static void SetPendingArgumentNullException(string message, string paramName) { + global::System.Exception e = SWIGPendingException.Retrieve(); + if (e != null) message = message + " Inner Exception: " + e.Message; + SWIGPendingException.Set(new global::System.ArgumentNullException(paramName, message)); + } + static void SetPendingArgumentOutOfRangeException(string message, string paramName) { + global::System.Exception e = SWIGPendingException.Retrieve(); + if (e != null) message = message + " Inner Exception: " + e.Message; + SWIGPendingException.Set(new global::System.ArgumentOutOfRangeException(paramName, message)); + } + + static SWIGExceptionHelper() { + SWIGRegisterExceptionCallbacks_skycoin( + applicationDelegate, + arithmeticDelegate, + divideByZeroDelegate, + indexOutOfRangeDelegate, + invalidCastDelegate, + invalidOperationDelegate, + ioDelegate, + nullReferenceDelegate, + outOfMemoryDelegate, + overflowDelegate, + systemDelegate); + + SWIGRegisterExceptionCallbacksArgument_skycoin( + argumentDelegate, + argumentNullDelegate, + argumentOutOfRangeDelegate); + } + } + + protected static SWIGExceptionHelper swigExceptionHelper = new SWIGExceptionHelper(); + + public class SWIGPendingException { + [global::System.ThreadStatic] + private static global::System.Exception pendingException = null; + private static int numExceptionsPending = 0; + + public static bool Pending { + get { + bool pending = false; + if (numExceptionsPending > 0) + if (pendingException != null) + pending = true; + return pending; + } + } + + public static void Set(global::System.Exception e) { + if (pendingException != null) + throw new global::System.ApplicationException("FATAL: An earlier pending exception from unmanaged code was missed and thus not thrown (" + pendingException.ToString() + ")", e); + pendingException = e; + lock(typeof(skycoinPINVOKE)) { + numExceptionsPending++; + } + } + + public static global::System.Exception Retrieve() { + global::System.Exception e = null; + if (numExceptionsPending > 0) { + if (pendingException != null) { + e = pendingException; + pendingException = null; + lock(typeof(skycoinPINVOKE)) { + numExceptionsPending--; + } + } + } + return e; + } + } + + + protected class SWIGStringHelper { + + public delegate string SWIGStringDelegate(string message); + static SWIGStringDelegate stringDelegate = new SWIGStringDelegate(CreateString); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="SWIGRegisterStringCallback_skycoin")] + public static extern void SWIGRegisterStringCallback_skycoin(SWIGStringDelegate stringDelegate); + + static string CreateString(string cString) { + return cString; + } + + static SWIGStringHelper() { + SWIGRegisterStringCallback_skycoin(stringDelegate); + } + } + + static protected SWIGStringHelper swigStringHelper = new SWIGStringHelper(); + + + static skycoinPINVOKE() { + } + + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_destroy_cipher_SecKeys")] + public static extern void destroy_cipher_SecKeys(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_equalSlices")] + public static extern int equalSlices(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_equalTransactions")] + public static extern int equalTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_equalTransactionsArrays")] + public static extern int equalTransactionsArrays(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_equalBlockHeaders")] + public static extern int equalBlockHeaders(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_PubKeyp")] + public static extern global::System.IntPtr new_cipher_PubKeyp(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_cipher_PubKeyp")] + public static extern global::System.IntPtr copy_cipher_PubKeyp(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_PubKeyp")] + public static extern void delete_cipher_PubKeyp(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeyp_assign")] + public static extern void cipher_PubKeyp_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeyp_value")] + public static extern global::System.IntPtr cipher_PubKeyp_value(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_add")] + public static extern void add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrVerifySignatureInvalidPubkeysLength_get")] + public static extern long SKY_ErrVerifySignatureInvalidPubkeysLength_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_OK_get")] + public static extern long SKY_OK_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ERROR_get")] + public static extern long SKY_ERROR_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_API_get")] + public static extern long SKY_PKG_API_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_CIPHER_get")] + public static extern long SKY_PKG_CIPHER_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_CLI_get")] + public static extern long SKY_PKG_CLI_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_COIN_get")] + public static extern long SKY_PKG_COIN_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_CONSENSUS_get")] + public static extern long SKY_PKG_CONSENSUS_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_DAEMON_get")] + public static extern long SKY_PKG_DAEMON_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_GUI_get")] + public static extern long SKY_PKG_GUI_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_SKYCOIN_get")] + public static extern long SKY_PKG_SKYCOIN_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_UTIL_get")] + public static extern long SKY_PKG_UTIL_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_VISOR_get")] + public static extern long SKY_PKG_VISOR_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_WALLET_get")] + public static extern long SKY_PKG_WALLET_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrAddressInvalidLength_get")] + public static extern long SKY_ErrAddressInvalidLength_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrAddressInvalidChecksum_get")] + public static extern long SKY_ErrAddressInvalidChecksum_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrAddressInvalidVersion_get")] + public static extern long SKY_ErrAddressInvalidVersion_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrAddressInvalidPubKey_get")] + public static extern long SKY_ErrAddressInvalidPubKey_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrAddressInvalidFirstByte_get")] + public static extern long SKY_ErrAddressInvalidFirstByte_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrAddressInvalidLastByte_get")] + public static extern long SKY_ErrAddressInvalidLastByte_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrBufferUnderflow_get")] + public static extern long SKY_ErrBufferUnderflow_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidOmitEmpty_get")] + public static extern long SKY_ErrInvalidOmitEmpty_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidLengthPubKey_get")] + public static extern long SKY_ErrInvalidLengthPubKey_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrPubKeyFromNullSecKey_get")] + public static extern long SKY_ErrPubKeyFromNullSecKey_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrPubKeyFromBadSecKey_get")] + public static extern long SKY_ErrPubKeyFromBadSecKey_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidLengthSecKey_get")] + public static extern long SKY_ErrInvalidLengthSecKey_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrECHDInvalidPubKey_get")] + public static extern long SKY_ErrECHDInvalidPubKey_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrECHDInvalidSecKey_get")] + public static extern long SKY_ErrECHDInvalidSecKey_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidLengthSig_get")] + public static extern long SKY_ErrInvalidLengthSig_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidLengthRipemd160_get")] + public static extern long SKY_ErrInvalidLengthRipemd160_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidLengthSHA256_get")] + public static extern long SKY_ErrInvalidLengthSHA256_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidBase58Char_get")] + public static extern long SKY_ErrInvalidBase58Char_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidBase58String_get")] + public static extern long SKY_ErrInvalidBase58String_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidBase58Length_get")] + public static extern long SKY_ErrInvalidBase58Length_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidHexLength_get")] + public static extern long SKY_ErrInvalidHexLength_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidBytesLength_get")] + public static extern long SKY_ErrInvalidBytesLength_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidPubKey_get")] + public static extern long SKY_ErrInvalidPubKey_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidSecKey_get")] + public static extern long SKY_ErrInvalidSecKey_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidSigForPubKey_get")] + public static extern long SKY_ErrInvalidSigForPubKey_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidSecKeyHex_get")] + public static extern long SKY_ErrInvalidSecKeyHex_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidAddressForSig_get")] + public static extern long SKY_ErrInvalidAddressForSig_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidHashForSig_get")] + public static extern long SKY_ErrInvalidHashForSig_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrPubKeyRecoverMismatch_get")] + public static extern long SKY_ErrPubKeyRecoverMismatch_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidSigInvalidPubKey_get")] + public static extern long SKY_ErrInvalidSigInvalidPubKey_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidSigValidity_get")] + public static extern long SKY_ErrInvalidSigValidity_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidSigForMessage_get")] + public static extern long SKY_ErrInvalidSigForMessage_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidSecKyVerification_get")] + public static extern long SKY_ErrInvalidSecKyVerification_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrNullPubKeyFromSecKey_get")] + public static extern long SKY_ErrNullPubKeyFromSecKey_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidDerivedPubKeyFromSecKey_get")] + public static extern long SKY_ErrInvalidDerivedPubKeyFromSecKey_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidPubKeyFromHash_get")] + public static extern long SKY_ErrInvalidPubKeyFromHash_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrPubKeyFromSecKeyMissmatch_get")] + public static extern long SKY_ErrPubKeyFromSecKeyMissmatch_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrTemporaryInsufficientBalance_get")] + public static extern long SKY_ErrTemporaryInsufficientBalance_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrAddress_get")] + public static extern long SKY_ErrAddress_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrWalletName_get")] + public static extern long SKY_ErrWalletName_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrJSONMarshal_get")] + public static extern long SKY_ErrJSONMarshal_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_WalletLoadError_get")] + public static extern long SKY_WalletLoadError_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_WalletSaveError_get")] + public static extern long SKY_WalletSaveError_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrAddEarnedCoinHoursAdditionOverflow_get")] + public static extern long SKY_ErrAddEarnedCoinHoursAdditionOverflow_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrUint64MultOverflow_get")] + public static extern long SKY_ErrUint64MultOverflow_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrUint64AddOverflow_get")] + public static extern long SKY_ErrUint64AddOverflow_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrUint32AddOverflow_get")] + public static extern long SKY_ErrUint32AddOverflow_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrUint64OverflowsInt64_get")] + public static extern long SKY_ErrUint64OverflowsInt64_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInt64UnderflowsUint64_get")] + public static extern long SKY_ErrInt64UnderflowsUint64_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrPeerlistFull_get")] + public static extern long SKY_ErrPeerlistFull_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidAddress_get")] + public static extern long SKY_ErrInvalidAddress_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrNoLocalhost_get")] + public static extern long SKY_ErrNoLocalhost_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrNotExternalIP_get")] + public static extern long SKY_ErrNotExternalIP_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrPortTooLow_get")] + public static extern long SKY_ErrPortTooLow_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrBlacklistedAddress_get")] + public static extern long SKY_ErrBlacklistedAddress_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectReadFailed_get")] + public static extern long SKY_ErrDisconnectReadFailed_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectWriteFailed_get")] + public static extern long SKY_ErrDisconnectWriteFailed_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectSetReadDeadlineFailed_get")] + public static extern long SKY_ErrDisconnectSetReadDeadlineFailed_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectInvalidMessageLength_get")] + public static extern long SKY_ErrDisconnectInvalidMessageLength_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectMalformedMessage_get")] + public static extern long SKY_ErrDisconnectMalformedMessage_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectUnknownMessage_get")] + public static extern long SKY_ErrDisconnectUnknownMessage_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectUnexpectedError_get")] + public static extern long SKY_ErrDisconnectUnexpectedError_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrConnectionPoolClosed_get")] + public static extern long SKY_ErrConnectionPoolClosed_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrWriteQueueFull_get")] + public static extern long SKY_ErrWriteQueueFull_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrNoReachableConnections_get")] + public static extern long SKY_ErrNoReachableConnections_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrMaxDefaultConnectionsReached_get")] + public static extern long SKY_ErrMaxDefaultConnectionsReached_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectInvalidVersion_get")] + public static extern long SKY_ErrDisconnectInvalidVersion_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectIntroductionTimeout_get")] + public static extern long SKY_ErrDisconnectIntroductionTimeout_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectVersionSendFailed_get")] + public static extern long SKY_ErrDisconnectVersionSendFailed_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectIsBlacklisted_get")] + public static extern long SKY_ErrDisconnectIsBlacklisted_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectSelf_get")] + public static extern long SKY_ErrDisconnectSelf_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectConnectedTwice_get")] + public static extern long SKY_ErrDisconnectConnectedTwice_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectIdle_get")] + public static extern long SKY_ErrDisconnectIdle_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectNoIntroduction_get")] + public static extern long SKY_ErrDisconnectNoIntroduction_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectIPLimitReached_get")] + public static extern long SKY_ErrDisconnectIPLimitReached_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectOtherError_get")] + public static extern long SKY_ErrDisconnectOtherError_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectMaxDefaultConnectionReached_get")] + public static extern long SKY_ErrDisconnectMaxDefaultConnectionReached_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectMaxOutgoingConnectionsReached_get")] + public static extern long SKY_ErrDisconnectMaxOutgoingConnectionsReached_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ConnectionError_get")] + public static extern long SKY_ConnectionError_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrTxnNoFee_get")] + public static extern long SKY_ErrTxnNoFee_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrTxnInsufficientFee_get")] + public static extern long SKY_ErrTxnInsufficientFee_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrTxnInsufficientCoinHours_get")] + public static extern long SKY_ErrTxnInsufficientCoinHours_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrNegativeValue_get")] + public static extern long SKY_ErrNegativeValue_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrTooManyDecimals_get")] + public static extern long SKY_ErrTooManyDecimals_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrTooLarge_get")] + public static extern long SKY_ErrTooLarge_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrEmptyDirectoryName_get")] + public static extern long SKY_ErrEmptyDirectoryName_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDotDirectoryName_get")] + public static extern long SKY_ErrDotDirectoryName_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrHistoryDBCorrupted_get")] + public static extern long SKY_ErrHistoryDBCorrupted_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrUxOutNotExist_get")] + public static extern long SKY_ErrUxOutNotExist_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrNoHeadBlock_get")] + public static extern long SKY_ErrNoHeadBlock_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrMissingSignature_get")] + public static extern long SKY_ErrMissingSignature_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrUnspentNotExist_get")] + public static extern long SKY_ErrUnspentNotExist_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrVerifyStopped_get")] + public static extern long SKY_ErrVerifyStopped_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrCreateBucketFailed_get")] + public static extern long SKY_ErrCreateBucketFailed_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrBucketNotExist_get")] + public static extern long SKY_ErrBucketNotExist_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrTxnViolatesHardConstraint_get")] + public static extern long SKY_ErrTxnViolatesHardConstraint_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrTxnViolatesSoftConstraint_get")] + public static extern long SKY_ErrTxnViolatesSoftConstraint_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrTxnViolatesUserConstraint_get")] + public static extern long SKY_ErrTxnViolatesUserConstraint_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInsufficientBalance_get")] + public static extern long SKY_ErrInsufficientBalance_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInsufficientHours_get")] + public static extern long SKY_ErrInsufficientHours_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrZeroSpend_get")] + public static extern long SKY_ErrZeroSpend_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrSpendingUnconfirmed_get")] + public static extern long SKY_ErrSpendingUnconfirmed_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidEncryptedField_get")] + public static extern long SKY_ErrInvalidEncryptedField_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrWalletEncrypted_get")] + public static extern long SKY_ErrWalletEncrypted_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrWalletNotEncrypted_get")] + public static extern long SKY_ErrWalletNotEncrypted_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrMissingPassword_get")] + public static extern long SKY_ErrMissingPassword_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrMissingEncrypt_get")] + public static extern long SKY_ErrMissingEncrypt_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidPassword_get")] + public static extern long SKY_ErrInvalidPassword_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrMissingSeed_get")] + public static extern long SKY_ErrMissingSeed_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrMissingAuthenticated_get")] + public static extern long SKY_ErrMissingAuthenticated_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrWrongCryptoType_get")] + public static extern long SKY_ErrWrongCryptoType_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrWalletNotExist_get")] + public static extern long SKY_ErrWalletNotExist_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrSeedUsed_get")] + public static extern long SKY_ErrSeedUsed_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrWalletAPIDisabled_get")] + public static extern long SKY_ErrWalletAPIDisabled_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrSeedAPIDisabled_get")] + public static extern long SKY_ErrSeedAPIDisabled_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrWalletNameConflict_get")] + public static extern long SKY_ErrWalletNameConflict_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidHoursSelectionMode_get")] + public static extern long SKY_ErrInvalidHoursSelectionMode_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidHoursSelectionType_get")] + public static extern long SKY_ErrInvalidHoursSelectionType_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrUnknownAddress_get")] + public static extern long SKY_ErrUnknownAddress_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrUnknownUxOut_get")] + public static extern long SKY_ErrUnknownUxOut_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrNoUnspents_get")] + public static extern long SKY_ErrNoUnspents_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrNullChangeAddress_get")] + public static extern long SKY_ErrNullChangeAddress_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrMissingTo_get")] + public static extern long SKY_ErrMissingTo_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrZeroCoinsTo_get")] + public static extern long SKY_ErrZeroCoinsTo_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrNullAddressTo_get")] + public static extern long SKY_ErrNullAddressTo_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDuplicateTo_get")] + public static extern long SKY_ErrDuplicateTo_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrMissingWalletID_get")] + public static extern long SKY_ErrMissingWalletID_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrIncludesNullAddress_get")] + public static extern long SKY_ErrIncludesNullAddress_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDuplicateAddresses_get")] + public static extern long SKY_ErrDuplicateAddresses_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrZeroToHoursAuto_get")] + public static extern long SKY_ErrZeroToHoursAuto_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrMissingModeAuto_get")] + public static extern long SKY_ErrMissingModeAuto_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidHoursSelMode_get")] + public static extern long SKY_ErrInvalidHoursSelMode_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidModeManual_get")] + public static extern long SKY_ErrInvalidModeManual_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidHoursSelType_get")] + public static extern long SKY_ErrInvalidHoursSelType_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrMissingShareFactor_get")] + public static extern long SKY_ErrMissingShareFactor_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidShareFactor_get")] + public static extern long SKY_ErrInvalidShareFactor_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrShareFactorOutOfRange_get")] + public static extern long SKY_ErrShareFactorOutOfRange_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrWalletConstraint_get")] + public static extern long SKY_ErrWalletConstraint_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDuplicateUxOuts_get")] + public static extern long SKY_ErrDuplicateUxOuts_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrUnknownWalletID_get")] + public static extern long SKY_ErrUnknownWalletID_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrSHA256orMissingPassword_get")] + public static extern long SKY_ErrSHA256orMissingPassword_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrSHA256LenghtDataOverflowMaxUint32_get")] + public static extern long SKY_ErrSHA256LenghtDataOverflowMaxUint32_get(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKey_isEqual")] + public static extern int cipher_PubKey_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKey_assignFrom")] + public static extern void cipher_PubKey_assignFrom(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKey_assignTo")] + public static extern void cipher_PubKey_assignTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKey_data_set")] + public static extern void cipher_PubKey_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKey_data_get")] + public static extern global::System.IntPtr cipher_PubKey_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_PubKey")] + public static extern global::System.IntPtr new_cipher_PubKey(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_PubKey")] + public static extern void delete_cipher_PubKey(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKey_isEqual")] + public static extern int cipher_SecKey_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKey_assignFrom")] + public static extern void cipher_SecKey_assignFrom(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKey_assignTo")] + public static extern void cipher_SecKey_assignTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKey_data_set")] + public static extern void cipher_SecKey_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKey_data_get")] + public static extern global::System.IntPtr cipher_SecKey_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_SecKey")] + public static extern global::System.IntPtr new_cipher_SecKey(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_SecKey")] + public static extern void delete_cipher_SecKey(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Ripemd160_isEqual")] + public static extern int cipher_Ripemd160_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Ripemd160_assignFrom")] + public static extern void cipher_Ripemd160_assignFrom(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Ripemd160_assignTo")] + public static extern void cipher_Ripemd160_assignTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Ripemd160_data_set")] + public static extern void cipher_Ripemd160_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Ripemd160_data_get")] + public static extern global::System.IntPtr cipher_Ripemd160_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_Ripemd160")] + public static extern global::System.IntPtr new_cipher_Ripemd160(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_Ripemd160")] + public static extern void delete_cipher_Ripemd160(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Sig_isEqual")] + public static extern int cipher_Sig_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Sig_assignFrom")] + public static extern void cipher_Sig_assignFrom(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Sig_assignTo")] + public static extern void cipher_Sig_assignTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Sig_data_set")] + public static extern void cipher_Sig_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Sig_data_get")] + public static extern global::System.IntPtr cipher_Sig_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_Sig")] + public static extern global::System.IntPtr new_cipher_Sig(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_Sig")] + public static extern void delete_cipher_Sig(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256_isEqual")] + public static extern int cipher_SHA256_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256_assignFrom")] + public static extern void cipher_SHA256_assignFrom(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256_assignTo")] + public static extern void cipher_SHA256_assignTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256_data_set")] + public static extern void cipher_SHA256_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256_data_get")] + public static extern global::System.IntPtr cipher_SHA256_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_SHA256")] + public static extern global::System.IntPtr new_cipher_SHA256(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_SHA256")] + public static extern void delete_cipher_SHA256(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Checksum_isEqual")] + public static extern int cipher_Checksum_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Checksum_assignFrom")] + public static extern void cipher_Checksum_assignFrom(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Checksum_assignTo")] + public static extern void cipher_Checksum_assignTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Checksum_data_set")] + public static extern void cipher_Checksum_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Checksum_data_get")] + public static extern global::System.IntPtr cipher_Checksum_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_Checksum")] + public static extern global::System.IntPtr new_cipher_Checksum(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_Checksum")] + public static extern void delete_cipher_Checksum(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeys_getAt")] + public static extern global::System.IntPtr cipher_SecKeys_getAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeys_setAt")] + public static extern int cipher_SecKeys_setAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeys_isEqual")] + public static extern int cipher_SecKeys_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeys_allocate")] + public static extern void cipher_SecKeys_allocate(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeys_release")] + public static extern void cipher_SecKeys_release(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeys_data_set")] + public static extern void cipher_SecKeys_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeys_data_get")] + public static extern global::System.IntPtr cipher_SecKeys_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeys_count_set")] + public static extern void cipher_SecKeys_count_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeys_count_get")] + public static extern int cipher_SecKeys_count_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_SecKeys")] + public static extern global::System.IntPtr new_cipher_SecKeys(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_SecKeys")] + public static extern void delete_cipher_SecKeys(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeys_getAt")] + public static extern global::System.IntPtr cipher_PubKeys_getAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeys_setAt")] + public static extern int cipher_PubKeys_setAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeys_isEqual")] + public static extern int cipher_PubKeys_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeys_allocate")] + public static extern void cipher_PubKeys_allocate(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeys_release")] + public static extern void cipher_PubKeys_release(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeys_data_set")] + public static extern void cipher_PubKeys_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeys_data_get")] + public static extern global::System.IntPtr cipher_PubKeys_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeys_count_set")] + public static extern void cipher_PubKeys_count_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeys_count_get")] + public static extern int cipher_PubKeys_count_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_PubKeys")] + public static extern global::System.IntPtr new_cipher_PubKeys(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_PubKeys")] + public static extern void delete_cipher_PubKeys(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256s_getAt")] + public static extern global::System.IntPtr cipher_SHA256s_getAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256s_setAt")] + public static extern int cipher_SHA256s_setAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256s_isEqual")] + public static extern int cipher_SHA256s_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256s_allocate")] + public static extern void cipher_SHA256s_allocate(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256s_release")] + public static extern void cipher_SHA256s_release(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256s_data_set")] + public static extern void cipher_SHA256s_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256s_data_get")] + public static extern global::System.IntPtr cipher_SHA256s_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256s_count_set")] + public static extern void cipher_SHA256s_count_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256s_count_get")] + public static extern int cipher_SHA256s_count_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_SHA256s")] + public static extern global::System.IntPtr new_cipher_SHA256s(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_SHA256s")] + public static extern void delete_cipher_SHA256s(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_getAt")] + public static extern global::System.IntPtr coin_UxOutArray_getAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_setAt")] + public static extern int coin_UxOutArray_setAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_isEqual")] + public static extern int coin_UxOutArray_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_allocate")] + public static extern void coin_UxOutArray_allocate(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_release")] + public static extern void coin_UxOutArray_release(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_data_set")] + public static extern void coin_UxOutArray_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_data_get")] + public static extern global::System.IntPtr coin_UxOutArray_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_count_set")] + public static extern void coin_UxOutArray_count_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_count_get")] + public static extern int coin_UxOutArray_count_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin_UxOutArray")] + public static extern global::System.IntPtr new_coin_UxOutArray(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin_UxOutArray")] + public static extern void delete_coin_UxOutArray(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Addresses_data_set")] + public static extern void cipher_Addresses_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Addresses_data_get")] + public static extern global::System.IntPtr cipher_Addresses_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Addresses_count_set")] + public static extern void cipher_Addresses_count_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Addresses_count_get")] + public static extern int cipher_Addresses_count_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_Addresses")] + public static extern global::System.IntPtr new_cipher_Addresses(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_Addresses")] + public static extern void delete_cipher_Addresses(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin__GoString__p_set")] + public static extern void _GoString__p_set(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin__GoString__p_get")] + public static extern string _GoString__p_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin__GoString__n_set")] + public static extern void _GoString__n_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin__GoString__n_get")] + public static extern global::System.IntPtr _GoString__n_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new__GoString_")] + public static extern global::System.IntPtr new__GoString_(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete__GoString_")] + public static extern void delete__GoString_(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoInterface_t_set")] + public static extern void GoInterface_t_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoInterface_t_get")] + public static extern global::System.IntPtr GoInterface_t_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoInterface_v_set")] + public static extern void GoInterface_v_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoInterface_v_get")] + public static extern global::System.IntPtr GoInterface_v_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_GoInterface")] + public static extern global::System.IntPtr new_GoInterface(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_GoInterface")] + public static extern void delete_GoInterface(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_data_set")] + public static extern void GoSlice_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_data_get")] + public static extern global::System.IntPtr GoSlice_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_len_set")] + public static extern void GoSlice_len_set(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_len_get")] + public static extern long GoSlice_len_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_cap_set")] + public static extern void GoSlice_cap_set(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_cap_get")] + public static extern long GoSlice_cap_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_GoSlice")] + public static extern global::System.IntPtr new_GoSlice(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_GoSlice")] + public static extern void delete_GoSlice(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewBlock")] + public static extern uint SKY_coin_NewBlock(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SignedBlock_VerifySignature")] + public static extern uint SKY_coin_SignedBlock_VerifySignature(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewGenesisBlock")] + public static extern uint SKY_coin_NewGenesisBlock(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_HashHeader")] + public static extern uint SKY_coin_Block_HashHeader(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_PreHashHeader")] + public static extern uint SKY_coin_Block_PreHashHeader(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_Time")] + public static extern uint SKY_coin_Block_Time(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_Seq")] + public static extern uint SKY_coin_Block_Seq(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_HashBody")] + public static extern uint SKY_coin_Block_HashBody(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_Size")] + public static extern uint SKY_coin_Block_Size(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_String")] + public static extern uint SKY_coin_Block_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_GetTransaction")] + public static extern uint SKY_coin_Block_GetTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewBlockHeader")] + public static extern uint SKY_coin_NewBlockHeader(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, ulong jarg3, ulong jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockHeader_Hash")] + public static extern uint SKY_coin_BlockHeader_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockHeader_Bytes")] + public static extern uint SKY_coin_BlockHeader_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockHeader_String")] + public static extern uint SKY_coin_BlockHeader_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockBody_Hash")] + public static extern uint SKY_coin_BlockBody_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockBody_Size")] + public static extern uint SKY_coin_BlockBody_Size(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockBody_Bytes")] + public static extern uint SKY_coin_BlockBody_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_CreateUnspents")] + public static extern uint SKY_coin_CreateUnspents(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_CreateUnspent")] + public static extern uint SKY_coin_CreateUnspent(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetBlockObject")] + public static extern uint SKY_coin_GetBlockObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetBlockBody")] + public static extern uint SKY_coin_GetBlockBody(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewEmptyBlock")] + public static extern uint SKY_coin_NewEmptyBlock(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_bip39_NewDefaultMnemomic")] + public static extern uint SKY_bip39_NewDefaultMnemomic(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_bip39_NewEntropy")] + public static extern uint SKY_bip39_NewEntropy(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_bip39_NewMnemonic")] + public static extern uint SKY_bip39_NewMnemonic(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_bip39_MnemonicToByteArray")] + public static extern uint SKY_bip39_MnemonicToByteArray(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_bip39_IsMnemonicValid")] + public static extern uint SKY_bip39_IsMnemonicValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewClient")] + public static extern uint SKY_api_NewClient(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CSRF")] + public static extern uint SKY_api_Client_CSRF(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Version")] + public static extern uint SKY_api_Client_Version(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Outputs")] + public static extern uint SKY_api_Client_Outputs(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_OutputsForAddresses")] + public static extern uint SKY_api_Client_OutputsForAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_OutputsForHashes")] + public static extern uint SKY_api_Client_OutputsForHashes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CoinSupply")] + public static extern uint SKY_api_Client_CoinSupply(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_BlockByHash")] + public static extern uint SKY_api_Client_BlockByHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_BlockBySeq")] + public static extern uint SKY_api_Client_BlockBySeq(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Blocks")] + public static extern uint SKY_api_Client_Blocks(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_LastBlocks")] + public static extern uint SKY_api_Client_LastBlocks(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_BlockchainMetadata")] + public static extern uint SKY_api_Client_BlockchainMetadata(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_BlockchainProgress")] + public static extern uint SKY_api_Client_BlockchainProgress(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Balance")] + public static extern uint SKY_api_Client_Balance(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_UxOut")] + public static extern uint SKY_api_Client_UxOut(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_AddressUxOuts")] + public static extern uint SKY_api_Client_AddressUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Wallet")] + public static extern uint SKY_api_Client_Wallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Wallets")] + public static extern uint SKY_api_Client_Wallets(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CreateUnencryptedWallet")] + public static extern uint SKY_api_Client_CreateUnencryptedWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, long jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CreateEncryptedWallet")] + public static extern uint SKY_api_Client_CreateEncryptedWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, long jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NewWalletAddress")] + public static extern uint SKY_api_Client_NewWalletAddress(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_WalletBalance")] + public static extern uint SKY_api_Client_WalletBalance(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Spend")] + public static extern uint SKY_api_Client_Spend(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, ulong jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CreateTransaction")] + public static extern uint SKY_api_Client_CreateTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_UpdateWallet")] + public static extern uint SKY_api_Client_UpdateWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_WalletFolderName")] + public static extern uint SKY_api_Client_WalletFolderName(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NewSeed")] + public static extern uint SKY_api_Client_NewSeed(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_GetWalletSeed")] + public static extern uint SKY_api_Client_GetWalletSeed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkConnection")] + public static extern uint SKY_api_Client_NetworkConnection(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkConnections")] + public static extern uint SKY_api_Client_NetworkConnections(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkDefaultConnections")] + public static extern uint SKY_api_Client_NetworkDefaultConnections(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkTrustedConnections")] + public static extern uint SKY_api_Client_NetworkTrustedConnections(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkExchangeableConnections")] + public static extern uint SKY_api_Client_NetworkExchangeableConnections(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_PendingTransactions")] + public static extern uint SKY_api_Client_PendingTransactions(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Transaction")] + public static extern uint SKY_api_Client_Transaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Transactions")] + public static extern uint SKY_api_Client_Transactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_ConfirmedTransactions")] + public static extern uint SKY_api_Client_ConfirmedTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_UnconfirmedTransactions")] + public static extern uint SKY_api_Client_UnconfirmedTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_InjectTransaction")] + public static extern uint SKY_api_Client_InjectTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_ResendUnconfirmedTransactions")] + public static extern uint SKY_api_Client_ResendUnconfirmedTransactions(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_RawTransaction")] + public static extern uint SKY_api_Client_RawTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_AddressTransactions")] + public static extern uint SKY_api_Client_AddressTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Richlist")] + public static extern uint SKY_api_Client_Richlist(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_AddressCount")] + public static extern uint SKY_api_Client_AddressCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_UnloadWallet")] + public static extern uint SKY_api_Client_UnloadWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Health")] + public static extern uint SKY_api_Client_Health(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_EncryptWallet")] + public static extern uint SKY_api_Client_EncryptWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_DecryptWallet")] + public static extern uint SKY_api_Client_DecryptWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_Print")] + public static extern uint SKY_secp256k1go_XY_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_ParsePubkey")] + public static extern uint SKY_secp256k1go_XY_ParsePubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_Bytes")] + public static extern uint SKY_secp256k1go_XY_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_BytesUncompressed")] + public static extern uint SKY_secp256k1go_XY_BytesUncompressed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_SetXY")] + public static extern uint SKY_secp256k1go_XY_SetXY(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_IsValid")] + public static extern uint SKY_secp256k1go_XY_IsValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_SetXYZ")] + public static extern uint SKY_secp256k1go_XY_SetXYZ(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_Neg")] + public static extern uint SKY_secp256k1go_XY_Neg(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_SetXO")] + public static extern uint SKY_secp256k1go_XY_SetXO(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, byte jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_AddXY")] + public static extern uint SKY_secp256k1go_XY_AddXY(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_GetPublicKey")] + public static extern uint SKY_secp256k1go_XY_GetPublicKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewWalletResponse")] + public static extern uint SKY_api_NewWalletResponse(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewCreateTransactionResponse")] + public static extern uint SKY_api_NewCreateTransactionResponse(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewCreatedTransaction")] + public static extern uint SKY_api_NewCreatedTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_CreatedTransaction_ToTransaction")] + public static extern uint SKY_api_CreatedTransaction_ToTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewCreatedTransactionOutput")] + public static extern uint SKY_api_NewCreatedTransactionOutput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewCreatedTransactionInput")] + public static extern uint SKY_api_NewCreatedTransactionInput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewError")] + public static extern uint SKY_wallet_NewError(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewWallet")] + public static extern uint SKY_wallet_NewWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Lock")] + public static extern uint SKY_wallet_Wallet_Lock(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Unlock")] + public static extern uint SKY_wallet_Wallet_Unlock(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Load")] + public static extern uint SKY_wallet_Load(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Save")] + public static extern uint SKY_wallet_Wallet_Save(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Validate")] + public static extern uint SKY_wallet_Wallet_Validate(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Type")] + public static extern uint SKY_wallet_Wallet_Type(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Version")] + public static extern uint SKY_wallet_Wallet_Version(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Filename")] + public static extern uint SKY_wallet_Wallet_Filename(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Label")] + public static extern uint SKY_wallet_Wallet_Label(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_IsEncrypted")] + public static extern uint SKY_wallet_Wallet_IsEncrypted(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_GenerateAddresses")] + public static extern uint SKY_wallet_Wallet_GenerateAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_GetAddresses")] + public static extern uint SKY_wallet_Wallet_GetAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_GetEntry")] + public static extern uint SKY_wallet_Wallet_GetEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_AddEntry")] + public static extern uint SKY_wallet_Wallet_AddEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_DistributeSpendHours")] + public static extern uint SKY_wallet_DistributeSpendHours(ulong jarg1, ulong jarg2, byte jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_DistributeCoinHoursProportional")] + public static extern uint SKY_wallet_DistributeCoinHoursProportional(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewUxBalances")] + public static extern uint SKY_wallet_NewUxBalances(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewUxBalance")] + public static extern uint SKY_wallet_NewUxBalance(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ChooseSpendsMinimizeUxOuts")] + public static extern uint SKY_wallet_ChooseSpendsMinimizeUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ChooseSpendsMaximizeUxOuts")] + public static extern uint SKY_wallet_ChooseSpendsMaximizeUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_CheckWalletBalance")] + public static extern uint SKY_cli_CheckWalletBalance(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GetBalanceOfAddresses")] + public static extern uint SKY_cli_GetBalanceOfAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewReadableEntry")] + public static extern uint SKY_wallet_NewReadableEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_LoadReadableEntry")] + public static extern uint SKY_wallet_LoadReadableEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewReadableEntryFromPubkey")] + public static extern uint SKY_wallet_NewReadableEntryFromPubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableEntry_Save")] + public static extern uint SKY_wallet_ReadableEntry_Save(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_LoadReadableWallet")] + public static extern uint SKY_wallet_LoadReadableWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableWallet_Save")] + public static extern uint SKY_wallet_ReadableWallet_Save(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableWallet_Load")] + public static extern uint SKY_wallet_ReadableWallet_Load(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableWallet_Erase")] + public static extern uint SKY_wallet_ReadableWallet_Erase(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_DecompressPoint")] + public static extern uint SKY_secp256k1go_DecompressPoint(global::System.Runtime.InteropServices.HandleRef jarg1, byte jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_RecoverPublicKey")] + public static extern uint SKY_secp256k1go_RecoverPublicKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Multiply")] + public static extern uint SKY_secp256k1go_Multiply(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_BaseMultiply")] + public static extern uint SKY_secp256k1go_BaseMultiply(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_BaseMultiplyAdd")] + public static extern uint SKY_secp256k1go_BaseMultiplyAdd(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_GeneratePublicKey")] + public static extern uint SKY_secp256k1go_GeneratePublicKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_SeckeyIsValid")] + public static extern uint SKY_secp256k1go_SeckeyIsValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_PubkeyIsValid")] + public static extern uint SKY_secp256k1go_PubkeyIsValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_String2Hex")] + public static extern uint SKY_base58_String2Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Base58_ToInt")] + public static extern uint SKY_base58_Base58_ToInt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Base58_ToHex")] + public static extern uint SKY_base58_Base58_ToHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Base58_Base582Int")] + public static extern uint SKY_base58_Base58_Base582Int(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Base582Hex")] + public static extern uint SKY_base58_Base582Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Base58_BitHex")] + public static extern uint SKY_base58_Base58_BitHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Int2Base58")] + public static extern uint SKY_base58_Int2Base58(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Hex2Base58")] + public static extern uint SKY_base58_Hex2Base58(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Hex2Base58String")] + public static extern uint SKY_base58_Hex2Base58String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Hex2Base58Str")] + public static extern uint SKY_base58_Hex2Base58Str(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GenerateWallet")] + public static extern uint SKY_cli_GenerateWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_MakeAlphanumericSeed")] + public static extern uint SKY_cli_MakeAlphanumericSeed(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_NewClient")] + public static extern uint SKY_webrpc_NewClient(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_CSRF")] + public static extern uint SKY_webrpc_Client_CSRF(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_InjectTransaction")] + public static extern uint SKY_webrpc_Client_InjectTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetStatus")] + public static extern uint SKY_webrpc_Client_GetStatus(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetTransactionByID")] + public static extern uint SKY_webrpc_Client_GetTransactionByID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetAddressUxOuts")] + public static extern uint SKY_webrpc_Client_GetAddressUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetBlocks")] + public static extern uint SKY_webrpc_Client_GetBlocks(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetBlocksBySeq")] + public static extern uint SKY_webrpc_Client_GetBlocksBySeq(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetLastBlocks")] + public static extern uint SKY_webrpc_Client_GetLastBlocks(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_browser_Open")] + public static extern uint SKY_browser_Open(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_iputil_LocalhostIP")] + public static extern uint SKY_iputil_LocalhostIP(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_iputil_IsLocalhost")] + public static extern uint SKY_iputil_IsLocalhost(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_iputil_SplitAddr")] + public static extern uint SKY_iputil_SplitAddr(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encoder_StructField_String")] + public static extern uint SKY_encoder_StructField_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encoder_ParseFields")] + public static extern uint SKY_encoder_ParseFields(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_SumSHA256")] + public static extern uint SKY_secp256k1_SumSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_RandByte")] + public static extern uint SKY_secp256k1_RandByte(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GenerateAddressesInFile")] + public static extern uint SKY_cli_GenerateAddressesInFile(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_FormatAddressesAsJSON")] + public static extern uint SKY_cli_FormatAddressesAsJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_FormatAddressesAsJoinedArray")] + public static extern uint SKY_cli_FormatAddressesAsJoinedArray(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_AddressesToStrings")] + public static extern uint SKY_cli_AddressesToStrings(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddUint64")] + public static extern uint SKY_coin_AddUint64(ulong jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Uint64ToInt64")] + public static extern uint SKY_coin_Uint64ToInt64(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Int64ToUint64")] + public static extern uint SKY_coin_Int64ToUint64(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeySlice_Len")] + public static extern uint SKY_cipher_PubKeySlice_Len(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeySlice_Less")] + public static extern uint SKY_cipher_PubKeySlice_Less(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeySlice_Swap")] + public static extern uint SKY_cipher_PubKeySlice_Swap(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_RandByte")] + public static extern uint SKY_cipher_RandByte(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_NewPubKey")] + public static extern uint SKY_cipher_NewPubKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromHex")] + public static extern uint SKY_cipher_PubKeyFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromSecKey")] + public static extern uint SKY_cipher_PubKeyFromSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromSig")] + public static extern uint SKY_cipher_PubKeyFromSig(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKey_Verify")] + public static extern uint SKY_cipher_PubKey_Verify(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKey_Hex")] + public static extern uint SKY_cipher_PubKey_Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKey_ToAddressHash")] + public static extern uint SKY_cipher_PubKey_ToAddressHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_NewSecKey")] + public static extern uint SKY_cipher_NewSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKeyFromHex")] + public static extern uint SKY_cipher_SecKeyFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKey_Verify")] + public static extern uint SKY_cipher_SecKey_Verify(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKey_Hex")] + public static extern uint SKY_cipher_SecKey_Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_ECDH")] + public static extern uint SKY_cipher_ECDH(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_NewSig")] + public static extern uint SKY_cipher_NewSig(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SigFromHex")] + public static extern uint SKY_cipher_SigFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Sig_Hex")] + public static extern uint SKY_cipher_Sig_Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SignHash")] + public static extern uint SKY_cipher_SignHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_ChkSig")] + public static extern uint SKY_cipher_ChkSig(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_VerifySignedHash")] + public static extern uint SKY_cipher_VerifySignedHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_VerifySignature")] + public static extern uint SKY_cipher_VerifySignature(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPair")] + public static extern uint SKY_cipher_GenerateDeterministicKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_DeterministicKeyPairIterator")] + public static extern uint SKY_cipher_DeterministicKeyPairIterator(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairs")] + public static extern uint SKY_cipher_GenerateDeterministicKeyPairs(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairsSeed")] + public static extern uint SKY_cipher_GenerateDeterministicKeyPairsSeed(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_TestSecKey")] + public static extern uint SKY_cipher_TestSecKey(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_TestSecKeyHash")] + public static extern uint SKY_cipher_TestSecKeyHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateKeyPair")] + public static extern uint SKY_cipher_GenerateKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Create")] + public static extern uint SKY_secp256k1go_Signature_Create(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_GetR")] + public static extern uint SKY_secp256k1go_Signature_GetR(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_GetS")] + public static extern uint SKY_secp256k1go_Signature_GetS(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Print")] + public static extern uint SKY_secp256k1go_Signature_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Verify")] + public static extern uint SKY_secp256k1go_Signature_Verify(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Recover")] + public static extern uint SKY_secp256k1go_Signature_Recover(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, long jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Sign")] + public static extern uint SKY_secp256k1go_Signature_Sign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_ParseBytes")] + public static extern uint SKY_secp256k1go_Signature_ParseBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Bytes")] + public static extern uint SKY_secp256k1go_Signature_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_App_Run")] + public static extern uint SKY_cli_App_Run(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Config_GetCoin")] + public static extern uint SKY_cli_Config_GetCoin(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Config_GetRPCAddress")] + public static extern uint SKY_cli_Config_GetRPCAddress(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_RPCClientFromApp")] + public static extern uint SKY_cli_RPCClientFromApp(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Getenv")] + public static extern uint SKY_cli_Getenv(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Setenv")] + public static extern uint SKY_cli_Setenv(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_poly1305_Verify")] + public static extern uint SKY_poly1305_Verify(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewBalance")] + public static extern uint SKY_wallet_NewBalance(ulong jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewBalanceFromUxOut")] + public static extern uint SKY_wallet_NewBalanceFromUxOut(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Balance_Add")] + public static extern uint SKY_wallet_Balance_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Balance_Sub")] + public static extern uint SKY_wallet_Balance_Sub(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Balance_Equals")] + public static extern uint SKY_wallet_Balance_Equals(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Balance_IsZero")] + public static extern uint SKY_wallet_Balance_IsZero(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_utc_UnixNow")] + public static extern uint SKY_utc_UnixNow(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Address_UnmarshalJSON")] + public static extern uint SKY_httphelper_Address_UnmarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Address_MarshalJSON")] + public static extern uint SKY_httphelper_Address_MarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Coins_UnmarshalJSON")] + public static extern uint SKY_httphelper_Coins_UnmarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Coins_MarshalJSON")] + public static extern uint SKY_httphelper_Coins_MarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Coins_Value")] + public static extern uint SKY_httphelper_Coins_Value(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Hours_UnmarshalJSON")] + public static extern uint SKY_httphelper_Hours_UnmarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Hours_MarshalJSON")] + public static extern uint SKY_httphelper_Hours_MarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Hours_Value")] + public static extern uint SKY_httphelper_Hours_Value(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Entry_Verify")] + public static extern uint SKY_wallet_Entry_Verify(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Entry_VerifyPublic")] + public static extern uint SKY_wallet_Entry_VerifyPublic(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_CreateAddresses")] + public static extern uint SKY_wallet_CreateAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, byte jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_GetSkycoinWalletEntry")] + public static extern uint SKY_wallet_GetSkycoinWalletEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_GetBitcoinWalletEntry")] + public static extern uint SKY_wallet_GetBitcoinWalletEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Print")] + public static extern uint SKY_secp256k1go_XYZ_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_SetXY")] + public static extern uint SKY_secp256k1go_XYZ_SetXY(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_IsInfinity")] + public static extern uint SKY_secp256k1go_XYZ_IsInfinity(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_IsValid")] + public static extern uint SKY_secp256k1go_XYZ_IsValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Normalize")] + public static extern uint SKY_secp256k1go_XYZ_Normalize(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Equals")] + public static extern uint SKY_secp256k1go_XYZ_Equals(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_ECmult")] + public static extern uint SKY_secp256k1go_XYZ_ECmult(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Neg")] + public static extern uint SKY_secp256k1go_XYZ_Neg(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Double")] + public static extern uint SKY_secp256k1go_XYZ_Double(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_AddXY")] + public static extern uint SKY_secp256k1go_XYZ_AddXY(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Add")] + public static extern uint SKY_secp256k1go_XYZ_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_ECmultGen")] + public static extern uint SKY_secp256k1go_ECmultGen(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encrypt_Sha256Xor_Encrypt")] + public static extern uint SKY_encrypt_Sha256Xor_Encrypt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encrypt_Sha256Xor_Decrypt")] + public static extern uint SKY_encrypt_Sha256Xor_Decrypt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_droplet_FromString")] + public static extern uint SKY_droplet_FromString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_droplet_ToString")] + public static extern uint SKY_droplet_ToString(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_CryptoTypeFromString")] + public static extern uint SKY_wallet_CryptoTypeFromString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_handle_close")] + public static extern void SKY_handle_close(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_handle_copy")] + public static extern uint SKY_handle_copy(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_logging_EnableColors")] + public static extern uint SKY_logging_EnableColors(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_logging_DisableColors")] + public static extern uint SKY_logging_DisableColors(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_logging_Disable")] + public static extern uint SKY_logging_Disable(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_map_Get")] + public static extern uint SKY_map_Get(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_map_HasKey")] + public static extern byte SKY_map_HasKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_map_Close")] + public static extern uint SKY_map_Close(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_DecodeBase58Address")] + public static extern uint SKY_cipher_DecodeBase58Address(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddressFromBytes")] + public static extern uint SKY_cipher_AddressFromBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddressFromPubKey")] + public static extern uint SKY_cipher_AddressFromPubKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddressFromSecKey")] + public static extern uint SKY_cipher_AddressFromSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinDecodeBase58Address")] + public static extern uint SKY_cipher_BitcoinDecodeBase58Address(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_Null")] + public static extern uint SKY_cipher_Address_Null(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_Bytes")] + public static extern uint SKY_cipher_Address_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_BitcoinBytes")] + public static extern uint SKY_cipher_Address_BitcoinBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_Verify")] + public static extern uint SKY_cipher_Address_Verify(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_String")] + public static extern uint SKY_cipher_Address_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_BitcoinString")] + public static extern uint SKY_cipher_Address_BitcoinString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_Checksum")] + public static extern uint SKY_cipher_Address_Checksum(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_BitcoinChecksum")] + public static extern uint SKY_cipher_Address_BitcoinChecksum(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinAddressFromPubkey")] + public static extern uint SKY_cipher_BitcoinAddressFromPubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinWalletImportFormatFromSeckey")] + public static extern uint SKY_cipher_BitcoinWalletImportFormatFromSeckey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinAddressFromBytes")] + public static extern uint SKY_cipher_BitcoinAddressFromBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKeyFromWalletImportFormat")] + public static extern uint SKY_cipher_SecKeyFromWalletImportFormat(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_JsonEncode_Handle")] + public static extern uint SKY_JsonEncode_Handle(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Progress_GetCurrent")] + public static extern uint SKY_Handle_Progress_GetCurrent(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Block_GetHeadSeq")] + public static extern uint SKY_Handle_Block_GetHeadSeq(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Block_GetHeadHash")] + public static extern uint SKY_Handle_Block_GetHeadHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Block_GetPreviousBlockHash")] + public static extern uint SKY_Handle_Block_GetPreviousBlockHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Blocks_GetAt")] + public static extern uint SKY_Handle_Blocks_GetAt(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Blocks_GetCount")] + public static extern uint SKY_Handle_Blocks_GetCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Connections_GetCount")] + public static extern uint SKY_Handle_Connections_GetCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Strings_GetCount")] + public static extern uint SKY_Handle_Strings_GetCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Strings_Sort")] + public static extern uint SKY_Handle_Strings_Sort(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Strings_GetAt")] + public static extern uint SKY_Handle_Strings_GetAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_Client_GetWalletDir")] + public static extern uint SKY_api_Handle_Client_GetWalletDir(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_Client_GetWalletFileName")] + public static extern uint SKY_api_Handle_Client_GetWalletFileName(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_Client_GetWalletLabel")] + public static extern uint SKY_api_Handle_Client_GetWalletLabel(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_Client_GetWalletFullPath")] + public static extern uint SKY_api_Handle_Client_GetWalletFullPath(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetWalletMeta")] + public static extern uint SKY_api_Handle_GetWalletMeta(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetWalletEntriesCount")] + public static extern uint SKY_api_Handle_GetWalletEntriesCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_Client_GetWalletResponseEntriesCount")] + public static extern uint SKY_api_Handle_Client_GetWalletResponseEntriesCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletGetEntry")] + public static extern uint SKY_api_Handle_WalletGetEntry(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletResponseGetEntry")] + public static extern uint SKY_api_Handle_WalletResponseGetEntry(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletResponseIsEncrypted")] + public static extern uint SKY_api_Handle_WalletResponseIsEncrypted(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletResponseGetCryptoType")] + public static extern uint SKY_api_Handle_WalletResponseGetCryptoType(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletsResponseGetCount")] + public static extern uint SKY_api_Handle_WalletsResponseGetCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletsResponseGetAt")] + public static extern uint SKY_api_Handle_WalletsResponseGetAt(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetWalletFolderAddress")] + public static extern uint SKY_api_Handle_GetWalletFolderAddress(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetWalletSeed")] + public static extern uint SKY_api_Handle_GetWalletSeed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetWalletLastSeed")] + public static extern uint SKY_api_Handle_GetWalletLastSeed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetBuildInfoData")] + public static extern uint SKY_api_Handle_GetBuildInfoData(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ripemd160_New")] + public static extern uint SKY_ripemd160_New(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ripemd160_Write")] + public static extern uint SKY_ripemd160_Write(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ripemd160_Sum")] + public static extern uint SKY_ripemd160_Sum(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_Create")] + public static extern uint SKY_secp256k1go_Number_Create(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_Print")] + public static extern uint SKY_secp256k1go_Number_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_SetHex")] + public static extern uint SKY_secp256k1go_Number_SetHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_IsOdd")] + public static extern uint SKY_secp256k1go_Number_IsOdd(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_IsEqual")] + public static extern uint SKY_secp256k1go_Number_IsEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxOut_Hash")] + public static extern uint SKY_coin_UxOut_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxOut_SnapshotHash")] + public static extern uint SKY_coin_UxOut_SnapshotHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxBody_Hash")] + public static extern uint SKY_coin_UxBody_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxOut_CoinHours")] + public static extern uint SKY_coin_UxOut_CoinHours(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Hashes")] + public static extern uint SKY_coin_UxArray_Hashes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_HasDupes")] + public static extern uint SKY_coin_UxArray_HasDupes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Sort")] + public static extern uint SKY_coin_UxArray_Sort(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Len")] + public static extern uint SKY_coin_UxArray_Len(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Less")] + public static extern uint SKY_coin_UxArray_Less(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Swap")] + public static extern uint SKY_coin_UxArray_Swap(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Coins")] + public static extern uint SKY_coin_UxArray_Coins(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_CoinHours")] + public static extern uint SKY_coin_UxArray_CoinHours(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Sub")] + public static extern uint SKY_coin_UxArray_Sub(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Add")] + public static extern uint SKY_coin_UxArray_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewAddressUxOuts")] + public static extern uint SKY_coin_NewAddressUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Keys")] + public static extern uint SKY_coin_AddressUxOuts_Keys(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Flatten")] + public static extern uint SKY_coin_AddressUxOuts_Flatten(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Sub")] + public static extern uint SKY_coin_AddressUxOuts_Sub(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Add")] + public static extern uint SKY_coin_AddressUxOuts_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Get")] + public static extern uint SKY_coin_AddressUxOuts_Get(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_HasKey")] + public static extern uint SKY_coin_AddressUxOuts_HasKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_GetOutputLength")] + public static extern uint SKY_coin_AddressUxOuts_GetOutputLength(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Length")] + public static extern uint SKY_coin_AddressUxOuts_Length(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Set")] + public static extern uint SKY_coin_AddressUxOuts_Set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encrypt_ScryptChacha20poly1305_Encrypt")] + public static extern uint SKY_encrypt_ScryptChacha20poly1305_Encrypt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encrypt_ScryptChacha20poly1305_Decrypt")] + public static extern uint SKY_encrypt_ScryptChacha20poly1305_Decrypt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_CreateOptionsHandle")] + public static extern uint SKY_wallet_CreateOptionsHandle(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, byte jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, ulong jarg7, global::System.Runtime.InteropServices.HandleRef jarg8); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_AddPrivateKey")] + public static extern uint SKY_cli_AddPrivateKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_AddPrivateKeyToFile")] + public static extern uint SKY_cli_AddPrivateKeyToFile(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_GenerateKeyPair")] + public static extern uint SKY_secp256k1_GenerateKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_PubkeyFromSeckey")] + public static extern uint SKY_secp256k1_PubkeyFromSeckey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_UncompressPubkey")] + public static extern uint SKY_secp256k1_UncompressPubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_UncompressedPubkeyFromSeckey")] + public static extern uint SKY_secp256k1_UncompressedPubkeyFromSeckey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_Secp256k1Hash")] + public static extern uint SKY_secp256k1_Secp256k1Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_GenerateDeterministicKeyPair")] + public static extern uint SKY_secp256k1_GenerateDeterministicKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_DeterministicKeyPairIterator")] + public static extern uint SKY_secp256k1_DeterministicKeyPairIterator(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_Sign")] + public static extern uint SKY_secp256k1_Sign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_SignDeterministic")] + public static extern uint SKY_secp256k1_SignDeterministic(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_VerifySeckey")] + public static extern uint SKY_secp256k1_VerifySeckey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_VerifyPubkey")] + public static extern uint SKY_secp256k1_VerifyPubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_VerifySignatureValidity")] + public static extern uint SKY_secp256k1_VerifySignatureValidity(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_VerifySignature")] + public static extern uint SKY_secp256k1_VerifySignature(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_SignatureErrorString")] + public static extern uint SKY_secp256k1_SignatureErrorString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_RecoverPubkey")] + public static extern uint SKY_secp256k1_RecoverPubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_ECDH")] + public static extern uint SKY_secp256k1_ECDH(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_apputil_CatchInterruptPanic")] + public static extern uint SKY_apputil_CatchInterruptPanic(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_apputil_CatchDebug")] + public static extern uint SKY_apputil_CatchDebug(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_apputil_PrintProgramStatus")] + public static extern uint SKY_apputil_PrintProgramStatus(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cert_CreateCertIfNotExists")] + public static extern uint SKY_cert_CreateCertIfNotExists(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_VerifyTransactionFee")] + public static extern uint SKY_fee_VerifyTransactionFee(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_VerifyTransactionFeeForHours")] + public static extern uint SKY_fee_VerifyTransactionFeeForHours(ulong jarg1, ulong jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_RequiredFee")] + public static extern uint SKY_fee_RequiredFee(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_RemainingHours")] + public static extern uint SKY_fee_RemainingHours(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_TransactionFee")] + public static extern uint SKY_fee_TransactionFee(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_LoadConfig")] + public static extern uint SKY_cli_LoadConfig(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Config_FullWalletPath")] + public static extern uint SKY_cli_Config_FullWalletPath(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Config_FullDBPath")] + public static extern uint SKY_cli_Config_FullDBPath(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_NewApp")] + public static extern uint SKY_cli_NewApp(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_RPCClientFromContext")] + public static extern uint SKY_cli_RPCClientFromContext(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_ConfigFromContext")] + public static extern uint SKY_cli_ConfigFromContext(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_PasswordFromBytes_Password")] + public static extern uint SKY_cli_PasswordFromBytes_Password(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_PasswordFromTerm_Password")] + public static extern uint SKY_cli_PasswordFromTerm_Password(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_CreateRawTxFromWallet")] + public static extern uint SKY_cli_CreateRawTxFromWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_CreateRawTxFromAddress")] + public static extern uint SKY_cli_CreateRawTxFromAddress(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, global::System.Runtime.InteropServices.HandleRef jarg7); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_CreateRawTx")] + public static extern uint SKY_cli_CreateRawTx(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, global::System.Runtime.InteropServices.HandleRef jarg7); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_NewTransaction")] + public static extern uint SKY_cli_NewTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_file_InitDataDir")] + public static extern uint SKY_file_InitDataDir(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_file_UserHome")] + public static extern uint SKY_file_UserHome(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_file_ResolveResourceDirectory")] + public static extern uint SKY_file_ResolveResourceDirectory(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_file_DetermineResourcePath")] + public static extern uint SKY_file_DetermineResourcePath(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GetWalletOutputsFromFile")] + public static extern uint SKY_cli_GetWalletOutputsFromFile(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GetWalletOutputs")] + public static extern uint SKY_cli_GetWalletOutputs(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_testutil_MakeAddress")] + public static extern uint SKY_testutil_MakeAddress(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_String")] + public static extern uint SKY_secp256k1go_Field_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Print")] + public static extern uint SKY_secp256k1go_Field_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_SetB32")] + public static extern uint SKY_secp256k1go_Field_SetB32(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_SetBytes")] + public static extern uint SKY_secp256k1go_Field_SetBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_SetHex")] + public static extern uint SKY_secp256k1go_Field_SetHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_IsOdd")] + public static extern uint SKY_secp256k1go_Field_IsOdd(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_IsZero")] + public static extern uint SKY_secp256k1go_Field_IsZero(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_SetInt")] + public static extern uint SKY_secp256k1go_Field_SetInt(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Normalize")] + public static extern uint SKY_secp256k1go_Field_Normalize(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_GetB32")] + public static extern uint SKY_secp256k1go_Field_GetB32(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Equals")] + public static extern uint SKY_secp256k1go_Field_Equals(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_SetAdd")] + public static extern uint SKY_secp256k1go_Field_SetAdd(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_MulInt")] + public static extern uint SKY_secp256k1go_Field_MulInt(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Negate")] + public static extern uint SKY_secp256k1go_Field_Negate(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, uint jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Inv")] + public static extern uint SKY_secp256k1go_Field_Inv(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Sqrt")] + public static extern uint SKY_secp256k1go_Field_Sqrt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_InvVar")] + public static extern uint SKY_secp256k1go_Field_InvVar(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Mul")] + public static extern uint SKY_secp256k1go_Field_Mul(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Sqr")] + public static extern uint SKY_secp256k1go_Field_Sqr(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_scrypt_Key")] + public static extern uint SKY_scrypt_Key(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, long jarg4, long jarg5, long jarg6, global::System.Runtime.InteropServices.HandleRef jarg7); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Ripemd160_Set")] + public static extern uint SKY_cipher_Ripemd160_Set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_HashRipemd160")] + public static extern uint SKY_cipher_HashRipemd160(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Set")] + public static extern uint SKY_cipher_SHA256_Set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Hex")] + public static extern uint SKY_cipher_SHA256_Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Xor")] + public static extern uint SKY_cipher_SHA256_Xor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SumSHA256")] + public static extern uint SKY_cipher_SumSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256FromHex")] + public static extern uint SKY_cipher_SHA256FromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_DoubleSHA256")] + public static extern uint SKY_cipher_DoubleSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddSHA256")] + public static extern uint SKY_cipher_AddSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Merkle")] + public static extern uint SKY_cipher_Merkle(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Null")] + public static extern uint SKY_cipher_SHA256_Null(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Create_Transaction")] + public static extern uint SKY_coin_Create_Transaction(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Copy")] + public static extern uint SKY_coin_Transaction_Copy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetTransactionObject")] + public static extern uint SKY_coin_GetTransactionObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_ResetInputs")] + public static extern uint SKY_coin_Transaction_ResetInputs(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetInputsCount")] + public static extern uint SKY_coin_Transaction_GetInputsCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetInputAt")] + public static extern uint SKY_coin_Transaction_GetInputAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SetInputAt")] + public static extern uint SKY_coin_Transaction_SetInputAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetOutputsCount")] + public static extern uint SKY_coin_Transaction_GetOutputsCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetOutputAt")] + public static extern uint SKY_coin_Transaction_GetOutputAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SetOutputAt")] + public static extern uint SKY_coin_Transaction_SetOutputAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetSignaturesCount")] + public static extern uint SKY_coin_Transaction_GetSignaturesCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetSignatureAt")] + public static extern uint SKY_coin_Transaction_GetSignatureAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SetSignatureAt")] + public static extern uint SKY_coin_Transaction_SetSignatureAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_PushSignature")] + public static extern uint SKY_coin_Transaction_PushSignature(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_ResetOutputs")] + public static extern uint SKY_coin_Transaction_ResetOutputs(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_ResetSignatures")] + public static extern uint SKY_coin_Transaction_ResetSignatures(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Verify")] + public static extern uint SKY_coin_Transaction_Verify(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_VerifyInput")] + public static extern uint SKY_coin_Transaction_VerifyInput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_PushInput")] + public static extern uint SKY_coin_Transaction_PushInput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_TransactionOutput_UxID")] + public static extern uint SKY_coin_TransactionOutput_UxID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_PushOutput")] + public static extern uint SKY_coin_Transaction_PushOutput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, ulong jarg3, ulong jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SignInputs")] + public static extern uint SKY_coin_Transaction_SignInputs(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Size")] + public static extern uint SKY_coin_Transaction_Size(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Hash")] + public static extern uint SKY_coin_Transaction_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SizeHash")] + public static extern uint SKY_coin_Transaction_SizeHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_TxID")] + public static extern uint SKY_coin_Transaction_TxID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_TxIDHex")] + public static extern uint SKY_coin_Transaction_TxIDHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_UpdateHeader")] + public static extern uint SKY_coin_Transaction_UpdateHeader(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_HashInner")] + public static extern uint SKY_coin_Transaction_HashInner(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Serialize")] + public static extern uint SKY_coin_Transaction_Serialize(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_TransactionDeserialize")] + public static extern uint SKY_coin_TransactionDeserialize(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_OutputHours")] + public static extern uint SKY_coin_Transaction_OutputHours(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Create_Transactions")] + public static extern uint SKY_coin_Create_Transactions(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetTransactionsObject")] + public static extern uint SKY_coin_GetTransactionsObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Length")] + public static extern uint SKY_coin_Transactions_Length(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Add")] + public static extern uint SKY_coin_Transactions_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Fees")] + public static extern uint SKY_coin_Transactions_Fees(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_GetAt")] + public static extern uint SKY_coin_Transactions_GetAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Hashes")] + public static extern uint SKY_coin_Transactions_Hashes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Size")] + public static extern uint SKY_coin_Transactions_Size(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_TruncateBytesTo")] + public static extern uint SKY_coin_Transactions_TruncateBytesTo(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SortTransactions")] + public static extern uint SKY_coin_SortTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewSortableTransactions")] + public static extern uint SKY_coin_NewSortableTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SortableTransactions_Sort")] + public static extern uint SKY_coin_SortableTransactions_Sort(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SortableTransactions_Len")] + public static extern uint SKY_coin_SortableTransactions_Len(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SortableTransactions_Less")] + public static extern uint SKY_coin_SortableTransactions_Less(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SortableTransactions_Swap")] + public static extern uint SKY_coin_SortableTransactions_Swap(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_VerifyTransactionCoinsSpending")] + public static extern uint SKY_coin_VerifyTransactionCoinsSpending(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_VerifyTransactionHoursSpending")] + public static extern uint SKY_coin_VerifyTransactionHoursSpending(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Address_isEqual")] + public static extern int cipher__Address_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Address_Version_set")] + public static extern void cipher__Address_Version_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Address_Version_get")] + public static extern global::System.IntPtr cipher__Address_Version_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Address_Key_set")] + public static extern void cipher__Address_Key_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Address_Key_get")] + public static extern global::System.IntPtr cipher__Address_Key_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher__Address")] + public static extern global::System.IntPtr new_cipher__Address(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher__Address")] + public static extern void delete_cipher__Address(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encoder__StructField_Name_set")] + public static extern void encoder__StructField_Name_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encoder__StructField_Name_get")] + public static extern global::System.IntPtr encoder__StructField_Name_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encoder__StructField_Kind_set")] + public static extern void encoder__StructField_Kind_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encoder__StructField_Kind_get")] + public static extern global::System.IntPtr encoder__StructField_Kind_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encoder__StructField_Type_set")] + public static extern void encoder__StructField_Type_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encoder__StructField_Type_get")] + public static extern global::System.IntPtr encoder__StructField_Type_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encoder__StructField_Tag_set")] + public static extern void encoder__StructField_Tag_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encoder__StructField_Tag_get")] + public static extern global::System.IntPtr encoder__StructField_Tag_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_encoder__StructField")] + public static extern global::System.IntPtr new_encoder__StructField(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_encoder__StructField")] + public static extern void delete_encoder__StructField(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encrypt__ScryptChacha20poly1305_N_set")] + public static extern void encrypt__ScryptChacha20poly1305_N_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encrypt__ScryptChacha20poly1305_N_get")] + public static extern global::System.IntPtr encrypt__ScryptChacha20poly1305_N_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encrypt__ScryptChacha20poly1305_R_set")] + public static extern void encrypt__ScryptChacha20poly1305_R_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encrypt__ScryptChacha20poly1305_R_get")] + public static extern global::System.IntPtr encrypt__ScryptChacha20poly1305_R_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encrypt__ScryptChacha20poly1305_P_set")] + public static extern void encrypt__ScryptChacha20poly1305_P_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encrypt__ScryptChacha20poly1305_P_get")] + public static extern global::System.IntPtr encrypt__ScryptChacha20poly1305_P_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encrypt__ScryptChacha20poly1305_KeyLen_set")] + public static extern void encrypt__ScryptChacha20poly1305_KeyLen_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encrypt__ScryptChacha20poly1305_KeyLen_get")] + public static extern global::System.IntPtr encrypt__ScryptChacha20poly1305_KeyLen_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_encrypt__ScryptChacha20poly1305")] + public static extern global::System.IntPtr new_encrypt__ScryptChacha20poly1305(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_encrypt__ScryptChacha20poly1305")] + public static extern void delete_encrypt__ScryptChacha20poly1305(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__Field_n_set")] + public static extern void secp256k1go__Field_n_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__Field_n_get")] + public static extern global::System.IntPtr secp256k1go__Field_n_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_secp256k1go__Field")] + public static extern global::System.IntPtr new_secp256k1go__Field(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_secp256k1go__Field")] + public static extern void delete_secp256k1go__Field(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XY_X_set")] + public static extern void secp256k1go__XY_X_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XY_X_get")] + public static extern global::System.IntPtr secp256k1go__XY_X_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XY_Y_set")] + public static extern void secp256k1go__XY_Y_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XY_Y_get")] + public static extern global::System.IntPtr secp256k1go__XY_Y_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XY_Infinity_set")] + public static extern void secp256k1go__XY_Infinity_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XY_Infinity_get")] + public static extern global::System.IntPtr secp256k1go__XY_Infinity_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_secp256k1go__XY")] + public static extern global::System.IntPtr new_secp256k1go__XY(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_secp256k1go__XY")] + public static extern void delete_secp256k1go__XY(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XYZ_X_set")] + public static extern void secp256k1go__XYZ_X_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XYZ_X_get")] + public static extern global::System.IntPtr secp256k1go__XYZ_X_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XYZ_Y_set")] + public static extern void secp256k1go__XYZ_Y_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XYZ_Y_get")] + public static extern global::System.IntPtr secp256k1go__XYZ_Y_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XYZ_Z_set")] + public static extern void secp256k1go__XYZ_Z_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XYZ_Z_get")] + public static extern global::System.IntPtr secp256k1go__XYZ_Z_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XYZ_Infinity_set")] + public static extern void secp256k1go__XYZ_Infinity_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XYZ_Infinity_get")] + public static extern global::System.IntPtr secp256k1go__XYZ_Infinity_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_secp256k1go__XYZ")] + public static extern global::System.IntPtr new_secp256k1go__XYZ(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_secp256k1go__XYZ")] + public static extern void delete_secp256k1go__XYZ(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__SortableTransactions_Txns_set")] + public static extern void coin__SortableTransactions_Txns_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__SortableTransactions_Txns_get")] + public static extern global::System.IntPtr coin__SortableTransactions_Txns_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__SortableTransactions_Fees_set")] + public static extern void coin__SortableTransactions_Fees_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__SortableTransactions_Fees_get")] + public static extern global::System.IntPtr coin__SortableTransactions_Fees_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__SortableTransactions_Hashes_set")] + public static extern void coin__SortableTransactions_Hashes_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__SortableTransactions_Hashes_get")] + public static extern global::System.IntPtr coin__SortableTransactions_Hashes_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__SortableTransactions")] + public static extern global::System.IntPtr new_coin__SortableTransactions(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__SortableTransactions")] + public static extern void delete_coin__SortableTransactions(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_isEqual")] + public static extern int coin__Transaction_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_Length_set")] + public static extern void coin__Transaction_Length_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_Length_get")] + public static extern global::System.IntPtr coin__Transaction_Length_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_Type_set")] + public static extern void coin__Transaction_Type_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_Type_get")] + public static extern global::System.IntPtr coin__Transaction_Type_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_InnerHash_set")] + public static extern void coin__Transaction_InnerHash_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_InnerHash_get")] + public static extern global::System.IntPtr coin__Transaction_InnerHash_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_Sigs_set")] + public static extern void coin__Transaction_Sigs_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_Sigs_get")] + public static extern global::System.IntPtr coin__Transaction_Sigs_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_In_set")] + public static extern void coin__Transaction_In_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_In_get")] + public static extern global::System.IntPtr coin__Transaction_In_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_Out_set")] + public static extern void coin__Transaction_Out_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_Out_get")] + public static extern global::System.IntPtr coin__Transaction_Out_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__Transaction")] + public static extern global::System.IntPtr new_coin__Transaction(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__Transaction")] + public static extern void delete_coin__Transaction(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__TransactionOutput_isEqual")] + public static extern int coin__TransactionOutput_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__TransactionOutput_Address_set")] + public static extern void coin__TransactionOutput_Address_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__TransactionOutput_Address_get")] + public static extern global::System.IntPtr coin__TransactionOutput_Address_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__TransactionOutput_Coins_set")] + public static extern void coin__TransactionOutput_Coins_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__TransactionOutput_Coins_get")] + public static extern global::System.IntPtr coin__TransactionOutput_Coins_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__TransactionOutput_Hours_set")] + public static extern void coin__TransactionOutput_Hours_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__TransactionOutput_Hours_get")] + public static extern global::System.IntPtr coin__TransactionOutput_Hours_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__TransactionOutput")] + public static extern global::System.IntPtr new_coin__TransactionOutput(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__TransactionOutput")] + public static extern void delete_coin__TransactionOutput(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_isEqual")] + public static extern int coin__BlockHeader_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_Version_set")] + public static extern void coin__BlockHeader_Version_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_Version_get")] + public static extern global::System.IntPtr coin__BlockHeader_Version_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_Time_set")] + public static extern void coin__BlockHeader_Time_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_Time_get")] + public static extern global::System.IntPtr coin__BlockHeader_Time_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_BkSeq_set")] + public static extern void coin__BlockHeader_BkSeq_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_BkSeq_get")] + public static extern global::System.IntPtr coin__BlockHeader_BkSeq_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_Fee_set")] + public static extern void coin__BlockHeader_Fee_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_Fee_get")] + public static extern global::System.IntPtr coin__BlockHeader_Fee_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_PrevHash_set")] + public static extern void coin__BlockHeader_PrevHash_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_PrevHash_get")] + public static extern global::System.IntPtr coin__BlockHeader_PrevHash_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_BodyHash_set")] + public static extern void coin__BlockHeader_BodyHash_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_BodyHash_get")] + public static extern global::System.IntPtr coin__BlockHeader_BodyHash_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_UxHash_set")] + public static extern void coin__BlockHeader_UxHash_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_UxHash_get")] + public static extern global::System.IntPtr coin__BlockHeader_UxHash_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__BlockHeader")] + public static extern global::System.IntPtr new_coin__BlockHeader(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__BlockHeader")] + public static extern void delete_coin__BlockHeader(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockBody_isEqual")] + public static extern int coin__BlockBody_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockBody_Transactions_set")] + public static extern void coin__BlockBody_Transactions_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockBody_Transactions_get")] + public static extern global::System.IntPtr coin__BlockBody_Transactions_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__BlockBody")] + public static extern global::System.IntPtr new_coin__BlockBody(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__BlockBody")] + public static extern void delete_coin__BlockBody(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Block_Head_set")] + public static extern void coin__Block_Head_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Block_Head_get")] + public static extern global::System.IntPtr coin__Block_Head_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Block_Body_set")] + public static extern void coin__Block_Body_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Block_Body_get")] + public static extern global::System.IntPtr coin__Block_Body_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__Block")] + public static extern global::System.IntPtr new_coin__Block(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__Block")] + public static extern void delete_coin__Block(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__SignedBlock__unnamed_set")] + public static extern void coin__SignedBlock__unnamed_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__SignedBlock__unnamed_get")] + public static extern global::System.IntPtr coin__SignedBlock__unnamed_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__SignedBlock_Sig_set")] + public static extern void coin__SignedBlock_Sig_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__SignedBlock_Sig_get")] + public static extern global::System.IntPtr coin__SignedBlock_Sig_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__SignedBlock")] + public static extern global::System.IntPtr new_coin__SignedBlock(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__SignedBlock")] + public static extern void delete_coin__SignedBlock(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxHead_Time_set")] + public static extern void coin__UxHead_Time_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxHead_Time_get")] + public static extern global::System.IntPtr coin__UxHead_Time_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxHead_BkSeq_set")] + public static extern void coin__UxHead_BkSeq_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxHead_BkSeq_get")] + public static extern global::System.IntPtr coin__UxHead_BkSeq_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__UxHead")] + public static extern global::System.IntPtr new_coin__UxHead(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__UxHead")] + public static extern void delete_coin__UxHead(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxBody_SrcTransaction_set")] + public static extern void coin__UxBody_SrcTransaction_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxBody_SrcTransaction_get")] + public static extern global::System.IntPtr coin__UxBody_SrcTransaction_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxBody_Address_set")] + public static extern void coin__UxBody_Address_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxBody_Address_get")] + public static extern global::System.IntPtr coin__UxBody_Address_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxBody_Coins_set")] + public static extern void coin__UxBody_Coins_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxBody_Coins_get")] + public static extern global::System.IntPtr coin__UxBody_Coins_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxBody_Hours_set")] + public static extern void coin__UxBody_Hours_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxBody_Hours_get")] + public static extern global::System.IntPtr coin__UxBody_Hours_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__UxBody")] + public static extern global::System.IntPtr new_coin__UxBody(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__UxBody")] + public static extern void delete_coin__UxBody(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxOut_isEqual")] + public static extern int coin__UxOut_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxOut_Head_set")] + public static extern void coin__UxOut_Head_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxOut_Head_get")] + public static extern global::System.IntPtr coin__UxOut_Head_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxOut_Body_set")] + public static extern void coin__UxOut_Body_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxOut_Body_get")] + public static extern global::System.IntPtr coin__UxOut_Body_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__UxOut")] + public static extern global::System.IntPtr new_coin__UxOut(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__UxOut")] + public static extern void delete_coin__UxOut(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Balance_Coins_set")] + public static extern void wallet__Balance_Coins_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Balance_Coins_get")] + public static extern global::System.IntPtr wallet__Balance_Coins_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Balance_Hours_set")] + public static extern void wallet__Balance_Hours_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Balance_Hours_get")] + public static extern global::System.IntPtr wallet__Balance_Hours_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__Balance")] + public static extern global::System.IntPtr new_wallet__Balance(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__Balance")] + public static extern void delete_wallet__Balance(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__BalancePair_Confirmed_set")] + public static extern void wallet__BalancePair_Confirmed_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__BalancePair_Confirmed_get")] + public static extern global::System.IntPtr wallet__BalancePair_Confirmed_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__BalancePair_Predicted_set")] + public static extern void wallet__BalancePair_Predicted_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__BalancePair_Predicted_get")] + public static extern global::System.IntPtr wallet__BalancePair_Predicted_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__BalancePair")] + public static extern global::System.IntPtr new_wallet__BalancePair(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__BalancePair")] + public static extern void delete_wallet__BalancePair(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Entry_Address_set")] + public static extern void wallet__Entry_Address_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Entry_Address_get")] + public static extern global::System.IntPtr wallet__Entry_Address_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Entry_Public_set")] + public static extern void wallet__Entry_Public_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Entry_Public_get")] + public static extern global::System.IntPtr wallet__Entry_Public_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Entry_Secret_set")] + public static extern void wallet__Entry_Secret_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Entry_Secret_get")] + public static extern global::System.IntPtr wallet__Entry_Secret_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__Entry")] + public static extern global::System.IntPtr new_wallet__Entry(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__Entry")] + public static extern void delete_wallet__Entry(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Note_TxID_set")] + public static extern void wallet__Note_TxID_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Note_TxID_get")] + public static extern global::System.IntPtr wallet__Note_TxID_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Note_Value_set")] + public static extern void wallet__Note_Value_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Note_Value_get")] + public static extern global::System.IntPtr wallet__Note_Value_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__Note")] + public static extern global::System.IntPtr new_wallet__Note(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__Note")] + public static extern void delete_wallet__Note(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__ReadableNote_TransactionID_set")] + public static extern void wallet__ReadableNote_TransactionID_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__ReadableNote_TransactionID_get")] + public static extern global::System.IntPtr wallet__ReadableNote_TransactionID_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__ReadableNote_ActualNote_set")] + public static extern void wallet__ReadableNote_ActualNote_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__ReadableNote_ActualNote_get")] + public static extern global::System.IntPtr wallet__ReadableNote_ActualNote_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__ReadableNote")] + public static extern global::System.IntPtr new_wallet__ReadableNote(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__ReadableNote")] + public static extern void delete_wallet__ReadableNote(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Wallet_Meta_set")] + public static extern void wallet__Wallet_Meta_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Wallet_Meta_get")] + public static extern global::System.IntPtr wallet__Wallet_Meta_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Wallet_Entries_set")] + public static extern void wallet__Wallet_Entries_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Wallet_Entries_get")] + public static extern global::System.IntPtr wallet__Wallet_Entries_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__Wallet")] + public static extern global::System.IntPtr new_wallet__Wallet(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__Wallet")] + public static extern void delete_wallet__Wallet(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__UxBalance_Hash_set")] + public static extern void wallet__UxBalance_Hash_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__UxBalance_Hash_get")] + public static extern global::System.IntPtr wallet__UxBalance_Hash_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__UxBalance_BkSeq_set")] + public static extern void wallet__UxBalance_BkSeq_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__UxBalance_BkSeq_get")] + public static extern global::System.IntPtr wallet__UxBalance_BkSeq_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__UxBalance_Address_set")] + public static extern void wallet__UxBalance_Address_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__UxBalance_Address_get")] + public static extern global::System.IntPtr wallet__UxBalance_Address_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__UxBalance_Coins_set")] + public static extern void wallet__UxBalance_Coins_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__UxBalance_Coins_get")] + public static extern global::System.IntPtr wallet__UxBalance_Coins_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__UxBalance_Hours_set")] + public static extern void wallet__UxBalance_Hours_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__UxBalance_Hours_get")] + public static extern global::System.IntPtr wallet__UxBalance_Hours_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__UxBalance")] + public static extern global::System.IntPtr new_wallet__UxBalance(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__UxBalance")] + public static extern void delete_wallet__UxBalance(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_api__RichlistParams_N_set")] + public static extern void api__RichlistParams_N_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_api__RichlistParams_N_get")] + public static extern global::System.IntPtr api__RichlistParams_N_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_api__RichlistParams_IncludeDistribution_set")] + public static extern void api__RichlistParams_IncludeDistribution_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_api__RichlistParams_IncludeDistribution_get")] + public static extern global::System.IntPtr api__RichlistParams_IncludeDistribution_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_api__RichlistParams")] + public static extern global::System.IntPtr new_api__RichlistParams(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_api__RichlistParams")] + public static extern void delete_api__RichlistParams(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cli__SendAmount_Addr_set")] + public static extern void cli__SendAmount_Addr_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cli__SendAmount_Addr_get")] + public static extern global::System.IntPtr cli__SendAmount_Addr_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cli__SendAmount_Coins_set")] + public static extern void cli__SendAmount_Coins_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cli__SendAmount_Coins_get")] + public static extern global::System.IntPtr cli__SendAmount_Coins_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cli__SendAmount")] + public static extern global::System.IntPtr new_cli__SendAmount(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cli__SendAmount")] + public static extern void delete_cli__SendAmount(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_httphelper__Address__unnamed_set")] + public static extern void httphelper__Address__unnamed_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_httphelper__Address__unnamed_get")] + public static extern global::System.IntPtr httphelper__Address__unnamed_get(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_httphelper__Address")] + public static extern global::System.IntPtr new_httphelper__Address(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_httphelper__Address")] + public static extern void delete_httphelper__Address(global::System.Runtime.InteropServices.HandleRef jarg1); +} + +} diff --git a/LibskycoinNet/skycoin1/skycoinnet_wrap.c b/LibskycoinNet/skycoin1/skycoinnet_wrap.c new file mode 100644 index 00000000..7898bbb5 --- /dev/null +++ b/LibskycoinNet/skycoin1/skycoinnet_wrap.c @@ -0,0 +1,15044 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 3.0.12 + * + * This file is not intended to be easily readable and contains a number of + * coding conventions designed to improve portability and efficiency. Do not make + * changes to this file unless you know what you are doing--modify the SWIG + * interface file instead. + * ----------------------------------------------------------------------------- */ + + +#ifndef SWIGCSHARP +#define SWIGCSHARP +#endif + + +/* ----------------------------------------------------------------------------- + * This section contains generic SWIG labels for method/variable + * declarations/attributes, and other compiler dependent labels. + * ----------------------------------------------------------------------------- */ + +/* template workaround for compilers that cannot correctly implement the C++ standard */ +#ifndef SWIGTEMPLATEDISAMBIGUATOR +# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) +# define SWIGTEMPLATEDISAMBIGUATOR template +# elif defined(__HP_aCC) +/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ +/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ +# define SWIGTEMPLATEDISAMBIGUATOR template +# else +# define SWIGTEMPLATEDISAMBIGUATOR +# endif +#endif + +/* inline attribute */ +#ifndef SWIGINLINE +# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) +# define SWIGINLINE inline +# else +# define SWIGINLINE +# endif +#endif + +/* attribute recognised by some compilers to avoid 'unused' warnings */ +#ifndef SWIGUNUSED +# if defined(__GNUC__) +# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) +# define SWIGUNUSED __attribute__ ((__unused__)) +# else +# define SWIGUNUSED +# endif +# elif defined(__ICC) +# define SWIGUNUSED __attribute__ ((__unused__)) +# else +# define SWIGUNUSED +# endif +#endif + +#ifndef SWIG_MSC_UNSUPPRESS_4505 +# if defined(_MSC_VER) +# pragma warning(disable : 4505) /* unreferenced local function has been removed */ +# endif +#endif + +#ifndef SWIGUNUSEDPARM +# ifdef __cplusplus +# define SWIGUNUSEDPARM(p) +# else +# define SWIGUNUSEDPARM(p) p SWIGUNUSED +# endif +#endif + +/* internal SWIG method */ +#ifndef SWIGINTERN +# define SWIGINTERN static SWIGUNUSED +#endif + +/* internal inline SWIG method */ +#ifndef SWIGINTERNINLINE +# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE +#endif + +/* exporting methods */ +#if defined(__GNUC__) +# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) +# ifndef GCC_HASCLASSVISIBILITY +# define GCC_HASCLASSVISIBILITY +# endif +# endif +#endif + +#ifndef SWIGEXPORT +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# if defined(STATIC_LINKED) +# define SWIGEXPORT +# else +# define SWIGEXPORT __declspec(dllexport) +# endif +# else +# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) +# define SWIGEXPORT __attribute__ ((visibility("default"))) +# else +# define SWIGEXPORT +# endif +# endif +#endif + +/* calling conventions for Windows */ +#ifndef SWIGSTDCALL +# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# define SWIGSTDCALL __stdcall +# else +# define SWIGSTDCALL +# endif +#endif + +/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ +#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) +# define _CRT_SECURE_NO_DEPRECATE +#endif + +/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ +#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) +# define _SCL_SECURE_NO_DEPRECATE +#endif + +/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */ +#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES) +# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0 +#endif + +/* Intel's compiler complains if a variable which was never initialised is + * cast to void, which is a common idiom which we use to indicate that we + * are aware a variable isn't used. So we just silence that warning. + * See: https://github.com/swig/swig/issues/192 for more discussion. + */ +#ifdef __INTEL_COMPILER +# pragma warning disable 592 +#endif + + +#include +#include +#include + + +/* Support for throwing C# exceptions from C/C++. There are two types: + * Exceptions that take a message and ArgumentExceptions that take a message and a parameter name. */ +typedef enum { + SWIG_CSharpApplicationException, + SWIG_CSharpArithmeticException, + SWIG_CSharpDivideByZeroException, + SWIG_CSharpIndexOutOfRangeException, + SWIG_CSharpInvalidCastException, + SWIG_CSharpInvalidOperationException, + SWIG_CSharpIOException, + SWIG_CSharpNullReferenceException, + SWIG_CSharpOutOfMemoryException, + SWIG_CSharpOverflowException, + SWIG_CSharpSystemException +} SWIG_CSharpExceptionCodes; + +typedef enum { + SWIG_CSharpArgumentException, + SWIG_CSharpArgumentNullException, + SWIG_CSharpArgumentOutOfRangeException +} SWIG_CSharpExceptionArgumentCodes; + +typedef void (SWIGSTDCALL* SWIG_CSharpExceptionCallback_t)(const char *); +typedef void (SWIGSTDCALL* SWIG_CSharpExceptionArgumentCallback_t)(const char *, const char *); + +typedef struct { + SWIG_CSharpExceptionCodes code; + SWIG_CSharpExceptionCallback_t callback; +} SWIG_CSharpException_t; + +typedef struct { + SWIG_CSharpExceptionArgumentCodes code; + SWIG_CSharpExceptionArgumentCallback_t callback; +} SWIG_CSharpExceptionArgument_t; + +static SWIG_CSharpException_t SWIG_csharp_exceptions[] = { + { SWIG_CSharpApplicationException, NULL }, + { SWIG_CSharpArithmeticException, NULL }, + { SWIG_CSharpDivideByZeroException, NULL }, + { SWIG_CSharpIndexOutOfRangeException, NULL }, + { SWIG_CSharpInvalidCastException, NULL }, + { SWIG_CSharpInvalidOperationException, NULL }, + { SWIG_CSharpIOException, NULL }, + { SWIG_CSharpNullReferenceException, NULL }, + { SWIG_CSharpOutOfMemoryException, NULL }, + { SWIG_CSharpOverflowException, NULL }, + { SWIG_CSharpSystemException, NULL } +}; + +static SWIG_CSharpExceptionArgument_t SWIG_csharp_exceptions_argument[] = { + { SWIG_CSharpArgumentException, NULL }, + { SWIG_CSharpArgumentNullException, NULL }, + { SWIG_CSharpArgumentOutOfRangeException, NULL } +}; + +static void SWIGUNUSED SWIG_CSharpSetPendingException(SWIG_CSharpExceptionCodes code, const char *msg) { + SWIG_CSharpExceptionCallback_t callback = SWIG_csharp_exceptions[SWIG_CSharpApplicationException].callback; + if ((size_t)code < sizeof(SWIG_csharp_exceptions)/sizeof(SWIG_CSharpException_t)) { + callback = SWIG_csharp_exceptions[code].callback; + } + callback(msg); +} + +static void SWIGUNUSED SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpExceptionArgumentCodes code, const char *msg, const char *param_name) { + SWIG_CSharpExceptionArgumentCallback_t callback = SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentException].callback; + if ((size_t)code < sizeof(SWIG_csharp_exceptions_argument)/sizeof(SWIG_CSharpExceptionArgument_t)) { + callback = SWIG_csharp_exceptions_argument[code].callback; + } + callback(msg, param_name); +} + + +#ifdef __cplusplus +extern "C" +#endif +SWIGEXPORT void SWIGSTDCALL SWIGRegisterExceptionCallbacks_skycoin( + SWIG_CSharpExceptionCallback_t applicationCallback, + SWIG_CSharpExceptionCallback_t arithmeticCallback, + SWIG_CSharpExceptionCallback_t divideByZeroCallback, + SWIG_CSharpExceptionCallback_t indexOutOfRangeCallback, + SWIG_CSharpExceptionCallback_t invalidCastCallback, + SWIG_CSharpExceptionCallback_t invalidOperationCallback, + SWIG_CSharpExceptionCallback_t ioCallback, + SWIG_CSharpExceptionCallback_t nullReferenceCallback, + SWIG_CSharpExceptionCallback_t outOfMemoryCallback, + SWIG_CSharpExceptionCallback_t overflowCallback, + SWIG_CSharpExceptionCallback_t systemCallback) { + SWIG_csharp_exceptions[SWIG_CSharpApplicationException].callback = applicationCallback; + SWIG_csharp_exceptions[SWIG_CSharpArithmeticException].callback = arithmeticCallback; + SWIG_csharp_exceptions[SWIG_CSharpDivideByZeroException].callback = divideByZeroCallback; + SWIG_csharp_exceptions[SWIG_CSharpIndexOutOfRangeException].callback = indexOutOfRangeCallback; + SWIG_csharp_exceptions[SWIG_CSharpInvalidCastException].callback = invalidCastCallback; + SWIG_csharp_exceptions[SWIG_CSharpInvalidOperationException].callback = invalidOperationCallback; + SWIG_csharp_exceptions[SWIG_CSharpIOException].callback = ioCallback; + SWIG_csharp_exceptions[SWIG_CSharpNullReferenceException].callback = nullReferenceCallback; + SWIG_csharp_exceptions[SWIG_CSharpOutOfMemoryException].callback = outOfMemoryCallback; + SWIG_csharp_exceptions[SWIG_CSharpOverflowException].callback = overflowCallback; + SWIG_csharp_exceptions[SWIG_CSharpSystemException].callback = systemCallback; +} + +#ifdef __cplusplus +extern "C" +#endif +SWIGEXPORT void SWIGSTDCALL SWIGRegisterExceptionArgumentCallbacks_skycoin( + SWIG_CSharpExceptionArgumentCallback_t argumentCallback, + SWIG_CSharpExceptionArgumentCallback_t argumentNullCallback, + SWIG_CSharpExceptionArgumentCallback_t argumentOutOfRangeCallback) { + SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentException].callback = argumentCallback; + SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentNullException].callback = argumentNullCallback; + SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentOutOfRangeException].callback = argumentOutOfRangeCallback; +} + + +/* Callback for returning strings to C# without leaking memory */ +typedef char * (SWIGSTDCALL* SWIG_CSharpStringHelperCallback)(const char *); +static SWIG_CSharpStringHelperCallback SWIG_csharp_string_callback = NULL; + + +#ifdef __cplusplus +extern "C" +#endif +SWIGEXPORT void SWIGSTDCALL SWIGRegisterStringCallback_skycoin(SWIG_CSharpStringHelperCallback callback) { + SWIG_csharp_string_callback = callback; +} + + +/* Contract support */ + +#define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentOutOfRangeException, msg, ""); return nullreturn; } else + + + #define SWIG_FILE_WITH_INIT + #include "libskycoin.h" + + + + void destroy_cipher_SecKeys(cipher_SecKeys* p){ + if( p != NULL ){ + if( p->data != NULL ){ + free( p->data ); + } + } + } + + + int equalSlices(GoSlice* slice1, GoSlice* slice2, int elem_size){ + if(slice1->len != slice2->len) + return 0; + return memcmp(slice1->data, slice2->data, slice1->len * elem_size) == 0; + } + int equalTransactions(coin__Transaction* t1, coin__Transaction* t2){ + if( t1->Length != t2->Length || t1->Type != t2->Type ){ + return 0; + } + if( memcmp(&t1->InnerHash, &t2->InnerHash, sizeof(cipher__SHA256)) != 0 ) + return 0; + if(!equalSlices((GoSlice*)&t1->Sigs, (GoSlice*)&t2->Sigs, sizeof(cipher__Sig))) + return 0; + if(!equalSlices((GoSlice*)&t1->In, (GoSlice*)&t2->In, sizeof(cipher__SHA256))) + return 0; + if(!equalSlices((GoSlice*)&t1->Out, (GoSlice*)&t2->Out, sizeof(coin__TransactionOutput))) + return 0; + return 1; + } + int equalTransactionsArrays(coin__Transactions* pTxs1, coin__Transactions* pTxs2){ + if( pTxs1->len != pTxs2->len ) + return 0; + coin__Transaction* pTx1 = pTxs1->data; + coin__Transaction* pTx2 = pTxs2->data; + int i; + for(i = 0; i < pTxs1->len; i++){ + if(!equalTransactions(pTx1, pTx2)) + return 0; + pTx1++; + pTx2++; + } + return 1; + } + int equalBlockHeaders(coin__BlockHeader* bh1, coin__BlockHeader* bh2){ + if( bh1->Version != bh2->Version || bh1->Time != bh2->Time || + bh1->BkSeq != bh2->BkSeq || bh1->Fee != bh2->Fee) + return 0; + if( memcmp( &bh1->PrevHash, bh2->PrevHash, sizeof(bh2->PrevHash) ) != 0 ) + return 0; + if( memcmp( &bh1->BodyHash, bh2->PrevHash, sizeof(bh2->BodyHash) ) != 0 ) + return 0; + if( memcmp( &bh1->UxHash, bh2->PrevHash, sizeof(bh2->UxHash) ) != 0 ) + return 0; + return 1; + } + + +static cipher_PubKey *new_cipher_PubKeyp() { + return (cipher_PubKey *) calloc(1,sizeof(cipher_PubKey)); +} + +static cipher_PubKey *copy_cipher_PubKeyp(cipher_PubKey value) { + cipher_PubKey *obj = (cipher_PubKey *) calloc(1,sizeof(cipher_PubKey)); + *obj = value; + return obj; +} + +static void delete_cipher_PubKeyp(cipher_PubKey *obj) { + if (obj) free(obj); +} + +static void cipher_PubKeyp_assign(cipher_PubKey *obj, cipher_PubKey value) { + *obj = value; +} + +static cipher_PubKey cipher_PubKeyp_value(cipher_PubKey *obj) { + return *obj; +} + +SWIGINTERN int cipher_PubKey_isEqual(cipher_PubKey *self,cipher_PubKey *a){ + return memcmp(self->data, a->data, sizeof(a->data)) == 0; + } +SWIGINTERN void cipher_PubKey_assignFrom(cipher_PubKey *self,void *data){ + memcpy(&self->data, data, sizeof(self->data)); + } +SWIGINTERN void cipher_PubKey_assignTo(cipher_PubKey *self,void *data){ + memcpy(data, &self->data, sizeof(self->data)); + } +SWIGINTERN int cipher_SecKey_isEqual(cipher_SecKey *self,cipher_SecKey *a){ + return memcmp(self->data, a->data, sizeof(a->data)) == 0; + } +SWIGINTERN void cipher_SecKey_assignFrom(cipher_SecKey *self,void *data){ + memcpy(&self->data, data, sizeof(self->data)); + } +SWIGINTERN void cipher_SecKey_assignTo(cipher_SecKey *self,void *data){ + memcpy(data, &self->data, sizeof(self->data)); + } +SWIGINTERN int cipher_Ripemd160_isEqual(cipher_Ripemd160 *self,cipher_Ripemd160 *a){ + return memcmp(self->data, a->data, sizeof(a->data)) == 0; + } +SWIGINTERN void cipher_Ripemd160_assignFrom(cipher_Ripemd160 *self,void *data){ + memcpy(&self->data, data, sizeof(self->data)); + } +SWIGINTERN void cipher_Ripemd160_assignTo(cipher_Ripemd160 *self,void *data){ + memcpy(data, &self->data, sizeof(self->data)); + } +SWIGINTERN int cipher_Sig_isEqual(cipher_Sig *self,cipher_Sig *a){ + return memcmp(self->data, a->data, sizeof(a->data)) == 0; + } +SWIGINTERN void cipher_Sig_assignFrom(cipher_Sig *self,void *data){ + memcpy(&self->data, data, sizeof(self->data)); + } +SWIGINTERN void cipher_Sig_assignTo(cipher_Sig *self,void *data){ + memcpy(data, &self->data, sizeof(self->data)); + } +SWIGINTERN int cipher_SHA256_isEqual(cipher_SHA256 *self,cipher_SHA256 *a){ + return memcmp(self->data, a->data, sizeof(a->data)) == 0; + } +SWIGINTERN void cipher_SHA256_assignFrom(cipher_SHA256 *self,void *data){ + memcpy(&self->data, data, sizeof(self->data)); + } +SWIGINTERN void cipher_SHA256_assignTo(cipher_SHA256 *self,void *data){ + memcpy(data, &self->data, sizeof(self->data)); + } +SWIGINTERN int cipher_Checksum_isEqual(cipher_Checksum *self,cipher_Checksum *a){ + return memcmp(self->data, a->data, sizeof(a->data)) == 0; + } +SWIGINTERN void cipher_Checksum_assignFrom(cipher_Checksum *self,void *data){ + memcpy(&self->data, data, sizeof(self->data)); + } +SWIGINTERN void cipher_Checksum_assignTo(cipher_Checksum *self,void *data){ + memcpy(data, &self->data, sizeof(self->data)); + } +SWIGINTERN cipher_SecKey *cipher_SecKeys_getAt(cipher_SecKeys *self,int i){ + if( i < self->count ){ + return &self->data[i]; + } + else + return NULL; + } +SWIGINTERN int cipher_SecKeys_setAt(cipher_SecKeys *self,int i,cipher_SecKey *seckey){ + if( i < self->count){ + memcpy(&self->data[i], seckey, sizeof(*seckey)); + return i; + } else { + return -1; + } + } +SWIGINTERN int cipher_SecKeys_isEqual(cipher_SecKeys *self,cipher_SecKeys *a){ + return self->count == a->count && memcmp(self->data, a->data, sizeof(cipher_SecKey) * self->count) == 0; + } +SWIGINTERN void cipher_SecKeys_allocate(cipher_SecKeys *self,int n){ + self->data = malloc(n * sizeof(*(self->data))); + self->count = n; + } +SWIGINTERN void cipher_SecKeys_release(cipher_SecKeys *self){ + destroy_cipher_SecKeys(self); + } +SWIGINTERN cipher_PubKey *cipher_PubKeys_getAt(cipher_PubKeys *self,int i){ + if( i < self->count ){ + return &self->data[i]; + } + else + return NULL; + } +SWIGINTERN int cipher_PubKeys_setAt(cipher_PubKeys *self,int i,cipher_PubKey *pubkey){ + if( i < self->count){ + memcpy(&self->data[i], pubkey, sizeof(*pubkey)); + return i; + } else { + return -1; + } + } +SWIGINTERN int cipher_PubKeys_isEqual(cipher_PubKeys *self,cipher_PubKeys *a){ + return self->count == a->count && memcmp(self->data, a->data, sizeof(cipher_PubKey) * self->count) == 0; + } +SWIGINTERN void cipher_PubKeys_allocate(cipher_PubKeys *self,int n){ + self->data = malloc(n * sizeof(*(self->data))); + self->count = n; + } +SWIGINTERN void cipher_PubKeys_release(cipher_PubKeys *self){ + if(self->data != NULL) + free(self->data); + } +SWIGINTERN cipher_SHA256 *cipher_SHA256s_getAt(cipher_SHA256s *self,int i){ + if( i < self->count ){ + return &self->data[i]; + } + else + return NULL; + } +SWIGINTERN int cipher_SHA256s_setAt(cipher_SHA256s *self,int i,cipher_SHA256 *hash){ + if( i < self->count){ + memcpy(&self->data[i], hash, sizeof(*hash)); + return i; + } else { + return -1; + } + } +SWIGINTERN int cipher_SHA256s_isEqual(cipher_SHA256s *self,cipher_SHA256s *a){ + return self->count == a->count && memcmp(self->data, a->data, sizeof(cipher_SHA256) * self->count) == 0; + } +SWIGINTERN void cipher_SHA256s_allocate(cipher_SHA256s *self,int n){ + self->data = malloc(n * sizeof(*(self->data))); + self->count = n; + } +SWIGINTERN void cipher_SHA256s_release(cipher_SHA256s *self){ + if(self->data != NULL) free(self->data); + } +SWIGINTERN coin__UxOut *coin_UxOutArray_getAt(coin_UxOutArray *self,int i){ + if( i < self->count ){ + return &self->data[i]; + } + else + return NULL; + } +SWIGINTERN int coin_UxOutArray_setAt(coin_UxOutArray *self,int i,coin__UxOut *uxout){ + if( i < self->count){ + memcpy(&self->data[i], uxout, sizeof(*uxout)); + return i; + } else { + return -1; + } + } +SWIGINTERN int coin_UxOutArray_isEqual(coin_UxOutArray *self,coin_UxOutArray *a){ + return self->count == a->count && memcmp(self->data, a->data, sizeof(coin__UxOut) * self->count) == 0; + } +SWIGINTERN void coin_UxOutArray_allocate(coin_UxOutArray *self,int n){ + self->data = malloc(n * sizeof(*(self->data))); + self->count = n; + } +SWIGINTERN void coin_UxOutArray_release(coin_UxOutArray *self){ + if(self->data != NULL) + free(self->data); + } +SWIGINTERN int cipher__Address_isEqual(cipher__Address *self,cipher__Address *a){ + if( self->Version == a->Version ){ + return memcmp(self->Key, a->Key, sizeof(a->Key)) == 0; + } + return 0; + } +SWIGINTERN int coin__Transaction_isEqual(coin__Transaction *self,coin__Transaction *t){ + return equalTransactions(self, t); + } +SWIGINTERN int coin__TransactionOutput_isEqual(coin__TransactionOutput *self,coin__TransactionOutput *t){ + if( self->Coins != t->Coins || + self->Hours != t->Hours ){ + return 0; + } + + if(memcmp(&self->Address, &t->Address, sizeof(cipher__Address)) != 0) + return 0; + return 1; + } +SWIGINTERN int coin__BlockHeader_isEqual(coin__BlockHeader *self,coin__BlockHeader *bh){ + return equalBlockHeaders(self, bh); + } +SWIGINTERN int coin__BlockBody_isEqual(coin__BlockBody *self,coin__BlockBody *b){ + return equalTransactionsArrays(&self->Transactions, &b->Transactions); + } +SWIGINTERN int coin__UxOut_isEqual(coin__UxOut *self,coin__UxOut *u){ + return memcmp(&self, u, sizeof(coin__UxOut)) == 0; + } + +#ifdef __cplusplus +extern "C" { +#endif + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_destroy_cipher_SecKeys(void * jarg1) { + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + + arg1 = (cipher_SecKeys *)jarg1; + destroy_cipher_SecKeys(arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalSlices(void * jarg1, void * jarg2, int jarg3) { + int jresult ; + GoSlice *arg1 = (GoSlice *) 0 ; + GoSlice *arg2 = (GoSlice *) 0 ; + int arg3 ; + int result; + + arg1 = (GoSlice *)jarg1; + arg2 = (GoSlice *)jarg2; + arg3 = (int)jarg3; + result = (int)equalSlices(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalTransactions(void * jarg1, void * jarg2) { + int jresult ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + coin__Transaction *arg2 = (coin__Transaction *) 0 ; + int result; + + arg1 = (coin__Transaction *)jarg1; + arg2 = (coin__Transaction *)jarg2; + result = (int)equalTransactions(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalTransactionsArrays(void * jarg1, void * jarg2) { + int jresult ; + coin__Transactions *arg1 = (coin__Transactions *) 0 ; + coin__Transactions *arg2 = (coin__Transactions *) 0 ; + int result; + + arg1 = (coin__Transactions *)jarg1; + arg2 = (coin__Transactions *)jarg2; + result = (int)equalTransactionsArrays(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalBlockHeaders(void * jarg1, void * jarg2) { + int jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + coin__BlockHeader *arg2 = (coin__BlockHeader *) 0 ; + int result; + + arg1 = (coin__BlockHeader *)jarg1; + arg2 = (coin__BlockHeader *)jarg2; + result = (int)equalBlockHeaders(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT cipher_PubKey* SWIGSTDCALL CSharp_skycoin_new_cipher_PubKeyp() { + cipher_PubKey* jresult ; + cipher_PubKey *result = 0 ; + + result = (cipher_PubKey *)new_cipher_PubKeyp(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT cipher_PubKey* SWIGSTDCALL CSharp_skycoin_copy_cipher_PubKeyp(void * jarg1) { + cipher_PubKey* jresult ; + cipher_PubKey arg1 ; + cipher_PubKey *argp1 ; + cipher_PubKey *result = 0 ; + + argp1 = (cipher_PubKey *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null cipher_PubKey", 0); + return 0; + } + arg1 = *argp1; + result = (cipher_PubKey *)copy_cipher_PubKeyp(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_PubKeyp(cipher_PubKey* jarg1) { + cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; + + cipher_PubKey* + delete_cipher_PubKeyp(arg1); + { + //Typemap freearg *ConfigHandle + } +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKeyp_assign(cipher_PubKey* jarg1, void * jarg2) { + cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; + cipher_PubKey arg2 ; + cipher_PubKey *argp2 ; + + cipher_PubKey* + argp2 = (cipher_PubKey *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null cipher_PubKey", 0); + return ; + } + arg2 = *argp2; + cipher_PubKeyp_assign(arg1,arg2); + { + //Typemap freearg *ConfigHandle + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_PubKeyp_value(cipher_PubKey* jarg1) { + void * jresult ; + cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; + cipher_PubKey result; + + cipher_PubKey* + result = cipher_PubKeyp_value(arg1); + { + cipher_PubKey * resultptr = (cipher_PubKey *) malloc(sizeof(cipher_PubKey)); + memmove(resultptr, &result, sizeof(cipher_PubKey)); + jresult = resultptr; + } + { + //Typemap freearg *ConfigHandle + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_add(cipher_PubKey* jarg1, cipher_PubKey* jarg2, cipher_PubKey* jarg3) { + cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; + cipher_PubKey *arg2 = (cipher_PubKey *) 0 ; + cipher_PubKey *arg3 = (cipher_PubKey *) 0 ; + + cipher_PubKey* + cipher_PubKey* + cipher_PubKey* + add(arg1,arg2,arg3); + { + //Typemap freearg *ConfigHandle + } + { + //Typemap freearg *ConfigHandle + } + { + //Typemap freearg *ConfigHandle + } +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrVerifySignatureInvalidPubkeysLength_get() { + long long jresult ; + long long result; + + result = (long long)(0x0b000036); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_OK_get() { + long long jresult ; + long long result; + + result = (long long)(0); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ERROR_get() { + long long jresult ; + long long result; + + result = (long long)(0x7FFFFFFF); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_API_get() { + long long jresult ; + long long result; + + result = (long long)(0x01000000); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_CIPHER_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000000); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_CLI_get() { + long long jresult ; + long long result; + + result = (long long)(0x03000000); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_COIN_get() { + long long jresult ; + long long result; + + result = (long long)(0x04000000); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_CONSENSUS_get() { + long long jresult ; + long long result; + + result = (long long)(0x05000000); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_DAEMON_get() { + long long jresult ; + long long result; + + result = (long long)(0x06000000); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_GUI_get() { + long long jresult ; + long long result; + + result = (long long)(0x07000000); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_SKYCOIN_get() { + long long jresult ; + long long result; + + result = (long long)(0x08000000); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_UTIL_get() { + long long jresult ; + long long result; + + result = (long long)(0x09000000); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_VISOR_get() { + long long jresult ; + long long result; + + result = (long long)(0x0A000000); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_WALLET_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000000); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrAddressInvalidLength_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000000); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrAddressInvalidChecksum_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000001); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrAddressInvalidVersion_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000002); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrAddressInvalidPubKey_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000003); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrAddressInvalidFirstByte_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000004); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrAddressInvalidLastByte_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000005); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrBufferUnderflow_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000006); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidOmitEmpty_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000007); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidLengthPubKey_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000008); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrPubKeyFromNullSecKey_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000009); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrPubKeyFromBadSecKey_get() { + long long jresult ; + long long result; + + result = (long long)(0x0200000A); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidLengthSecKey_get() { + long long jresult ; + long long result; + + result = (long long)(0x0200000B); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrECHDInvalidPubKey_get() { + long long jresult ; + long long result; + + result = (long long)(0x0200000C); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrECHDInvalidSecKey_get() { + long long jresult ; + long long result; + + result = (long long)(0x0200000D); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidLengthSig_get() { + long long jresult ; + long long result; + + result = (long long)(0x0200000E); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidLengthRipemd160_get() { + long long jresult ; + long long result; + + result = (long long)(0x0200000F); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidLengthSHA256_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000010); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidBase58Char_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000011); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidBase58String_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000012); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidBase58Length_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000013); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidHexLength_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000014); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidBytesLength_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000015); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidPubKey_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000016); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidSecKey_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000017); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidSigForPubKey_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000018); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidSecKeyHex_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000019); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidAddressForSig_get() { + long long jresult ; + long long result; + + result = (long long)(0x0200001A); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidHashForSig_get() { + long long jresult ; + long long result; + + result = (long long)(0x0200001B); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrPubKeyRecoverMismatch_get() { + long long jresult ; + long long result; + + result = (long long)(0x0200001C); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidSigInvalidPubKey_get() { + long long jresult ; + long long result; + + result = (long long)(0x0200001D); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidSigValidity_get() { + long long jresult ; + long long result; + + result = (long long)(0x0200001E); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidSigForMessage_get() { + long long jresult ; + long long result; + + result = (long long)(0x0200001F); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidSecKyVerification_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000020); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrNullPubKeyFromSecKey_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000021); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidDerivedPubKeyFromSecKey_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000022); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidPubKeyFromHash_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000023); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrPubKeyFromSecKeyMissmatch_get() { + long long jresult ; + long long result; + + result = (long long)(0x02000024); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTemporaryInsufficientBalance_get() { + long long jresult ; + long long result; + + result = (long long)(0x03000000); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrAddress_get() { + long long jresult ; + long long result; + + result = (long long)(0x03000001); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrWalletName_get() { + long long jresult ; + long long result; + + result = (long long)(0x03000002); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrJSONMarshal_get() { + long long jresult ; + long long result; + + result = (long long)(0x03000003); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_WalletLoadError_get() { + long long jresult ; + long long result; + + result = (long long)(0x03000004); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_WalletSaveError_get() { + long long jresult ; + long long result; + + result = (long long)(0x03000005); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrAddEarnedCoinHoursAdditionOverflow_get() { + long long jresult ; + long long result; + + result = (long long)(0x04000000); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrUint64MultOverflow_get() { + long long jresult ; + long long result; + + result = (long long)(0x04000001); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrUint64AddOverflow_get() { + long long jresult ; + long long result; + + result = (long long)(0x04000002); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrUint32AddOverflow_get() { + long long jresult ; + long long result; + + result = (long long)(0x04000003); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrUint64OverflowsInt64_get() { + long long jresult ; + long long result; + + result = (long long)(0x04000004); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInt64UnderflowsUint64_get() { + long long jresult ; + long long result; + + result = (long long)(0x04000005); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrPeerlistFull_get() { + long long jresult ; + long long result; + + result = (long long)(0x06000000); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidAddress_get() { + long long jresult ; + long long result; + + result = (long long)(0x06000001); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrNoLocalhost_get() { + long long jresult ; + long long result; + + result = (long long)(0x06000002); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrNotExternalIP_get() { + long long jresult ; + long long result; + + result = (long long)(0x06000003); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrPortTooLow_get() { + long long jresult ; + long long result; + + result = (long long)(0x06000004); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrBlacklistedAddress_get() { + long long jresult ; + long long result; + + result = (long long)(0x06000005); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectReadFailed_get() { + long long jresult ; + long long result; + + result = (long long)(0x06000006); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectWriteFailed_get() { + long long jresult ; + long long result; + + result = (long long)(0x06000007); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectSetReadDeadlineFailed_get() { + long long jresult ; + long long result; + + result = (long long)(0x06000008); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectInvalidMessageLength_get() { + long long jresult ; + long long result; + + result = (long long)(0x06000009); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectMalformedMessage_get() { + long long jresult ; + long long result; + + result = (long long)(0x0600000A); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectUnknownMessage_get() { + long long jresult ; + long long result; + + result = (long long)(0x0600000B); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectUnexpectedError_get() { + long long jresult ; + long long result; + + result = (long long)(0x0600000C); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrConnectionPoolClosed_get() { + long long jresult ; + long long result; + + result = (long long)(0x0600000D); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrWriteQueueFull_get() { + long long jresult ; + long long result; + + result = (long long)(0x0600000E); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrNoReachableConnections_get() { + long long jresult ; + long long result; + + result = (long long)(0x0600000F); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMaxDefaultConnectionsReached_get() { + long long jresult ; + long long result; + + result = (long long)(0x06000010); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectInvalidVersion_get() { + long long jresult ; + long long result; + + result = (long long)(0x06000011); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectIntroductionTimeout_get() { + long long jresult ; + long long result; + + result = (long long)(0x06000012); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectVersionSendFailed_get() { + long long jresult ; + long long result; + + result = (long long)(0x06000013); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectIsBlacklisted_get() { + long long jresult ; + long long result; + + result = (long long)(0x06000014); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectSelf_get() { + long long jresult ; + long long result; + + result = (long long)(0x06000015); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectConnectedTwice_get() { + long long jresult ; + long long result; + + result = (long long)(0x06000016); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectIdle_get() { + long long jresult ; + long long result; + + result = (long long)(0x06000017); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectNoIntroduction_get() { + long long jresult ; + long long result; + + result = (long long)(0x06000018); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectIPLimitReached_get() { + long long jresult ; + long long result; + + result = (long long)(0x06000019); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectOtherError_get() { + long long jresult ; + long long result; + + result = (long long)(0x0600001A); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectMaxDefaultConnectionReached_get() { + long long jresult ; + long long result; + + result = (long long)(0x0600001B); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectMaxOutgoingConnectionsReached_get() { + long long jresult ; + long long result; + + result = (long long)(0x0600001C); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ConnectionError_get() { + long long jresult ; + long long result; + + result = (long long)(0x0600001D); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTxnNoFee_get() { + long long jresult ; + long long result; + + result = (long long)(0x09000000); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTxnInsufficientFee_get() { + long long jresult ; + long long result; + + result = (long long)(0x09000001); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTxnInsufficientCoinHours_get() { + long long jresult ; + long long result; + + result = (long long)(0x09000002); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrNegativeValue_get() { + long long jresult ; + long long result; + + result = (long long)(0x09000003); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTooManyDecimals_get() { + long long jresult ; + long long result; + + result = (long long)(0x09000004); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTooLarge_get() { + long long jresult ; + long long result; + + result = (long long)(0x09000005); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrEmptyDirectoryName_get() { + long long jresult ; + long long result; + + result = (long long)(0x09000006); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDotDirectoryName_get() { + long long jresult ; + long long result; + + result = (long long)(0x09000007); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrHistoryDBCorrupted_get() { + long long jresult ; + long long result; + + result = (long long)(0x0A000000); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrUxOutNotExist_get() { + long long jresult ; + long long result; + + result = (long long)(0x0A000001); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrNoHeadBlock_get() { + long long jresult ; + long long result; + + result = (long long)(0x0A000002); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMissingSignature_get() { + long long jresult ; + long long result; + + result = (long long)(0x0A000003); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrUnspentNotExist_get() { + long long jresult ; + long long result; + + result = (long long)(0x0A000004); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrVerifyStopped_get() { + long long jresult ; + long long result; + + result = (long long)(0x0A000005); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrCreateBucketFailed_get() { + long long jresult ; + long long result; + + result = (long long)(0x0A000000); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrBucketNotExist_get() { + long long jresult ; + long long result; + + result = (long long)(0x0A000006); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTxnViolatesHardConstraint_get() { + long long jresult ; + long long result; + + result = (long long)(0x0A000007); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTxnViolatesSoftConstraint_get() { + long long jresult ; + long long result; + + result = (long long)(0x0A000008); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTxnViolatesUserConstraint_get() { + long long jresult ; + long long result; + + result = (long long)(0x0A000009); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInsufficientBalance_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000000); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInsufficientHours_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000001); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrZeroSpend_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000002); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrSpendingUnconfirmed_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000003); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidEncryptedField_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000004); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrWalletEncrypted_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000005); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrWalletNotEncrypted_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000006); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMissingPassword_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000007); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMissingEncrypt_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000008); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidPassword_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000009); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMissingSeed_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B00000A); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMissingAuthenticated_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B00000B); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrWrongCryptoType_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B00000C); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrWalletNotExist_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B00000D); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrSeedUsed_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B00000E); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrWalletAPIDisabled_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B00000F); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrSeedAPIDisabled_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000010); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrWalletNameConflict_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000011); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidHoursSelectionMode_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000012); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidHoursSelectionType_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000013); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrUnknownAddress_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000014); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrUnknownUxOut_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000015); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrNoUnspents_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000016); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrNullChangeAddress_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000017); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMissingTo_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000018); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrZeroCoinsTo_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000019); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrNullAddressTo_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B00001A); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDuplicateTo_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B00001B); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMissingWalletID_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B00001C); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrIncludesNullAddress_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B00001D); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDuplicateAddresses_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B00001E); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrZeroToHoursAuto_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B00001F); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMissingModeAuto_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000020); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidHoursSelMode_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000021); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidModeManual_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000022); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidHoursSelType_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000023); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMissingShareFactor_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000024); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidShareFactor_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000025); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrShareFactorOutOfRange_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000026); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrWalletConstraint_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000027); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDuplicateUxOuts_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000028); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrUnknownWalletID_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B000029); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrSHA256orMissingPassword_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B00002A); + jresult = result; + return jresult; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrSHA256LenghtDataOverflowMaxUint32_get() { + long long jresult ; + long long result; + + result = (long long)(0x0B00002B); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_PubKey_isEqual(cipher_PubKey* jarg1, cipher_PubKey* jarg2) { + int jresult ; + cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; + cipher_PubKey *arg2 = (cipher_PubKey *) 0 ; + int result; + + cipher_PubKey* + cipher_PubKey* + result = (int)cipher_PubKey_isEqual(arg1,arg2); + jresult = result; + { + //Typemap freearg *ConfigHandle + } + { + //Typemap freearg *ConfigHandle + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKey_assignFrom(cipher_PubKey* jarg1, void * jarg2) { + cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; + void *arg2 = (void *) 0 ; + + cipher_PubKey* + arg2 = (void *)jarg2; + cipher_PubKey_assignFrom(arg1,arg2); + { + //Typemap freearg *ConfigHandle + } +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKey_assignTo(cipher_PubKey* jarg1, void * jarg2) { + cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; + void *arg2 = (void *) 0 ; + + cipher_PubKey* + arg2 = (void *)jarg2; + cipher_PubKey_assignTo(arg1,arg2); + { + //Typemap freearg *ConfigHandle + } +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKey_data_set(cipher_PubKey* jarg1, void * jarg2) { + cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; + GoUint8 *arg2 ; + + cipher_PubKey* + arg2 = (GoUint8 *)jarg2; + { + size_t ii; + GoUint8 *b = (GoUint8 *) arg1->data; + for (ii = 0; ii < (size_t)33; ii++) b[ii] = *((GoUint8 *) arg2 + ii); + } + { + //Typemap freearg *ConfigHandle + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_PubKey_data_get(cipher_PubKey* jarg1) { + void * jresult ; + cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; + GoUint8 *result = 0 ; + + cipher_PubKey* + result = (GoUint8 *)(GoUint8 *) ((arg1)->data); + jresult = result; + { + //Typemap freearg *ConfigHandle + } + return jresult; +} + + +SWIGEXPORT cipher_PubKey* SWIGSTDCALL CSharp_skycoin_new_cipher_PubKey() { + cipher_PubKey* jresult ; + cipher_PubKey *result = 0 ; + + result = (cipher_PubKey *)calloc(1, sizeof(cipher_PubKey)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_PubKey(cipher_PubKey* jarg1) { + cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; + + cipher_PubKey* + free((char *) arg1); + { + //Typemap freearg *ConfigHandle + } +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_SecKey_isEqual(void * jarg1, void * jarg2) { + int jresult ; + cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; + cipher_SecKey *arg2 = (cipher_SecKey *) 0 ; + int result; + + arg1 = (cipher_SecKey *)jarg1; + arg2 = (cipher_SecKey *)jarg2; + result = (int)cipher_SecKey_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SecKey_assignFrom(void * jarg1, void * jarg2) { + cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (cipher_SecKey *)jarg1; + arg2 = (void *)jarg2; + cipher_SecKey_assignFrom(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SecKey_assignTo(void * jarg1, void * jarg2) { + cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (cipher_SecKey *)jarg1; + arg2 = (void *)jarg2; + cipher_SecKey_assignTo(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SecKey_data_set(void * jarg1, void * jarg2) { + cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; + GoUint8 *arg2 ; + + arg1 = (cipher_SecKey *)jarg1; + arg2 = (GoUint8 *)jarg2; + { + size_t ii; + GoUint8 *b = (GoUint8 *) arg1->data; + for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8 *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_SecKey_data_get(void * jarg1) { + void * jresult ; + cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; + GoUint8 *result = 0 ; + + arg1 = (cipher_SecKey *)jarg1; + result = (GoUint8 *)(GoUint8 *) ((arg1)->data); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_SecKey() { + void * jresult ; + cipher_SecKey *result = 0 ; + + result = (cipher_SecKey *)calloc(1, sizeof(cipher_SecKey)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_SecKey(void * jarg1) { + cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; + + arg1 = (cipher_SecKey *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_Ripemd160_isEqual(void * jarg1, void * jarg2) { + int jresult ; + cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; + cipher_Ripemd160 *arg2 = (cipher_Ripemd160 *) 0 ; + int result; + + arg1 = (cipher_Ripemd160 *)jarg1; + arg2 = (cipher_Ripemd160 *)jarg2; + result = (int)cipher_Ripemd160_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Ripemd160_assignFrom(void * jarg1, void * jarg2) { + cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (cipher_Ripemd160 *)jarg1; + arg2 = (void *)jarg2; + cipher_Ripemd160_assignFrom(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Ripemd160_assignTo(void * jarg1, void * jarg2) { + cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (cipher_Ripemd160 *)jarg1; + arg2 = (void *)jarg2; + cipher_Ripemd160_assignTo(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Ripemd160_data_set(void * jarg1, void * jarg2) { + cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; + GoUint8 *arg2 ; + + arg1 = (cipher_Ripemd160 *)jarg1; + arg2 = (GoUint8 *)jarg2; + { + size_t ii; + GoUint8 *b = (GoUint8 *) arg1->data; + for (ii = 0; ii < (size_t)20; ii++) b[ii] = *((GoUint8 *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_Ripemd160_data_get(void * jarg1) { + void * jresult ; + cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; + GoUint8 *result = 0 ; + + arg1 = (cipher_Ripemd160 *)jarg1; + result = (GoUint8 *)(GoUint8 *) ((arg1)->data); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_Ripemd160() { + void * jresult ; + cipher_Ripemd160 *result = 0 ; + + result = (cipher_Ripemd160 *)calloc(1, sizeof(cipher_Ripemd160)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_Ripemd160(void * jarg1) { + cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; + + arg1 = (cipher_Ripemd160 *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_Sig_isEqual(void * jarg1, void * jarg2) { + int jresult ; + cipher_Sig *arg1 = (cipher_Sig *) 0 ; + cipher_Sig *arg2 = (cipher_Sig *) 0 ; + int result; + + arg1 = (cipher_Sig *)jarg1; + arg2 = (cipher_Sig *)jarg2; + result = (int)cipher_Sig_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Sig_assignFrom(void * jarg1, void * jarg2) { + cipher_Sig *arg1 = (cipher_Sig *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (cipher_Sig *)jarg1; + arg2 = (void *)jarg2; + cipher_Sig_assignFrom(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Sig_assignTo(void * jarg1, void * jarg2) { + cipher_Sig *arg1 = (cipher_Sig *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (cipher_Sig *)jarg1; + arg2 = (void *)jarg2; + cipher_Sig_assignTo(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Sig_data_set(void * jarg1, void * jarg2) { + cipher_Sig *arg1 = (cipher_Sig *) 0 ; + GoUint8 *arg2 ; + + arg1 = (cipher_Sig *)jarg1; + arg2 = (GoUint8 *)jarg2; + { + size_t ii; + GoUint8 *b = (GoUint8 *) arg1->data; + for (ii = 0; ii < (size_t)65; ii++) b[ii] = *((GoUint8 *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_Sig_data_get(void * jarg1) { + void * jresult ; + cipher_Sig *arg1 = (cipher_Sig *) 0 ; + GoUint8 *result = 0 ; + + arg1 = (cipher_Sig *)jarg1; + result = (GoUint8 *)(GoUint8 *) ((arg1)->data); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_Sig() { + void * jresult ; + cipher_Sig *result = 0 ; + + result = (cipher_Sig *)calloc(1, sizeof(cipher_Sig)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_Sig(void * jarg1) { + cipher_Sig *arg1 = (cipher_Sig *) 0 ; + + arg1 = (cipher_Sig *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_SHA256_isEqual(void * jarg1, void * jarg2) { + int jresult ; + cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; + cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; + int result; + + arg1 = (cipher_SHA256 *)jarg1; + arg2 = (cipher_SHA256 *)jarg2; + result = (int)cipher_SHA256_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SHA256_assignFrom(void * jarg1, void * jarg2) { + cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (cipher_SHA256 *)jarg1; + arg2 = (void *)jarg2; + cipher_SHA256_assignFrom(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SHA256_assignTo(void * jarg1, void * jarg2) { + cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (cipher_SHA256 *)jarg1; + arg2 = (void *)jarg2; + cipher_SHA256_assignTo(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SHA256_data_set(void * jarg1, void * jarg2) { + cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; + GoUint8 *arg2 ; + + arg1 = (cipher_SHA256 *)jarg1; + arg2 = (GoUint8 *)jarg2; + { + size_t ii; + GoUint8 *b = (GoUint8 *) arg1->data; + for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8 *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_SHA256_data_get(void * jarg1) { + void * jresult ; + cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; + GoUint8 *result = 0 ; + + arg1 = (cipher_SHA256 *)jarg1; + result = (GoUint8 *)(GoUint8 *) ((arg1)->data); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_SHA256() { + void * jresult ; + cipher_SHA256 *result = 0 ; + + result = (cipher_SHA256 *)calloc(1, sizeof(cipher_SHA256)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_SHA256(void * jarg1) { + cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; + + arg1 = (cipher_SHA256 *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_Checksum_isEqual(void * jarg1, void * jarg2) { + int jresult ; + cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; + cipher_Checksum *arg2 = (cipher_Checksum *) 0 ; + int result; + + arg1 = (cipher_Checksum *)jarg1; + arg2 = (cipher_Checksum *)jarg2; + result = (int)cipher_Checksum_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Checksum_assignFrom(void * jarg1, void * jarg2) { + cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (cipher_Checksum *)jarg1; + arg2 = (void *)jarg2; + cipher_Checksum_assignFrom(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Checksum_assignTo(void * jarg1, void * jarg2) { + cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (cipher_Checksum *)jarg1; + arg2 = (void *)jarg2; + cipher_Checksum_assignTo(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Checksum_data_set(void * jarg1, void * jarg2) { + cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; + GoUint8 *arg2 ; + + arg1 = (cipher_Checksum *)jarg1; + arg2 = (GoUint8 *)jarg2; + { + size_t ii; + GoUint8 *b = (GoUint8 *) arg1->data; + for (ii = 0; ii < (size_t)4; ii++) b[ii] = *((GoUint8 *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_Checksum_data_get(void * jarg1) { + void * jresult ; + cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; + GoUint8 *result = 0 ; + + arg1 = (cipher_Checksum *)jarg1; + result = (GoUint8 *)(GoUint8 *) ((arg1)->data); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_Checksum() { + void * jresult ; + cipher_Checksum *result = 0 ; + + result = (cipher_Checksum *)calloc(1, sizeof(cipher_Checksum)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_Checksum(void * jarg1) { + cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; + + arg1 = (cipher_Checksum *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_SecKeys_getAt(void * jarg1, int jarg2) { + void * jresult ; + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + int arg2 ; + cipher_SecKey *result = 0 ; + + arg1 = (cipher_SecKeys *)jarg1; + arg2 = (int)jarg2; + result = (cipher_SecKey *)cipher_SecKeys_getAt(arg1,arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_SecKeys_setAt(void * jarg1, int jarg2, void * jarg3) { + int jresult ; + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + int arg2 ; + cipher_SecKey *arg3 = (cipher_SecKey *) 0 ; + int result; + + arg1 = (cipher_SecKeys *)jarg1; + arg2 = (int)jarg2; + arg3 = (cipher_SecKey *)jarg3; + result = (int)cipher_SecKeys_setAt(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_SecKeys_isEqual(void * jarg1, void * jarg2) { + int jresult ; + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + cipher_SecKeys *arg2 = (cipher_SecKeys *) 0 ; + int result; + + arg1 = (cipher_SecKeys *)jarg1; + arg2 = (cipher_SecKeys *)jarg2; + result = (int)cipher_SecKeys_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SecKeys_allocate(void * jarg1, int jarg2) { + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + int arg2 ; + + arg1 = (cipher_SecKeys *)jarg1; + arg2 = (int)jarg2; + cipher_SecKeys_allocate(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SecKeys_release(void * jarg1) { + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + + arg1 = (cipher_SecKeys *)jarg1; + cipher_SecKeys_release(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SecKeys_data_set(void * jarg1, void * jarg2) { + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + cipher_SecKey *arg2 = (cipher_SecKey *) 0 ; + + arg1 = (cipher_SecKeys *)jarg1; + arg2 = (cipher_SecKey *)jarg2; + if (arg1) (arg1)->data = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_SecKeys_data_get(void * jarg1) { + void * jresult ; + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + cipher_SecKey *result = 0 ; + + arg1 = (cipher_SecKeys *)jarg1; + result = (cipher_SecKey *) ((arg1)->data); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SecKeys_count_set(void * jarg1, int jarg2) { + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + int arg2 ; + + arg1 = (cipher_SecKeys *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->count = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_SecKeys_count_get(void * jarg1) { + int jresult ; + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + int result; + + arg1 = (cipher_SecKeys *)jarg1; + result = (int) ((arg1)->count); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_SecKeys() { + void * jresult ; + cipher_SecKeys *result = 0 ; + + result = (cipher_SecKeys *)calloc(1, sizeof(cipher_SecKeys)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_SecKeys(void * jarg1) { + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + + arg1 = (cipher_SecKeys *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT cipher_PubKey* SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_getAt(void * jarg1, int jarg2) { + cipher_PubKey* jresult ; + cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; + int arg2 ; + cipher_PubKey *result = 0 ; + + arg1 = (cipher_PubKeys *)jarg1; + arg2 = (int)jarg2; + result = (cipher_PubKey *)cipher_PubKeys_getAt(arg1,arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_setAt(void * jarg1, int jarg2, cipher_PubKey* jarg3) { + int jresult ; + cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; + int arg2 ; + cipher_PubKey *arg3 = (cipher_PubKey *) 0 ; + int result; + + arg1 = (cipher_PubKeys *)jarg1; + arg2 = (int)jarg2; + cipher_PubKey* + result = (int)cipher_PubKeys_setAt(arg1,arg2,arg3); + jresult = result; + { + //Typemap freearg *ConfigHandle + } + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_isEqual(void * jarg1, void * jarg2) { + int jresult ; + cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; + cipher_PubKeys *arg2 = (cipher_PubKeys *) 0 ; + int result; + + arg1 = (cipher_PubKeys *)jarg1; + arg2 = (cipher_PubKeys *)jarg2; + result = (int)cipher_PubKeys_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_allocate(void * jarg1, int jarg2) { + cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; + int arg2 ; + + arg1 = (cipher_PubKeys *)jarg1; + arg2 = (int)jarg2; + cipher_PubKeys_allocate(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_release(void * jarg1) { + cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; + + arg1 = (cipher_PubKeys *)jarg1; + cipher_PubKeys_release(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_data_set(void * jarg1, cipher_PubKey* jarg2) { + cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; + cipher_PubKey *arg2 = (cipher_PubKey *) 0 ; + + arg1 = (cipher_PubKeys *)jarg1; + cipher_PubKey* + if (arg1) (arg1)->data = arg2; + { + //Typemap freearg *ConfigHandle + } +} + + +SWIGEXPORT cipher_PubKey* SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_data_get(void * jarg1) { + cipher_PubKey* jresult ; + cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; + cipher_PubKey *result = 0 ; + + arg1 = (cipher_PubKeys *)jarg1; + result = (cipher_PubKey *) ((arg1)->data); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_count_set(void * jarg1, int jarg2) { + cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; + int arg2 ; + + arg1 = (cipher_PubKeys *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->count = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_count_get(void * jarg1) { + int jresult ; + cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; + int result; + + arg1 = (cipher_PubKeys *)jarg1; + result = (int) ((arg1)->count); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_PubKeys() { + void * jresult ; + cipher_PubKeys *result = 0 ; + + result = (cipher_PubKeys *)calloc(1, sizeof(cipher_PubKeys)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_PubKeys(void * jarg1) { + cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; + + arg1 = (cipher_PubKeys *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_SHA256s_getAt(void * jarg1, int jarg2) { + void * jresult ; + cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; + int arg2 ; + cipher_SHA256 *result = 0 ; + + arg1 = (cipher_SHA256s *)jarg1; + arg2 = (int)jarg2; + result = (cipher_SHA256 *)cipher_SHA256s_getAt(arg1,arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_SHA256s_setAt(void * jarg1, int jarg2, void * jarg3) { + int jresult ; + cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; + int arg2 ; + cipher_SHA256 *arg3 = (cipher_SHA256 *) 0 ; + int result; + + arg1 = (cipher_SHA256s *)jarg1; + arg2 = (int)jarg2; + arg3 = (cipher_SHA256 *)jarg3; + result = (int)cipher_SHA256s_setAt(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_SHA256s_isEqual(void * jarg1, void * jarg2) { + int jresult ; + cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; + cipher_SHA256s *arg2 = (cipher_SHA256s *) 0 ; + int result; + + arg1 = (cipher_SHA256s *)jarg1; + arg2 = (cipher_SHA256s *)jarg2; + result = (int)cipher_SHA256s_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SHA256s_allocate(void * jarg1, int jarg2) { + cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; + int arg2 ; + + arg1 = (cipher_SHA256s *)jarg1; + arg2 = (int)jarg2; + cipher_SHA256s_allocate(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SHA256s_release(void * jarg1) { + cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; + + arg1 = (cipher_SHA256s *)jarg1; + cipher_SHA256s_release(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SHA256s_data_set(void * jarg1, void * jarg2) { + cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; + cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; + + arg1 = (cipher_SHA256s *)jarg1; + arg2 = (cipher_SHA256 *)jarg2; + if (arg1) (arg1)->data = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_SHA256s_data_get(void * jarg1) { + void * jresult ; + cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; + cipher_SHA256 *result = 0 ; + + arg1 = (cipher_SHA256s *)jarg1; + result = (cipher_SHA256 *) ((arg1)->data); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SHA256s_count_set(void * jarg1, int jarg2) { + cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; + int arg2 ; + + arg1 = (cipher_SHA256s *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->count = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_SHA256s_count_get(void * jarg1) { + int jresult ; + cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; + int result; + + arg1 = (cipher_SHA256s *)jarg1; + result = (int) ((arg1)->count); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_SHA256s() { + void * jresult ; + cipher_SHA256s *result = 0 ; + + result = (cipher_SHA256s *)calloc(1, sizeof(cipher_SHA256s)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_SHA256s(void * jarg1) { + cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; + + arg1 = (cipher_SHA256s *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_getAt(void * jarg1, int jarg2) { + void * jresult ; + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + int arg2 ; + coin__UxOut *result = 0 ; + + arg1 = (coin_UxOutArray *)jarg1; + arg2 = (int)jarg2; + result = (coin__UxOut *)coin_UxOutArray_getAt(arg1,arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_setAt(void * jarg1, int jarg2, void * jarg3) { + int jresult ; + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + int arg2 ; + coin__UxOut *arg3 = (coin__UxOut *) 0 ; + int result; + + arg1 = (coin_UxOutArray *)jarg1; + arg2 = (int)jarg2; + arg3 = (coin__UxOut *)jarg3; + result = (int)coin_UxOutArray_setAt(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_isEqual(void * jarg1, void * jarg2) { + int jresult ; + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + coin_UxOutArray *arg2 = (coin_UxOutArray *) 0 ; + int result; + + arg1 = (coin_UxOutArray *)jarg1; + arg2 = (coin_UxOutArray *)jarg2; + result = (int)coin_UxOutArray_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_allocate(void * jarg1, int jarg2) { + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + int arg2 ; + + arg1 = (coin_UxOutArray *)jarg1; + arg2 = (int)jarg2; + coin_UxOutArray_allocate(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_release(void * jarg1) { + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + + arg1 = (coin_UxOutArray *)jarg1; + coin_UxOutArray_release(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_data_set(void * jarg1, void * jarg2) { + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + coin__UxOut *arg2 = (coin__UxOut *) 0 ; + + arg1 = (coin_UxOutArray *)jarg1; + arg2 = (coin__UxOut *)jarg2; + if (arg1) (arg1)->data = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_data_get(void * jarg1) { + void * jresult ; + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + coin__UxOut *result = 0 ; + + arg1 = (coin_UxOutArray *)jarg1; + result = (coin__UxOut *) ((arg1)->data); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_count_set(void * jarg1, int jarg2) { + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + int arg2 ; + + arg1 = (coin_UxOutArray *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->count = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_count_get(void * jarg1) { + int jresult ; + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + int result; + + arg1 = (coin_UxOutArray *)jarg1; + result = (int) ((arg1)->count); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin_UxOutArray() { + void * jresult ; + coin_UxOutArray *result = 0 ; + + result = (coin_UxOutArray *)calloc(1, sizeof(coin_UxOutArray)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin_UxOutArray(void * jarg1) { + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + + arg1 = (coin_UxOutArray *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Addresses_data_set(void * jarg1, void * jarg2) { + cipher_Addresses *arg1 = (cipher_Addresses *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + + arg1 = (cipher_Addresses *)jarg1; + arg2 = (cipher__Address *)jarg2; + if (arg1) (arg1)->data = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_Addresses_data_get(void * jarg1) { + void * jresult ; + cipher_Addresses *arg1 = (cipher_Addresses *) 0 ; + cipher__Address *result = 0 ; + + arg1 = (cipher_Addresses *)jarg1; + result = (cipher__Address *) ((arg1)->data); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Addresses_count_set(void * jarg1, int jarg2) { + cipher_Addresses *arg1 = (cipher_Addresses *) 0 ; + int arg2 ; + + arg1 = (cipher_Addresses *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->count = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_Addresses_count_get(void * jarg1) { + int jresult ; + cipher_Addresses *arg1 = (cipher_Addresses *) 0 ; + int result; + + arg1 = (cipher_Addresses *)jarg1; + result = (int) ((arg1)->count); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_Addresses() { + void * jresult ; + cipher_Addresses *result = 0 ; + + result = (cipher_Addresses *)calloc(1, sizeof(cipher_Addresses)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_Addresses(void * jarg1) { + cipher_Addresses *arg1 = (cipher_Addresses *) 0 ; + + arg1 = (cipher_Addresses *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin__GoString__p_set(void * jarg1, char * jarg2) { + _GoString_ *arg1 = (_GoString_ *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (_GoString_ *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->p = (char const *) malloc(strlen((const char *)arg2)+1); + strcpy((char *)arg1->p, (const char *)arg2); + } else { + arg1->p = 0; + } + } +} + + +SWIGEXPORT char * SWIGSTDCALL CSharp_skycoin__GoString__p_get(void * jarg1) { + char * jresult ; + _GoString_ *arg1 = (_GoString_ *) 0 ; + char *result = 0 ; + + arg1 = (_GoString_ *)jarg1; + result = (char *) ((arg1)->p); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin__GoString__n_set(void * jarg1, void * jarg2) { + _GoString_ *arg1 = (_GoString_ *) 0 ; + ptrdiff_t arg2 ; + ptrdiff_t *argp2 ; + + arg1 = (_GoString_ *)jarg1; + argp2 = (ptrdiff_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null ptrdiff_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->n = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin__GoString__n_get(void * jarg1) { + void * jresult ; + _GoString_ *arg1 = (_GoString_ *) 0 ; + ptrdiff_t result; + + arg1 = (_GoString_ *)jarg1; + result = ((arg1)->n); + { + ptrdiff_t * resultptr = (ptrdiff_t *) malloc(sizeof(ptrdiff_t)); + memmove(resultptr, &result, sizeof(ptrdiff_t)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new__GoString_() { + void * jresult ; + _GoString_ *result = 0 ; + + result = (_GoString_ *)calloc(1, sizeof(_GoString_)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete__GoString_(void * jarg1) { + _GoString_ *arg1 = (_GoString_ *) 0 ; + + arg1 = (_GoString_ *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoInterface_t_set(void * jarg1, void * jarg2) { + GoInterface *arg1 = (GoInterface *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (GoInterface *)jarg1; + arg2 = (void *)jarg2; + if (arg1) (arg1)->t = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_GoInterface_t_get(void * jarg1) { + void * jresult ; + GoInterface *arg1 = (GoInterface *) 0 ; + void *result = 0 ; + + arg1 = (GoInterface *)jarg1; + result = (void *) ((arg1)->t); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoInterface_v_set(void * jarg1, void * jarg2) { + GoInterface *arg1 = (GoInterface *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (GoInterface *)jarg1; + arg2 = (void *)jarg2; + if (arg1) (arg1)->v = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_GoInterface_v_get(void * jarg1) { + void * jresult ; + GoInterface *arg1 = (GoInterface *) 0 ; + void *result = 0 ; + + arg1 = (GoInterface *)jarg1; + result = (void *) ((arg1)->v); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_GoInterface() { + void * jresult ; + GoInterface *result = 0 ; + + result = (GoInterface *)calloc(1, sizeof(GoInterface)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_GoInterface(void * jarg1) { + GoInterface *arg1 = (GoInterface *) 0 ; + + arg1 = (GoInterface *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoSlice_data_set(void * jarg1, void * jarg2) { + GoSlice *arg1 = (GoSlice *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (GoSlice *)jarg1; + arg2 = (void *)jarg2; + if (arg1) (arg1)->data = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_GoSlice_data_get(void * jarg1) { + void * jresult ; + GoSlice *arg1 = (GoSlice *) 0 ; + void *result = 0 ; + + arg1 = (GoSlice *)jarg1; + result = (void *) ((arg1)->data); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoSlice_len_set(void * jarg1, long long jarg2) { + GoSlice *arg1 = (GoSlice *) 0 ; + GoInt arg2 ; + + arg1 = (GoSlice *)jarg1; + arg2 = (GoInt)jarg2; + if (arg1) (arg1)->len = arg2; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_GoSlice_len_get(void * jarg1) { + long long jresult ; + GoSlice *arg1 = (GoSlice *) 0 ; + GoInt result; + + arg1 = (GoSlice *)jarg1; + result = (GoInt) ((arg1)->len); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoSlice_cap_set(void * jarg1, long long jarg2) { + GoSlice *arg1 = (GoSlice *) 0 ; + GoInt arg2 ; + + arg1 = (GoSlice *)jarg1; + arg2 = (GoInt)jarg2; + if (arg1) (arg1)->cap = arg2; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_GoSlice_cap_get(void * jarg1) { + long long jresult ; + GoSlice *arg1 = (GoSlice *) 0 ; + GoInt result; + + arg1 = (GoSlice *)jarg1; + result = (GoInt) ((arg1)->cap); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_GoSlice() { + void * jresult ; + GoSlice *result = 0 ; + + result = (GoSlice *)calloc(1, sizeof(GoSlice)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_GoSlice(void * jarg1) { + GoSlice *arg1 = (GoSlice *) 0 ; + + arg1 = (GoSlice *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock(void * jarg1, unsigned long long jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) { + unsigned int jresult ; + Block__Handle arg1 ; + GoUint64 arg2 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + Transactions__Handle arg4 ; + FeeCalculator *arg5 = (FeeCalculator *) 0 ; + Block__Handle *arg6 = (Block__Handle *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoUint64)jarg2; + arg3 = (cipher__SHA256 *)jarg3; + { + SWIG_AsVal_long(jarg4, (long*)&arg4); + } + arg5 = (FeeCalculator *)jarg5; + arg6 = (Block__Handle *)jarg6; + result = (GoUint32)SKY_coin_NewBlock(arg1,arg2,(GoUint8_ (*)[32])arg3,arg4,arg5,arg6); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SignedBlock_VerifySignature(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + GoUint32 result; + + arg1 = (coin__SignedBlock *)jarg1; + arg2 = (cipher__PubKey *)jarg2; + result = (GoUint32)SKY_coin_SignedBlock_VerifySignature(arg1,(GoUint8_ (*)[33])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewGenesisBlock(void * jarg1, unsigned long long jarg2, unsigned long long jarg3, void * jarg4) { + unsigned int jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoUint64 arg2 ; + GoUint64 arg3 ; + Block__Handle *arg4 = (Block__Handle *) 0 ; + GoUint32 result; + + arg1 = (cipher__Address *)jarg1; + arg2 = (GoUint64)jarg2; + arg3 = (GoUint64)jarg3; + arg4 = (Block__Handle *)jarg4; + result = (GoUint32)SKY_coin_NewGenesisBlock(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_HashHeader(void * jarg1, void * jarg2) { + unsigned int jresult ; + Block__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_Block_HashHeader(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_PreHashHeader(void * jarg1, void * jarg2) { + unsigned int jresult ; + Block__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_Block_PreHashHeader(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_Time(void * jarg1, void * jarg2) { + unsigned int jresult ; + Block__Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_coin_Block_Time(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_Seq(void * jarg1, void * jarg2) { + unsigned int jresult ; + Block__Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_coin_Block_Seq(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_HashBody(void * jarg1, void * jarg2) { + unsigned int jresult ; + Block__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_Block_HashBody(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_Size(void * jarg1, void * jarg2) { + unsigned int jresult ; + Block__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_coin_Block_Size(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_String(void * jarg1, void * jarg2) { + unsigned int jresult ; + Block__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_coin_Block_String(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_GetTransaction(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + Block__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + Transaction__Handle *arg3 = (Transaction__Handle *) 0 ; + GoUint8 *arg4 = (GoUint8 *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (cipher__SHA256 *)jarg2; + arg3 = (Transaction__Handle *)jarg3; + arg4 = (GoUint8 *)jarg4; + result = (GoUint32)SKY_coin_Block_GetTransaction(arg1,(GoUint8_ (*)[32])arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlockHeader(void * jarg1, void * jarg2, unsigned long long jarg3, unsigned long long jarg4, void * jarg5, void * jarg6) { + unsigned int jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint64 arg3 ; + GoUint64 arg4 ; + BlockBody__Handle arg5 ; + coin__BlockHeader *arg6 = (coin__BlockHeader *) 0 ; + GoUint32 result; + + arg1 = (coin__BlockHeader *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + arg3 = (GoUint64)jarg3; + arg4 = (GoUint64)jarg4; + { + SWIG_AsVal_long(jarg5, (long*)&arg5); + } + arg6 = (coin__BlockHeader *)jarg6; + result = (GoUint32)SKY_coin_NewBlockHeader(arg1,(GoUint8_ (*)[32])arg2,arg3,arg4,arg5,arg6); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockHeader_Hash(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint32 result; + + arg1 = (coin__BlockHeader *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_BlockHeader_Hash(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockHeader_Bytes(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (coin__BlockHeader *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_coin_BlockHeader_Bytes(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockHeader_String(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + arg1 = (coin__BlockHeader *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_coin_BlockHeader_String(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Hash(void * jarg1, void * jarg2) { + unsigned int jresult ; + BlockBody__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_BlockBody_Hash(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Size(void * jarg1, void * jarg2) { + unsigned int jresult ; + BlockBody__Handle *arg1 = (BlockBody__Handle *) 0 ; + GoInt *arg2 = (GoInt *) 0 ; + GoUint32 result; + + arg1 = (BlockBody__Handle *)jarg1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_coin_BlockBody_Size(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Bytes(void * jarg1, void * jarg2) { + unsigned int jresult ; + BlockBody__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_coin_BlockBody_Bytes(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_CreateUnspents(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + Transaction__Handle arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (coin__BlockHeader *)jarg1; + { + SWIG_AsVal_long(jarg2, (long*)&arg2); + } + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_coin_CreateUnspents(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_CreateUnspent(void * jarg1, void * jarg2, long long jarg3, void * jarg4) { + unsigned int jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + Transaction__Handle arg2 ; + GoInt arg3 ; + coin__UxOut *arg4 = (coin__UxOut *) 0 ; + GoUint32 result; + + arg1 = (coin__BlockHeader *)jarg1; + { + SWIG_AsVal_long(jarg2, (long*)&arg2); + } + arg3 = (GoInt)jarg3; + arg4 = (coin__UxOut *)jarg4; + result = (GoUint32)SKY_coin_CreateUnspent(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetBlockObject(void * jarg1, void * jarg2) { + unsigned int jresult ; + Block__Handle arg1 ; + coin__Block **arg2 = (coin__Block **) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (coin__Block **)jarg2; + result = (GoUint32)SKY_coin_GetBlockObject(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetBlockBody(void * jarg1, void * jarg2) { + unsigned int jresult ; + Block__Handle arg1 ; + BlockBody__Handle *arg2 = (BlockBody__Handle *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (BlockBody__Handle *)jarg2; + result = (GoUint32)SKY_coin_GetBlockBody(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewEmptyBlock(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transactions__Handle arg1 ; + Block__Handle *arg2 = (Block__Handle *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (Block__Handle *)jarg2; + result = (GoUint32)SKY_coin_NewEmptyBlock(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_NewDefaultMnemomic(void * jarg1) { + unsigned int jresult ; + GoString_ *arg1 = (GoString_ *) 0 ; + GoUint32 result; + + arg1 = (GoString_ *)jarg1; + result = (GoUint32)SKY_bip39_NewDefaultMnemomic(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_NewEntropy(long long jarg1, void * jarg2) { + unsigned int jresult ; + GoInt arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (GoInt)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_bip39_NewEntropy(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_NewMnemonic(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_bip39_NewMnemonic(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_MnemonicToByteArray(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_bip39_MnemonicToByteArray(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_IsMnemonicValid(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_bip39_IsMnemonicValid(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewClient(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + Client__Handle *arg2 = (Client__Handle *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Client__Handle *)jarg2; + result = (GoUint32)SKY_api_NewClient(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CSRF(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_api_Client_CSRF(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Version(void * jarg1) { + unsigned int jresult ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; + GoUint32 result; + + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_Version(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Outputs(void * jarg1) { + unsigned int jresult ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; + GoUint32 result; + + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_Outputs(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_OutputsForAddresses(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + GoSlice arg2 ; + Handle *arg3 = (Handle *) 0 ; + GoSlice *argp2 ; + Handle temp3 ; + GoUint32 result; + + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_api_Client_OutputsForAddresses(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_OutputsForHashes(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + GoSlice arg2 ; + Handle *arg3 = (Handle *) 0 ; + GoSlice *argp2 ; + Handle temp3 ; + GoUint32 result; + + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_api_Client_OutputsForHashes(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CoinSupply(void * jarg1) { + unsigned int jresult ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; + GoUint32 result; + + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_CoinSupply(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockByHash(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + GoString *argp2 ; + Handle temp3 ; + GoUint32 result; + + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_api_Client_BlockByHash(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockBySeq(void * jarg1, unsigned long long jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + GoUint64 arg2 ; + Handle *arg3 = (Handle *) 0 ; + Handle temp3 ; + GoUint32 result; + + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoUint64)jarg2; + result = (GoUint32)SKY_api_Client_BlockBySeq(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Blocks(void * jarg1, unsigned long long jarg2, unsigned long long jarg3) { + unsigned int jresult ; + Client__Handle arg1 ; + GoUint64 arg2 ; + GoUint64 arg3 ; + Handle *arg4 = (Handle *) 0 ; + Handle temp4 ; + GoUint32 result; + + { + arg4 = &temp4; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoUint64)jarg2; + arg3 = (GoUint64)jarg3; + result = (GoUint32)SKY_api_Client_Blocks(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_LastBlocks(void * jarg1, unsigned long long jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + GoUint64 arg2 ; + Handle *arg3 = (Handle *) 0 ; + Handle temp3 ; + GoUint32 result; + + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoUint64)jarg2; + result = (GoUint32)SKY_api_Client_LastBlocks(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockchainMetadata(void * jarg1) { + unsigned int jresult ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; + GoUint32 result; + + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_BlockchainMetadata(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockchainProgress(void * jarg1) { + unsigned int jresult ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; + GoUint32 result; + + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_BlockchainProgress(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Balance(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Client__Handle arg1 ; + GoSlice arg2 ; + wallet__BalancePair *arg3 = (wallet__BalancePair *) 0 ; + GoSlice *argp2 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (wallet__BalancePair *)jarg3; + result = (GoUint32)SKY_api_Client_Balance(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UxOut(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + GoString *argp2 ; + Handle temp3 ; + GoUint32 result; + + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_api_Client_UxOut(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressUxOuts(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + GoString *argp2 ; + Handle temp3 ; + GoUint32 result; + + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_api_Client_AddressUxOuts(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Wallet(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + WalletResponse__Handle *arg3 = (WalletResponse__Handle *) 0 ; + GoString *argp2 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (WalletResponse__Handle *)jarg3; + result = (GoUint32)SKY_api_Client_Wallet(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Wallets(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + Wallets__Handle *arg2 = (Wallets__Handle *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (Wallets__Handle *)jarg2; + result = (GoUint32)SKY_api_Client_Wallets(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateUnencryptedWallet(void * jarg1, void * jarg2, void * jarg3, long long jarg4, void * jarg5) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + GoInt arg4 ; + WalletResponse__Handle *arg5 = (WalletResponse__Handle *) 0 ; + GoString *argp2 ; + GoString *argp3 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + arg4 = (GoInt)jarg4; + arg5 = (WalletResponse__Handle *)jarg5; + result = (GoUint32)SKY_api_Client_CreateUnencryptedWallet(arg1,arg2,arg3,arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateEncryptedWallet(void * jarg1, void * jarg2, void * jarg3, void * jarg4, long long jarg5, void * jarg6) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + GoString arg4 ; + GoInt arg5 ; + WalletResponse__Handle *arg6 = (WalletResponse__Handle *) 0 ; + GoString *argp2 ; + GoString *argp3 ; + GoString *argp4 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + argp4 = (GoString *)jarg4; + if (!argp4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg4 = *argp4; + arg5 = (GoInt)jarg5; + arg6 = (WalletResponse__Handle *)jarg6; + result = (GoUint32)SKY_api_Client_CreateEncryptedWallet(arg1,arg2,arg3,arg4,arg5,arg6); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NewWalletAddress(void * jarg1, void * jarg2, long long jarg3, void * jarg4, void * jarg5) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + GoInt arg3 ; + GoString arg4 ; + Strings__Handle *arg5 = (Strings__Handle *) 0 ; + GoString *argp2 ; + GoString *argp4 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (GoInt)jarg3; + argp4 = (GoString *)jarg4; + if (!argp4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg4 = *argp4; + arg5 = (Strings__Handle *)jarg5; + result = (GoUint32)SKY_api_Client_NewWalletAddress(arg1,arg2,arg3,arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_WalletBalance(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + wallet__BalancePair *arg3 = (wallet__BalancePair *) 0 ; + GoString *argp2 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (wallet__BalancePair *)jarg3; + result = (GoUint32)SKY_api_Client_WalletBalance(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Spend(void * jarg1, void * jarg2, void * jarg3, unsigned long long jarg4, void * jarg5, void * jarg6) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + GoUint64 arg4 ; + GoString arg5 ; + SpendResult_Handle *arg6 = (SpendResult_Handle *) 0 ; + GoString *argp2 ; + GoString *argp3 ; + GoString *argp5 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + arg4 = (GoUint64)jarg4; + argp5 = (GoString *)jarg5; + if (!argp5) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg5 = *argp5; + arg6 = (SpendResult_Handle *)jarg6; + result = (GoUint32)SKY_api_Client_Spend(arg1,arg2,arg3,arg4,arg5,arg6); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateTransaction(void * jarg1, void * jarg3) { + unsigned int jresult ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + CreateTransactionResponse__Handle *arg3 = (CreateTransactionResponse__Handle *) 0 ; + Handle temp2 ; + GoUint32 result; + + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg3 = (CreateTransactionResponse__Handle *)jarg3; + result = (GoUint32)SKY_api_Client_CreateTransaction(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UpdateWallet(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + GoString *argp2 ; + GoString *argp3 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + result = (GoUint32)SKY_api_Client_UpdateWallet(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_WalletFolderName(void * jarg1) { + unsigned int jresult ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; + GoUint32 result; + + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_WalletFolderName(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NewSeed(void * jarg1, long long jarg2, void * jarg3) { + unsigned int jresult ; + Client__Handle arg1 ; + GoInt arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoInt)jarg2; + arg3 = (GoString_ *)jarg3; + result = (GoUint32)SKY_api_Client_NewSeed(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_GetWalletSeed(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + GoString_ *arg4 = (GoString_ *) 0 ; + GoString *argp2 ; + GoString *argp3 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + arg4 = (GoString_ *)jarg4; + result = (GoUint32)SKY_api_Client_GetWalletSeed(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkConnection(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + GoString *argp2 ; + Handle temp3 ; + GoUint32 result; + + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_api_Client_NetworkConnection(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkConnections(void * jarg1) { + unsigned int jresult ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; + GoUint32 result; + + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_NetworkConnections(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkDefaultConnections(void * jarg1) { + unsigned int jresult ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; + GoUint32 result; + + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_NetworkDefaultConnections(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkTrustedConnections(void * jarg1) { + unsigned int jresult ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; + GoUint32 result; + + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_NetworkTrustedConnections(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkExchangeableConnections(void * jarg1) { + unsigned int jresult ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; + GoUint32 result; + + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_NetworkExchangeableConnections(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_PendingTransactions(void * jarg1) { + unsigned int jresult ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; + GoUint32 result; + + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_PendingTransactions(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Transaction(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + GoString *argp2 ; + Handle temp3 ; + GoUint32 result; + + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_api_Client_Transaction(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Transactions(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + GoSlice arg2 ; + Handle *arg3 = (Handle *) 0 ; + GoSlice *argp2 ; + Handle temp3 ; + GoUint32 result; + + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_api_Client_Transactions(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_ConfirmedTransactions(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + GoSlice arg2 ; + Handle *arg3 = (Handle *) 0 ; + GoSlice *argp2 ; + Handle temp3 ; + GoUint32 result; + + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_api_Client_ConfirmedTransactions(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UnconfirmedTransactions(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + GoSlice arg2 ; + Handle *arg3 = (Handle *) 0 ; + GoSlice *argp2 ; + Handle temp3 ; + GoUint32 result; + + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_api_Client_UnconfirmedTransactions(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_InjectTransaction(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Client__Handle arg1 ; + Transaction__Handle arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + { + SWIG_AsVal_long(jarg2, (long*)&arg2); + } + arg3 = (GoString_ *)jarg3; + result = (GoUint32)SKY_api_Client_InjectTransaction(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_ResendUnconfirmedTransactions(void * jarg1) { + unsigned int jresult ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; + GoUint32 result; + + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_ResendUnconfirmedTransactions(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_RawTransaction(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + GoString *argp2 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (GoString_ *)jarg3; + result = (GoUint32)SKY_api_Client_RawTransaction(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressTransactions(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + GoString *argp2 ; + Handle temp3 ; + GoUint32 result; + + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_api_Client_AddressTransactions(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Richlist(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + api__RichlistParams *arg2 = (api__RichlistParams *) 0 ; + Handle *arg3 = (Handle *) 0 ; + Handle temp3 ; + GoUint32 result; + + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (api__RichlistParams *)jarg2; + result = (GoUint32)SKY_api_Client_Richlist(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressCount(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_api_Client_AddressCount(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UnloadWallet(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + GoString *argp2 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_api_Client_UnloadWallet(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Health(void * jarg1) { + unsigned int jresult ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; + GoUint32 result; + + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_Health(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_EncryptWallet(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + WalletResponse__Handle *arg4 = (WalletResponse__Handle *) 0 ; + GoString *argp2 ; + GoString *argp3 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + arg4 = (WalletResponse__Handle *)jarg4; + result = (GoUint32)SKY_api_Client_EncryptWallet(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_DecryptWallet(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + WalletResponse__Handle *arg4 = (WalletResponse__Handle *) 0 ; + GoString *argp2 ; + GoString *argp3 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + arg4 = (WalletResponse__Handle *)jarg4; + result = (GoUint32)SKY_api_Client_DecryptWallet(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_Print(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + GoString arg2 ; + GoString *argp2 ; + GoUint32 result; + + arg1 = (secp256k1go__XY *)jarg1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_secp256k1go_XY_Print(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_ParsePubkey(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + GoSlice arg2 ; + GoUint8 *arg3 = (GoUint8 *) 0 ; + GoSlice *argp2 ; + GoUint32 result; + + arg1 = (secp256k1go__XY *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (GoUint8 *)jarg3; + result = (GoUint32)SKY_secp256k1go_XY_ParsePubkey(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_Bytes(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__XY *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1go_XY_Bytes(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_BytesUncompressed(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__XY *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1go_XY_BytesUncompressed(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_SetXY(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + secp256k1go__Field *arg3 = (secp256k1go__Field *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__XY *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + arg3 = (secp256k1go__Field *)jarg3; + result = (GoUint32)SKY_secp256k1go_XY_SetXY(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_IsValid(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__XY *)jarg1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_secp256k1go_XY_IsValid(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_SetXYZ(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__XY *)jarg1; + arg2 = (secp256k1go__XYZ *)jarg2; + result = (GoUint32)SKY_secp256k1go_XY_SetXYZ(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_Neg(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__XY *)jarg1; + arg2 = (secp256k1go__XY *)jarg2; + result = (GoUint32)SKY_secp256k1go_XY_Neg(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_SetXO(void * jarg1, void * jarg2, unsigned char jarg3) { + unsigned int jresult ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + GoUint8 arg3 ; + GoUint32 result; + + arg1 = (secp256k1go__XY *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + arg3 = (GoUint8)jarg3; + result = (GoUint32)SKY_secp256k1go_XY_SetXO(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_AddXY(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__XY *)jarg1; + arg2 = (secp256k1go__XY *)jarg2; + result = (GoUint32)SKY_secp256k1go_XY_AddXY(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_GetPublicKey(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__XY *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1go_XY_GetPublicKey(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewWalletResponse(void * jarg1, void * jarg2) { + unsigned int jresult ; + Wallet__Handle arg1 ; + WalletResponse__Handle *arg2 = (WalletResponse__Handle *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (WalletResponse__Handle *)jarg2; + result = (GoUint32)SKY_api_NewWalletResponse(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreateTransactionResponse(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoSlice arg2 ; + CreateTransactionResponse__Handle *arg3 = (CreateTransactionResponse__Handle *) 0 ; + GoSlice *argp2 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (CreateTransactionResponse__Handle *)jarg3; + result = (GoUint32)SKY_api_NewCreateTransactionResponse(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreatedTransaction(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoSlice arg2 ; + CreatedTransaction__Handle *arg3 = (CreatedTransaction__Handle *) 0 ; + GoSlice *argp2 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (CreatedTransaction__Handle *)jarg3; + result = (GoUint32)SKY_api_NewCreatedTransaction(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_CreatedTransaction_ToTransaction(void * jarg1, void * jarg2) { + unsigned int jresult ; + CreatedTransaction__Handle arg1 ; + Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (Transaction__Handle *)jarg2; + result = (GoUint32)SKY_api_CreatedTransaction_ToTransaction(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreatedTransactionOutput(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + CreatedTransactionOutput__Handle *arg3 = (CreatedTransactionOutput__Handle *) 0 ; + GoUint32 result; + + arg1 = (coin__TransactionOutput *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + arg3 = (CreatedTransactionOutput__Handle *)jarg3; + result = (GoUint32)SKY_api_NewCreatedTransactionOutput(arg1,(GoUint8_ (*)[32])arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreatedTransactionInput(void * jarg1, void * jarg2) { + unsigned int jresult ; + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + CreatedTransactionInput__Handle *arg2 = (CreatedTransactionInput__Handle *) 0 ; + GoUint32 result; + + arg1 = (wallet__UxBalance *)jarg1; + arg2 = (CreatedTransactionInput__Handle *)jarg2; + result = (GoUint32)SKY_api_NewCreatedTransactionInput(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewError(void * jarg1) { + unsigned int jresult ; + GoInterface arg1 ; + GoInterface *argp1 ; + GoUint32 result; + + argp1 = (GoInterface *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInterface", 0); + return 0; + } + arg1 = *argp1; + result = (GoUint32)SKY_wallet_NewError(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewWallet(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + GoString arg1 ; + Options__Handle arg2 ; + Wallet__Handle *arg3 = (Wallet__Handle *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + { + SWIG_AsVal_long(jarg2, (long*)&arg2); + } + arg3 = (Wallet__Handle *)jarg3; + result = (GoUint32)SKY_wallet_NewWallet(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Lock(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Wallet__Handle arg1 ; + GoSlice arg2 ; + GoString arg3 ; + GoSlice *argp2 ; + GoString *argp3 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + result = (GoUint32)SKY_wallet_Wallet_Lock(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Unlock(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Wallet__Handle arg1 ; + GoSlice arg2 ; + Wallet__Handle *arg3 = (Wallet__Handle *) 0 ; + GoSlice *argp2 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (Wallet__Handle *)jarg3; + result = (GoUint32)SKY_wallet_Wallet_Unlock(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Load(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + Wallet__Handle *arg2 = (Wallet__Handle *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Wallet__Handle *)jarg2; + result = (GoUint32)SKY_wallet_Load(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Save(void * jarg1, void * jarg2) { + unsigned int jresult ; + Wallet__Handle arg1 ; + GoString arg2 ; + GoString *argp2 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_wallet_Wallet_Save(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Validate(void * jarg1) { + unsigned int jresult ; + Wallet__Handle arg1 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_wallet_Wallet_Validate(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Type(void * jarg1, void * jarg2) { + unsigned int jresult ; + Wallet__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_wallet_Wallet_Type(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Version(void * jarg1, void * jarg2) { + unsigned int jresult ; + Wallet__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_wallet_Wallet_Version(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Filename(void * jarg1, void * jarg2) { + unsigned int jresult ; + Wallet__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_wallet_Wallet_Filename(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Label(void * jarg1, void * jarg2) { + unsigned int jresult ; + Wallet__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_wallet_Wallet_Label(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_IsEncrypted(void * jarg1, void * jarg2) { + unsigned int jresult ; + Wallet__Handle arg1 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_wallet_Wallet_IsEncrypted(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_GenerateAddresses(void * jarg1, unsigned long long jarg2, void * jarg3) { + unsigned int jresult ; + Wallet__Handle arg1 ; + GoUint64 arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoUint64)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_wallet_Wallet_GenerateAddresses(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_GetAddresses(void * jarg1, void * jarg2) { + unsigned int jresult ; + Wallet__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_wallet_Wallet_GetAddresses(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_GetEntry(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + Wallet__Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + wallet__Entry *arg3 = (wallet__Entry *) 0 ; + GoUint8 *arg4 = (GoUint8 *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (cipher__Address *)jarg2; + arg3 = (wallet__Entry *)jarg3; + arg4 = (GoUint8 *)jarg4; + result = (GoUint32)SKY_wallet_Wallet_GetEntry(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_AddEntry(void * jarg1, void * jarg2) { + unsigned int jresult ; + Wallet__Handle arg1 ; + wallet__Entry *arg2 = (wallet__Entry *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (wallet__Entry *)jarg2; + result = (GoUint32)SKY_wallet_Wallet_AddEntry(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_DistributeSpendHours(unsigned long long jarg1, unsigned long long jarg2, unsigned char jarg3, void * jarg4, void * jarg5, void * jarg6) { + unsigned int jresult ; + GoUint64 arg1 ; + GoUint64 arg2 ; + GoUint8 arg3 ; + GoUint64 *arg4 = (GoUint64 *) 0 ; + coin__UxArray *arg5 = (coin__UxArray *) 0 ; + GoUint64 *arg6 = (GoUint64 *) 0 ; + GoUint32 result; + + arg1 = (GoUint64)jarg1; + arg2 = (GoUint64)jarg2; + arg3 = (GoUint8)jarg3; + arg4 = (GoUint64 *)jarg4; + arg5 = (coin__UxArray *)jarg5; + arg6 = (GoUint64 *)jarg6; + result = (GoUint32)SKY_wallet_DistributeSpendHours(arg1,arg2,arg3,arg4,arg5,arg6); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_DistributeCoinHoursProportional(void * jarg1, unsigned long long jarg2, void * jarg3) { + unsigned int jresult ; + GoSlice arg1 ; + GoUint64 arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_wallet_DistributeCoinHoursProportional(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewUxBalances(unsigned long long jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + GoUint64 arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (GoUint64)jarg1; + arg2 = (coin__UxArray *)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_wallet_NewUxBalances(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewUxBalance(unsigned long long jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + GoUint64 arg1 ; + coin__UxOut *arg2 = (coin__UxOut *) 0 ; + wallet__UxBalance *arg3 = (wallet__UxBalance *) 0 ; + GoUint32 result; + + arg1 = (GoUint64)jarg1; + arg2 = (coin__UxOut *)jarg2; + arg3 = (wallet__UxBalance *)jarg3; + result = (GoUint32)SKY_wallet_NewUxBalance(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ChooseSpendsMinimizeUxOuts(void * jarg1, unsigned long long jarg2, unsigned long long jarg3, void * jarg4) { + unsigned int jresult ; + GoSlice arg1 ; + GoUint64 arg2 ; + GoUint64 arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64)jarg2; + arg3 = (GoUint64)jarg3; + arg4 = (coin__UxArray *)jarg4; + result = (GoUint32)SKY_wallet_ChooseSpendsMinimizeUxOuts(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ChooseSpendsMaximizeUxOuts(void * jarg1, unsigned long long jarg2, unsigned long long jarg3, void * jarg4) { + unsigned int jresult ; + GoSlice arg1 ; + GoUint64 arg2 ; + GoUint64 arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64)jarg2; + arg3 = (GoUint64)jarg3; + arg4 = (coin__UxArray *)jarg4; + result = (GoUint32)SKY_wallet_ChooseSpendsMaximizeUxOuts(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CheckWalletBalance(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + WebRpcClient__Handle arg1 ; + GoString arg2 ; + BalanceResult_Handle *arg3 = (BalanceResult_Handle *) 0 ; + GoString *argp2 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (BalanceResult_Handle *)jarg3; + result = (GoUint32)SKY_cli_CheckWalletBalance(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetBalanceOfAddresses(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + WebRpcClient__Handle arg1 ; + GoSlice arg2 ; + BalanceResult_Handle *arg3 = (BalanceResult_Handle *) 0 ; + GoSlice *argp2 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (BalanceResult_Handle *)jarg3; + result = (GoUint32)SKY_cli_GetBalanceOfAddresses(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewReadableEntry(void * jarg1, void * jarg2) { + unsigned int jresult ; + wallet__Entry *arg1 = (wallet__Entry *) 0 ; + ReadableEntry__Handle *arg2 = (ReadableEntry__Handle *) 0 ; + GoUint32 result; + + arg1 = (wallet__Entry *)jarg1; + arg2 = (ReadableEntry__Handle *)jarg2; + result = (GoUint32)SKY_wallet_NewReadableEntry(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_LoadReadableEntry(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + ReadableEntry__Handle *arg2 = (ReadableEntry__Handle *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (ReadableEntry__Handle *)jarg2; + result = (GoUint32)SKY_wallet_LoadReadableEntry(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewReadableEntryFromPubkey(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + ReadableEntry__Handle *arg2 = (ReadableEntry__Handle *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (ReadableEntry__Handle *)jarg2; + result = (GoUint32)SKY_wallet_NewReadableEntryFromPubkey(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableEntry_Save(void * jarg1, void * jarg2) { + unsigned int jresult ; + ReadableEntry__Handle arg1 ; + GoString arg2 ; + GoString *argp2 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_wallet_ReadableEntry_Save(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_LoadReadableWallet(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + ReadableWallet__Handle *arg2 = (ReadableWallet__Handle *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (ReadableWallet__Handle *)jarg2; + result = (GoUint32)SKY_wallet_LoadReadableWallet(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableWallet_Save(void * jarg1, void * jarg2) { + unsigned int jresult ; + ReadableWallet__Handle arg1 ; + GoString arg2 ; + GoString *argp2 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_wallet_ReadableWallet_Save(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableWallet_Load(void * jarg1, void * jarg2) { + unsigned int jresult ; + ReadableWallet__Handle arg1 ; + GoString arg2 ; + GoString *argp2 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_wallet_ReadableWallet_Load(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableWallet_Erase(void * jarg1) { + unsigned int jresult ; + ReadableWallet__Handle arg1 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_wallet_ReadableWallet_Erase(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_DecompressPoint(void * jarg1, unsigned char jarg2, void * jarg3) { + unsigned int jresult ; + GoSlice arg1 ; + GoUint8 arg2 ; + GoSlice arg3 ; + GoSlice *argp1 ; + GoSlice *argp3 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint8)jarg2; + argp3 = (GoSlice *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg3 = *argp3; + result = (GoUint32)SKY_secp256k1go_DecompressPoint(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_RecoverPublicKey(void * jarg1, void * jarg2, long long jarg3, void * jarg4, void * jarg5) { + unsigned int jresult ; + GoSlice arg1 ; + GoSlice arg2 ; + GoInt arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + GoInt *arg5 = (GoInt *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (GoInt)jarg3; + arg4 = (coin__UxArray *)jarg4; + arg5 = (GoInt *)jarg5; + result = (GoUint32)SKY_secp256k1go_RecoverPublicKey(arg1,arg2,arg3,arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Multiply(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + GoSlice arg1 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_secp256k1go_Multiply(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_BaseMultiply(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1go_BaseMultiply(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_BaseMultiplyAdd(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + GoSlice arg1 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_secp256k1go_BaseMultiplyAdd(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_GeneratePublicKey(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1go_GeneratePublicKey(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_SeckeyIsValid(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_secp256k1go_SeckeyIsValid(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_PubkeyIsValid(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_secp256k1go_PubkeyIsValid(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_String2Hex(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_base58_String2Hex(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_ToInt(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_base58_Base58_ToInt(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_ToHex(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_base58_Base58_ToHex(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_Base582Int(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_base58_Base58_Base582Int(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base582Hex(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_base58_Base582Hex(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_BitHex(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_base58_Base58_BitHex(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Int2Base58(long long jarg1, void * jarg2) { + unsigned int jresult ; + GoInt arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + arg1 = (GoInt)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_base58_Int2Base58(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Hex2Base58(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_base58_Hex2Base58(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Hex2Base58String(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_base58_Hex2Base58String(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Hex2Base58Str(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_base58_Hex2Base58Str(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GenerateWallet(void * jarg1, void * jarg2, unsigned long long jarg3, void * jarg4) { + unsigned int jresult ; + GoString arg1 ; + Options__Handle *arg2 = (Options__Handle *) 0 ; + GoUint64 arg3 ; + Wallet__Handle *arg4 = (Wallet__Handle *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Options__Handle *)jarg2; + arg3 = (GoUint64)jarg3; + arg4 = (Wallet__Handle *)jarg4; + result = (GoUint32)SKY_cli_GenerateWallet(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_MakeAlphanumericSeed(void * jarg1) { + unsigned int jresult ; + GoString_ *arg1 = (GoString_ *) 0 ; + GoUint32 result; + + arg1 = (GoString_ *)jarg1; + result = (GoUint32)SKY_cli_MakeAlphanumericSeed(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_NewClient(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (WebRpcClient__Handle *)jarg2; + result = (GoUint32)SKY_webrpc_NewClient(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_CSRF(void * jarg1, void * jarg2) { + unsigned int jresult ; + WebRpcClient__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_webrpc_Client_CSRF(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_InjectTransaction(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + WebRpcClient__Handle arg1 ; + Transaction__Handle arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + { + SWIG_AsVal_long(jarg2, (long*)&arg2); + } + arg3 = (GoString_ *)jarg3; + result = (GoUint32)SKY_webrpc_Client_InjectTransaction(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetStatus(void * jarg1, void * jarg2) { + unsigned int jresult ; + WebRpcClient__Handle arg1 ; + StatusResult_Handle *arg2 = (StatusResult_Handle *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (StatusResult_Handle *)jarg2; + result = (GoUint32)SKY_webrpc_Client_GetStatus(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetTransactionByID(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + WebRpcClient__Handle arg1 ; + GoString arg2 ; + TransactionResult_Handle *arg3 = (TransactionResult_Handle *) 0 ; + GoString *argp2 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (TransactionResult_Handle *)jarg3; + result = (GoUint32)SKY_webrpc_Client_GetTransactionByID(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetAddressUxOuts(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + WebRpcClient__Handle arg1 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp2 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_webrpc_Client_GetAddressUxOuts(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetBlocks(void * jarg1, unsigned long long jarg2, unsigned long long jarg3, void * jarg4) { + unsigned int jresult ; + WebRpcClient__Handle arg1 ; + GoUint64 arg2 ; + GoUint64 arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoUint64)jarg2; + arg3 = (GoUint64)jarg3; + arg4 = (coin__UxArray *)jarg4; + result = (GoUint32)SKY_webrpc_Client_GetBlocks(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetBlocksBySeq(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + WebRpcClient__Handle arg1 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp2 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_webrpc_Client_GetBlocksBySeq(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetLastBlocks(void * jarg1, unsigned long long jarg2, void * jarg3) { + unsigned int jresult ; + WebRpcClient__Handle arg1 ; + GoUint64 arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoUint64)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_webrpc_Client_GetLastBlocks(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_browser_Open(void * jarg1) { + unsigned int jresult ; + GoString arg1 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + result = (GoUint32)SKY_browser_Open(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_iputil_LocalhostIP(void * jarg1) { + unsigned int jresult ; + GoString_ *arg1 = (GoString_ *) 0 ; + GoUint32 result; + + arg1 = (GoString_ *)jarg1; + result = (GoUint32)SKY_iputil_LocalhostIP(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_iputil_IsLocalhost(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_iputil_IsLocalhost(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_iputil_SplitAddr(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + GoString arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint16 *arg3 = (GoUint16 *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + arg3 = (GoUint16 *)jarg3; + result = (GoUint32)SKY_iputil_SplitAddr(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encoder_StructField_String(void * jarg1, void * jarg2) { + unsigned int jresult ; + encoder__StructField *arg1 = (encoder__StructField *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + arg1 = (encoder__StructField *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_encoder_StructField_String(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encoder_ParseFields(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + GoSlice arg1 ; + GoSlice arg2 ; + GoStringMap_ *arg3 = (GoStringMap_ *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (GoStringMap_ *)jarg3; + result = (GoUint32)SKY_encoder_ParseFields(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_SumSHA256(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1_SumSHA256(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_RandByte(long long jarg1, void * jarg2) { + unsigned int jresult ; + GoInt arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (GoInt)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1_RandByte(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GenerateAddressesInFile(void * jarg1, unsigned long long jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + GoString arg1 ; + GoUint64 arg2 ; + PasswordReader__Handle arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + GoString *argp1 ; + PasswordReader__Handle *argp3 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64)jarg2; + argp3 = (PasswordReader__Handle *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null PasswordReader__Handle", 0); + return 0; + } + arg3 = *argp3; + arg4 = (coin__UxArray *)jarg4; + result = (GoUint32)SKY_cli_GenerateAddressesInFile(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_FormatAddressesAsJSON(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cli_FormatAddressesAsJSON(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_FormatAddressesAsJoinedArray(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cli_FormatAddressesAsJoinedArray(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_AddressesToStrings(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_cli_AddressesToStrings(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddUint64(unsigned long long jarg1, unsigned long long jarg2, void * jarg3) { + unsigned int jresult ; + GoUint64 arg1 ; + GoUint64 arg2 ; + GoUint64 *arg3 = (GoUint64 *) 0 ; + GoUint32 result; + + arg1 = (GoUint64)jarg1; + arg2 = (GoUint64)jarg2; + arg3 = (GoUint64 *)jarg3; + result = (GoUint32)SKY_coin_AddUint64(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Uint64ToInt64(unsigned long long jarg1, void * jarg2) { + unsigned int jresult ; + GoUint64 arg1 ; + GoInt64 *arg2 = (GoInt64 *) 0 ; + GoUint32 result; + + arg1 = (GoUint64)jarg1; + arg2 = (GoInt64 *)jarg2; + result = (GoUint32)SKY_coin_Uint64ToInt64(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Int64ToUint64(long long jarg1, void * jarg2) { + unsigned int jresult ; + GoInt64 arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint32 result; + + arg1 = (GoInt64)jarg1; + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_coin_Int64ToUint64(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Len(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoInt *arg2 = (GoInt *) 0 ; + GoUint32 result; + + arg1 = (coin__UxArray *)jarg1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_cipher_PubKeySlice_Len(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Less(void * jarg1, long long jarg2, long long jarg3, void * jarg4) { + unsigned int jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoInt arg2 ; + GoInt arg3 ; + GoUint8 *arg4 = (GoUint8 *) 0 ; + GoUint32 result; + + arg1 = (coin__UxArray *)jarg1; + arg2 = (GoInt)jarg2; + arg3 = (GoInt)jarg3; + arg4 = (GoUint8 *)jarg4; + result = (GoUint32)SKY_cipher_PubKeySlice_Less(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Swap(void * jarg1, long long jarg2, long long jarg3) { + unsigned int jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoInt arg2 ; + GoInt arg3 ; + GoUint32 result; + + arg1 = (coin__UxArray *)jarg1; + arg2 = (GoInt)jarg2; + arg3 = (GoInt)jarg3; + result = (GoUint32)SKY_cipher_PubKeySlice_Swap(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_RandByte(long long jarg1, void * jarg2) { + unsigned int jresult ; + GoInt arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (GoInt)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_cipher_RandByte(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewPubKey(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__PubKey *)jarg2; + result = (GoUint32)SKY_cipher_NewPubKey(arg1,(GoUint8_ (*)[33])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromHex(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__PubKey *)jarg2; + result = (GoUint32)SKY_cipher_PubKeyFromHex(arg1,(GoUint8_ (*)[33])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSecKey(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + GoUint32 result; + + arg1 = (cipher__SecKey *)jarg1; + arg2 = (cipher__PubKey *)jarg2; + result = (GoUint32)SKY_cipher_PubKeyFromSecKey((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[33])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSig(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + cipher__Sig *arg1 = (cipher__Sig *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + cipher__PubKey *arg3 = (cipher__PubKey *) 0 ; + GoUint32 result; + + arg1 = (cipher__Sig *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + arg3 = (cipher__PubKey *)jarg3; + result = (GoUint32)SKY_cipher_PubKeyFromSig((GoUint8_ (*)[65])arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[33])arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_Verify(void * jarg1) { + unsigned int jresult ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + GoUint32 result; + + arg1 = (cipher__PubKey *)jarg1; + result = (GoUint32)SKY_cipher_PubKey_Verify((GoUint8_ (*)[33])arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_Hex(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + arg1 = (cipher__PubKey *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cipher_PubKey_Hex((GoUint8_ (*)[33])arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_ToAddressHash(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__Ripemd160 *arg2 = (cipher__Ripemd160 *) 0 ; + GoUint32 result; + + arg1 = (cipher__PubKey *)jarg1; + arg2 = (cipher__Ripemd160 *)jarg2; + result = (GoUint32)SKY_cipher_PubKey_ToAddressHash((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[20])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewSecKey(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__SecKey *)jarg2; + result = (GoUint32)SKY_cipher_NewSecKey(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKeyFromHex(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__SecKey *)jarg2; + result = (GoUint32)SKY_cipher_SecKeyFromHex(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKey_Verify(void * jarg1) { + unsigned int jresult ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + GoUint32 result; + + arg1 = (cipher__SecKey *)jarg1; + result = (GoUint32)SKY_cipher_SecKey_Verify((GoUint8_ (*)[32])arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKey_Hex(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + arg1 = (cipher__SecKey *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cipher_SecKey_Hex((GoUint8_ (*)[32])arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_ECDH(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (cipher__PubKey *)jarg1; + arg2 = (cipher__SecKey *)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_cipher_ECDH((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewSig(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + cipher__Sig *arg2 = (cipher__Sig *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__Sig *)jarg2; + result = (GoUint32)SKY_cipher_NewSig(arg1,(GoUint8_ (*)[65])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SigFromHex(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + cipher__Sig *arg2 = (cipher__Sig *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__Sig *)jarg2; + result = (GoUint32)SKY_cipher_SigFromHex(arg1,(GoUint8_ (*)[65])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Sig_Hex(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__Sig *arg1 = (cipher__Sig *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + arg1 = (cipher__Sig *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cipher_Sig_Hex((GoUint8_ (*)[65])arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SignHash(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + cipher__Sig *arg3 = (cipher__Sig *) 0 ; + GoUint32 result; + + arg1 = (cipher__SHA256 *)jarg1; + arg2 = (cipher__SecKey *)jarg2; + arg3 = (cipher__Sig *)jarg3; + result = (GoUint32)SKY_cipher_SignHash((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[65])arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_ChkSig(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + cipher__Sig *arg3 = (cipher__Sig *) 0 ; + GoUint32 result; + + arg1 = (cipher__Address *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + arg3 = (cipher__Sig *)jarg3; + result = (GoUint32)SKY_cipher_ChkSig(arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[65])arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignedHash(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__Sig *arg1 = (cipher__Sig *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint32 result; + + arg1 = (cipher__Sig *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_cipher_VerifySignedHash((GoUint8_ (*)[65])arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignature(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__Sig *arg2 = (cipher__Sig *) 0 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + GoUint32 result; + + arg1 = (cipher__PubKey *)jarg1; + arg2 = (cipher__Sig *)jarg2; + arg3 = (cipher__SHA256 *)jarg3; + result = (GoUint32)SKY_cipher_VerifySignature((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[65])arg2,(GoUint8_ (*)[32])arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPair(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + GoSlice arg1 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + cipher__SecKey *arg3 = (cipher__SecKey *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__PubKey *)jarg2; + arg3 = (cipher__SecKey *)jarg3; + result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPair(arg1,(GoUint8_ (*)[33])arg2,(GoUint8_ (*)[32])arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DeterministicKeyPairIterator(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + cipher__PubKey *arg3 = (cipher__PubKey *) 0 ; + cipher__SecKey *arg4 = (cipher__SecKey *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + arg3 = (cipher__PubKey *)jarg3; + arg4 = (cipher__SecKey *)jarg4; + result = (GoUint32)SKY_cipher_DeterministicKeyPairIterator(arg1,arg2,(GoUint8_ (*)[33])arg3,(GoUint8_ (*)[32])arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairs(void * jarg1, long long jarg2, void * jarg3) { + unsigned int jresult ; + GoSlice arg1 ; + GoInt arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPairs(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairsSeed(void * jarg1, long long jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + GoSlice arg1 ; + GoInt arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt)jarg2; + arg3 = (coin__UxArray *)jarg3; + arg4 = (coin__UxArray *)jarg4; + result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPairsSeed(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_TestSecKey(void * jarg1) { + unsigned int jresult ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + GoUint32 result; + + arg1 = (cipher__SecKey *)jarg1; + result = (GoUint32)SKY_cipher_TestSecKey((GoUint8_ (*)[32])arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_TestSecKeyHash(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint32 result; + + arg1 = (cipher__SecKey *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_cipher_TestSecKeyHash((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateKeyPair(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + GoUint32 result; + + arg1 = (cipher__PubKey *)jarg1; + arg2 = (cipher__SecKey *)jarg2; + result = (GoUint32)SKY_cipher_GenerateKeyPair((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Create(void * jarg1) { + unsigned int jresult ; + Signature_Handle *arg1 = (Signature_Handle *) 0 ; + GoUint32 result; + + arg1 = (Signature_Handle *)jarg1; + result = (GoUint32)SKY_secp256k1go_Signature_Create(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_GetR(void * jarg1, void * jarg2) { + unsigned int jresult ; + Signature_Handle arg1 ; + Number_Handle *arg2 = (Number_Handle *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (Number_Handle *)jarg2; + result = (GoUint32)SKY_secp256k1go_Signature_GetR(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_GetS(void * jarg1, void * jarg2) { + unsigned int jresult ; + Signature_Handle arg1 ; + Number_Handle *arg2 = (Number_Handle *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (Number_Handle *)jarg2; + result = (GoUint32)SKY_secp256k1go_Signature_GetS(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Print(void * jarg1, void * jarg2) { + unsigned int jresult ; + Signature_Handle arg1 ; + GoString arg2 ; + GoString *argp2 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_secp256k1go_Signature_Print(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Verify(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + Signature_Handle arg1 ; + secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; + Number_Handle arg3 ; + GoUint8 *arg4 = (GoUint8 *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (secp256k1go__XY *)jarg2; + { + SWIG_AsVal_long(jarg3, (long*)&arg3); + } + arg4 = (GoUint8 *)jarg4; + result = (GoUint32)SKY_secp256k1go_Signature_Verify(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Recover(void * jarg1, void * jarg2, void * jarg3, long long jarg4, void * jarg5) { + unsigned int jresult ; + Signature_Handle arg1 ; + secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; + Number_Handle arg3 ; + GoInt arg4 ; + GoUint8 *arg5 = (GoUint8 *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (secp256k1go__XY *)jarg2; + { + SWIG_AsVal_long(jarg3, (long*)&arg3); + } + arg4 = (GoInt)jarg4; + arg5 = (GoUint8 *)jarg5; + result = (GoUint32)SKY_secp256k1go_Signature_Recover(arg1,arg2,arg3,arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Sign(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) { + unsigned int jresult ; + Signature_Handle arg1 ; + Number_Handle arg2 ; + Number_Handle arg3 ; + Number_Handle arg4 ; + GoInt *arg5 = (GoInt *) 0 ; + GoInt *arg6 = (GoInt *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + { + SWIG_AsVal_long(jarg2, (long*)&arg2); + } + { + SWIG_AsVal_long(jarg3, (long*)&arg3); + } + { + SWIG_AsVal_long(jarg4, (long*)&arg4); + } + arg5 = (GoInt *)jarg5; + arg6 = (GoInt *)jarg6; + result = (GoUint32)SKY_secp256k1go_Signature_Sign(arg1,arg2,arg3,arg4,arg5,arg6); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_ParseBytes(void * jarg1, void * jarg2) { + unsigned int jresult ; + Signature_Handle arg1 ; + GoSlice arg2 ; + GoSlice *argp2 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_secp256k1go_Signature_ParseBytes(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Bytes(void * jarg1, void * jarg2) { + unsigned int jresult ; + Signature_Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1go_Signature_Bytes(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_App_Run(void * jarg1, void * jarg2) { + unsigned int jresult ; + App__Handle arg1 ; + GoString arg2 ; + GoString *argp2 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_cli_App_Run(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_GetCoin(void * jarg1, void * jarg2) { + unsigned int jresult ; + Config__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cli_Config_GetCoin(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_GetRPCAddress(void * jarg1, void * jarg2) { + unsigned int jresult ; + Config__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cli_Config_GetRPCAddress(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_RPCClientFromApp(void * jarg1, void * jarg2) { + unsigned int jresult ; + App__Handle arg1 ; + WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (WebRpcClient__Handle *)jarg2; + result = (GoUint32)SKY_cli_RPCClientFromApp(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Getenv(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cli_Getenv(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Setenv(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + GoString arg2 ; + GoString *argp1 ; + GoString *argp2 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_cli_Setenv(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_poly1305_Verify(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoUint8 *arg4 = (GoUint8 *) 0 ; + GoSlice *argp2 ; + GoUint32 result; + + arg1 = (coin__UxArray *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (coin__UxArray *)jarg3; + arg4 = (GoUint8 *)jarg4; + result = (GoUint32)SKY_poly1305_Verify(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewBalance(unsigned long long jarg1, unsigned long long jarg2, void * jarg3) { + unsigned int jresult ; + GoUint64 arg1 ; + GoUint64 arg2 ; + wallet__Balance *arg3 = (wallet__Balance *) 0 ; + GoUint32 result; + + arg1 = (GoUint64)jarg1; + arg2 = (GoUint64)jarg2; + arg3 = (wallet__Balance *)jarg3; + result = (GoUint32)SKY_wallet_NewBalance(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewBalanceFromUxOut(unsigned long long jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + GoUint64 arg1 ; + coin__UxOut *arg2 = (coin__UxOut *) 0 ; + wallet__Balance *arg3 = (wallet__Balance *) 0 ; + GoUint32 result; + + arg1 = (GoUint64)jarg1; + arg2 = (coin__UxOut *)jarg2; + arg3 = (wallet__Balance *)jarg3; + result = (GoUint32)SKY_wallet_NewBalanceFromUxOut(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Balance_Add(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + wallet__Balance *arg2 = (wallet__Balance *) 0 ; + wallet__Balance *arg3 = (wallet__Balance *) 0 ; + GoUint32 result; + + arg1 = (wallet__Balance *)jarg1; + arg2 = (wallet__Balance *)jarg2; + arg3 = (wallet__Balance *)jarg3; + result = (GoUint32)SKY_wallet_Balance_Add(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Balance_Sub(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + wallet__Balance *arg2 = (wallet__Balance *) 0 ; + wallet__Balance *arg3 = (wallet__Balance *) 0 ; + GoUint32 result; + + arg1 = (wallet__Balance *)jarg1; + arg2 = (wallet__Balance *)jarg2; + arg3 = (wallet__Balance *)jarg3; + result = (GoUint32)SKY_wallet_Balance_Sub(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Balance_Equals(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + wallet__Balance *arg2 = (wallet__Balance *) 0 ; + GoUint8 *arg3 = (GoUint8 *) 0 ; + GoUint32 result; + + arg1 = (wallet__Balance *)jarg1; + arg2 = (wallet__Balance *)jarg2; + arg3 = (GoUint8 *)jarg3; + result = (GoUint32)SKY_wallet_Balance_Equals(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Balance_IsZero(void * jarg1, void * jarg2) { + unsigned int jresult ; + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoUint32 result; + + arg1 = (wallet__Balance *)jarg1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_wallet_Balance_IsZero(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_utc_UnixNow(void * jarg1) { + unsigned int jresult ; + GoInt64 *arg1 = (GoInt64 *) 0 ; + GoUint32 result; + + arg1 = (GoInt64 *)jarg1; + result = (GoUint32)SKY_utc_UnixNow(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Address_UnmarshalJSON(void * jarg1, void * jarg2) { + unsigned int jresult ; + httphelper__Address *arg1 = (httphelper__Address *) 0 ; + GoSlice arg2 ; + GoSlice *argp2 ; + GoUint32 result; + + arg1 = (httphelper__Address *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_httphelper_Address_UnmarshalJSON(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Address_MarshalJSON(void * jarg1, void * jarg2) { + unsigned int jresult ; + httphelper__Address *arg1 = (httphelper__Address *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (httphelper__Address *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_httphelper_Address_MarshalJSON(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Coins_UnmarshalJSON(void * jarg1, void * jarg2) { + unsigned int jresult ; + httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; + GoSlice arg2 ; + GoSlice *argp2 ; + GoUint32 result; + + arg1 = (httphelper__Coins *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_httphelper_Coins_UnmarshalJSON(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Coins_MarshalJSON(void * jarg1, void * jarg2) { + unsigned int jresult ; + httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (httphelper__Coins *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_httphelper_Coins_MarshalJSON(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Coins_Value(void * jarg1, void * jarg2) { + unsigned int jresult ; + httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint32 result; + + arg1 = (httphelper__Coins *)jarg1; + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_httphelper_Coins_Value(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Hours_UnmarshalJSON(void * jarg1, void * jarg2) { + unsigned int jresult ; + httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; + GoSlice arg2 ; + GoSlice *argp2 ; + GoUint32 result; + + arg1 = (httphelper__Hours *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_httphelper_Hours_UnmarshalJSON(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Hours_MarshalJSON(void * jarg1, void * jarg2) { + unsigned int jresult ; + httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (httphelper__Hours *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_httphelper_Hours_MarshalJSON(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Hours_Value(void * jarg1, void * jarg2) { + unsigned int jresult ; + httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint32 result; + + arg1 = (httphelper__Hours *)jarg1; + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_httphelper_Hours_Value(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Entry_Verify(void * jarg1) { + unsigned int jresult ; + wallet__Entry *arg1 = (wallet__Entry *) 0 ; + GoUint32 result; + + arg1 = (wallet__Entry *)jarg1; + result = (GoUint32)SKY_wallet_Entry_Verify(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Entry_VerifyPublic(void * jarg1) { + unsigned int jresult ; + wallet__Entry *arg1 = (wallet__Entry *) 0 ; + GoUint32 result; + + arg1 = (wallet__Entry *)jarg1; + result = (GoUint32)SKY_wallet_Entry_VerifyPublic(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateAddresses(void * jarg1, void * jarg2, long long jarg3, unsigned char jarg4, void * jarg5) { + unsigned int jresult ; + GoString arg1 ; + GoString arg2 ; + GoInt arg3 ; + GoUint8 arg4 ; + ReadableWallet__Handle *arg5 = (ReadableWallet__Handle *) 0 ; + GoString *argp1 ; + GoString *argp2 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (GoInt)jarg3; + arg4 = (GoUint8)jarg4; + arg5 = (ReadableWallet__Handle *)jarg5; + result = (GoUint32)SKY_wallet_CreateAddresses(arg1,arg2,arg3,arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_GetSkycoinWalletEntry(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + ReadableEntry__Handle *arg3 = (ReadableEntry__Handle *) 0 ; + GoUint32 result; + + arg1 = (cipher__PubKey *)jarg1; + arg2 = (cipher__SecKey *)jarg2; + arg3 = (ReadableEntry__Handle *)jarg3; + result = (GoUint32)SKY_wallet_GetSkycoinWalletEntry((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_GetBitcoinWalletEntry(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + ReadableEntry__Handle *arg3 = (ReadableEntry__Handle *) 0 ; + GoUint32 result; + + arg1 = (cipher__PubKey *)jarg1; + arg2 = (cipher__SecKey *)jarg2; + arg3 = (ReadableEntry__Handle *)jarg3; + result = (GoUint32)SKY_wallet_GetBitcoinWalletEntry((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Print(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + GoString arg2 ; + GoString *argp2 ; + GoUint32 result; + + arg1 = (secp256k1go__XYZ *)jarg1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_secp256k1go_XYZ_Print(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_SetXY(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (secp256k1go__XY *)jarg2; + result = (GoUint32)SKY_secp256k1go_XYZ_SetXY(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_IsInfinity(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_secp256k1go_XYZ_IsInfinity(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_IsValid(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_secp256k1go_XYZ_IsValid(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Normalize(void * jarg1) { + unsigned int jresult ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__XYZ *)jarg1; + result = (GoUint32)SKY_secp256k1go_XYZ_Normalize(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Equals(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; + GoUint8 *arg3 = (GoUint8 *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (secp256k1go__XYZ *)jarg2; + arg3 = (GoUint8 *)jarg3; + result = (GoUint32)SKY_secp256k1go_XYZ_Equals(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_ECmult(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; + Number_Handle arg3 ; + Number_Handle arg4 ; + GoUint32 result; + + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (secp256k1go__XYZ *)jarg2; + { + SWIG_AsVal_long(jarg3, (long*)&arg3); + } + { + SWIG_AsVal_long(jarg4, (long*)&arg4); + } + result = (GoUint32)SKY_secp256k1go_XYZ_ECmult(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Neg(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (secp256k1go__XYZ *)jarg2; + result = (GoUint32)SKY_secp256k1go_XYZ_Neg(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Double(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (secp256k1go__XYZ *)jarg2; + result = (GoUint32)SKY_secp256k1go_XYZ_Double(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_AddXY(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; + secp256k1go__XY *arg3 = (secp256k1go__XY *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (secp256k1go__XYZ *)jarg2; + arg3 = (secp256k1go__XY *)jarg3; + result = (GoUint32)SKY_secp256k1go_XYZ_AddXY(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Add(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; + secp256k1go__XYZ *arg3 = (secp256k1go__XYZ *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (secp256k1go__XYZ *)jarg2; + arg3 = (secp256k1go__XYZ *)jarg3; + result = (GoUint32)SKY_secp256k1go_XYZ_Add(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_ECmultGen(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + Number_Handle arg2 ; + GoUint32 result; + + arg1 = (secp256k1go__XYZ *)jarg1; + { + SWIG_AsVal_long(jarg2, (long*)&arg2); + } + result = (GoUint32)SKY_secp256k1go_ECmultGen(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_Sha256Xor_Encrypt(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + GoSlice arg1 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_encrypt_Sha256Xor_Encrypt(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_Sha256Xor_Decrypt(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + GoSlice arg1 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_encrypt_Sha256Xor_Decrypt(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_droplet_FromString(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_droplet_FromString(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_droplet_ToString(unsigned long long jarg1, void * jarg2) { + unsigned int jresult ; + GoUint64 arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + arg1 = (GoUint64)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_droplet_ToString(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CryptoTypeFromString(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_wallet_CryptoTypeFromString(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_handle_close(void * jarg1) { + Handle arg1 ; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + SKY_handle_close(arg1); +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_handle_copy(void * jarg1) { + unsigned int jresult ; + Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; + GoUint32 result; + + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_handle_copy(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_logging_EnableColors() { + unsigned int jresult ; + GoUint32 result; + + result = (GoUint32)SKY_logging_EnableColors(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_logging_DisableColors() { + unsigned int jresult ; + GoUint32 result; + + result = (GoUint32)SKY_logging_DisableColors(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_logging_Disable() { + unsigned int jresult ; + GoUint32 result; + + result = (GoUint32)SKY_logging_Disable(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_map_Get(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; + GoString arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + GoString *argp2 ; + GoUint32 result; + + arg1 = (GoStringMap_ *)jarg1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (GoString_ *)jarg3; + result = (GoUint32)SKY_map_Get(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_skycoin_SKY_map_HasKey(void * jarg1, void * jarg2) { + unsigned char jresult ; + GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; + GoString arg2 ; + GoString *argp2 ; + GoUint8 result; + + arg1 = (GoStringMap_ *)jarg1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint8)SKY_map_HasKey(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_map_Close(void * jarg1) { + unsigned int jresult ; + GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; + GoUint32 result; + + arg1 = (GoStringMap_ *)jarg1; + result = (GoUint32)SKY_map_Close(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DecodeBase58Address(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__Address *)jarg2; + result = (GoUint32)SKY_cipher_DecodeBase58Address(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddressFromBytes(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__Address *)jarg2; + result = (GoUint32)SKY_cipher_AddressFromBytes(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddressFromPubKey(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoUint32 result; + + arg1 = (cipher__PubKey *)jarg1; + arg2 = (cipher__Address *)jarg2; + result = (GoUint32)SKY_cipher_AddressFromPubKey((GoUint8_ (*)[33])arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddressFromSecKey(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoUint32 result; + + arg1 = (cipher__SecKey *)jarg1; + arg2 = (cipher__Address *)jarg2; + result = (GoUint32)SKY_cipher_AddressFromSecKey((GoUint8_ (*)[32])arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinDecodeBase58Address(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__Address *)jarg2; + result = (GoUint32)SKY_cipher_BitcoinDecodeBase58Address(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Null(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoUint32 result; + + arg1 = (cipher__Address *)jarg1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_cipher_Address_Null(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Bytes(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (cipher__Address *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_cipher_Address_Bytes(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_BitcoinBytes(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (cipher__Address *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_cipher_Address_BitcoinBytes(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Verify(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + GoUint32 result; + + arg1 = (cipher__Address *)jarg1; + arg2 = (cipher__PubKey *)jarg2; + result = (GoUint32)SKY_cipher_Address_Verify(arg1,(GoUint8_ (*)[33])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_String(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + arg1 = (cipher__Address *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cipher_Address_String(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_BitcoinString(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + arg1 = (cipher__Address *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cipher_Address_BitcoinString(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Checksum(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + cipher__Checksum *arg2 = (cipher__Checksum *) 0 ; + GoUint32 result; + + arg1 = (cipher__Address *)jarg1; + arg2 = (cipher__Checksum *)jarg2; + result = (GoUint32)SKY_cipher_Address_Checksum(arg1,(GoUint8_ (*)[4])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_BitcoinChecksum(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + cipher__Checksum *arg2 = (cipher__Checksum *) 0 ; + GoUint32 result; + + arg1 = (cipher__Address *)jarg1; + arg2 = (cipher__Checksum *)jarg2; + result = (GoUint32)SKY_cipher_Address_BitcoinChecksum(arg1,(GoUint8_ (*)[4])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddressFromPubkey(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + arg1 = (cipher__PubKey *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cipher_BitcoinAddressFromPubkey((GoUint8_ (*)[33])arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinWalletImportFormatFromSeckey(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + arg1 = (cipher__SecKey *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cipher_BitcoinWalletImportFormatFromSeckey((GoUint8_ (*)[32])arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddressFromBytes(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__Address *)jarg2; + result = (GoUint32)SKY_cipher_BitcoinAddressFromBytes(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKeyFromWalletImportFormat(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__SecKey *)jarg2; + result = (GoUint32)SKY_cipher_SecKeyFromWalletImportFormat(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_JsonEncode_Handle(void * jarg1, void * jarg2) { + unsigned int jresult ; + Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_JsonEncode_Handle(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Progress_GetCurrent(void * jarg1, void * jarg2) { + unsigned int jresult ; + Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_Handle_Progress_GetCurrent(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Block_GetHeadSeq(void * jarg1, void * jarg2) { + unsigned int jresult ; + Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_Handle_Block_GetHeadSeq(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Block_GetHeadHash(void * jarg1, void * jarg2) { + unsigned int jresult ; + Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_Handle_Block_GetHeadHash(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Block_GetPreviousBlockHash(void * jarg1, void * jarg2) { + unsigned int jresult ; + Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_Handle_Block_GetPreviousBlockHash(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Blocks_GetAt(void * jarg1, unsigned long long jarg2) { + unsigned int jresult ; + Handle arg1 ; + GoUint64 arg2 ; + Handle *arg3 = (Handle *) 0 ; + Handle temp3 ; + GoUint32 result; + + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoUint64)jarg2; + result = (GoUint32)SKY_Handle_Blocks_GetAt(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Blocks_GetCount(void * jarg1, void * jarg2) { + unsigned int jresult ; + Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_Handle_Blocks_GetCount(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Connections_GetCount(void * jarg1, void * jarg2) { + unsigned int jresult ; + Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_Handle_Connections_GetCount(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Strings_GetCount(void * jarg1, void * jarg2) { + unsigned int jresult ; + Strings__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoUint32 *)jarg2; + result = (GoUint32)SKY_Handle_Strings_GetCount(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Strings_Sort(void * jarg1) { + unsigned int jresult ; + Strings__Handle arg1 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_Handle_Strings_Sort(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Strings_GetAt(void * jarg1, long long jarg2, void * jarg3) { + unsigned int jresult ; + Strings__Handle arg1 ; + GoInt arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoInt)jarg2; + arg3 = (GoString_ *)jarg3; + result = (GoUint32)SKY_Handle_Strings_GetAt(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletDir(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_api_Handle_Client_GetWalletDir(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletFileName(void * jarg1, void * jarg2) { + unsigned int jresult ; + WalletResponse__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_api_Handle_Client_GetWalletFileName(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletLabel(void * jarg1, void * jarg2) { + unsigned int jresult ; + WalletResponse__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_api_Handle_Client_GetWalletLabel(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletFullPath(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Client__Handle arg1 ; + WalletResponse__Handle arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + { + SWIG_AsVal_long(jarg2, (long*)&arg2); + } + arg3 = (GoString_ *)jarg3; + result = (GoUint32)SKY_api_Handle_Client_GetWalletFullPath(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletMeta(void * jarg1, void * jarg2) { + unsigned int jresult ; + Wallet__Handle arg1 ; + GoStringMap_ *arg2 = (GoStringMap_ *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoStringMap_ *)jarg2; + result = (GoUint32)SKY_api_Handle_GetWalletMeta(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletEntriesCount(void * jarg1, void * jarg2) { + unsigned int jresult ; + Wallet__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoUint32 *)jarg2; + result = (GoUint32)SKY_api_Handle_GetWalletEntriesCount(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletResponseEntriesCount(void * jarg1, void * jarg2) { + unsigned int jresult ; + WalletResponse__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoUint32 *)jarg2; + result = (GoUint32)SKY_api_Handle_Client_GetWalletResponseEntriesCount(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletGetEntry(void * jarg1, unsigned int jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + Wallet__Handle arg1 ; + GoUint32 arg2 ; + cipher__Address *arg3 = (cipher__Address *) 0 ; + cipher__PubKey *arg4 = (cipher__PubKey *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoUint32)jarg2; + arg3 = (cipher__Address *)jarg3; + arg4 = (cipher__PubKey *)jarg4; + result = (GoUint32)SKY_api_Handle_WalletGetEntry(arg1,arg2,arg3,(GoUint8_ (*)[33])arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletResponseGetEntry(void * jarg1, unsigned int jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + WalletResponse__Handle arg1 ; + GoUint32 arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + GoString_ *arg4 = (GoString_ *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoUint32)jarg2; + arg3 = (GoString_ *)jarg3; + arg4 = (GoString_ *)jarg4; + result = (GoUint32)SKY_api_Handle_WalletResponseGetEntry(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletResponseIsEncrypted(void * jarg1, void * jarg2) { + unsigned int jresult ; + WalletResponse__Handle arg1 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_api_Handle_WalletResponseIsEncrypted(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletResponseGetCryptoType(void * jarg1, void * jarg2) { + unsigned int jresult ; + WalletResponse__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_api_Handle_WalletResponseGetCryptoType(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletsResponseGetCount(void * jarg1, void * jarg2) { + unsigned int jresult ; + Wallets__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoUint32 *)jarg2; + result = (GoUint32)SKY_api_Handle_WalletsResponseGetCount(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletsResponseGetAt(void * jarg1, unsigned int jarg2, void * jarg3) { + unsigned int jresult ; + Wallets__Handle arg1 ; + GoUint32 arg2 ; + WalletResponse__Handle *arg3 = (WalletResponse__Handle *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoUint32)jarg2; + arg3 = (WalletResponse__Handle *)jarg3; + result = (GoUint32)SKY_api_Handle_WalletsResponseGetAt(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletFolderAddress(void * jarg1, void * jarg2) { + unsigned int jresult ; + Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_api_Handle_GetWalletFolderAddress(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletSeed(void * jarg1, void * jarg2) { + unsigned int jresult ; + Wallet__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_api_Handle_GetWalletSeed(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletLastSeed(void * jarg1, void * jarg2) { + unsigned int jresult ; + Wallet__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_api_Handle_GetWalletLastSeed(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetBuildInfoData(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + BuildInfo_Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString_ *arg3 = (GoString_ *) 0 ; + GoString_ *arg4 = (GoString_ *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoString_ *)jarg2; + arg3 = (GoString_ *)jarg3; + arg4 = (GoString_ *)jarg4; + result = (GoUint32)SKY_api_Handle_GetBuildInfoData(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_ripemd160_New(void * jarg1) { + unsigned int jresult ; + Hash_Handle *arg1 = (Hash_Handle *) 0 ; + GoUint32 result; + + arg1 = (Hash_Handle *)jarg1; + result = (GoUint32)SKY_ripemd160_New(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_ripemd160_Write(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Hash_Handle arg1 ; + GoSlice arg2 ; + GoInt *arg3 = (GoInt *) 0 ; + Hash_Handle *argp1 ; + GoSlice *argp2 ; + GoUint32 result; + + argp1 = (Hash_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Hash_Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (GoInt *)jarg3; + result = (GoUint32)SKY_ripemd160_Write(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_ripemd160_Sum(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Hash_Handle arg1 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + Hash_Handle *argp1 ; + GoSlice *argp2 ; + GoUint32 result; + + argp1 = (Hash_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Hash_Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_ripemd160_Sum(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_Create(void * jarg1) { + unsigned int jresult ; + Number_Handle *arg1 = (Number_Handle *) 0 ; + GoUint32 result; + + arg1 = (Number_Handle *)jarg1; + result = (GoUint32)SKY_secp256k1go_Number_Create(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_Print(void * jarg1, void * jarg2) { + unsigned int jresult ; + Number_Handle arg1 ; + GoString arg2 ; + GoString *argp2 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_secp256k1go_Number_Print(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_SetHex(void * jarg1, void * jarg2) { + unsigned int jresult ; + Number_Handle arg1 ; + GoString arg2 ; + GoString *argp2 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_secp256k1go_Number_SetHex(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_IsOdd(void * jarg1, void * jarg2) { + unsigned int jresult ; + Number_Handle arg1 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_secp256k1go_Number_IsOdd(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_IsEqual(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Number_Handle arg1 ; + Number_Handle arg2 ; + GoUint8 *arg3 = (GoUint8 *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + { + SWIG_AsVal_long(jarg2, (long*)&arg2); + } + arg3 = (GoUint8 *)jarg3; + result = (GoUint32)SKY_secp256k1go_Number_IsEqual(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_Hash(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint32 result; + + arg1 = (coin__UxOut *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_UxOut_Hash(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_SnapshotHash(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint32 result; + + arg1 = (coin__UxOut *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_UxOut_SnapshotHash(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxBody_Hash(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint32 result; + + arg1 = (coin__UxBody *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_UxBody_Hash(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_CoinHours(void * jarg1, unsigned long long jarg2, void * jarg3) { + unsigned int jresult ; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + GoUint64 arg2 ; + GoUint64 *arg3 = (GoUint64 *) 0 ; + GoUint32 result; + + arg1 = (coin__UxOut *)jarg1; + arg2 = (GoUint64)jarg2; + arg3 = (GoUint64 *)jarg3; + result = (GoUint32)SKY_coin_UxOut_CoinHours(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Hashes(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (coin__UxArray *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_coin_UxArray_Hashes(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_HasDupes(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoUint32 result; + + arg1 = (coin__UxArray *)jarg1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_coin_UxArray_HasDupes(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Sort(void * jarg1) { + unsigned int jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (coin__UxArray *)jarg1; + result = (GoUint32)SKY_coin_UxArray_Sort(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Len(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoInt *arg2 = (GoInt *) 0 ; + GoUint32 result; + + arg1 = (coin__UxArray *)jarg1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_coin_UxArray_Len(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Less(void * jarg1, long long jarg2, long long jarg3, void * jarg4) { + unsigned int jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoInt arg2 ; + GoInt arg3 ; + GoUint8 *arg4 = (GoUint8 *) 0 ; + GoUint32 result; + + arg1 = (coin__UxArray *)jarg1; + arg2 = (GoInt)jarg2; + arg3 = (GoInt)jarg3; + arg4 = (GoUint8 *)jarg4; + result = (GoUint32)SKY_coin_UxArray_Less(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Swap(void * jarg1, long long jarg2, long long jarg3) { + unsigned int jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoInt arg2 ; + GoInt arg3 ; + GoUint32 result; + + arg1 = (coin__UxArray *)jarg1; + arg2 = (GoInt)jarg2; + arg3 = (GoInt)jarg3; + result = (GoUint32)SKY_coin_UxArray_Swap(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Coins(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint32 result; + + arg1 = (coin__UxArray *)jarg1; + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_coin_UxArray_Coins(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_CoinHours(void * jarg1, unsigned long long jarg2, void * jarg3) { + unsigned int jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoUint64 arg2 ; + GoUint64 *arg3 = (GoUint64 *) 0 ; + GoUint32 result; + + arg1 = (coin__UxArray *)jarg1; + arg2 = (GoUint64)jarg2; + arg3 = (GoUint64 *)jarg3; + result = (GoUint32)SKY_coin_UxArray_CoinHours(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Sub(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (coin__UxArray *)jarg1; + arg2 = (coin__UxArray *)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_coin_UxArray_Sub(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Add(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (coin__UxArray *)jarg1; + arg2 = (coin__UxArray *)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_coin_UxArray_Add(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewAddressUxOuts(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + AddressUxOuts_Handle *arg2 = (AddressUxOuts_Handle *) 0 ; + GoUint32 result; + + arg1 = (coin__UxArray *)jarg1; + arg2 = (AddressUxOuts_Handle *)jarg2; + result = (GoUint32)SKY_coin_NewAddressUxOuts(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Keys(void * jarg1, void * jarg2) { + unsigned int jresult ; + AddressUxOuts_Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + AddressUxOuts_Handle *argp1 ; + GoUint32 result; + + argp1 = (AddressUxOuts_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_coin_AddressUxOuts_Keys(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Flatten(void * jarg1, void * jarg2) { + unsigned int jresult ; + AddressUxOuts_Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + AddressUxOuts_Handle *argp1 ; + GoUint32 result; + + argp1 = (AddressUxOuts_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_coin_AddressUxOuts_Flatten(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Sub(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + AddressUxOuts_Handle arg1 ; + AddressUxOuts_Handle arg2 ; + AddressUxOuts_Handle *arg3 = (AddressUxOuts_Handle *) 0 ; + AddressUxOuts_Handle *argp1 ; + AddressUxOuts_Handle *argp2 ; + GoUint32 result; + + argp1 = (AddressUxOuts_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (AddressUxOuts_Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + return 0; + } + arg2 = *argp2; + arg3 = (AddressUxOuts_Handle *)jarg3; + result = (GoUint32)SKY_coin_AddressUxOuts_Sub(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Add(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + AddressUxOuts_Handle arg1 ; + AddressUxOuts_Handle arg2 ; + AddressUxOuts_Handle *arg3 = (AddressUxOuts_Handle *) 0 ; + AddressUxOuts_Handle *argp1 ; + AddressUxOuts_Handle *argp2 ; + GoUint32 result; + + argp1 = (AddressUxOuts_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (AddressUxOuts_Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + return 0; + } + arg2 = *argp2; + arg3 = (AddressUxOuts_Handle *)jarg3; + result = (GoUint32)SKY_coin_AddressUxOuts_Add(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Get(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + AddressUxOuts_Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + AddressUxOuts_Handle *argp1 ; + GoUint32 result; + + argp1 = (AddressUxOuts_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__Address *)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_coin_AddressUxOuts_Get(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_HasKey(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + AddressUxOuts_Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoUint8 *arg3 = (GoUint8 *) 0 ; + AddressUxOuts_Handle *argp1 ; + GoUint32 result; + + argp1 = (AddressUxOuts_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__Address *)jarg2; + arg3 = (GoUint8 *)jarg3; + result = (GoUint32)SKY_coin_AddressUxOuts_HasKey(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_GetOutputLength(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + AddressUxOuts_Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoInt *arg3 = (GoInt *) 0 ; + AddressUxOuts_Handle *argp1 ; + GoUint32 result; + + argp1 = (AddressUxOuts_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__Address *)jarg2; + arg3 = (GoInt *)jarg3; + result = (GoUint32)SKY_coin_AddressUxOuts_GetOutputLength(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Length(void * jarg1, void * jarg2) { + unsigned int jresult ; + AddressUxOuts_Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + AddressUxOuts_Handle *argp1 ; + GoUint32 result; + + argp1 = (AddressUxOuts_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_coin_AddressUxOuts_Length(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Set(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + AddressUxOuts_Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + AddressUxOuts_Handle *argp1 ; + GoUint32 result; + + argp1 = (AddressUxOuts_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__Address *)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_coin_AddressUxOuts_Set(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_ScryptChacha20poly1305_Encrypt(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + GoSlice arg2 ; + GoSlice arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + GoSlice *argp2 ; + GoSlice *argp3 ; + GoUint32 result; + + arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoSlice *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg3 = *argp3; + arg4 = (coin__UxArray *)jarg4; + result = (GoUint32)SKY_encrypt_ScryptChacha20poly1305_Encrypt(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_ScryptChacha20poly1305_Decrypt(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + GoSlice arg2 ; + GoSlice arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + GoSlice *argp2 ; + GoSlice *argp3 ; + GoUint32 result; + + arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoSlice *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg3 = *argp3; + arg4 = (coin__UxArray *)jarg4; + result = (GoUint32)SKY_encrypt_ScryptChacha20poly1305_Decrypt(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateOptionsHandle(void * jarg1, void * jarg2, void * jarg3, unsigned char jarg4, void * jarg5, void * jarg6, unsigned long long jarg7, void * jarg8) { + unsigned int jresult ; + GoString arg1 ; + GoString arg2 ; + GoString arg3 ; + GoUint8 arg4 ; + GoString arg5 ; + GoString arg6 ; + GoUint64 arg7 ; + Options__Handle *arg8 = (Options__Handle *) 0 ; + GoString *argp1 ; + GoString *argp2 ; + GoString *argp3 ; + GoString *argp5 ; + GoString *argp6 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + arg4 = (GoUint8)jarg4; + argp5 = (GoString *)jarg5; + if (!argp5) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg5 = *argp5; + argp6 = (GoString *)jarg6; + if (!argp6) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg6 = *argp6; + arg7 = (GoUint64)jarg7; + arg8 = (Options__Handle *)jarg8; + result = (GoUint32)SKY_wallet_CreateOptionsHandle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_AddPrivateKey(void * jarg1, void * jarg2) { + unsigned int jresult ; + Wallet__Handle arg1 ; + GoString arg2 ; + GoString *argp2 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_cli_AddPrivateKey(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_AddPrivateKeyToFile(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + GoString arg1 ; + GoString arg2 ; + PasswordReader__Handle arg3 ; + GoString *argp1 ; + GoString *argp2 ; + PasswordReader__Handle *argp3 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (PasswordReader__Handle *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null PasswordReader__Handle", 0); + return 0; + } + arg3 = *argp3; + result = (GoUint32)SKY_cli_AddPrivateKeyToFile(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_GenerateKeyPair(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (coin__UxArray *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1_GenerateKeyPair(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_PubkeyFromSeckey(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1_PubkeyFromSeckey(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_UncompressPubkey(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1_UncompressPubkey(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_UncompressedPubkeyFromSeckey(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1_UncompressedPubkeyFromSeckey(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_Secp256k1Hash(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1_Secp256k1Hash(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_GenerateDeterministicKeyPair(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_secp256k1_GenerateDeterministicKeyPair(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_DeterministicKeyPairIterator(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + arg3 = (coin__UxArray *)jarg3; + arg4 = (coin__UxArray *)jarg4; + result = (GoUint32)SKY_secp256k1_DeterministicKeyPairIterator(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_Sign(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + GoSlice arg1 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_secp256k1_Sign(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_SignDeterministic(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + GoSlice arg1 ; + GoSlice arg2 ; + GoSlice arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; + GoSlice *argp3 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoSlice *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg3 = *argp3; + arg4 = (coin__UxArray *)jarg4; + result = (GoUint32)SKY_secp256k1_SignDeterministic(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_VerifySeckey(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_secp256k1_VerifySeckey(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_VerifyPubkey(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_secp256k1_VerifyPubkey(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_VerifySignatureValidity(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_secp256k1_VerifySignatureValidity(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_VerifySignature(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + GoSlice arg1 ; + GoSlice arg2 ; + GoSlice arg3 ; + GoInt *arg4 = (GoInt *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; + GoSlice *argp3 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoSlice *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg3 = *argp3; + arg4 = (GoInt *)jarg4; + result = (GoUint32)SKY_secp256k1_VerifySignature(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_SignatureErrorString(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + GoSlice arg1 ; + GoSlice arg2 ; + GoSlice arg3 ; + GoString_ *arg4 = (GoString_ *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; + GoSlice *argp3 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoSlice *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg3 = *argp3; + arg4 = (GoString_ *)jarg4; + result = (GoUint32)SKY_secp256k1_SignatureErrorString(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_RecoverPubkey(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + GoSlice arg1 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_secp256k1_RecoverPubkey(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_ECDH(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + GoSlice arg1 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_secp256k1_ECDH(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_apputil_CatchInterruptPanic() { + unsigned int jresult ; + GoUint32 result; + + result = (GoUint32)SKY_apputil_CatchInterruptPanic(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_apputil_CatchDebug() { + unsigned int jresult ; + GoUint32 result; + + result = (GoUint32)SKY_apputil_CatchDebug(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_apputil_PrintProgramStatus() { + unsigned int jresult ; + GoUint32 result; + + result = (GoUint32)SKY_apputil_PrintProgramStatus(); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cert_CreateCertIfNotExists(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + GoString arg1 ; + GoString arg2 ; + GoString arg3 ; + GoString arg4 ; + GoString *argp1 ; + GoString *argp2 ; + GoString *argp3 ; + GoString *argp4 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + argp4 = (GoString *)jarg4; + if (!argp4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg4 = *argp4; + result = (GoUint32)SKY_cert_CreateCertIfNotExists(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_VerifyTransactionFee(void * jarg1, unsigned long long jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoUint64 arg2 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoUint64)jarg2; + result = (GoUint32)SKY_fee_VerifyTransactionFee(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_VerifyTransactionFeeForHours(unsigned long long jarg1, unsigned long long jarg2) { + unsigned int jresult ; + GoUint64 arg1 ; + GoUint64 arg2 ; + GoUint32 result; + + arg1 = (GoUint64)jarg1; + arg2 = (GoUint64)jarg2; + result = (GoUint32)SKY_fee_VerifyTransactionFeeForHours(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_RequiredFee(unsigned long long jarg1, void * jarg2) { + unsigned int jresult ; + GoUint64 arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint32 result; + + arg1 = (GoUint64)jarg1; + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_fee_RequiredFee(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_RemainingHours(unsigned long long jarg1, void * jarg2) { + unsigned int jresult ; + GoUint64 arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint32 result; + + arg1 = (GoUint64)jarg1; + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_fee_RemainingHours(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_TransactionFee(void * jarg1, unsigned long long jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoUint64 arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoUint64 *arg4 = (GoUint64 *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoUint64)jarg2; + arg3 = (coin__UxArray *)jarg3; + arg4 = (GoUint64 *)jarg4; + result = (GoUint32)SKY_fee_TransactionFee(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_LoadConfig(void * jarg1) { + unsigned int jresult ; + Config__Handle *arg1 = (Config__Handle *) 0 ; + GoUint32 result; + + arg1 = (Config__Handle *)jarg1; + result = (GoUint32)SKY_cli_LoadConfig(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_FullWalletPath(void * jarg1, void * jarg2) { + unsigned int jresult ; + Config__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cli_Config_FullWalletPath(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_FullDBPath(void * jarg1, void * jarg2) { + unsigned int jresult ; + Config__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cli_Config_FullDBPath(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_NewApp(void * jarg1, void * jarg2) { + unsigned int jresult ; + Config__Handle arg1 ; + App__Handle *arg2 = (App__Handle *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (App__Handle *)jarg2; + result = (GoUint32)SKY_cli_NewApp(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_RPCClientFromContext(void * jarg1, void * jarg2) { + unsigned int jresult ; + Context__Handle arg1 ; + WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (WebRpcClient__Handle *)jarg2; + result = (GoUint32)SKY_cli_RPCClientFromContext(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_ConfigFromContext(void * jarg1, void * jarg2) { + unsigned int jresult ; + Context__Handle arg1 ; + Config__Handle *arg2 = (Config__Handle *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (Config__Handle *)jarg2; + result = (GoUint32)SKY_cli_ConfigFromContext(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_PasswordFromBytes_Password(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (coin__UxArray *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_cli_PasswordFromBytes_Password(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_PasswordFromTerm_Password(void * jarg1) { + unsigned int jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (coin__UxArray *)jarg1; + result = (GoUint32)SKY_cli_PasswordFromTerm_Password(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromWallet(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) { + unsigned int jresult ; + WebRpcClient__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + GoSlice arg4 ; + PasswordReader__Handle arg5 ; + Transaction__Handle *arg6 = (Transaction__Handle *) 0 ; + GoString *argp2 ; + GoString *argp3 ; + GoSlice *argp4 ; + PasswordReader__Handle *argp5 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + argp4 = (GoSlice *)jarg4; + if (!argp4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg4 = *argp4; + argp5 = (PasswordReader__Handle *)jarg5; + if (!argp5) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null PasswordReader__Handle", 0); + return 0; + } + arg5 = *argp5; + arg6 = (Transaction__Handle *)jarg6; + result = (GoUint32)SKY_cli_CreateRawTxFromWallet(arg1,arg2,arg3,arg4,arg5,arg6); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromAddress(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6, void * jarg7) { + unsigned int jresult ; + WebRpcClient__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + GoString arg4 ; + GoSlice arg5 ; + PasswordReader__Handle arg6 ; + Transaction__Handle *arg7 = (Transaction__Handle *) 0 ; + GoString *argp2 ; + GoString *argp3 ; + GoString *argp4 ; + GoSlice *argp5 ; + PasswordReader__Handle *argp6 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + argp4 = (GoString *)jarg4; + if (!argp4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg4 = *argp4; + argp5 = (GoSlice *)jarg5; + if (!argp5) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg5 = *argp5; + argp6 = (PasswordReader__Handle *)jarg6; + if (!argp6) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null PasswordReader__Handle", 0); + return 0; + } + arg6 = *argp6; + arg7 = (Transaction__Handle *)jarg7; + result = (GoUint32)SKY_cli_CreateRawTxFromAddress(arg1,arg2,arg3,arg4,arg5,arg6,arg7); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTx(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6, void * jarg7) { + unsigned int jresult ; + WebRpcClient__Handle arg1 ; + Wallet__Handle arg2 ; + GoSlice arg3 ; + GoString arg4 ; + GoSlice arg5 ; + GoSlice arg6 ; + Transaction__Handle *arg7 = (Transaction__Handle *) 0 ; + GoSlice *argp3 ; + GoString *argp4 ; + GoSlice *argp5 ; + GoSlice *argp6 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + { + SWIG_AsVal_long(jarg2, (long*)&arg2); + } + argp3 = (GoSlice *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg3 = *argp3; + argp4 = (GoString *)jarg4; + if (!argp4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg4 = *argp4; + argp5 = (GoSlice *)jarg5; + if (!argp5) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg5 = *argp5; + argp6 = (GoSlice *)jarg6; + if (!argp6) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg6 = *argp6; + arg7 = (Transaction__Handle *)jarg7; + result = (GoUint32)SKY_cli_CreateRawTx(arg1,arg2,arg3,arg4,arg5,arg6,arg7); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_NewTransaction(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + GoSlice arg1 ; + GoSlice arg2 ; + GoSlice arg3 ; + Transaction__Handle *arg4 = (Transaction__Handle *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; + GoSlice *argp3 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoSlice *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg3 = *argp3; + arg4 = (Transaction__Handle *)jarg4; + result = (GoUint32)SKY_cli_NewTransaction(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_InitDataDir(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_file_InitDataDir(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_UserHome(void * jarg1) { + unsigned int jresult ; + GoString_ *arg1 = (GoString_ *) 0 ; + GoUint32 result; + + arg1 = (GoString_ *)jarg1; + result = (GoUint32)SKY_file_UserHome(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_ResolveResourceDirectory(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_file_ResolveResourceDirectory(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_DetermineResourcePath(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + GoString arg1 ; + GoString arg2 ; + GoString arg3 ; + GoString_ *arg4 = (GoString_ *) 0 ; + GoString *argp1 ; + GoString *argp2 ; + GoString *argp3 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + arg4 = (GoString_ *)jarg4; + result = (GoUint32)SKY_file_DetermineResourcePath(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetWalletOutputsFromFile(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + WebRpcClient__Handle arg1 ; + GoString arg2 ; + ReadableOutputSet__Handle *arg3 = (ReadableOutputSet__Handle *) 0 ; + GoString *argp2 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (ReadableOutputSet__Handle *)jarg3; + result = (GoUint32)SKY_cli_GetWalletOutputsFromFile(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetWalletOutputs(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + WebRpcClient__Handle arg1 ; + Wallet__Handle *arg2 = (Wallet__Handle *) 0 ; + ReadableOutputSet__Handle *arg3 = (ReadableOutputSet__Handle *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (Wallet__Handle *)jarg2; + arg3 = (ReadableOutputSet__Handle *)jarg3; + result = (GoUint32)SKY_cli_GetWalletOutputs(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_testutil_MakeAddress(void * jarg1) { + unsigned int jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoUint32 result; + + arg1 = (cipher__Address *)jarg1; + result = (GoUint32)SKY_testutil_MakeAddress(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_String(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_secp256k1go_Field_String(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Print(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoString arg2 ; + GoString *argp2 ; + GoUint32 result; + + arg1 = (secp256k1go__Field *)jarg1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_secp256k1go_Field_Print(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetB32(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoSlice arg2 ; + GoSlice *argp2 ; + GoUint32 result; + + arg1 = (secp256k1go__Field *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_secp256k1go_Field_SetB32(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetBytes(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoSlice arg2 ; + GoSlice *argp2 ; + GoUint32 result; + + arg1 = (secp256k1go__Field *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_secp256k1go_Field_SetBytes(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetHex(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoString arg2 ; + GoString *argp2 ; + GoUint32 result; + + arg1 = (secp256k1go__Field *)jarg1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_secp256k1go_Field_SetHex(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_IsOdd(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_secp256k1go_Field_IsOdd(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_IsZero(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_secp256k1go_Field_IsZero(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetInt(void * jarg1, unsigned int jarg2) { + unsigned int jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoUint32 arg2 ; + GoUint32 result; + + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (GoUint32)jarg2; + result = (GoUint32)SKY_secp256k1go_Field_SetInt(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Normalize(void * jarg1) { + unsigned int jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__Field *)jarg1; + result = (GoUint32)SKY_secp256k1go_Field_Normalize(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_GetB32(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoSlice arg2 ; + GoSlice *argp2 ; + GoUint32 result; + + arg1 = (secp256k1go__Field *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_secp256k1go_Field_GetB32(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Equals(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + GoUint8 *arg3 = (GoUint8 *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + arg3 = (GoUint8 *)jarg3; + result = (GoUint32)SKY_secp256k1go_Field_Equals(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetAdd(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + result = (GoUint32)SKY_secp256k1go_Field_SetAdd(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_MulInt(void * jarg1, unsigned int jarg2) { + unsigned int jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoUint32 arg2 ; + GoUint32 result; + + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (GoUint32)jarg2; + result = (GoUint32)SKY_secp256k1go_Field_MulInt(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Negate(void * jarg1, void * jarg2, unsigned int jarg3) { + unsigned int jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + GoUint32 arg3 ; + GoUint32 result; + + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + arg3 = (GoUint32)jarg3; + result = (GoUint32)SKY_secp256k1go_Field_Negate(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Inv(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + result = (GoUint32)SKY_secp256k1go_Field_Inv(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Sqrt(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + result = (GoUint32)SKY_secp256k1go_Field_Sqrt(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_InvVar(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + result = (GoUint32)SKY_secp256k1go_Field_InvVar(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Mul(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + secp256k1go__Field *arg3 = (secp256k1go__Field *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + arg3 = (secp256k1go__Field *)jarg3; + result = (GoUint32)SKY_secp256k1go_Field_Mul(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Sqr(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + GoUint32 result; + + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + result = (GoUint32)SKY_secp256k1go_Field_Sqr(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_scrypt_Key(void * jarg1, void * jarg2, long long jarg3, long long jarg4, long long jarg5, long long jarg6, void * jarg7) { + unsigned int jresult ; + GoSlice arg1 ; + GoSlice arg2 ; + GoInt arg3 ; + GoInt arg4 ; + GoInt arg5 ; + GoInt arg6 ; + coin__UxArray *arg7 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (GoInt)jarg3; + arg4 = (GoInt)jarg4; + arg5 = (GoInt)jarg5; + arg6 = (GoInt)jarg6; + arg7 = (coin__UxArray *)jarg7; + result = (GoUint32)SKY_scrypt_Key(arg1,arg2,arg3,arg4,arg5,arg6,arg7); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Ripemd160_Set(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__Ripemd160 *arg1 = (cipher__Ripemd160 *) 0 ; + GoSlice arg2 ; + GoSlice *argp2 ; + GoUint32 result; + + arg1 = (cipher__Ripemd160 *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_cipher_Ripemd160_Set((GoUint8_ (*)[20])arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_HashRipemd160(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + cipher__Ripemd160 *arg2 = (cipher__Ripemd160 *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__Ripemd160 *)jarg2; + result = (GoUint32)SKY_cipher_HashRipemd160(arg1,(GoUint8_ (*)[20])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Set(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; + GoSlice arg2 ; + GoSlice *argp2 ; + GoUint32 result; + + arg1 = (cipher__SHA256 *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_cipher_SHA256_Set((GoUint8_ (*)[32])arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Hex(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + arg1 = (cipher__SHA256 *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cipher_SHA256_Hex((GoUint8_ (*)[32])arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Xor(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + GoUint32 result; + + arg1 = (cipher__SHA256 *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + arg3 = (cipher__SHA256 *)jarg3; + result = (GoUint32)SKY_cipher_SHA256_Xor((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[32])arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SumSHA256(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_cipher_SumSHA256(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256FromHex(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_cipher_SHA256FromHex(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DoubleSHA256(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_cipher_DoubleSHA256(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddSHA256(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + GoUint32 result; + + arg1 = (cipher__SHA256 *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + arg3 = (cipher__SHA256 *)jarg3; + result = (GoUint32)SKY_cipher_AddSHA256((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[32])arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Merkle(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice *arg1 = (GoSlice *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint32 result; + + arg1 = (GoSlice *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_cipher_Merkle(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Null(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoUint32 result; + + arg1 = (cipher__SHA256 *)jarg1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_cipher_SHA256_Null((GoUint8_ (*)[32])arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Create_Transaction(void * jarg1) { + unsigned int jresult ; + Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; + GoUint32 result; + + arg1 = (Transaction__Handle *)jarg1; + result = (GoUint32)SKY_coin_Create_Transaction(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Copy(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (Transaction__Handle *)jarg2; + result = (GoUint32)SKY_coin_Transaction_Copy(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetTransactionObject(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + coin__Transaction **arg2 = (coin__Transaction **) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (coin__Transaction **)jarg2; + result = (GoUint32)SKY_coin_GetTransactionObject(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_ResetInputs(void * jarg1, long long jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoInt arg2 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoInt)jarg2; + result = (GoUint32)SKY_coin_Transaction_ResetInputs(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetInputsCount(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_coin_Transaction_GetInputsCount(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetInputAt(void * jarg1, long long jarg2, void * jarg3) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoInt arg2 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoInt)jarg2; + arg3 = (cipher__SHA256 *)jarg3; + result = (GoUint32)SKY_coin_Transaction_GetInputAt(arg1,arg2,(GoUint8_ (*)[32])arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SetInputAt(void * jarg1, long long jarg2, void * jarg3) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoInt arg2 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoInt)jarg2; + arg3 = (cipher__SHA256 *)jarg3; + result = (GoUint32)SKY_coin_Transaction_SetInputAt(arg1,arg2,(GoUint8_ (*)[32])arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetOutputsCount(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_coin_Transaction_GetOutputsCount(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetOutputAt(void * jarg1, long long jarg2, void * jarg3) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoInt arg2 ; + coin__TransactionOutput *arg3 = (coin__TransactionOutput *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoInt)jarg2; + arg3 = (coin__TransactionOutput *)jarg3; + result = (GoUint32)SKY_coin_Transaction_GetOutputAt(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SetOutputAt(void * jarg1, long long jarg2, void * jarg3) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoInt arg2 ; + coin__TransactionOutput *arg3 = (coin__TransactionOutput *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoInt)jarg2; + arg3 = (coin__TransactionOutput *)jarg3; + result = (GoUint32)SKY_coin_Transaction_SetOutputAt(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetSignaturesCount(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_coin_Transaction_GetSignaturesCount(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetSignatureAt(void * jarg1, long long jarg2, void * jarg3) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoInt arg2 ; + cipher__Sig *arg3 = (cipher__Sig *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoInt)jarg2; + arg3 = (cipher__Sig *)jarg3; + result = (GoUint32)SKY_coin_Transaction_GetSignatureAt(arg1,arg2,(GoUint8_ (*)[65])arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SetSignatureAt(void * jarg1, long long jarg2, void * jarg3) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoInt arg2 ; + cipher__Sig *arg3 = (cipher__Sig *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoInt)jarg2; + arg3 = (cipher__Sig *)jarg3; + result = (GoUint32)SKY_coin_Transaction_SetSignatureAt(arg1,arg2,(GoUint8_ (*)[65])arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_PushSignature(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + cipher__Sig *arg2 = (cipher__Sig *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (cipher__Sig *)jarg2; + result = (GoUint32)SKY_coin_Transaction_PushSignature(arg1,(GoUint8_ (*)[65])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_ResetOutputs(void * jarg1, long long jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoInt arg2 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoInt)jarg2; + result = (GoUint32)SKY_coin_Transaction_ResetOutputs(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_ResetSignatures(void * jarg1, long long jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoInt arg2 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoInt)jarg2; + result = (GoUint32)SKY_coin_Transaction_ResetSignatures(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Verify(void * jarg1) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_coin_Transaction_Verify(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_VerifyInput(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_coin_Transaction_VerifyInput(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_PushInput(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Transaction__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint16 *arg3 = (GoUint16 *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (cipher__SHA256 *)jarg2; + arg3 = (GoUint16 *)jarg3; + result = (GoUint32)SKY_coin_Transaction_PushInput(arg1,(GoUint8_ (*)[32])arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_TransactionOutput_UxID(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + GoUint32 result; + + arg1 = (coin__TransactionOutput *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + arg3 = (cipher__SHA256 *)jarg3; + result = (GoUint32)SKY_coin_TransactionOutput_UxID(arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[32])arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_PushOutput(void * jarg1, void * jarg2, unsigned long long jarg3, unsigned long long jarg4) { + unsigned int jresult ; + Transaction__Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoUint64 arg3 ; + GoUint64 arg4 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (cipher__Address *)jarg2; + arg3 = (GoUint64)jarg3; + arg4 = (GoUint64)jarg4; + result = (GoUint32)SKY_coin_Transaction_PushOutput(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SignInputs(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoSlice arg2 ; + GoSlice *argp2 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_coin_Transaction_SignInputs(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Size(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_coin_Transaction_Size(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Hash(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_Transaction_Hash(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SizeHash(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoInt *)jarg2; + arg3 = (cipher__SHA256 *)jarg3; + result = (GoUint32)SKY_coin_Transaction_SizeHash(arg1,arg2,(GoUint8_ (*)[32])arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_TxID(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_coin_Transaction_TxID(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_TxIDHex(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_coin_Transaction_TxIDHex(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_UpdateHeader(void * jarg1) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_coin_Transaction_UpdateHeader(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_HashInner(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_Transaction_HashInner(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Serialize(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_coin_Transaction_Serialize(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_TransactionDeserialize(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Transaction__Handle *)jarg2; + result = (GoUint32)SKY_coin_TransactionDeserialize(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_OutputHours(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_coin_Transaction_OutputHours(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Create_Transactions(void * jarg1) { + unsigned int jresult ; + Transactions__Handle *arg1 = (Transactions__Handle *) 0 ; + GoUint32 result; + + arg1 = (Transactions__Handle *)jarg1; + result = (GoUint32)SKY_coin_Create_Transactions(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetTransactionsObject(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transactions__Handle arg1 ; + coin__UxArray **arg2 = (coin__UxArray **) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (coin__UxArray **)jarg2; + result = (GoUint32)SKY_coin_GetTransactionsObject(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Length(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transactions__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_coin_Transactions_Length(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Add(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transactions__Handle arg1 ; + Transaction__Handle arg2 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + { + SWIG_AsVal_long(jarg2, (long*)&arg2); + } + result = (GoUint32)SKY_coin_Transactions_Add(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Fees(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Transactions__Handle arg1 ; + FeeCalculator *arg2 = (FeeCalculator *) 0 ; + GoUint64 *arg3 = (GoUint64 *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (FeeCalculator *)jarg2; + arg3 = (GoUint64 *)jarg3; + result = (GoUint32)SKY_coin_Transactions_Fees(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_GetAt(void * jarg1, long long jarg2, void * jarg3) { + unsigned int jresult ; + Transactions__Handle arg1 ; + GoInt arg2 ; + Transaction__Handle *arg3 = (Transaction__Handle *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoInt)jarg2; + arg3 = (Transaction__Handle *)jarg3; + result = (GoUint32)SKY_coin_Transactions_GetAt(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Hashes(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transactions__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_coin_Transactions_Hashes(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Size(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transactions__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_coin_Transactions_Size(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_TruncateBytesTo(void * jarg1, long long jarg2, void * jarg3) { + unsigned int jresult ; + Transactions__Handle arg1 ; + GoInt arg2 ; + Transactions__Handle *arg3 = (Transactions__Handle *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoInt)jarg2; + arg3 = (Transactions__Handle *)jarg3; + result = (GoUint32)SKY_coin_Transactions_TruncateBytesTo(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortTransactions(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Transactions__Handle arg1 ; + FeeCalculator *arg2 = (FeeCalculator *) 0 ; + Transactions__Handle *arg3 = (Transactions__Handle *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (FeeCalculator *)jarg2; + arg3 = (Transactions__Handle *)jarg3; + result = (GoUint32)SKY_coin_SortTransactions(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewSortableTransactions(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Transactions__Handle arg1 ; + FeeCalculator *arg2 = (FeeCalculator *) 0 ; + SortableTransactionResult_Handle *arg3 = (SortableTransactionResult_Handle *) 0 ; + GoUint32 result; + + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (FeeCalculator *)jarg2; + arg3 = (SortableTransactionResult_Handle *)jarg3; + result = (GoUint32)SKY_coin_NewSortableTransactions(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortableTransactions_Sort(void * jarg1) { + unsigned int jresult ; + SortableTransactionResult_Handle arg1 ; + SortableTransactionResult_Handle *argp1 ; + GoUint32 result; + + argp1 = (SortableTransactionResult_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null SortableTransactionResult_Handle", 0); + return 0; + } + arg1 = *argp1; + result = (GoUint32)SKY_coin_SortableTransactions_Sort(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortableTransactions_Len(void * jarg1, void * jarg2) { + unsigned int jresult ; + SortableTransactionResult_Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + SortableTransactionResult_Handle *argp1 ; + GoUint32 result; + + argp1 = (SortableTransactionResult_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null SortableTransactionResult_Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_coin_SortableTransactions_Len(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortableTransactions_Less(void * jarg1, long long jarg2, long long jarg3, void * jarg4) { + unsigned int jresult ; + SortableTransactionResult_Handle arg1 ; + GoInt arg2 ; + GoInt arg3 ; + GoUint8 *arg4 = (GoUint8 *) 0 ; + SortableTransactionResult_Handle *argp1 ; + GoUint32 result; + + argp1 = (SortableTransactionResult_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null SortableTransactionResult_Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt)jarg2; + arg3 = (GoInt)jarg3; + arg4 = (GoUint8 *)jarg4; + result = (GoUint32)SKY_coin_SortableTransactions_Less(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortableTransactions_Swap(void * jarg1, long long jarg2, long long jarg3) { + unsigned int jresult ; + SortableTransactionResult_Handle arg1 ; + GoInt arg2 ; + GoInt arg3 ; + SortableTransactionResult_Handle *argp1 ; + GoUint32 result; + + argp1 = (SortableTransactionResult_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null SortableTransactionResult_Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt)jarg2; + arg3 = (GoInt)jarg3; + result = (GoUint32)SKY_coin_SortableTransactions_Swap(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_VerifyTransactionCoinsSpending(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (coin__UxArray *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_coin_VerifyTransactionCoinsSpending(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_VerifyTransactionHoursSpending(unsigned long long jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + GoUint64 arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (GoUint64)jarg1; + arg2 = (coin__UxArray *)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_coin_VerifyTransactionHoursSpending(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher__Address_isEqual(void * jarg1, void * jarg2) { + int jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + int result; + + arg1 = (cipher__Address *)jarg1; + arg2 = (cipher__Address *)jarg2; + result = (int)cipher__Address_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher__Address_Version_set(void * jarg1, void * jarg2) { + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoUint8_ arg2 ; + GoUint8_ *argp2 ; + + arg1 = (cipher__Address *)jarg1; + argp2 = (GoUint8_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint8_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Version = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher__Address_Version_get(void * jarg1) { + void * jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoUint8_ result; + + arg1 = (cipher__Address *)jarg1; + result = ((arg1)->Version); + { + GoUint8_ * resultptr = (GoUint8_ *) malloc(sizeof(GoUint8_)); + memmove(resultptr, &result, sizeof(GoUint8_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher__Address_Key_set(void * jarg1, void * jarg2) { + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoUint8_ *arg2 ; + + arg1 = (cipher__Address *)jarg1; + arg2 = (GoUint8_ *)jarg2; + { + size_t ii; + GoUint8_ *b = (GoUint8_ *) arg1->Key; + for (ii = 0; ii < (size_t)20; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher__Address_Key_get(void * jarg1) { + void * jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoUint8_ *result = 0 ; + + arg1 = (cipher__Address *)jarg1; + result = (GoUint8_ *) ((arg1)->Key); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher__Address() { + void * jresult ; + cipher__Address *result = 0 ; + + result = (cipher__Address *)calloc(1, sizeof(cipher__Address)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher__Address(void * jarg1) { + cipher__Address *arg1 = (cipher__Address *) 0 ; + + arg1 = (cipher__Address *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_encoder__StructField_Name_set(void * jarg1, void * jarg2) { + encoder__StructField *arg1 = (encoder__StructField *) 0 ; + GoString_ arg2 ; + GoString_ *argp2 ; + + arg1 = (encoder__StructField *)jarg1; + argp2 = (GoString_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Name = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_encoder__StructField_Name_get(void * jarg1) { + void * jresult ; + encoder__StructField *arg1 = (encoder__StructField *) 0 ; + GoString_ result; + + arg1 = (encoder__StructField *)jarg1; + result = ((arg1)->Name); + { + GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); + memmove(resultptr, &result, sizeof(GoString_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_encoder__StructField_Kind_set(void * jarg1, void * jarg2) { + encoder__StructField *arg1 = (encoder__StructField *) 0 ; + GoUint32_ arg2 ; + GoUint32_ *argp2 ; + + arg1 = (encoder__StructField *)jarg1; + argp2 = (GoUint32_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint32_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Kind = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_encoder__StructField_Kind_get(void * jarg1) { + void * jresult ; + encoder__StructField *arg1 = (encoder__StructField *) 0 ; + GoUint32_ result; + + arg1 = (encoder__StructField *)jarg1; + result = ((arg1)->Kind); + { + GoUint32_ * resultptr = (GoUint32_ *) malloc(sizeof(GoUint32_)); + memmove(resultptr, &result, sizeof(GoUint32_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_encoder__StructField_Type_set(void * jarg1, void * jarg2) { + encoder__StructField *arg1 = (encoder__StructField *) 0 ; + GoString_ arg2 ; + GoString_ *argp2 ; + + arg1 = (encoder__StructField *)jarg1; + argp2 = (GoString_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Type = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_encoder__StructField_Type_get(void * jarg1) { + void * jresult ; + encoder__StructField *arg1 = (encoder__StructField *) 0 ; + GoString_ result; + + arg1 = (encoder__StructField *)jarg1; + result = ((arg1)->Type); + { + GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); + memmove(resultptr, &result, sizeof(GoString_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_encoder__StructField_Tag_set(void * jarg1, void * jarg2) { + encoder__StructField *arg1 = (encoder__StructField *) 0 ; + GoString_ arg2 ; + GoString_ *argp2 ; + + arg1 = (encoder__StructField *)jarg1; + argp2 = (GoString_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Tag = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_encoder__StructField_Tag_get(void * jarg1) { + void * jresult ; + encoder__StructField *arg1 = (encoder__StructField *) 0 ; + GoString_ result; + + arg1 = (encoder__StructField *)jarg1; + result = ((arg1)->Tag); + { + GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); + memmove(resultptr, &result, sizeof(GoString_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_encoder__StructField() { + void * jresult ; + encoder__StructField *result = 0 ; + + result = (encoder__StructField *)calloc(1, sizeof(encoder__StructField)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_encoder__StructField(void * jarg1) { + encoder__StructField *arg1 = (encoder__StructField *) 0 ; + + arg1 = (encoder__StructField *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_encrypt__ScryptChacha20poly1305_N_set(void * jarg1, void * jarg2) { + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + GoInt_ arg2 ; + GoInt_ *argp2 ; + + arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; + argp2 = (GoInt_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->N = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_encrypt__ScryptChacha20poly1305_N_get(void * jarg1) { + void * jresult ; + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + GoInt_ result; + + arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; + result = ((arg1)->N); + { + GoInt_ * resultptr = (GoInt_ *) malloc(sizeof(GoInt_)); + memmove(resultptr, &result, sizeof(GoInt_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_encrypt__ScryptChacha20poly1305_R_set(void * jarg1, void * jarg2) { + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + GoInt_ arg2 ; + GoInt_ *argp2 ; + + arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; + argp2 = (GoInt_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->R = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_encrypt__ScryptChacha20poly1305_R_get(void * jarg1) { + void * jresult ; + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + GoInt_ result; + + arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; + result = ((arg1)->R); + { + GoInt_ * resultptr = (GoInt_ *) malloc(sizeof(GoInt_)); + memmove(resultptr, &result, sizeof(GoInt_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_encrypt__ScryptChacha20poly1305_P_set(void * jarg1, void * jarg2) { + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + GoInt_ arg2 ; + GoInt_ *argp2 ; + + arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; + argp2 = (GoInt_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->P = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_encrypt__ScryptChacha20poly1305_P_get(void * jarg1) { + void * jresult ; + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + GoInt_ result; + + arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; + result = ((arg1)->P); + { + GoInt_ * resultptr = (GoInt_ *) malloc(sizeof(GoInt_)); + memmove(resultptr, &result, sizeof(GoInt_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_encrypt__ScryptChacha20poly1305_KeyLen_set(void * jarg1, void * jarg2) { + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + GoInt_ arg2 ; + GoInt_ *argp2 ; + + arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; + argp2 = (GoInt_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->KeyLen = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_encrypt__ScryptChacha20poly1305_KeyLen_get(void * jarg1) { + void * jresult ; + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + GoInt_ result; + + arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; + result = ((arg1)->KeyLen); + { + GoInt_ * resultptr = (GoInt_ *) malloc(sizeof(GoInt_)); + memmove(resultptr, &result, sizeof(GoInt_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_encrypt__ScryptChacha20poly1305() { + void * jresult ; + encrypt__ScryptChacha20poly1305 *result = 0 ; + + result = (encrypt__ScryptChacha20poly1305 *)calloc(1, sizeof(encrypt__ScryptChacha20poly1305)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_encrypt__ScryptChacha20poly1305(void * jarg1) { + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + + arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_secp256k1go__Field_n_set(void * jarg1, void * jarg2) { + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoUint32_ *arg2 ; + + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (GoUint32_ *)jarg2; + { + size_t ii; + GoUint32_ *b = (GoUint32_ *) arg1->n; + for (ii = 0; ii < (size_t)10; ii++) b[ii] = *((GoUint32_ *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_secp256k1go__Field_n_get(void * jarg1) { + void * jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoUint32_ *result = 0 ; + + arg1 = (secp256k1go__Field *)jarg1; + result = (GoUint32_ *)(GoUint32_ *) ((arg1)->n); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_secp256k1go__Field() { + void * jresult ; + secp256k1go__Field *result = 0 ; + + result = (secp256k1go__Field *)calloc(1, sizeof(secp256k1go__Field)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_secp256k1go__Field(void * jarg1) { + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + + arg1 = (secp256k1go__Field *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_secp256k1go__XY_X_set(void * jarg1, void * jarg2) { + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + + arg1 = (secp256k1go__XY *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + if (arg1) (arg1)->X = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_secp256k1go__XY_X_get(void * jarg1) { + void * jresult ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + secp256k1go__Field *result = 0 ; + + arg1 = (secp256k1go__XY *)jarg1; + result = (secp256k1go__Field *)& ((arg1)->X); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_secp256k1go__XY_Y_set(void * jarg1, void * jarg2) { + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + + arg1 = (secp256k1go__XY *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + if (arg1) (arg1)->Y = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_secp256k1go__XY_Y_get(void * jarg1) { + void * jresult ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + secp256k1go__Field *result = 0 ; + + arg1 = (secp256k1go__XY *)jarg1; + result = (secp256k1go__Field *)& ((arg1)->Y); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_secp256k1go__XY_Infinity_set(void * jarg1, void * jarg2) { + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + BOOL arg2 ; + BOOL *argp2 ; + + arg1 = (secp256k1go__XY *)jarg1; + argp2 = (BOOL *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null BOOL", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Infinity = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_secp256k1go__XY_Infinity_get(void * jarg1) { + void * jresult ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + BOOL result; + + arg1 = (secp256k1go__XY *)jarg1; + result = ((arg1)->Infinity); + { + BOOL * resultptr = (BOOL *) malloc(sizeof(BOOL)); + memmove(resultptr, &result, sizeof(BOOL)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_secp256k1go__XY() { + void * jresult ; + secp256k1go__XY *result = 0 ; + + result = (secp256k1go__XY *)calloc(1, sizeof(secp256k1go__XY)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_secp256k1go__XY(void * jarg1) { + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + + arg1 = (secp256k1go__XY *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_secp256k1go__XYZ_X_set(void * jarg1, void * jarg2) { + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + if (arg1) (arg1)->X = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_secp256k1go__XYZ_X_get(void * jarg1) { + void * jresult ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__Field *result = 0 ; + + arg1 = (secp256k1go__XYZ *)jarg1; + result = (secp256k1go__Field *)& ((arg1)->X); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_secp256k1go__XYZ_Y_set(void * jarg1, void * jarg2) { + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + if (arg1) (arg1)->Y = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_secp256k1go__XYZ_Y_get(void * jarg1) { + void * jresult ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__Field *result = 0 ; + + arg1 = (secp256k1go__XYZ *)jarg1; + result = (secp256k1go__Field *)& ((arg1)->Y); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_secp256k1go__XYZ_Z_set(void * jarg1, void * jarg2) { + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + if (arg1) (arg1)->Z = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_secp256k1go__XYZ_Z_get(void * jarg1) { + void * jresult ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__Field *result = 0 ; + + arg1 = (secp256k1go__XYZ *)jarg1; + result = (secp256k1go__Field *)& ((arg1)->Z); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_secp256k1go__XYZ_Infinity_set(void * jarg1, void * jarg2) { + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + BOOL arg2 ; + BOOL *argp2 ; + + arg1 = (secp256k1go__XYZ *)jarg1; + argp2 = (BOOL *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null BOOL", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Infinity = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_secp256k1go__XYZ_Infinity_get(void * jarg1) { + void * jresult ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + BOOL result; + + arg1 = (secp256k1go__XYZ *)jarg1; + result = ((arg1)->Infinity); + { + BOOL * resultptr = (BOOL *) malloc(sizeof(BOOL)); + memmove(resultptr, &result, sizeof(BOOL)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_secp256k1go__XYZ() { + void * jresult ; + secp256k1go__XYZ *result = 0 ; + + result = (secp256k1go__XYZ *)calloc(1, sizeof(secp256k1go__XYZ)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_secp256k1go__XYZ(void * jarg1) { + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + + arg1 = (secp256k1go__XYZ *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__SortableTransactions_Txns_set(void * jarg1, void * jarg2) { + coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; + coin__Transactions arg2 ; + coin__Transactions *argp2 ; + + arg1 = (coin__SortableTransactions *)jarg1; + argp2 = (coin__Transactions *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null coin__Transactions", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Txns = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__SortableTransactions_Txns_get(void * jarg1) { + void * jresult ; + coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; + coin__Transactions result; + + arg1 = (coin__SortableTransactions *)jarg1; + result = ((arg1)->Txns); + { + coin__Transactions * resultptr = (coin__Transactions *) malloc(sizeof(coin__Transactions)); + memmove(resultptr, &result, sizeof(coin__Transactions)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__SortableTransactions_Fees_set(void * jarg1, void * jarg2) { + coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; + GoSlice_ arg2 ; + GoSlice_ *argp2 ; + + arg1 = (coin__SortableTransactions *)jarg1; + argp2 = (GoSlice_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Fees = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__SortableTransactions_Fees_get(void * jarg1) { + void * jresult ; + coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; + GoSlice_ result; + + arg1 = (coin__SortableTransactions *)jarg1; + result = ((arg1)->Fees); + { + GoSlice_ * resultptr = (GoSlice_ *) malloc(sizeof(GoSlice_)); + memmove(resultptr, &result, sizeof(GoSlice_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__SortableTransactions_Hashes_set(void * jarg1, void * jarg2) { + coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; + GoSlice_ arg2 ; + GoSlice_ *argp2 ; + + arg1 = (coin__SortableTransactions *)jarg1; + argp2 = (GoSlice_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Hashes = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__SortableTransactions_Hashes_get(void * jarg1) { + void * jresult ; + coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; + GoSlice_ result; + + arg1 = (coin__SortableTransactions *)jarg1; + result = ((arg1)->Hashes); + { + GoSlice_ * resultptr = (GoSlice_ *) malloc(sizeof(GoSlice_)); + memmove(resultptr, &result, sizeof(GoSlice_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__SortableTransactions() { + void * jresult ; + coin__SortableTransactions *result = 0 ; + + result = (coin__SortableTransactions *)calloc(1, sizeof(coin__SortableTransactions)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__SortableTransactions(void * jarg1) { + coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; + + arg1 = (coin__SortableTransactions *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__Transaction_isEqual(void * jarg1, void * jarg2) { + int jresult ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + coin__Transaction *arg2 = (coin__Transaction *) 0 ; + int result; + + arg1 = (coin__Transaction *)jarg1; + arg2 = (coin__Transaction *)jarg2; + result = (int)coin__Transaction_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__Transaction_Length_set(void * jarg1, void * jarg2) { + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoInt32_ arg2 ; + GoInt32_ *argp2 ; + + arg1 = (coin__Transaction *)jarg1; + argp2 = (GoInt32_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt32_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Length = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Transaction_Length_get(void * jarg1) { + void * jresult ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoInt32_ result; + + arg1 = (coin__Transaction *)jarg1; + result = ((arg1)->Length); + { + GoInt32_ * resultptr = (GoInt32_ *) malloc(sizeof(GoInt32_)); + memmove(resultptr, &result, sizeof(GoInt32_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__Transaction_Type_set(void * jarg1, void * jarg2) { + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoInt8_ arg2 ; + GoInt8_ *argp2 ; + + arg1 = (coin__Transaction *)jarg1; + argp2 = (GoInt8_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt8_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Type = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Transaction_Type_get(void * jarg1) { + void * jresult ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoInt8_ result; + + arg1 = (coin__Transaction *)jarg1; + result = ((arg1)->Type); + { + GoInt8_ * resultptr = (GoInt8_ *) malloc(sizeof(GoInt8_)); + memmove(resultptr, &result, sizeof(GoInt8_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__Transaction_InnerHash_set(void * jarg1, void * jarg2) { + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoUint8_ *arg2 ; + + arg1 = (coin__Transaction *)jarg1; + arg2 = (GoUint8_ *)jarg2; + { + size_t ii; + GoUint8_ *b = (GoUint8_ *) arg1->InnerHash; + for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Transaction_InnerHash_get(void * jarg1) { + void * jresult ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoUint8_ *result = 0 ; + + arg1 = (coin__Transaction *)jarg1; + result = (GoUint8_ *) ((arg1)->InnerHash); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__Transaction_Sigs_set(void * jarg1, void * jarg2) { + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoSlice_ arg2 ; + GoSlice_ *argp2 ; + + arg1 = (coin__Transaction *)jarg1; + argp2 = (GoSlice_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Sigs = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Transaction_Sigs_get(void * jarg1) { + void * jresult ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoSlice_ result; + + arg1 = (coin__Transaction *)jarg1; + result = ((arg1)->Sigs); + { + GoSlice_ * resultptr = (GoSlice_ *) malloc(sizeof(GoSlice_)); + memmove(resultptr, &result, sizeof(GoSlice_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__Transaction_In_set(void * jarg1, void * jarg2) { + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoSlice_ arg2 ; + GoSlice_ *argp2 ; + + arg1 = (coin__Transaction *)jarg1; + argp2 = (GoSlice_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->In = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Transaction_In_get(void * jarg1) { + void * jresult ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoSlice_ result; + + arg1 = (coin__Transaction *)jarg1; + result = ((arg1)->In); + { + GoSlice_ * resultptr = (GoSlice_ *) malloc(sizeof(GoSlice_)); + memmove(resultptr, &result, sizeof(GoSlice_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__Transaction_Out_set(void * jarg1, void * jarg2) { + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoSlice_ arg2 ; + GoSlice_ *argp2 ; + + arg1 = (coin__Transaction *)jarg1; + argp2 = (GoSlice_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Out = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Transaction_Out_get(void * jarg1) { + void * jresult ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoSlice_ result; + + arg1 = (coin__Transaction *)jarg1; + result = ((arg1)->Out); + { + GoSlice_ * resultptr = (GoSlice_ *) malloc(sizeof(GoSlice_)); + memmove(resultptr, &result, sizeof(GoSlice_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__Transaction() { + void * jresult ; + coin__Transaction *result = 0 ; + + result = (coin__Transaction *)calloc(1, sizeof(coin__Transaction)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__Transaction(void * jarg1) { + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + + arg1 = (coin__Transaction *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__TransactionOutput_isEqual(void * jarg1, void * jarg2) { + int jresult ; + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + coin__TransactionOutput *arg2 = (coin__TransactionOutput *) 0 ; + int result; + + arg1 = (coin__TransactionOutput *)jarg1; + arg2 = (coin__TransactionOutput *)jarg2; + result = (int)coin__TransactionOutput_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__TransactionOutput_Address_set(void * jarg1, void * jarg2) { + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + + arg1 = (coin__TransactionOutput *)jarg1; + arg2 = (cipher__Address *)jarg2; + if (arg1) (arg1)->Address = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__TransactionOutput_Address_get(void * jarg1) { + void * jresult ; + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + cipher__Address *result = 0 ; + + arg1 = (coin__TransactionOutput *)jarg1; + result = (cipher__Address *)& ((arg1)->Address); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__TransactionOutput_Coins_set(void * jarg1, void * jarg2) { + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + GoUint64_ arg2 ; + GoUint64_ *argp2 ; + + arg1 = (coin__TransactionOutput *)jarg1; + argp2 = (GoUint64_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Coins = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__TransactionOutput_Coins_get(void * jarg1) { + void * jresult ; + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + GoUint64_ result; + + arg1 = (coin__TransactionOutput *)jarg1; + result = ((arg1)->Coins); + { + GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); + memmove(resultptr, &result, sizeof(GoUint64_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__TransactionOutput_Hours_set(void * jarg1, void * jarg2) { + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + GoUint64_ arg2 ; + GoUint64_ *argp2 ; + + arg1 = (coin__TransactionOutput *)jarg1; + argp2 = (GoUint64_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Hours = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__TransactionOutput_Hours_get(void * jarg1) { + void * jresult ; + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + GoUint64_ result; + + arg1 = (coin__TransactionOutput *)jarg1; + result = ((arg1)->Hours); + { + GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); + memmove(resultptr, &result, sizeof(GoUint64_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__TransactionOutput() { + void * jresult ; + coin__TransactionOutput *result = 0 ; + + result = (coin__TransactionOutput *)calloc(1, sizeof(coin__TransactionOutput)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__TransactionOutput(void * jarg1) { + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + + arg1 = (coin__TransactionOutput *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_isEqual(void * jarg1, void * jarg2) { + int jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + coin__BlockHeader *arg2 = (coin__BlockHeader *) 0 ; + int result; + + arg1 = (coin__BlockHeader *)jarg1; + arg2 = (coin__BlockHeader *)jarg2; + result = (int)coin__BlockHeader_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_Version_set(void * jarg1, void * jarg2) { + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint32_ arg2 ; + GoUint32_ *argp2 ; + + arg1 = (coin__BlockHeader *)jarg1; + argp2 = (GoUint32_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint32_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Version = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_Version_get(void * jarg1) { + void * jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint32_ result; + + arg1 = (coin__BlockHeader *)jarg1; + result = ((arg1)->Version); + { + GoUint32_ * resultptr = (GoUint32_ *) malloc(sizeof(GoUint32_)); + memmove(resultptr, &result, sizeof(GoUint32_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_Time_set(void * jarg1, void * jarg2) { + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint64_ arg2 ; + GoUint64_ *argp2 ; + + arg1 = (coin__BlockHeader *)jarg1; + argp2 = (GoUint64_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Time = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_Time_get(void * jarg1) { + void * jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint64_ result; + + arg1 = (coin__BlockHeader *)jarg1; + result = ((arg1)->Time); + { + GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); + memmove(resultptr, &result, sizeof(GoUint64_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_BkSeq_set(void * jarg1, void * jarg2) { + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint64_ arg2 ; + GoUint64_ *argp2 ; + + arg1 = (coin__BlockHeader *)jarg1; + argp2 = (GoUint64_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->BkSeq = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_BkSeq_get(void * jarg1) { + void * jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint64_ result; + + arg1 = (coin__BlockHeader *)jarg1; + result = ((arg1)->BkSeq); + { + GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); + memmove(resultptr, &result, sizeof(GoUint64_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_Fee_set(void * jarg1, void * jarg2) { + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint64_ arg2 ; + GoUint64_ *argp2 ; + + arg1 = (coin__BlockHeader *)jarg1; + argp2 = (GoUint64_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Fee = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_Fee_get(void * jarg1) { + void * jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint64_ result; + + arg1 = (coin__BlockHeader *)jarg1; + result = ((arg1)->Fee); + { + GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); + memmove(resultptr, &result, sizeof(GoUint64_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_PrevHash_set(void * jarg1, void * jarg2) { + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint8_ *arg2 ; + + arg1 = (coin__BlockHeader *)jarg1; + arg2 = (GoUint8_ *)jarg2; + { + size_t ii; + GoUint8_ *b = (GoUint8_ *) arg1->PrevHash; + for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_PrevHash_get(void * jarg1) { + void * jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint8_ *result = 0 ; + + arg1 = (coin__BlockHeader *)jarg1; + result = (GoUint8_ *) ((arg1)->PrevHash); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_BodyHash_set(void * jarg1, void * jarg2) { + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint8_ *arg2 ; + + arg1 = (coin__BlockHeader *)jarg1; + arg2 = (GoUint8_ *)jarg2; + { + size_t ii; + GoUint8_ *b = (GoUint8_ *) arg1->BodyHash; + for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_BodyHash_get(void * jarg1) { + void * jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint8_ *result = 0 ; + + arg1 = (coin__BlockHeader *)jarg1; + result = (GoUint8_ *) ((arg1)->BodyHash); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_UxHash_set(void * jarg1, void * jarg2) { + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint8_ *arg2 ; + + arg1 = (coin__BlockHeader *)jarg1; + arg2 = (GoUint8_ *)jarg2; + { + size_t ii; + GoUint8_ *b = (GoUint8_ *) arg1->UxHash; + for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_UxHash_get(void * jarg1) { + void * jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint8_ *result = 0 ; + + arg1 = (coin__BlockHeader *)jarg1; + result = (GoUint8_ *) ((arg1)->UxHash); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__BlockHeader() { + void * jresult ; + coin__BlockHeader *result = 0 ; + + result = (coin__BlockHeader *)calloc(1, sizeof(coin__BlockHeader)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__BlockHeader(void * jarg1) { + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + + arg1 = (coin__BlockHeader *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__BlockBody_isEqual(void * jarg1, void * jarg2) { + int jresult ; + coin__BlockBody *arg1 = (coin__BlockBody *) 0 ; + coin__BlockBody *arg2 = (coin__BlockBody *) 0 ; + int result; + + arg1 = (coin__BlockBody *)jarg1; + arg2 = (coin__BlockBody *)jarg2; + result = (int)coin__BlockBody_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockBody_Transactions_set(void * jarg1, void * jarg2) { + coin__BlockBody *arg1 = (coin__BlockBody *) 0 ; + coin__Transactions arg2 ; + coin__Transactions *argp2 ; + + arg1 = (coin__BlockBody *)jarg1; + argp2 = (coin__Transactions *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null coin__Transactions", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Transactions = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__BlockBody_Transactions_get(void * jarg1) { + void * jresult ; + coin__BlockBody *arg1 = (coin__BlockBody *) 0 ; + coin__Transactions result; + + arg1 = (coin__BlockBody *)jarg1; + result = ((arg1)->Transactions); + { + coin__Transactions * resultptr = (coin__Transactions *) malloc(sizeof(coin__Transactions)); + memmove(resultptr, &result, sizeof(coin__Transactions)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__BlockBody() { + void * jresult ; + coin__BlockBody *result = 0 ; + + result = (coin__BlockBody *)calloc(1, sizeof(coin__BlockBody)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__BlockBody(void * jarg1) { + coin__BlockBody *arg1 = (coin__BlockBody *) 0 ; + + arg1 = (coin__BlockBody *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__Block_Head_set(void * jarg1, void * jarg2) { + coin__Block *arg1 = (coin__Block *) 0 ; + coin__BlockHeader *arg2 = (coin__BlockHeader *) 0 ; + + arg1 = (coin__Block *)jarg1; + arg2 = (coin__BlockHeader *)jarg2; + if (arg1) (arg1)->Head = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Block_Head_get(void * jarg1) { + void * jresult ; + coin__Block *arg1 = (coin__Block *) 0 ; + coin__BlockHeader *result = 0 ; + + arg1 = (coin__Block *)jarg1; + result = (coin__BlockHeader *)& ((arg1)->Head); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__Block_Body_set(void * jarg1, void * jarg2) { + coin__Block *arg1 = (coin__Block *) 0 ; + coin__BlockBody *arg2 = (coin__BlockBody *) 0 ; + + arg1 = (coin__Block *)jarg1; + arg2 = (coin__BlockBody *)jarg2; + if (arg1) (arg1)->Body = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Block_Body_get(void * jarg1) { + void * jresult ; + coin__Block *arg1 = (coin__Block *) 0 ; + coin__BlockBody *result = 0 ; + + arg1 = (coin__Block *)jarg1; + result = (coin__BlockBody *)& ((arg1)->Body); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__Block() { + void * jresult ; + coin__Block *result = 0 ; + + result = (coin__Block *)calloc(1, sizeof(coin__Block)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__Block(void * jarg1) { + coin__Block *arg1 = (coin__Block *) 0 ; + + arg1 = (coin__Block *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__SignedBlock__unnamed_set(void * jarg1, void * jarg2) { + coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; + coin__Block *arg2 = (coin__Block *) 0 ; + + arg1 = (coin__SignedBlock *)jarg1; + arg2 = (coin__Block *)jarg2; + if (arg1) (arg1)->_unnamed = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__SignedBlock__unnamed_get(void * jarg1) { + void * jresult ; + coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; + coin__Block *result = 0 ; + + arg1 = (coin__SignedBlock *)jarg1; + result = (coin__Block *)& ((arg1)->_unnamed); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__SignedBlock_Sig_set(void * jarg1, void * jarg2) { + coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; + GoUint8_ *arg2 ; + + arg1 = (coin__SignedBlock *)jarg1; + arg2 = (GoUint8_ *)jarg2; + { + size_t ii; + GoUint8_ *b = (GoUint8_ *) arg1->Sig; + for (ii = 0; ii < (size_t)65; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__SignedBlock_Sig_get(void * jarg1) { + void * jresult ; + coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; + GoUint8_ *result = 0 ; + + arg1 = (coin__SignedBlock *)jarg1; + result = (GoUint8_ *) ((arg1)->Sig); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__SignedBlock() { + void * jresult ; + coin__SignedBlock *result = 0 ; + + result = (coin__SignedBlock *)calloc(1, sizeof(coin__SignedBlock)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__SignedBlock(void * jarg1) { + coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; + + arg1 = (coin__SignedBlock *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__UxHead_Time_set(void * jarg1, void * jarg2) { + coin__UxHead *arg1 = (coin__UxHead *) 0 ; + GoUint64_ arg2 ; + GoUint64_ *argp2 ; + + arg1 = (coin__UxHead *)jarg1; + argp2 = (GoUint64_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Time = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__UxHead_Time_get(void * jarg1) { + void * jresult ; + coin__UxHead *arg1 = (coin__UxHead *) 0 ; + GoUint64_ result; + + arg1 = (coin__UxHead *)jarg1; + result = ((arg1)->Time); + { + GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); + memmove(resultptr, &result, sizeof(GoUint64_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__UxHead_BkSeq_set(void * jarg1, void * jarg2) { + coin__UxHead *arg1 = (coin__UxHead *) 0 ; + GoUint64_ arg2 ; + GoUint64_ *argp2 ; + + arg1 = (coin__UxHead *)jarg1; + argp2 = (GoUint64_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->BkSeq = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__UxHead_BkSeq_get(void * jarg1) { + void * jresult ; + coin__UxHead *arg1 = (coin__UxHead *) 0 ; + GoUint64_ result; + + arg1 = (coin__UxHead *)jarg1; + result = ((arg1)->BkSeq); + { + GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); + memmove(resultptr, &result, sizeof(GoUint64_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__UxHead() { + void * jresult ; + coin__UxHead *result = 0 ; + + result = (coin__UxHead *)calloc(1, sizeof(coin__UxHead)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__UxHead(void * jarg1) { + coin__UxHead *arg1 = (coin__UxHead *) 0 ; + + arg1 = (coin__UxHead *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__UxBody_SrcTransaction_set(void * jarg1, void * jarg2) { + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + GoUint8_ *arg2 ; + + arg1 = (coin__UxBody *)jarg1; + arg2 = (GoUint8_ *)jarg2; + { + size_t ii; + GoUint8_ *b = (GoUint8_ *) arg1->SrcTransaction; + for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__UxBody_SrcTransaction_get(void * jarg1) { + void * jresult ; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + GoUint8_ *result = 0 ; + + arg1 = (coin__UxBody *)jarg1; + result = (GoUint8_ *) ((arg1)->SrcTransaction); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__UxBody_Address_set(void * jarg1, void * jarg2) { + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + + arg1 = (coin__UxBody *)jarg1; + arg2 = (cipher__Address *)jarg2; + if (arg1) (arg1)->Address = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__UxBody_Address_get(void * jarg1) { + void * jresult ; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + cipher__Address *result = 0 ; + + arg1 = (coin__UxBody *)jarg1; + result = (cipher__Address *)& ((arg1)->Address); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__UxBody_Coins_set(void * jarg1, void * jarg2) { + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + GoUint64_ arg2 ; + GoUint64_ *argp2 ; + + arg1 = (coin__UxBody *)jarg1; + argp2 = (GoUint64_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Coins = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__UxBody_Coins_get(void * jarg1) { + void * jresult ; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + GoUint64_ result; + + arg1 = (coin__UxBody *)jarg1; + result = ((arg1)->Coins); + { + GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); + memmove(resultptr, &result, sizeof(GoUint64_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__UxBody_Hours_set(void * jarg1, void * jarg2) { + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + GoUint64_ arg2 ; + GoUint64_ *argp2 ; + + arg1 = (coin__UxBody *)jarg1; + argp2 = (GoUint64_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Hours = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__UxBody_Hours_get(void * jarg1) { + void * jresult ; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + GoUint64_ result; + + arg1 = (coin__UxBody *)jarg1; + result = ((arg1)->Hours); + { + GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); + memmove(resultptr, &result, sizeof(GoUint64_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__UxBody() { + void * jresult ; + coin__UxBody *result = 0 ; + + result = (coin__UxBody *)calloc(1, sizeof(coin__UxBody)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__UxBody(void * jarg1) { + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + + arg1 = (coin__UxBody *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__UxOut_isEqual(void * jarg1, void * jarg2) { + int jresult ; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + coin__UxOut *arg2 = (coin__UxOut *) 0 ; + int result; + + arg1 = (coin__UxOut *)jarg1; + arg2 = (coin__UxOut *)jarg2; + result = (int)coin__UxOut_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__UxOut_Head_set(void * jarg1, void * jarg2) { + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + coin__UxHead *arg2 = (coin__UxHead *) 0 ; + + arg1 = (coin__UxOut *)jarg1; + arg2 = (coin__UxHead *)jarg2; + if (arg1) (arg1)->Head = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__UxOut_Head_get(void * jarg1) { + void * jresult ; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + coin__UxHead *result = 0 ; + + arg1 = (coin__UxOut *)jarg1; + result = (coin__UxHead *)& ((arg1)->Head); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__UxOut_Body_set(void * jarg1, void * jarg2) { + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + coin__UxBody *arg2 = (coin__UxBody *) 0 ; + + arg1 = (coin__UxOut *)jarg1; + arg2 = (coin__UxBody *)jarg2; + if (arg1) (arg1)->Body = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__UxOut_Body_get(void * jarg1) { + void * jresult ; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + coin__UxBody *result = 0 ; + + arg1 = (coin__UxOut *)jarg1; + result = (coin__UxBody *)& ((arg1)->Body); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__UxOut() { + void * jresult ; + coin__UxOut *result = 0 ; + + result = (coin__UxOut *)calloc(1, sizeof(coin__UxOut)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__UxOut(void * jarg1) { + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + + arg1 = (coin__UxOut *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Balance_Coins_set(void * jarg1, void * jarg2) { + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + GoUint64_ arg2 ; + GoUint64_ *argp2 ; + + arg1 = (wallet__Balance *)jarg1; + argp2 = (GoUint64_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Coins = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__Balance_Coins_get(void * jarg1) { + void * jresult ; + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + GoUint64_ result; + + arg1 = (wallet__Balance *)jarg1; + result = ((arg1)->Coins); + { + GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); + memmove(resultptr, &result, sizeof(GoUint64_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Balance_Hours_set(void * jarg1, void * jarg2) { + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + GoUint64_ arg2 ; + GoUint64_ *argp2 ; + + arg1 = (wallet__Balance *)jarg1; + argp2 = (GoUint64_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Hours = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__Balance_Hours_get(void * jarg1) { + void * jresult ; + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + GoUint64_ result; + + arg1 = (wallet__Balance *)jarg1; + result = ((arg1)->Hours); + { + GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); + memmove(resultptr, &result, sizeof(GoUint64_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_wallet__Balance() { + void * jresult ; + wallet__Balance *result = 0 ; + + result = (wallet__Balance *)calloc(1, sizeof(wallet__Balance)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__Balance(void * jarg1) { + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + + arg1 = (wallet__Balance *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__BalancePair_Confirmed_set(void * jarg1, void * jarg2) { + wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; + wallet__Balance *arg2 = (wallet__Balance *) 0 ; + + arg1 = (wallet__BalancePair *)jarg1; + arg2 = (wallet__Balance *)jarg2; + if (arg1) (arg1)->Confirmed = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__BalancePair_Confirmed_get(void * jarg1) { + void * jresult ; + wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; + wallet__Balance *result = 0 ; + + arg1 = (wallet__BalancePair *)jarg1; + result = (wallet__Balance *)& ((arg1)->Confirmed); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__BalancePair_Predicted_set(void * jarg1, void * jarg2) { + wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; + wallet__Balance *arg2 = (wallet__Balance *) 0 ; + + arg1 = (wallet__BalancePair *)jarg1; + arg2 = (wallet__Balance *)jarg2; + if (arg1) (arg1)->Predicted = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__BalancePair_Predicted_get(void * jarg1) { + void * jresult ; + wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; + wallet__Balance *result = 0 ; + + arg1 = (wallet__BalancePair *)jarg1; + result = (wallet__Balance *)& ((arg1)->Predicted); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_wallet__BalancePair() { + void * jresult ; + wallet__BalancePair *result = 0 ; + + result = (wallet__BalancePair *)calloc(1, sizeof(wallet__BalancePair)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__BalancePair(void * jarg1) { + wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; + + arg1 = (wallet__BalancePair *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Entry_Address_set(void * jarg1, void * jarg2) { + wallet__Entry *arg1 = (wallet__Entry *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + + arg1 = (wallet__Entry *)jarg1; + arg2 = (cipher__Address *)jarg2; + if (arg1) (arg1)->Address = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__Entry_Address_get(void * jarg1) { + void * jresult ; + wallet__Entry *arg1 = (wallet__Entry *) 0 ; + cipher__Address *result = 0 ; + + arg1 = (wallet__Entry *)jarg1; + result = (cipher__Address *)& ((arg1)->Address); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Entry_Public_set(void * jarg1, void * jarg2) { + wallet__Entry *arg1 = (wallet__Entry *) 0 ; + GoUint8_ *arg2 ; + + arg1 = (wallet__Entry *)jarg1; + arg2 = (GoUint8_ *)jarg2; + { + size_t ii; + GoUint8_ *b = (GoUint8_ *) arg1->Public; + for (ii = 0; ii < (size_t)33; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__Entry_Public_get(void * jarg1) { + void * jresult ; + wallet__Entry *arg1 = (wallet__Entry *) 0 ; + GoUint8_ *result = 0 ; + + arg1 = (wallet__Entry *)jarg1; + result = (GoUint8_ *) ((arg1)->Public); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Entry_Secret_set(void * jarg1, void * jarg2) { + wallet__Entry *arg1 = (wallet__Entry *) 0 ; + GoUint8_ *arg2 ; + + arg1 = (wallet__Entry *)jarg1; + arg2 = (GoUint8_ *)jarg2; + { + size_t ii; + GoUint8_ *b = (GoUint8_ *) arg1->Secret; + for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__Entry_Secret_get(void * jarg1) { + void * jresult ; + wallet__Entry *arg1 = (wallet__Entry *) 0 ; + GoUint8_ *result = 0 ; + + arg1 = (wallet__Entry *)jarg1; + result = (GoUint8_ *) ((arg1)->Secret); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_wallet__Entry() { + void * jresult ; + wallet__Entry *result = 0 ; + + result = (wallet__Entry *)calloc(1, sizeof(wallet__Entry)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__Entry(void * jarg1) { + wallet__Entry *arg1 = (wallet__Entry *) 0 ; + + arg1 = (wallet__Entry *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Note_TxID_set(void * jarg1, void * jarg2) { + wallet__Note *arg1 = (wallet__Note *) 0 ; + GoString_ arg2 ; + GoString_ *argp2 ; + + arg1 = (wallet__Note *)jarg1; + argp2 = (GoString_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->TxID = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__Note_TxID_get(void * jarg1) { + void * jresult ; + wallet__Note *arg1 = (wallet__Note *) 0 ; + GoString_ result; + + arg1 = (wallet__Note *)jarg1; + result = ((arg1)->TxID); + { + GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); + memmove(resultptr, &result, sizeof(GoString_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Note_Value_set(void * jarg1, void * jarg2) { + wallet__Note *arg1 = (wallet__Note *) 0 ; + GoString_ arg2 ; + GoString_ *argp2 ; + + arg1 = (wallet__Note *)jarg1; + argp2 = (GoString_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Value = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__Note_Value_get(void * jarg1) { + void * jresult ; + wallet__Note *arg1 = (wallet__Note *) 0 ; + GoString_ result; + + arg1 = (wallet__Note *)jarg1; + result = ((arg1)->Value); + { + GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); + memmove(resultptr, &result, sizeof(GoString_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_wallet__Note() { + void * jresult ; + wallet__Note *result = 0 ; + + result = (wallet__Note *)calloc(1, sizeof(wallet__Note)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__Note(void * jarg1) { + wallet__Note *arg1 = (wallet__Note *) 0 ; + + arg1 = (wallet__Note *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__ReadableNote_TransactionID_set(void * jarg1, void * jarg2) { + wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; + GoString_ arg2 ; + GoString_ *argp2 ; + + arg1 = (wallet__ReadableNote *)jarg1; + argp2 = (GoString_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->TransactionID = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__ReadableNote_TransactionID_get(void * jarg1) { + void * jresult ; + wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; + GoString_ result; + + arg1 = (wallet__ReadableNote *)jarg1; + result = ((arg1)->TransactionID); + { + GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); + memmove(resultptr, &result, sizeof(GoString_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__ReadableNote_ActualNote_set(void * jarg1, void * jarg2) { + wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; + GoString_ arg2 ; + GoString_ *argp2 ; + + arg1 = (wallet__ReadableNote *)jarg1; + argp2 = (GoString_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->ActualNote = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__ReadableNote_ActualNote_get(void * jarg1) { + void * jresult ; + wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; + GoString_ result; + + arg1 = (wallet__ReadableNote *)jarg1; + result = ((arg1)->ActualNote); + { + GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); + memmove(resultptr, &result, sizeof(GoString_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_wallet__ReadableNote() { + void * jresult ; + wallet__ReadableNote *result = 0 ; + + result = (wallet__ReadableNote *)calloc(1, sizeof(wallet__ReadableNote)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__ReadableNote(void * jarg1) { + wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; + + arg1 = (wallet__ReadableNote *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Wallet_Meta_set(void * jarg1, void * jarg2) { + wallet__Wallet *arg1 = (wallet__Wallet *) 0 ; + GoMap_ arg2 ; + GoMap_ *argp2 ; + + arg1 = (wallet__Wallet *)jarg1; + argp2 = (GoMap_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoMap_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Meta = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__Wallet_Meta_get(void * jarg1) { + void * jresult ; + wallet__Wallet *arg1 = (wallet__Wallet *) 0 ; + GoMap_ result; + + arg1 = (wallet__Wallet *)jarg1; + result = ((arg1)->Meta); + { + GoMap_ * resultptr = (GoMap_ *) malloc(sizeof(GoMap_)); + memmove(resultptr, &result, sizeof(GoMap_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Wallet_Entries_set(void * jarg1, void * jarg2) { + wallet__Wallet *arg1 = (wallet__Wallet *) 0 ; + GoSlice_ arg2 ; + GoSlice_ *argp2 ; + + arg1 = (wallet__Wallet *)jarg1; + argp2 = (GoSlice_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Entries = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__Wallet_Entries_get(void * jarg1) { + void * jresult ; + wallet__Wallet *arg1 = (wallet__Wallet *) 0 ; + GoSlice_ result; + + arg1 = (wallet__Wallet *)jarg1; + result = ((arg1)->Entries); + { + GoSlice_ * resultptr = (GoSlice_ *) malloc(sizeof(GoSlice_)); + memmove(resultptr, &result, sizeof(GoSlice_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_wallet__Wallet() { + void * jresult ; + wallet__Wallet *result = 0 ; + + result = (wallet__Wallet *)calloc(1, sizeof(wallet__Wallet)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__Wallet(void * jarg1) { + wallet__Wallet *arg1 = (wallet__Wallet *) 0 ; + + arg1 = (wallet__Wallet *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_Hash_set(void * jarg1, void * jarg2) { + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + GoUint8_ *arg2 ; + + arg1 = (wallet__UxBalance *)jarg1; + arg2 = (GoUint8_ *)jarg2; + { + size_t ii; + GoUint8_ *b = (GoUint8_ *) arg1->Hash; + for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_Hash_get(void * jarg1) { + void * jresult ; + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + GoUint8_ *result = 0 ; + + arg1 = (wallet__UxBalance *)jarg1; + result = (GoUint8_ *) ((arg1)->Hash); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_BkSeq_set(void * jarg1, void * jarg2) { + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + GoInt64_ arg2 ; + GoInt64_ *argp2 ; + + arg1 = (wallet__UxBalance *)jarg1; + argp2 = (GoInt64_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt64_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->BkSeq = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_BkSeq_get(void * jarg1) { + void * jresult ; + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + GoInt64_ result; + + arg1 = (wallet__UxBalance *)jarg1; + result = ((arg1)->BkSeq); + { + GoInt64_ * resultptr = (GoInt64_ *) malloc(sizeof(GoInt64_)); + memmove(resultptr, &result, sizeof(GoInt64_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_Address_set(void * jarg1, void * jarg2) { + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + + arg1 = (wallet__UxBalance *)jarg1; + arg2 = (cipher__Address *)jarg2; + if (arg1) (arg1)->Address = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_Address_get(void * jarg1) { + void * jresult ; + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + cipher__Address *result = 0 ; + + arg1 = (wallet__UxBalance *)jarg1; + result = (cipher__Address *)& ((arg1)->Address); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_Coins_set(void * jarg1, void * jarg2) { + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + GoInt64_ arg2 ; + GoInt64_ *argp2 ; + + arg1 = (wallet__UxBalance *)jarg1; + argp2 = (GoInt64_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt64_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Coins = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_Coins_get(void * jarg1) { + void * jresult ; + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + GoInt64_ result; + + arg1 = (wallet__UxBalance *)jarg1; + result = ((arg1)->Coins); + { + GoInt64_ * resultptr = (GoInt64_ *) malloc(sizeof(GoInt64_)); + memmove(resultptr, &result, sizeof(GoInt64_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_Hours_set(void * jarg1, void * jarg2) { + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + GoInt64_ arg2 ; + GoInt64_ *argp2 ; + + arg1 = (wallet__UxBalance *)jarg1; + argp2 = (GoInt64_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt64_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Hours = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_Hours_get(void * jarg1) { + void * jresult ; + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + GoInt64_ result; + + arg1 = (wallet__UxBalance *)jarg1; + result = ((arg1)->Hours); + { + GoInt64_ * resultptr = (GoInt64_ *) malloc(sizeof(GoInt64_)); + memmove(resultptr, &result, sizeof(GoInt64_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_wallet__UxBalance() { + void * jresult ; + wallet__UxBalance *result = 0 ; + + result = (wallet__UxBalance *)calloc(1, sizeof(wallet__UxBalance)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__UxBalance(void * jarg1) { + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + + arg1 = (wallet__UxBalance *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_api__RichlistParams_N_set(void * jarg1, void * jarg2) { + api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; + GoInt_ arg2 ; + GoInt_ *argp2 ; + + arg1 = (api__RichlistParams *)jarg1; + argp2 = (GoInt_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->N = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_api__RichlistParams_N_get(void * jarg1) { + void * jresult ; + api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; + GoInt_ result; + + arg1 = (api__RichlistParams *)jarg1; + result = ((arg1)->N); + { + GoInt_ * resultptr = (GoInt_ *) malloc(sizeof(GoInt_)); + memmove(resultptr, &result, sizeof(GoInt_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_api__RichlistParams_IncludeDistribution_set(void * jarg1, void * jarg2) { + api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; + BOOL arg2 ; + BOOL *argp2 ; + + arg1 = (api__RichlistParams *)jarg1; + argp2 = (BOOL *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null BOOL", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->IncludeDistribution = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_api__RichlistParams_IncludeDistribution_get(void * jarg1) { + void * jresult ; + api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; + BOOL result; + + arg1 = (api__RichlistParams *)jarg1; + result = ((arg1)->IncludeDistribution); + { + BOOL * resultptr = (BOOL *) malloc(sizeof(BOOL)); + memmove(resultptr, &result, sizeof(BOOL)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_api__RichlistParams() { + void * jresult ; + api__RichlistParams *result = 0 ; + + result = (api__RichlistParams *)calloc(1, sizeof(api__RichlistParams)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_api__RichlistParams(void * jarg1) { + api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; + + arg1 = (api__RichlistParams *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cli__SendAmount_Addr_set(void * jarg1, void * jarg2) { + cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; + GoString_ arg2 ; + GoString_ *argp2 ; + + arg1 = (cli__SendAmount *)jarg1; + argp2 = (GoString_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Addr = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cli__SendAmount_Addr_get(void * jarg1) { + void * jresult ; + cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; + GoString_ result; + + arg1 = (cli__SendAmount *)jarg1; + result = ((arg1)->Addr); + { + GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); + memmove(resultptr, &result, sizeof(GoString_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cli__SendAmount_Coins_set(void * jarg1, void * jarg2) { + cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; + GoInt64_ arg2 ; + GoInt64_ *argp2 ; + + arg1 = (cli__SendAmount *)jarg1; + argp2 = (GoInt64_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt64_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Coins = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cli__SendAmount_Coins_get(void * jarg1) { + void * jresult ; + cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; + GoInt64_ result; + + arg1 = (cli__SendAmount *)jarg1; + result = ((arg1)->Coins); + { + GoInt64_ * resultptr = (GoInt64_ *) malloc(sizeof(GoInt64_)); + memmove(resultptr, &result, sizeof(GoInt64_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cli__SendAmount() { + void * jresult ; + cli__SendAmount *result = 0 ; + + result = (cli__SendAmount *)calloc(1, sizeof(cli__SendAmount)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cli__SendAmount(void * jarg1) { + cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; + + arg1 = (cli__SendAmount *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_httphelper__Address__unnamed_set(void * jarg1, void * jarg2) { + httphelper__Address *arg1 = (httphelper__Address *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + + arg1 = (httphelper__Address *)jarg1; + arg2 = (cipher__Address *)jarg2; + if (arg1) (arg1)->_unnamed = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_httphelper__Address__unnamed_get(void * jarg1) { + void * jresult ; + httphelper__Address *arg1 = (httphelper__Address *) 0 ; + cipher__Address *result = 0 ; + + arg1 = (httphelper__Address *)jarg1; + result = (cipher__Address *)& ((arg1)->_unnamed); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_httphelper__Address() { + void * jresult ; + httphelper__Address *result = 0 ; + + result = (httphelper__Address *)calloc(1, sizeof(httphelper__Address)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_httphelper__Address(void * jarg1) { + httphelper__Address *arg1 = (httphelper__Address *) 0 ; + + arg1 = (httphelper__Address *)jarg1; + free((char *) arg1); +} + + +#ifdef __cplusplus +} +#endif + diff --git a/LibskycoinNet/skycoin1/wallet__Balance.cs b/LibskycoinNet/skycoin1/wallet__Balance.cs new file mode 100644 index 00000000..a5b5d0bb --- /dev/null +++ b/LibskycoinNet/skycoin1/wallet__Balance.cs @@ -0,0 +1,72 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class wallet__Balance : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal wallet__Balance(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(wallet__Balance obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~wallet__Balance() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_wallet__Balance(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_GoUint64_ Coins { + set { + skycoinPINVOKE.wallet__Balance_Coins_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.wallet__Balance_Coins_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoUint64_ Hours { + set { + skycoinPINVOKE.wallet__Balance_Hours_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.wallet__Balance_Hours_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public wallet__Balance() : this(skycoinPINVOKE.new_wallet__Balance(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin1/wallet__BalancePair.cs b/LibskycoinNet/skycoin1/wallet__BalancePair.cs new file mode 100644 index 00000000..98834e3d --- /dev/null +++ b/LibskycoinNet/skycoin1/wallet__BalancePair.cs @@ -0,0 +1,70 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class wallet__BalancePair : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal wallet__BalancePair(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(wallet__BalancePair obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~wallet__BalancePair() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_wallet__BalancePair(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public wallet__Balance Confirmed { + set { + skycoinPINVOKE.wallet__BalancePair_Confirmed_set(swigCPtr, wallet__Balance.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.wallet__BalancePair_Confirmed_get(swigCPtr); + wallet__Balance ret = (cPtr == global::System.IntPtr.Zero) ? null : new wallet__Balance(cPtr, false); + return ret; + } + } + + public wallet__Balance Predicted { + set { + skycoinPINVOKE.wallet__BalancePair_Predicted_set(swigCPtr, wallet__Balance.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.wallet__BalancePair_Predicted_get(swigCPtr); + wallet__Balance ret = (cPtr == global::System.IntPtr.Zero) ? null : new wallet__Balance(cPtr, false); + return ret; + } + } + + public wallet__BalancePair() : this(skycoinPINVOKE.new_wallet__BalancePair(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin1/wallet__Entry.cs b/LibskycoinNet/skycoin1/wallet__Entry.cs new file mode 100644 index 00000000..6431c810 --- /dev/null +++ b/LibskycoinNet/skycoin1/wallet__Entry.cs @@ -0,0 +1,81 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class wallet__Entry : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal wallet__Entry(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(wallet__Entry obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~wallet__Entry() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_wallet__Entry(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public cipher__Address Address { + set { + skycoinPINVOKE.wallet__Entry_Address_set(swigCPtr, cipher__Address.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.wallet__Entry_Address_get(swigCPtr); + cipher__Address ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher__Address(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_GoUint8_ Public { + set { + skycoinPINVOKE.wallet__Entry_Public_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.wallet__Entry_Public_get(swigCPtr); + SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_GoUint8_ Secret { + set { + skycoinPINVOKE.wallet__Entry_Secret_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.wallet__Entry_Secret_get(swigCPtr); + SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); + return ret; + } + } + + public wallet__Entry() : this(skycoinPINVOKE.new_wallet__Entry(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin1/wallet__Note.cs b/LibskycoinNet/skycoin1/wallet__Note.cs new file mode 100644 index 00000000..35f5853b --- /dev/null +++ b/LibskycoinNet/skycoin1/wallet__Note.cs @@ -0,0 +1,72 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class wallet__Note : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal wallet__Note(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(wallet__Note obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~wallet__Note() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_wallet__Note(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_GoString_ TxID { + set { + skycoinPINVOKE.wallet__Note_TxID_set(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.wallet__Note_TxID_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoString_ Value { + set { + skycoinPINVOKE.wallet__Note_Value_set(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.wallet__Note_Value_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public wallet__Note() : this(skycoinPINVOKE.new_wallet__Note(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin1/wallet__ReadableNote.cs b/LibskycoinNet/skycoin1/wallet__ReadableNote.cs new file mode 100644 index 00000000..62e0d103 --- /dev/null +++ b/LibskycoinNet/skycoin1/wallet__ReadableNote.cs @@ -0,0 +1,72 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class wallet__ReadableNote : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal wallet__ReadableNote(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(wallet__ReadableNote obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~wallet__ReadableNote() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_wallet__ReadableNote(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_GoString_ TransactionID { + set { + skycoinPINVOKE.wallet__ReadableNote_TransactionID_set(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.wallet__ReadableNote_TransactionID_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoString_ ActualNote { + set { + skycoinPINVOKE.wallet__ReadableNote_ActualNote_set(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.wallet__ReadableNote_ActualNote_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public wallet__ReadableNote() : this(skycoinPINVOKE.new_wallet__ReadableNote(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin1/wallet__UxBalance.cs b/LibskycoinNet/skycoin1/wallet__UxBalance.cs new file mode 100644 index 00000000..478a94bc --- /dev/null +++ b/LibskycoinNet/skycoin1/wallet__UxBalance.cs @@ -0,0 +1,106 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class wallet__UxBalance : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal wallet__UxBalance(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(wallet__UxBalance obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~wallet__UxBalance() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_wallet__UxBalance(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_GoUint8_ Hash { + set { + skycoinPINVOKE.wallet__UxBalance_Hash_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.wallet__UxBalance_Hash_get(swigCPtr); + SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_GoInt64_ BkSeq { + set { + skycoinPINVOKE.wallet__UxBalance_BkSeq_set(swigCPtr, SWIGTYPE_p_GoInt64_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoInt64_ ret = new SWIGTYPE_p_GoInt64_(skycoinPINVOKE.wallet__UxBalance_BkSeq_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public cipher__Address Address { + set { + skycoinPINVOKE.wallet__UxBalance_Address_set(swigCPtr, cipher__Address.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.wallet__UxBalance_Address_get(swigCPtr); + cipher__Address ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher__Address(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_GoInt64_ Coins { + set { + skycoinPINVOKE.wallet__UxBalance_Coins_set(swigCPtr, SWIGTYPE_p_GoInt64_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoInt64_ ret = new SWIGTYPE_p_GoInt64_(skycoinPINVOKE.wallet__UxBalance_Coins_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoInt64_ Hours { + set { + skycoinPINVOKE.wallet__UxBalance_Hours_set(swigCPtr, SWIGTYPE_p_GoInt64_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoInt64_ ret = new SWIGTYPE_p_GoInt64_(skycoinPINVOKE.wallet__UxBalance_Hours_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public wallet__UxBalance() : this(skycoinPINVOKE.new_wallet__UxBalance(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin1/wallet__Wallet.cs b/LibskycoinNet/skycoin1/wallet__Wallet.cs new file mode 100644 index 00000000..ba19252a --- /dev/null +++ b/LibskycoinNet/skycoin1/wallet__Wallet.cs @@ -0,0 +1,72 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class wallet__Wallet : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal wallet__Wallet(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(wallet__Wallet obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~wallet__Wallet() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_wallet__Wallet(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_GoMap_ Meta { + set { + skycoinPINVOKE.wallet__Wallet_Meta_set(swigCPtr, SWIGTYPE_p_GoMap_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoMap_ ret = new SWIGTYPE_p_GoMap_(skycoinPINVOKE.wallet__Wallet_Meta_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoSlice_ Entries { + set { + skycoinPINVOKE.wallet__Wallet_Entries_set(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.wallet__Wallet_Entries_get(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public wallet__Wallet() : this(skycoinPINVOKE.new_wallet__Wallet(), true) { + } + +} + +} diff --git a/LibskycoinNetTest/LibskycoinNetTest.cs b/LibskycoinNetTest/LibskycoinNetTest.cs index 676eb618..829c1b88 100644 --- a/LibskycoinNetTest/LibskycoinNetTest.cs +++ b/LibskycoinNetTest/LibskycoinNetTest.cs @@ -1,25 +1,20 @@ using System; -using skycoin; -using NUnit.Framework; using System.IO; +using NUnit.Framework; +using skycoin; -namespace LibskycoinNetTest -{ - [TestFixture] - public class LibskycoinNetTest - { - public LibskycoinNetTest() - { - } +namespace LibskycoinNetTest { + [TestFixture] + public class LibskycoinNetTest { + public LibskycoinNetTest () { } [Test] - public void SumTest(){ - var xyz = new skycoin.secp256k1go__XYZ(); - var xy = new skycoin.secp256k1go__XY(); - uint error = skycoin.skycoin.SKY_secp256k1go_XYZ_SetXY(xyz, xy); - Assert.AreEqual(error, 0); - } - } - + public void SumTest () { + var xyz = new skycoin.secp256k1go__XYZ(); + var xy = new skycoin.secp256k1go__XY (); + uint error = skycoin.skycoin.SKY_secp256k1go_XYZ_SetXY (xyz, xy); + Assert.AreEqual (error, 0); -} + } + } +} \ No newline at end of file diff --git a/LibskycoinNetTest/LibskycoinNetTest.csproj b/LibskycoinNetTest/LibskycoinNetTest.csproj index 7ae19e55..797c17e5 100644 --- a/LibskycoinNetTest/LibskycoinNetTest.csproj +++ b/LibskycoinNetTest/LibskycoinNetTest.csproj @@ -35,7 +35,6 @@ - diff --git a/LibskycoinNetTest/check_cipher_address.cs b/LibskycoinNetTest/check_cipher_address.cs index 61a10169..c54de4a9 100644 --- a/LibskycoinNetTest/check_cipher_address.cs +++ b/LibskycoinNetTest/check_cipher_address.cs @@ -6,11 +6,11 @@ namespace LibskycoinNetTest { public class check_cipher_address { [Test ()] public void TestDecodeBase58Address () { - var p = new skycoin.cipher_PubKey (); - var s = new skycoin.cipher_SecKey (); - uint err = 0; - Assert.AreEqual (err, 0); - Assert.AreEqual (err, 0); + // var s = new skycoin.cipher_SecKey (); + // SWIGTYPE_p_a_33__GoUint8_ p = skycoin.skycoin.new_cipher_PubKeyp (); + // uint err = 0; + // Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + // err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); } } diff --git a/LibskycoinNetTest/cipher_address.cs b/LibskycoinNetTest/cipher_address.cs deleted file mode 100644 index bc0da155..00000000 --- a/LibskycoinNetTest/cipher_address.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System; -using NUnit.Framework; -using skycoin; -namespace LibskycoinNetTest { - [TestFixture ()] - public class cipher_address { - [Test ()] - public void TestCase () { - var addr = new skycoin.secp256k1go__XY(); - Assert.AreEqual (null, null); - - } - } -} \ No newline at end of file diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index c8e1a1db..e6839b52 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit c8e1a1dbb617d154ddbc1ec6fd67be7c60594bab +Subproject commit e6839b52cc38eb56767c263b20d9145f4adbdcaa diff --git a/swig/include/libskycoin.h b/swig/include/libskycoin.h index fcb055c9..c5bf31dd 100644 --- a/swig/include/libskycoin.h +++ b/swig/include/libskycoin.h @@ -1,4 +1,4 @@ -/* Created by "go tool cgo" - DO NOT EDIT. */ +/* Code generated by cmd/cgo; DO NOT EDIT. */ /* package command-line-arguments */ @@ -17,7 +17,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; /* Start of preamble from import "C" comments. */ -#line 12 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/coin.block.go" +#line 12 "coin.block.go" #include @@ -28,7 +28,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.go-bip39.bip39.go" +#line 10 "cipher.go-bip39.bip39.go" #include @@ -38,7 +38,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 9 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/api.client.go" +#line 9 "api.client.go" #include @@ -48,7 +48,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.secp256k1-go.secp256k1-go2.xy.go" +#line 10 "cipher.secp256k1-go.secp256k1-go2.xy.go" #include @@ -58,7 +58,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 5 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/api.wallet.go" +#line 5 "api.wallet.go" #include @@ -68,7 +68,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 12 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/api.spend.go" +#line 12 "api.spend.go" #include @@ -78,7 +78,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 12 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet.wallet.go" +#line 12 "wallet.wallet.go" #include @@ -88,7 +88,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 9 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli.check_balance.go" +#line 9 "cli.check_balance.go" #include @@ -98,7 +98,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 9 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet.notes.go" +#line 9 "wallet.readable.go" #include @@ -108,7 +108,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 9 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet.readable.go" +#line 10 "cipher.secp256k1-go.secp256k1-go2.ec.go" #include @@ -118,7 +118,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.secp256k1-go.secp256k1-go2.ec.go" +#line 10 "cipher.base58.base58.go" #include @@ -128,7 +128,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.base58.base58.go" +#line 7 "cli.generate_wallet.go" #include @@ -138,7 +138,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 7 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli.generate_wallet.go" +#line 10 "api.webrpc.client.go" #include @@ -148,7 +148,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/api.webrpc.client.go" +#line 5 "util.browser.browser.go" #include @@ -158,7 +158,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 5 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.browser.browser.go" +#line 5 "util.iputil.iputil.go" #include @@ -168,7 +168,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 5 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.iputil.iputil.go" +#line 9 "cipher.encoder.field.go" #include @@ -178,7 +178,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 9 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.encoder.field.go" +#line 10 "cipher.secp256k1-go.secp256_rand.go" #include @@ -188,7 +188,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.secp256k1-go.secp256_rand.go" +#line 11 "cli.generate_addrs.go" #include @@ -198,7 +198,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 11 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli.generate_addrs.go" +#line 5 "coin.math.go" #include @@ -208,7 +208,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 5 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/coin.math.go" +#line 10 "cipher.crypto.go" #include @@ -218,7 +218,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.crypto.go" +#line 10 "cipher.secp256k1-go.secp256k1-go2.sig.go" #include @@ -228,7 +228,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.secp256k1-go.secp256k1-go2.sig.go" +#line 9 "cli_helper.go" #include @@ -238,7 +238,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 9 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli_helper.go" +#line 9 "cipher.poly1305.poly1305.go" #include @@ -248,7 +248,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 9 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.poly1305.poly1305.go" +#line 10 "wallet.balance.go" #include @@ -258,7 +258,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet.balance.go" +#line 5 "util.utc.utc.go" #include @@ -268,7 +268,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 5 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.utc.utc.go" +#line 10 "util.http.json.go" #include @@ -278,7 +278,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.http.json.go" +#line 9 "wallet.entry.go" #include @@ -288,7 +288,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 9 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet.entry.go" +#line 10 "wallet.addresses.go" #include @@ -298,7 +298,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet.addresses.go" +#line 9 "cipher.secp256k1-go.secp256k1-go2.xyz.go" #include @@ -308,7 +308,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 9 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.secp256k1-go.secp256k1-go2.xyz.go" +#line 10 "cipher.encrypt.sha256xor.go" #include @@ -318,7 +318,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.encrypt.sha256xor.go" +#line 5 "util.droplet.droplet.go" #include @@ -328,7 +328,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 5 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.droplet.droplet.go" +#line 7 "wallet.crypto.go" #include @@ -338,17 +338,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 7 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet.crypto.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - -#line 3 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/libsky_handle.go" +#line 3 "libsky_handle.go" #include @@ -359,7 +349,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 5 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.logging.logging.go" +#line 5 "util.logging.logging.go" #include @@ -369,7 +359,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 3 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/libsky_map.go" +#line 3 "libsky_map.go" #include @@ -379,7 +369,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.address.go" +#line 10 "cipher.address.go" #include @@ -390,7 +380,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 3 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/libsky_handle_helper.go" +#line 3 "libsky_handle_helper.go" #include @@ -401,7 +391,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.ripemd160.ripemd160.go" +#line 10 "cipher.ripemd160.ripemd160.go" #include @@ -411,7 +401,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 9 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.secp256k1-go.secp256k1-go2.num.go" +#line 9 "cipher.secp256k1-go.secp256k1-go2.num.go" #include @@ -421,7 +411,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 11 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/coin.outputs.go" +#line 11 "coin.outputs.go" #include @@ -431,7 +421,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.encrypt.scrypt_chacha20poly1305.go" +#line 10 "cipher.encrypt.scrypt_chacha20poly1305.go" #include @@ -441,7 +431,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 7 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/wallet_option.go" +#line 7 "wallet_option.go" #include #include @@ -450,7 +440,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 7 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli.add_private_key.go" +#line 7 "cli.add_private_key.go" #include @@ -460,7 +450,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.secp256k1-go.secp256k1.go" +#line 10 "cipher.secp256k1-go.secp256k1.go" #include @@ -470,7 +460,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 5 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.apputil.apputil.go" +#line 5 "util.apputil.apputil.go" #include @@ -480,7 +470,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 5 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.cert.cert.go" +#line 5 "util.cert.cert.go" #include @@ -490,7 +480,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.fee.fee.go" +#line 10 "util.fee.fee.go" #include @@ -500,7 +490,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 11 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli.cli.go" +#line 11 "cli.cli.go" #include @@ -510,7 +500,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 12 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli.create_rawtx.go" +#line 12 "cli.create_rawtx.go" #include @@ -520,7 +510,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 5 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/util.file.file.go" +#line 5 "util.file.file.go" #include @@ -530,7 +520,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 7 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cli.outputs.go" +#line 7 "cli.outputs.go" #include @@ -540,7 +530,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 9 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/testutil.testutil.go" +#line 9 "testutil.testutil.go" #include @@ -550,7 +540,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 9 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.secp256k1-go.secp256k1-go2.field.go" +#line 9 "cipher.secp256k1-go.secp256k1-go2.field.go" #include @@ -560,7 +550,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.scrypt.scrypt.go" +#line 10 "cipher.scrypt.scrypt.go" #include @@ -570,7 +560,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/cipher.hash.go" +#line 10 "cipher.hash.go" #include @@ -580,7 +570,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 12 "/home/maykel/go/src/github.com/skycoin/libskycoin-dotnet/gopath/src/github.com/skycoin/skycoin/lib/cgo/coin.transactions.go" +#line 12 "coin.transactions.go" #include @@ -636,6 +626,8 @@ extern "C" { #endif +// nolint nakedret + extern GoUint32 SKY_coin_NewBlock(Block__Handle p0, GoUint64 p1, cipher__SHA256* p2, Transactions__Handle p3, FeeCalculator* p4, Block__Handle* p5); extern GoUint32 SKY_coin_SignedBlock_VerifySignature(coin__SignedBlock* p0, cipher__PubKey* p1); @@ -710,9 +702,9 @@ extern GoUint32 SKY_api_Client_BlockByHash(Client__Handle p0, GoString p1, Handl extern GoUint32 SKY_api_Client_BlockBySeq(Client__Handle p0, GoUint64 p1, Handle* p2); -extern GoUint32 SKY_api_Client_Blocks(Client__Handle p0, GoInt p1, GoInt p2, Handle* p3); +extern GoUint32 SKY_api_Client_Blocks(Client__Handle p0, GoUint64 p1, GoUint64 p2, Handle* p3); -extern GoUint32 SKY_api_Client_LastBlocks(Client__Handle p0, GoInt p1, Handle* p2); +extern GoUint32 SKY_api_Client_LastBlocks(Client__Handle p0, GoUint64 p1, Handle* p2); extern GoUint32 SKY_api_Client_BlockchainMetadata(Client__Handle p0, Handle* p1); @@ -740,8 +732,6 @@ extern GoUint32 SKY_api_Client_Spend(Client__Handle p0, GoString p1, GoString p2 extern GoUint32 SKY_api_Client_CreateTransaction(Client__Handle p0, Handle* p1, CreateTransactionResponse__Handle* p2); -extern GoUint32 SKY_api_Client_WalletTransactions(Client__Handle p0, GoString p1, Handle* p2); - extern GoUint32 SKY_api_Client_UpdateWallet(Client__Handle p0, GoString p1, GoString p2); extern GoUint32 SKY_api_Client_WalletFolderName(Client__Handle p0, Handle* p1); @@ -770,7 +760,7 @@ extern GoUint32 SKY_api_Client_ConfirmedTransactions(Client__Handle p0, GoSlice extern GoUint32 SKY_api_Client_UnconfirmedTransactions(Client__Handle p0, GoSlice p1, Handle* p2); -extern GoUint32 SKY_api_Client_InjectTransaction(Client__Handle p0, GoString p1, GoString_* p2); +extern GoUint32 SKY_api_Client_InjectTransaction(Client__Handle p0, Transaction__Handle p1, GoString_* p2); extern GoUint32 SKY_api_Client_ResendUnconfirmedTransactions(Client__Handle p0, Handle* p1); @@ -872,32 +862,6 @@ extern GoUint32 SKY_cli_CheckWalletBalance(WebRpcClient__Handle p0, GoString p1, extern GoUint32 SKY_cli_GetBalanceOfAddresses(WebRpcClient__Handle p0, GoSlice p1, BalanceResult_Handle* p2); -extern GoUint32 SKY_wallet_NewNotesFilename(GoString_* p0); - -extern GoUint32 SKY_wallet_LoadNotes(GoString p0, WalletNotes_Handle* p1); - -extern GoUint32 SKY_wallet_LoadReadableNotes(GoString p0, WalletReadableNotes_Handle* p1); - -extern GoUint32 SKY_wallet_ReadableNotes_Load(WalletReadableNotes_Handle p0, GoString p1); - -extern GoUint32 SKY_wallet_ReadableNotes_ToNotes(WalletReadableNotes_Handle p0, WalletNotes_Handle* p1); - -extern GoUint32 SKY_wallet_ReadableNotes_Save(WalletReadableNotes_Handle p0, GoString p1); - -extern GoUint32 SKY_wallet_NewReadableNote(wallet__Note* p0, wallet__ReadableNote* p1); - -extern GoUint32 SKY_wallet_NewReadableNotesFromNotes(WalletNotes_Handle p0, WalletReadableNotes_Handle* p1); - -extern GoUint32 SKY_wallet_Notes_Save(WalletNotes_Handle p0, GoString p1, GoString p2); - -extern GoUint32 SKY_wallet_Notes_SaveNote(WalletNotes_Handle p0, GoString p1, wallet__Note* p2); - -extern GoUint32 SKY_wallet_Notes_ToReadable(WalletNotes_Handle p0, WalletReadableNotes_Handle* p1); - -extern GoUint32 SKY_wallet_NotesFileExist(GoString p0, GoUint8* p1); - -extern GoUint32 SKY_wallet_CreateNoteFileIfNotExist(GoString p0); - extern GoUint32 SKY_wallet_NewReadableEntry(wallet__Entry* p0, ReadableEntry__Handle* p1); extern GoUint32 SKY_wallet_LoadReadableEntry(GoString p0, ReadableEntry__Handle* p1); @@ -958,10 +922,6 @@ extern GoUint32 SKY_webrpc_NewClient(GoString p0, WebRpcClient__Handle* p1); extern GoUint32 SKY_webrpc_Client_CSRF(WebRpcClient__Handle p0, GoString_* p1); -extern GoUint32 SKY_webrpc_Client_GetUnspentOutputs(WebRpcClient__Handle p0, GoSlice p1, OutputsResult_Handle* p2); - -extern GoUint32 SKY_webrpc_Client_InjectTransactionString(WebRpcClient__Handle p0, GoString p1, GoString_* p2); - extern GoUint32 SKY_webrpc_Client_InjectTransaction(WebRpcClient__Handle p0, Transaction__Handle p1, GoString_* p2); extern GoUint32 SKY_webrpc_Client_GetStatus(WebRpcClient__Handle p0, StatusResult_Handle* p1); @@ -1006,9 +966,9 @@ extern GoUint32 SKY_coin_Uint64ToInt64(GoUint64 p0, GoInt64* p1); extern GoUint32 SKY_coin_Int64ToUint64(GoInt64 p0, GoUint64* p1); -extern GoInt SKY_cipher_PubKeySlice_Len(coin__UxArray* p0); +extern GoUint32 SKY_cipher_PubKeySlice_Len(coin__UxArray* p0, GoInt* p1); -extern GoUint8 SKY_cipher_PubKeySlice_Less(coin__UxArray* p0, GoInt p1, GoInt p2); +extern GoUint32 SKY_cipher_PubKeySlice_Less(coin__UxArray* p0, GoInt p1, GoInt p2, GoUint8* p3); extern GoUint32 SKY_cipher_PubKeySlice_Swap(coin__UxArray* p0, GoInt p1, GoInt p2); @@ -1016,8 +976,6 @@ extern GoUint32 SKY_cipher_RandByte(GoInt p0, coin__UxArray* p1); extern GoUint32 SKY_cipher_NewPubKey(GoSlice p0, cipher__PubKey* p1); -extern GoUint32 SKY_cipher_MustPubKeyFromHex(GoString p0, cipher__PubKey* p1); - extern GoUint32 SKY_cipher_PubKeyFromHex(GoString p0, cipher__PubKey* p1); extern GoUint32 SKY_cipher_PubKeyFromSecKey(cipher__SecKey* p0, cipher__PubKey* p1); @@ -1032,8 +990,6 @@ extern GoUint32 SKY_cipher_PubKey_ToAddressHash(cipher__PubKey* p0, cipher__Ripe extern GoUint32 SKY_cipher_NewSecKey(GoSlice p0, cipher__SecKey* p1); -extern GoUint32 SKY_cipher_MustSecKeyFromHex(GoString p0, cipher__SecKey* p1); - extern GoUint32 SKY_cipher_SecKeyFromHex(GoString p0, cipher__SecKey* p1); extern GoUint32 SKY_cipher_SecKey_Verify(cipher__SecKey* p0); @@ -1044,8 +1000,6 @@ extern GoUint32 SKY_cipher_ECDH(cipher__PubKey* p0, cipher__SecKey* p1, coin__Ux extern GoUint32 SKY_cipher_NewSig(GoSlice p0, cipher__Sig* p1); -extern GoUint32 SKY_cipher_MustSigFromHex(GoString p0, cipher__Sig* p1); - extern GoUint32 SKY_cipher_SigFromHex(GoString p0, cipher__Sig* p1); extern GoUint32 SKY_cipher_Sig_Hex(cipher__Sig* p0, GoString_* p1); @@ -1058,8 +1012,6 @@ extern GoUint32 SKY_cipher_VerifySignedHash(cipher__Sig* p0, cipher__SHA256* p1) extern GoUint32 SKY_cipher_VerifySignature(cipher__PubKey* p0, cipher__Sig* p1, cipher__SHA256* p2); -extern GoUint32 SKY_cipher_GenerateKeyPair(cipher__PubKey* p0, cipher__SecKey* p1); - extern GoUint32 SKY_cipher_GenerateDeterministicKeyPair(GoSlice p0, cipher__PubKey* p1, cipher__SecKey* p2); extern GoUint32 SKY_cipher_DeterministicKeyPairIterator(GoSlice p0, coin__UxArray* p1, cipher__PubKey* p2, cipher__SecKey* p3); @@ -1072,6 +1024,8 @@ extern GoUint32 SKY_cipher_TestSecKey(cipher__SecKey* p0); extern GoUint32 SKY_cipher_TestSecKeyHash(cipher__SecKey* p0, cipher__SHA256* p1); +extern GoUint32 SKY_cipher_GenerateKeyPair(cipher__PubKey* p0, cipher__SecKey* p1); + extern GoUint32 SKY_secp256k1go_Signature_Create(Signature_Handle* p0); extern GoUint32 SKY_secp256k1go_Signature_GetR(Signature_Handle p0, Number_Handle* p1); @@ -1196,10 +1150,6 @@ extern GoUint32 SKY_map_Close(GoStringMap_* p0); extern GoUint32 SKY_cipher_DecodeBase58Address(GoString p0, cipher__Address* p1); -extern GoUint32 SKY_cipher_MustDecodeBase58Address(GoString p0, cipher__Address* p1); - -extern GoUint32 SKY_cipher_BitcoinMustDecodeBase58Address(GoString p0, cipher__Address* p1); - extern GoUint32 SKY_cipher_AddressFromBytes(GoSlice p0, cipher__Address* p1); extern GoUint32 SKY_cipher_AddressFromPubKey(cipher__PubKey* p0, cipher__Address* p1); @@ -1208,12 +1158,10 @@ extern GoUint32 SKY_cipher_AddressFromSecKey(cipher__SecKey* p0, cipher__Address extern GoUint32 SKY_cipher_BitcoinDecodeBase58Address(GoString p0, cipher__Address* p1); -extern GoUint32 SKY_cipher_MustAddressFromBytes(GoSlice p0, cipher__Address* p1); +extern GoUint32 SKY_cipher_Address_Null(cipher__Address* p0, GoUint8* p1); extern GoUint32 SKY_cipher_Address_Bytes(cipher__Address* p0, coin__UxArray* p1); -extern GoUint32 SKY_cipher_Address_Null(cipher__Address* p0, GoUint8* p1); - extern GoUint32 SKY_cipher_Address_BitcoinBytes(cipher__Address* p0, coin__UxArray* p1); extern GoUint32 SKY_cipher_Address_Verify(cipher__Address* p0, cipher__PubKey* p1); @@ -1234,8 +1182,6 @@ extern GoUint32 SKY_cipher_BitcoinAddressFromBytes(GoSlice p0, cipher__Address* extern GoUint32 SKY_cipher_SecKeyFromWalletImportFormat(GoString p0, cipher__SecKey* p1); -extern GoUint32 SKY_cipher_MustSecKeyFromWalletImportFormat(GoString p0, cipher__SecKey* p1); - extern GoUint32 SKY_JsonEncode_Handle(Handle p0, GoString_* p1); extern GoUint32 SKY_Handle_Progress_GetCurrent(Handle p0, GoUint64* p1); @@ -1360,7 +1306,7 @@ extern GoUint32 SKY_encrypt_ScryptChacha20poly1305_Encrypt(encrypt__ScryptChacha extern GoUint32 SKY_encrypt_ScryptChacha20poly1305_Decrypt(encrypt__ScryptChacha20poly1305* p0, GoSlice p1, GoSlice p2, coin__UxArray* p3); -extern void SKY_wallet_CreateOptionsHandle(GoString p0, GoString p1, GoString p2, GoUint8 p3, GoString p4, GoString p5, GoUint64 p6, Options__Handle* p7); +extern GoUint32 SKY_wallet_CreateOptionsHandle(GoString p0, GoString p1, GoString p2, GoUint8 p3, GoString p4, GoString p5, GoUint64 p6, Options__Handle* p7); extern GoUint32 SKY_cli_AddPrivateKey(Wallet__Handle p0, GoString p1); @@ -1448,9 +1394,9 @@ extern GoUint32 SKY_file_ResolveResourceDirectory(GoString p0, GoString_* p1); extern GoUint32 SKY_file_DetermineResourcePath(GoString p0, GoString p1, GoString p2, GoString_* p3); -extern GoUint32 SKY_cli_GetWalletOutputsFromFile(WebRpcClient__Handle p0, GoString p1, OutputsResult_Handle* p2); +extern GoUint32 SKY_cli_GetWalletOutputsFromFile(WebRpcClient__Handle p0, GoString p1, ReadableOutputSet__Handle* p2); -extern GoUint32 SKY_cli_GetWalletOutputs(WebRpcClient__Handle p0, Wallet__Handle* p1, OutputsResult_Handle* p2); +extern GoUint32 SKY_cli_GetWalletOutputs(WebRpcClient__Handle p0, Wallet__Handle* p1, ReadableOutputSet__Handle* p2); extern GoUint32 SKY_testutil_MakeAddress(cipher__Address* p0); @@ -1514,8 +1460,6 @@ extern GoUint32 SKY_cipher_AddSHA256(cipher__SHA256* p0, cipher__SHA256* p1, cip extern GoUint32 SKY_cipher_Merkle(GoSlice* p0, cipher__SHA256* p1); -extern GoUint32 SKY_cipher_MustSumSHA256(GoSlice p0, GoInt p1, cipher__SHA256* p2); - extern GoUint32 SKY_cipher_SHA256_Null(cipher__SHA256* p0, GoUint8* p1); extern GoUint32 SKY_coin_Create_Transaction(Transaction__Handle* p0); @@ -1578,8 +1522,6 @@ extern GoUint32 SKY_coin_Transaction_HashInner(Transaction__Handle p0, cipher__S extern GoUint32 SKY_coin_Transaction_Serialize(Transaction__Handle p0, coin__UxArray* p1); -extern GoUint32 SKY_coin_MustTransactionDeserialize(GoSlice p0, Transaction__Handle* p1); - extern GoUint32 SKY_coin_TransactionDeserialize(GoSlice p0, Transaction__Handle* p1); extern GoUint32 SKY_coin_Transaction_OutputHours(Transaction__Handle p0, GoUint64* p1); From 98c02481571938602af1709862e13bf2cee01072 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Mon, 3 Sep 2018 23:07:28 -0400 Subject: [PATCH 12/73] [libdotnet][swig] refs #4 Added file and submodule update --- LibskycoinNet/LibskycoinNet.csproj | 1 + LibskycoinNet/skycoin/GoInterface.cs | 8 +- LibskycoinNet/skycoin/GoSlice.cs | 12 +- .../SWIGTYPE_p_GoInterface.cs} | 8 +- .../SWIGTYPE_p_GoSlice.cs} | 8 +- .../SWIGTYPE_p__GoString_.cs} | 8 +- .../SWIGTYPE_p_a_33__cipher_PubKey.cs} | 8 +- .../SWIGTYPE_p_api__RichlistParams.cs} | 8 +- .../SWIGTYPE_p_cipher_Addresses.cs} | 8 +- .../SWIGTYPE_p_cipher_Checksum.cs} | 8 +- .../SWIGTYPE_p_cipher_PubKey.cs} | 8 +- .../SWIGTYPE_p_cipher_PubKeys.cs} | 8 +- .../SWIGTYPE_p_cipher_Ripemd160.cs} | 8 +- .../SWIGTYPE_p_cipher_SHA256.cs} | 8 +- .../SWIGTYPE_p_cipher_SHA256s.cs} | 8 +- .../SWIGTYPE_p_cipher_SecKey.cs} | 8 +- .../SWIGTYPE_p_cipher_SecKeys.cs} | 8 +- .../SWIGTYPE_p_cipher_Sig.cs} | 8 +- .../SWIGTYPE_p_cipher__Address.cs} | 8 +- .../SWIGTYPE_p_cli__SendAmount.cs} | 8 +- .../SWIGTYPE_p_coin_UxOutArray.cs} | 8 +- .../SWIGTYPE_p_coin__Block.cs} | 8 +- .../skycoin/SWIGTYPE_p_coin__BlockBody.cs | 29 + .../SWIGTYPE_p_coin__BlockHeader.cs} | 8 +- .../SWIGTYPE_p_coin__SignedBlock.cs} | 8 +- .../SWIGTYPE_p_coin__SortableTransactions.cs} | 8 +- .../skycoin/SWIGTYPE_p_coin__Transaction.cs | 29 + .../SWIGTYPE_p_coin__TransactionOutput.cs} | 8 +- .../SWIGTYPE_p_coin__UxBody.cs} | 8 +- .../SWIGTYPE_p_coin__UxHead.cs} | 8 +- .../SWIGTYPE_p_coin__UxOut.cs} | 8 +- .../SWIGTYPE_p_encoder__StructField.cs} | 8 +- ...TYPE_p_encrypt__ScryptChacha20poly1305.cs} | 8 +- .../SWIGTYPE_p_httphelper__Address.cs} | 8 +- .../SWIGTYPE_p_secp256k1go__Field.cs} | 8 +- .../skycoin/SWIGTYPE_p_secp256k1go__XY.cs | 29 + .../SWIGTYPE_p_secp256k1go__XYZ.cs} | 8 +- .../skycoin/SWIGTYPE_p_wallet__Balance.cs | 29 + .../SWIGTYPE_p_wallet__BalancePair.cs} | 8 +- .../SWIGTYPE_p_wallet__Entry.cs} | 8 +- .../skycoin/SWIGTYPE_p_wallet__Note.cs | 29 + .../SWIGTYPE_p_wallet__ReadableNote.cs} | 8 +- .../skycoin/SWIGTYPE_p_wallet__UxBalance.cs | 29 + .../SWIGTYPE_p_wallet__Wallet.cs} | 8 +- LibskycoinNet/skycoin/_GoString_.cs | 8 +- LibskycoinNet/skycoin/api__RichlistParams.cs | 8 +- LibskycoinNet/skycoin/cipher_Addresses.cs | 8 +- LibskycoinNet/skycoin/cipher_Checksum.cs | 4 +- LibskycoinNet/skycoin/cipher_PubKey.cs | 4 +- LibskycoinNet/skycoin/cipher_PubKeys.cs | 8 +- LibskycoinNet/skycoin/cipher_Ripemd160.cs | 4 +- LibskycoinNet/skycoin/cipher_SHA256.cs | 4 +- LibskycoinNet/skycoin/cipher_SHA256s.cs | 8 +- LibskycoinNet/skycoin/cipher_SecKey.cs | 4 +- LibskycoinNet/skycoin/cipher_SecKeys.cs | 8 +- LibskycoinNet/skycoin/cipher_Sig.cs | 4 +- LibskycoinNet/skycoin/cipher__Address.cs | 8 +- LibskycoinNet/skycoin/cli__SendAmount.cs | 8 +- LibskycoinNet/skycoin/coin_UxOutArray.cs | 8 +- LibskycoinNet/skycoin/coin__Block.cs | 8 +- LibskycoinNet/skycoin/coin__BlockBody.cs | 4 +- LibskycoinNet/skycoin/coin__BlockHeader.cs | 28 +- LibskycoinNet/skycoin/coin__SignedBlock.cs | 8 +- .../skycoin/coin__SortableTransactions.cs | 12 +- LibskycoinNet/skycoin/coin__Transaction.cs | 24 +- .../skycoin/coin__TransactionOutput.cs | 12 +- LibskycoinNet/skycoin/coin__UxBody.cs | 16 +- LibskycoinNet/skycoin/coin__UxHead.cs | 8 +- LibskycoinNet/skycoin/coin__UxOut.cs | 8 +- LibskycoinNet/skycoin/encoder__StructField.cs | 16 +- .../encrypt__ScryptChacha20poly1305.cs | 16 +- LibskycoinNet/skycoin/httphelper__Address.cs | 4 +- LibskycoinNet/skycoin/secp256k1go__Field.cs | 4 +- LibskycoinNet/skycoin/secp256k1go__XY.cs | 12 +- LibskycoinNet/skycoin/secp256k1go__XYZ.cs | 16 +- LibskycoinNet/skycoin/skycoin.cs | 993 +- LibskycoinNet/skycoin/skycoinPINVOKE.cs | 1674 +- LibskycoinNet/skycoin/skycoinnet_wrap.c | 2984 ++- LibskycoinNet/skycoin/wallet__Balance.cs | 8 +- LibskycoinNet/skycoin/wallet__BalancePair.cs | 8 +- LibskycoinNet/skycoin/wallet__Entry.cs | 12 +- LibskycoinNet/skycoin/wallet__Note.cs | 8 +- LibskycoinNet/skycoin/wallet__ReadableNote.cs | 8 +- LibskycoinNet/skycoin/wallet__UxBalance.cs | 20 +- LibskycoinNet/skycoin/wallet__Wallet.cs | 8 +- LibskycoinNet/skycoin1/GoInterface.cs | 70 - LibskycoinNet/skycoin1/GoSlice.cs | 79 - ...YPE_p_CreateTransactionResponse__Handle.cs | 29 - ...TYPE_p_CreatedTransactionOutput__Handle.cs | 29 - LibskycoinNet/skycoin1/SWIGTYPE_p_GoInt_.cs | 29 - LibskycoinNet/skycoin1/SWIGTYPE_p_GoMap_.cs | 29 - LibskycoinNet/skycoin1/SWIGTYPE_p_GoSlice_.cs | 29 - .../skycoin1/SWIGTYPE_p_GoString_.cs | 29 - .../skycoin1/SWIGTYPE_p_GoUint32_.cs | 29 - .../skycoin1/SWIGTYPE_p_GoUint64_.cs | 29 - LibskycoinNet/skycoin1/SWIGTYPE_p_GoUint8_.cs | 29 - LibskycoinNet/skycoin1/SWIGTYPE_p_Handle.cs | 29 - .../SWIGTYPE_p_PasswordReader__Handle.cs | 29 - .../SWIGTYPE_p_ReadableEntry__Handle.cs | 29 - .../SWIGTYPE_p_ReadableOutputSet__Handle.cs | 29 - .../SWIGTYPE_p_ReadableWallet__Handle.cs | 29 - ...TYPE_p_SortableTransactionResult_Handle.cs | 29 - .../SWIGTYPE_p_TransactionResult_Handle.cs | 29 - .../SWIGTYPE_p_Transactions__Handle.cs | 29 - .../skycoin1/SWIGTYPE_p_WalletNotes_Handle.cs | 29 - .../SWIGTYPE_p_WalletReadableNotes_Handle.cs | 29 - .../SWIGTYPE_p_WalletResponse__Handle.cs | 29 - .../SWIGTYPE_p_WebRpcClient__Handle.cs | 29 - .../skycoin1/SWIGTYPE_p_a_32__GoUint8_.cs | 29 - .../skycoin1/SWIGTYPE_p_a_33__GoUint8_.cs | 29 - .../SWIGTYPE_p_a_33__unsigned_char.cs | 29 - .../skycoin1/SWIGTYPE_p_a_4__unsigned_char.cs | 29 - .../skycoin1/SWIGTYPE_p_a_65__GoUint8_.cs | 29 - .../SWIGTYPE_p_a_65__unsigned_char.cs | 29 - LibskycoinNet/skycoin1/SWIGTYPE_p_int.cs | 29 - .../skycoin1/SWIGTYPE_p_long_long.cs | 29 - .../skycoin1/SWIGTYPE_p_p_coin__Block.cs | 29 - .../SWIGTYPE_p_p_coin__Transaction.cs | 29 - .../skycoin1/SWIGTYPE_p_ptrdiff_t.cs | 29 - .../skycoin1/SWIGTYPE_p_unsigned_char.cs | 29 - .../skycoin1/SWIGTYPE_p_unsigned_long_long.cs | 29 - .../skycoin1/SWIGTYPE_p_unsigned_short.cs | 29 - LibskycoinNet/skycoin1/SWIGTYPE_p_void.cs | 29 - LibskycoinNet/skycoin1/_GoString_.cs | 70 - LibskycoinNet/skycoin1/api__RichlistParams.cs | 72 - LibskycoinNet/skycoin1/cipher_Addresses.cs | 69 - LibskycoinNet/skycoin1/cipher_Checksum.cs | 72 - LibskycoinNet/skycoin1/cipher_PubKey.cs | 72 - LibskycoinNet/skycoin1/cipher_PubKeys.cs | 93 - LibskycoinNet/skycoin1/cipher_Ripemd160.cs | 72 - LibskycoinNet/skycoin1/cipher_SHA256.cs | 72 - LibskycoinNet/skycoin1/cipher_SHA256s.cs | 93 - LibskycoinNet/skycoin1/cipher_SecKey.cs | 72 - LibskycoinNet/skycoin1/cipher_SecKeys.cs | 93 - LibskycoinNet/skycoin1/cipher_Sig.cs | 72 - LibskycoinNet/skycoin1/cipher__Address.cs | 76 - LibskycoinNet/skycoin1/cli__SendAmount.cs | 72 - LibskycoinNet/skycoin1/coin_UxOutArray.cs | 93 - LibskycoinNet/skycoin1/coin__Block.cs | 70 - LibskycoinNet/skycoin1/coin__BlockBody.cs | 65 - LibskycoinNet/skycoin1/coin__BlockHeader.cs | 134 - LibskycoinNet/skycoin1/coin__SignedBlock.cs | 70 - .../skycoin1/coin__SortableTransactions.cs | 84 - LibskycoinNet/skycoin1/coin__Transaction.cs | 124 - .../skycoin1/coin__TransactionOutput.cs | 88 - LibskycoinNet/skycoin1/coin__UxBody.cs | 94 - LibskycoinNet/skycoin1/coin__UxHead.cs | 72 - LibskycoinNet/skycoin1/coin__UxOut.cs | 75 - .../skycoin1/encoder__StructField.cs | 96 - .../encrypt__ScryptChacha20poly1305.cs | 96 - LibskycoinNet/skycoin1/httphelper__Address.cs | 59 - LibskycoinNet/skycoin1/secp256k1go__Field.cs | 59 - LibskycoinNet/skycoin1/secp256k1go__XY.cs | 82 - LibskycoinNet/skycoin1/secp256k1go__XYZ.cs | 93 - LibskycoinNet/skycoin1/skycoin.cs | 2728 --- LibskycoinNet/skycoin1/skycoinPINVOKE.cs | 3039 ---- LibskycoinNet/skycoin1/skycoinnet_wrap.c | 15044 ---------------- LibskycoinNet/skycoin1/wallet__Balance.cs | 72 - LibskycoinNet/skycoin1/wallet__BalancePair.cs | 70 - LibskycoinNet/skycoin1/wallet__Entry.cs | 81 - LibskycoinNet/skycoin1/wallet__Note.cs | 72 - .../skycoin1/wallet__ReadableNote.cs | 72 - LibskycoinNet/skycoin1/wallet__UxBalance.cs | 106 - LibskycoinNet/skycoin1/wallet__Wallet.cs | 72 - Makefile | 2 +- gopath/src/github.com/skycoin/skycoin | 2 +- 166 files changed, 2710 insertions(+), 28857 deletions(-) rename LibskycoinNet/{skycoin1/SWIGTYPE_p_Hash_Handle.cs => skycoin/SWIGTYPE_p_GoInterface.cs} (83%) rename LibskycoinNet/{skycoin1/SWIGTYPE_p_GoInt8_.cs => skycoin/SWIGTYPE_p_GoSlice.cs} (84%) rename LibskycoinNet/{skycoin1/SWIGTYPE_p_p_GoSlice_.cs => skycoin/SWIGTYPE_p__GoString_.cs} (83%) rename LibskycoinNet/{skycoin1/SWIGTYPE_p_StatusResult_Handle.cs => skycoin/SWIGTYPE_p_a_33__cipher_PubKey.cs} (81%) rename LibskycoinNet/{skycoin1/SWIGTYPE_p_Transaction__Handle.cs => skycoin/SWIGTYPE_p_api__RichlistParams.cs} (81%) rename LibskycoinNet/{skycoin1/SWIGTYPE_p_Signature_Handle.cs => skycoin/SWIGTYPE_p_cipher_Addresses.cs} (82%) rename LibskycoinNet/{skycoin1/SWIGTYPE_p_Context__Handle.cs => skycoin/SWIGTYPE_p_cipher_Checksum.cs} (82%) rename LibskycoinNet/{skycoin1/SWIGTYPE_p_Number_Handle.cs => skycoin/SWIGTYPE_p_cipher_PubKey.cs} (82%) rename LibskycoinNet/{skycoin1/SWIGTYPE_p_Config__Handle.cs => skycoin/SWIGTYPE_p_cipher_PubKeys.cs} (82%) rename LibskycoinNet/{skycoin1/SWIGTYPE_p_BuildInfo_Handle.cs => skycoin/SWIGTYPE_p_cipher_Ripemd160.cs} (82%) rename LibskycoinNet/{skycoin1/SWIGTYPE_p_FeeCalculator.cs => skycoin/SWIGTYPE_p_cipher_SHA256.cs} (82%) rename LibskycoinNet/{skycoin1/SWIGTYPE_p_Client__Handle.cs => skycoin/SWIGTYPE_p_cipher_SHA256s.cs} (82%) rename LibskycoinNet/{skycoin1/SWIGTYPE_p_Block__Handle.cs => skycoin/SWIGTYPE_p_cipher_SecKey.cs} (82%) rename LibskycoinNet/{skycoin1/SWIGTYPE_p_Wallet__Handle.cs => skycoin/SWIGTYPE_p_cipher_SecKeys.cs} (82%) rename LibskycoinNet/{skycoin1/SWIGTYPE_p_GoInt32_.cs => skycoin/SWIGTYPE_p_cipher_Sig.cs} (82%) rename LibskycoinNet/{skycoin1/SWIGTYPE_p_Options__Handle.cs => skycoin/SWIGTYPE_p_cipher__Address.cs} (82%) rename LibskycoinNet/{skycoin1/SWIGTYPE_p_Strings__Handle.cs => skycoin/SWIGTYPE_p_cli__SendAmount.cs} (82%) rename LibskycoinNet/{skycoin1/SWIGTYPE_p_Wallets__Handle.cs => skycoin/SWIGTYPE_p_coin_UxOutArray.cs} (82%) rename LibskycoinNet/{skycoin1/SWIGTYPE_p_App__Handle.cs => skycoin/SWIGTYPE_p_coin__Block.cs} (83%) create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_coin__BlockBody.cs rename LibskycoinNet/{skycoin1/SWIGTYPE_p_BlockBody__Handle.cs => skycoin/SWIGTYPE_p_coin__BlockHeader.cs} (81%) rename LibskycoinNet/{skycoin1/SWIGTYPE_p_BOOL.cs => skycoin/SWIGTYPE_p_coin__SignedBlock.cs} (79%) rename LibskycoinNet/{skycoin1/SWIGTYPE_p_CreatedTransaction__Handle.cs => skycoin/SWIGTYPE_p_coin__SortableTransactions.cs} (80%) create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_coin__Transaction.cs rename LibskycoinNet/{skycoin1/SWIGTYPE_p_AddressUxOuts_Handle.cs => skycoin/SWIGTYPE_p_coin__TransactionOutput.cs} (78%) rename LibskycoinNet/{skycoin1/SWIGTYPE_p_GoStringMap_.cs => skycoin/SWIGTYPE_p_coin__UxBody.cs} (82%) rename LibskycoinNet/{skycoin1/SWIGTYPE_p_unsigned_int.cs => skycoin/SWIGTYPE_p_coin__UxHead.cs} (82%) rename LibskycoinNet/{skycoin1/SWIGTYPE_p_GoInt64_.cs => skycoin/SWIGTYPE_p_coin__UxOut.cs} (81%) rename LibskycoinNet/{skycoin1/SWIGTYPE_p_OutputsResult_Handle.cs => skycoin/SWIGTYPE_p_encoder__StructField.cs} (81%) rename LibskycoinNet/{skycoin1/SWIGTYPE_p_CreatedTransactionInput__Handle.cs => skycoin/SWIGTYPE_p_encrypt__ScryptChacha20poly1305.cs} (79%) rename LibskycoinNet/{skycoin1/SWIGTYPE_p_a_20__unsigned_char.cs => skycoin/SWIGTYPE_p_httphelper__Address.cs} (81%) rename LibskycoinNet/{skycoin1/SWIGTYPE_p_SpendResult_Handle.cs => skycoin/SWIGTYPE_p_secp256k1go__Field.cs} (81%) create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_secp256k1go__XY.cs rename LibskycoinNet/{skycoin1/SWIGTYPE_p_cipher_PubKeyint.cs => skycoin/SWIGTYPE_p_secp256k1go__XYZ.cs} (82%) create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_wallet__Balance.cs rename LibskycoinNet/{skycoin1/SWIGTYPE_p_a_32__unsigned_char.cs => skycoin/SWIGTYPE_p_wallet__BalancePair.cs} (81%) rename LibskycoinNet/{skycoin1/SWIGTYPE_p_a_4__GoUint8_.cs => skycoin/SWIGTYPE_p_wallet__Entry.cs} (82%) create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_wallet__Note.cs rename LibskycoinNet/{skycoin1/SWIGTYPE_p_BalanceResult_Handle.cs => skycoin/SWIGTYPE_p_wallet__ReadableNote.cs} (81%) create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_wallet__UxBalance.cs rename LibskycoinNet/{skycoin1/SWIGTYPE_p_a_20__GoUint8_.cs => skycoin/SWIGTYPE_p_wallet__Wallet.cs} (82%) delete mode 100644 LibskycoinNet/skycoin1/GoInterface.cs delete mode 100644 LibskycoinNet/skycoin1/GoSlice.cs delete mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_CreateTransactionResponse__Handle.cs delete mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_CreatedTransactionOutput__Handle.cs delete mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_GoInt_.cs delete mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_GoMap_.cs delete mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_GoSlice_.cs delete mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_GoString_.cs delete mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_GoUint32_.cs delete mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_GoUint64_.cs delete mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_GoUint8_.cs delete mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_Handle.cs delete mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_PasswordReader__Handle.cs delete mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_ReadableEntry__Handle.cs delete mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_ReadableOutputSet__Handle.cs delete mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_ReadableWallet__Handle.cs delete mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_SortableTransactionResult_Handle.cs delete mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_TransactionResult_Handle.cs delete mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_Transactions__Handle.cs delete mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_WalletNotes_Handle.cs delete mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_WalletReadableNotes_Handle.cs delete mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_WalletResponse__Handle.cs delete mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_WebRpcClient__Handle.cs delete mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_a_32__GoUint8_.cs delete mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_a_33__GoUint8_.cs delete mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_a_33__unsigned_char.cs delete mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_a_4__unsigned_char.cs delete mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_a_65__GoUint8_.cs delete mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_a_65__unsigned_char.cs delete mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_int.cs delete mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_long_long.cs delete mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_p_coin__Block.cs delete mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_p_coin__Transaction.cs delete mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_ptrdiff_t.cs delete mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_unsigned_char.cs delete mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_unsigned_long_long.cs delete mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_unsigned_short.cs delete mode 100644 LibskycoinNet/skycoin1/SWIGTYPE_p_void.cs delete mode 100644 LibskycoinNet/skycoin1/_GoString_.cs delete mode 100644 LibskycoinNet/skycoin1/api__RichlistParams.cs delete mode 100644 LibskycoinNet/skycoin1/cipher_Addresses.cs delete mode 100644 LibskycoinNet/skycoin1/cipher_Checksum.cs delete mode 100644 LibskycoinNet/skycoin1/cipher_PubKey.cs delete mode 100644 LibskycoinNet/skycoin1/cipher_PubKeys.cs delete mode 100644 LibskycoinNet/skycoin1/cipher_Ripemd160.cs delete mode 100644 LibskycoinNet/skycoin1/cipher_SHA256.cs delete mode 100644 LibskycoinNet/skycoin1/cipher_SHA256s.cs delete mode 100644 LibskycoinNet/skycoin1/cipher_SecKey.cs delete mode 100644 LibskycoinNet/skycoin1/cipher_SecKeys.cs delete mode 100644 LibskycoinNet/skycoin1/cipher_Sig.cs delete mode 100644 LibskycoinNet/skycoin1/cipher__Address.cs delete mode 100644 LibskycoinNet/skycoin1/cli__SendAmount.cs delete mode 100644 LibskycoinNet/skycoin1/coin_UxOutArray.cs delete mode 100644 LibskycoinNet/skycoin1/coin__Block.cs delete mode 100644 LibskycoinNet/skycoin1/coin__BlockBody.cs delete mode 100644 LibskycoinNet/skycoin1/coin__BlockHeader.cs delete mode 100644 LibskycoinNet/skycoin1/coin__SignedBlock.cs delete mode 100644 LibskycoinNet/skycoin1/coin__SortableTransactions.cs delete mode 100644 LibskycoinNet/skycoin1/coin__Transaction.cs delete mode 100644 LibskycoinNet/skycoin1/coin__TransactionOutput.cs delete mode 100644 LibskycoinNet/skycoin1/coin__UxBody.cs delete mode 100644 LibskycoinNet/skycoin1/coin__UxHead.cs delete mode 100644 LibskycoinNet/skycoin1/coin__UxOut.cs delete mode 100644 LibskycoinNet/skycoin1/encoder__StructField.cs delete mode 100644 LibskycoinNet/skycoin1/encrypt__ScryptChacha20poly1305.cs delete mode 100644 LibskycoinNet/skycoin1/httphelper__Address.cs delete mode 100644 LibskycoinNet/skycoin1/secp256k1go__Field.cs delete mode 100644 LibskycoinNet/skycoin1/secp256k1go__XY.cs delete mode 100644 LibskycoinNet/skycoin1/secp256k1go__XYZ.cs delete mode 100644 LibskycoinNet/skycoin1/skycoin.cs delete mode 100644 LibskycoinNet/skycoin1/skycoinPINVOKE.cs delete mode 100644 LibskycoinNet/skycoin1/skycoinnet_wrap.c delete mode 100644 LibskycoinNet/skycoin1/wallet__Balance.cs delete mode 100644 LibskycoinNet/skycoin1/wallet__BalancePair.cs delete mode 100644 LibskycoinNet/skycoin1/wallet__Entry.cs delete mode 100644 LibskycoinNet/skycoin1/wallet__Note.cs delete mode 100644 LibskycoinNet/skycoin1/wallet__ReadableNote.cs delete mode 100644 LibskycoinNet/skycoin1/wallet__UxBalance.cs delete mode 100644 LibskycoinNet/skycoin1/wallet__Wallet.cs diff --git a/LibskycoinNet/LibskycoinNet.csproj b/LibskycoinNet/LibskycoinNet.csproj index 7889bfd9..0de49709 100644 --- a/LibskycoinNet/LibskycoinNet.csproj +++ b/LibskycoinNet/LibskycoinNet.csproj @@ -133,6 +133,7 @@ + diff --git a/LibskycoinNet/skycoin/GoInterface.cs b/LibskycoinNet/skycoin/GoInterface.cs index 6c3f46c1..0763da31 100644 --- a/LibskycoinNet/skycoin/GoInterface.cs +++ b/LibskycoinNet/skycoin/GoInterface.cs @@ -42,10 +42,10 @@ public virtual void Dispose() { public SWIGTYPE_p_void t { set { - skycoinPINVOKE.GoInterface_t_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); + skycoinPINVOKE.set_GoInterface_t(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.GoInterface_t_get(swigCPtr); + global::System.IntPtr cPtr = skycoinPINVOKE.get_GoInterface_t(swigCPtr); SWIGTYPE_p_void ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); return ret; } @@ -53,10 +53,10 @@ public SWIGTYPE_p_void t { public SWIGTYPE_p_void v { set { - skycoinPINVOKE.GoInterface_v_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); + skycoinPINVOKE.set_GoInterface_v(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.GoInterface_v_get(swigCPtr); + global::System.IntPtr cPtr = skycoinPINVOKE.get_GoInterface_v(swigCPtr); SWIGTYPE_p_void ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); return ret; } diff --git a/LibskycoinNet/skycoin/GoSlice.cs b/LibskycoinNet/skycoin/GoSlice.cs index d0d23f9d..e09ff102 100644 --- a/LibskycoinNet/skycoin/GoSlice.cs +++ b/LibskycoinNet/skycoin/GoSlice.cs @@ -42,10 +42,10 @@ public virtual void Dispose() { public SWIGTYPE_p_void data { set { - skycoinPINVOKE.GoSlice_data_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); + skycoinPINVOKE.set_GoSlice_data(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.GoSlice_data_get(swigCPtr); + global::System.IntPtr cPtr = skycoinPINVOKE.get_GoSlice_data(swigCPtr); SWIGTYPE_p_void ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); return ret; } @@ -53,20 +53,20 @@ public SWIGTYPE_p_void data { public long len { set { - skycoinPINVOKE.GoSlice_len_set(swigCPtr, value); + skycoinPINVOKE.set_GoSlice_len(swigCPtr, value); } get { - long ret = skycoinPINVOKE.GoSlice_len_get(swigCPtr); + long ret = skycoinPINVOKE.get_GoSlice_len(swigCPtr); return ret; } } public long cap { set { - skycoinPINVOKE.GoSlice_cap_set(swigCPtr, value); + skycoinPINVOKE.set_GoSlice_cap(swigCPtr, value); } get { - long ret = skycoinPINVOKE.GoSlice_cap_get(swigCPtr); + long ret = skycoinPINVOKE.get_GoSlice_cap(swigCPtr); return ret; } } diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_Hash_Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_GoInterface.cs similarity index 83% rename from LibskycoinNet/skycoin1/SWIGTYPE_p_Hash_Handle.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_GoInterface.cs index 0e5a2b34..408d0c77 100644 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_Hash_Handle.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_GoInterface.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_Hash_Handle { +public class SWIGTYPE_p_GoInterface { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_Hash_Handle(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_GoInterface(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_Hash_Handle() { + protected SWIGTYPE_p_GoInterface() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Hash_Handle obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_GoInterface obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_GoInt8_.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_GoSlice.cs similarity index 84% rename from LibskycoinNet/skycoin1/SWIGTYPE_p_GoInt8_.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_GoSlice.cs index e2c73313..1e890847 100644 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_GoInt8_.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_GoSlice.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_GoInt8_ { +public class SWIGTYPE_p_GoSlice { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_GoInt8_(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_GoSlice(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_GoInt8_() { + protected SWIGTYPE_p_GoSlice() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_GoInt8_ obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_GoSlice obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_p_GoSlice_.cs b/LibskycoinNet/skycoin/SWIGTYPE_p__GoString_.cs similarity index 83% rename from LibskycoinNet/skycoin1/SWIGTYPE_p_p_GoSlice_.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p__GoString_.cs index d1ee7548..f95ee083 100644 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_p_GoSlice_.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p__GoString_.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_p_GoSlice_ { +public class SWIGTYPE_p__GoString_ { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_p_GoSlice_(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p__GoString_(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_p_GoSlice_() { + protected SWIGTYPE_p__GoString_() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_p_GoSlice_ obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p__GoString_ obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_StatusResult_Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_a_33__cipher_PubKey.cs similarity index 81% rename from LibskycoinNet/skycoin1/SWIGTYPE_p_StatusResult_Handle.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_a_33__cipher_PubKey.cs index b4a99547..868df023 100644 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_StatusResult_Handle.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_a_33__cipher_PubKey.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_StatusResult_Handle { +public class SWIGTYPE_p_a_33__cipher_PubKey { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_StatusResult_Handle(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_a_33__cipher_PubKey(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_StatusResult_Handle() { + protected SWIGTYPE_p_a_33__cipher_PubKey() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_StatusResult_Handle obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_a_33__cipher_PubKey obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_Transaction__Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_api__RichlistParams.cs similarity index 81% rename from LibskycoinNet/skycoin1/SWIGTYPE_p_Transaction__Handle.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_api__RichlistParams.cs index 1d23f647..fda547c3 100644 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_Transaction__Handle.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_api__RichlistParams.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_Transaction__Handle { +public class SWIGTYPE_p_api__RichlistParams { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_Transaction__Handle(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_api__RichlistParams(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_Transaction__Handle() { + protected SWIGTYPE_p_api__RichlistParams() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Transaction__Handle obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_api__RichlistParams obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_Signature_Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_Addresses.cs similarity index 82% rename from LibskycoinNet/skycoin1/SWIGTYPE_p_Signature_Handle.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_cipher_Addresses.cs index 572ca68e..28ccd2c7 100644 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_Signature_Handle.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_Addresses.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_Signature_Handle { +public class SWIGTYPE_p_cipher_Addresses { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_Signature_Handle(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_cipher_Addresses(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_Signature_Handle() { + protected SWIGTYPE_p_cipher_Addresses() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Signature_Handle obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_cipher_Addresses obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_Context__Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_Checksum.cs similarity index 82% rename from LibskycoinNet/skycoin1/SWIGTYPE_p_Context__Handle.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_cipher_Checksum.cs index f8f29831..13cb3810 100644 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_Context__Handle.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_Checksum.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_Context__Handle { +public class SWIGTYPE_p_cipher_Checksum { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_Context__Handle(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_cipher_Checksum(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_Context__Handle() { + protected SWIGTYPE_p_cipher_Checksum() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Context__Handle obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_cipher_Checksum obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_Number_Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_PubKey.cs similarity index 82% rename from LibskycoinNet/skycoin1/SWIGTYPE_p_Number_Handle.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_cipher_PubKey.cs index ada6d62a..1c9bc115 100644 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_Number_Handle.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_PubKey.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_Number_Handle { +public class SWIGTYPE_p_cipher_PubKey { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_Number_Handle(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_cipher_PubKey(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_Number_Handle() { + protected SWIGTYPE_p_cipher_PubKey() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Number_Handle obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_cipher_PubKey obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_Config__Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_PubKeys.cs similarity index 82% rename from LibskycoinNet/skycoin1/SWIGTYPE_p_Config__Handle.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_cipher_PubKeys.cs index 50cc120d..0350f3ef 100644 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_Config__Handle.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_PubKeys.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_Config__Handle { +public class SWIGTYPE_p_cipher_PubKeys { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_Config__Handle(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_cipher_PubKeys(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_Config__Handle() { + protected SWIGTYPE_p_cipher_PubKeys() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Config__Handle obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_cipher_PubKeys obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_BuildInfo_Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_Ripemd160.cs similarity index 82% rename from LibskycoinNet/skycoin1/SWIGTYPE_p_BuildInfo_Handle.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_cipher_Ripemd160.cs index b97ebbcb..2f100017 100644 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_BuildInfo_Handle.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_Ripemd160.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_BuildInfo_Handle { +public class SWIGTYPE_p_cipher_Ripemd160 { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_BuildInfo_Handle(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_cipher_Ripemd160(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_BuildInfo_Handle() { + protected SWIGTYPE_p_cipher_Ripemd160() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_BuildInfo_Handle obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_cipher_Ripemd160 obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_FeeCalculator.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_SHA256.cs similarity index 82% rename from LibskycoinNet/skycoin1/SWIGTYPE_p_FeeCalculator.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_cipher_SHA256.cs index 96b48383..af076180 100644 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_FeeCalculator.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_SHA256.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_FeeCalculator { +public class SWIGTYPE_p_cipher_SHA256 { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_FeeCalculator(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_cipher_SHA256(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_FeeCalculator() { + protected SWIGTYPE_p_cipher_SHA256() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_FeeCalculator obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_cipher_SHA256 obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_Client__Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_SHA256s.cs similarity index 82% rename from LibskycoinNet/skycoin1/SWIGTYPE_p_Client__Handle.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_cipher_SHA256s.cs index 21dee0c7..d5ff8350 100644 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_Client__Handle.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_SHA256s.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_Client__Handle { +public class SWIGTYPE_p_cipher_SHA256s { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_Client__Handle(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_cipher_SHA256s(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_Client__Handle() { + protected SWIGTYPE_p_cipher_SHA256s() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Client__Handle obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_cipher_SHA256s obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_Block__Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_SecKey.cs similarity index 82% rename from LibskycoinNet/skycoin1/SWIGTYPE_p_Block__Handle.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_cipher_SecKey.cs index a48c533f..c0c5743e 100644 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_Block__Handle.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_SecKey.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_Block__Handle { +public class SWIGTYPE_p_cipher_SecKey { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_Block__Handle(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_cipher_SecKey(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_Block__Handle() { + protected SWIGTYPE_p_cipher_SecKey() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Block__Handle obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_cipher_SecKey obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_Wallet__Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_SecKeys.cs similarity index 82% rename from LibskycoinNet/skycoin1/SWIGTYPE_p_Wallet__Handle.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_cipher_SecKeys.cs index 0ca53bbc..8670df9c 100644 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_Wallet__Handle.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_SecKeys.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_Wallet__Handle { +public class SWIGTYPE_p_cipher_SecKeys { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_Wallet__Handle(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_cipher_SecKeys(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_Wallet__Handle() { + protected SWIGTYPE_p_cipher_SecKeys() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Wallet__Handle obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_cipher_SecKeys obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_GoInt32_.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_Sig.cs similarity index 82% rename from LibskycoinNet/skycoin1/SWIGTYPE_p_GoInt32_.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_cipher_Sig.cs index 7ef9e109..7dd0c3d3 100644 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_GoInt32_.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_Sig.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_GoInt32_ { +public class SWIGTYPE_p_cipher_Sig { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_GoInt32_(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_cipher_Sig(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_GoInt32_() { + protected SWIGTYPE_p_cipher_Sig() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_GoInt32_ obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_cipher_Sig obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_Options__Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_cipher__Address.cs similarity index 82% rename from LibskycoinNet/skycoin1/SWIGTYPE_p_Options__Handle.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_cipher__Address.cs index 860d732e..4bb23746 100644 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_Options__Handle.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_cipher__Address.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_Options__Handle { +public class SWIGTYPE_p_cipher__Address { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_Options__Handle(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_cipher__Address(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_Options__Handle() { + protected SWIGTYPE_p_cipher__Address() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Options__Handle obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_cipher__Address obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_Strings__Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_cli__SendAmount.cs similarity index 82% rename from LibskycoinNet/skycoin1/SWIGTYPE_p_Strings__Handle.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_cli__SendAmount.cs index 24d6077a..e0a64bed 100644 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_Strings__Handle.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_cli__SendAmount.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_Strings__Handle { +public class SWIGTYPE_p_cli__SendAmount { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_Strings__Handle(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_cli__SendAmount(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_Strings__Handle() { + protected SWIGTYPE_p_cli__SendAmount() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Strings__Handle obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_cli__SendAmount obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_Wallets__Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_coin_UxOutArray.cs similarity index 82% rename from LibskycoinNet/skycoin1/SWIGTYPE_p_Wallets__Handle.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_coin_UxOutArray.cs index 74cbd0ab..88a0c0cf 100644 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_Wallets__Handle.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_coin_UxOutArray.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_Wallets__Handle { +public class SWIGTYPE_p_coin_UxOutArray { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_Wallets__Handle(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_coin_UxOutArray(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_Wallets__Handle() { + protected SWIGTYPE_p_coin_UxOutArray() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Wallets__Handle obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_coin_UxOutArray obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_App__Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_coin__Block.cs similarity index 83% rename from LibskycoinNet/skycoin1/SWIGTYPE_p_App__Handle.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_coin__Block.cs index ff1a432f..3feb8213 100644 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_App__Handle.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_coin__Block.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_App__Handle { +public class SWIGTYPE_p_coin__Block { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_App__Handle(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_coin__Block(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_App__Handle() { + protected SWIGTYPE_p_coin__Block() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_App__Handle obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_coin__Block obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_coin__BlockBody.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_coin__BlockBody.cs new file mode 100644 index 00000000..a4a05163 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_coin__BlockBody.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_coin__BlockBody { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_coin__BlockBody(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_coin__BlockBody() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_coin__BlockBody obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_BlockBody__Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_coin__BlockHeader.cs similarity index 81% rename from LibskycoinNet/skycoin1/SWIGTYPE_p_BlockBody__Handle.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_coin__BlockHeader.cs index d074a103..5118da11 100644 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_BlockBody__Handle.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_coin__BlockHeader.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_BlockBody__Handle { +public class SWIGTYPE_p_coin__BlockHeader { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_BlockBody__Handle(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_coin__BlockHeader(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_BlockBody__Handle() { + protected SWIGTYPE_p_coin__BlockHeader() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_BlockBody__Handle obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_coin__BlockHeader obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_BOOL.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_coin__SignedBlock.cs similarity index 79% rename from LibskycoinNet/skycoin1/SWIGTYPE_p_BOOL.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_coin__SignedBlock.cs index bd909667..b5a6457b 100644 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_BOOL.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_coin__SignedBlock.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_BOOL { +public class SWIGTYPE_p_coin__SignedBlock { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_BOOL(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_coin__SignedBlock(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_BOOL() { + protected SWIGTYPE_p_coin__SignedBlock() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_BOOL obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_coin__SignedBlock obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_CreatedTransaction__Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_coin__SortableTransactions.cs similarity index 80% rename from LibskycoinNet/skycoin1/SWIGTYPE_p_CreatedTransaction__Handle.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_coin__SortableTransactions.cs index 9482fe6e..d814d2d0 100644 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_CreatedTransaction__Handle.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_coin__SortableTransactions.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_CreatedTransaction__Handle { +public class SWIGTYPE_p_coin__SortableTransactions { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_CreatedTransaction__Handle(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_coin__SortableTransactions(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_CreatedTransaction__Handle() { + protected SWIGTYPE_p_coin__SortableTransactions() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_CreatedTransaction__Handle obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_coin__SortableTransactions obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_coin__Transaction.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_coin__Transaction.cs new file mode 100644 index 00000000..d014c2ce --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_coin__Transaction.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_coin__Transaction { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_coin__Transaction(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_coin__Transaction() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_coin__Transaction obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_AddressUxOuts_Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_coin__TransactionOutput.cs similarity index 78% rename from LibskycoinNet/skycoin1/SWIGTYPE_p_AddressUxOuts_Handle.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_coin__TransactionOutput.cs index e516001f..708c06d0 100644 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_AddressUxOuts_Handle.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_coin__TransactionOutput.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_AddressUxOuts_Handle { +public class SWIGTYPE_p_coin__TransactionOutput { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_AddressUxOuts_Handle(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_coin__TransactionOutput(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_AddressUxOuts_Handle() { + protected SWIGTYPE_p_coin__TransactionOutput() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_AddressUxOuts_Handle obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_coin__TransactionOutput obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_GoStringMap_.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_coin__UxBody.cs similarity index 82% rename from LibskycoinNet/skycoin1/SWIGTYPE_p_GoStringMap_.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_coin__UxBody.cs index 3c6416e4..6bb37beb 100644 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_GoStringMap_.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_coin__UxBody.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_GoStringMap_ { +public class SWIGTYPE_p_coin__UxBody { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_GoStringMap_(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_coin__UxBody(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_GoStringMap_() { + protected SWIGTYPE_p_coin__UxBody() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_GoStringMap_ obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_coin__UxBody obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_unsigned_int.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_coin__UxHead.cs similarity index 82% rename from LibskycoinNet/skycoin1/SWIGTYPE_p_unsigned_int.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_coin__UxHead.cs index ddd31977..28398232 100644 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_unsigned_int.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_coin__UxHead.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_unsigned_int { +public class SWIGTYPE_p_coin__UxHead { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_unsigned_int(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_coin__UxHead(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_unsigned_int() { + protected SWIGTYPE_p_coin__UxHead() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_unsigned_int obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_coin__UxHead obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_GoInt64_.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_coin__UxOut.cs similarity index 81% rename from LibskycoinNet/skycoin1/SWIGTYPE_p_GoInt64_.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_coin__UxOut.cs index e9aa1c63..83705f40 100644 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_GoInt64_.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_coin__UxOut.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_GoInt64_ { +public class SWIGTYPE_p_coin__UxOut { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_GoInt64_(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_coin__UxOut(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_GoInt64_() { + protected SWIGTYPE_p_coin__UxOut() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_GoInt64_ obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_coin__UxOut obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_OutputsResult_Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_encoder__StructField.cs similarity index 81% rename from LibskycoinNet/skycoin1/SWIGTYPE_p_OutputsResult_Handle.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_encoder__StructField.cs index c9c0b175..c9463287 100644 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_OutputsResult_Handle.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_encoder__StructField.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_OutputsResult_Handle { +public class SWIGTYPE_p_encoder__StructField { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_OutputsResult_Handle(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_encoder__StructField(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_OutputsResult_Handle() { + protected SWIGTYPE_p_encoder__StructField() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_OutputsResult_Handle obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_encoder__StructField obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_CreatedTransactionInput__Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_encrypt__ScryptChacha20poly1305.cs similarity index 79% rename from LibskycoinNet/skycoin1/SWIGTYPE_p_CreatedTransactionInput__Handle.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_encrypt__ScryptChacha20poly1305.cs index f27373fc..8bfdab1b 100644 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_CreatedTransactionInput__Handle.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_encrypt__ScryptChacha20poly1305.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_CreatedTransactionInput__Handle { +public class SWIGTYPE_p_encrypt__ScryptChacha20poly1305 { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_CreatedTransactionInput__Handle(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_encrypt__ScryptChacha20poly1305(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_CreatedTransactionInput__Handle() { + protected SWIGTYPE_p_encrypt__ScryptChacha20poly1305() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_CreatedTransactionInput__Handle obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_encrypt__ScryptChacha20poly1305 obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_a_20__unsigned_char.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_httphelper__Address.cs similarity index 81% rename from LibskycoinNet/skycoin1/SWIGTYPE_p_a_20__unsigned_char.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_httphelper__Address.cs index a7ac283c..c3e493f2 100644 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_a_20__unsigned_char.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_httphelper__Address.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_a_20__unsigned_char { +public class SWIGTYPE_p_httphelper__Address { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_a_20__unsigned_char(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_httphelper__Address(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_a_20__unsigned_char() { + protected SWIGTYPE_p_httphelper__Address() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_a_20__unsigned_char obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_httphelper__Address obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_SpendResult_Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_secp256k1go__Field.cs similarity index 81% rename from LibskycoinNet/skycoin1/SWIGTYPE_p_SpendResult_Handle.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_secp256k1go__Field.cs index 7d1f0494..a4a53a67 100644 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_SpendResult_Handle.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_secp256k1go__Field.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_SpendResult_Handle { +public class SWIGTYPE_p_secp256k1go__Field { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_SpendResult_Handle(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_secp256k1go__Field(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_SpendResult_Handle() { + protected SWIGTYPE_p_secp256k1go__Field() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_SpendResult_Handle obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_secp256k1go__Field obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_secp256k1go__XY.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_secp256k1go__XY.cs new file mode 100644 index 00000000..47a2dcdc --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_secp256k1go__XY.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_secp256k1go__XY { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_secp256k1go__XY(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_secp256k1go__XY() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_secp256k1go__XY obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_cipher_PubKeyint.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_secp256k1go__XYZ.cs similarity index 82% rename from LibskycoinNet/skycoin1/SWIGTYPE_p_cipher_PubKeyint.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_secp256k1go__XYZ.cs index 6bee3a25..d4134d2a 100644 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_cipher_PubKeyint.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_secp256k1go__XYZ.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_cipher_PubKeyint { +public class SWIGTYPE_p_secp256k1go__XYZ { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_cipher_PubKeyint(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_secp256k1go__XYZ(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_cipher_PubKeyint() { + protected SWIGTYPE_p_secp256k1go__XYZ() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_cipher_PubKeyint obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_secp256k1go__XYZ obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_wallet__Balance.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_wallet__Balance.cs new file mode 100644 index 00000000..4ff46707 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_wallet__Balance.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_wallet__Balance { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_wallet__Balance(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_wallet__Balance() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_wallet__Balance obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_a_32__unsigned_char.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_wallet__BalancePair.cs similarity index 81% rename from LibskycoinNet/skycoin1/SWIGTYPE_p_a_32__unsigned_char.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_wallet__BalancePair.cs index 6832b2c8..4800f3d8 100644 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_a_32__unsigned_char.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_wallet__BalancePair.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_a_32__unsigned_char { +public class SWIGTYPE_p_wallet__BalancePair { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_a_32__unsigned_char(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_wallet__BalancePair(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_a_32__unsigned_char() { + protected SWIGTYPE_p_wallet__BalancePair() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_a_32__unsigned_char obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_wallet__BalancePair obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_a_4__GoUint8_.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_wallet__Entry.cs similarity index 82% rename from LibskycoinNet/skycoin1/SWIGTYPE_p_a_4__GoUint8_.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_wallet__Entry.cs index 876a246f..db1fa259 100644 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_a_4__GoUint8_.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_wallet__Entry.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_a_4__GoUint8_ { +public class SWIGTYPE_p_wallet__Entry { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_a_4__GoUint8_(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_wallet__Entry(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_a_4__GoUint8_() { + protected SWIGTYPE_p_wallet__Entry() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_a_4__GoUint8_ obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_wallet__Entry obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_wallet__Note.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_wallet__Note.cs new file mode 100644 index 00000000..e315e5b6 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_wallet__Note.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_wallet__Note { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_wallet__Note(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_wallet__Note() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_wallet__Note obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_BalanceResult_Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_wallet__ReadableNote.cs similarity index 81% rename from LibskycoinNet/skycoin1/SWIGTYPE_p_BalanceResult_Handle.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_wallet__ReadableNote.cs index 7fed0386..3ba28c62 100644 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_BalanceResult_Handle.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_wallet__ReadableNote.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_BalanceResult_Handle { +public class SWIGTYPE_p_wallet__ReadableNote { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_BalanceResult_Handle(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_wallet__ReadableNote(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_BalanceResult_Handle() { + protected SWIGTYPE_p_wallet__ReadableNote() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_BalanceResult_Handle obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_wallet__ReadableNote obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_wallet__UxBalance.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_wallet__UxBalance.cs new file mode 100644 index 00000000..3e4f71e1 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_wallet__UxBalance.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_wallet__UxBalance { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_wallet__UxBalance(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_wallet__UxBalance() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_wallet__UxBalance obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_a_20__GoUint8_.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_wallet__Wallet.cs similarity index 82% rename from LibskycoinNet/skycoin1/SWIGTYPE_p_a_20__GoUint8_.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_wallet__Wallet.cs index 1d90b1fc..61cb9c56 100644 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_a_20__GoUint8_.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_wallet__Wallet.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_a_20__GoUint8_ { +public class SWIGTYPE_p_wallet__Wallet { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_a_20__GoUint8_(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_wallet__Wallet(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_a_20__GoUint8_() { + protected SWIGTYPE_p_wallet__Wallet() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_a_20__GoUint8_ obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_wallet__Wallet obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin/_GoString_.cs b/LibskycoinNet/skycoin/_GoString_.cs index 2c9d87b3..50925471 100644 --- a/LibskycoinNet/skycoin/_GoString_.cs +++ b/LibskycoinNet/skycoin/_GoString_.cs @@ -42,21 +42,21 @@ public virtual void Dispose() { public string p { set { - skycoinPINVOKE._GoString__p_set(swigCPtr, value); + skycoinPINVOKE.set__GoString__p(swigCPtr, value); } get { - string ret = skycoinPINVOKE._GoString__p_get(swigCPtr); + string ret = skycoinPINVOKE.get__GoString__p(swigCPtr); return ret; } } public SWIGTYPE_p_ptrdiff_t n { set { - skycoinPINVOKE._GoString__n_set(swigCPtr, SWIGTYPE_p_ptrdiff_t.getCPtr(value)); + skycoinPINVOKE.set__GoString__n(swigCPtr, SWIGTYPE_p_ptrdiff_t.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_ptrdiff_t ret = new SWIGTYPE_p_ptrdiff_t(skycoinPINVOKE._GoString__n_get(swigCPtr), true); + SWIGTYPE_p_ptrdiff_t ret = new SWIGTYPE_p_ptrdiff_t(skycoinPINVOKE.get__GoString__n(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } diff --git a/LibskycoinNet/skycoin/api__RichlistParams.cs b/LibskycoinNet/skycoin/api__RichlistParams.cs index 7d036643..da289114 100644 --- a/LibskycoinNet/skycoin/api__RichlistParams.cs +++ b/LibskycoinNet/skycoin/api__RichlistParams.cs @@ -42,11 +42,11 @@ public virtual void Dispose() { public SWIGTYPE_p_GoInt_ N { set { - skycoinPINVOKE.api__RichlistParams_N_set(swigCPtr, SWIGTYPE_p_GoInt_.getCPtr(value)); + skycoinPINVOKE.set_api__RichlistParams_N(swigCPtr, SWIGTYPE_p_GoInt_.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_GoInt_ ret = new SWIGTYPE_p_GoInt_(skycoinPINVOKE.api__RichlistParams_N_get(swigCPtr), true); + SWIGTYPE_p_GoInt_ ret = new SWIGTYPE_p_GoInt_(skycoinPINVOKE.get_api__RichlistParams_N(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -54,11 +54,11 @@ public SWIGTYPE_p_GoInt_ N { public SWIGTYPE_p_BOOL IncludeDistribution { set { - skycoinPINVOKE.api__RichlistParams_IncludeDistribution_set(swigCPtr, SWIGTYPE_p_BOOL.getCPtr(value)); + skycoinPINVOKE.set_api__RichlistParams_IncludeDistribution(swigCPtr, SWIGTYPE_p_BOOL.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_BOOL ret = new SWIGTYPE_p_BOOL(skycoinPINVOKE.api__RichlistParams_IncludeDistribution_get(swigCPtr), true); + SWIGTYPE_p_BOOL ret = new SWIGTYPE_p_BOOL(skycoinPINVOKE.get_api__RichlistParams_IncludeDistribution(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } diff --git a/LibskycoinNet/skycoin/cipher_Addresses.cs b/LibskycoinNet/skycoin/cipher_Addresses.cs index 16368271..f86592a1 100644 --- a/LibskycoinNet/skycoin/cipher_Addresses.cs +++ b/LibskycoinNet/skycoin/cipher_Addresses.cs @@ -42,10 +42,10 @@ public virtual void Dispose() { public cipher__Address data { set { - skycoinPINVOKE.cipher_Addresses_data_set(swigCPtr, cipher__Address.getCPtr(value)); + skycoinPINVOKE.set_cipher_Addresses_data(swigCPtr, cipher__Address.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.cipher_Addresses_data_get(swigCPtr); + global::System.IntPtr cPtr = skycoinPINVOKE.get_cipher_Addresses_data(swigCPtr); cipher__Address ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher__Address(cPtr, false); return ret; } @@ -53,10 +53,10 @@ public cipher__Address data { public int count { set { - skycoinPINVOKE.cipher_Addresses_count_set(swigCPtr, value); + skycoinPINVOKE.set_cipher_Addresses_count(swigCPtr, value); } get { - int ret = skycoinPINVOKE.cipher_Addresses_count_get(swigCPtr); + int ret = skycoinPINVOKE.get_cipher_Addresses_count(swigCPtr); return ret; } } diff --git a/LibskycoinNet/skycoin/cipher_Checksum.cs b/LibskycoinNet/skycoin/cipher_Checksum.cs index 35260312..09fdd771 100644 --- a/LibskycoinNet/skycoin/cipher_Checksum.cs +++ b/LibskycoinNet/skycoin/cipher_Checksum.cs @@ -55,10 +55,10 @@ public void assignTo(SWIGTYPE_p_void data) { public SWIGTYPE_p_unsigned_char data { set { - skycoinPINVOKE.cipher_Checksum_data_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); + skycoinPINVOKE.set_cipher_Checksum_data(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.cipher_Checksum_data_get(swigCPtr); + global::System.IntPtr cPtr = skycoinPINVOKE.get_cipher_Checksum_data(swigCPtr); SWIGTYPE_p_unsigned_char ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); return ret; } diff --git a/LibskycoinNet/skycoin/cipher_PubKey.cs b/LibskycoinNet/skycoin/cipher_PubKey.cs index d640f7e8..83d6b5dd 100644 --- a/LibskycoinNet/skycoin/cipher_PubKey.cs +++ b/LibskycoinNet/skycoin/cipher_PubKey.cs @@ -55,10 +55,10 @@ public void assignTo(SWIGTYPE_p_void data) { public SWIGTYPE_p_unsigned_char data { set { - skycoinPINVOKE.cipher_PubKey_data_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); + skycoinPINVOKE.set_cipher_PubKey_data(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.cipher_PubKey_data_get(swigCPtr); + global::System.IntPtr cPtr = skycoinPINVOKE.get_cipher_PubKey_data(swigCPtr); SWIGTYPE_p_unsigned_char ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); return ret; } diff --git a/LibskycoinNet/skycoin/cipher_PubKeys.cs b/LibskycoinNet/skycoin/cipher_PubKeys.cs index 0586b5c8..db2db772 100644 --- a/LibskycoinNet/skycoin/cipher_PubKeys.cs +++ b/LibskycoinNet/skycoin/cipher_PubKeys.cs @@ -66,10 +66,10 @@ public void release() { public cipher_PubKey data { set { - skycoinPINVOKE.cipher_PubKeys_data_set(swigCPtr, cipher_PubKey.getCPtr(value)); + skycoinPINVOKE.set_cipher_PubKeys_data(swigCPtr, cipher_PubKey.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.cipher_PubKeys_data_get(swigCPtr); + global::System.IntPtr cPtr = skycoinPINVOKE.get_cipher_PubKeys_data(swigCPtr); cipher_PubKey ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher_PubKey(cPtr, false); return ret; } @@ -77,10 +77,10 @@ public cipher_PubKey data { public int count { set { - skycoinPINVOKE.cipher_PubKeys_count_set(swigCPtr, value); + skycoinPINVOKE.set_cipher_PubKeys_count(swigCPtr, value); } get { - int ret = skycoinPINVOKE.cipher_PubKeys_count_get(swigCPtr); + int ret = skycoinPINVOKE.get_cipher_PubKeys_count(swigCPtr); return ret; } } diff --git a/LibskycoinNet/skycoin/cipher_Ripemd160.cs b/LibskycoinNet/skycoin/cipher_Ripemd160.cs index 39490c60..d92e62cf 100644 --- a/LibskycoinNet/skycoin/cipher_Ripemd160.cs +++ b/LibskycoinNet/skycoin/cipher_Ripemd160.cs @@ -55,10 +55,10 @@ public void assignTo(SWIGTYPE_p_void data) { public SWIGTYPE_p_unsigned_char data { set { - skycoinPINVOKE.cipher_Ripemd160_data_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); + skycoinPINVOKE.set_cipher_Ripemd160_data(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.cipher_Ripemd160_data_get(swigCPtr); + global::System.IntPtr cPtr = skycoinPINVOKE.get_cipher_Ripemd160_data(swigCPtr); SWIGTYPE_p_unsigned_char ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); return ret; } diff --git a/LibskycoinNet/skycoin/cipher_SHA256.cs b/LibskycoinNet/skycoin/cipher_SHA256.cs index 0bf1631b..e7f6b91a 100644 --- a/LibskycoinNet/skycoin/cipher_SHA256.cs +++ b/LibskycoinNet/skycoin/cipher_SHA256.cs @@ -55,10 +55,10 @@ public void assignTo(SWIGTYPE_p_void data) { public SWIGTYPE_p_unsigned_char data { set { - skycoinPINVOKE.cipher_SHA256_data_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); + skycoinPINVOKE.set_cipher_SHA256_data(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.cipher_SHA256_data_get(swigCPtr); + global::System.IntPtr cPtr = skycoinPINVOKE.get_cipher_SHA256_data(swigCPtr); SWIGTYPE_p_unsigned_char ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); return ret; } diff --git a/LibskycoinNet/skycoin/cipher_SHA256s.cs b/LibskycoinNet/skycoin/cipher_SHA256s.cs index a390b06c..aac56aa6 100644 --- a/LibskycoinNet/skycoin/cipher_SHA256s.cs +++ b/LibskycoinNet/skycoin/cipher_SHA256s.cs @@ -66,10 +66,10 @@ public void release() { public cipher_SHA256 data { set { - skycoinPINVOKE.cipher_SHA256s_data_set(swigCPtr, cipher_SHA256.getCPtr(value)); + skycoinPINVOKE.set_cipher_SHA256s_data(swigCPtr, cipher_SHA256.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.cipher_SHA256s_data_get(swigCPtr); + global::System.IntPtr cPtr = skycoinPINVOKE.get_cipher_SHA256s_data(swigCPtr); cipher_SHA256 ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher_SHA256(cPtr, false); return ret; } @@ -77,10 +77,10 @@ public cipher_SHA256 data { public int count { set { - skycoinPINVOKE.cipher_SHA256s_count_set(swigCPtr, value); + skycoinPINVOKE.set_cipher_SHA256s_count(swigCPtr, value); } get { - int ret = skycoinPINVOKE.cipher_SHA256s_count_get(swigCPtr); + int ret = skycoinPINVOKE.get_cipher_SHA256s_count(swigCPtr); return ret; } } diff --git a/LibskycoinNet/skycoin/cipher_SecKey.cs b/LibskycoinNet/skycoin/cipher_SecKey.cs index 974a4fca..4eeab2b5 100644 --- a/LibskycoinNet/skycoin/cipher_SecKey.cs +++ b/LibskycoinNet/skycoin/cipher_SecKey.cs @@ -55,10 +55,10 @@ public void assignTo(SWIGTYPE_p_void data) { public SWIGTYPE_p_unsigned_char data { set { - skycoinPINVOKE.cipher_SecKey_data_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); + skycoinPINVOKE.set_cipher_SecKey_data(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.cipher_SecKey_data_get(swigCPtr); + global::System.IntPtr cPtr = skycoinPINVOKE.get_cipher_SecKey_data(swigCPtr); SWIGTYPE_p_unsigned_char ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); return ret; } diff --git a/LibskycoinNet/skycoin/cipher_SecKeys.cs b/LibskycoinNet/skycoin/cipher_SecKeys.cs index 5740661b..eec06737 100644 --- a/LibskycoinNet/skycoin/cipher_SecKeys.cs +++ b/LibskycoinNet/skycoin/cipher_SecKeys.cs @@ -66,10 +66,10 @@ public void release() { public cipher_SecKey data { set { - skycoinPINVOKE.cipher_SecKeys_data_set(swigCPtr, cipher_SecKey.getCPtr(value)); + skycoinPINVOKE.set_cipher_SecKeys_data(swigCPtr, cipher_SecKey.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.cipher_SecKeys_data_get(swigCPtr); + global::System.IntPtr cPtr = skycoinPINVOKE.get_cipher_SecKeys_data(swigCPtr); cipher_SecKey ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher_SecKey(cPtr, false); return ret; } @@ -77,10 +77,10 @@ public cipher_SecKey data { public int count { set { - skycoinPINVOKE.cipher_SecKeys_count_set(swigCPtr, value); + skycoinPINVOKE.set_cipher_SecKeys_count(swigCPtr, value); } get { - int ret = skycoinPINVOKE.cipher_SecKeys_count_get(swigCPtr); + int ret = skycoinPINVOKE.get_cipher_SecKeys_count(swigCPtr); return ret; } } diff --git a/LibskycoinNet/skycoin/cipher_Sig.cs b/LibskycoinNet/skycoin/cipher_Sig.cs index 9233ff0c..ee28bf80 100644 --- a/LibskycoinNet/skycoin/cipher_Sig.cs +++ b/LibskycoinNet/skycoin/cipher_Sig.cs @@ -55,10 +55,10 @@ public void assignTo(SWIGTYPE_p_void data) { public SWIGTYPE_p_unsigned_char data { set { - skycoinPINVOKE.cipher_Sig_data_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); + skycoinPINVOKE.set_cipher_Sig_data(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.cipher_Sig_data_get(swigCPtr); + global::System.IntPtr cPtr = skycoinPINVOKE.get_cipher_Sig_data(swigCPtr); SWIGTYPE_p_unsigned_char ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); return ret; } diff --git a/LibskycoinNet/skycoin/cipher__Address.cs b/LibskycoinNet/skycoin/cipher__Address.cs index 12bc8028..85b30735 100644 --- a/LibskycoinNet/skycoin/cipher__Address.cs +++ b/LibskycoinNet/skycoin/cipher__Address.cs @@ -47,11 +47,11 @@ public int isEqual(cipher__Address a) { public SWIGTYPE_p_GoUint8_ Version { set { - skycoinPINVOKE.cipher__Address_Version_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); + skycoinPINVOKE.set_cipher__Address_Version(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_GoUint8_ ret = new SWIGTYPE_p_GoUint8_(skycoinPINVOKE.cipher__Address_Version_get(swigCPtr), true); + SWIGTYPE_p_GoUint8_ ret = new SWIGTYPE_p_GoUint8_(skycoinPINVOKE.get_cipher__Address_Version(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -59,10 +59,10 @@ public SWIGTYPE_p_GoUint8_ Version { public SWIGTYPE_p_GoUint8_ Key { set { - skycoinPINVOKE.cipher__Address_Key_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); + skycoinPINVOKE.set_cipher__Address_Key(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.cipher__Address_Key_get(swigCPtr); + global::System.IntPtr cPtr = skycoinPINVOKE.get_cipher__Address_Key(swigCPtr); SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); return ret; } diff --git a/LibskycoinNet/skycoin/cli__SendAmount.cs b/LibskycoinNet/skycoin/cli__SendAmount.cs index f74e4d54..bf2c0231 100644 --- a/LibskycoinNet/skycoin/cli__SendAmount.cs +++ b/LibskycoinNet/skycoin/cli__SendAmount.cs @@ -42,11 +42,11 @@ public virtual void Dispose() { public SWIGTYPE_p_GoString_ Addr { set { - skycoinPINVOKE.cli__SendAmount_Addr_set(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); + skycoinPINVOKE.set_cli__SendAmount_Addr(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.cli__SendAmount_Addr_get(swigCPtr), true); + SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.get_cli__SendAmount_Addr(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -54,11 +54,11 @@ public SWIGTYPE_p_GoString_ Addr { public SWIGTYPE_p_GoInt64_ Coins { set { - skycoinPINVOKE.cli__SendAmount_Coins_set(swigCPtr, SWIGTYPE_p_GoInt64_.getCPtr(value)); + skycoinPINVOKE.set_cli__SendAmount_Coins(swigCPtr, SWIGTYPE_p_GoInt64_.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_GoInt64_ ret = new SWIGTYPE_p_GoInt64_(skycoinPINVOKE.cli__SendAmount_Coins_get(swigCPtr), true); + SWIGTYPE_p_GoInt64_ ret = new SWIGTYPE_p_GoInt64_(skycoinPINVOKE.get_cli__SendAmount_Coins(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } diff --git a/LibskycoinNet/skycoin/coin_UxOutArray.cs b/LibskycoinNet/skycoin/coin_UxOutArray.cs index a204cbae..0998db9d 100644 --- a/LibskycoinNet/skycoin/coin_UxOutArray.cs +++ b/LibskycoinNet/skycoin/coin_UxOutArray.cs @@ -66,10 +66,10 @@ public void release() { public coin__UxOut data { set { - skycoinPINVOKE.coin_UxOutArray_data_set(swigCPtr, coin__UxOut.getCPtr(value)); + skycoinPINVOKE.set_coin_UxOutArray_data(swigCPtr, coin__UxOut.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.coin_UxOutArray_data_get(swigCPtr); + global::System.IntPtr cPtr = skycoinPINVOKE.get_coin_UxOutArray_data(swigCPtr); coin__UxOut ret = (cPtr == global::System.IntPtr.Zero) ? null : new coin__UxOut(cPtr, false); return ret; } @@ -77,10 +77,10 @@ public coin__UxOut data { public int count { set { - skycoinPINVOKE.coin_UxOutArray_count_set(swigCPtr, value); + skycoinPINVOKE.set_coin_UxOutArray_count(swigCPtr, value); } get { - int ret = skycoinPINVOKE.coin_UxOutArray_count_get(swigCPtr); + int ret = skycoinPINVOKE.get_coin_UxOutArray_count(swigCPtr); return ret; } } diff --git a/LibskycoinNet/skycoin/coin__Block.cs b/LibskycoinNet/skycoin/coin__Block.cs index 2f434119..8c02b84a 100644 --- a/LibskycoinNet/skycoin/coin__Block.cs +++ b/LibskycoinNet/skycoin/coin__Block.cs @@ -42,10 +42,10 @@ public virtual void Dispose() { public coin__BlockHeader Head { set { - skycoinPINVOKE.coin__Block_Head_set(swigCPtr, coin__BlockHeader.getCPtr(value)); + skycoinPINVOKE.set_coin__Block_Head(swigCPtr, coin__BlockHeader.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.coin__Block_Head_get(swigCPtr); + global::System.IntPtr cPtr = skycoinPINVOKE.get_coin__Block_Head(swigCPtr); coin__BlockHeader ret = (cPtr == global::System.IntPtr.Zero) ? null : new coin__BlockHeader(cPtr, false); return ret; } @@ -53,10 +53,10 @@ public coin__BlockHeader Head { public coin__BlockBody Body { set { - skycoinPINVOKE.coin__Block_Body_set(swigCPtr, coin__BlockBody.getCPtr(value)); + skycoinPINVOKE.set_coin__Block_Body(swigCPtr, coin__BlockBody.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.coin__Block_Body_get(swigCPtr); + global::System.IntPtr cPtr = skycoinPINVOKE.get_coin__Block_Body(swigCPtr); coin__BlockBody ret = (cPtr == global::System.IntPtr.Zero) ? null : new coin__BlockBody(cPtr, false); return ret; } diff --git a/LibskycoinNet/skycoin/coin__BlockBody.cs b/LibskycoinNet/skycoin/coin__BlockBody.cs index 24aa32eb..c325f29f 100644 --- a/LibskycoinNet/skycoin/coin__BlockBody.cs +++ b/LibskycoinNet/skycoin/coin__BlockBody.cs @@ -47,11 +47,11 @@ public int isEqual(coin__BlockBody b) { public SWIGTYPE_p_GoSlice_ Transactions { set { - skycoinPINVOKE.coin__BlockBody_Transactions_set(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); + skycoinPINVOKE.set_coin__BlockBody_Transactions(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.coin__BlockBody_Transactions_get(swigCPtr), true); + SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.get_coin__BlockBody_Transactions(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } diff --git a/LibskycoinNet/skycoin/coin__BlockHeader.cs b/LibskycoinNet/skycoin/coin__BlockHeader.cs index 1c4703a2..fdef1250 100644 --- a/LibskycoinNet/skycoin/coin__BlockHeader.cs +++ b/LibskycoinNet/skycoin/coin__BlockHeader.cs @@ -47,11 +47,11 @@ public int isEqual(coin__BlockHeader bh) { public SWIGTYPE_p_GoUint32_ Version { set { - skycoinPINVOKE.coin__BlockHeader_Version_set(swigCPtr, SWIGTYPE_p_GoUint32_.getCPtr(value)); + skycoinPINVOKE.set_coin__BlockHeader_Version(swigCPtr, SWIGTYPE_p_GoUint32_.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_GoUint32_ ret = new SWIGTYPE_p_GoUint32_(skycoinPINVOKE.coin__BlockHeader_Version_get(swigCPtr), true); + SWIGTYPE_p_GoUint32_ ret = new SWIGTYPE_p_GoUint32_(skycoinPINVOKE.get_coin__BlockHeader_Version(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -59,11 +59,11 @@ public SWIGTYPE_p_GoUint32_ Version { public SWIGTYPE_p_GoUint64_ Time { set { - skycoinPINVOKE.coin__BlockHeader_Time_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); + skycoinPINVOKE.set_coin__BlockHeader_Time(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.coin__BlockHeader_Time_get(swigCPtr), true); + SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.get_coin__BlockHeader_Time(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -71,11 +71,11 @@ public SWIGTYPE_p_GoUint64_ Time { public SWIGTYPE_p_GoUint64_ BkSeq { set { - skycoinPINVOKE.coin__BlockHeader_BkSeq_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); + skycoinPINVOKE.set_coin__BlockHeader_BkSeq(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.coin__BlockHeader_BkSeq_get(swigCPtr), true); + SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.get_coin__BlockHeader_BkSeq(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -83,11 +83,11 @@ public SWIGTYPE_p_GoUint64_ BkSeq { public SWIGTYPE_p_GoUint64_ Fee { set { - skycoinPINVOKE.coin__BlockHeader_Fee_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); + skycoinPINVOKE.set_coin__BlockHeader_Fee(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.coin__BlockHeader_Fee_get(swigCPtr), true); + SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.get_coin__BlockHeader_Fee(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -95,10 +95,10 @@ public SWIGTYPE_p_GoUint64_ Fee { public SWIGTYPE_p_GoUint8_ PrevHash { set { - skycoinPINVOKE.coin__BlockHeader_PrevHash_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); + skycoinPINVOKE.set_coin__BlockHeader_PrevHash(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.coin__BlockHeader_PrevHash_get(swigCPtr); + global::System.IntPtr cPtr = skycoinPINVOKE.get_coin__BlockHeader_PrevHash(swigCPtr); SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); return ret; } @@ -106,10 +106,10 @@ public SWIGTYPE_p_GoUint8_ PrevHash { public SWIGTYPE_p_GoUint8_ BodyHash { set { - skycoinPINVOKE.coin__BlockHeader_BodyHash_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); + skycoinPINVOKE.set_coin__BlockHeader_BodyHash(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.coin__BlockHeader_BodyHash_get(swigCPtr); + global::System.IntPtr cPtr = skycoinPINVOKE.get_coin__BlockHeader_BodyHash(swigCPtr); SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); return ret; } @@ -117,10 +117,10 @@ public SWIGTYPE_p_GoUint8_ BodyHash { public SWIGTYPE_p_GoUint8_ UxHash { set { - skycoinPINVOKE.coin__BlockHeader_UxHash_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); + skycoinPINVOKE.set_coin__BlockHeader_UxHash(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.coin__BlockHeader_UxHash_get(swigCPtr); + global::System.IntPtr cPtr = skycoinPINVOKE.get_coin__BlockHeader_UxHash(swigCPtr); SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); return ret; } diff --git a/LibskycoinNet/skycoin/coin__SignedBlock.cs b/LibskycoinNet/skycoin/coin__SignedBlock.cs index 20b63f9f..035fb11b 100644 --- a/LibskycoinNet/skycoin/coin__SignedBlock.cs +++ b/LibskycoinNet/skycoin/coin__SignedBlock.cs @@ -42,10 +42,10 @@ public virtual void Dispose() { public coin__Block _unnamed { set { - skycoinPINVOKE.coin__SignedBlock__unnamed_set(swigCPtr, coin__Block.getCPtr(value)); + skycoinPINVOKE.set_coin__SignedBlock__unnamed(swigCPtr, coin__Block.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.coin__SignedBlock__unnamed_get(swigCPtr); + global::System.IntPtr cPtr = skycoinPINVOKE.get_coin__SignedBlock__unnamed(swigCPtr); coin__Block ret = (cPtr == global::System.IntPtr.Zero) ? null : new coin__Block(cPtr, false); return ret; } @@ -53,10 +53,10 @@ public coin__Block _unnamed { public SWIGTYPE_p_GoUint8_ Sig { set { - skycoinPINVOKE.coin__SignedBlock_Sig_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); + skycoinPINVOKE.set_coin__SignedBlock_Sig(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.coin__SignedBlock_Sig_get(swigCPtr); + global::System.IntPtr cPtr = skycoinPINVOKE.get_coin__SignedBlock_Sig(swigCPtr); SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); return ret; } diff --git a/LibskycoinNet/skycoin/coin__SortableTransactions.cs b/LibskycoinNet/skycoin/coin__SortableTransactions.cs index 534b34a4..efb7e857 100644 --- a/LibskycoinNet/skycoin/coin__SortableTransactions.cs +++ b/LibskycoinNet/skycoin/coin__SortableTransactions.cs @@ -42,11 +42,11 @@ public virtual void Dispose() { public SWIGTYPE_p_GoSlice_ Txns { set { - skycoinPINVOKE.coin__SortableTransactions_Txns_set(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); + skycoinPINVOKE.set_coin__SortableTransactions_Txns(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.coin__SortableTransactions_Txns_get(swigCPtr), true); + SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.get_coin__SortableTransactions_Txns(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -54,11 +54,11 @@ public SWIGTYPE_p_GoSlice_ Txns { public SWIGTYPE_p_GoSlice_ Fees { set { - skycoinPINVOKE.coin__SortableTransactions_Fees_set(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); + skycoinPINVOKE.set_coin__SortableTransactions_Fees(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.coin__SortableTransactions_Fees_get(swigCPtr), true); + SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.get_coin__SortableTransactions_Fees(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -66,11 +66,11 @@ public SWIGTYPE_p_GoSlice_ Fees { public SWIGTYPE_p_GoSlice_ Hashes { set { - skycoinPINVOKE.coin__SortableTransactions_Hashes_set(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); + skycoinPINVOKE.set_coin__SortableTransactions_Hashes(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.coin__SortableTransactions_Hashes_get(swigCPtr), true); + SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.get_coin__SortableTransactions_Hashes(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } diff --git a/LibskycoinNet/skycoin/coin__Transaction.cs b/LibskycoinNet/skycoin/coin__Transaction.cs index 68a75704..74b265b6 100644 --- a/LibskycoinNet/skycoin/coin__Transaction.cs +++ b/LibskycoinNet/skycoin/coin__Transaction.cs @@ -47,11 +47,11 @@ public int isEqual(coin__Transaction t) { public SWIGTYPE_p_GoInt32_ Length { set { - skycoinPINVOKE.coin__Transaction_Length_set(swigCPtr, SWIGTYPE_p_GoInt32_.getCPtr(value)); + skycoinPINVOKE.set_coin__Transaction_Length(swigCPtr, SWIGTYPE_p_GoInt32_.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_GoInt32_ ret = new SWIGTYPE_p_GoInt32_(skycoinPINVOKE.coin__Transaction_Length_get(swigCPtr), true); + SWIGTYPE_p_GoInt32_ ret = new SWIGTYPE_p_GoInt32_(skycoinPINVOKE.get_coin__Transaction_Length(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -59,11 +59,11 @@ public SWIGTYPE_p_GoInt32_ Length { public SWIGTYPE_p_GoInt8_ Type { set { - skycoinPINVOKE.coin__Transaction_Type_set(swigCPtr, SWIGTYPE_p_GoInt8_.getCPtr(value)); + skycoinPINVOKE.set_coin__Transaction_Type(swigCPtr, SWIGTYPE_p_GoInt8_.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_GoInt8_ ret = new SWIGTYPE_p_GoInt8_(skycoinPINVOKE.coin__Transaction_Type_get(swigCPtr), true); + SWIGTYPE_p_GoInt8_ ret = new SWIGTYPE_p_GoInt8_(skycoinPINVOKE.get_coin__Transaction_Type(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -71,10 +71,10 @@ public SWIGTYPE_p_GoInt8_ Type { public SWIGTYPE_p_GoUint8_ InnerHash { set { - skycoinPINVOKE.coin__Transaction_InnerHash_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); + skycoinPINVOKE.set_coin__Transaction_InnerHash(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.coin__Transaction_InnerHash_get(swigCPtr); + global::System.IntPtr cPtr = skycoinPINVOKE.get_coin__Transaction_InnerHash(swigCPtr); SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); return ret; } @@ -82,11 +82,11 @@ public SWIGTYPE_p_GoUint8_ InnerHash { public SWIGTYPE_p_GoSlice_ Sigs { set { - skycoinPINVOKE.coin__Transaction_Sigs_set(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); + skycoinPINVOKE.set_coin__Transaction_Sigs(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.coin__Transaction_Sigs_get(swigCPtr), true); + SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.get_coin__Transaction_Sigs(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -94,11 +94,11 @@ public SWIGTYPE_p_GoSlice_ Sigs { public SWIGTYPE_p_GoSlice_ In { set { - skycoinPINVOKE.coin__Transaction_In_set(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); + skycoinPINVOKE.set_coin__Transaction_In(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.coin__Transaction_In_get(swigCPtr), true); + SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.get_coin__Transaction_In(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -106,11 +106,11 @@ public SWIGTYPE_p_GoSlice_ In { public SWIGTYPE_p_GoSlice_ Out { set { - skycoinPINVOKE.coin__Transaction_Out_set(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); + skycoinPINVOKE.set_coin__Transaction_Out(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.coin__Transaction_Out_get(swigCPtr), true); + SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.get_coin__Transaction_Out(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } diff --git a/LibskycoinNet/skycoin/coin__TransactionOutput.cs b/LibskycoinNet/skycoin/coin__TransactionOutput.cs index 656d769b..12d2f7d9 100644 --- a/LibskycoinNet/skycoin/coin__TransactionOutput.cs +++ b/LibskycoinNet/skycoin/coin__TransactionOutput.cs @@ -47,10 +47,10 @@ public int isEqual(coin__TransactionOutput t) { public cipher__Address Address { set { - skycoinPINVOKE.coin__TransactionOutput_Address_set(swigCPtr, cipher__Address.getCPtr(value)); + skycoinPINVOKE.set_coin__TransactionOutput_Address(swigCPtr, cipher__Address.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.coin__TransactionOutput_Address_get(swigCPtr); + global::System.IntPtr cPtr = skycoinPINVOKE.get_coin__TransactionOutput_Address(swigCPtr); cipher__Address ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher__Address(cPtr, false); return ret; } @@ -58,11 +58,11 @@ public cipher__Address Address { public SWIGTYPE_p_GoUint64_ Coins { set { - skycoinPINVOKE.coin__TransactionOutput_Coins_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); + skycoinPINVOKE.set_coin__TransactionOutput_Coins(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.coin__TransactionOutput_Coins_get(swigCPtr), true); + SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.get_coin__TransactionOutput_Coins(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -70,11 +70,11 @@ public SWIGTYPE_p_GoUint64_ Coins { public SWIGTYPE_p_GoUint64_ Hours { set { - skycoinPINVOKE.coin__TransactionOutput_Hours_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); + skycoinPINVOKE.set_coin__TransactionOutput_Hours(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.coin__TransactionOutput_Hours_get(swigCPtr), true); + SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.get_coin__TransactionOutput_Hours(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } diff --git a/LibskycoinNet/skycoin/coin__UxBody.cs b/LibskycoinNet/skycoin/coin__UxBody.cs index 2dffc686..9a7de701 100644 --- a/LibskycoinNet/skycoin/coin__UxBody.cs +++ b/LibskycoinNet/skycoin/coin__UxBody.cs @@ -42,10 +42,10 @@ public virtual void Dispose() { public SWIGTYPE_p_GoUint8_ SrcTransaction { set { - skycoinPINVOKE.coin__UxBody_SrcTransaction_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); + skycoinPINVOKE.set_coin__UxBody_SrcTransaction(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.coin__UxBody_SrcTransaction_get(swigCPtr); + global::System.IntPtr cPtr = skycoinPINVOKE.get_coin__UxBody_SrcTransaction(swigCPtr); SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); return ret; } @@ -53,10 +53,10 @@ public SWIGTYPE_p_GoUint8_ SrcTransaction { public cipher__Address Address { set { - skycoinPINVOKE.coin__UxBody_Address_set(swigCPtr, cipher__Address.getCPtr(value)); + skycoinPINVOKE.set_coin__UxBody_Address(swigCPtr, cipher__Address.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.coin__UxBody_Address_get(swigCPtr); + global::System.IntPtr cPtr = skycoinPINVOKE.get_coin__UxBody_Address(swigCPtr); cipher__Address ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher__Address(cPtr, false); return ret; } @@ -64,11 +64,11 @@ public cipher__Address Address { public SWIGTYPE_p_GoUint64_ Coins { set { - skycoinPINVOKE.coin__UxBody_Coins_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); + skycoinPINVOKE.set_coin__UxBody_Coins(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.coin__UxBody_Coins_get(swigCPtr), true); + SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.get_coin__UxBody_Coins(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -76,11 +76,11 @@ public SWIGTYPE_p_GoUint64_ Coins { public SWIGTYPE_p_GoUint64_ Hours { set { - skycoinPINVOKE.coin__UxBody_Hours_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); + skycoinPINVOKE.set_coin__UxBody_Hours(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.coin__UxBody_Hours_get(swigCPtr), true); + SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.get_coin__UxBody_Hours(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } diff --git a/LibskycoinNet/skycoin/coin__UxHead.cs b/LibskycoinNet/skycoin/coin__UxHead.cs index 5a7f245e..d24a39dc 100644 --- a/LibskycoinNet/skycoin/coin__UxHead.cs +++ b/LibskycoinNet/skycoin/coin__UxHead.cs @@ -42,11 +42,11 @@ public virtual void Dispose() { public SWIGTYPE_p_GoUint64_ Time { set { - skycoinPINVOKE.coin__UxHead_Time_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); + skycoinPINVOKE.set_coin__UxHead_Time(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.coin__UxHead_Time_get(swigCPtr), true); + SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.get_coin__UxHead_Time(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -54,11 +54,11 @@ public SWIGTYPE_p_GoUint64_ Time { public SWIGTYPE_p_GoUint64_ BkSeq { set { - skycoinPINVOKE.coin__UxHead_BkSeq_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); + skycoinPINVOKE.set_coin__UxHead_BkSeq(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.coin__UxHead_BkSeq_get(swigCPtr), true); + SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.get_coin__UxHead_BkSeq(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } diff --git a/LibskycoinNet/skycoin/coin__UxOut.cs b/LibskycoinNet/skycoin/coin__UxOut.cs index ac1bfc43..0290ef0b 100644 --- a/LibskycoinNet/skycoin/coin__UxOut.cs +++ b/LibskycoinNet/skycoin/coin__UxOut.cs @@ -47,10 +47,10 @@ public int isEqual(coin__UxOut u) { public coin__UxHead Head { set { - skycoinPINVOKE.coin__UxOut_Head_set(swigCPtr, coin__UxHead.getCPtr(value)); + skycoinPINVOKE.set_coin__UxOut_Head(swigCPtr, coin__UxHead.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.coin__UxOut_Head_get(swigCPtr); + global::System.IntPtr cPtr = skycoinPINVOKE.get_coin__UxOut_Head(swigCPtr); coin__UxHead ret = (cPtr == global::System.IntPtr.Zero) ? null : new coin__UxHead(cPtr, false); return ret; } @@ -58,10 +58,10 @@ public coin__UxHead Head { public coin__UxBody Body { set { - skycoinPINVOKE.coin__UxOut_Body_set(swigCPtr, coin__UxBody.getCPtr(value)); + skycoinPINVOKE.set_coin__UxOut_Body(swigCPtr, coin__UxBody.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.coin__UxOut_Body_get(swigCPtr); + global::System.IntPtr cPtr = skycoinPINVOKE.get_coin__UxOut_Body(swigCPtr); coin__UxBody ret = (cPtr == global::System.IntPtr.Zero) ? null : new coin__UxBody(cPtr, false); return ret; } diff --git a/LibskycoinNet/skycoin/encoder__StructField.cs b/LibskycoinNet/skycoin/encoder__StructField.cs index 7283d5be..7c50022f 100644 --- a/LibskycoinNet/skycoin/encoder__StructField.cs +++ b/LibskycoinNet/skycoin/encoder__StructField.cs @@ -42,11 +42,11 @@ public virtual void Dispose() { public SWIGTYPE_p_GoString_ Name { set { - skycoinPINVOKE.encoder__StructField_Name_set(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); + skycoinPINVOKE.set_encoder__StructField_Name(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.encoder__StructField_Name_get(swigCPtr), true); + SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.get_encoder__StructField_Name(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -54,11 +54,11 @@ public SWIGTYPE_p_GoString_ Name { public SWIGTYPE_p_GoUint32_ Kind { set { - skycoinPINVOKE.encoder__StructField_Kind_set(swigCPtr, SWIGTYPE_p_GoUint32_.getCPtr(value)); + skycoinPINVOKE.set_encoder__StructField_Kind(swigCPtr, SWIGTYPE_p_GoUint32_.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_GoUint32_ ret = new SWIGTYPE_p_GoUint32_(skycoinPINVOKE.encoder__StructField_Kind_get(swigCPtr), true); + SWIGTYPE_p_GoUint32_ ret = new SWIGTYPE_p_GoUint32_(skycoinPINVOKE.get_encoder__StructField_Kind(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -66,11 +66,11 @@ public SWIGTYPE_p_GoUint32_ Kind { public SWIGTYPE_p_GoString_ Type { set { - skycoinPINVOKE.encoder__StructField_Type_set(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); + skycoinPINVOKE.set_encoder__StructField_Type(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.encoder__StructField_Type_get(swigCPtr), true); + SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.get_encoder__StructField_Type(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -78,11 +78,11 @@ public SWIGTYPE_p_GoString_ Type { public SWIGTYPE_p_GoString_ Tag { set { - skycoinPINVOKE.encoder__StructField_Tag_set(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); + skycoinPINVOKE.set_encoder__StructField_Tag(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.encoder__StructField_Tag_get(swigCPtr), true); + SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.get_encoder__StructField_Tag(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } diff --git a/LibskycoinNet/skycoin/encrypt__ScryptChacha20poly1305.cs b/LibskycoinNet/skycoin/encrypt__ScryptChacha20poly1305.cs index a7960fe1..1c1a0d76 100644 --- a/LibskycoinNet/skycoin/encrypt__ScryptChacha20poly1305.cs +++ b/LibskycoinNet/skycoin/encrypt__ScryptChacha20poly1305.cs @@ -42,11 +42,11 @@ public virtual void Dispose() { public SWIGTYPE_p_GoInt_ N { set { - skycoinPINVOKE.encrypt__ScryptChacha20poly1305_N_set(swigCPtr, SWIGTYPE_p_GoInt_.getCPtr(value)); + skycoinPINVOKE.set_encrypt__ScryptChacha20poly1305_N(swigCPtr, SWIGTYPE_p_GoInt_.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_GoInt_ ret = new SWIGTYPE_p_GoInt_(skycoinPINVOKE.encrypt__ScryptChacha20poly1305_N_get(swigCPtr), true); + SWIGTYPE_p_GoInt_ ret = new SWIGTYPE_p_GoInt_(skycoinPINVOKE.get_encrypt__ScryptChacha20poly1305_N(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -54,11 +54,11 @@ public SWIGTYPE_p_GoInt_ N { public SWIGTYPE_p_GoInt_ R { set { - skycoinPINVOKE.encrypt__ScryptChacha20poly1305_R_set(swigCPtr, SWIGTYPE_p_GoInt_.getCPtr(value)); + skycoinPINVOKE.set_encrypt__ScryptChacha20poly1305_R(swigCPtr, SWIGTYPE_p_GoInt_.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_GoInt_ ret = new SWIGTYPE_p_GoInt_(skycoinPINVOKE.encrypt__ScryptChacha20poly1305_R_get(swigCPtr), true); + SWIGTYPE_p_GoInt_ ret = new SWIGTYPE_p_GoInt_(skycoinPINVOKE.get_encrypt__ScryptChacha20poly1305_R(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -66,11 +66,11 @@ public SWIGTYPE_p_GoInt_ R { public SWIGTYPE_p_GoInt_ P { set { - skycoinPINVOKE.encrypt__ScryptChacha20poly1305_P_set(swigCPtr, SWIGTYPE_p_GoInt_.getCPtr(value)); + skycoinPINVOKE.set_encrypt__ScryptChacha20poly1305_P(swigCPtr, SWIGTYPE_p_GoInt_.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_GoInt_ ret = new SWIGTYPE_p_GoInt_(skycoinPINVOKE.encrypt__ScryptChacha20poly1305_P_get(swigCPtr), true); + SWIGTYPE_p_GoInt_ ret = new SWIGTYPE_p_GoInt_(skycoinPINVOKE.get_encrypt__ScryptChacha20poly1305_P(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -78,11 +78,11 @@ public SWIGTYPE_p_GoInt_ P { public SWIGTYPE_p_GoInt_ KeyLen { set { - skycoinPINVOKE.encrypt__ScryptChacha20poly1305_KeyLen_set(swigCPtr, SWIGTYPE_p_GoInt_.getCPtr(value)); + skycoinPINVOKE.set_encrypt__ScryptChacha20poly1305_KeyLen(swigCPtr, SWIGTYPE_p_GoInt_.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_GoInt_ ret = new SWIGTYPE_p_GoInt_(skycoinPINVOKE.encrypt__ScryptChacha20poly1305_KeyLen_get(swigCPtr), true); + SWIGTYPE_p_GoInt_ ret = new SWIGTYPE_p_GoInt_(skycoinPINVOKE.get_encrypt__ScryptChacha20poly1305_KeyLen(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } diff --git a/LibskycoinNet/skycoin/httphelper__Address.cs b/LibskycoinNet/skycoin/httphelper__Address.cs index 882e75ad..449f26f3 100644 --- a/LibskycoinNet/skycoin/httphelper__Address.cs +++ b/LibskycoinNet/skycoin/httphelper__Address.cs @@ -42,10 +42,10 @@ public virtual void Dispose() { public cipher__Address _unnamed { set { - skycoinPINVOKE.httphelper__Address__unnamed_set(swigCPtr, cipher__Address.getCPtr(value)); + skycoinPINVOKE.set_httphelper__Address__unnamed(swigCPtr, cipher__Address.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.httphelper__Address__unnamed_get(swigCPtr); + global::System.IntPtr cPtr = skycoinPINVOKE.get_httphelper__Address__unnamed(swigCPtr); cipher__Address ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher__Address(cPtr, false); return ret; } diff --git a/LibskycoinNet/skycoin/secp256k1go__Field.cs b/LibskycoinNet/skycoin/secp256k1go__Field.cs index ca0d1113..043bf421 100644 --- a/LibskycoinNet/skycoin/secp256k1go__Field.cs +++ b/LibskycoinNet/skycoin/secp256k1go__Field.cs @@ -42,10 +42,10 @@ public virtual void Dispose() { public SWIGTYPE_p_GoUint32_ n { set { - skycoinPINVOKE.secp256k1go__Field_n_set(swigCPtr, SWIGTYPE_p_GoUint32_.getCPtr(value)); + skycoinPINVOKE.set_secp256k1go__Field_n(swigCPtr, SWIGTYPE_p_GoUint32_.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.secp256k1go__Field_n_get(swigCPtr); + global::System.IntPtr cPtr = skycoinPINVOKE.get_secp256k1go__Field_n(swigCPtr); SWIGTYPE_p_GoUint32_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint32_(cPtr, false); return ret; } diff --git a/LibskycoinNet/skycoin/secp256k1go__XY.cs b/LibskycoinNet/skycoin/secp256k1go__XY.cs index 5fa89e8f..49479020 100644 --- a/LibskycoinNet/skycoin/secp256k1go__XY.cs +++ b/LibskycoinNet/skycoin/secp256k1go__XY.cs @@ -42,10 +42,10 @@ public virtual void Dispose() { public secp256k1go__Field X { set { - skycoinPINVOKE.secp256k1go__XY_X_set(swigCPtr, secp256k1go__Field.getCPtr(value)); + skycoinPINVOKE.set_secp256k1go__XY_X(swigCPtr, secp256k1go__Field.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.secp256k1go__XY_X_get(swigCPtr); + global::System.IntPtr cPtr = skycoinPINVOKE.get_secp256k1go__XY_X(swigCPtr); secp256k1go__Field ret = (cPtr == global::System.IntPtr.Zero) ? null : new secp256k1go__Field(cPtr, false); return ret; } @@ -53,10 +53,10 @@ public secp256k1go__Field X { public secp256k1go__Field Y { set { - skycoinPINVOKE.secp256k1go__XY_Y_set(swigCPtr, secp256k1go__Field.getCPtr(value)); + skycoinPINVOKE.set_secp256k1go__XY_Y(swigCPtr, secp256k1go__Field.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.secp256k1go__XY_Y_get(swigCPtr); + global::System.IntPtr cPtr = skycoinPINVOKE.get_secp256k1go__XY_Y(swigCPtr); secp256k1go__Field ret = (cPtr == global::System.IntPtr.Zero) ? null : new secp256k1go__Field(cPtr, false); return ret; } @@ -64,11 +64,11 @@ public secp256k1go__Field Y { public SWIGTYPE_p_BOOL Infinity { set { - skycoinPINVOKE.secp256k1go__XY_Infinity_set(swigCPtr, SWIGTYPE_p_BOOL.getCPtr(value)); + skycoinPINVOKE.set_secp256k1go__XY_Infinity(swigCPtr, SWIGTYPE_p_BOOL.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_BOOL ret = new SWIGTYPE_p_BOOL(skycoinPINVOKE.secp256k1go__XY_Infinity_get(swigCPtr), true); + SWIGTYPE_p_BOOL ret = new SWIGTYPE_p_BOOL(skycoinPINVOKE.get_secp256k1go__XY_Infinity(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } diff --git a/LibskycoinNet/skycoin/secp256k1go__XYZ.cs b/LibskycoinNet/skycoin/secp256k1go__XYZ.cs index a8d9d665..841e0b84 100644 --- a/LibskycoinNet/skycoin/secp256k1go__XYZ.cs +++ b/LibskycoinNet/skycoin/secp256k1go__XYZ.cs @@ -42,10 +42,10 @@ public virtual void Dispose() { public secp256k1go__Field X { set { - skycoinPINVOKE.secp256k1go__XYZ_X_set(swigCPtr, secp256k1go__Field.getCPtr(value)); + skycoinPINVOKE.set_secp256k1go__XYZ_X(swigCPtr, secp256k1go__Field.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.secp256k1go__XYZ_X_get(swigCPtr); + global::System.IntPtr cPtr = skycoinPINVOKE.get_secp256k1go__XYZ_X(swigCPtr); secp256k1go__Field ret = (cPtr == global::System.IntPtr.Zero) ? null : new secp256k1go__Field(cPtr, false); return ret; } @@ -53,10 +53,10 @@ public secp256k1go__Field X { public secp256k1go__Field Y { set { - skycoinPINVOKE.secp256k1go__XYZ_Y_set(swigCPtr, secp256k1go__Field.getCPtr(value)); + skycoinPINVOKE.set_secp256k1go__XYZ_Y(swigCPtr, secp256k1go__Field.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.secp256k1go__XYZ_Y_get(swigCPtr); + global::System.IntPtr cPtr = skycoinPINVOKE.get_secp256k1go__XYZ_Y(swigCPtr); secp256k1go__Field ret = (cPtr == global::System.IntPtr.Zero) ? null : new secp256k1go__Field(cPtr, false); return ret; } @@ -64,10 +64,10 @@ public secp256k1go__Field Y { public secp256k1go__Field Z { set { - skycoinPINVOKE.secp256k1go__XYZ_Z_set(swigCPtr, secp256k1go__Field.getCPtr(value)); + skycoinPINVOKE.set_secp256k1go__XYZ_Z(swigCPtr, secp256k1go__Field.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.secp256k1go__XYZ_Z_get(swigCPtr); + global::System.IntPtr cPtr = skycoinPINVOKE.get_secp256k1go__XYZ_Z(swigCPtr); secp256k1go__Field ret = (cPtr == global::System.IntPtr.Zero) ? null : new secp256k1go__Field(cPtr, false); return ret; } @@ -75,11 +75,11 @@ public secp256k1go__Field Z { public SWIGTYPE_p_BOOL Infinity { set { - skycoinPINVOKE.secp256k1go__XYZ_Infinity_set(swigCPtr, SWIGTYPE_p_BOOL.getCPtr(value)); + skycoinPINVOKE.set_secp256k1go__XYZ_Infinity(swigCPtr, SWIGTYPE_p_BOOL.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_BOOL ret = new SWIGTYPE_p_BOOL(skycoinPINVOKE.secp256k1go__XYZ_Infinity_get(swigCPtr), true); + SWIGTYPE_p_BOOL ret = new SWIGTYPE_p_BOOL(skycoinPINVOKE.get_secp256k1go__XYZ_Infinity(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs index 849d0ade..652c965d 100644 --- a/LibskycoinNet/skycoin/skycoin.cs +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -11,8 +11,8 @@ namespace skycoin { public class skycoin { - public static void destroy_cipher_SecKeys(cipher_SecKeys p) { - skycoinPINVOKE.destroy_cipher_SecKeys(cipher_SecKeys.getCPtr(p)); + public static void destroy_cipher_SecKeys(SWIGTYPE_p_cipher_SecKeys p) { + skycoinPINVOKE.destroy_cipher_SecKeys(SWIGTYPE_p_cipher_SecKeys.getCPtr(p)); } public static int equalSlices(GoSlice slice1, GoSlice slice2, int elem_size) { @@ -35,63 +35,63 @@ public static int equalBlockHeaders(coin__BlockHeader bh1, coin__BlockHeader bh2 return ret; } - public static uint SKY_coin_NewBlock(SWIGTYPE_p_Block__Handle p0, ulong p1, SWIGTYPE_p_a_32__GoUint8_ p2, SWIGTYPE_p_Transactions__Handle p3, SWIGTYPE_p_FeeCalculator p4, SWIGTYPE_p_Block__Handle p5) { - uint ret = skycoinPINVOKE.SKY_coin_NewBlock(SWIGTYPE_p_Block__Handle.getCPtr(p0), p1, SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2), SWIGTYPE_p_Transactions__Handle.getCPtr(p3), SWIGTYPE_p_FeeCalculator.getCPtr(p4), SWIGTYPE_p_Block__Handle.getCPtr(p5)); + public static uint SKY_coin_NewBlock(SWIGTYPE_p_Handle p0, ulong p1, SWIGTYPE_p_a_32__GoUint8_ p2, SWIGTYPE_p_Handle p3, SWIGTYPE_p_FeeCalculator p4) { + uint ret = skycoinPINVOKE.SKY_coin_NewBlock(SWIGTYPE_p_Handle.getCPtr(p0), p1, SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2), SWIGTYPE_p_Handle.getCPtr(p3), SWIGTYPE_p_FeeCalculator.getCPtr(p4)); return ret; } - public static uint SKY_coin_SignedBlock_VerifySignature(coin__SignedBlock p0, SWIGTYPE_p_a_33__GoUint8_ p1) { + public static uint SKY_coin_SignedBlock_VerifySignature(coin__SignedBlock p0, SWIGTYPE_p_cipher_PubKey p1) { uint ret = skycoinPINVOKE.SKY_coin_SignedBlock_VerifySignature(coin__SignedBlock.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); return ret; } - public static uint SKY_coin_NewGenesisBlock(cipher__Address p0, ulong p1, ulong p2, SWIGTYPE_p_Block__Handle p3) { - uint ret = skycoinPINVOKE.SKY_coin_NewGenesisBlock(cipher__Address.getCPtr(p0), p1, p2, SWIGTYPE_p_Block__Handle.getCPtr(p3)); + public static uint SKY_coin_NewGenesisBlock(cipher__Address p0, ulong p1, ulong p2) { + uint ret = skycoinPINVOKE.SKY_coin_NewGenesisBlock(cipher__Address.getCPtr(p0), p1, p2); return ret; } - public static uint SKY_coin_Block_HashHeader(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Block_HashHeader(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + public static uint SKY_coin_Block_HashHeader(SWIGTYPE_p_Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Block_HashHeader(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); return ret; } - public static uint SKY_coin_Block_PreHashHeader(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Block_PreHashHeader(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + public static uint SKY_coin_Block_PreHashHeader(SWIGTYPE_p_Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Block_PreHashHeader(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); return ret; } - public static uint SKY_coin_Block_Time(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Block_Time(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static uint SKY_coin_Block_Time(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Block_Time(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); return ret; } - public static uint SKY_coin_Block_Seq(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Block_Seq(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static uint SKY_coin_Block_Seq(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Block_Seq(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); return ret; } - public static uint SKY_coin_Block_HashBody(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Block_HashBody(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + public static uint SKY_coin_Block_HashBody(SWIGTYPE_p_Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Block_HashBody(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); return ret; } - public static uint SKY_coin_Block_Size(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Block_Size(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_coin_Block_Size(SWIGTYPE_p_Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Block_Size(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); return ret; } - public static uint SKY_coin_Block_String(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Block_String(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_coin_Block_String(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Block_String(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } - public static uint SKY_coin_Block_GetTransaction(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_Transaction__Handle p2, SWIGTYPE_p_unsigned_char p3) { - uint ret = skycoinPINVOKE.SKY_coin_Block_GetTransaction(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_Transaction__Handle.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); + public static uint SKY_coin_Block_GetTransaction(SWIGTYPE_p_Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_unsigned_char p3) { + uint ret = skycoinPINVOKE.SKY_coin_Block_GetTransaction(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p3)); return ret; } - public static uint SKY_coin_NewBlockHeader(coin__BlockHeader p0, SWIGTYPE_p_a_32__GoUint8_ p1, ulong p2, ulong p3, SWIGTYPE_p_BlockBody__Handle p4, coin__BlockHeader p5) { - uint ret = skycoinPINVOKE.SKY_coin_NewBlockHeader(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), p2, p3, SWIGTYPE_p_BlockBody__Handle.getCPtr(p4), coin__BlockHeader.getCPtr(p5)); + public static uint SKY_coin_NewBlockHeader(coin__BlockHeader p0, SWIGTYPE_p_a_32__GoUint8_ p1, ulong p2, ulong p3, SWIGTYPE_p_Handle p4, coin__BlockHeader p5) { + uint ret = skycoinPINVOKE.SKY_coin_NewBlockHeader(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), p2, p3, SWIGTYPE_p_Handle.getCPtr(p4), coin__BlockHeader.getCPtr(p5)); return ret; } @@ -110,43 +110,43 @@ public static uint SKY_coin_BlockHeader_String(coin__BlockHeader p0, SWIGTYPE_p_ return ret; } - public static uint SKY_coin_BlockBody_Hash(SWIGTYPE_p_BlockBody__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Hash(SWIGTYPE_p_BlockBody__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + public static uint SKY_coin_BlockBody_Hash(SWIGTYPE_p_Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Hash(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); return ret; } - public static uint SKY_coin_BlockBody_Size(SWIGTYPE_p_BlockBody__Handle p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Size(SWIGTYPE_p_BlockBody__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_coin_BlockBody_Size(SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Size(SWIGTYPE_p_long_long.getCPtr(p1)); return ret; } - public static uint SKY_coin_BlockBody_Bytes(SWIGTYPE_p_BlockBody__Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Bytes(SWIGTYPE_p_BlockBody__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_coin_BlockBody_Bytes(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Bytes(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); return ret; } - public static uint SKY_coin_CreateUnspents(coin__BlockHeader p0, SWIGTYPE_p_Transaction__Handle p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_CreateUnspents(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + public static uint SKY_coin_CreateUnspents(coin__BlockHeader p0, SWIGTYPE_p_Handle p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_CreateUnspents(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); return ret; } - public static uint SKY_coin_CreateUnspent(coin__BlockHeader p0, SWIGTYPE_p_Transaction__Handle p1, long p2, coin__UxOut p3) { - uint ret = skycoinPINVOKE.SKY_coin_CreateUnspent(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), p2, coin__UxOut.getCPtr(p3)); + public static uint SKY_coin_CreateUnspent(coin__BlockHeader p0, SWIGTYPE_p_Handle p1, long p2, coin__UxOut p3) { + uint ret = skycoinPINVOKE.SKY_coin_CreateUnspent(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1), p2, coin__UxOut.getCPtr(p3)); return ret; } - public static uint SKY_coin_GetBlockObject(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_p_coin__Block p1) { - uint ret = skycoinPINVOKE.SKY_coin_GetBlockObject(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_p_coin__Block.getCPtr(p1)); + public static uint SKY_coin_GetBlockObject(SWIGTYPE_p_Handle p0, SWIGTYPE_p_p_coin__Block p1) { + uint ret = skycoinPINVOKE.SKY_coin_GetBlockObject(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_p_coin__Block.getCPtr(p1)); return ret; } - public static uint SKY_coin_GetBlockBody(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_BlockBody__Handle p1) { - uint ret = skycoinPINVOKE.SKY_coin_GetBlockBody(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_BlockBody__Handle.getCPtr(p1)); + public static uint SKY_coin_GetBlockBody(SWIGTYPE_p_Handle p0) { + uint ret = skycoinPINVOKE.SKY_coin_GetBlockBody(SWIGTYPE_p_Handle.getCPtr(p0)); return ret; } - public static uint SKY_coin_NewEmptyBlock(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_Block__Handle p1) { - uint ret = skycoinPINVOKE.SKY_coin_NewEmptyBlock(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_Block__Handle.getCPtr(p1)); + public static uint SKY_coin_NewEmptyBlock(SWIGTYPE_p_Handle p0) { + uint ret = skycoinPINVOKE.SKY_coin_NewEmptyBlock(SWIGTYPE_p_Handle.getCPtr(p0)); return ret; } @@ -300,14 +300,14 @@ public static uint SKY_api_Client_WalletBalance(SWIGTYPE_p_Client__Handle p0, _G return ret; } - public static uint SKY_api_Client_Spend(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, ulong p3, _GoString_ p4, SWIGTYPE_p_SpendResult_Handle p5) { - uint ret = skycoinPINVOKE.SKY_api_Client_Spend(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), p3, _GoString_.getCPtr(p4), SWIGTYPE_p_SpendResult_Handle.getCPtr(p5)); + public static uint SKY_api_Client_Spend(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, ulong p3, _GoString_ p4) { + uint ret = skycoinPINVOKE.SKY_api_Client_Spend(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), p3, _GoString_.getCPtr(p4)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_CreateTransaction(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_CreateTransactionResponse__Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_CreateTransaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_CreateTransactionResponse__Handle.getCPtr(p2)); + public static uint SKY_api_Client_CreateTransaction(SWIGTYPE_p_Client__Handle p0) { + uint ret = skycoinPINVOKE.SKY_api_Client_CreateTransaction(SWIGTYPE_p_Client__Handle.getCPtr(p0)); return ret; } @@ -388,8 +388,8 @@ public static uint SKY_api_Client_UnconfirmedTransactions(SWIGTYPE_p_Client__Han return ret; } - public static uint SKY_api_Client_InjectTransaction(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Transaction__Handle p1, SWIGTYPE_p_GoString_ p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_InjectTransaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); + public static uint SKY_api_Client_InjectTransaction(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1, SWIGTYPE_p_GoString_ p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_InjectTransaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); return ret; } @@ -500,35 +500,35 @@ public static uint SKY_secp256k1go_XY_GetPublicKey(secp256k1go__XY p0, SWIGTYPE_ return ret; } - public static uint SKY_api_NewWalletResponse(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_WalletResponse__Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_NewWalletResponse(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p1)); + public static uint SKY_api_NewWalletResponse(SWIGTYPE_p_Handle p0, SWIGTYPE_p_WalletResponse__Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_NewWalletResponse(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p1)); return ret; } - public static uint SKY_api_NewCreateTransactionResponse(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1, SWIGTYPE_p_CreateTransactionResponse__Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_NewCreateTransactionResponse(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_CreateTransactionResponse__Handle.getCPtr(p2)); + public static uint SKY_api_NewCreateTransactionResponse(SWIGTYPE_p_Handle p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_api_NewCreateTransactionResponse(SWIGTYPE_p_Handle.getCPtr(p0), GoSlice.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_NewCreatedTransaction(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1, SWIGTYPE_p_CreatedTransaction__Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_NewCreatedTransaction(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_CreatedTransaction__Handle.getCPtr(p2)); + public static uint SKY_api_NewCreatedTransaction(SWIGTYPE_p_Handle p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_api_NewCreatedTransaction(SWIGTYPE_p_Handle.getCPtr(p0), GoSlice.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_CreatedTransaction_ToTransaction(SWIGTYPE_p_CreatedTransaction__Handle p0, SWIGTYPE_p_Transaction__Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_CreatedTransaction_ToTransaction(SWIGTYPE_p_CreatedTransaction__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); + public static uint SKY_api_CreatedTransaction_ToTransaction(SWIGTYPE_p_Handle p0) { + uint ret = skycoinPINVOKE.SKY_api_CreatedTransaction_ToTransaction(SWIGTYPE_p_Handle.getCPtr(p0)); return ret; } - public static uint SKY_api_NewCreatedTransactionOutput(coin__TransactionOutput p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_CreatedTransactionOutput__Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_NewCreatedTransactionOutput(coin__TransactionOutput.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_CreatedTransactionOutput__Handle.getCPtr(p2)); + public static uint SKY_api_NewCreatedTransactionOutput(coin__TransactionOutput p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_api_NewCreatedTransactionOutput(coin__TransactionOutput.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); return ret; } - public static uint SKY_api_NewCreatedTransactionInput(wallet__UxBalance p0, SWIGTYPE_p_CreatedTransactionInput__Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_NewCreatedTransactionInput(wallet__UxBalance.getCPtr(p0), SWIGTYPE_p_CreatedTransactionInput__Handle.getCPtr(p1)); + public static uint SKY_api_NewCreatedTransactionInput(wallet__UxBalance p0) { + uint ret = skycoinPINVOKE.SKY_api_NewCreatedTransactionInput(wallet__UxBalance.getCPtr(p0)); return ret; } @@ -538,83 +538,83 @@ public static uint SKY_wallet_NewError(GoInterface p0) { return ret; } - public static uint SKY_wallet_NewWallet(_GoString_ p0, SWIGTYPE_p_Options__Handle p1, SWIGTYPE_p_Wallet__Handle p2) { - uint ret = skycoinPINVOKE.SKY_wallet_NewWallet(_GoString_.getCPtr(p0), SWIGTYPE_p_Options__Handle.getCPtr(p1), SWIGTYPE_p_Wallet__Handle.getCPtr(p2)); + public static uint SKY_wallet_NewWallet(_GoString_ p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_wallet_NewWallet(_GoString_.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_wallet_Wallet_Lock(SWIGTYPE_p_Wallet__Handle p0, GoSlice p1, _GoString_ p2) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Lock(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), GoSlice.getCPtr(p1), _GoString_.getCPtr(p2)); + public static uint SKY_wallet_Wallet_Lock(SWIGTYPE_p_Handle p0, GoSlice p1, _GoString_ p2) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Lock(SWIGTYPE_p_Handle.getCPtr(p0), GoSlice.getCPtr(p1), _GoString_.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_wallet_Wallet_Unlock(SWIGTYPE_p_Wallet__Handle p0, GoSlice p1, SWIGTYPE_p_Wallet__Handle p2) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Unlock(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_Wallet__Handle.getCPtr(p2)); + public static uint SKY_wallet_Wallet_Unlock(SWIGTYPE_p_Handle p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Unlock(SWIGTYPE_p_Handle.getCPtr(p0), GoSlice.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_wallet_Load(_GoString_ p0, SWIGTYPE_p_Wallet__Handle p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Load(_GoString_.getCPtr(p0), SWIGTYPE_p_Wallet__Handle.getCPtr(p1)); + public static uint SKY_wallet_Load(_GoString_ p0) { + uint ret = skycoinPINVOKE.SKY_wallet_Load(_GoString_.getCPtr(p0)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_wallet_Wallet_Save(SWIGTYPE_p_Wallet__Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Save(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + public static uint SKY_wallet_Wallet_Save(SWIGTYPE_p_Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Save(SWIGTYPE_p_Handle.getCPtr(p0), _GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_wallet_Wallet_Validate(SWIGTYPE_p_Wallet__Handle p0) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Validate(SWIGTYPE_p_Wallet__Handle.getCPtr(p0)); + public static uint SKY_wallet_Wallet_Validate(SWIGTYPE_p_Handle p0) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Validate(SWIGTYPE_p_Handle.getCPtr(p0)); return ret; } - public static uint SKY_wallet_Wallet_Type(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Type(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_wallet_Wallet_Type(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Type(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } - public static uint SKY_wallet_Wallet_Version(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Version(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_wallet_Wallet_Version(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Version(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } - public static uint SKY_wallet_Wallet_Filename(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Filename(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_wallet_Wallet_Filename(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Filename(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } - public static uint SKY_wallet_Wallet_Label(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Label(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_wallet_Wallet_Label(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Label(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } - public static uint SKY_wallet_Wallet_IsEncrypted(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_IsEncrypted(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + public static uint SKY_wallet_Wallet_IsEncrypted(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_IsEncrypted(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); return ret; } - public static uint SKY_wallet_Wallet_GenerateAddresses(SWIGTYPE_p_Wallet__Handle p0, ulong p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GenerateAddresses(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2)); + public static uint SKY_wallet_Wallet_GenerateAddresses(SWIGTYPE_p_Handle p0, ulong p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GenerateAddresses(SWIGTYPE_p_Handle.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2)); return ret; } - public static uint SKY_wallet_Wallet_GetAddresses(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GetAddresses(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_wallet_Wallet_GetAddresses(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GetAddresses(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); return ret; } - public static uint SKY_wallet_Wallet_GetEntry(SWIGTYPE_p_Wallet__Handle p0, cipher__Address p1, wallet__Entry p2, SWIGTYPE_p_unsigned_char p3) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GetEntry(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), cipher__Address.getCPtr(p1), wallet__Entry.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); + public static uint SKY_wallet_Wallet_GetEntry(SWIGTYPE_p_Handle p0, cipher__Address p1, wallet__Entry p2, SWIGTYPE_p_unsigned_char p3) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GetEntry(SWIGTYPE_p_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), wallet__Entry.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); return ret; } - public static uint SKY_wallet_Wallet_AddEntry(SWIGTYPE_p_Wallet__Handle p0, wallet__Entry p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_AddEntry(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), wallet__Entry.getCPtr(p1)); + public static uint SKY_wallet_Wallet_AddEntry(SWIGTYPE_p_Handle p0, wallet__Entry p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_AddEntry(SWIGTYPE_p_Handle.getCPtr(p0), wallet__Entry.getCPtr(p1)); return ret; } @@ -651,14 +651,14 @@ public static uint SKY_wallet_ChooseSpendsMaximizeUxOuts(GoSlice p0, ulong p1, u return ret; } - public static uint SKY_cli_CheckWalletBalance(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, SWIGTYPE_p_BalanceResult_Handle p2) { - uint ret = skycoinPINVOKE.SKY_cli_CheckWalletBalance(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_BalanceResult_Handle.getCPtr(p2)); + public static uint SKY_cli_CheckWalletBalance(SWIGTYPE_p_Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_CheckWalletBalance(SWIGTYPE_p_Handle.getCPtr(p0), _GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cli_GetBalanceOfAddresses(SWIGTYPE_p_WebRpcClient__Handle p0, GoSlice p1, SWIGTYPE_p_BalanceResult_Handle p2) { - uint ret = skycoinPINVOKE.SKY_cli_GetBalanceOfAddresses(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_BalanceResult_Handle.getCPtr(p2)); + public static uint SKY_cli_GetBalanceOfAddresses(SWIGTYPE_p_Handle p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_cli_GetBalanceOfAddresses(SWIGTYPE_p_Handle.getCPtr(p0), GoSlice.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -816,8 +816,8 @@ public static uint SKY_base58_Hex2Base58Str(GoSlice p0, SWIGTYPE_p_GoString_ p1) return ret; } - public static uint SKY_cli_GenerateWallet(_GoString_ p0, SWIGTYPE_p_Options__Handle p1, ulong p2, SWIGTYPE_p_Wallet__Handle p3) { - uint ret = skycoinPINVOKE.SKY_cli_GenerateWallet(_GoString_.getCPtr(p0), SWIGTYPE_p_Options__Handle.getCPtr(p1), p2, SWIGTYPE_p_Wallet__Handle.getCPtr(p3)); + public static uint SKY_cli_GenerateWallet(_GoString_ p0, ulong p2) { + uint ret = skycoinPINVOKE.SKY_cli_GenerateWallet(_GoString_.getCPtr(p0), p2); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -827,52 +827,52 @@ public static uint SKY_cli_MakeAlphanumericSeed(SWIGTYPE_p_GoString_ p0) { return ret; } - public static uint SKY_webrpc_NewClient(_GoString_ p0, SWIGTYPE_p_WebRpcClient__Handle p1) { - uint ret = skycoinPINVOKE.SKY_webrpc_NewClient(_GoString_.getCPtr(p0), SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p1)); + public static uint SKY_webrpc_NewClient(_GoString_ p0) { + uint ret = skycoinPINVOKE.SKY_webrpc_NewClient(_GoString_.getCPtr(p0)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_webrpc_Client_CSRF(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_CSRF(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_webrpc_Client_CSRF(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_CSRF(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } - public static uint SKY_webrpc_Client_InjectTransaction(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_Transaction__Handle p1, SWIGTYPE_p_GoString_ p2) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_InjectTransaction(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); + public static uint SKY_webrpc_Client_InjectTransaction(SWIGTYPE_p_Handle p0, SWIGTYPE_p_Handle p1, SWIGTYPE_p_GoString_ p2) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_InjectTransaction(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); return ret; } - public static uint SKY_webrpc_Client_GetStatus(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_StatusResult_Handle p1) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetStatus(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_StatusResult_Handle.getCPtr(p1)); + public static uint SKY_webrpc_Client_GetStatus(SWIGTYPE_p_Handle p0) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetStatus(SWIGTYPE_p_Handle.getCPtr(p0)); return ret; } - public static uint SKY_webrpc_Client_GetTransactionByID(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, SWIGTYPE_p_TransactionResult_Handle p2) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetTransactionByID(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_TransactionResult_Handle.getCPtr(p2)); + public static uint SKY_webrpc_Client_GetTransactionByID(SWIGTYPE_p_Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetTransactionByID(SWIGTYPE_p_Handle.getCPtr(p0), _GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_webrpc_Client_GetAddressUxOuts(SWIGTYPE_p_WebRpcClient__Handle p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetAddressUxOuts(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + public static uint SKY_webrpc_Client_GetAddressUxOuts(SWIGTYPE_p_Handle p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetAddressUxOuts(SWIGTYPE_p_Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_webrpc_Client_GetBlocks(SWIGTYPE_p_WebRpcClient__Handle p0, ulong p1, ulong p2, SWIGTYPE_p_GoSlice_ p3) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetBlocks(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), p1, p2, SWIGTYPE_p_GoSlice_.getCPtr(p3)); + public static uint SKY_webrpc_Client_GetBlocks(SWIGTYPE_p_Handle p0, ulong p1, ulong p2, SWIGTYPE_p_GoSlice_ p3) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetBlocks(SWIGTYPE_p_Handle.getCPtr(p0), p1, p2, SWIGTYPE_p_GoSlice_.getCPtr(p3)); return ret; } - public static uint SKY_webrpc_Client_GetBlocksBySeq(SWIGTYPE_p_WebRpcClient__Handle p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetBlocksBySeq(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + public static uint SKY_webrpc_Client_GetBlocksBySeq(SWIGTYPE_p_Handle p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetBlocksBySeq(SWIGTYPE_p_Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_webrpc_Client_GetLastBlocks(SWIGTYPE_p_WebRpcClient__Handle p0, ulong p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetLastBlocks(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2)); + public static uint SKY_webrpc_Client_GetLastBlocks(SWIGTYPE_p_Handle p0, ulong p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetLastBlocks(SWIGTYPE_p_Handle.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2)); return ret; } @@ -921,8 +921,8 @@ public static uint SKY_secp256k1_RandByte(long p0, SWIGTYPE_p_GoSlice_ p1) { return ret; } - public static uint SKY_cli_GenerateAddressesInFile(_GoString_ p0, ulong p1, SWIGTYPE_p_PasswordReader__Handle p2, SWIGTYPE_p_GoSlice_ p3) { - uint ret = skycoinPINVOKE.SKY_cli_GenerateAddressesInFile(_GoString_.getCPtr(p0), p1, SWIGTYPE_p_PasswordReader__Handle.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); + public static uint SKY_cli_GenerateAddressesInFile(_GoString_ p0, ulong p1, SWIGTYPE_p_Handle p2, SWIGTYPE_p_GoSlice_ p3) { + uint ret = skycoinPINVOKE.SKY_cli_GenerateAddressesInFile(_GoString_.getCPtr(p0), p1, SWIGTYPE_p_Handle.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -980,39 +980,39 @@ public static uint SKY_cipher_RandByte(long p0, SWIGTYPE_p_GoSlice_ p1) { return ret; } - public static uint SKY_cipher_NewPubKey(GoSlice p0, SWIGTYPE_p_a_33__GoUint8_ p1) { + public static uint SKY_cipher_NewPubKey(GoSlice p0, SWIGTYPE_p_cipher_PubKey p1) { uint ret = skycoinPINVOKE.SKY_cipher_NewPubKey(GoSlice.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_PubKeyFromHex(_GoString_ p0, SWIGTYPE_p_a_33__GoUint8_ p1) { + public static uint SKY_cipher_PubKeyFromHex(_GoString_ p0, SWIGTYPE_p_cipher_PubKey p1) { uint ret = skycoinPINVOKE.SKY_cipher_PubKeyFromHex(_GoString_.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_PubKeyFromSecKey(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_a_33__GoUint8_ p1) { + public static uint SKY_cipher_PubKeyFromSecKey(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_cipher_PubKey p1) { uint ret = skycoinPINVOKE.SKY_cipher_PubKeyFromSecKey(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); return ret; } - public static uint SKY_cipher_PubKeyFromSig(SWIGTYPE_p_a_65__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_a_33__GoUint8_ p2) { + public static uint SKY_cipher_PubKeyFromSig(SWIGTYPE_p_a_65__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_cipher_PubKey p2) { uint ret = skycoinPINVOKE.SKY_cipher_PubKeyFromSig(SWIGTYPE_p_a_65__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p2)); return ret; } - public static uint SKY_cipher_PubKey_Verify(SWIGTYPE_p_a_33__GoUint8_ p0) { + public static uint SKY_cipher_PubKey_Verify(SWIGTYPE_p_cipher_PubKey p0) { uint ret = skycoinPINVOKE.SKY_cipher_PubKey_Verify(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0)); return ret; } - public static uint SKY_cipher_PubKey_Hex(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_GoString_ p1) { + public static uint SKY_cipher_PubKey_Hex(SWIGTYPE_p_cipher_PubKey p0, SWIGTYPE_p_GoString_ p1) { uint ret = skycoinPINVOKE.SKY_cipher_PubKey_Hex(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } - public static uint SKY_cipher_PubKey_ToAddressHash(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_20__GoUint8_ p1) { + public static uint SKY_cipher_PubKey_ToAddressHash(SWIGTYPE_p_cipher_PubKey p0, SWIGTYPE_p_a_20__GoUint8_ p1) { uint ret = skycoinPINVOKE.SKY_cipher_PubKey_ToAddressHash(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_20__GoUint8_.getCPtr(p1)); return ret; } @@ -1039,7 +1039,7 @@ public static uint SKY_cipher_SecKey_Hex(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_ return ret; } - public static uint SKY_cipher_ECDH(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_GoSlice_ p2) { + public static uint SKY_cipher_ECDH(SWIGTYPE_p_cipher_PubKey p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_GoSlice_ p2) { uint ret = skycoinPINVOKE.SKY_cipher_ECDH(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); return ret; } @@ -1076,18 +1076,18 @@ public static uint SKY_cipher_VerifySignedHash(SWIGTYPE_p_a_65__GoUint8_ p0, SWI return ret; } - public static uint SKY_cipher_VerifySignature(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_65__GoUint8_ p1, SWIGTYPE_p_a_32__GoUint8_ p2) { + public static uint SKY_cipher_VerifySignature(SWIGTYPE_p_cipher_PubKey p0, SWIGTYPE_p_a_65__GoUint8_ p1, SWIGTYPE_p_a_32__GoUint8_ p2) { uint ret = skycoinPINVOKE.SKY_cipher_VerifySignature(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); return ret; } - public static uint SKY_cipher_GenerateDeterministicKeyPair(GoSlice p0, SWIGTYPE_p_a_33__GoUint8_ p1, SWIGTYPE_p_a_32__GoUint8_ p2) { + public static uint SKY_cipher_GenerateDeterministicKeyPair(GoSlice p0, SWIGTYPE_p_cipher_PubKey p1, SWIGTYPE_p_a_32__GoUint8_ p2) { uint ret = skycoinPINVOKE.SKY_cipher_GenerateDeterministicKeyPair(GoSlice.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_DeterministicKeyPairIterator(GoSlice p0, SWIGTYPE_p_GoSlice_ p1, SWIGTYPE_p_a_33__GoUint8_ p2, SWIGTYPE_p_a_32__GoUint8_ p3) { + public static uint SKY_cipher_DeterministicKeyPairIterator(GoSlice p0, SWIGTYPE_p_GoSlice_ p1, SWIGTYPE_p_cipher_PubKey p2, SWIGTYPE_p_a_32__GoUint8_ p3) { uint ret = skycoinPINVOKE.SKY_cipher_DeterministicKeyPairIterator(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p2), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p3)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; @@ -1115,55 +1115,55 @@ public static uint SKY_cipher_TestSecKeyHash(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGT return ret; } - public static uint SKY_cipher_GenerateKeyPair(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + public static uint SKY_cipher_GenerateKeyPair(SWIGTYPE_p_cipher_PubKey p0, SWIGTYPE_p_a_32__GoUint8_ p1) { uint ret = skycoinPINVOKE.SKY_cipher_GenerateKeyPair(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); return ret; } - public static uint SKY_secp256k1go_Signature_Create(SWIGTYPE_p_Signature_Handle p0) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Create(SWIGTYPE_p_Signature_Handle.getCPtr(p0)); + public static uint SKY_secp256k1go_Signature_Create() { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Create(); return ret; } - public static uint SKY_secp256k1go_Signature_GetR(SWIGTYPE_p_Signature_Handle p0, SWIGTYPE_p_Number_Handle p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_GetR(SWIGTYPE_p_Signature_Handle.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1)); + public static uint SKY_secp256k1go_Signature_GetR(SWIGTYPE_p_Handle p0) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_GetR(SWIGTYPE_p_Handle.getCPtr(p0)); return ret; } - public static uint SKY_secp256k1go_Signature_GetS(SWIGTYPE_p_Signature_Handle p0, SWIGTYPE_p_Number_Handle p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_GetS(SWIGTYPE_p_Signature_Handle.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1)); + public static uint SKY_secp256k1go_Signature_GetS(SWIGTYPE_p_Handle p0) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_GetS(SWIGTYPE_p_Handle.getCPtr(p0)); return ret; } - public static uint SKY_secp256k1go_Signature_Print(SWIGTYPE_p_Signature_Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Print(SWIGTYPE_p_Signature_Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + public static uint SKY_secp256k1go_Signature_Print(SWIGTYPE_p_Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Print(SWIGTYPE_p_Handle.getCPtr(p0), _GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Signature_Verify(SWIGTYPE_p_Signature_Handle p0, secp256k1go__XY p1, SWIGTYPE_p_Number_Handle p2, SWIGTYPE_p_unsigned_char p3) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Verify(SWIGTYPE_p_Signature_Handle.getCPtr(p0), secp256k1go__XY.getCPtr(p1), SWIGTYPE_p_Number_Handle.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); + public static uint SKY_secp256k1go_Signature_Verify(SWIGTYPE_p_Handle p0, secp256k1go__XY p1, SWIGTYPE_p_Handle p2, SWIGTYPE_p_unsigned_char p3) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Verify(SWIGTYPE_p_Handle.getCPtr(p0), secp256k1go__XY.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); return ret; } - public static uint SKY_secp256k1go_Signature_Recover(SWIGTYPE_p_Signature_Handle p0, secp256k1go__XY p1, SWIGTYPE_p_Number_Handle p2, long p3, SWIGTYPE_p_unsigned_char p4) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Recover(SWIGTYPE_p_Signature_Handle.getCPtr(p0), secp256k1go__XY.getCPtr(p1), SWIGTYPE_p_Number_Handle.getCPtr(p2), p3, SWIGTYPE_p_unsigned_char.getCPtr(p4)); + public static uint SKY_secp256k1go_Signature_Recover(SWIGTYPE_p_Handle p0, secp256k1go__XY p1, SWIGTYPE_p_Handle p2, long p3, SWIGTYPE_p_unsigned_char p4) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Recover(SWIGTYPE_p_Handle.getCPtr(p0), secp256k1go__XY.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2), p3, SWIGTYPE_p_unsigned_char.getCPtr(p4)); return ret; } - public static uint SKY_secp256k1go_Signature_Sign(SWIGTYPE_p_Signature_Handle p0, SWIGTYPE_p_Number_Handle p1, SWIGTYPE_p_Number_Handle p2, SWIGTYPE_p_Number_Handle p3, SWIGTYPE_p_long_long p4, SWIGTYPE_p_long_long p5) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Sign(SWIGTYPE_p_Signature_Handle.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1), SWIGTYPE_p_Number_Handle.getCPtr(p2), SWIGTYPE_p_Number_Handle.getCPtr(p3), SWIGTYPE_p_long_long.getCPtr(p4), SWIGTYPE_p_long_long.getCPtr(p5)); + public static uint SKY_secp256k1go_Signature_Sign(SWIGTYPE_p_Handle p0, SWIGTYPE_p_Handle p1, SWIGTYPE_p_Handle p2, SWIGTYPE_p_Handle p3, SWIGTYPE_p_long_long p4, SWIGTYPE_p_long_long p5) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Sign(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2), SWIGTYPE_p_Handle.getCPtr(p3), SWIGTYPE_p_long_long.getCPtr(p4), SWIGTYPE_p_long_long.getCPtr(p5)); return ret; } - public static uint SKY_secp256k1go_Signature_ParseBytes(SWIGTYPE_p_Signature_Handle p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_ParseBytes(SWIGTYPE_p_Signature_Handle.getCPtr(p0), GoSlice.getCPtr(p1)); + public static uint SKY_secp256k1go_Signature_ParseBytes(SWIGTYPE_p_Handle p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_ParseBytes(SWIGTYPE_p_Handle.getCPtr(p0), GoSlice.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Signature_Bytes(SWIGTYPE_p_Signature_Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Bytes(SWIGTYPE_p_Signature_Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_secp256k1go_Signature_Bytes(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Bytes(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); return ret; } @@ -1173,18 +1173,18 @@ public static uint SKY_cli_App_Run(SWIGTYPE_p_App__Handle p0, _GoString_ p1) { return ret; } - public static uint SKY_cli_Config_GetCoin(SWIGTYPE_p_Config__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_Config_GetCoin(SWIGTYPE_p_Config__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_cli_Config_GetCoin(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_Config_GetCoin(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } - public static uint SKY_cli_Config_GetRPCAddress(SWIGTYPE_p_Config__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_Config_GetRPCAddress(SWIGTYPE_p_Config__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_cli_Config_GetRPCAddress(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_Config_GetRPCAddress(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } - public static uint SKY_cli_RPCClientFromApp(SWIGTYPE_p_App__Handle p0, SWIGTYPE_p_WebRpcClient__Handle p1) { - uint ret = skycoinPINVOKE.SKY_cli_RPCClientFromApp(SWIGTYPE_p_App__Handle.getCPtr(p0), SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p1)); + public static uint SKY_cli_RPCClientFromApp(SWIGTYPE_p_App__Handle p0) { + uint ret = skycoinPINVOKE.SKY_cli_RPCClientFromApp(SWIGTYPE_p_App__Handle.getCPtr(p0)); return ret; } @@ -1300,12 +1300,12 @@ public static uint SKY_wallet_CreateAddresses(_GoString_ p0, _GoString_ p1, long return ret; } - public static uint SKY_wallet_GetSkycoinWalletEntry(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_ReadableEntry__Handle p2) { + public static uint SKY_wallet_GetSkycoinWalletEntry(SWIGTYPE_p_cipher_PubKey p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_ReadableEntry__Handle p2) { uint ret = skycoinPINVOKE.SKY_wallet_GetSkycoinWalletEntry(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p2)); return ret; } - public static uint SKY_wallet_GetBitcoinWalletEntry(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_ReadableEntry__Handle p2) { + public static uint SKY_wallet_GetBitcoinWalletEntry(SWIGTYPE_p_cipher_PubKey p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_ReadableEntry__Handle p2) { uint ret = skycoinPINVOKE.SKY_wallet_GetBitcoinWalletEntry(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p2)); return ret; } @@ -1341,8 +1341,8 @@ public static uint SKY_secp256k1go_XYZ_Equals(secp256k1go__XYZ p0, secp256k1go__ return ret; } - public static uint SKY_secp256k1go_XYZ_ECmult(secp256k1go__XYZ p0, secp256k1go__XYZ p1, SWIGTYPE_p_Number_Handle p2, SWIGTYPE_p_Number_Handle p3) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_ECmult(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1), SWIGTYPE_p_Number_Handle.getCPtr(p2), SWIGTYPE_p_Number_Handle.getCPtr(p3)); + public static uint SKY_secp256k1go_XYZ_ECmult(secp256k1go__XYZ p0, secp256k1go__XYZ p1, SWIGTYPE_p_Handle p2, SWIGTYPE_p_Handle p3) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_ECmult(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2), SWIGTYPE_p_Handle.getCPtr(p3)); return ret; } @@ -1366,8 +1366,8 @@ public static uint SKY_secp256k1go_XYZ_Add(secp256k1go__XYZ p0, secp256k1go__XYZ return ret; } - public static uint SKY_secp256k1go_ECmultGen(secp256k1go__XYZ p0, SWIGTYPE_p_Number_Handle p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_ECmultGen(secp256k1go__XYZ.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1)); + public static uint SKY_secp256k1go_ECmultGen(secp256k1go__XYZ p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_ECmultGen(secp256k1go__XYZ.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); return ret; } @@ -1453,7 +1453,7 @@ public static uint SKY_cipher_AddressFromBytes(GoSlice p0, cipher__Address p1) { return ret; } - public static uint SKY_cipher_AddressFromPubKey(SWIGTYPE_p_a_33__GoUint8_ p0, cipher__Address p1) { + public static uint SKY_cipher_AddressFromPubKey(SWIGTYPE_p_cipher_PubKey p0, cipher__Address p1) { uint ret = skycoinPINVOKE.SKY_cipher_AddressFromPubKey(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), cipher__Address.getCPtr(p1)); return ret; } @@ -1484,7 +1484,7 @@ public static uint SKY_cipher_Address_BitcoinBytes(cipher__Address p0, SWIGTYPE_ return ret; } - public static uint SKY_cipher_Address_Verify(cipher__Address p0, SWIGTYPE_p_a_33__GoUint8_ p1) { + public static uint SKY_cipher_Address_Verify(cipher__Address p0, SWIGTYPE_p_cipher_PubKey p1) { uint ret = skycoinPINVOKE.SKY_cipher_Address_Verify(cipher__Address.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); return ret; } @@ -1509,7 +1509,7 @@ public static uint SKY_cipher_Address_BitcoinChecksum(cipher__Address p0, SWIGTY return ret; } - public static uint SKY_cipher_BitcoinAddressFromPubkey(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_GoString_ p1) { + public static uint SKY_cipher_BitcoinAddressFromPubkey(SWIGTYPE_p_cipher_PubKey p0, SWIGTYPE_p_GoString_ p1) { uint ret = skycoinPINVOKE.SKY_cipher_BitcoinAddressFromPubkey(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } @@ -1606,13 +1606,13 @@ public static uint SKY_api_Handle_Client_GetWalletFullPath(SWIGTYPE_p_Client__Ha return ret; } - public static uint SKY_api_Handle_GetWalletMeta(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoStringMap_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletMeta(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoStringMap_.getCPtr(p1)); + public static uint SKY_api_Handle_GetWalletMeta(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoStringMap_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletMeta(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoStringMap_.getCPtr(p1)); return ret; } - public static uint SKY_api_Handle_GetWalletEntriesCount(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_unsigned_int p1) { - uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletEntriesCount(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); + public static uint SKY_api_Handle_GetWalletEntriesCount(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_int p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletEntriesCount(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); return ret; } @@ -1621,8 +1621,8 @@ public static uint SKY_api_Handle_Client_GetWalletResponseEntriesCount(SWIGTYPE_ return ret; } - public static uint SKY_api_Handle_WalletGetEntry(SWIGTYPE_p_Wallet__Handle p0, uint p1, cipher__Address p2, SWIGTYPE_p_a_33__GoUint8_ p3) { - uint ret = skycoinPINVOKE.SKY_api_Handle_WalletGetEntry(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), p1, cipher__Address.getCPtr(p2), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p3)); + public static uint SKY_api_Handle_WalletGetEntry(SWIGTYPE_p_Handle p0, uint p1, cipher__Address p2, SWIGTYPE_p_cipher_PubKey p3) { + uint ret = skycoinPINVOKE.SKY_api_Handle_WalletGetEntry(SWIGTYPE_p_Handle.getCPtr(p0), p1, cipher__Address.getCPtr(p2), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p3)); return ret; } @@ -1656,62 +1656,62 @@ public static uint SKY_api_Handle_GetWalletFolderAddress(SWIGTYPE_p_Handle p0, S return ret; } - public static uint SKY_api_Handle_GetWalletSeed(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletSeed(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_api_Handle_GetWalletSeed(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletSeed(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } - public static uint SKY_api_Handle_GetWalletLastSeed(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletLastSeed(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_api_Handle_GetWalletLastSeed(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletLastSeed(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } - public static uint SKY_api_Handle_GetBuildInfoData(SWIGTYPE_p_BuildInfo_Handle p0, SWIGTYPE_p_GoString_ p1, SWIGTYPE_p_GoString_ p2, SWIGTYPE_p_GoString_ p3) { - uint ret = skycoinPINVOKE.SKY_api_Handle_GetBuildInfoData(SWIGTYPE_p_BuildInfo_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2), SWIGTYPE_p_GoString_.getCPtr(p3)); + public static uint SKY_api_Handle_GetBuildInfoData(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1, SWIGTYPE_p_GoString_ p2, SWIGTYPE_p_GoString_ p3) { + uint ret = skycoinPINVOKE.SKY_api_Handle_GetBuildInfoData(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2), SWIGTYPE_p_GoString_.getCPtr(p3)); return ret; } - public static uint SKY_ripemd160_New(SWIGTYPE_p_Hash_Handle p0) { - uint ret = skycoinPINVOKE.SKY_ripemd160_New(SWIGTYPE_p_Hash_Handle.getCPtr(p0)); + public static uint SKY_ripemd160_New() { + uint ret = skycoinPINVOKE.SKY_ripemd160_New(); return ret; } - public static uint SKY_ripemd160_Write(SWIGTYPE_p_Hash_Handle p0, GoSlice p1, SWIGTYPE_p_long_long p2) { - uint ret = skycoinPINVOKE.SKY_ripemd160_Write(SWIGTYPE_p_Hash_Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_long_long.getCPtr(p2)); + public static uint SKY_ripemd160_Write(SWIGTYPE_p_Handle p0, GoSlice p1, SWIGTYPE_p_long_long p2) { + uint ret = skycoinPINVOKE.SKY_ripemd160_Write(SWIGTYPE_p_Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_long_long.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_ripemd160_Sum(SWIGTYPE_p_Hash_Handle p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_ripemd160_Sum(SWIGTYPE_p_Hash_Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + public static uint SKY_ripemd160_Sum(SWIGTYPE_p_Handle p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_ripemd160_Sum(SWIGTYPE_p_Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Number_Create(SWIGTYPE_p_Number_Handle p0) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_Create(SWIGTYPE_p_Number_Handle.getCPtr(p0)); + public static uint SKY_secp256k1go_Number_Create() { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_Create(); return ret; } - public static uint SKY_secp256k1go_Number_Print(SWIGTYPE_p_Number_Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_Print(SWIGTYPE_p_Number_Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + public static uint SKY_secp256k1go_Number_Print(SWIGTYPE_p_Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_Print(SWIGTYPE_p_Handle.getCPtr(p0), _GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Number_SetHex(SWIGTYPE_p_Number_Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_SetHex(SWIGTYPE_p_Number_Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + public static uint SKY_secp256k1go_Number_SetHex(SWIGTYPE_p_Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_SetHex(SWIGTYPE_p_Handle.getCPtr(p0), _GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Number_IsOdd(SWIGTYPE_p_Number_Handle p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_IsOdd(SWIGTYPE_p_Number_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + public static uint SKY_secp256k1go_Number_IsOdd(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_IsOdd(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); return ret; } - public static uint SKY_secp256k1go_Number_IsEqual(SWIGTYPE_p_Number_Handle p0, SWIGTYPE_p_Number_Handle p1, SWIGTYPE_p_unsigned_char p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_IsEqual(SWIGTYPE_p_Number_Handle.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); + public static uint SKY_secp256k1go_Number_IsEqual(SWIGTYPE_p_Handle p0, SWIGTYPE_p_Handle p1, SWIGTYPE_p_unsigned_char p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_IsEqual(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); return ret; } @@ -1785,62 +1785,53 @@ public static uint SKY_coin_UxArray_Add(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_GoSli return ret; } - public static uint SKY_coin_NewAddressUxOuts(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_AddressUxOuts_Handle p1) { - uint ret = skycoinPINVOKE.SKY_coin_NewAddressUxOuts(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p1)); + public static uint SKY_coin_NewAddressUxOuts(SWIGTYPE_p_GoSlice_ p0) { + uint ret = skycoinPINVOKE.SKY_coin_NewAddressUxOuts(SWIGTYPE_p_GoSlice_.getCPtr(p0)); return ret; } - public static uint SKY_coin_AddressUxOuts_Keys(SWIGTYPE_p_AddressUxOuts_Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Keys(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_coin_AddressUxOuts_Keys(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Keys(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); return ret; } - public static uint SKY_coin_AddressUxOuts_Flatten(SWIGTYPE_p_AddressUxOuts_Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Flatten(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_coin_AddressUxOuts_Flatten(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Flatten(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); return ret; } - public static uint SKY_coin_AddressUxOuts_Sub(SWIGTYPE_p_AddressUxOuts_Handle p0, SWIGTYPE_p_AddressUxOuts_Handle p1, SWIGTYPE_p_AddressUxOuts_Handle p2) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Sub(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p1), SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_coin_AddressUxOuts_Sub(SWIGTYPE_p_Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Sub(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); return ret; } - public static uint SKY_coin_AddressUxOuts_Add(SWIGTYPE_p_AddressUxOuts_Handle p0, SWIGTYPE_p_AddressUxOuts_Handle p1, SWIGTYPE_p_AddressUxOuts_Handle p2) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Add(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p1), SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_coin_AddressUxOuts_Add(SWIGTYPE_p_Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Add(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); return ret; } - public static uint SKY_coin_AddressUxOuts_Get(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher__Address p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Get(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_coin_AddressUxOuts_Get(SWIGTYPE_p_Handle p0, cipher__Address p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Get(SWIGTYPE_p_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); return ret; } - public static uint SKY_coin_AddressUxOuts_HasKey(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher__Address p1, SWIGTYPE_p_unsigned_char p2) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_HasKey(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_coin_AddressUxOuts_HasKey(SWIGTYPE_p_Handle p0, cipher__Address p1, SWIGTYPE_p_unsigned_char p2) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_HasKey(SWIGTYPE_p_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); return ret; } - public static uint SKY_coin_AddressUxOuts_GetOutputLength(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher__Address p1, SWIGTYPE_p_long_long p2) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_GetOutputLength(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), SWIGTYPE_p_long_long.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_coin_AddressUxOuts_GetOutputLength(SWIGTYPE_p_Handle p0, cipher__Address p1, SWIGTYPE_p_long_long p2) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_GetOutputLength(SWIGTYPE_p_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), SWIGTYPE_p_long_long.getCPtr(p2)); return ret; } - public static uint SKY_coin_AddressUxOuts_Length(SWIGTYPE_p_AddressUxOuts_Handle p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Length(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_coin_AddressUxOuts_Length(SWIGTYPE_p_Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Length(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); return ret; } - public static uint SKY_coin_AddressUxOuts_Set(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher__Address p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Set(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_coin_AddressUxOuts_Set(SWIGTYPE_p_Handle p0, cipher__Address p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Set(SWIGTYPE_p_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); return ret; } @@ -1856,20 +1847,20 @@ public static uint SKY_encrypt_ScryptChacha20poly1305_Decrypt(encrypt__ScryptCha return ret; } - public static uint SKY_wallet_CreateOptionsHandle(_GoString_ p0, _GoString_ p1, _GoString_ p2, byte p3, _GoString_ p4, _GoString_ p5, ulong p6, SWIGTYPE_p_Options__Handle p7) { - uint ret = skycoinPINVOKE.SKY_wallet_CreateOptionsHandle(_GoString_.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), p3, _GoString_.getCPtr(p4), _GoString_.getCPtr(p5), p6, SWIGTYPE_p_Options__Handle.getCPtr(p7)); + public static uint SKY_wallet_CreateOptionsHandle(_GoString_ p0, _GoString_ p1, _GoString_ p2, byte p3, _GoString_ p4, _GoString_ p5, ulong p6) { + uint ret = skycoinPINVOKE.SKY_wallet_CreateOptionsHandle(_GoString_.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), p3, _GoString_.getCPtr(p4), _GoString_.getCPtr(p5), p6); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cli_AddPrivateKey(SWIGTYPE_p_Wallet__Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_AddPrivateKey(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + public static uint SKY_cli_AddPrivateKey(SWIGTYPE_p_Handle p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_AddPrivateKey(SWIGTYPE_p_Handle.getCPtr(p0), _GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cli_AddPrivateKeyToFile(_GoString_ p0, _GoString_ p1, SWIGTYPE_p_PasswordReader__Handle p2) { - uint ret = skycoinPINVOKE.SKY_cli_AddPrivateKeyToFile(_GoString_.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_PasswordReader__Handle.getCPtr(p2)); + public static uint SKY_cli_AddPrivateKeyToFile(_GoString_ p0, _GoString_ p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_cli_AddPrivateKeyToFile(_GoString_.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -1990,8 +1981,8 @@ public static uint SKY_cert_CreateCertIfNotExists(_GoString_ p0, _GoString_ p1, return ret; } - public static uint SKY_fee_VerifyTransactionFee(SWIGTYPE_p_Transaction__Handle p0, ulong p1) { - uint ret = skycoinPINVOKE.SKY_fee_VerifyTransactionFee(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); + public static uint SKY_fee_VerifyTransactionFee(SWIGTYPE_p_Handle p0, ulong p1) { + uint ret = skycoinPINVOKE.SKY_fee_VerifyTransactionFee(SWIGTYPE_p_Handle.getCPtr(p0), p1); return ret; } @@ -2010,38 +2001,38 @@ public static uint SKY_fee_RemainingHours(ulong p0, SWIGTYPE_p_unsigned_long_lon return ret; } - public static uint SKY_fee_TransactionFee(SWIGTYPE_p_Transaction__Handle p0, ulong p1, SWIGTYPE_p_GoSlice_ p2, SWIGTYPE_p_unsigned_long_long p3) { - uint ret = skycoinPINVOKE.SKY_fee_TransactionFee(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2), SWIGTYPE_p_unsigned_long_long.getCPtr(p3)); + public static uint SKY_fee_TransactionFee(SWIGTYPE_p_Handle p0, ulong p1, SWIGTYPE_p_GoSlice_ p2, SWIGTYPE_p_unsigned_long_long p3) { + uint ret = skycoinPINVOKE.SKY_fee_TransactionFee(SWIGTYPE_p_Handle.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2), SWIGTYPE_p_unsigned_long_long.getCPtr(p3)); return ret; } - public static uint SKY_cli_LoadConfig(SWIGTYPE_p_Config__Handle p0) { - uint ret = skycoinPINVOKE.SKY_cli_LoadConfig(SWIGTYPE_p_Config__Handle.getCPtr(p0)); + public static uint SKY_cli_LoadConfig() { + uint ret = skycoinPINVOKE.SKY_cli_LoadConfig(); return ret; } - public static uint SKY_cli_Config_FullWalletPath(SWIGTYPE_p_Config__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_Config_FullWalletPath(SWIGTYPE_p_Config__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_cli_Config_FullWalletPath(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_Config_FullWalletPath(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } - public static uint SKY_cli_Config_FullDBPath(SWIGTYPE_p_Config__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_Config_FullDBPath(SWIGTYPE_p_Config__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_cli_Config_FullDBPath(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_Config_FullDBPath(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } - public static uint SKY_cli_NewApp(SWIGTYPE_p_Config__Handle p0, SWIGTYPE_p_App__Handle p1) { - uint ret = skycoinPINVOKE.SKY_cli_NewApp(SWIGTYPE_p_Config__Handle.getCPtr(p0), SWIGTYPE_p_App__Handle.getCPtr(p1)); + public static uint SKY_cli_NewApp(SWIGTYPE_p_Handle p0, SWIGTYPE_p_App__Handle p1) { + uint ret = skycoinPINVOKE.SKY_cli_NewApp(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_App__Handle.getCPtr(p1)); return ret; } - public static uint SKY_cli_RPCClientFromContext(SWIGTYPE_p_Context__Handle p0, SWIGTYPE_p_WebRpcClient__Handle p1) { - uint ret = skycoinPINVOKE.SKY_cli_RPCClientFromContext(SWIGTYPE_p_Context__Handle.getCPtr(p0), SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p1)); + public static uint SKY_cli_RPCClientFromContext(SWIGTYPE_p_Context__Handle p0) { + uint ret = skycoinPINVOKE.SKY_cli_RPCClientFromContext(SWIGTYPE_p_Context__Handle.getCPtr(p0)); return ret; } - public static uint SKY_cli_ConfigFromContext(SWIGTYPE_p_Context__Handle p0, SWIGTYPE_p_Config__Handle p1) { - uint ret = skycoinPINVOKE.SKY_cli_ConfigFromContext(SWIGTYPE_p_Context__Handle.getCPtr(p0), SWIGTYPE_p_Config__Handle.getCPtr(p1)); + public static uint SKY_cli_ConfigFromContext(SWIGTYPE_p_Context__Handle p0) { + uint ret = skycoinPINVOKE.SKY_cli_ConfigFromContext(SWIGTYPE_p_Context__Handle.getCPtr(p0)); return ret; } @@ -2055,26 +2046,26 @@ public static uint SKY_cli_PasswordFromTerm_Password(SWIGTYPE_p_GoSlice_ p0) { return ret; } - public static uint SKY_cli_CreateRawTxFromWallet(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, _GoString_ p2, GoSlice p3, SWIGTYPE_p_PasswordReader__Handle p4, SWIGTYPE_p_Transaction__Handle p5) { - uint ret = skycoinPINVOKE.SKY_cli_CreateRawTxFromWallet(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), GoSlice.getCPtr(p3), SWIGTYPE_p_PasswordReader__Handle.getCPtr(p4), SWIGTYPE_p_Transaction__Handle.getCPtr(p5)); + public static uint SKY_cli_CreateRawTxFromWallet(SWIGTYPE_p_Handle p0, _GoString_ p1, _GoString_ p2, GoSlice p3, SWIGTYPE_p_Handle p4) { + uint ret = skycoinPINVOKE.SKY_cli_CreateRawTxFromWallet(SWIGTYPE_p_Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), GoSlice.getCPtr(p3), SWIGTYPE_p_Handle.getCPtr(p4)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cli_CreateRawTxFromAddress(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, _GoString_ p2, _GoString_ p3, GoSlice p4, SWIGTYPE_p_PasswordReader__Handle p5, SWIGTYPE_p_Transaction__Handle p6) { - uint ret = skycoinPINVOKE.SKY_cli_CreateRawTxFromAddress(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), _GoString_.getCPtr(p3), GoSlice.getCPtr(p4), SWIGTYPE_p_PasswordReader__Handle.getCPtr(p5), SWIGTYPE_p_Transaction__Handle.getCPtr(p6)); + public static uint SKY_cli_CreateRawTxFromAddress(SWIGTYPE_p_Handle p0, _GoString_ p1, _GoString_ p2, _GoString_ p3, GoSlice p4, SWIGTYPE_p_Handle p5) { + uint ret = skycoinPINVOKE.SKY_cli_CreateRawTxFromAddress(SWIGTYPE_p_Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), _GoString_.getCPtr(p3), GoSlice.getCPtr(p4), SWIGTYPE_p_Handle.getCPtr(p5)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cli_CreateRawTx(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_Wallet__Handle p1, GoSlice p2, _GoString_ p3, GoSlice p4, GoSlice p5, SWIGTYPE_p_Transaction__Handle p6) { - uint ret = skycoinPINVOKE.SKY_cli_CreateRawTx(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_Wallet__Handle.getCPtr(p1), GoSlice.getCPtr(p2), _GoString_.getCPtr(p3), GoSlice.getCPtr(p4), GoSlice.getCPtr(p5), SWIGTYPE_p_Transaction__Handle.getCPtr(p6)); + public static uint SKY_cli_CreateRawTx(SWIGTYPE_p_Handle p0, SWIGTYPE_p_Handle p1, GoSlice p2, _GoString_ p3, GoSlice p4, GoSlice p5) { + uint ret = skycoinPINVOKE.SKY_cli_CreateRawTx(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1), GoSlice.getCPtr(p2), _GoString_.getCPtr(p3), GoSlice.getCPtr(p4), GoSlice.getCPtr(p5)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cli_NewTransaction(GoSlice p0, GoSlice p1, GoSlice p2, SWIGTYPE_p_Transaction__Handle p3) { - uint ret = skycoinPINVOKE.SKY_cli_NewTransaction(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), SWIGTYPE_p_Transaction__Handle.getCPtr(p3)); + public static uint SKY_cli_NewTransaction(GoSlice p0, GoSlice p1, GoSlice p2) { + uint ret = skycoinPINVOKE.SKY_cli_NewTransaction(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -2102,14 +2093,14 @@ public static uint SKY_file_DetermineResourcePath(_GoString_ p0, _GoString_ p1, return ret; } - public static uint SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, SWIGTYPE_p_ReadableOutputSet__Handle p2) { - uint ret = skycoinPINVOKE.SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_ReadableOutputSet__Handle.getCPtr(p2)); + public static uint SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_Handle p0, _GoString_ p1, SWIGTYPE_p_ReadableOutputSet__Handle p2) { + uint ret = skycoinPINVOKE.SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_ReadableOutputSet__Handle.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cli_GetWalletOutputs(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_Wallet__Handle p1, SWIGTYPE_p_ReadableOutputSet__Handle p2) { - uint ret = skycoinPINVOKE.SKY_cli_GetWalletOutputs(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_Wallet__Handle.getCPtr(p1), SWIGTYPE_p_ReadableOutputSet__Handle.getCPtr(p2)); + public static uint SKY_cli_GetWalletOutputs(SWIGTYPE_p_Handle p0, SWIGTYPE_p_ReadableOutputSet__Handle p2) { + uint ret = skycoinPINVOKE.SKY_cli_GetWalletOutputs(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_ReadableOutputSet__Handle.getCPtr(p2)); return ret; } @@ -2285,98 +2276,98 @@ public static uint SKY_cipher_SHA256_Null(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE return ret; } - public static uint SKY_coin_Create_Transaction(SWIGTYPE_p_Transaction__Handle p0) { - uint ret = skycoinPINVOKE.SKY_coin_Create_Transaction(SWIGTYPE_p_Transaction__Handle.getCPtr(p0)); + public static uint SKY_coin_Create_Transaction() { + uint ret = skycoinPINVOKE.SKY_coin_Create_Transaction(); return ret; } - public static uint SKY_coin_Transaction_Copy(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_Transaction__Handle p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_Copy(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); + public static uint SKY_coin_Transaction_Copy(SWIGTYPE_p_Handle p0) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_Copy(SWIGTYPE_p_Handle.getCPtr(p0)); return ret; } - public static uint SKY_coin_GetTransactionObject(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_p_coin__Transaction p1) { - uint ret = skycoinPINVOKE.SKY_coin_GetTransactionObject(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_p_coin__Transaction.getCPtr(p1)); + public static uint SKY_coin_GetTransactionObject(SWIGTYPE_p_Handle p0, SWIGTYPE_p_p_coin__Transaction p1) { + uint ret = skycoinPINVOKE.SKY_coin_GetTransactionObject(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_p_coin__Transaction.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transaction_ResetInputs(SWIGTYPE_p_Transaction__Handle p0, long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_ResetInputs(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); + public static uint SKY_coin_Transaction_ResetInputs(SWIGTYPE_p_Handle p0, long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_ResetInputs(SWIGTYPE_p_Handle.getCPtr(p0), p1); return ret; } - public static uint SKY_coin_Transaction_GetInputsCount(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetInputsCount(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_coin_Transaction_GetInputsCount(SWIGTYPE_p_Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetInputsCount(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transaction_GetInputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, SWIGTYPE_p_a_32__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetInputAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); + public static uint SKY_coin_Transaction_GetInputAt(SWIGTYPE_p_Handle p0, long p1, SWIGTYPE_p_a_32__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetInputAt(SWIGTYPE_p_Handle.getCPtr(p0), p1, SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); return ret; } - public static uint SKY_coin_Transaction_SetInputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, SWIGTYPE_p_a_32__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetInputAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); + public static uint SKY_coin_Transaction_SetInputAt(SWIGTYPE_p_Handle p0, long p1, SWIGTYPE_p_a_32__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetInputAt(SWIGTYPE_p_Handle.getCPtr(p0), p1, SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); return ret; } - public static uint SKY_coin_Transaction_GetOutputsCount(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetOutputsCount(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_coin_Transaction_GetOutputsCount(SWIGTYPE_p_Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetOutputsCount(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transaction_GetOutputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, coin__TransactionOutput p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetOutputAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, coin__TransactionOutput.getCPtr(p2)); + public static uint SKY_coin_Transaction_GetOutputAt(SWIGTYPE_p_Handle p0, long p1, coin__TransactionOutput p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetOutputAt(SWIGTYPE_p_Handle.getCPtr(p0), p1, coin__TransactionOutput.getCPtr(p2)); return ret; } - public static uint SKY_coin_Transaction_SetOutputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, coin__TransactionOutput p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetOutputAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, coin__TransactionOutput.getCPtr(p2)); + public static uint SKY_coin_Transaction_SetOutputAt(SWIGTYPE_p_Handle p0, long p1, coin__TransactionOutput p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetOutputAt(SWIGTYPE_p_Handle.getCPtr(p0), p1, coin__TransactionOutput.getCPtr(p2)); return ret; } - public static uint SKY_coin_Transaction_GetSignaturesCount(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetSignaturesCount(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_coin_Transaction_GetSignaturesCount(SWIGTYPE_p_Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetSignaturesCount(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transaction_GetSignatureAt(SWIGTYPE_p_Transaction__Handle p0, long p1, SWIGTYPE_p_a_65__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetSignatureAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); + public static uint SKY_coin_Transaction_GetSignatureAt(SWIGTYPE_p_Handle p0, long p1, SWIGTYPE_p_a_65__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetSignatureAt(SWIGTYPE_p_Handle.getCPtr(p0), p1, SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); return ret; } - public static uint SKY_coin_Transaction_SetSignatureAt(SWIGTYPE_p_Transaction__Handle p0, long p1, SWIGTYPE_p_a_65__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetSignatureAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); + public static uint SKY_coin_Transaction_SetSignatureAt(SWIGTYPE_p_Handle p0, long p1, SWIGTYPE_p_a_65__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetSignatureAt(SWIGTYPE_p_Handle.getCPtr(p0), p1, SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); return ret; } - public static uint SKY_coin_Transaction_PushSignature(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_a_65__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushSignature(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1)); + public static uint SKY_coin_Transaction_PushSignature(SWIGTYPE_p_Handle p0, SWIGTYPE_p_a_65__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushSignature(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transaction_ResetOutputs(SWIGTYPE_p_Transaction__Handle p0, long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_ResetOutputs(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); + public static uint SKY_coin_Transaction_ResetOutputs(SWIGTYPE_p_Handle p0, long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_ResetOutputs(SWIGTYPE_p_Handle.getCPtr(p0), p1); return ret; } - public static uint SKY_coin_Transaction_ResetSignatures(SWIGTYPE_p_Transaction__Handle p0, long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_ResetSignatures(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); + public static uint SKY_coin_Transaction_ResetSignatures(SWIGTYPE_p_Handle p0, long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_ResetSignatures(SWIGTYPE_p_Handle.getCPtr(p0), p1); return ret; } - public static uint SKY_coin_Transaction_Verify(SWIGTYPE_p_Transaction__Handle p0) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_Verify(SWIGTYPE_p_Transaction__Handle.getCPtr(p0)); + public static uint SKY_coin_Transaction_Verify(SWIGTYPE_p_Handle p0) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_Verify(SWIGTYPE_p_Handle.getCPtr(p0)); return ret; } - public static uint SKY_coin_Transaction_VerifyInput(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_VerifyInput(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_coin_Transaction_VerifyInput(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_VerifyInput(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transaction_PushInput(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_unsigned_short p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushInput(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_unsigned_short.getCPtr(p2)); + public static uint SKY_coin_Transaction_PushInput(SWIGTYPE_p_Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_unsigned_short p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushInput(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_unsigned_short.getCPtr(p2)); return ret; } @@ -2385,144 +2376,140 @@ public static uint SKY_coin_TransactionOutput_UxID(coin__TransactionOutput p0, S return ret; } - public static uint SKY_coin_Transaction_PushOutput(SWIGTYPE_p_Transaction__Handle p0, cipher__Address p1, ulong p2, ulong p3) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushOutput(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), cipher__Address.getCPtr(p1), p2, p3); + public static uint SKY_coin_Transaction_PushOutput(SWIGTYPE_p_Handle p0, cipher__Address p1, ulong p2, ulong p3) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushOutput(SWIGTYPE_p_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), p2, p3); return ret; } - public static uint SKY_coin_Transaction_SignInputs(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_SignInputs(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr(p1)); + public static uint SKY_coin_Transaction_SignInputs(SWIGTYPE_p_Handle p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_SignInputs(SWIGTYPE_p_Handle.getCPtr(p0), GoSlice.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_Transaction_Size(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_Size(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_coin_Transaction_Size(SWIGTYPE_p_Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_Size(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transaction_Hash(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_Hash(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + public static uint SKY_coin_Transaction_Hash(SWIGTYPE_p_Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_Hash(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transaction_SizeHash(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1, SWIGTYPE_p_a_32__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_SizeHash(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); + public static uint SKY_coin_Transaction_SizeHash(SWIGTYPE_p_Handle p0, SWIGTYPE_p_long_long p1, SWIGTYPE_p_a_32__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_SizeHash(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); return ret; } - public static uint SKY_coin_Transaction_TxID(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_TxID(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_coin_Transaction_TxID(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_TxID(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transaction_TxIDHex(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_TxIDHex(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_coin_Transaction_TxIDHex(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_TxIDHex(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transaction_UpdateHeader(SWIGTYPE_p_Transaction__Handle p0) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_UpdateHeader(SWIGTYPE_p_Transaction__Handle.getCPtr(p0)); + public static uint SKY_coin_Transaction_UpdateHeader(SWIGTYPE_p_Handle p0) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_UpdateHeader(SWIGTYPE_p_Handle.getCPtr(p0)); return ret; } - public static uint SKY_coin_Transaction_HashInner(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_HashInner(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + public static uint SKY_coin_Transaction_HashInner(SWIGTYPE_p_Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_HashInner(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transaction_Serialize(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_Serialize(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_coin_Transaction_Serialize(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_Serialize(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); return ret; } - public static uint SKY_coin_TransactionDeserialize(GoSlice p0, SWIGTYPE_p_Transaction__Handle p1) { - uint ret = skycoinPINVOKE.SKY_coin_TransactionDeserialize(GoSlice.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); + public static uint SKY_coin_TransactionDeserialize(GoSlice p0) { + uint ret = skycoinPINVOKE.SKY_coin_TransactionDeserialize(GoSlice.getCPtr(p0)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_Transaction_OutputHours(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_OutputHours(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static uint SKY_coin_Transaction_OutputHours(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_OutputHours(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); return ret; } - public static uint SKY_coin_Create_Transactions(SWIGTYPE_p_Transactions__Handle p0) { - uint ret = skycoinPINVOKE.SKY_coin_Create_Transactions(SWIGTYPE_p_Transactions__Handle.getCPtr(p0)); + public static uint SKY_coin_Create_Transactions() { + uint ret = skycoinPINVOKE.SKY_coin_Create_Transactions(); return ret; } - public static uint SKY_coin_GetTransactionsObject(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_GetTransactionsObject(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_p_GoSlice_.getCPtr(p1)); + public static uint SKY_coin_GetTransactionsObject(SWIGTYPE_p_Handle p0, SWIGTYPE_p_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_GetTransactionsObject(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_p_GoSlice_.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transactions_Length(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transactions_Length(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_coin_Transactions_Length(SWIGTYPE_p_Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_Length(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transactions_Add(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_Transaction__Handle p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transactions_Add(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); + public static uint SKY_coin_Transactions_Add(SWIGTYPE_p_Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_Add(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transactions_Fees(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_FeeCalculator p1, SWIGTYPE_p_unsigned_long_long p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transactions_Fees(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1), SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); + public static uint SKY_coin_Transactions_Fees(SWIGTYPE_p_Handle p0, SWIGTYPE_p_FeeCalculator p1, SWIGTYPE_p_unsigned_long_long p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_Fees(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1), SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); return ret; } - public static uint SKY_coin_Transactions_GetAt(SWIGTYPE_p_Transactions__Handle p0, long p1, SWIGTYPE_p_Transaction__Handle p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transactions_GetAt(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), p1, SWIGTYPE_p_Transaction__Handle.getCPtr(p2)); + public static uint SKY_coin_Transactions_GetAt(SWIGTYPE_p_Handle p0, long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_GetAt(SWIGTYPE_p_Handle.getCPtr(p0), p1); return ret; } - public static uint SKY_coin_Transactions_Hashes(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transactions_Hashes(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_coin_Transactions_Hashes(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_Hashes(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transactions_Size(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transactions_Size(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_coin_Transactions_Size(SWIGTYPE_p_Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_Size(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transactions_TruncateBytesTo(SWIGTYPE_p_Transactions__Handle p0, long p1, SWIGTYPE_p_Transactions__Handle p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transactions_TruncateBytesTo(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), p1, SWIGTYPE_p_Transactions__Handle.getCPtr(p2)); + public static uint SKY_coin_Transactions_TruncateBytesTo(SWIGTYPE_p_Handle p0, long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_TruncateBytesTo(SWIGTYPE_p_Handle.getCPtr(p0), p1); return ret; } - public static uint SKY_coin_SortTransactions(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_FeeCalculator p1, SWIGTYPE_p_Transactions__Handle p2) { - uint ret = skycoinPINVOKE.SKY_coin_SortTransactions(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1), SWIGTYPE_p_Transactions__Handle.getCPtr(p2)); + public static uint SKY_coin_SortTransactions(SWIGTYPE_p_Handle p0, SWIGTYPE_p_FeeCalculator p1) { + uint ret = skycoinPINVOKE.SKY_coin_SortTransactions(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1)); return ret; } - public static uint SKY_coin_NewSortableTransactions(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_FeeCalculator p1, SWIGTYPE_p_SortableTransactionResult_Handle p2) { - uint ret = skycoinPINVOKE.SKY_coin_NewSortableTransactions(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1), SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p2)); + public static uint SKY_coin_NewSortableTransactions(SWIGTYPE_p_Handle p0, SWIGTYPE_p_FeeCalculator p1) { + uint ret = skycoinPINVOKE.SKY_coin_NewSortableTransactions(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1)); return ret; } - public static uint SKY_coin_SortableTransactions_Sort(SWIGTYPE_p_SortableTransactionResult_Handle p0) { - uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Sort(SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p0)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_coin_SortableTransactions_Sort(SWIGTYPE_p_Handle p0) { + uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Sort(SWIGTYPE_p_Handle.getCPtr(p0)); return ret; } - public static uint SKY_coin_SortableTransactions_Len(SWIGTYPE_p_SortableTransactionResult_Handle p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Len(SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_coin_SortableTransactions_Len(SWIGTYPE_p_Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Len(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); return ret; } - public static uint SKY_coin_SortableTransactions_Less(SWIGTYPE_p_SortableTransactionResult_Handle p0, long p1, long p2, SWIGTYPE_p_unsigned_char p3) { - uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Less(SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p0), p1, p2, SWIGTYPE_p_unsigned_char.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_coin_SortableTransactions_Less(SWIGTYPE_p_Handle p0, long p1, long p2, SWIGTYPE_p_unsigned_char p3) { + uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Less(SWIGTYPE_p_Handle.getCPtr(p0), p1, p2, SWIGTYPE_p_unsigned_char.getCPtr(p3)); return ret; } - public static uint SKY_coin_SortableTransactions_Swap(SWIGTYPE_p_SortableTransactionResult_Handle p0, long p1, long p2) { - uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Swap(SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p0), p1, p2); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_coin_SortableTransactions_Swap(SWIGTYPE_p_Handle p0, long p1, long p2) { + uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Swap(SWIGTYPE_p_Handle.getCPtr(p0), p1, p2); return ret; } @@ -2536,162 +2523,162 @@ public static uint SKY_coin_VerifyTransactionHoursSpending(ulong p0, SWIGTYPE_p_ return ret; } - public static readonly long SKY_ErrVerifySignatureInvalidPubkeysLength = skycoinPINVOKE.SKY_ErrVerifySignatureInvalidPubkeysLength_get(); - public static readonly long SKY_OK = skycoinPINVOKE.SKY_OK_get(); - public static readonly long SKY_ERROR = skycoinPINVOKE.SKY_ERROR_get(); - public static readonly long SKY_PKG_API = skycoinPINVOKE.SKY_PKG_API_get(); - public static readonly long SKY_PKG_CIPHER = skycoinPINVOKE.SKY_PKG_CIPHER_get(); - public static readonly long SKY_PKG_CLI = skycoinPINVOKE.SKY_PKG_CLI_get(); - public static readonly long SKY_PKG_COIN = skycoinPINVOKE.SKY_PKG_COIN_get(); - public static readonly long SKY_PKG_CONSENSUS = skycoinPINVOKE.SKY_PKG_CONSENSUS_get(); - public static readonly long SKY_PKG_DAEMON = skycoinPINVOKE.SKY_PKG_DAEMON_get(); - public static readonly long SKY_PKG_GUI = skycoinPINVOKE.SKY_PKG_GUI_get(); - public static readonly long SKY_PKG_SKYCOIN = skycoinPINVOKE.SKY_PKG_SKYCOIN_get(); - public static readonly long SKY_PKG_UTIL = skycoinPINVOKE.SKY_PKG_UTIL_get(); - public static readonly long SKY_PKG_VISOR = skycoinPINVOKE.SKY_PKG_VISOR_get(); - public static readonly long SKY_PKG_WALLET = skycoinPINVOKE.SKY_PKG_WALLET_get(); - public static readonly long SKY_ErrAddressInvalidLength = skycoinPINVOKE.SKY_ErrAddressInvalidLength_get(); - public static readonly long SKY_ErrAddressInvalidChecksum = skycoinPINVOKE.SKY_ErrAddressInvalidChecksum_get(); - public static readonly long SKY_ErrAddressInvalidVersion = skycoinPINVOKE.SKY_ErrAddressInvalidVersion_get(); - public static readonly long SKY_ErrAddressInvalidPubKey = skycoinPINVOKE.SKY_ErrAddressInvalidPubKey_get(); - public static readonly long SKY_ErrAddressInvalidFirstByte = skycoinPINVOKE.SKY_ErrAddressInvalidFirstByte_get(); - public static readonly long SKY_ErrAddressInvalidLastByte = skycoinPINVOKE.SKY_ErrAddressInvalidLastByte_get(); - public static readonly long SKY_ErrBufferUnderflow = skycoinPINVOKE.SKY_ErrBufferUnderflow_get(); - public static readonly long SKY_ErrInvalidOmitEmpty = skycoinPINVOKE.SKY_ErrInvalidOmitEmpty_get(); - public static readonly long SKY_ErrInvalidLengthPubKey = skycoinPINVOKE.SKY_ErrInvalidLengthPubKey_get(); - public static readonly long SKY_ErrPubKeyFromNullSecKey = skycoinPINVOKE.SKY_ErrPubKeyFromNullSecKey_get(); - public static readonly long SKY_ErrPubKeyFromBadSecKey = skycoinPINVOKE.SKY_ErrPubKeyFromBadSecKey_get(); - public static readonly long SKY_ErrInvalidLengthSecKey = skycoinPINVOKE.SKY_ErrInvalidLengthSecKey_get(); - public static readonly long SKY_ErrECHDInvalidPubKey = skycoinPINVOKE.SKY_ErrECHDInvalidPubKey_get(); - public static readonly long SKY_ErrECHDInvalidSecKey = skycoinPINVOKE.SKY_ErrECHDInvalidSecKey_get(); - public static readonly long SKY_ErrInvalidLengthSig = skycoinPINVOKE.SKY_ErrInvalidLengthSig_get(); - public static readonly long SKY_ErrInvalidLengthRipemd160 = skycoinPINVOKE.SKY_ErrInvalidLengthRipemd160_get(); - public static readonly long SKY_ErrInvalidLengthSHA256 = skycoinPINVOKE.SKY_ErrInvalidLengthSHA256_get(); - public static readonly long SKY_ErrInvalidBase58Char = skycoinPINVOKE.SKY_ErrInvalidBase58Char_get(); - public static readonly long SKY_ErrInvalidBase58String = skycoinPINVOKE.SKY_ErrInvalidBase58String_get(); - public static readonly long SKY_ErrInvalidBase58Length = skycoinPINVOKE.SKY_ErrInvalidBase58Length_get(); - public static readonly long SKY_ErrInvalidHexLength = skycoinPINVOKE.SKY_ErrInvalidHexLength_get(); - public static readonly long SKY_ErrInvalidBytesLength = skycoinPINVOKE.SKY_ErrInvalidBytesLength_get(); - public static readonly long SKY_ErrInvalidPubKey = skycoinPINVOKE.SKY_ErrInvalidPubKey_get(); - public static readonly long SKY_ErrInvalidSecKey = skycoinPINVOKE.SKY_ErrInvalidSecKey_get(); - public static readonly long SKY_ErrInvalidSigForPubKey = skycoinPINVOKE.SKY_ErrInvalidSigForPubKey_get(); - public static readonly long SKY_ErrInvalidSecKeyHex = skycoinPINVOKE.SKY_ErrInvalidSecKeyHex_get(); - public static readonly long SKY_ErrInvalidAddressForSig = skycoinPINVOKE.SKY_ErrInvalidAddressForSig_get(); - public static readonly long SKY_ErrInvalidHashForSig = skycoinPINVOKE.SKY_ErrInvalidHashForSig_get(); - public static readonly long SKY_ErrPubKeyRecoverMismatch = skycoinPINVOKE.SKY_ErrPubKeyRecoverMismatch_get(); - public static readonly long SKY_ErrInvalidSigInvalidPubKey = skycoinPINVOKE.SKY_ErrInvalidSigInvalidPubKey_get(); - public static readonly long SKY_ErrInvalidSigValidity = skycoinPINVOKE.SKY_ErrInvalidSigValidity_get(); - public static readonly long SKY_ErrInvalidSigForMessage = skycoinPINVOKE.SKY_ErrInvalidSigForMessage_get(); - public static readonly long SKY_ErrInvalidSecKyVerification = skycoinPINVOKE.SKY_ErrInvalidSecKyVerification_get(); - public static readonly long SKY_ErrNullPubKeyFromSecKey = skycoinPINVOKE.SKY_ErrNullPubKeyFromSecKey_get(); - public static readonly long SKY_ErrInvalidDerivedPubKeyFromSecKey = skycoinPINVOKE.SKY_ErrInvalidDerivedPubKeyFromSecKey_get(); - public static readonly long SKY_ErrInvalidPubKeyFromHash = skycoinPINVOKE.SKY_ErrInvalidPubKeyFromHash_get(); - public static readonly long SKY_ErrPubKeyFromSecKeyMissmatch = skycoinPINVOKE.SKY_ErrPubKeyFromSecKeyMissmatch_get(); - public static readonly long SKY_ErrTemporaryInsufficientBalance = skycoinPINVOKE.SKY_ErrTemporaryInsufficientBalance_get(); - public static readonly long SKY_ErrAddress = skycoinPINVOKE.SKY_ErrAddress_get(); - public static readonly long SKY_ErrWalletName = skycoinPINVOKE.SKY_ErrWalletName_get(); - public static readonly long SKY_ErrJSONMarshal = skycoinPINVOKE.SKY_ErrJSONMarshal_get(); - public static readonly long SKY_WalletLoadError = skycoinPINVOKE.SKY_WalletLoadError_get(); - public static readonly long SKY_WalletSaveError = skycoinPINVOKE.SKY_WalletSaveError_get(); - public static readonly long SKY_ErrAddEarnedCoinHoursAdditionOverflow = skycoinPINVOKE.SKY_ErrAddEarnedCoinHoursAdditionOverflow_get(); - public static readonly long SKY_ErrUint64MultOverflow = skycoinPINVOKE.SKY_ErrUint64MultOverflow_get(); - public static readonly long SKY_ErrUint64AddOverflow = skycoinPINVOKE.SKY_ErrUint64AddOverflow_get(); - public static readonly long SKY_ErrUint32AddOverflow = skycoinPINVOKE.SKY_ErrUint32AddOverflow_get(); - public static readonly long SKY_ErrUint64OverflowsInt64 = skycoinPINVOKE.SKY_ErrUint64OverflowsInt64_get(); - public static readonly long SKY_ErrInt64UnderflowsUint64 = skycoinPINVOKE.SKY_ErrInt64UnderflowsUint64_get(); - public static readonly long SKY_ErrPeerlistFull = skycoinPINVOKE.SKY_ErrPeerlistFull_get(); - public static readonly long SKY_ErrInvalidAddress = skycoinPINVOKE.SKY_ErrInvalidAddress_get(); - public static readonly long SKY_ErrNoLocalhost = skycoinPINVOKE.SKY_ErrNoLocalhost_get(); - public static readonly long SKY_ErrNotExternalIP = skycoinPINVOKE.SKY_ErrNotExternalIP_get(); - public static readonly long SKY_ErrPortTooLow = skycoinPINVOKE.SKY_ErrPortTooLow_get(); - public static readonly long SKY_ErrBlacklistedAddress = skycoinPINVOKE.SKY_ErrBlacklistedAddress_get(); - public static readonly long SKY_ErrDisconnectReadFailed = skycoinPINVOKE.SKY_ErrDisconnectReadFailed_get(); - public static readonly long SKY_ErrDisconnectWriteFailed = skycoinPINVOKE.SKY_ErrDisconnectWriteFailed_get(); - public static readonly long SKY_ErrDisconnectSetReadDeadlineFailed = skycoinPINVOKE.SKY_ErrDisconnectSetReadDeadlineFailed_get(); - public static readonly long SKY_ErrDisconnectInvalidMessageLength = skycoinPINVOKE.SKY_ErrDisconnectInvalidMessageLength_get(); - public static readonly long SKY_ErrDisconnectMalformedMessage = skycoinPINVOKE.SKY_ErrDisconnectMalformedMessage_get(); - public static readonly long SKY_ErrDisconnectUnknownMessage = skycoinPINVOKE.SKY_ErrDisconnectUnknownMessage_get(); - public static readonly long SKY_ErrDisconnectUnexpectedError = skycoinPINVOKE.SKY_ErrDisconnectUnexpectedError_get(); - public static readonly long SKY_ErrConnectionPoolClosed = skycoinPINVOKE.SKY_ErrConnectionPoolClosed_get(); - public static readonly long SKY_ErrWriteQueueFull = skycoinPINVOKE.SKY_ErrWriteQueueFull_get(); - public static readonly long SKY_ErrNoReachableConnections = skycoinPINVOKE.SKY_ErrNoReachableConnections_get(); - public static readonly long SKY_ErrMaxDefaultConnectionsReached = skycoinPINVOKE.SKY_ErrMaxDefaultConnectionsReached_get(); - public static readonly long SKY_ErrDisconnectInvalidVersion = skycoinPINVOKE.SKY_ErrDisconnectInvalidVersion_get(); - public static readonly long SKY_ErrDisconnectIntroductionTimeout = skycoinPINVOKE.SKY_ErrDisconnectIntroductionTimeout_get(); - public static readonly long SKY_ErrDisconnectVersionSendFailed = skycoinPINVOKE.SKY_ErrDisconnectVersionSendFailed_get(); - public static readonly long SKY_ErrDisconnectIsBlacklisted = skycoinPINVOKE.SKY_ErrDisconnectIsBlacklisted_get(); - public static readonly long SKY_ErrDisconnectSelf = skycoinPINVOKE.SKY_ErrDisconnectSelf_get(); - public static readonly long SKY_ErrDisconnectConnectedTwice = skycoinPINVOKE.SKY_ErrDisconnectConnectedTwice_get(); - public static readonly long SKY_ErrDisconnectIdle = skycoinPINVOKE.SKY_ErrDisconnectIdle_get(); - public static readonly long SKY_ErrDisconnectNoIntroduction = skycoinPINVOKE.SKY_ErrDisconnectNoIntroduction_get(); - public static readonly long SKY_ErrDisconnectIPLimitReached = skycoinPINVOKE.SKY_ErrDisconnectIPLimitReached_get(); - public static readonly long SKY_ErrDisconnectOtherError = skycoinPINVOKE.SKY_ErrDisconnectOtherError_get(); - public static readonly long SKY_ErrDisconnectMaxDefaultConnectionReached = skycoinPINVOKE.SKY_ErrDisconnectMaxDefaultConnectionReached_get(); - public static readonly long SKY_ErrDisconnectMaxOutgoingConnectionsReached = skycoinPINVOKE.SKY_ErrDisconnectMaxOutgoingConnectionsReached_get(); - public static readonly long SKY_ConnectionError = skycoinPINVOKE.SKY_ConnectionError_get(); - public static readonly long SKY_ErrTxnNoFee = skycoinPINVOKE.SKY_ErrTxnNoFee_get(); - public static readonly long SKY_ErrTxnInsufficientFee = skycoinPINVOKE.SKY_ErrTxnInsufficientFee_get(); - public static readonly long SKY_ErrTxnInsufficientCoinHours = skycoinPINVOKE.SKY_ErrTxnInsufficientCoinHours_get(); - public static readonly long SKY_ErrNegativeValue = skycoinPINVOKE.SKY_ErrNegativeValue_get(); - public static readonly long SKY_ErrTooManyDecimals = skycoinPINVOKE.SKY_ErrTooManyDecimals_get(); - public static readonly long SKY_ErrTooLarge = skycoinPINVOKE.SKY_ErrTooLarge_get(); - public static readonly long SKY_ErrEmptyDirectoryName = skycoinPINVOKE.SKY_ErrEmptyDirectoryName_get(); - public static readonly long SKY_ErrDotDirectoryName = skycoinPINVOKE.SKY_ErrDotDirectoryName_get(); - public static readonly long SKY_ErrHistoryDBCorrupted = skycoinPINVOKE.SKY_ErrHistoryDBCorrupted_get(); - public static readonly long SKY_ErrUxOutNotExist = skycoinPINVOKE.SKY_ErrUxOutNotExist_get(); - public static readonly long SKY_ErrNoHeadBlock = skycoinPINVOKE.SKY_ErrNoHeadBlock_get(); - public static readonly long SKY_ErrMissingSignature = skycoinPINVOKE.SKY_ErrMissingSignature_get(); - public static readonly long SKY_ErrUnspentNotExist = skycoinPINVOKE.SKY_ErrUnspentNotExist_get(); - public static readonly long SKY_ErrVerifyStopped = skycoinPINVOKE.SKY_ErrVerifyStopped_get(); - public static readonly long SKY_ErrCreateBucketFailed = skycoinPINVOKE.SKY_ErrCreateBucketFailed_get(); - public static readonly long SKY_ErrBucketNotExist = skycoinPINVOKE.SKY_ErrBucketNotExist_get(); - public static readonly long SKY_ErrTxnViolatesHardConstraint = skycoinPINVOKE.SKY_ErrTxnViolatesHardConstraint_get(); - public static readonly long SKY_ErrTxnViolatesSoftConstraint = skycoinPINVOKE.SKY_ErrTxnViolatesSoftConstraint_get(); - public static readonly long SKY_ErrTxnViolatesUserConstraint = skycoinPINVOKE.SKY_ErrTxnViolatesUserConstraint_get(); - public static readonly long SKY_ErrInsufficientBalance = skycoinPINVOKE.SKY_ErrInsufficientBalance_get(); - public static readonly long SKY_ErrInsufficientHours = skycoinPINVOKE.SKY_ErrInsufficientHours_get(); - public static readonly long SKY_ErrZeroSpend = skycoinPINVOKE.SKY_ErrZeroSpend_get(); - public static readonly long SKY_ErrSpendingUnconfirmed = skycoinPINVOKE.SKY_ErrSpendingUnconfirmed_get(); - public static readonly long SKY_ErrInvalidEncryptedField = skycoinPINVOKE.SKY_ErrInvalidEncryptedField_get(); - public static readonly long SKY_ErrWalletEncrypted = skycoinPINVOKE.SKY_ErrWalletEncrypted_get(); - public static readonly long SKY_ErrWalletNotEncrypted = skycoinPINVOKE.SKY_ErrWalletNotEncrypted_get(); - public static readonly long SKY_ErrMissingPassword = skycoinPINVOKE.SKY_ErrMissingPassword_get(); - public static readonly long SKY_ErrMissingEncrypt = skycoinPINVOKE.SKY_ErrMissingEncrypt_get(); - public static readonly long SKY_ErrInvalidPassword = skycoinPINVOKE.SKY_ErrInvalidPassword_get(); - public static readonly long SKY_ErrMissingSeed = skycoinPINVOKE.SKY_ErrMissingSeed_get(); - public static readonly long SKY_ErrMissingAuthenticated = skycoinPINVOKE.SKY_ErrMissingAuthenticated_get(); - public static readonly long SKY_ErrWrongCryptoType = skycoinPINVOKE.SKY_ErrWrongCryptoType_get(); - public static readonly long SKY_ErrWalletNotExist = skycoinPINVOKE.SKY_ErrWalletNotExist_get(); - public static readonly long SKY_ErrSeedUsed = skycoinPINVOKE.SKY_ErrSeedUsed_get(); - public static readonly long SKY_ErrWalletAPIDisabled = skycoinPINVOKE.SKY_ErrWalletAPIDisabled_get(); - public static readonly long SKY_ErrSeedAPIDisabled = skycoinPINVOKE.SKY_ErrSeedAPIDisabled_get(); - public static readonly long SKY_ErrWalletNameConflict = skycoinPINVOKE.SKY_ErrWalletNameConflict_get(); - public static readonly long SKY_ErrInvalidHoursSelectionMode = skycoinPINVOKE.SKY_ErrInvalidHoursSelectionMode_get(); - public static readonly long SKY_ErrInvalidHoursSelectionType = skycoinPINVOKE.SKY_ErrInvalidHoursSelectionType_get(); - public static readonly long SKY_ErrUnknownAddress = skycoinPINVOKE.SKY_ErrUnknownAddress_get(); - public static readonly long SKY_ErrUnknownUxOut = skycoinPINVOKE.SKY_ErrUnknownUxOut_get(); - public static readonly long SKY_ErrNoUnspents = skycoinPINVOKE.SKY_ErrNoUnspents_get(); - public static readonly long SKY_ErrNullChangeAddress = skycoinPINVOKE.SKY_ErrNullChangeAddress_get(); - public static readonly long SKY_ErrMissingTo = skycoinPINVOKE.SKY_ErrMissingTo_get(); - public static readonly long SKY_ErrZeroCoinsTo = skycoinPINVOKE.SKY_ErrZeroCoinsTo_get(); - public static readonly long SKY_ErrNullAddressTo = skycoinPINVOKE.SKY_ErrNullAddressTo_get(); - public static readonly long SKY_ErrDuplicateTo = skycoinPINVOKE.SKY_ErrDuplicateTo_get(); - public static readonly long SKY_ErrMissingWalletID = skycoinPINVOKE.SKY_ErrMissingWalletID_get(); - public static readonly long SKY_ErrIncludesNullAddress = skycoinPINVOKE.SKY_ErrIncludesNullAddress_get(); - public static readonly long SKY_ErrDuplicateAddresses = skycoinPINVOKE.SKY_ErrDuplicateAddresses_get(); - public static readonly long SKY_ErrZeroToHoursAuto = skycoinPINVOKE.SKY_ErrZeroToHoursAuto_get(); - public static readonly long SKY_ErrMissingModeAuto = skycoinPINVOKE.SKY_ErrMissingModeAuto_get(); - public static readonly long SKY_ErrInvalidHoursSelMode = skycoinPINVOKE.SKY_ErrInvalidHoursSelMode_get(); - public static readonly long SKY_ErrInvalidModeManual = skycoinPINVOKE.SKY_ErrInvalidModeManual_get(); - public static readonly long SKY_ErrInvalidHoursSelType = skycoinPINVOKE.SKY_ErrInvalidHoursSelType_get(); - public static readonly long SKY_ErrMissingShareFactor = skycoinPINVOKE.SKY_ErrMissingShareFactor_get(); - public static readonly long SKY_ErrInvalidShareFactor = skycoinPINVOKE.SKY_ErrInvalidShareFactor_get(); - public static readonly long SKY_ErrShareFactorOutOfRange = skycoinPINVOKE.SKY_ErrShareFactorOutOfRange_get(); - public static readonly long SKY_ErrWalletConstraint = skycoinPINVOKE.SKY_ErrWalletConstraint_get(); - public static readonly long SKY_ErrDuplicateUxOuts = skycoinPINVOKE.SKY_ErrDuplicateUxOuts_get(); - public static readonly long SKY_ErrUnknownWalletID = skycoinPINVOKE.SKY_ErrUnknownWalletID_get(); - public static readonly long SKY_ErrSHA256orMissingPassword = skycoinPINVOKE.SKY_ErrSHA256orMissingPassword_get(); - public static readonly long SKY_ErrSHA256LenghtDataOverflowMaxUint32 = skycoinPINVOKE.SKY_ErrSHA256LenghtDataOverflowMaxUint32_get(); + public static readonly long SKY_ErrVerifySignatureInvalidPubkeysLength = skycoinPINVOKE.get_SKY_ErrVerifySignatureInvalidPubkeysLength(); + public static readonly long SKY_OK = skycoinPINVOKE.get_SKY_OK(); + public static readonly long SKY_ERROR = skycoinPINVOKE.get_SKY_ERROR(); + public static readonly long SKY_PKG_API = skycoinPINVOKE.get_SKY_PKG_API(); + public static readonly long SKY_PKG_CIPHER = skycoinPINVOKE.get_SKY_PKG_CIPHER(); + public static readonly long SKY_PKG_CLI = skycoinPINVOKE.get_SKY_PKG_CLI(); + public static readonly long SKY_PKG_COIN = skycoinPINVOKE.get_SKY_PKG_COIN(); + public static readonly long SKY_PKG_CONSENSUS = skycoinPINVOKE.get_SKY_PKG_CONSENSUS(); + public static readonly long SKY_PKG_DAEMON = skycoinPINVOKE.get_SKY_PKG_DAEMON(); + public static readonly long SKY_PKG_GUI = skycoinPINVOKE.get_SKY_PKG_GUI(); + public static readonly long SKY_PKG_SKYCOIN = skycoinPINVOKE.get_SKY_PKG_SKYCOIN(); + public static readonly long SKY_PKG_UTIL = skycoinPINVOKE.get_SKY_PKG_UTIL(); + public static readonly long SKY_PKG_VISOR = skycoinPINVOKE.get_SKY_PKG_VISOR(); + public static readonly long SKY_PKG_WALLET = skycoinPINVOKE.get_SKY_PKG_WALLET(); + public static readonly long SKY_ErrAddressInvalidLength = skycoinPINVOKE.get_SKY_ErrAddressInvalidLength(); + public static readonly long SKY_ErrAddressInvalidChecksum = skycoinPINVOKE.get_SKY_ErrAddressInvalidChecksum(); + public static readonly long SKY_ErrAddressInvalidVersion = skycoinPINVOKE.get_SKY_ErrAddressInvalidVersion(); + public static readonly long SKY_ErrAddressInvalidPubKey = skycoinPINVOKE.get_SKY_ErrAddressInvalidPubKey(); + public static readonly long SKY_ErrAddressInvalidFirstByte = skycoinPINVOKE.get_SKY_ErrAddressInvalidFirstByte(); + public static readonly long SKY_ErrAddressInvalidLastByte = skycoinPINVOKE.get_SKY_ErrAddressInvalidLastByte(); + public static readonly long SKY_ErrBufferUnderflow = skycoinPINVOKE.get_SKY_ErrBufferUnderflow(); + public static readonly long SKY_ErrInvalidOmitEmpty = skycoinPINVOKE.get_SKY_ErrInvalidOmitEmpty(); + public static readonly long SKY_ErrInvalidLengthPubKey = skycoinPINVOKE.get_SKY_ErrInvalidLengthPubKey(); + public static readonly long SKY_ErrPubKeyFromNullSecKey = skycoinPINVOKE.get_SKY_ErrPubKeyFromNullSecKey(); + public static readonly long SKY_ErrPubKeyFromBadSecKey = skycoinPINVOKE.get_SKY_ErrPubKeyFromBadSecKey(); + public static readonly long SKY_ErrInvalidLengthSecKey = skycoinPINVOKE.get_SKY_ErrInvalidLengthSecKey(); + public static readonly long SKY_ErrECHDInvalidPubKey = skycoinPINVOKE.get_SKY_ErrECHDInvalidPubKey(); + public static readonly long SKY_ErrECHDInvalidSecKey = skycoinPINVOKE.get_SKY_ErrECHDInvalidSecKey(); + public static readonly long SKY_ErrInvalidLengthSig = skycoinPINVOKE.get_SKY_ErrInvalidLengthSig(); + public static readonly long SKY_ErrInvalidLengthRipemd160 = skycoinPINVOKE.get_SKY_ErrInvalidLengthRipemd160(); + public static readonly long SKY_ErrInvalidLengthSHA256 = skycoinPINVOKE.get_SKY_ErrInvalidLengthSHA256(); + public static readonly long SKY_ErrInvalidBase58Char = skycoinPINVOKE.get_SKY_ErrInvalidBase58Char(); + public static readonly long SKY_ErrInvalidBase58String = skycoinPINVOKE.get_SKY_ErrInvalidBase58String(); + public static readonly long SKY_ErrInvalidBase58Length = skycoinPINVOKE.get_SKY_ErrInvalidBase58Length(); + public static readonly long SKY_ErrInvalidHexLength = skycoinPINVOKE.get_SKY_ErrInvalidHexLength(); + public static readonly long SKY_ErrInvalidBytesLength = skycoinPINVOKE.get_SKY_ErrInvalidBytesLength(); + public static readonly long SKY_ErrInvalidPubKey = skycoinPINVOKE.get_SKY_ErrInvalidPubKey(); + public static readonly long SKY_ErrInvalidSecKey = skycoinPINVOKE.get_SKY_ErrInvalidSecKey(); + public static readonly long SKY_ErrInvalidSigForPubKey = skycoinPINVOKE.get_SKY_ErrInvalidSigForPubKey(); + public static readonly long SKY_ErrInvalidSecKeyHex = skycoinPINVOKE.get_SKY_ErrInvalidSecKeyHex(); + public static readonly long SKY_ErrInvalidAddressForSig = skycoinPINVOKE.get_SKY_ErrInvalidAddressForSig(); + public static readonly long SKY_ErrInvalidHashForSig = skycoinPINVOKE.get_SKY_ErrInvalidHashForSig(); + public static readonly long SKY_ErrPubKeyRecoverMismatch = skycoinPINVOKE.get_SKY_ErrPubKeyRecoverMismatch(); + public static readonly long SKY_ErrInvalidSigInvalidPubKey = skycoinPINVOKE.get_SKY_ErrInvalidSigInvalidPubKey(); + public static readonly long SKY_ErrInvalidSigValidity = skycoinPINVOKE.get_SKY_ErrInvalidSigValidity(); + public static readonly long SKY_ErrInvalidSigForMessage = skycoinPINVOKE.get_SKY_ErrInvalidSigForMessage(); + public static readonly long SKY_ErrInvalidSecKyVerification = skycoinPINVOKE.get_SKY_ErrInvalidSecKyVerification(); + public static readonly long SKY_ErrNullPubKeyFromSecKey = skycoinPINVOKE.get_SKY_ErrNullPubKeyFromSecKey(); + public static readonly long SKY_ErrInvalidDerivedPubKeyFromSecKey = skycoinPINVOKE.get_SKY_ErrInvalidDerivedPubKeyFromSecKey(); + public static readonly long SKY_ErrInvalidPubKeyFromHash = skycoinPINVOKE.get_SKY_ErrInvalidPubKeyFromHash(); + public static readonly long SKY_ErrPubKeyFromSecKeyMissmatch = skycoinPINVOKE.get_SKY_ErrPubKeyFromSecKeyMissmatch(); + public static readonly long SKY_ErrTemporaryInsufficientBalance = skycoinPINVOKE.get_SKY_ErrTemporaryInsufficientBalance(); + public static readonly long SKY_ErrAddress = skycoinPINVOKE.get_SKY_ErrAddress(); + public static readonly long SKY_ErrWalletName = skycoinPINVOKE.get_SKY_ErrWalletName(); + public static readonly long SKY_ErrJSONMarshal = skycoinPINVOKE.get_SKY_ErrJSONMarshal(); + public static readonly long SKY_WalletLoadError = skycoinPINVOKE.get_SKY_WalletLoadError(); + public static readonly long SKY_WalletSaveError = skycoinPINVOKE.get_SKY_WalletSaveError(); + public static readonly long SKY_ErrAddEarnedCoinHoursAdditionOverflow = skycoinPINVOKE.get_SKY_ErrAddEarnedCoinHoursAdditionOverflow(); + public static readonly long SKY_ErrUint64MultOverflow = skycoinPINVOKE.get_SKY_ErrUint64MultOverflow(); + public static readonly long SKY_ErrUint64AddOverflow = skycoinPINVOKE.get_SKY_ErrUint64AddOverflow(); + public static readonly long SKY_ErrUint32AddOverflow = skycoinPINVOKE.get_SKY_ErrUint32AddOverflow(); + public static readonly long SKY_ErrUint64OverflowsInt64 = skycoinPINVOKE.get_SKY_ErrUint64OverflowsInt64(); + public static readonly long SKY_ErrInt64UnderflowsUint64 = skycoinPINVOKE.get_SKY_ErrInt64UnderflowsUint64(); + public static readonly long SKY_ErrPeerlistFull = skycoinPINVOKE.get_SKY_ErrPeerlistFull(); + public static readonly long SKY_ErrInvalidAddress = skycoinPINVOKE.get_SKY_ErrInvalidAddress(); + public static readonly long SKY_ErrNoLocalhost = skycoinPINVOKE.get_SKY_ErrNoLocalhost(); + public static readonly long SKY_ErrNotExternalIP = skycoinPINVOKE.get_SKY_ErrNotExternalIP(); + public static readonly long SKY_ErrPortTooLow = skycoinPINVOKE.get_SKY_ErrPortTooLow(); + public static readonly long SKY_ErrBlacklistedAddress = skycoinPINVOKE.get_SKY_ErrBlacklistedAddress(); + public static readonly long SKY_ErrDisconnectReadFailed = skycoinPINVOKE.get_SKY_ErrDisconnectReadFailed(); + public static readonly long SKY_ErrDisconnectWriteFailed = skycoinPINVOKE.get_SKY_ErrDisconnectWriteFailed(); + public static readonly long SKY_ErrDisconnectSetReadDeadlineFailed = skycoinPINVOKE.get_SKY_ErrDisconnectSetReadDeadlineFailed(); + public static readonly long SKY_ErrDisconnectInvalidMessageLength = skycoinPINVOKE.get_SKY_ErrDisconnectInvalidMessageLength(); + public static readonly long SKY_ErrDisconnectMalformedMessage = skycoinPINVOKE.get_SKY_ErrDisconnectMalformedMessage(); + public static readonly long SKY_ErrDisconnectUnknownMessage = skycoinPINVOKE.get_SKY_ErrDisconnectUnknownMessage(); + public static readonly long SKY_ErrDisconnectUnexpectedError = skycoinPINVOKE.get_SKY_ErrDisconnectUnexpectedError(); + public static readonly long SKY_ErrConnectionPoolClosed = skycoinPINVOKE.get_SKY_ErrConnectionPoolClosed(); + public static readonly long SKY_ErrWriteQueueFull = skycoinPINVOKE.get_SKY_ErrWriteQueueFull(); + public static readonly long SKY_ErrNoReachableConnections = skycoinPINVOKE.get_SKY_ErrNoReachableConnections(); + public static readonly long SKY_ErrMaxDefaultConnectionsReached = skycoinPINVOKE.get_SKY_ErrMaxDefaultConnectionsReached(); + public static readonly long SKY_ErrDisconnectInvalidVersion = skycoinPINVOKE.get_SKY_ErrDisconnectInvalidVersion(); + public static readonly long SKY_ErrDisconnectIntroductionTimeout = skycoinPINVOKE.get_SKY_ErrDisconnectIntroductionTimeout(); + public static readonly long SKY_ErrDisconnectVersionSendFailed = skycoinPINVOKE.get_SKY_ErrDisconnectVersionSendFailed(); + public static readonly long SKY_ErrDisconnectIsBlacklisted = skycoinPINVOKE.get_SKY_ErrDisconnectIsBlacklisted(); + public static readonly long SKY_ErrDisconnectSelf = skycoinPINVOKE.get_SKY_ErrDisconnectSelf(); + public static readonly long SKY_ErrDisconnectConnectedTwice = skycoinPINVOKE.get_SKY_ErrDisconnectConnectedTwice(); + public static readonly long SKY_ErrDisconnectIdle = skycoinPINVOKE.get_SKY_ErrDisconnectIdle(); + public static readonly long SKY_ErrDisconnectNoIntroduction = skycoinPINVOKE.get_SKY_ErrDisconnectNoIntroduction(); + public static readonly long SKY_ErrDisconnectIPLimitReached = skycoinPINVOKE.get_SKY_ErrDisconnectIPLimitReached(); + public static readonly long SKY_ErrDisconnectOtherError = skycoinPINVOKE.get_SKY_ErrDisconnectOtherError(); + public static readonly long SKY_ErrDisconnectMaxDefaultConnectionReached = skycoinPINVOKE.get_SKY_ErrDisconnectMaxDefaultConnectionReached(); + public static readonly long SKY_ErrDisconnectMaxOutgoingConnectionsReached = skycoinPINVOKE.get_SKY_ErrDisconnectMaxOutgoingConnectionsReached(); + public static readonly long SKY_ConnectionError = skycoinPINVOKE.get_SKY_ConnectionError(); + public static readonly long SKY_ErrTxnNoFee = skycoinPINVOKE.get_SKY_ErrTxnNoFee(); + public static readonly long SKY_ErrTxnInsufficientFee = skycoinPINVOKE.get_SKY_ErrTxnInsufficientFee(); + public static readonly long SKY_ErrTxnInsufficientCoinHours = skycoinPINVOKE.get_SKY_ErrTxnInsufficientCoinHours(); + public static readonly long SKY_ErrNegativeValue = skycoinPINVOKE.get_SKY_ErrNegativeValue(); + public static readonly long SKY_ErrTooManyDecimals = skycoinPINVOKE.get_SKY_ErrTooManyDecimals(); + public static readonly long SKY_ErrTooLarge = skycoinPINVOKE.get_SKY_ErrTooLarge(); + public static readonly long SKY_ErrEmptyDirectoryName = skycoinPINVOKE.get_SKY_ErrEmptyDirectoryName(); + public static readonly long SKY_ErrDotDirectoryName = skycoinPINVOKE.get_SKY_ErrDotDirectoryName(); + public static readonly long SKY_ErrHistoryDBCorrupted = skycoinPINVOKE.get_SKY_ErrHistoryDBCorrupted(); + public static readonly long SKY_ErrUxOutNotExist = skycoinPINVOKE.get_SKY_ErrUxOutNotExist(); + public static readonly long SKY_ErrNoHeadBlock = skycoinPINVOKE.get_SKY_ErrNoHeadBlock(); + public static readonly long SKY_ErrMissingSignature = skycoinPINVOKE.get_SKY_ErrMissingSignature(); + public static readonly long SKY_ErrUnspentNotExist = skycoinPINVOKE.get_SKY_ErrUnspentNotExist(); + public static readonly long SKY_ErrVerifyStopped = skycoinPINVOKE.get_SKY_ErrVerifyStopped(); + public static readonly long SKY_ErrCreateBucketFailed = skycoinPINVOKE.get_SKY_ErrCreateBucketFailed(); + public static readonly long SKY_ErrBucketNotExist = skycoinPINVOKE.get_SKY_ErrBucketNotExist(); + public static readonly long SKY_ErrTxnViolatesHardConstraint = skycoinPINVOKE.get_SKY_ErrTxnViolatesHardConstraint(); + public static readonly long SKY_ErrTxnViolatesSoftConstraint = skycoinPINVOKE.get_SKY_ErrTxnViolatesSoftConstraint(); + public static readonly long SKY_ErrTxnViolatesUserConstraint = skycoinPINVOKE.get_SKY_ErrTxnViolatesUserConstraint(); + public static readonly long SKY_ErrInsufficientBalance = skycoinPINVOKE.get_SKY_ErrInsufficientBalance(); + public static readonly long SKY_ErrInsufficientHours = skycoinPINVOKE.get_SKY_ErrInsufficientHours(); + public static readonly long SKY_ErrZeroSpend = skycoinPINVOKE.get_SKY_ErrZeroSpend(); + public static readonly long SKY_ErrSpendingUnconfirmed = skycoinPINVOKE.get_SKY_ErrSpendingUnconfirmed(); + public static readonly long SKY_ErrInvalidEncryptedField = skycoinPINVOKE.get_SKY_ErrInvalidEncryptedField(); + public static readonly long SKY_ErrWalletEncrypted = skycoinPINVOKE.get_SKY_ErrWalletEncrypted(); + public static readonly long SKY_ErrWalletNotEncrypted = skycoinPINVOKE.get_SKY_ErrWalletNotEncrypted(); + public static readonly long SKY_ErrMissingPassword = skycoinPINVOKE.get_SKY_ErrMissingPassword(); + public static readonly long SKY_ErrMissingEncrypt = skycoinPINVOKE.get_SKY_ErrMissingEncrypt(); + public static readonly long SKY_ErrInvalidPassword = skycoinPINVOKE.get_SKY_ErrInvalidPassword(); + public static readonly long SKY_ErrMissingSeed = skycoinPINVOKE.get_SKY_ErrMissingSeed(); + public static readonly long SKY_ErrMissingAuthenticated = skycoinPINVOKE.get_SKY_ErrMissingAuthenticated(); + public static readonly long SKY_ErrWrongCryptoType = skycoinPINVOKE.get_SKY_ErrWrongCryptoType(); + public static readonly long SKY_ErrWalletNotExist = skycoinPINVOKE.get_SKY_ErrWalletNotExist(); + public static readonly long SKY_ErrSeedUsed = skycoinPINVOKE.get_SKY_ErrSeedUsed(); + public static readonly long SKY_ErrWalletAPIDisabled = skycoinPINVOKE.get_SKY_ErrWalletAPIDisabled(); + public static readonly long SKY_ErrSeedAPIDisabled = skycoinPINVOKE.get_SKY_ErrSeedAPIDisabled(); + public static readonly long SKY_ErrWalletNameConflict = skycoinPINVOKE.get_SKY_ErrWalletNameConflict(); + public static readonly long SKY_ErrInvalidHoursSelectionMode = skycoinPINVOKE.get_SKY_ErrInvalidHoursSelectionMode(); + public static readonly long SKY_ErrInvalidHoursSelectionType = skycoinPINVOKE.get_SKY_ErrInvalidHoursSelectionType(); + public static readonly long SKY_ErrUnknownAddress = skycoinPINVOKE.get_SKY_ErrUnknownAddress(); + public static readonly long SKY_ErrUnknownUxOut = skycoinPINVOKE.get_SKY_ErrUnknownUxOut(); + public static readonly long SKY_ErrNoUnspents = skycoinPINVOKE.get_SKY_ErrNoUnspents(); + public static readonly long SKY_ErrNullChangeAddress = skycoinPINVOKE.get_SKY_ErrNullChangeAddress(); + public static readonly long SKY_ErrMissingTo = skycoinPINVOKE.get_SKY_ErrMissingTo(); + public static readonly long SKY_ErrZeroCoinsTo = skycoinPINVOKE.get_SKY_ErrZeroCoinsTo(); + public static readonly long SKY_ErrNullAddressTo = skycoinPINVOKE.get_SKY_ErrNullAddressTo(); + public static readonly long SKY_ErrDuplicateTo = skycoinPINVOKE.get_SKY_ErrDuplicateTo(); + public static readonly long SKY_ErrMissingWalletID = skycoinPINVOKE.get_SKY_ErrMissingWalletID(); + public static readonly long SKY_ErrIncludesNullAddress = skycoinPINVOKE.get_SKY_ErrIncludesNullAddress(); + public static readonly long SKY_ErrDuplicateAddresses = skycoinPINVOKE.get_SKY_ErrDuplicateAddresses(); + public static readonly long SKY_ErrZeroToHoursAuto = skycoinPINVOKE.get_SKY_ErrZeroToHoursAuto(); + public static readonly long SKY_ErrMissingModeAuto = skycoinPINVOKE.get_SKY_ErrMissingModeAuto(); + public static readonly long SKY_ErrInvalidHoursSelMode = skycoinPINVOKE.get_SKY_ErrInvalidHoursSelMode(); + public static readonly long SKY_ErrInvalidModeManual = skycoinPINVOKE.get_SKY_ErrInvalidModeManual(); + public static readonly long SKY_ErrInvalidHoursSelType = skycoinPINVOKE.get_SKY_ErrInvalidHoursSelType(); + public static readonly long SKY_ErrMissingShareFactor = skycoinPINVOKE.get_SKY_ErrMissingShareFactor(); + public static readonly long SKY_ErrInvalidShareFactor = skycoinPINVOKE.get_SKY_ErrInvalidShareFactor(); + public static readonly long SKY_ErrShareFactorOutOfRange = skycoinPINVOKE.get_SKY_ErrShareFactorOutOfRange(); + public static readonly long SKY_ErrWalletConstraint = skycoinPINVOKE.get_SKY_ErrWalletConstraint(); + public static readonly long SKY_ErrDuplicateUxOuts = skycoinPINVOKE.get_SKY_ErrDuplicateUxOuts(); + public static readonly long SKY_ErrUnknownWalletID = skycoinPINVOKE.get_SKY_ErrUnknownWalletID(); + public static readonly long SKY_ErrSHA256orMissingPassword = skycoinPINVOKE.get_SKY_ErrSHA256orMissingPassword(); + public static readonly long SKY_ErrSHA256LenghtDataOverflowMaxUint32 = skycoinPINVOKE.get_SKY_ErrSHA256LenghtDataOverflowMaxUint32(); } } diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index 9d2f5980..5215043b 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -203,761 +203,485 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_equalBlockHeaders")] public static extern int equalBlockHeaders(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrVerifySignatureInvalidPubkeysLength_get")] - public static extern long SKY_ErrVerifySignatureInvalidPubkeysLength_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrVerifySignatureInvalidPubkeysLength")] + public static extern long get_SKY_ErrVerifySignatureInvalidPubkeysLength(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_OK_get")] - public static extern long SKY_OK_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_OK")] + public static extern long get_SKY_OK(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ERROR_get")] - public static extern long SKY_ERROR_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ERROR")] + public static extern long get_SKY_ERROR(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_API_get")] - public static extern long SKY_PKG_API_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_API")] + public static extern long get_SKY_PKG_API(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_CIPHER_get")] - public static extern long SKY_PKG_CIPHER_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_CIPHER")] + public static extern long get_SKY_PKG_CIPHER(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_CLI_get")] - public static extern long SKY_PKG_CLI_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_CLI")] + public static extern long get_SKY_PKG_CLI(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_COIN_get")] - public static extern long SKY_PKG_COIN_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_COIN")] + public static extern long get_SKY_PKG_COIN(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_CONSENSUS_get")] - public static extern long SKY_PKG_CONSENSUS_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_CONSENSUS")] + public static extern long get_SKY_PKG_CONSENSUS(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_DAEMON_get")] - public static extern long SKY_PKG_DAEMON_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_DAEMON")] + public static extern long get_SKY_PKG_DAEMON(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_GUI_get")] - public static extern long SKY_PKG_GUI_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_GUI")] + public static extern long get_SKY_PKG_GUI(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_SKYCOIN_get")] - public static extern long SKY_PKG_SKYCOIN_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_SKYCOIN")] + public static extern long get_SKY_PKG_SKYCOIN(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_UTIL_get")] - public static extern long SKY_PKG_UTIL_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_UTIL")] + public static extern long get_SKY_PKG_UTIL(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_VISOR_get")] - public static extern long SKY_PKG_VISOR_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_VISOR")] + public static extern long get_SKY_PKG_VISOR(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_WALLET_get")] - public static extern long SKY_PKG_WALLET_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_WALLET")] + public static extern long get_SKY_PKG_WALLET(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrAddressInvalidLength_get")] - public static extern long SKY_ErrAddressInvalidLength_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrAddressInvalidLength")] + public static extern long get_SKY_ErrAddressInvalidLength(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrAddressInvalidChecksum_get")] - public static extern long SKY_ErrAddressInvalidChecksum_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrAddressInvalidChecksum")] + public static extern long get_SKY_ErrAddressInvalidChecksum(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrAddressInvalidVersion_get")] - public static extern long SKY_ErrAddressInvalidVersion_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrAddressInvalidVersion")] + public static extern long get_SKY_ErrAddressInvalidVersion(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrAddressInvalidPubKey_get")] - public static extern long SKY_ErrAddressInvalidPubKey_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrAddressInvalidPubKey")] + public static extern long get_SKY_ErrAddressInvalidPubKey(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrAddressInvalidFirstByte_get")] - public static extern long SKY_ErrAddressInvalidFirstByte_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrAddressInvalidFirstByte")] + public static extern long get_SKY_ErrAddressInvalidFirstByte(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrAddressInvalidLastByte_get")] - public static extern long SKY_ErrAddressInvalidLastByte_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrAddressInvalidLastByte")] + public static extern long get_SKY_ErrAddressInvalidLastByte(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrBufferUnderflow_get")] - public static extern long SKY_ErrBufferUnderflow_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrBufferUnderflow")] + public static extern long get_SKY_ErrBufferUnderflow(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidOmitEmpty_get")] - public static extern long SKY_ErrInvalidOmitEmpty_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidOmitEmpty")] + public static extern long get_SKY_ErrInvalidOmitEmpty(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidLengthPubKey_get")] - public static extern long SKY_ErrInvalidLengthPubKey_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidLengthPubKey")] + public static extern long get_SKY_ErrInvalidLengthPubKey(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrPubKeyFromNullSecKey_get")] - public static extern long SKY_ErrPubKeyFromNullSecKey_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrPubKeyFromNullSecKey")] + public static extern long get_SKY_ErrPubKeyFromNullSecKey(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrPubKeyFromBadSecKey_get")] - public static extern long SKY_ErrPubKeyFromBadSecKey_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrPubKeyFromBadSecKey")] + public static extern long get_SKY_ErrPubKeyFromBadSecKey(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidLengthSecKey_get")] - public static extern long SKY_ErrInvalidLengthSecKey_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidLengthSecKey")] + public static extern long get_SKY_ErrInvalidLengthSecKey(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrECHDInvalidPubKey_get")] - public static extern long SKY_ErrECHDInvalidPubKey_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrECHDInvalidPubKey")] + public static extern long get_SKY_ErrECHDInvalidPubKey(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrECHDInvalidSecKey_get")] - public static extern long SKY_ErrECHDInvalidSecKey_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrECHDInvalidSecKey")] + public static extern long get_SKY_ErrECHDInvalidSecKey(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidLengthSig_get")] - public static extern long SKY_ErrInvalidLengthSig_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidLengthSig")] + public static extern long get_SKY_ErrInvalidLengthSig(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidLengthRipemd160_get")] - public static extern long SKY_ErrInvalidLengthRipemd160_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidLengthRipemd160")] + public static extern long get_SKY_ErrInvalidLengthRipemd160(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidLengthSHA256_get")] - public static extern long SKY_ErrInvalidLengthSHA256_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidLengthSHA256")] + public static extern long get_SKY_ErrInvalidLengthSHA256(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidBase58Char_get")] - public static extern long SKY_ErrInvalidBase58Char_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidBase58Char")] + public static extern long get_SKY_ErrInvalidBase58Char(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidBase58String_get")] - public static extern long SKY_ErrInvalidBase58String_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidBase58String")] + public static extern long get_SKY_ErrInvalidBase58String(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidBase58Length_get")] - public static extern long SKY_ErrInvalidBase58Length_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidBase58Length")] + public static extern long get_SKY_ErrInvalidBase58Length(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidHexLength_get")] - public static extern long SKY_ErrInvalidHexLength_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidHexLength")] + public static extern long get_SKY_ErrInvalidHexLength(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidBytesLength_get")] - public static extern long SKY_ErrInvalidBytesLength_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidBytesLength")] + public static extern long get_SKY_ErrInvalidBytesLength(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidPubKey_get")] - public static extern long SKY_ErrInvalidPubKey_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidPubKey")] + public static extern long get_SKY_ErrInvalidPubKey(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidSecKey_get")] - public static extern long SKY_ErrInvalidSecKey_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidSecKey")] + public static extern long get_SKY_ErrInvalidSecKey(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidSigForPubKey_get")] - public static extern long SKY_ErrInvalidSigForPubKey_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidSigForPubKey")] + public static extern long get_SKY_ErrInvalidSigForPubKey(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidSecKeyHex_get")] - public static extern long SKY_ErrInvalidSecKeyHex_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidSecKeyHex")] + public static extern long get_SKY_ErrInvalidSecKeyHex(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidAddressForSig_get")] - public static extern long SKY_ErrInvalidAddressForSig_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidAddressForSig")] + public static extern long get_SKY_ErrInvalidAddressForSig(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidHashForSig_get")] - public static extern long SKY_ErrInvalidHashForSig_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidHashForSig")] + public static extern long get_SKY_ErrInvalidHashForSig(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrPubKeyRecoverMismatch_get")] - public static extern long SKY_ErrPubKeyRecoverMismatch_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrPubKeyRecoverMismatch")] + public static extern long get_SKY_ErrPubKeyRecoverMismatch(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidSigInvalidPubKey_get")] - public static extern long SKY_ErrInvalidSigInvalidPubKey_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidSigInvalidPubKey")] + public static extern long get_SKY_ErrInvalidSigInvalidPubKey(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidSigValidity_get")] - public static extern long SKY_ErrInvalidSigValidity_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidSigValidity")] + public static extern long get_SKY_ErrInvalidSigValidity(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidSigForMessage_get")] - public static extern long SKY_ErrInvalidSigForMessage_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidSigForMessage")] + public static extern long get_SKY_ErrInvalidSigForMessage(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidSecKyVerification_get")] - public static extern long SKY_ErrInvalidSecKyVerification_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidSecKyVerification")] + public static extern long get_SKY_ErrInvalidSecKyVerification(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrNullPubKeyFromSecKey_get")] - public static extern long SKY_ErrNullPubKeyFromSecKey_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrNullPubKeyFromSecKey")] + public static extern long get_SKY_ErrNullPubKeyFromSecKey(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidDerivedPubKeyFromSecKey_get")] - public static extern long SKY_ErrInvalidDerivedPubKeyFromSecKey_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidDerivedPubKeyFromSecKey")] + public static extern long get_SKY_ErrInvalidDerivedPubKeyFromSecKey(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidPubKeyFromHash_get")] - public static extern long SKY_ErrInvalidPubKeyFromHash_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidPubKeyFromHash")] + public static extern long get_SKY_ErrInvalidPubKeyFromHash(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrPubKeyFromSecKeyMissmatch_get")] - public static extern long SKY_ErrPubKeyFromSecKeyMissmatch_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrPubKeyFromSecKeyMissmatch")] + public static extern long get_SKY_ErrPubKeyFromSecKeyMissmatch(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrTemporaryInsufficientBalance_get")] - public static extern long SKY_ErrTemporaryInsufficientBalance_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrTemporaryInsufficientBalance")] + public static extern long get_SKY_ErrTemporaryInsufficientBalance(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrAddress_get")] - public static extern long SKY_ErrAddress_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrAddress")] + public static extern long get_SKY_ErrAddress(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrWalletName_get")] - public static extern long SKY_ErrWalletName_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrWalletName")] + public static extern long get_SKY_ErrWalletName(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrJSONMarshal_get")] - public static extern long SKY_ErrJSONMarshal_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrJSONMarshal")] + public static extern long get_SKY_ErrJSONMarshal(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_WalletLoadError_get")] - public static extern long SKY_WalletLoadError_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_WalletLoadError")] + public static extern long get_SKY_WalletLoadError(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_WalletSaveError_get")] - public static extern long SKY_WalletSaveError_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_WalletSaveError")] + public static extern long get_SKY_WalletSaveError(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrAddEarnedCoinHoursAdditionOverflow_get")] - public static extern long SKY_ErrAddEarnedCoinHoursAdditionOverflow_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrAddEarnedCoinHoursAdditionOverflow")] + public static extern long get_SKY_ErrAddEarnedCoinHoursAdditionOverflow(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrUint64MultOverflow_get")] - public static extern long SKY_ErrUint64MultOverflow_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrUint64MultOverflow")] + public static extern long get_SKY_ErrUint64MultOverflow(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrUint64AddOverflow_get")] - public static extern long SKY_ErrUint64AddOverflow_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrUint64AddOverflow")] + public static extern long get_SKY_ErrUint64AddOverflow(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrUint32AddOverflow_get")] - public static extern long SKY_ErrUint32AddOverflow_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrUint32AddOverflow")] + public static extern long get_SKY_ErrUint32AddOverflow(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrUint64OverflowsInt64_get")] - public static extern long SKY_ErrUint64OverflowsInt64_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrUint64OverflowsInt64")] + public static extern long get_SKY_ErrUint64OverflowsInt64(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInt64UnderflowsUint64_get")] - public static extern long SKY_ErrInt64UnderflowsUint64_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInt64UnderflowsUint64")] + public static extern long get_SKY_ErrInt64UnderflowsUint64(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrPeerlistFull_get")] - public static extern long SKY_ErrPeerlistFull_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrPeerlistFull")] + public static extern long get_SKY_ErrPeerlistFull(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidAddress_get")] - public static extern long SKY_ErrInvalidAddress_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidAddress")] + public static extern long get_SKY_ErrInvalidAddress(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrNoLocalhost_get")] - public static extern long SKY_ErrNoLocalhost_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrNoLocalhost")] + public static extern long get_SKY_ErrNoLocalhost(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrNotExternalIP_get")] - public static extern long SKY_ErrNotExternalIP_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrNotExternalIP")] + public static extern long get_SKY_ErrNotExternalIP(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrPortTooLow_get")] - public static extern long SKY_ErrPortTooLow_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrPortTooLow")] + public static extern long get_SKY_ErrPortTooLow(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrBlacklistedAddress_get")] - public static extern long SKY_ErrBlacklistedAddress_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrBlacklistedAddress")] + public static extern long get_SKY_ErrBlacklistedAddress(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectReadFailed_get")] - public static extern long SKY_ErrDisconnectReadFailed_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectReadFailed")] + public static extern long get_SKY_ErrDisconnectReadFailed(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectWriteFailed_get")] - public static extern long SKY_ErrDisconnectWriteFailed_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectWriteFailed")] + public static extern long get_SKY_ErrDisconnectWriteFailed(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectSetReadDeadlineFailed_get")] - public static extern long SKY_ErrDisconnectSetReadDeadlineFailed_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectSetReadDeadlineFailed")] + public static extern long get_SKY_ErrDisconnectSetReadDeadlineFailed(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectInvalidMessageLength_get")] - public static extern long SKY_ErrDisconnectInvalidMessageLength_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectInvalidMessageLength")] + public static extern long get_SKY_ErrDisconnectInvalidMessageLength(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectMalformedMessage_get")] - public static extern long SKY_ErrDisconnectMalformedMessage_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectMalformedMessage")] + public static extern long get_SKY_ErrDisconnectMalformedMessage(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectUnknownMessage_get")] - public static extern long SKY_ErrDisconnectUnknownMessage_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectUnknownMessage")] + public static extern long get_SKY_ErrDisconnectUnknownMessage(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectUnexpectedError_get")] - public static extern long SKY_ErrDisconnectUnexpectedError_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectUnexpectedError")] + public static extern long get_SKY_ErrDisconnectUnexpectedError(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrConnectionPoolClosed_get")] - public static extern long SKY_ErrConnectionPoolClosed_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrConnectionPoolClosed")] + public static extern long get_SKY_ErrConnectionPoolClosed(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrWriteQueueFull_get")] - public static extern long SKY_ErrWriteQueueFull_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrWriteQueueFull")] + public static extern long get_SKY_ErrWriteQueueFull(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrNoReachableConnections_get")] - public static extern long SKY_ErrNoReachableConnections_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrNoReachableConnections")] + public static extern long get_SKY_ErrNoReachableConnections(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrMaxDefaultConnectionsReached_get")] - public static extern long SKY_ErrMaxDefaultConnectionsReached_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrMaxDefaultConnectionsReached")] + public static extern long get_SKY_ErrMaxDefaultConnectionsReached(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectInvalidVersion_get")] - public static extern long SKY_ErrDisconnectInvalidVersion_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectInvalidVersion")] + public static extern long get_SKY_ErrDisconnectInvalidVersion(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectIntroductionTimeout_get")] - public static extern long SKY_ErrDisconnectIntroductionTimeout_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectIntroductionTimeout")] + public static extern long get_SKY_ErrDisconnectIntroductionTimeout(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectVersionSendFailed_get")] - public static extern long SKY_ErrDisconnectVersionSendFailed_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectVersionSendFailed")] + public static extern long get_SKY_ErrDisconnectVersionSendFailed(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectIsBlacklisted_get")] - public static extern long SKY_ErrDisconnectIsBlacklisted_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectIsBlacklisted")] + public static extern long get_SKY_ErrDisconnectIsBlacklisted(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectSelf_get")] - public static extern long SKY_ErrDisconnectSelf_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectSelf")] + public static extern long get_SKY_ErrDisconnectSelf(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectConnectedTwice_get")] - public static extern long SKY_ErrDisconnectConnectedTwice_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectConnectedTwice")] + public static extern long get_SKY_ErrDisconnectConnectedTwice(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectIdle_get")] - public static extern long SKY_ErrDisconnectIdle_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectIdle")] + public static extern long get_SKY_ErrDisconnectIdle(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectNoIntroduction_get")] - public static extern long SKY_ErrDisconnectNoIntroduction_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectNoIntroduction")] + public static extern long get_SKY_ErrDisconnectNoIntroduction(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectIPLimitReached_get")] - public static extern long SKY_ErrDisconnectIPLimitReached_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectIPLimitReached")] + public static extern long get_SKY_ErrDisconnectIPLimitReached(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectOtherError_get")] - public static extern long SKY_ErrDisconnectOtherError_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectOtherError")] + public static extern long get_SKY_ErrDisconnectOtherError(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectMaxDefaultConnectionReached_get")] - public static extern long SKY_ErrDisconnectMaxDefaultConnectionReached_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectMaxDefaultConnectionReached")] + public static extern long get_SKY_ErrDisconnectMaxDefaultConnectionReached(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectMaxOutgoingConnectionsReached_get")] - public static extern long SKY_ErrDisconnectMaxOutgoingConnectionsReached_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectMaxOutgoingConnectionsReached")] + public static extern long get_SKY_ErrDisconnectMaxOutgoingConnectionsReached(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ConnectionError_get")] - public static extern long SKY_ConnectionError_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ConnectionError")] + public static extern long get_SKY_ConnectionError(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrTxnNoFee_get")] - public static extern long SKY_ErrTxnNoFee_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrTxnNoFee")] + public static extern long get_SKY_ErrTxnNoFee(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrTxnInsufficientFee_get")] - public static extern long SKY_ErrTxnInsufficientFee_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrTxnInsufficientFee")] + public static extern long get_SKY_ErrTxnInsufficientFee(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrTxnInsufficientCoinHours_get")] - public static extern long SKY_ErrTxnInsufficientCoinHours_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrTxnInsufficientCoinHours")] + public static extern long get_SKY_ErrTxnInsufficientCoinHours(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrNegativeValue_get")] - public static extern long SKY_ErrNegativeValue_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrNegativeValue")] + public static extern long get_SKY_ErrNegativeValue(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrTooManyDecimals_get")] - public static extern long SKY_ErrTooManyDecimals_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrTooManyDecimals")] + public static extern long get_SKY_ErrTooManyDecimals(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrTooLarge_get")] - public static extern long SKY_ErrTooLarge_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrTooLarge")] + public static extern long get_SKY_ErrTooLarge(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrEmptyDirectoryName_get")] - public static extern long SKY_ErrEmptyDirectoryName_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrEmptyDirectoryName")] + public static extern long get_SKY_ErrEmptyDirectoryName(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDotDirectoryName_get")] - public static extern long SKY_ErrDotDirectoryName_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDotDirectoryName")] + public static extern long get_SKY_ErrDotDirectoryName(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrHistoryDBCorrupted_get")] - public static extern long SKY_ErrHistoryDBCorrupted_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrHistoryDBCorrupted")] + public static extern long get_SKY_ErrHistoryDBCorrupted(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrUxOutNotExist_get")] - public static extern long SKY_ErrUxOutNotExist_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrUxOutNotExist")] + public static extern long get_SKY_ErrUxOutNotExist(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrNoHeadBlock_get")] - public static extern long SKY_ErrNoHeadBlock_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrNoHeadBlock")] + public static extern long get_SKY_ErrNoHeadBlock(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrMissingSignature_get")] - public static extern long SKY_ErrMissingSignature_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrMissingSignature")] + public static extern long get_SKY_ErrMissingSignature(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrUnspentNotExist_get")] - public static extern long SKY_ErrUnspentNotExist_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrUnspentNotExist")] + public static extern long get_SKY_ErrUnspentNotExist(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrVerifyStopped_get")] - public static extern long SKY_ErrVerifyStopped_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrVerifyStopped")] + public static extern long get_SKY_ErrVerifyStopped(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrCreateBucketFailed_get")] - public static extern long SKY_ErrCreateBucketFailed_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrCreateBucketFailed")] + public static extern long get_SKY_ErrCreateBucketFailed(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrBucketNotExist_get")] - public static extern long SKY_ErrBucketNotExist_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrBucketNotExist")] + public static extern long get_SKY_ErrBucketNotExist(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrTxnViolatesHardConstraint_get")] - public static extern long SKY_ErrTxnViolatesHardConstraint_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrTxnViolatesHardConstraint")] + public static extern long get_SKY_ErrTxnViolatesHardConstraint(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrTxnViolatesSoftConstraint_get")] - public static extern long SKY_ErrTxnViolatesSoftConstraint_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrTxnViolatesSoftConstraint")] + public static extern long get_SKY_ErrTxnViolatesSoftConstraint(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrTxnViolatesUserConstraint_get")] - public static extern long SKY_ErrTxnViolatesUserConstraint_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrTxnViolatesUserConstraint")] + public static extern long get_SKY_ErrTxnViolatesUserConstraint(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInsufficientBalance_get")] - public static extern long SKY_ErrInsufficientBalance_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInsufficientBalance")] + public static extern long get_SKY_ErrInsufficientBalance(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInsufficientHours_get")] - public static extern long SKY_ErrInsufficientHours_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInsufficientHours")] + public static extern long get_SKY_ErrInsufficientHours(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrZeroSpend_get")] - public static extern long SKY_ErrZeroSpend_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrZeroSpend")] + public static extern long get_SKY_ErrZeroSpend(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrSpendingUnconfirmed_get")] - public static extern long SKY_ErrSpendingUnconfirmed_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrSpendingUnconfirmed")] + public static extern long get_SKY_ErrSpendingUnconfirmed(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidEncryptedField_get")] - public static extern long SKY_ErrInvalidEncryptedField_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidEncryptedField")] + public static extern long get_SKY_ErrInvalidEncryptedField(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrWalletEncrypted_get")] - public static extern long SKY_ErrWalletEncrypted_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrWalletEncrypted")] + public static extern long get_SKY_ErrWalletEncrypted(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrWalletNotEncrypted_get")] - public static extern long SKY_ErrWalletNotEncrypted_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrWalletNotEncrypted")] + public static extern long get_SKY_ErrWalletNotEncrypted(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrMissingPassword_get")] - public static extern long SKY_ErrMissingPassword_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrMissingPassword")] + public static extern long get_SKY_ErrMissingPassword(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrMissingEncrypt_get")] - public static extern long SKY_ErrMissingEncrypt_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrMissingEncrypt")] + public static extern long get_SKY_ErrMissingEncrypt(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidPassword_get")] - public static extern long SKY_ErrInvalidPassword_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidPassword")] + public static extern long get_SKY_ErrInvalidPassword(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrMissingSeed_get")] - public static extern long SKY_ErrMissingSeed_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrMissingSeed")] + public static extern long get_SKY_ErrMissingSeed(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrMissingAuthenticated_get")] - public static extern long SKY_ErrMissingAuthenticated_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrMissingAuthenticated")] + public static extern long get_SKY_ErrMissingAuthenticated(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrWrongCryptoType_get")] - public static extern long SKY_ErrWrongCryptoType_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrWrongCryptoType")] + public static extern long get_SKY_ErrWrongCryptoType(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrWalletNotExist_get")] - public static extern long SKY_ErrWalletNotExist_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrWalletNotExist")] + public static extern long get_SKY_ErrWalletNotExist(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrSeedUsed_get")] - public static extern long SKY_ErrSeedUsed_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrSeedUsed")] + public static extern long get_SKY_ErrSeedUsed(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrWalletAPIDisabled_get")] - public static extern long SKY_ErrWalletAPIDisabled_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrWalletAPIDisabled")] + public static extern long get_SKY_ErrWalletAPIDisabled(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrSeedAPIDisabled_get")] - public static extern long SKY_ErrSeedAPIDisabled_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrSeedAPIDisabled")] + public static extern long get_SKY_ErrSeedAPIDisabled(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrWalletNameConflict_get")] - public static extern long SKY_ErrWalletNameConflict_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrWalletNameConflict")] + public static extern long get_SKY_ErrWalletNameConflict(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidHoursSelectionMode_get")] - public static extern long SKY_ErrInvalidHoursSelectionMode_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidHoursSelectionMode")] + public static extern long get_SKY_ErrInvalidHoursSelectionMode(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidHoursSelectionType_get")] - public static extern long SKY_ErrInvalidHoursSelectionType_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidHoursSelectionType")] + public static extern long get_SKY_ErrInvalidHoursSelectionType(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrUnknownAddress_get")] - public static extern long SKY_ErrUnknownAddress_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrUnknownAddress")] + public static extern long get_SKY_ErrUnknownAddress(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrUnknownUxOut_get")] - public static extern long SKY_ErrUnknownUxOut_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrUnknownUxOut")] + public static extern long get_SKY_ErrUnknownUxOut(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrNoUnspents_get")] - public static extern long SKY_ErrNoUnspents_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrNoUnspents")] + public static extern long get_SKY_ErrNoUnspents(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrNullChangeAddress_get")] - public static extern long SKY_ErrNullChangeAddress_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrNullChangeAddress")] + public static extern long get_SKY_ErrNullChangeAddress(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrMissingTo_get")] - public static extern long SKY_ErrMissingTo_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrMissingTo")] + public static extern long get_SKY_ErrMissingTo(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrZeroCoinsTo_get")] - public static extern long SKY_ErrZeroCoinsTo_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrZeroCoinsTo")] + public static extern long get_SKY_ErrZeroCoinsTo(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrNullAddressTo_get")] - public static extern long SKY_ErrNullAddressTo_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrNullAddressTo")] + public static extern long get_SKY_ErrNullAddressTo(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDuplicateTo_get")] - public static extern long SKY_ErrDuplicateTo_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDuplicateTo")] + public static extern long get_SKY_ErrDuplicateTo(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrMissingWalletID_get")] - public static extern long SKY_ErrMissingWalletID_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrMissingWalletID")] + public static extern long get_SKY_ErrMissingWalletID(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrIncludesNullAddress_get")] - public static extern long SKY_ErrIncludesNullAddress_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrIncludesNullAddress")] + public static extern long get_SKY_ErrIncludesNullAddress(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDuplicateAddresses_get")] - public static extern long SKY_ErrDuplicateAddresses_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDuplicateAddresses")] + public static extern long get_SKY_ErrDuplicateAddresses(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrZeroToHoursAuto_get")] - public static extern long SKY_ErrZeroToHoursAuto_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrZeroToHoursAuto")] + public static extern long get_SKY_ErrZeroToHoursAuto(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrMissingModeAuto_get")] - public static extern long SKY_ErrMissingModeAuto_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrMissingModeAuto")] + public static extern long get_SKY_ErrMissingModeAuto(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidHoursSelMode_get")] - public static extern long SKY_ErrInvalidHoursSelMode_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidHoursSelMode")] + public static extern long get_SKY_ErrInvalidHoursSelMode(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidModeManual_get")] - public static extern long SKY_ErrInvalidModeManual_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidModeManual")] + public static extern long get_SKY_ErrInvalidModeManual(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidHoursSelType_get")] - public static extern long SKY_ErrInvalidHoursSelType_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidHoursSelType")] + public static extern long get_SKY_ErrInvalidHoursSelType(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrMissingShareFactor_get")] - public static extern long SKY_ErrMissingShareFactor_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrMissingShareFactor")] + public static extern long get_SKY_ErrMissingShareFactor(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidShareFactor_get")] - public static extern long SKY_ErrInvalidShareFactor_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidShareFactor")] + public static extern long get_SKY_ErrInvalidShareFactor(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrShareFactorOutOfRange_get")] - public static extern long SKY_ErrShareFactorOutOfRange_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrShareFactorOutOfRange")] + public static extern long get_SKY_ErrShareFactorOutOfRange(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrWalletConstraint_get")] - public static extern long SKY_ErrWalletConstraint_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrWalletConstraint")] + public static extern long get_SKY_ErrWalletConstraint(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDuplicateUxOuts_get")] - public static extern long SKY_ErrDuplicateUxOuts_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDuplicateUxOuts")] + public static extern long get_SKY_ErrDuplicateUxOuts(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrUnknownWalletID_get")] - public static extern long SKY_ErrUnknownWalletID_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrUnknownWalletID")] + public static extern long get_SKY_ErrUnknownWalletID(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrSHA256orMissingPassword_get")] - public static extern long SKY_ErrSHA256orMissingPassword_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrSHA256orMissingPassword")] + public static extern long get_SKY_ErrSHA256orMissingPassword(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrSHA256LenghtDataOverflowMaxUint32_get")] - public static extern long SKY_ErrSHA256LenghtDataOverflowMaxUint32_get(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrSHA256LenghtDataOverflowMaxUint32")] + public static extern long get_SKY_ErrSHA256LenghtDataOverflowMaxUint32(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKey_isEqual")] - public static extern int cipher_PubKey_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set__GoString__p")] + public static extern void set__GoString__p(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKey_assignFrom")] - public static extern void cipher_PubKey_assignFrom(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get__GoString__p")] + public static extern string get__GoString__p(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKey_assignTo")] - public static extern void cipher_PubKey_assignTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set__GoString__n")] + public static extern void set__GoString__n(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKey_data_set")] - public static extern void cipher_PubKey_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKey_data_get")] - public static extern global::System.IntPtr cipher_PubKey_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_PubKey")] - public static extern global::System.IntPtr new_cipher_PubKey(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_PubKey")] - public static extern void delete_cipher_PubKey(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKey_isEqual")] - public static extern int cipher_SecKey_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKey_assignFrom")] - public static extern void cipher_SecKey_assignFrom(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKey_assignTo")] - public static extern void cipher_SecKey_assignTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKey_data_set")] - public static extern void cipher_SecKey_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKey_data_get")] - public static extern global::System.IntPtr cipher_SecKey_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_SecKey")] - public static extern global::System.IntPtr new_cipher_SecKey(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_SecKey")] - public static extern void delete_cipher_SecKey(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Ripemd160_isEqual")] - public static extern int cipher_Ripemd160_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Ripemd160_assignFrom")] - public static extern void cipher_Ripemd160_assignFrom(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Ripemd160_assignTo")] - public static extern void cipher_Ripemd160_assignTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Ripemd160_data_set")] - public static extern void cipher_Ripemd160_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Ripemd160_data_get")] - public static extern global::System.IntPtr cipher_Ripemd160_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_Ripemd160")] - public static extern global::System.IntPtr new_cipher_Ripemd160(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_Ripemd160")] - public static extern void delete_cipher_Ripemd160(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Sig_isEqual")] - public static extern int cipher_Sig_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Sig_assignFrom")] - public static extern void cipher_Sig_assignFrom(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Sig_assignTo")] - public static extern void cipher_Sig_assignTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Sig_data_set")] - public static extern void cipher_Sig_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Sig_data_get")] - public static extern global::System.IntPtr cipher_Sig_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_Sig")] - public static extern global::System.IntPtr new_cipher_Sig(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_Sig")] - public static extern void delete_cipher_Sig(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256_isEqual")] - public static extern int cipher_SHA256_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256_assignFrom")] - public static extern void cipher_SHA256_assignFrom(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256_assignTo")] - public static extern void cipher_SHA256_assignTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256_data_set")] - public static extern void cipher_SHA256_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256_data_get")] - public static extern global::System.IntPtr cipher_SHA256_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_SHA256")] - public static extern global::System.IntPtr new_cipher_SHA256(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_SHA256")] - public static extern void delete_cipher_SHA256(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Checksum_isEqual")] - public static extern int cipher_Checksum_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Checksum_assignFrom")] - public static extern void cipher_Checksum_assignFrom(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Checksum_assignTo")] - public static extern void cipher_Checksum_assignTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Checksum_data_set")] - public static extern void cipher_Checksum_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Checksum_data_get")] - public static extern global::System.IntPtr cipher_Checksum_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_Checksum")] - public static extern global::System.IntPtr new_cipher_Checksum(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_Checksum")] - public static extern void delete_cipher_Checksum(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeys_getAt")] - public static extern global::System.IntPtr cipher_SecKeys_getAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeys_setAt")] - public static extern int cipher_SecKeys_setAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeys_isEqual")] - public static extern int cipher_SecKeys_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeys_allocate")] - public static extern void cipher_SecKeys_allocate(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeys_release")] - public static extern void cipher_SecKeys_release(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeys_data_set")] - public static extern void cipher_SecKeys_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeys_data_get")] - public static extern global::System.IntPtr cipher_SecKeys_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeys_count_set")] - public static extern void cipher_SecKeys_count_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeys_count_get")] - public static extern int cipher_SecKeys_count_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_SecKeys")] - public static extern global::System.IntPtr new_cipher_SecKeys(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_SecKeys")] - public static extern void delete_cipher_SecKeys(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeys_getAt")] - public static extern global::System.IntPtr cipher_PubKeys_getAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeys_setAt")] - public static extern int cipher_PubKeys_setAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeys_isEqual")] - public static extern int cipher_PubKeys_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeys_allocate")] - public static extern void cipher_PubKeys_allocate(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeys_release")] - public static extern void cipher_PubKeys_release(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeys_data_set")] - public static extern void cipher_PubKeys_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeys_data_get")] - public static extern global::System.IntPtr cipher_PubKeys_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeys_count_set")] - public static extern void cipher_PubKeys_count_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeys_count_get")] - public static extern int cipher_PubKeys_count_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_PubKeys")] - public static extern global::System.IntPtr new_cipher_PubKeys(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_PubKeys")] - public static extern void delete_cipher_PubKeys(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256s_getAt")] - public static extern global::System.IntPtr cipher_SHA256s_getAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256s_setAt")] - public static extern int cipher_SHA256s_setAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256s_isEqual")] - public static extern int cipher_SHA256s_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256s_allocate")] - public static extern void cipher_SHA256s_allocate(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256s_release")] - public static extern void cipher_SHA256s_release(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256s_data_set")] - public static extern void cipher_SHA256s_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256s_data_get")] - public static extern global::System.IntPtr cipher_SHA256s_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256s_count_set")] - public static extern void cipher_SHA256s_count_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256s_count_get")] - public static extern int cipher_SHA256s_count_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_SHA256s")] - public static extern global::System.IntPtr new_cipher_SHA256s(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_SHA256s")] - public static extern void delete_cipher_SHA256s(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_getAt")] - public static extern global::System.IntPtr coin_UxOutArray_getAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_setAt")] - public static extern int coin_UxOutArray_setAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_isEqual")] - public static extern int coin_UxOutArray_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_allocate")] - public static extern void coin_UxOutArray_allocate(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_release")] - public static extern void coin_UxOutArray_release(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_data_set")] - public static extern void coin_UxOutArray_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_data_get")] - public static extern global::System.IntPtr coin_UxOutArray_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_count_set")] - public static extern void coin_UxOutArray_count_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_count_get")] - public static extern int coin_UxOutArray_count_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin_UxOutArray")] - public static extern global::System.IntPtr new_coin_UxOutArray(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin_UxOutArray")] - public static extern void delete_coin_UxOutArray(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Addresses_data_set")] - public static extern void cipher_Addresses_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Addresses_data_get")] - public static extern global::System.IntPtr cipher_Addresses_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Addresses_count_set")] - public static extern void cipher_Addresses_count_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Addresses_count_get")] - public static extern int cipher_Addresses_count_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_Addresses")] - public static extern global::System.IntPtr new_cipher_Addresses(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_Addresses")] - public static extern void delete_cipher_Addresses(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin__GoString__p_set")] - public static extern void _GoString__p_set(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin__GoString__p_get")] - public static extern string _GoString__p_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin__GoString__n_set")] - public static extern void _GoString__n_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin__GoString__n_get")] - public static extern global::System.IntPtr _GoString__n_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get__GoString__n")] + public static extern global::System.IntPtr get__GoString__n(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new__GoString_")] public static extern global::System.IntPtr new__GoString_(); @@ -965,17 +689,17 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete__GoString_")] public static extern void delete__GoString_(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoInterface_t_set")] - public static extern void GoInterface_t_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_GoInterface_t")] + public static extern void set_GoInterface_t(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoInterface_t_get")] - public static extern global::System.IntPtr GoInterface_t_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_GoInterface_t")] + public static extern global::System.IntPtr get_GoInterface_t(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoInterface_v_set")] - public static extern void GoInterface_v_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_GoInterface_v")] + public static extern void set_GoInterface_v(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoInterface_v_get")] - public static extern global::System.IntPtr GoInterface_v_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_GoInterface_v")] + public static extern global::System.IntPtr get_GoInterface_v(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_GoInterface")] public static extern global::System.IntPtr new_GoInterface(); @@ -983,23 +707,23 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_GoInterface")] public static extern void delete_GoInterface(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_data_set")] - public static extern void GoSlice_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_GoSlice_data")] + public static extern void set_GoSlice_data(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_data_get")] - public static extern global::System.IntPtr GoSlice_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_GoSlice_data")] + public static extern global::System.IntPtr get_GoSlice_data(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_len_set")] - public static extern void GoSlice_len_set(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_GoSlice_len")] + public static extern void set_GoSlice_len(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_len_get")] - public static extern long GoSlice_len_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_GoSlice_len")] + public static extern long get_GoSlice_len(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_cap_set")] - public static extern void GoSlice_cap_set(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_GoSlice_cap")] + public static extern void set_GoSlice_cap(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_cap_get")] - public static extern long GoSlice_cap_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_GoSlice_cap")] + public static extern long get_GoSlice_cap(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_GoSlice")] public static extern global::System.IntPtr new_GoSlice(); @@ -1008,13 +732,13 @@ static skycoinPINVOKE() { public static extern void delete_GoSlice(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewBlock")] - public static extern uint SKY_coin_NewBlock(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); + public static extern uint SKY_coin_NewBlock(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SignedBlock_VerifySignature")] - public static extern uint SKY_coin_SignedBlock_VerifySignature(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_coin_SignedBlock_VerifySignature(global::System.Runtime.InteropServices.HandleRef jarg1, SWIGTYPE_p_cipher_PubKey jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewGenesisBlock")] - public static extern uint SKY_coin_NewGenesisBlock(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + public static extern uint SKY_coin_NewGenesisBlock(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_HashHeader")] public static extern uint SKY_coin_Block_HashHeader(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1038,7 +762,7 @@ static skycoinPINVOKE() { public static extern uint SKY_coin_Block_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_GetTransaction")] - public static extern uint SKY_coin_Block_GetTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + public static extern uint SKY_coin_Block_GetTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewBlockHeader")] public static extern uint SKY_coin_NewBlockHeader(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, ulong jarg3, ulong jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); @@ -1056,7 +780,7 @@ static skycoinPINVOKE() { public static extern uint SKY_coin_BlockBody_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockBody_Size")] - public static extern uint SKY_coin_BlockBody_Size(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_coin_BlockBody_Size(global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockBody_Bytes")] public static extern uint SKY_coin_BlockBody_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1071,10 +795,10 @@ static skycoinPINVOKE() { public static extern uint SKY_coin_GetBlockObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetBlockBody")] - public static extern uint SKY_coin_GetBlockBody(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_coin_GetBlockBody(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewEmptyBlock")] - public static extern uint SKY_coin_NewEmptyBlock(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_coin_NewEmptyBlock(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_bip39_NewDefaultMnemomic")] public static extern uint SKY_bip39_NewDefaultMnemomic(global::System.Runtime.InteropServices.HandleRef jarg1); @@ -1158,10 +882,10 @@ static skycoinPINVOKE() { public static extern uint SKY_api_Client_WalletBalance(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Spend")] - public static extern uint SKY_api_Client_Spend(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, ulong jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); + public static extern uint SKY_api_Client_Spend(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, ulong jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CreateTransaction")] - public static extern uint SKY_api_Client_CreateTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_api_Client_CreateTransaction(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_UpdateWallet")] public static extern uint SKY_api_Client_UpdateWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -1272,34 +996,34 @@ static skycoinPINVOKE() { public static extern uint SKY_api_NewWalletResponse(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewCreateTransactionResponse")] - public static extern uint SKY_api_NewCreateTransactionResponse(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_api_NewCreateTransactionResponse(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewCreatedTransaction")] - public static extern uint SKY_api_NewCreatedTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_api_NewCreatedTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_CreatedTransaction_ToTransaction")] - public static extern uint SKY_api_CreatedTransaction_ToTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_api_CreatedTransaction_ToTransaction(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewCreatedTransactionOutput")] - public static extern uint SKY_api_NewCreatedTransactionOutput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_api_NewCreatedTransactionOutput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewCreatedTransactionInput")] - public static extern uint SKY_api_NewCreatedTransactionInput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_api_NewCreatedTransactionInput(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewError")] public static extern uint SKY_wallet_NewError(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewWallet")] - public static extern uint SKY_wallet_NewWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_wallet_NewWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Lock")] public static extern uint SKY_wallet_Wallet_Lock(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Unlock")] - public static extern uint SKY_wallet_Wallet_Unlock(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_wallet_Wallet_Unlock(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Load")] - public static extern uint SKY_wallet_Load(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_wallet_Load(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Save")] public static extern uint SKY_wallet_Wallet_Save(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1353,10 +1077,10 @@ static skycoinPINVOKE() { public static extern uint SKY_wallet_ChooseSpendsMaximizeUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_CheckWalletBalance")] - public static extern uint SKY_cli_CheckWalletBalance(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_cli_CheckWalletBalance(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GetBalanceOfAddresses")] - public static extern uint SKY_cli_GetBalanceOfAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_cli_GetBalanceOfAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewReadableEntry")] public static extern uint SKY_wallet_NewReadableEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1437,13 +1161,13 @@ static skycoinPINVOKE() { public static extern uint SKY_base58_Hex2Base58Str(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GenerateWallet")] - public static extern uint SKY_cli_GenerateWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + public static extern uint SKY_cli_GenerateWallet(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_MakeAlphanumericSeed")] public static extern uint SKY_cli_MakeAlphanumericSeed(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_NewClient")] - public static extern uint SKY_webrpc_NewClient(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_webrpc_NewClient(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_CSRF")] public static extern uint SKY_webrpc_Client_CSRF(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1452,10 +1176,10 @@ static skycoinPINVOKE() { public static extern uint SKY_webrpc_Client_InjectTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetStatus")] - public static extern uint SKY_webrpc_Client_GetStatus(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_webrpc_Client_GetStatus(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetTransactionByID")] - public static extern uint SKY_webrpc_Client_GetTransactionByID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_webrpc_Client_GetTransactionByID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetAddressUxOuts")] public static extern uint SKY_webrpc_Client_GetAddressUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -1527,25 +1251,25 @@ static skycoinPINVOKE() { public static extern uint SKY_cipher_RandByte(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_NewPubKey")] - public static extern uint SKY_cipher_NewPubKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_NewPubKey(global::System.Runtime.InteropServices.HandleRef jarg1, SWIGTYPE_p_cipher_PubKey jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromHex")] - public static extern uint SKY_cipher_PubKeyFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_PubKeyFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, SWIGTYPE_p_cipher_PubKey jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromSecKey")] - public static extern uint SKY_cipher_PubKeyFromSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_PubKeyFromSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, SWIGTYPE_p_cipher_PubKey jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromSig")] - public static extern uint SKY_cipher_PubKeyFromSig(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_cipher_PubKeyFromSig(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, SWIGTYPE_p_cipher_PubKey jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKey_Verify")] - public static extern uint SKY_cipher_PubKey_Verify(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint SKY_cipher_PubKey_Verify(SWIGTYPE_p_cipher_PubKey jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKey_Hex")] - public static extern uint SKY_cipher_PubKey_Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_PubKey_Hex(SWIGTYPE_p_cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKey_ToAddressHash")] - public static extern uint SKY_cipher_PubKey_ToAddressHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_PubKey_ToAddressHash(SWIGTYPE_p_cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_NewSecKey")] public static extern uint SKY_cipher_NewSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1560,7 +1284,7 @@ static skycoinPINVOKE() { public static extern uint SKY_cipher_SecKey_Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_ECDH")] - public static extern uint SKY_cipher_ECDH(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_cipher_ECDH(SWIGTYPE_p_cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_NewSig")] public static extern uint SKY_cipher_NewSig(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1581,13 +1305,13 @@ static skycoinPINVOKE() { public static extern uint SKY_cipher_VerifySignedHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_VerifySignature")] - public static extern uint SKY_cipher_VerifySignature(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_cipher_VerifySignature(SWIGTYPE_p_cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPair")] - public static extern uint SKY_cipher_GenerateDeterministicKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_cipher_GenerateDeterministicKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, SWIGTYPE_p_cipher_PubKey jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_DeterministicKeyPairIterator")] - public static extern uint SKY_cipher_DeterministicKeyPairIterator(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + public static extern uint SKY_cipher_DeterministicKeyPairIterator(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, SWIGTYPE_p_cipher_PubKey jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairs")] public static extern uint SKY_cipher_GenerateDeterministicKeyPairs(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -1602,16 +1326,16 @@ static skycoinPINVOKE() { public static extern uint SKY_cipher_TestSecKeyHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateKeyPair")] - public static extern uint SKY_cipher_GenerateKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_GenerateKeyPair(SWIGTYPE_p_cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Create")] - public static extern uint SKY_secp256k1go_Signature_Create(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint SKY_secp256k1go_Signature_Create(); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_GetR")] - public static extern uint SKY_secp256k1go_Signature_GetR(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_secp256k1go_Signature_GetR(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_GetS")] - public static extern uint SKY_secp256k1go_Signature_GetS(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_secp256k1go_Signature_GetS(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Print")] public static extern uint SKY_secp256k1go_Signature_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1641,7 +1365,7 @@ static skycoinPINVOKE() { public static extern uint SKY_cli_Config_GetRPCAddress(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_RPCClientFromApp")] - public static extern uint SKY_cli_RPCClientFromApp(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cli_RPCClientFromApp(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Getenv")] public static extern uint SKY_cli_Getenv(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1707,10 +1431,10 @@ static skycoinPINVOKE() { public static extern uint SKY_wallet_CreateAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, byte jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_GetSkycoinWalletEntry")] - public static extern uint SKY_wallet_GetSkycoinWalletEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_wallet_GetSkycoinWalletEntry(SWIGTYPE_p_cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_GetBitcoinWalletEntry")] - public static extern uint SKY_wallet_GetBitcoinWalletEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_wallet_GetBitcoinWalletEntry(SWIGTYPE_p_cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Print")] public static extern uint SKY_secp256k1go_XYZ_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1794,7 +1518,7 @@ static skycoinPINVOKE() { public static extern uint SKY_cipher_AddressFromBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddressFromPubKey")] - public static extern uint SKY_cipher_AddressFromPubKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_AddressFromPubKey(SWIGTYPE_p_cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddressFromSecKey")] public static extern uint SKY_cipher_AddressFromSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1812,7 +1536,7 @@ static skycoinPINVOKE() { public static extern uint SKY_cipher_Address_BitcoinBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_Verify")] - public static extern uint SKY_cipher_Address_Verify(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_Address_Verify(global::System.Runtime.InteropServices.HandleRef jarg1, SWIGTYPE_p_cipher_PubKey jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_String")] public static extern uint SKY_cipher_Address_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1827,7 +1551,7 @@ static skycoinPINVOKE() { public static extern uint SKY_cipher_Address_BitcoinChecksum(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinAddressFromPubkey")] - public static extern uint SKY_cipher_BitcoinAddressFromPubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_BitcoinAddressFromPubkey(SWIGTYPE_p_cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinWalletImportFormatFromSeckey")] public static extern uint SKY_cipher_BitcoinWalletImportFormatFromSeckey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1893,7 +1617,7 @@ static skycoinPINVOKE() { public static extern uint SKY_api_Handle_Client_GetWalletResponseEntriesCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletGetEntry")] - public static extern uint SKY_api_Handle_WalletGetEntry(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + public static extern uint SKY_api_Handle_WalletGetEntry(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, SWIGTYPE_p_cipher_PubKey jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletResponseGetEntry")] public static extern uint SKY_api_Handle_WalletResponseGetEntry(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); @@ -1923,7 +1647,7 @@ static skycoinPINVOKE() { public static extern uint SKY_api_Handle_GetBuildInfoData(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ripemd160_New")] - public static extern uint SKY_ripemd160_New(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint SKY_ripemd160_New(); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ripemd160_Write")] public static extern uint SKY_ripemd160_Write(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -1932,7 +1656,7 @@ static skycoinPINVOKE() { public static extern uint SKY_ripemd160_Sum(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_Create")] - public static extern uint SKY_secp256k1go_Number_Create(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint SKY_secp256k1go_Number_Create(); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_Print")] public static extern uint SKY_secp256k1go_Number_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1989,7 +1713,7 @@ static skycoinPINVOKE() { public static extern uint SKY_coin_UxArray_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewAddressUxOuts")] - public static extern uint SKY_coin_NewAddressUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_coin_NewAddressUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Keys")] public static extern uint SKY_coin_AddressUxOuts_Keys(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1998,10 +1722,10 @@ static skycoinPINVOKE() { public static extern uint SKY_coin_AddressUxOuts_Flatten(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Sub")] - public static extern uint SKY_coin_AddressUxOuts_Sub(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_coin_AddressUxOuts_Sub(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Add")] - public static extern uint SKY_coin_AddressUxOuts_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_coin_AddressUxOuts_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Get")] public static extern uint SKY_coin_AddressUxOuts_Get(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -2025,7 +1749,7 @@ static skycoinPINVOKE() { public static extern uint SKY_encrypt_ScryptChacha20poly1305_Decrypt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_CreateOptionsHandle")] - public static extern uint SKY_wallet_CreateOptionsHandle(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, byte jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, ulong jarg7, global::System.Runtime.InteropServices.HandleRef jarg8); + public static extern uint SKY_wallet_CreateOptionsHandle(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, byte jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, ulong jarg7); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_AddPrivateKey")] public static extern uint SKY_cli_AddPrivateKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -2109,7 +1833,7 @@ static skycoinPINVOKE() { public static extern uint SKY_fee_TransactionFee(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_LoadConfig")] - public static extern uint SKY_cli_LoadConfig(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint SKY_cli_LoadConfig(); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Config_FullWalletPath")] public static extern uint SKY_cli_Config_FullWalletPath(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -2121,10 +1845,10 @@ static skycoinPINVOKE() { public static extern uint SKY_cli_NewApp(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_RPCClientFromContext")] - public static extern uint SKY_cli_RPCClientFromContext(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cli_RPCClientFromContext(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_ConfigFromContext")] - public static extern uint SKY_cli_ConfigFromContext(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cli_ConfigFromContext(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_PasswordFromBytes_Password")] public static extern uint SKY_cli_PasswordFromBytes_Password(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -2133,16 +1857,16 @@ static skycoinPINVOKE() { public static extern uint SKY_cli_PasswordFromTerm_Password(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_CreateRawTxFromWallet")] - public static extern uint SKY_cli_CreateRawTxFromWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); + public static extern uint SKY_cli_CreateRawTxFromWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_CreateRawTxFromAddress")] - public static extern uint SKY_cli_CreateRawTxFromAddress(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, global::System.Runtime.InteropServices.HandleRef jarg7); + public static extern uint SKY_cli_CreateRawTxFromAddress(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_CreateRawTx")] - public static extern uint SKY_cli_CreateRawTx(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, global::System.Runtime.InteropServices.HandleRef jarg7); + public static extern uint SKY_cli_CreateRawTx(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_NewTransaction")] - public static extern uint SKY_cli_NewTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + public static extern uint SKY_cli_NewTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_file_InitDataDir")] public static extern uint SKY_file_InitDataDir(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -2160,7 +1884,7 @@ static skycoinPINVOKE() { public static extern uint SKY_cli_GetWalletOutputsFromFile(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GetWalletOutputs")] - public static extern uint SKY_cli_GetWalletOutputs(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_cli_GetWalletOutputs(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_testutil_MakeAddress")] public static extern uint SKY_testutil_MakeAddress(global::System.Runtime.InteropServices.HandleRef jarg1); @@ -2259,10 +1983,10 @@ static skycoinPINVOKE() { public static extern uint SKY_cipher_SHA256_Null(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Create_Transaction")] - public static extern uint SKY_coin_Create_Transaction(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint SKY_coin_Create_Transaction(); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Copy")] - public static extern uint SKY_coin_Transaction_Copy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_coin_Transaction_Copy(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetTransactionObject")] public static extern uint SKY_coin_GetTransactionObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -2349,13 +2073,13 @@ static skycoinPINVOKE() { public static extern uint SKY_coin_Transaction_Serialize(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_TransactionDeserialize")] - public static extern uint SKY_coin_TransactionDeserialize(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_coin_TransactionDeserialize(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_OutputHours")] public static extern uint SKY_coin_Transaction_OutputHours(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Create_Transactions")] - public static extern uint SKY_coin_Create_Transactions(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint SKY_coin_Create_Transactions(); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetTransactionsObject")] public static extern uint SKY_coin_GetTransactionsObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -2370,7 +2094,7 @@ static skycoinPINVOKE() { public static extern uint SKY_coin_Transactions_Fees(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_GetAt")] - public static extern uint SKY_coin_Transactions_GetAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_coin_Transactions_GetAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Hashes")] public static extern uint SKY_coin_Transactions_Hashes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -2379,13 +2103,13 @@ static skycoinPINVOKE() { public static extern uint SKY_coin_Transactions_Size(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_TruncateBytesTo")] - public static extern uint SKY_coin_Transactions_TruncateBytesTo(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_coin_Transactions_TruncateBytesTo(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SortTransactions")] - public static extern uint SKY_coin_SortTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_coin_SortTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewSortableTransactions")] - public static extern uint SKY_coin_NewSortableTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_coin_NewSortableTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SortableTransactions_Sort")] public static extern uint SKY_coin_SortableTransactions_Sort(global::System.Runtime.InteropServices.HandleRef jarg1); @@ -2408,17 +2132,17 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Address_isEqual")] public static extern int cipher__Address_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Address_Version_set")] - public static extern void cipher__Address_Version_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cipher__Address_Version")] + public static extern void set_cipher__Address_Version(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Address_Version_get")] - public static extern global::System.IntPtr cipher__Address_Version_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_cipher__Address_Version")] + public static extern global::System.IntPtr get_cipher__Address_Version(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Address_Key_set")] - public static extern void cipher__Address_Key_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cipher__Address_Key")] + public static extern void set_cipher__Address_Key(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Address_Key_get")] - public static extern global::System.IntPtr cipher__Address_Key_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_cipher__Address_Key")] + public static extern global::System.IntPtr get_cipher__Address_Key(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher__Address")] public static extern global::System.IntPtr new_cipher__Address(); @@ -2426,29 +2150,29 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher__Address")] public static extern void delete_cipher__Address(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encoder__StructField_Name_set")] - public static extern void encoder__StructField_Name_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_encoder__StructField_Name")] + public static extern void set_encoder__StructField_Name(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encoder__StructField_Name_get")] - public static extern global::System.IntPtr encoder__StructField_Name_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_encoder__StructField_Name")] + public static extern global::System.IntPtr get_encoder__StructField_Name(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encoder__StructField_Kind_set")] - public static extern void encoder__StructField_Kind_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_encoder__StructField_Kind")] + public static extern void set_encoder__StructField_Kind(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encoder__StructField_Kind_get")] - public static extern global::System.IntPtr encoder__StructField_Kind_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_encoder__StructField_Kind")] + public static extern global::System.IntPtr get_encoder__StructField_Kind(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encoder__StructField_Type_set")] - public static extern void encoder__StructField_Type_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_encoder__StructField_Type")] + public static extern void set_encoder__StructField_Type(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encoder__StructField_Type_get")] - public static extern global::System.IntPtr encoder__StructField_Type_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_encoder__StructField_Type")] + public static extern global::System.IntPtr get_encoder__StructField_Type(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encoder__StructField_Tag_set")] - public static extern void encoder__StructField_Tag_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_encoder__StructField_Tag")] + public static extern void set_encoder__StructField_Tag(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encoder__StructField_Tag_get")] - public static extern global::System.IntPtr encoder__StructField_Tag_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_encoder__StructField_Tag")] + public static extern global::System.IntPtr get_encoder__StructField_Tag(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_encoder__StructField")] public static extern global::System.IntPtr new_encoder__StructField(); @@ -2456,29 +2180,29 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_encoder__StructField")] public static extern void delete_encoder__StructField(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encrypt__ScryptChacha20poly1305_N_set")] - public static extern void encrypt__ScryptChacha20poly1305_N_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_N")] + public static extern void set_encrypt__ScryptChacha20poly1305_N(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encrypt__ScryptChacha20poly1305_N_get")] - public static extern global::System.IntPtr encrypt__ScryptChacha20poly1305_N_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_N")] + public static extern global::System.IntPtr get_encrypt__ScryptChacha20poly1305_N(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encrypt__ScryptChacha20poly1305_R_set")] - public static extern void encrypt__ScryptChacha20poly1305_R_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_R")] + public static extern void set_encrypt__ScryptChacha20poly1305_R(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encrypt__ScryptChacha20poly1305_R_get")] - public static extern global::System.IntPtr encrypt__ScryptChacha20poly1305_R_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_R")] + public static extern global::System.IntPtr get_encrypt__ScryptChacha20poly1305_R(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encrypt__ScryptChacha20poly1305_P_set")] - public static extern void encrypt__ScryptChacha20poly1305_P_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_P")] + public static extern void set_encrypt__ScryptChacha20poly1305_P(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encrypt__ScryptChacha20poly1305_P_get")] - public static extern global::System.IntPtr encrypt__ScryptChacha20poly1305_P_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_P")] + public static extern global::System.IntPtr get_encrypt__ScryptChacha20poly1305_P(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encrypt__ScryptChacha20poly1305_KeyLen_set")] - public static extern void encrypt__ScryptChacha20poly1305_KeyLen_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_KeyLen")] + public static extern void set_encrypt__ScryptChacha20poly1305_KeyLen(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encrypt__ScryptChacha20poly1305_KeyLen_get")] - public static extern global::System.IntPtr encrypt__ScryptChacha20poly1305_KeyLen_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_KeyLen")] + public static extern global::System.IntPtr get_encrypt__ScryptChacha20poly1305_KeyLen(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_encrypt__ScryptChacha20poly1305")] public static extern global::System.IntPtr new_encrypt__ScryptChacha20poly1305(); @@ -2486,11 +2210,11 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_encrypt__ScryptChacha20poly1305")] public static extern void delete_encrypt__ScryptChacha20poly1305(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__Field_n_set")] - public static extern void secp256k1go__Field_n_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_secp256k1go__Field_n")] + public static extern void set_secp256k1go__Field_n(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__Field_n_get")] - public static extern global::System.IntPtr secp256k1go__Field_n_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_secp256k1go__Field_n")] + public static extern global::System.IntPtr get_secp256k1go__Field_n(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_secp256k1go__Field")] public static extern global::System.IntPtr new_secp256k1go__Field(); @@ -2498,23 +2222,23 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_secp256k1go__Field")] public static extern void delete_secp256k1go__Field(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XY_X_set")] - public static extern void secp256k1go__XY_X_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_secp256k1go__XY_X")] + public static extern void set_secp256k1go__XY_X(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XY_X_get")] - public static extern global::System.IntPtr secp256k1go__XY_X_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_secp256k1go__XY_X")] + public static extern global::System.IntPtr get_secp256k1go__XY_X(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XY_Y_set")] - public static extern void secp256k1go__XY_Y_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_secp256k1go__XY_Y")] + public static extern void set_secp256k1go__XY_Y(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XY_Y_get")] - public static extern global::System.IntPtr secp256k1go__XY_Y_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_secp256k1go__XY_Y")] + public static extern global::System.IntPtr get_secp256k1go__XY_Y(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XY_Infinity_set")] - public static extern void secp256k1go__XY_Infinity_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_secp256k1go__XY_Infinity")] + public static extern void set_secp256k1go__XY_Infinity(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XY_Infinity_get")] - public static extern global::System.IntPtr secp256k1go__XY_Infinity_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_secp256k1go__XY_Infinity")] + public static extern global::System.IntPtr get_secp256k1go__XY_Infinity(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_secp256k1go__XY")] public static extern global::System.IntPtr new_secp256k1go__XY(); @@ -2522,29 +2246,29 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_secp256k1go__XY")] public static extern void delete_secp256k1go__XY(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XYZ_X_set")] - public static extern void secp256k1go__XYZ_X_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_secp256k1go__XYZ_X")] + public static extern void set_secp256k1go__XYZ_X(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XYZ_X_get")] - public static extern global::System.IntPtr secp256k1go__XYZ_X_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_secp256k1go__XYZ_X")] + public static extern global::System.IntPtr get_secp256k1go__XYZ_X(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XYZ_Y_set")] - public static extern void secp256k1go__XYZ_Y_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_secp256k1go__XYZ_Y")] + public static extern void set_secp256k1go__XYZ_Y(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XYZ_Y_get")] - public static extern global::System.IntPtr secp256k1go__XYZ_Y_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_secp256k1go__XYZ_Y")] + public static extern global::System.IntPtr get_secp256k1go__XYZ_Y(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XYZ_Z_set")] - public static extern void secp256k1go__XYZ_Z_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_secp256k1go__XYZ_Z")] + public static extern void set_secp256k1go__XYZ_Z(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XYZ_Z_get")] - public static extern global::System.IntPtr secp256k1go__XYZ_Z_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_secp256k1go__XYZ_Z")] + public static extern global::System.IntPtr get_secp256k1go__XYZ_Z(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XYZ_Infinity_set")] - public static extern void secp256k1go__XYZ_Infinity_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_secp256k1go__XYZ_Infinity")] + public static extern void set_secp256k1go__XYZ_Infinity(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XYZ_Infinity_get")] - public static extern global::System.IntPtr secp256k1go__XYZ_Infinity_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_secp256k1go__XYZ_Infinity")] + public static extern global::System.IntPtr get_secp256k1go__XYZ_Infinity(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_secp256k1go__XYZ")] public static extern global::System.IntPtr new_secp256k1go__XYZ(); @@ -2552,23 +2276,23 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_secp256k1go__XYZ")] public static extern void delete_secp256k1go__XYZ(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__SortableTransactions_Txns_set")] - public static extern void coin__SortableTransactions_Txns_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__SortableTransactions_Txns")] + public static extern void set_coin__SortableTransactions_Txns(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__SortableTransactions_Txns_get")] - public static extern global::System.IntPtr coin__SortableTransactions_Txns_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__SortableTransactions_Txns")] + public static extern global::System.IntPtr get_coin__SortableTransactions_Txns(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__SortableTransactions_Fees_set")] - public static extern void coin__SortableTransactions_Fees_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__SortableTransactions_Fees")] + public static extern void set_coin__SortableTransactions_Fees(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__SortableTransactions_Fees_get")] - public static extern global::System.IntPtr coin__SortableTransactions_Fees_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__SortableTransactions_Fees")] + public static extern global::System.IntPtr get_coin__SortableTransactions_Fees(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__SortableTransactions_Hashes_set")] - public static extern void coin__SortableTransactions_Hashes_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__SortableTransactions_Hashes")] + public static extern void set_coin__SortableTransactions_Hashes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__SortableTransactions_Hashes_get")] - public static extern global::System.IntPtr coin__SortableTransactions_Hashes_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__SortableTransactions_Hashes")] + public static extern global::System.IntPtr get_coin__SortableTransactions_Hashes(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__SortableTransactions")] public static extern global::System.IntPtr new_coin__SortableTransactions(); @@ -2579,41 +2303,41 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_isEqual")] public static extern int coin__Transaction_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_Length_set")] - public static extern void coin__Transaction_Length_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__Transaction_Length")] + public static extern void set_coin__Transaction_Length(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_Length_get")] - public static extern global::System.IntPtr coin__Transaction_Length_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__Transaction_Length")] + public static extern global::System.IntPtr get_coin__Transaction_Length(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_Type_set")] - public static extern void coin__Transaction_Type_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__Transaction_Type")] + public static extern void set_coin__Transaction_Type(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_Type_get")] - public static extern global::System.IntPtr coin__Transaction_Type_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__Transaction_Type")] + public static extern global::System.IntPtr get_coin__Transaction_Type(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_InnerHash_set")] - public static extern void coin__Transaction_InnerHash_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__Transaction_InnerHash")] + public static extern void set_coin__Transaction_InnerHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_InnerHash_get")] - public static extern global::System.IntPtr coin__Transaction_InnerHash_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__Transaction_InnerHash")] + public static extern global::System.IntPtr get_coin__Transaction_InnerHash(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_Sigs_set")] - public static extern void coin__Transaction_Sigs_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__Transaction_Sigs")] + public static extern void set_coin__Transaction_Sigs(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_Sigs_get")] - public static extern global::System.IntPtr coin__Transaction_Sigs_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__Transaction_Sigs")] + public static extern global::System.IntPtr get_coin__Transaction_Sigs(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_In_set")] - public static extern void coin__Transaction_In_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__Transaction_In")] + public static extern void set_coin__Transaction_In(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_In_get")] - public static extern global::System.IntPtr coin__Transaction_In_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__Transaction_In")] + public static extern global::System.IntPtr get_coin__Transaction_In(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_Out_set")] - public static extern void coin__Transaction_Out_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__Transaction_Out")] + public static extern void set_coin__Transaction_Out(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_Out_get")] - public static extern global::System.IntPtr coin__Transaction_Out_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__Transaction_Out")] + public static extern global::System.IntPtr get_coin__Transaction_Out(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__Transaction")] public static extern global::System.IntPtr new_coin__Transaction(); @@ -2624,23 +2348,23 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__TransactionOutput_isEqual")] public static extern int coin__TransactionOutput_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__TransactionOutput_Address_set")] - public static extern void coin__TransactionOutput_Address_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__TransactionOutput_Address")] + public static extern void set_coin__TransactionOutput_Address(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__TransactionOutput_Address_get")] - public static extern global::System.IntPtr coin__TransactionOutput_Address_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__TransactionOutput_Address")] + public static extern global::System.IntPtr get_coin__TransactionOutput_Address(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__TransactionOutput_Coins_set")] - public static extern void coin__TransactionOutput_Coins_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__TransactionOutput_Coins")] + public static extern void set_coin__TransactionOutput_Coins(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__TransactionOutput_Coins_get")] - public static extern global::System.IntPtr coin__TransactionOutput_Coins_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__TransactionOutput_Coins")] + public static extern global::System.IntPtr get_coin__TransactionOutput_Coins(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__TransactionOutput_Hours_set")] - public static extern void coin__TransactionOutput_Hours_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__TransactionOutput_Hours")] + public static extern void set_coin__TransactionOutput_Hours(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__TransactionOutput_Hours_get")] - public static extern global::System.IntPtr coin__TransactionOutput_Hours_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__TransactionOutput_Hours")] + public static extern global::System.IntPtr get_coin__TransactionOutput_Hours(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__TransactionOutput")] public static extern global::System.IntPtr new_coin__TransactionOutput(); @@ -2651,47 +2375,47 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_isEqual")] public static extern int coin__BlockHeader_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_Version_set")] - public static extern void coin__BlockHeader_Version_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__BlockHeader_Version")] + public static extern void set_coin__BlockHeader_Version(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_Version_get")] - public static extern global::System.IntPtr coin__BlockHeader_Version_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__BlockHeader_Version")] + public static extern global::System.IntPtr get_coin__BlockHeader_Version(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_Time_set")] - public static extern void coin__BlockHeader_Time_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__BlockHeader_Time")] + public static extern void set_coin__BlockHeader_Time(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_Time_get")] - public static extern global::System.IntPtr coin__BlockHeader_Time_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__BlockHeader_Time")] + public static extern global::System.IntPtr get_coin__BlockHeader_Time(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_BkSeq_set")] - public static extern void coin__BlockHeader_BkSeq_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__BlockHeader_BkSeq")] + public static extern void set_coin__BlockHeader_BkSeq(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_BkSeq_get")] - public static extern global::System.IntPtr coin__BlockHeader_BkSeq_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__BlockHeader_BkSeq")] + public static extern global::System.IntPtr get_coin__BlockHeader_BkSeq(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_Fee_set")] - public static extern void coin__BlockHeader_Fee_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__BlockHeader_Fee")] + public static extern void set_coin__BlockHeader_Fee(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_Fee_get")] - public static extern global::System.IntPtr coin__BlockHeader_Fee_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__BlockHeader_Fee")] + public static extern global::System.IntPtr get_coin__BlockHeader_Fee(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_PrevHash_set")] - public static extern void coin__BlockHeader_PrevHash_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__BlockHeader_PrevHash")] + public static extern void set_coin__BlockHeader_PrevHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_PrevHash_get")] - public static extern global::System.IntPtr coin__BlockHeader_PrevHash_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__BlockHeader_PrevHash")] + public static extern global::System.IntPtr get_coin__BlockHeader_PrevHash(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_BodyHash_set")] - public static extern void coin__BlockHeader_BodyHash_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__BlockHeader_BodyHash")] + public static extern void set_coin__BlockHeader_BodyHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_BodyHash_get")] - public static extern global::System.IntPtr coin__BlockHeader_BodyHash_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__BlockHeader_BodyHash")] + public static extern global::System.IntPtr get_coin__BlockHeader_BodyHash(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_UxHash_set")] - public static extern void coin__BlockHeader_UxHash_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__BlockHeader_UxHash")] + public static extern void set_coin__BlockHeader_UxHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_UxHash_get")] - public static extern global::System.IntPtr coin__BlockHeader_UxHash_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__BlockHeader_UxHash")] + public static extern global::System.IntPtr get_coin__BlockHeader_UxHash(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__BlockHeader")] public static extern global::System.IntPtr new_coin__BlockHeader(); @@ -2702,11 +2426,11 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockBody_isEqual")] public static extern int coin__BlockBody_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockBody_Transactions_set")] - public static extern void coin__BlockBody_Transactions_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__BlockBody_Transactions")] + public static extern void set_coin__BlockBody_Transactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockBody_Transactions_get")] - public static extern global::System.IntPtr coin__BlockBody_Transactions_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__BlockBody_Transactions")] + public static extern global::System.IntPtr get_coin__BlockBody_Transactions(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__BlockBody")] public static extern global::System.IntPtr new_coin__BlockBody(); @@ -2714,17 +2438,17 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__BlockBody")] public static extern void delete_coin__BlockBody(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Block_Head_set")] - public static extern void coin__Block_Head_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__Block_Head")] + public static extern void set_coin__Block_Head(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Block_Head_get")] - public static extern global::System.IntPtr coin__Block_Head_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__Block_Head")] + public static extern global::System.IntPtr get_coin__Block_Head(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Block_Body_set")] - public static extern void coin__Block_Body_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__Block_Body")] + public static extern void set_coin__Block_Body(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Block_Body_get")] - public static extern global::System.IntPtr coin__Block_Body_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__Block_Body")] + public static extern global::System.IntPtr get_coin__Block_Body(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__Block")] public static extern global::System.IntPtr new_coin__Block(); @@ -2732,17 +2456,17 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__Block")] public static extern void delete_coin__Block(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__SignedBlock__unnamed_set")] - public static extern void coin__SignedBlock__unnamed_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__SignedBlock__unnamed")] + public static extern void set_coin__SignedBlock__unnamed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__SignedBlock__unnamed_get")] - public static extern global::System.IntPtr coin__SignedBlock__unnamed_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__SignedBlock__unnamed")] + public static extern global::System.IntPtr get_coin__SignedBlock__unnamed(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__SignedBlock_Sig_set")] - public static extern void coin__SignedBlock_Sig_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__SignedBlock_Sig")] + public static extern void set_coin__SignedBlock_Sig(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__SignedBlock_Sig_get")] - public static extern global::System.IntPtr coin__SignedBlock_Sig_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__SignedBlock_Sig")] + public static extern global::System.IntPtr get_coin__SignedBlock_Sig(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__SignedBlock")] public static extern global::System.IntPtr new_coin__SignedBlock(); @@ -2750,17 +2474,17 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__SignedBlock")] public static extern void delete_coin__SignedBlock(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxHead_Time_set")] - public static extern void coin__UxHead_Time_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__UxHead_Time")] + public static extern void set_coin__UxHead_Time(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxHead_Time_get")] - public static extern global::System.IntPtr coin__UxHead_Time_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__UxHead_Time")] + public static extern global::System.IntPtr get_coin__UxHead_Time(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxHead_BkSeq_set")] - public static extern void coin__UxHead_BkSeq_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__UxHead_BkSeq")] + public static extern void set_coin__UxHead_BkSeq(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxHead_BkSeq_get")] - public static extern global::System.IntPtr coin__UxHead_BkSeq_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__UxHead_BkSeq")] + public static extern global::System.IntPtr get_coin__UxHead_BkSeq(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__UxHead")] public static extern global::System.IntPtr new_coin__UxHead(); @@ -2768,29 +2492,29 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__UxHead")] public static extern void delete_coin__UxHead(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxBody_SrcTransaction_set")] - public static extern void coin__UxBody_SrcTransaction_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__UxBody_SrcTransaction")] + public static extern void set_coin__UxBody_SrcTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxBody_SrcTransaction_get")] - public static extern global::System.IntPtr coin__UxBody_SrcTransaction_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__UxBody_SrcTransaction")] + public static extern global::System.IntPtr get_coin__UxBody_SrcTransaction(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxBody_Address_set")] - public static extern void coin__UxBody_Address_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__UxBody_Address")] + public static extern void set_coin__UxBody_Address(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxBody_Address_get")] - public static extern global::System.IntPtr coin__UxBody_Address_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__UxBody_Address")] + public static extern global::System.IntPtr get_coin__UxBody_Address(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxBody_Coins_set")] - public static extern void coin__UxBody_Coins_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__UxBody_Coins")] + public static extern void set_coin__UxBody_Coins(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxBody_Coins_get")] - public static extern global::System.IntPtr coin__UxBody_Coins_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__UxBody_Coins")] + public static extern global::System.IntPtr get_coin__UxBody_Coins(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxBody_Hours_set")] - public static extern void coin__UxBody_Hours_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__UxBody_Hours")] + public static extern void set_coin__UxBody_Hours(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxBody_Hours_get")] - public static extern global::System.IntPtr coin__UxBody_Hours_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__UxBody_Hours")] + public static extern global::System.IntPtr get_coin__UxBody_Hours(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__UxBody")] public static extern global::System.IntPtr new_coin__UxBody(); @@ -2801,17 +2525,17 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxOut_isEqual")] public static extern int coin__UxOut_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxOut_Head_set")] - public static extern void coin__UxOut_Head_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__UxOut_Head")] + public static extern void set_coin__UxOut_Head(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxOut_Head_get")] - public static extern global::System.IntPtr coin__UxOut_Head_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__UxOut_Head")] + public static extern global::System.IntPtr get_coin__UxOut_Head(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxOut_Body_set")] - public static extern void coin__UxOut_Body_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__UxOut_Body")] + public static extern void set_coin__UxOut_Body(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxOut_Body_get")] - public static extern global::System.IntPtr coin__UxOut_Body_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__UxOut_Body")] + public static extern global::System.IntPtr get_coin__UxOut_Body(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__UxOut")] public static extern global::System.IntPtr new_coin__UxOut(); @@ -2819,17 +2543,17 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__UxOut")] public static extern void delete_coin__UxOut(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Balance_Coins_set")] - public static extern void wallet__Balance_Coins_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__Balance_Coins")] + public static extern void set_wallet__Balance_Coins(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Balance_Coins_get")] - public static extern global::System.IntPtr wallet__Balance_Coins_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__Balance_Coins")] + public static extern global::System.IntPtr get_wallet__Balance_Coins(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Balance_Hours_set")] - public static extern void wallet__Balance_Hours_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__Balance_Hours")] + public static extern void set_wallet__Balance_Hours(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Balance_Hours_get")] - public static extern global::System.IntPtr wallet__Balance_Hours_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__Balance_Hours")] + public static extern global::System.IntPtr get_wallet__Balance_Hours(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__Balance")] public static extern global::System.IntPtr new_wallet__Balance(); @@ -2837,17 +2561,17 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__Balance")] public static extern void delete_wallet__Balance(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__BalancePair_Confirmed_set")] - public static extern void wallet__BalancePair_Confirmed_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__BalancePair_Confirmed")] + public static extern void set_wallet__BalancePair_Confirmed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__BalancePair_Confirmed_get")] - public static extern global::System.IntPtr wallet__BalancePair_Confirmed_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__BalancePair_Confirmed")] + public static extern global::System.IntPtr get_wallet__BalancePair_Confirmed(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__BalancePair_Predicted_set")] - public static extern void wallet__BalancePair_Predicted_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__BalancePair_Predicted")] + public static extern void set_wallet__BalancePair_Predicted(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__BalancePair_Predicted_get")] - public static extern global::System.IntPtr wallet__BalancePair_Predicted_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__BalancePair_Predicted")] + public static extern global::System.IntPtr get_wallet__BalancePair_Predicted(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__BalancePair")] public static extern global::System.IntPtr new_wallet__BalancePair(); @@ -2855,23 +2579,23 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__BalancePair")] public static extern void delete_wallet__BalancePair(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Entry_Address_set")] - public static extern void wallet__Entry_Address_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__Entry_Address")] + public static extern void set_wallet__Entry_Address(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Entry_Address_get")] - public static extern global::System.IntPtr wallet__Entry_Address_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__Entry_Address")] + public static extern global::System.IntPtr get_wallet__Entry_Address(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Entry_Public_set")] - public static extern void wallet__Entry_Public_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__Entry_Public")] + public static extern void set_wallet__Entry_Public(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Entry_Public_get")] - public static extern global::System.IntPtr wallet__Entry_Public_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__Entry_Public")] + public static extern global::System.IntPtr get_wallet__Entry_Public(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Entry_Secret_set")] - public static extern void wallet__Entry_Secret_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__Entry_Secret")] + public static extern void set_wallet__Entry_Secret(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Entry_Secret_get")] - public static extern global::System.IntPtr wallet__Entry_Secret_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__Entry_Secret")] + public static extern global::System.IntPtr get_wallet__Entry_Secret(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__Entry")] public static extern global::System.IntPtr new_wallet__Entry(); @@ -2879,17 +2603,17 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__Entry")] public static extern void delete_wallet__Entry(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Note_TxID_set")] - public static extern void wallet__Note_TxID_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__Note_TxID")] + public static extern void set_wallet__Note_TxID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Note_TxID_get")] - public static extern global::System.IntPtr wallet__Note_TxID_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__Note_TxID")] + public static extern global::System.IntPtr get_wallet__Note_TxID(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Note_Value_set")] - public static extern void wallet__Note_Value_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__Note_Value")] + public static extern void set_wallet__Note_Value(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Note_Value_get")] - public static extern global::System.IntPtr wallet__Note_Value_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__Note_Value")] + public static extern global::System.IntPtr get_wallet__Note_Value(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__Note")] public static extern global::System.IntPtr new_wallet__Note(); @@ -2897,17 +2621,17 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__Note")] public static extern void delete_wallet__Note(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__ReadableNote_TransactionID_set")] - public static extern void wallet__ReadableNote_TransactionID_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__ReadableNote_TransactionID")] + public static extern void set_wallet__ReadableNote_TransactionID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__ReadableNote_TransactionID_get")] - public static extern global::System.IntPtr wallet__ReadableNote_TransactionID_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__ReadableNote_TransactionID")] + public static extern global::System.IntPtr get_wallet__ReadableNote_TransactionID(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__ReadableNote_ActualNote_set")] - public static extern void wallet__ReadableNote_ActualNote_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__ReadableNote_ActualNote")] + public static extern void set_wallet__ReadableNote_ActualNote(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__ReadableNote_ActualNote_get")] - public static extern global::System.IntPtr wallet__ReadableNote_ActualNote_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__ReadableNote_ActualNote")] + public static extern global::System.IntPtr get_wallet__ReadableNote_ActualNote(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__ReadableNote")] public static extern global::System.IntPtr new_wallet__ReadableNote(); @@ -2915,17 +2639,17 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__ReadableNote")] public static extern void delete_wallet__ReadableNote(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Wallet_Meta_set")] - public static extern void wallet__Wallet_Meta_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__Wallet_Meta")] + public static extern void set_wallet__Wallet_Meta(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Wallet_Meta_get")] - public static extern global::System.IntPtr wallet__Wallet_Meta_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__Wallet_Meta")] + public static extern global::System.IntPtr get_wallet__Wallet_Meta(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Wallet_Entries_set")] - public static extern void wallet__Wallet_Entries_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__Wallet_Entries")] + public static extern void set_wallet__Wallet_Entries(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Wallet_Entries_get")] - public static extern global::System.IntPtr wallet__Wallet_Entries_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__Wallet_Entries")] + public static extern global::System.IntPtr get_wallet__Wallet_Entries(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__Wallet")] public static extern global::System.IntPtr new_wallet__Wallet(); @@ -2933,35 +2657,35 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__Wallet")] public static extern void delete_wallet__Wallet(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__UxBalance_Hash_set")] - public static extern void wallet__UxBalance_Hash_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__UxBalance_Hash")] + public static extern void set_wallet__UxBalance_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__UxBalance_Hash_get")] - public static extern global::System.IntPtr wallet__UxBalance_Hash_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__UxBalance_Hash")] + public static extern global::System.IntPtr get_wallet__UxBalance_Hash(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__UxBalance_BkSeq_set")] - public static extern void wallet__UxBalance_BkSeq_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__UxBalance_BkSeq")] + public static extern void set_wallet__UxBalance_BkSeq(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__UxBalance_BkSeq_get")] - public static extern global::System.IntPtr wallet__UxBalance_BkSeq_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__UxBalance_BkSeq")] + public static extern global::System.IntPtr get_wallet__UxBalance_BkSeq(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__UxBalance_Address_set")] - public static extern void wallet__UxBalance_Address_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__UxBalance_Address")] + public static extern void set_wallet__UxBalance_Address(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__UxBalance_Address_get")] - public static extern global::System.IntPtr wallet__UxBalance_Address_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__UxBalance_Address")] + public static extern global::System.IntPtr get_wallet__UxBalance_Address(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__UxBalance_Coins_set")] - public static extern void wallet__UxBalance_Coins_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__UxBalance_Coins")] + public static extern void set_wallet__UxBalance_Coins(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__UxBalance_Coins_get")] - public static extern global::System.IntPtr wallet__UxBalance_Coins_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__UxBalance_Coins")] + public static extern global::System.IntPtr get_wallet__UxBalance_Coins(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__UxBalance_Hours_set")] - public static extern void wallet__UxBalance_Hours_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__UxBalance_Hours")] + public static extern void set_wallet__UxBalance_Hours(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__UxBalance_Hours_get")] - public static extern global::System.IntPtr wallet__UxBalance_Hours_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__UxBalance_Hours")] + public static extern global::System.IntPtr get_wallet__UxBalance_Hours(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__UxBalance")] public static extern global::System.IntPtr new_wallet__UxBalance(); @@ -2969,17 +2693,17 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__UxBalance")] public static extern void delete_wallet__UxBalance(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_api__RichlistParams_N_set")] - public static extern void api__RichlistParams_N_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_api__RichlistParams_N")] + public static extern void set_api__RichlistParams_N(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_api__RichlistParams_N_get")] - public static extern global::System.IntPtr api__RichlistParams_N_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_api__RichlistParams_N")] + public static extern global::System.IntPtr get_api__RichlistParams_N(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_api__RichlistParams_IncludeDistribution_set")] - public static extern void api__RichlistParams_IncludeDistribution_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_api__RichlistParams_IncludeDistribution")] + public static extern void set_api__RichlistParams_IncludeDistribution(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_api__RichlistParams_IncludeDistribution_get")] - public static extern global::System.IntPtr api__RichlistParams_IncludeDistribution_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_api__RichlistParams_IncludeDistribution")] + public static extern global::System.IntPtr get_api__RichlistParams_IncludeDistribution(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_api__RichlistParams")] public static extern global::System.IntPtr new_api__RichlistParams(); @@ -2987,17 +2711,17 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_api__RichlistParams")] public static extern void delete_api__RichlistParams(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cli__SendAmount_Addr_set")] - public static extern void cli__SendAmount_Addr_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cli__SendAmount_Addr")] + public static extern void set_cli__SendAmount_Addr(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cli__SendAmount_Addr_get")] - public static extern global::System.IntPtr cli__SendAmount_Addr_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_cli__SendAmount_Addr")] + public static extern global::System.IntPtr get_cli__SendAmount_Addr(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cli__SendAmount_Coins_set")] - public static extern void cli__SendAmount_Coins_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cli__SendAmount_Coins")] + public static extern void set_cli__SendAmount_Coins(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cli__SendAmount_Coins_get")] - public static extern global::System.IntPtr cli__SendAmount_Coins_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_cli__SendAmount_Coins")] + public static extern global::System.IntPtr get_cli__SendAmount_Coins(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cli__SendAmount")] public static extern global::System.IntPtr new_cli__SendAmount(); @@ -3005,11 +2729,11 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cli__SendAmount")] public static extern void delete_cli__SendAmount(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_httphelper__Address__unnamed_set")] - public static extern void httphelper__Address__unnamed_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_httphelper__Address__unnamed")] + public static extern void set_httphelper__Address__unnamed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_httphelper__Address__unnamed_get")] - public static extern global::System.IntPtr httphelper__Address__unnamed_get(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_httphelper__Address__unnamed")] + public static extern global::System.IntPtr get_httphelper__Address__unnamed(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_httphelper__Address")] public static extern global::System.IntPtr new_httphelper__Address(); diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index 891d797f..3903eaf0 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -275,11 +275,6 @@ SWIGEXPORT void SWIGSTDCALL SWIGRegisterStringCallback_skycoin(SWIG_CSharpString #define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentOutOfRangeException, msg, ""); return nullreturn; } else - #define SWIG_FILE_WITH_INIT - #include "libskycoin.h" - #include "swig.h" - - void destroy_cipher_SecKeys(cipher_SecKeys* p){ if( p != NULL ){ if( p->data != NULL ){ @@ -335,162 +330,157 @@ SWIGEXPORT void SWIGSTDCALL SWIGRegisterStringCallback_skycoin(SWIG_CSharpString return 1; } -SWIGINTERN int cipher_PubKey_isEqual(cipher_PubKey *self,cipher_PubKey *a){ - return memcmp(self->data, a->data, sizeof(a->data)) == 0; - } -SWIGINTERN void cipher_PubKey_assignFrom(cipher_PubKey *self,void *data){ - memcpy(&self->data, data, sizeof(self->data)); - } -SWIGINTERN void cipher_PubKey_assignTo(cipher_PubKey *self,void *data){ - memcpy(data, &self->data, sizeof(self->data)); - } -SWIGINTERN int cipher_SecKey_isEqual(cipher_SecKey *self,cipher_SecKey *a){ - return memcmp(self->data, a->data, sizeof(a->data)) == 0; - } -SWIGINTERN void cipher_SecKey_assignFrom(cipher_SecKey *self,void *data){ - memcpy(&self->data, data, sizeof(self->data)); - } -SWIGINTERN void cipher_SecKey_assignTo(cipher_SecKey *self,void *data){ - memcpy(data, &self->data, sizeof(self->data)); - } -SWIGINTERN int cipher_Ripemd160_isEqual(cipher_Ripemd160 *self,cipher_Ripemd160 *a){ - return memcmp(self->data, a->data, sizeof(a->data)) == 0; - } -SWIGINTERN void cipher_Ripemd160_assignFrom(cipher_Ripemd160 *self,void *data){ - memcpy(&self->data, data, sizeof(self->data)); - } -SWIGINTERN void cipher_Ripemd160_assignTo(cipher_Ripemd160 *self,void *data){ - memcpy(data, &self->data, sizeof(self->data)); - } -SWIGINTERN int cipher_Sig_isEqual(cipher_Sig *self,cipher_Sig *a){ - return memcmp(self->data, a->data, sizeof(a->data)) == 0; - } -SWIGINTERN void cipher_Sig_assignFrom(cipher_Sig *self,void *data){ - memcpy(&self->data, data, sizeof(self->data)); - } -SWIGINTERN void cipher_Sig_assignTo(cipher_Sig *self,void *data){ - memcpy(data, &self->data, sizeof(self->data)); - } -SWIGINTERN int cipher_SHA256_isEqual(cipher_SHA256 *self,cipher_SHA256 *a){ - return memcmp(self->data, a->data, sizeof(a->data)) == 0; - } -SWIGINTERN void cipher_SHA256_assignFrom(cipher_SHA256 *self,void *data){ - memcpy(&self->data, data, sizeof(self->data)); - } -SWIGINTERN void cipher_SHA256_assignTo(cipher_SHA256 *self,void *data){ - memcpy(data, &self->data, sizeof(self->data)); - } -SWIGINTERN int cipher_Checksum_isEqual(cipher_Checksum *self,cipher_Checksum *a){ - return memcmp(self->data, a->data, sizeof(a->data)) == 0; - } -SWIGINTERN void cipher_Checksum_assignFrom(cipher_Checksum *self,void *data){ - memcpy(&self->data, data, sizeof(self->data)); - } -SWIGINTERN void cipher_Checksum_assignTo(cipher_Checksum *self,void *data){ - memcpy(data, &self->data, sizeof(self->data)); - } -SWIGINTERN cipher_SecKey *cipher_SecKeys_getAt(cipher_SecKeys *self,int i){ - if( i < self->count ){ - return &self->data[i]; - } - else - return NULL; - } -SWIGINTERN int cipher_SecKeys_setAt(cipher_SecKeys *self,int i,cipher_SecKey *seckey){ - if( i < self->count){ - memcpy(&self->data[i], seckey, sizeof(*seckey)); - return i; - } else { - return -1; - } - } -SWIGINTERN int cipher_SecKeys_isEqual(cipher_SecKeys *self,cipher_SecKeys *a){ - return self->count == a->count && memcmp(self->data, a->data, sizeof(cipher_SecKey) * self->count) == 0; - } -SWIGINTERN void cipher_SecKeys_allocate(cipher_SecKeys *self,int n){ - self->data = malloc(n * sizeof(*(self->data))); - self->count = n; - } -SWIGINTERN void cipher_SecKeys_release(cipher_SecKeys *self){ - destroy_cipher_SecKeys(self); - } -SWIGINTERN cipher_PubKey *cipher_PubKeys_getAt(cipher_PubKeys *self,int i){ - if( i < self->count ){ - return &self->data[i]; - } - else - return NULL; - } -SWIGINTERN int cipher_PubKeys_setAt(cipher_PubKeys *self,int i,cipher_PubKey *pubkey){ - if( i < self->count){ - memcpy(&self->data[i], pubkey, sizeof(*pubkey)); - return i; - } else { - return -1; - } - } -SWIGINTERN int cipher_PubKeys_isEqual(cipher_PubKeys *self,cipher_PubKeys *a){ - return self->count == a->count && memcmp(self->data, a->data, sizeof(cipher_PubKey) * self->count) == 0; - } -SWIGINTERN void cipher_PubKeys_allocate(cipher_PubKeys *self,int n){ - self->data = malloc(n * sizeof(*(self->data))); - self->count = n; - } -SWIGINTERN void cipher_PubKeys_release(cipher_PubKeys *self){ - if(self->data != NULL) - free(self->data); - } -SWIGINTERN cipher_SHA256 *cipher_SHA256s_getAt(cipher_SHA256s *self,int i){ - if( i < self->count ){ - return &self->data[i]; - } - else - return NULL; - } -SWIGINTERN int cipher_SHA256s_setAt(cipher_SHA256s *self,int i,cipher_SHA256 *hash){ - if( i < self->count){ - memcpy(&self->data[i], hash, sizeof(*hash)); - return i; - } else { - return -1; - } - } -SWIGINTERN int cipher_SHA256s_isEqual(cipher_SHA256s *self,cipher_SHA256s *a){ - return self->count == a->count && memcmp(self->data, a->data, sizeof(cipher_SHA256) * self->count) == 0; - } -SWIGINTERN void cipher_SHA256s_allocate(cipher_SHA256s *self,int n){ - self->data = malloc(n * sizeof(*(self->data))); - self->count = n; - } -SWIGINTERN void cipher_SHA256s_release(cipher_SHA256s *self){ - if(self->data != NULL) free(self->data); - } -SWIGINTERN coin__UxOut *coin_UxOutArray_getAt(coin_UxOutArray *self,int i){ - if( i < self->count ){ - return &self->data[i]; - } - else - return NULL; - } -SWIGINTERN int coin_UxOutArray_setAt(coin_UxOutArray *self,int i,coin__UxOut *uxout){ - if( i < self->count){ - memcpy(&self->data[i], uxout, sizeof(*uxout)); - return i; - } else { - return -1; - } - } -SWIGINTERN int coin_UxOutArray_isEqual(coin_UxOutArray *self,coin_UxOutArray *a){ - return self->count == a->count && memcmp(self->data, a->data, sizeof(coin__UxOut) * self->count) == 0; - } -SWIGINTERN void coin_UxOutArray_allocate(coin_UxOutArray *self,int n){ - self->data = malloc(n * sizeof(*(self->data))); - self->count = n; - } -SWIGINTERN void coin_UxOutArray_release(coin_UxOutArray *self){ - if(self->data != NULL) - free(self->data); - } + +/** + * Memory handle for internal object retrieving password to read + * encrypted wallets. + */ +typedef Handle PasswordReader__Handle; + +/** + * Memory handle to perform Skycoin RPC API calls + * encrypted wallets. + */ +typedef Handle WebRpcClient__Handle; + +/** + * Memory handle providing access to wallet data + */ +typedef Handle Wallet__Handle; + +/** + * Memory handle Options Handle +*/ +typedef Handle Options__Handle; + +/** + * Memory handle to access to Skycoin CLI configuration + */ +typedef Handle Config__Handle; +/** + * Memory handle to access to coin.Transaction + */ +typedef Handle Transaction__Handle; + +/** + * Memory handle to access to coin.Transactions + */ +typedef Handle Transactions__Handle; + +/** + * Memory handle to access to api.CreatedTransaction + */ +typedef Handle CreatedTransaction__Handle; + +/** + * Memory handle to access to api.CreatedTransactionOutput + */ +typedef Handle CreatedTransactionOutput__Handle; + +/** + * Memory handle to access to api.CreatedTransactionInput + */ +typedef Handle CreatedTransactionInput__Handle; + +/** + * Memory handle to access to api.CreateTransactionResponse + */ +typedef Handle CreateTransactionResponse__Handle; + +/** + * Memory handle to access to coin.Block + */ +typedef Handle Block__Handle; + +/** + * Memory handle to access to coin.SignedBlock + */ +typedef Handle SignedBlock__Handle; + +/** + * Memory handle to access to coin.BlockBody + */ +typedef Handle BlockBody__Handle; + +/** + * Memory handle to access to cli.BalanceResult + */ + +typedef Handle BalanceResult_Handle; + + +/** + * Memory handle to access to api.SpendResult + */ + +typedef Handle SpendResult_Handle; + +/** + * Memory handle to access to coin.Transactions + */ + +typedef Handle TransactionResult_Handle; + +/** + * Memory handle to access to coin.SortableTransactions + */ + +typedef Handle SortableTransactionResult_Handle; + +/** + * Memory handle to access to wallet.Notes + */ + + +/** + * Memory handle to access to wallet.ReadableNotes + */ + +typedef Handle WalletReadableNotes_Handle; + +/** + * Memory handle to access to webrpc.OutputsResult + */ + +typedef Handle OutputsResult_Handle; + +/** + * Memory handle to access to webrpc.StatusResult + */ + +typedef Handle StatusResult_Handle; + +/** + * Memory handle to access to coin.AddressUxOuts + */ + +typedef Handle AddressUxOuts_Handle; + +/** + * Memory handle to access to visor.BuildInfo (BuildInfo) + */ + +typedef Handle BuildInfo_Handle; + +/** + * Memory handle for hash (ripemd160.digest) + */ + +typedef Handle Hash_Handle; + +/** +* Handle for Number type +*/ + +typedef Handle Number_Handle; + +/** +* Handle for Signature type +*/ + +typedef Handle Signature_Handle; + + SWIGINTERN int cipher__Address_isEqual(cipher__Address *self,cipher__Address *a){ if( self->Version == a->Version ){ return memcmp(self->Key, a->Key, sizeof(a->Key)) == 0; @@ -590,7 +580,7 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalBlockHeaders(void * jarg1, void * } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrVerifySignatureInvalidPubkeysLength_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrVerifySignatureInvalidPubkeysLength() { long long jresult ; long long result; @@ -600,7 +590,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrVerifySignatureInvalidPub } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_OK_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_OK() { long long jresult ; long long result; @@ -610,7 +600,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_OK_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ERROR_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ERROR() { long long jresult ; long long result; @@ -620,7 +610,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ERROR_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_API_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_PKG_API() { long long jresult ; long long result; @@ -630,7 +620,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_API_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_CIPHER_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_PKG_CIPHER() { long long jresult ; long long result; @@ -640,7 +630,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_CIPHER_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_CLI_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_PKG_CLI() { long long jresult ; long long result; @@ -650,7 +640,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_CLI_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_COIN_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_PKG_COIN() { long long jresult ; long long result; @@ -660,7 +650,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_COIN_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_CONSENSUS_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_PKG_CONSENSUS() { long long jresult ; long long result; @@ -670,7 +660,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_CONSENSUS_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_DAEMON_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_PKG_DAEMON() { long long jresult ; long long result; @@ -680,7 +670,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_DAEMON_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_GUI_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_PKG_GUI() { long long jresult ; long long result; @@ -690,7 +680,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_GUI_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_SKYCOIN_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_PKG_SKYCOIN() { long long jresult ; long long result; @@ -700,7 +690,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_SKYCOIN_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_UTIL_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_PKG_UTIL() { long long jresult ; long long result; @@ -710,7 +700,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_UTIL_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_VISOR_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_PKG_VISOR() { long long jresult ; long long result; @@ -720,7 +710,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_VISOR_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_WALLET_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_PKG_WALLET() { long long jresult ; long long result; @@ -730,7 +720,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_WALLET_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrAddressInvalidLength_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrAddressInvalidLength() { long long jresult ; long long result; @@ -740,7 +730,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrAddressInvalidLength_get( } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrAddressInvalidChecksum_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrAddressInvalidChecksum() { long long jresult ; long long result; @@ -750,7 +740,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrAddressInvalidChecksum_ge } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrAddressInvalidVersion_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrAddressInvalidVersion() { long long jresult ; long long result; @@ -760,7 +750,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrAddressInvalidVersion_get } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrAddressInvalidPubKey_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrAddressInvalidPubKey() { long long jresult ; long long result; @@ -770,7 +760,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrAddressInvalidPubKey_get( } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrAddressInvalidFirstByte_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrAddressInvalidFirstByte() { long long jresult ; long long result; @@ -780,7 +770,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrAddressInvalidFirstByte_g } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrAddressInvalidLastByte_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrAddressInvalidLastByte() { long long jresult ; long long result; @@ -790,7 +780,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrAddressInvalidLastByte_ge } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrBufferUnderflow_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrBufferUnderflow() { long long jresult ; long long result; @@ -800,7 +790,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrBufferUnderflow_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidOmitEmpty_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidOmitEmpty() { long long jresult ; long long result; @@ -810,7 +800,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidOmitEmpty_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidLengthPubKey_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidLengthPubKey() { long long jresult ; long long result; @@ -820,7 +810,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidLengthPubKey_get() } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrPubKeyFromNullSecKey_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrPubKeyFromNullSecKey() { long long jresult ; long long result; @@ -830,7 +820,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrPubKeyFromNullSecKey_get( } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrPubKeyFromBadSecKey_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrPubKeyFromBadSecKey() { long long jresult ; long long result; @@ -840,7 +830,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrPubKeyFromBadSecKey_get() } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidLengthSecKey_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidLengthSecKey() { long long jresult ; long long result; @@ -850,7 +840,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidLengthSecKey_get() } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrECHDInvalidPubKey_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrECHDInvalidPubKey() { long long jresult ; long long result; @@ -860,7 +850,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrECHDInvalidPubKey_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrECHDInvalidSecKey_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrECHDInvalidSecKey() { long long jresult ; long long result; @@ -870,7 +860,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrECHDInvalidSecKey_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidLengthSig_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidLengthSig() { long long jresult ; long long result; @@ -880,7 +870,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidLengthSig_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidLengthRipemd160_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidLengthRipemd160() { long long jresult ; long long result; @@ -890,7 +880,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidLengthRipemd160_ge } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidLengthSHA256_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidLengthSHA256() { long long jresult ; long long result; @@ -900,7 +890,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidLengthSHA256_get() } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidBase58Char_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidBase58Char() { long long jresult ; long long result; @@ -910,7 +900,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidBase58Char_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidBase58String_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidBase58String() { long long jresult ; long long result; @@ -920,7 +910,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidBase58String_get() } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidBase58Length_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidBase58Length() { long long jresult ; long long result; @@ -930,7 +920,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidBase58Length_get() } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidHexLength_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidHexLength() { long long jresult ; long long result; @@ -940,7 +930,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidHexLength_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidBytesLength_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidBytesLength() { long long jresult ; long long result; @@ -950,7 +940,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidBytesLength_get() } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidPubKey_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidPubKey() { long long jresult ; long long result; @@ -960,7 +950,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidPubKey_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidSecKey_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidSecKey() { long long jresult ; long long result; @@ -970,7 +960,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidSecKey_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidSigForPubKey_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidSigForPubKey() { long long jresult ; long long result; @@ -980,7 +970,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidSigForPubKey_get() } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidSecKeyHex_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidSecKeyHex() { long long jresult ; long long result; @@ -990,7 +980,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidSecKeyHex_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidAddressForSig_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidAddressForSig() { long long jresult ; long long result; @@ -1000,7 +990,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidAddressForSig_get( } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidHashForSig_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidHashForSig() { long long jresult ; long long result; @@ -1010,7 +1000,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidHashForSig_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrPubKeyRecoverMismatch_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrPubKeyRecoverMismatch() { long long jresult ; long long result; @@ -1020,7 +1010,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrPubKeyRecoverMismatch_get } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidSigInvalidPubKey_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidSigInvalidPubKey() { long long jresult ; long long result; @@ -1030,7 +1020,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidSigInvalidPubKey_g } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidSigValidity_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidSigValidity() { long long jresult ; long long result; @@ -1040,7 +1030,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidSigValidity_get() } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidSigForMessage_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidSigForMessage() { long long jresult ; long long result; @@ -1050,7 +1040,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidSigForMessage_get( } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidSecKyVerification_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidSecKyVerification() { long long jresult ; long long result; @@ -1060,7 +1050,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidSecKyVerification_ } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrNullPubKeyFromSecKey_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrNullPubKeyFromSecKey() { long long jresult ; long long result; @@ -1070,7 +1060,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrNullPubKeyFromSecKey_get( } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidDerivedPubKeyFromSecKey_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidDerivedPubKeyFromSecKey() { long long jresult ; long long result; @@ -1080,7 +1070,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidDerivedPubKeyFromS } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidPubKeyFromHash_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidPubKeyFromHash() { long long jresult ; long long result; @@ -1090,7 +1080,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidPubKeyFromHash_get } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrPubKeyFromSecKeyMissmatch_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrPubKeyFromSecKeyMissmatch() { long long jresult ; long long result; @@ -1100,7 +1090,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrPubKeyFromSecKeyMissmatch } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTemporaryInsufficientBalance_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrTemporaryInsufficientBalance() { long long jresult ; long long result; @@ -1110,7 +1100,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTemporaryInsufficientBala } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrAddress_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrAddress() { long long jresult ; long long result; @@ -1120,7 +1110,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrAddress_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrWalletName_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrWalletName() { long long jresult ; long long result; @@ -1130,7 +1120,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrWalletName_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrJSONMarshal_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrJSONMarshal() { long long jresult ; long long result; @@ -1140,7 +1130,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrJSONMarshal_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_WalletLoadError_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_WalletLoadError() { long long jresult ; long long result; @@ -1150,7 +1140,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_WalletLoadError_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_WalletSaveError_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_WalletSaveError() { long long jresult ; long long result; @@ -1160,7 +1150,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_WalletSaveError_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrAddEarnedCoinHoursAdditionOverflow_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrAddEarnedCoinHoursAdditionOverflow() { long long jresult ; long long result; @@ -1170,7 +1160,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrAddEarnedCoinHoursAdditio } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrUint64MultOverflow_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrUint64MultOverflow() { long long jresult ; long long result; @@ -1180,7 +1170,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrUint64MultOverflow_get() } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrUint64AddOverflow_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrUint64AddOverflow() { long long jresult ; long long result; @@ -1190,7 +1180,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrUint64AddOverflow_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrUint32AddOverflow_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrUint32AddOverflow() { long long jresult ; long long result; @@ -1200,7 +1190,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrUint32AddOverflow_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrUint64OverflowsInt64_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrUint64OverflowsInt64() { long long jresult ; long long result; @@ -1210,7 +1200,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrUint64OverflowsInt64_get( } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInt64UnderflowsUint64_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInt64UnderflowsUint64() { long long jresult ; long long result; @@ -1220,7 +1210,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInt64UnderflowsUint64_get } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrPeerlistFull_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrPeerlistFull() { long long jresult ; long long result; @@ -1230,7 +1220,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrPeerlistFull_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidAddress_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidAddress() { long long jresult ; long long result; @@ -1240,7 +1230,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidAddress_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrNoLocalhost_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrNoLocalhost() { long long jresult ; long long result; @@ -1250,7 +1240,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrNoLocalhost_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrNotExternalIP_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrNotExternalIP() { long long jresult ; long long result; @@ -1260,7 +1250,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrNotExternalIP_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrPortTooLow_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrPortTooLow() { long long jresult ; long long result; @@ -1270,7 +1260,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrPortTooLow_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrBlacklistedAddress_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrBlacklistedAddress() { long long jresult ; long long result; @@ -1280,7 +1270,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrBlacklistedAddress_get() } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectReadFailed_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectReadFailed() { long long jresult ; long long result; @@ -1290,7 +1280,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectReadFailed_get( } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectWriteFailed_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectWriteFailed() { long long jresult ; long long result; @@ -1300,7 +1290,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectWriteFailed_get } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectSetReadDeadlineFailed_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectSetReadDeadlineFailed() { long long jresult ; long long result; @@ -1310,7 +1300,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectSetReadDeadline } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectInvalidMessageLength_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectInvalidMessageLength() { long long jresult ; long long result; @@ -1320,7 +1310,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectInvalidMessageL } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectMalformedMessage_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectMalformedMessage() { long long jresult ; long long result; @@ -1330,7 +1320,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectMalformedMessag } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectUnknownMessage_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectUnknownMessage() { long long jresult ; long long result; @@ -1340,7 +1330,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectUnknownMessage_ } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectUnexpectedError_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectUnexpectedError() { long long jresult ; long long result; @@ -1350,7 +1340,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectUnexpectedError } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrConnectionPoolClosed_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrConnectionPoolClosed() { long long jresult ; long long result; @@ -1360,7 +1350,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrConnectionPoolClosed_get( } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrWriteQueueFull_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrWriteQueueFull() { long long jresult ; long long result; @@ -1370,7 +1360,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrWriteQueueFull_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrNoReachableConnections_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrNoReachableConnections() { long long jresult ; long long result; @@ -1380,7 +1370,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrNoReachableConnections_ge } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMaxDefaultConnectionsReached_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrMaxDefaultConnectionsReached() { long long jresult ; long long result; @@ -1390,7 +1380,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMaxDefaultConnectionsReac } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectInvalidVersion_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectInvalidVersion() { long long jresult ; long long result; @@ -1400,7 +1390,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectInvalidVersion_ } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectIntroductionTimeout_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectIntroductionTimeout() { long long jresult ; long long result; @@ -1410,7 +1400,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectIntroductionTim } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectVersionSendFailed_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectVersionSendFailed() { long long jresult ; long long result; @@ -1420,7 +1410,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectVersionSendFail } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectIsBlacklisted_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectIsBlacklisted() { long long jresult ; long long result; @@ -1430,7 +1420,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectIsBlacklisted_g } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectSelf_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectSelf() { long long jresult ; long long result; @@ -1440,7 +1430,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectSelf_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectConnectedTwice_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectConnectedTwice() { long long jresult ; long long result; @@ -1450,7 +1440,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectConnectedTwice_ } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectIdle_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectIdle() { long long jresult ; long long result; @@ -1460,7 +1450,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectIdle_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectNoIntroduction_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectNoIntroduction() { long long jresult ; long long result; @@ -1470,7 +1460,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectNoIntroduction_ } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectIPLimitReached_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectIPLimitReached() { long long jresult ; long long result; @@ -1480,7 +1470,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectIPLimitReached_ } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectOtherError_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectOtherError() { long long jresult ; long long result; @@ -1490,7 +1480,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectOtherError_get( } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectMaxDefaultConnectionReached_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectMaxDefaultConnectionReached() { long long jresult ; long long result; @@ -1500,7 +1490,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectMaxDefaultConne } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectMaxOutgoingConnectionsReached_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectMaxOutgoingConnectionsReached() { long long jresult ; long long result; @@ -1510,7 +1500,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectMaxOutgoingConn } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ConnectionError_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ConnectionError() { long long jresult ; long long result; @@ -1520,7 +1510,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ConnectionError_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTxnNoFee_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrTxnNoFee() { long long jresult ; long long result; @@ -1530,7 +1520,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTxnNoFee_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTxnInsufficientFee_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrTxnInsufficientFee() { long long jresult ; long long result; @@ -1540,7 +1530,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTxnInsufficientFee_get() } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTxnInsufficientCoinHours_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrTxnInsufficientCoinHours() { long long jresult ; long long result; @@ -1550,7 +1540,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTxnInsufficientCoinHours_ } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrNegativeValue_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrNegativeValue() { long long jresult ; long long result; @@ -1560,7 +1550,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrNegativeValue_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTooManyDecimals_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrTooManyDecimals() { long long jresult ; long long result; @@ -1570,7 +1560,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTooManyDecimals_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTooLarge_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrTooLarge() { long long jresult ; long long result; @@ -1580,7 +1570,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTooLarge_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrEmptyDirectoryName_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrEmptyDirectoryName() { long long jresult ; long long result; @@ -1590,7 +1580,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrEmptyDirectoryName_get() } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDotDirectoryName_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDotDirectoryName() { long long jresult ; long long result; @@ -1600,7 +1590,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDotDirectoryName_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrHistoryDBCorrupted_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrHistoryDBCorrupted() { long long jresult ; long long result; @@ -1610,7 +1600,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrHistoryDBCorrupted_get() } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrUxOutNotExist_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrUxOutNotExist() { long long jresult ; long long result; @@ -1620,7 +1610,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrUxOutNotExist_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrNoHeadBlock_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrNoHeadBlock() { long long jresult ; long long result; @@ -1630,7 +1620,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrNoHeadBlock_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMissingSignature_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrMissingSignature() { long long jresult ; long long result; @@ -1640,7 +1630,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMissingSignature_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrUnspentNotExist_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrUnspentNotExist() { long long jresult ; long long result; @@ -1650,7 +1640,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrUnspentNotExist_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrVerifyStopped_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrVerifyStopped() { long long jresult ; long long result; @@ -1660,7 +1650,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrVerifyStopped_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrCreateBucketFailed_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrCreateBucketFailed() { long long jresult ; long long result; @@ -1670,7 +1660,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrCreateBucketFailed_get() } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrBucketNotExist_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrBucketNotExist() { long long jresult ; long long result; @@ -1680,7 +1670,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrBucketNotExist_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTxnViolatesHardConstraint_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrTxnViolatesHardConstraint() { long long jresult ; long long result; @@ -1690,7 +1680,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTxnViolatesHardConstraint } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTxnViolatesSoftConstraint_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrTxnViolatesSoftConstraint() { long long jresult ; long long result; @@ -1700,7 +1690,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTxnViolatesSoftConstraint } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTxnViolatesUserConstraint_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrTxnViolatesUserConstraint() { long long jresult ; long long result; @@ -1710,7 +1700,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTxnViolatesUserConstraint } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInsufficientBalance_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInsufficientBalance() { long long jresult ; long long result; @@ -1720,7 +1710,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInsufficientBalance_get() } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInsufficientHours_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInsufficientHours() { long long jresult ; long long result; @@ -1730,7 +1720,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInsufficientHours_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrZeroSpend_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrZeroSpend() { long long jresult ; long long result; @@ -1740,7 +1730,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrZeroSpend_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrSpendingUnconfirmed_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrSpendingUnconfirmed() { long long jresult ; long long result; @@ -1750,7 +1740,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrSpendingUnconfirmed_get() } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidEncryptedField_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidEncryptedField() { long long jresult ; long long result; @@ -1760,7 +1750,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidEncryptedField_get } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrWalletEncrypted_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrWalletEncrypted() { long long jresult ; long long result; @@ -1770,7 +1760,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrWalletEncrypted_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrWalletNotEncrypted_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrWalletNotEncrypted() { long long jresult ; long long result; @@ -1780,7 +1770,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrWalletNotEncrypted_get() } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMissingPassword_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrMissingPassword() { long long jresult ; long long result; @@ -1790,7 +1780,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMissingPassword_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMissingEncrypt_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrMissingEncrypt() { long long jresult ; long long result; @@ -1800,1446 +1790,357 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMissingEncrypt_get() { } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidPassword_get() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidPassword() { long long jresult ; long long result; result = (long long)(0x0B000009); jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMissingSeed_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B00000A); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMissingAuthenticated_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B00000B); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrWrongCryptoType_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B00000C); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrWalletNotExist_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B00000D); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrSeedUsed_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B00000E); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrWalletAPIDisabled_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B00000F); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrSeedAPIDisabled_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000010); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrWalletNameConflict_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000011); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidHoursSelectionMode_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000012); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidHoursSelectionType_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000013); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrUnknownAddress_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000014); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrUnknownUxOut_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000015); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrNoUnspents_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000016); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrNullChangeAddress_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000017); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMissingTo_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000018); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrZeroCoinsTo_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000019); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrNullAddressTo_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B00001A); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDuplicateTo_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B00001B); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMissingWalletID_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B00001C); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrIncludesNullAddress_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B00001D); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDuplicateAddresses_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B00001E); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrZeroToHoursAuto_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B00001F); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMissingModeAuto_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000020); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidHoursSelMode_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000021); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidModeManual_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000022); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidHoursSelType_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000023); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMissingShareFactor_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000024); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidShareFactor_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000025); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrShareFactorOutOfRange_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000026); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrWalletConstraint_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000027); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDuplicateUxOuts_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000028); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrUnknownWalletID_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000029); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrSHA256orMissingPassword_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B00002A); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrSHA256LenghtDataOverflowMaxUint32_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B00002B); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_PubKey_isEqual(void * jarg1, void * jarg2) { - int jresult ; - cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; - cipher_PubKey *arg2 = (cipher_PubKey *) 0 ; - cipher_PubKey temp1 ; - cipher_PubKey temp2 ; - int result; - - { - //Typemap in *Config Handle - arg1 = &temp1; - } - { - //Typemap in *Config Handle - arg2 = &temp2; - } - result = (int)cipher_PubKey_isEqual(arg1,arg2); - jresult = result; - { - //Typemap freearg *ConfigHandle - } - { - //Typemap freearg *ConfigHandle - } - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKey_assignFrom(void * jarg1, void * jarg2) { - cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; - void *arg2 = (void *) 0 ; - cipher_PubKey temp1 ; - - { - //Typemap in *Config Handle - arg1 = &temp1; - } - arg2 = (void *)jarg2; - cipher_PubKey_assignFrom(arg1,arg2); - { - //Typemap freearg *ConfigHandle - } -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKey_assignTo(void * jarg1, void * jarg2) { - cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; - void *arg2 = (void *) 0 ; - cipher_PubKey temp1 ; - - { - //Typemap in *Config Handle - arg1 = &temp1; - } - arg2 = (void *)jarg2; - cipher_PubKey_assignTo(arg1,arg2); - { - //Typemap freearg *ConfigHandle - } -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKey_data_set(void * jarg1, void * jarg2) { - cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; - GoUint8 *arg2 ; - cipher_PubKey temp1 ; - - { - //Typemap in *Config Handle - arg1 = &temp1; - } - arg2 = (GoUint8 *)jarg2; - { - size_t ii; - GoUint8 *b = (GoUint8 *) arg1->data; - for (ii = 0; ii < (size_t)33; ii++) b[ii] = *((GoUint8 *) arg2 + ii); - } - { - //Typemap freearg *ConfigHandle - } -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_PubKey_data_get(void * jarg1) { - void * jresult ; - cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; - cipher_PubKey temp1 ; - GoUint8 *result = 0 ; - - { - //Typemap in *Config Handle - arg1 = &temp1; - } - result = (GoUint8 *)(GoUint8 *) ((arg1)->data); - jresult = result; - { - //Typemap freearg *ConfigHandle - } - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_PubKey() { - void * jresult ; - cipher_PubKey *result = 0 ; - - result = (cipher_PubKey *)calloc(1, sizeof(cipher_PubKey)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_PubKey(void * jarg1) { - cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; - cipher_PubKey temp1 ; - - { - //Typemap in *Config Handle - arg1 = &temp1; - } - free((char *) arg1); - { - //Typemap freearg *ConfigHandle - } -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_SecKey_isEqual(void * jarg1, void * jarg2) { - int jresult ; - cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; - cipher_SecKey *arg2 = (cipher_SecKey *) 0 ; - int result; - - arg1 = (cipher_SecKey *)jarg1; - arg2 = (cipher_SecKey *)jarg2; - result = (int)cipher_SecKey_isEqual(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SecKey_assignFrom(void * jarg1, void * jarg2) { - cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (cipher_SecKey *)jarg1; - arg2 = (void *)jarg2; - cipher_SecKey_assignFrom(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SecKey_assignTo(void * jarg1, void * jarg2) { - cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (cipher_SecKey *)jarg1; - arg2 = (void *)jarg2; - cipher_SecKey_assignTo(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SecKey_data_set(void * jarg1, void * jarg2) { - cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; - GoUint8 *arg2 ; - - arg1 = (cipher_SecKey *)jarg1; - arg2 = (GoUint8 *)jarg2; - { - size_t ii; - GoUint8 *b = (GoUint8 *) arg1->data; - for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8 *) arg2 + ii); - } -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_SecKey_data_get(void * jarg1) { - void * jresult ; - cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; - GoUint8 *result = 0 ; - - arg1 = (cipher_SecKey *)jarg1; - result = (GoUint8 *)(GoUint8 *) ((arg1)->data); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_SecKey() { - void * jresult ; - cipher_SecKey *result = 0 ; - - result = (cipher_SecKey *)calloc(1, sizeof(cipher_SecKey)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_SecKey(void * jarg1) { - cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; - - arg1 = (cipher_SecKey *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_Ripemd160_isEqual(void * jarg1, void * jarg2) { - int jresult ; - cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; - cipher_Ripemd160 *arg2 = (cipher_Ripemd160 *) 0 ; - int result; - - arg1 = (cipher_Ripemd160 *)jarg1; - arg2 = (cipher_Ripemd160 *)jarg2; - result = (int)cipher_Ripemd160_isEqual(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Ripemd160_assignFrom(void * jarg1, void * jarg2) { - cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (cipher_Ripemd160 *)jarg1; - arg2 = (void *)jarg2; - cipher_Ripemd160_assignFrom(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Ripemd160_assignTo(void * jarg1, void * jarg2) { - cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (cipher_Ripemd160 *)jarg1; - arg2 = (void *)jarg2; - cipher_Ripemd160_assignTo(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Ripemd160_data_set(void * jarg1, void * jarg2) { - cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; - GoUint8 *arg2 ; - - arg1 = (cipher_Ripemd160 *)jarg1; - arg2 = (GoUint8 *)jarg2; - { - size_t ii; - GoUint8 *b = (GoUint8 *) arg1->data; - for (ii = 0; ii < (size_t)20; ii++) b[ii] = *((GoUint8 *) arg2 + ii); - } -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_Ripemd160_data_get(void * jarg1) { - void * jresult ; - cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; - GoUint8 *result = 0 ; - - arg1 = (cipher_Ripemd160 *)jarg1; - result = (GoUint8 *)(GoUint8 *) ((arg1)->data); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_Ripemd160() { - void * jresult ; - cipher_Ripemd160 *result = 0 ; - - result = (cipher_Ripemd160 *)calloc(1, sizeof(cipher_Ripemd160)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_Ripemd160(void * jarg1) { - cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; - - arg1 = (cipher_Ripemd160 *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_Sig_isEqual(void * jarg1, void * jarg2) { - int jresult ; - cipher_Sig *arg1 = (cipher_Sig *) 0 ; - cipher_Sig *arg2 = (cipher_Sig *) 0 ; - int result; - - arg1 = (cipher_Sig *)jarg1; - arg2 = (cipher_Sig *)jarg2; - result = (int)cipher_Sig_isEqual(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Sig_assignFrom(void * jarg1, void * jarg2) { - cipher_Sig *arg1 = (cipher_Sig *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (cipher_Sig *)jarg1; - arg2 = (void *)jarg2; - cipher_Sig_assignFrom(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Sig_assignTo(void * jarg1, void * jarg2) { - cipher_Sig *arg1 = (cipher_Sig *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (cipher_Sig *)jarg1; - arg2 = (void *)jarg2; - cipher_Sig_assignTo(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Sig_data_set(void * jarg1, void * jarg2) { - cipher_Sig *arg1 = (cipher_Sig *) 0 ; - GoUint8 *arg2 ; - - arg1 = (cipher_Sig *)jarg1; - arg2 = (GoUint8 *)jarg2; - { - size_t ii; - GoUint8 *b = (GoUint8 *) arg1->data; - for (ii = 0; ii < (size_t)65; ii++) b[ii] = *((GoUint8 *) arg2 + ii); - } -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_Sig_data_get(void * jarg1) { - void * jresult ; - cipher_Sig *arg1 = (cipher_Sig *) 0 ; - GoUint8 *result = 0 ; - - arg1 = (cipher_Sig *)jarg1; - result = (GoUint8 *)(GoUint8 *) ((arg1)->data); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_Sig() { - void * jresult ; - cipher_Sig *result = 0 ; - - result = (cipher_Sig *)calloc(1, sizeof(cipher_Sig)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_Sig(void * jarg1) { - cipher_Sig *arg1 = (cipher_Sig *) 0 ; - - arg1 = (cipher_Sig *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_SHA256_isEqual(void * jarg1, void * jarg2) { - int jresult ; - cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; - cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; - int result; - - arg1 = (cipher_SHA256 *)jarg1; - arg2 = (cipher_SHA256 *)jarg2; - result = (int)cipher_SHA256_isEqual(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SHA256_assignFrom(void * jarg1, void * jarg2) { - cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (cipher_SHA256 *)jarg1; - arg2 = (void *)jarg2; - cipher_SHA256_assignFrom(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SHA256_assignTo(void * jarg1, void * jarg2) { - cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (cipher_SHA256 *)jarg1; - arg2 = (void *)jarg2; - cipher_SHA256_assignTo(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SHA256_data_set(void * jarg1, void * jarg2) { - cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; - GoUint8 *arg2 ; - - arg1 = (cipher_SHA256 *)jarg1; - arg2 = (GoUint8 *)jarg2; - { - size_t ii; - GoUint8 *b = (GoUint8 *) arg1->data; - for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8 *) arg2 + ii); - } -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_SHA256_data_get(void * jarg1) { - void * jresult ; - cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; - GoUint8 *result = 0 ; - - arg1 = (cipher_SHA256 *)jarg1; - result = (GoUint8 *)(GoUint8 *) ((arg1)->data); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_SHA256() { - void * jresult ; - cipher_SHA256 *result = 0 ; - - result = (cipher_SHA256 *)calloc(1, sizeof(cipher_SHA256)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_SHA256(void * jarg1) { - cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; - - arg1 = (cipher_SHA256 *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_Checksum_isEqual(void * jarg1, void * jarg2) { - int jresult ; - cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; - cipher_Checksum *arg2 = (cipher_Checksum *) 0 ; - int result; - - arg1 = (cipher_Checksum *)jarg1; - arg2 = (cipher_Checksum *)jarg2; - result = (int)cipher_Checksum_isEqual(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Checksum_assignFrom(void * jarg1, void * jarg2) { - cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (cipher_Checksum *)jarg1; - arg2 = (void *)jarg2; - cipher_Checksum_assignFrom(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Checksum_assignTo(void * jarg1, void * jarg2) { - cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (cipher_Checksum *)jarg1; - arg2 = (void *)jarg2; - cipher_Checksum_assignTo(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Checksum_data_set(void * jarg1, void * jarg2) { - cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; - GoUint8 *arg2 ; - - arg1 = (cipher_Checksum *)jarg1; - arg2 = (GoUint8 *)jarg2; - { - size_t ii; - GoUint8 *b = (GoUint8 *) arg1->data; - for (ii = 0; ii < (size_t)4; ii++) b[ii] = *((GoUint8 *) arg2 + ii); - } -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_Checksum_data_get(void * jarg1) { - void * jresult ; - cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; - GoUint8 *result = 0 ; - - arg1 = (cipher_Checksum *)jarg1; - result = (GoUint8 *)(GoUint8 *) ((arg1)->data); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_Checksum() { - void * jresult ; - cipher_Checksum *result = 0 ; - - result = (cipher_Checksum *)calloc(1, sizeof(cipher_Checksum)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_Checksum(void * jarg1) { - cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; - - arg1 = (cipher_Checksum *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_SecKeys_getAt(void * jarg1, int jarg2) { - void * jresult ; - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - int arg2 ; - cipher_SecKey *result = 0 ; - - arg1 = (cipher_SecKeys *)jarg1; - arg2 = (int)jarg2; - result = (cipher_SecKey *)cipher_SecKeys_getAt(arg1,arg2); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_SecKeys_setAt(void * jarg1, int jarg2, void * jarg3) { - int jresult ; - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - int arg2 ; - cipher_SecKey *arg3 = (cipher_SecKey *) 0 ; - int result; - - arg1 = (cipher_SecKeys *)jarg1; - arg2 = (int)jarg2; - arg3 = (cipher_SecKey *)jarg3; - result = (int)cipher_SecKeys_setAt(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_SecKeys_isEqual(void * jarg1, void * jarg2) { - int jresult ; - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - cipher_SecKeys *arg2 = (cipher_SecKeys *) 0 ; - int result; - - arg1 = (cipher_SecKeys *)jarg1; - arg2 = (cipher_SecKeys *)jarg2; - result = (int)cipher_SecKeys_isEqual(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SecKeys_allocate(void * jarg1, int jarg2) { - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - int arg2 ; - - arg1 = (cipher_SecKeys *)jarg1; - arg2 = (int)jarg2; - cipher_SecKeys_allocate(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SecKeys_release(void * jarg1) { - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - - arg1 = (cipher_SecKeys *)jarg1; - cipher_SecKeys_release(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SecKeys_data_set(void * jarg1, void * jarg2) { - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - cipher_SecKey *arg2 = (cipher_SecKey *) 0 ; - - arg1 = (cipher_SecKeys *)jarg1; - arg2 = (cipher_SecKey *)jarg2; - if (arg1) (arg1)->data = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_SecKeys_data_get(void * jarg1) { - void * jresult ; - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - cipher_SecKey *result = 0 ; - - arg1 = (cipher_SecKeys *)jarg1; - result = (cipher_SecKey *) ((arg1)->data); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SecKeys_count_set(void * jarg1, int jarg2) { - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - int arg2 ; - - arg1 = (cipher_SecKeys *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->count = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_SecKeys_count_get(void * jarg1) { - int jresult ; - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - int result; - - arg1 = (cipher_SecKeys *)jarg1; - result = (int) ((arg1)->count); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_SecKeys() { - void * jresult ; - cipher_SecKeys *result = 0 ; - - result = (cipher_SecKeys *)calloc(1, sizeof(cipher_SecKeys)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_SecKeys(void * jarg1) { - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - - arg1 = (cipher_SecKeys *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_getAt(void * jarg1, int jarg2) { - void * jresult ; - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - int arg2 ; - cipher_PubKey *result = 0 ; - - arg1 = (cipher_PubKeys *)jarg1; - arg2 = (int)jarg2; - result = (cipher_PubKey *)cipher_PubKeys_getAt(arg1,arg2); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_setAt(void * jarg1, int jarg2, void * jarg3) { - int jresult ; - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - int arg2 ; - cipher_PubKey *arg3 = (cipher_PubKey *) 0 ; - cipher_PubKey temp3 ; - int result; - - arg1 = (cipher_PubKeys *)jarg1; - arg2 = (int)jarg2; - { - //Typemap in *Config Handle - arg3 = &temp3; - } - result = (int)cipher_PubKeys_setAt(arg1,arg2,arg3); - jresult = result; - { - //Typemap freearg *ConfigHandle - } - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_isEqual(void * jarg1, void * jarg2) { - int jresult ; - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - cipher_PubKeys *arg2 = (cipher_PubKeys *) 0 ; - int result; - - arg1 = (cipher_PubKeys *)jarg1; - arg2 = (cipher_PubKeys *)jarg2; - result = (int)cipher_PubKeys_isEqual(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_allocate(void * jarg1, int jarg2) { - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - int arg2 ; - - arg1 = (cipher_PubKeys *)jarg1; - arg2 = (int)jarg2; - cipher_PubKeys_allocate(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_release(void * jarg1) { - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - - arg1 = (cipher_PubKeys *)jarg1; - cipher_PubKeys_release(arg1); + return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_data_set(void * jarg1, void * jarg2) { - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - cipher_PubKey *arg2 = (cipher_PubKey *) 0 ; - cipher_PubKey temp2 ; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrMissingSeed() { + long long jresult ; + long long result; - arg1 = (cipher_PubKeys *)jarg1; - { - //Typemap in *Config Handle - arg2 = &temp2; - } - if (arg1) (arg1)->data = arg2; - { - //Typemap freearg *ConfigHandle - } + result = (long long)(0x0B00000A); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_data_get(void * jarg1) { - void * jresult ; - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - cipher_PubKey *result = 0 ; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrMissingAuthenticated() { + long long jresult ; + long long result; - arg1 = (cipher_PubKeys *)jarg1; - result = (cipher_PubKey *) ((arg1)->data); - jresult = (void *)result; + result = (long long)(0x0B00000B); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_count_set(void * jarg1, int jarg2) { - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - int arg2 ; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrWrongCryptoType() { + long long jresult ; + long long result; - arg1 = (cipher_PubKeys *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->count = arg2; + result = (long long)(0x0B00000C); + jresult = result; + return jresult; } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_count_get(void * jarg1) { - int jresult ; - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - int result; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrWalletNotExist() { + long long jresult ; + long long result; - arg1 = (cipher_PubKeys *)jarg1; - result = (int) ((arg1)->count); + result = (long long)(0x0B00000D); jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_PubKeys() { - void * jresult ; - cipher_PubKeys *result = 0 ; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrSeedUsed() { + long long jresult ; + long long result; - result = (cipher_PubKeys *)calloc(1, sizeof(cipher_PubKeys)); - jresult = (void *)result; + result = (long long)(0x0B00000E); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_PubKeys(void * jarg1) { - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrWalletAPIDisabled() { + long long jresult ; + long long result; - arg1 = (cipher_PubKeys *)jarg1; - free((char *) arg1); + result = (long long)(0x0B00000F); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_SHA256s_getAt(void * jarg1, int jarg2) { - void * jresult ; - cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; - int arg2 ; - cipher_SHA256 *result = 0 ; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrSeedAPIDisabled() { + long long jresult ; + long long result; - arg1 = (cipher_SHA256s *)jarg1; - arg2 = (int)jarg2; - result = (cipher_SHA256 *)cipher_SHA256s_getAt(arg1,arg2); - jresult = (void *)result; + result = (long long)(0x0B000010); + jresult = result; return jresult; } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_SHA256s_setAt(void * jarg1, int jarg2, void * jarg3) { - int jresult ; - cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; - int arg2 ; - cipher_SHA256 *arg3 = (cipher_SHA256 *) 0 ; - int result; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrWalletNameConflict() { + long long jresult ; + long long result; - arg1 = (cipher_SHA256s *)jarg1; - arg2 = (int)jarg2; - arg3 = (cipher_SHA256 *)jarg3; - result = (int)cipher_SHA256s_setAt(arg1,arg2,arg3); + result = (long long)(0x0B000011); jresult = result; return jresult; } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_SHA256s_isEqual(void * jarg1, void * jarg2) { - int jresult ; - cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; - cipher_SHA256s *arg2 = (cipher_SHA256s *) 0 ; - int result; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidHoursSelectionMode() { + long long jresult ; + long long result; - arg1 = (cipher_SHA256s *)jarg1; - arg2 = (cipher_SHA256s *)jarg2; - result = (int)cipher_SHA256s_isEqual(arg1,arg2); + result = (long long)(0x0B000012); jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SHA256s_allocate(void * jarg1, int jarg2) { - cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; - int arg2 ; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidHoursSelectionType() { + long long jresult ; + long long result; - arg1 = (cipher_SHA256s *)jarg1; - arg2 = (int)jarg2; - cipher_SHA256s_allocate(arg1,arg2); + result = (long long)(0x0B000013); + jresult = result; + return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SHA256s_release(void * jarg1) { - cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrUnknownAddress() { + long long jresult ; + long long result; - arg1 = (cipher_SHA256s *)jarg1; - cipher_SHA256s_release(arg1); + result = (long long)(0x0B000014); + jresult = result; + return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SHA256s_data_set(void * jarg1, void * jarg2) { - cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; - cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrUnknownUxOut() { + long long jresult ; + long long result; - arg1 = (cipher_SHA256s *)jarg1; - arg2 = (cipher_SHA256 *)jarg2; - if (arg1) (arg1)->data = arg2; + result = (long long)(0x0B000015); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_SHA256s_data_get(void * jarg1) { - void * jresult ; - cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; - cipher_SHA256 *result = 0 ; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrNoUnspents() { + long long jresult ; + long long result; - arg1 = (cipher_SHA256s *)jarg1; - result = (cipher_SHA256 *) ((arg1)->data); - jresult = (void *)result; + result = (long long)(0x0B000016); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SHA256s_count_set(void * jarg1, int jarg2) { - cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; - int arg2 ; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrNullChangeAddress() { + long long jresult ; + long long result; - arg1 = (cipher_SHA256s *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->count = arg2; + result = (long long)(0x0B000017); + jresult = result; + return jresult; } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_SHA256s_count_get(void * jarg1) { - int jresult ; - cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; - int result; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrMissingTo() { + long long jresult ; + long long result; - arg1 = (cipher_SHA256s *)jarg1; - result = (int) ((arg1)->count); + result = (long long)(0x0B000018); jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_SHA256s() { - void * jresult ; - cipher_SHA256s *result = 0 ; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrZeroCoinsTo() { + long long jresult ; + long long result; - result = (cipher_SHA256s *)calloc(1, sizeof(cipher_SHA256s)); - jresult = (void *)result; + result = (long long)(0x0B000019); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_SHA256s(void * jarg1) { - cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrNullAddressTo() { + long long jresult ; + long long result; - arg1 = (cipher_SHA256s *)jarg1; - free((char *) arg1); + result = (long long)(0x0B00001A); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_getAt(void * jarg1, int jarg2) { - void * jresult ; - coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; - int arg2 ; - coin__UxOut *result = 0 ; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDuplicateTo() { + long long jresult ; + long long result; - arg1 = (coin_UxOutArray *)jarg1; - arg2 = (int)jarg2; - result = (coin__UxOut *)coin_UxOutArray_getAt(arg1,arg2); - jresult = (void *)result; + result = (long long)(0x0B00001B); + jresult = result; return jresult; } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_setAt(void * jarg1, int jarg2, void * jarg3) { - int jresult ; - coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; - int arg2 ; - coin__UxOut *arg3 = (coin__UxOut *) 0 ; - int result; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrMissingWalletID() { + long long jresult ; + long long result; - arg1 = (coin_UxOutArray *)jarg1; - arg2 = (int)jarg2; - arg3 = (coin__UxOut *)jarg3; - result = (int)coin_UxOutArray_setAt(arg1,arg2,arg3); + result = (long long)(0x0B00001C); jresult = result; return jresult; } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_isEqual(void * jarg1, void * jarg2) { - int jresult ; - coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; - coin_UxOutArray *arg2 = (coin_UxOutArray *) 0 ; - int result; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrIncludesNullAddress() { + long long jresult ; + long long result; - arg1 = (coin_UxOutArray *)jarg1; - arg2 = (coin_UxOutArray *)jarg2; - result = (int)coin_UxOutArray_isEqual(arg1,arg2); + result = (long long)(0x0B00001D); jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_allocate(void * jarg1, int jarg2) { - coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; - int arg2 ; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDuplicateAddresses() { + long long jresult ; + long long result; - arg1 = (coin_UxOutArray *)jarg1; - arg2 = (int)jarg2; - coin_UxOutArray_allocate(arg1,arg2); + result = (long long)(0x0B00001E); + jresult = result; + return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_release(void * jarg1) { - coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrZeroToHoursAuto() { + long long jresult ; + long long result; - arg1 = (coin_UxOutArray *)jarg1; - coin_UxOutArray_release(arg1); + result = (long long)(0x0B00001F); + jresult = result; + return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_data_set(void * jarg1, void * jarg2) { - coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; - coin__UxOut *arg2 = (coin__UxOut *) 0 ; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrMissingModeAuto() { + long long jresult ; + long long result; - arg1 = (coin_UxOutArray *)jarg1; - arg2 = (coin__UxOut *)jarg2; - if (arg1) (arg1)->data = arg2; + result = (long long)(0x0B000020); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_data_get(void * jarg1) { - void * jresult ; - coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; - coin__UxOut *result = 0 ; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidHoursSelMode() { + long long jresult ; + long long result; - arg1 = (coin_UxOutArray *)jarg1; - result = (coin__UxOut *) ((arg1)->data); - jresult = (void *)result; + result = (long long)(0x0B000021); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_count_set(void * jarg1, int jarg2) { - coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; - int arg2 ; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidModeManual() { + long long jresult ; + long long result; - arg1 = (coin_UxOutArray *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->count = arg2; + result = (long long)(0x0B000022); + jresult = result; + return jresult; } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_count_get(void * jarg1) { - int jresult ; - coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; - int result; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidHoursSelType() { + long long jresult ; + long long result; - arg1 = (coin_UxOutArray *)jarg1; - result = (int) ((arg1)->count); + result = (long long)(0x0B000023); jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin_UxOutArray() { - void * jresult ; - coin_UxOutArray *result = 0 ; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrMissingShareFactor() { + long long jresult ; + long long result; - result = (coin_UxOutArray *)calloc(1, sizeof(coin_UxOutArray)); - jresult = (void *)result; + result = (long long)(0x0B000024); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin_UxOutArray(void * jarg1) { - coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidShareFactor() { + long long jresult ; + long long result; - arg1 = (coin_UxOutArray *)jarg1; - free((char *) arg1); + result = (long long)(0x0B000025); + jresult = result; + return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Addresses_data_set(void * jarg1, void * jarg2) { - cipher_Addresses *arg1 = (cipher_Addresses *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrShareFactorOutOfRange() { + long long jresult ; + long long result; - arg1 = (cipher_Addresses *)jarg1; - arg2 = (cipher__Address *)jarg2; - if (arg1) (arg1)->data = arg2; + result = (long long)(0x0B000026); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_Addresses_data_get(void * jarg1) { - void * jresult ; - cipher_Addresses *arg1 = (cipher_Addresses *) 0 ; - cipher__Address *result = 0 ; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrWalletConstraint() { + long long jresult ; + long long result; - arg1 = (cipher_Addresses *)jarg1; - result = (cipher__Address *) ((arg1)->data); - jresult = (void *)result; + result = (long long)(0x0B000027); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Addresses_count_set(void * jarg1, int jarg2) { - cipher_Addresses *arg1 = (cipher_Addresses *) 0 ; - int arg2 ; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDuplicateUxOuts() { + long long jresult ; + long long result; - arg1 = (cipher_Addresses *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->count = arg2; + result = (long long)(0x0B000028); + jresult = result; + return jresult; } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_Addresses_count_get(void * jarg1) { - int jresult ; - cipher_Addresses *arg1 = (cipher_Addresses *) 0 ; - int result; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrUnknownWalletID() { + long long jresult ; + long long result; - arg1 = (cipher_Addresses *)jarg1; - result = (int) ((arg1)->count); + result = (long long)(0x0B000029); jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_Addresses() { - void * jresult ; - cipher_Addresses *result = 0 ; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrSHA256orMissingPassword() { + long long jresult ; + long long result; - result = (cipher_Addresses *)calloc(1, sizeof(cipher_Addresses)); - jresult = (void *)result; + result = (long long)(0x0B00002A); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_Addresses(void * jarg1) { - cipher_Addresses *arg1 = (cipher_Addresses *) 0 ; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrSHA256LenghtDataOverflowMaxUint32() { + long long jresult ; + long long result; - arg1 = (cipher_Addresses *)jarg1; - free((char *) arg1); + result = (long long)(0x0B00002B); + jresult = result; + return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin__GoString__p_set(void * jarg1, char * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set__GoString__p(void * jarg1, char * jarg2) { _GoString_ *arg1 = (_GoString_ *) 0 ; char *arg2 = (char *) 0 ; @@ -3256,7 +2157,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin__GoString__p_set(void * jarg1, char * } -SWIGEXPORT char * SWIGSTDCALL CSharp_skycoin__GoString__p_get(void * jarg1) { +SWIGEXPORT char * SWIGSTDCALL CSharp_skycoin_get__GoString__p(void * jarg1) { char * jresult ; _GoString_ *arg1 = (_GoString_ *) 0 ; char *result = 0 ; @@ -3268,7 +2169,7 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_skycoin__GoString__p_get(void * jarg1) { } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin__GoString__n_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set__GoString__n(void * jarg1, void * jarg2) { _GoString_ *arg1 = (_GoString_ *) 0 ; ptrdiff_t arg2 ; ptrdiff_t *argp2 ; @@ -3284,7 +2185,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin__GoString__n_set(void * jarg1, void * } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin__GoString__n_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get__GoString__n(void * jarg1) { void * jresult ; _GoString_ *arg1 = (_GoString_ *) 0 ; ptrdiff_t result; @@ -3318,7 +2219,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete__GoString_(void * jarg1) { } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoInterface_t_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_GoInterface_t(void * jarg1, void * jarg2) { GoInterface *arg1 = (GoInterface *) 0 ; void *arg2 = (void *) 0 ; @@ -3328,7 +2229,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoInterface_t_set(void * jarg1, void } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_GoInterface_t_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_GoInterface_t(void * jarg1) { void * jresult ; GoInterface *arg1 = (GoInterface *) 0 ; void *result = 0 ; @@ -3340,7 +2241,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_GoInterface_t_get(void * jarg1) { } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoInterface_v_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_GoInterface_v(void * jarg1, void * jarg2) { GoInterface *arg1 = (GoInterface *) 0 ; void *arg2 = (void *) 0 ; @@ -3350,7 +2251,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoInterface_v_set(void * jarg1, void } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_GoInterface_v_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_GoInterface_v(void * jarg1) { void * jresult ; GoInterface *arg1 = (GoInterface *) 0 ; void *result = 0 ; @@ -3380,7 +2281,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_GoInterface(void * jarg1) { } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoSlice_data_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_GoSlice_data(void * jarg1, void * jarg2) { GoSlice *arg1 = (GoSlice *) 0 ; void *arg2 = (void *) 0 ; @@ -3390,7 +2291,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoSlice_data_set(void * jarg1, void * } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_GoSlice_data_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_GoSlice_data(void * jarg1) { void * jresult ; GoSlice *arg1 = (GoSlice *) 0 ; void *result = 0 ; @@ -3402,7 +2303,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_GoSlice_data_get(void * jarg1) { } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoSlice_len_set(void * jarg1, long long jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_GoSlice_len(void * jarg1, long long jarg2) { GoSlice *arg1 = (GoSlice *) 0 ; GoInt arg2 ; @@ -3412,7 +2313,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoSlice_len_set(void * jarg1, long lo } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_GoSlice_len_get(void * jarg1) { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_GoSlice_len(void * jarg1) { long long jresult ; GoSlice *arg1 = (GoSlice *) 0 ; GoInt result; @@ -3424,7 +2325,7 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_GoSlice_len_get(void * jarg1) { } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoSlice_cap_set(void * jarg1, long long jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_GoSlice_cap(void * jarg1, long long jarg2) { GoSlice *arg1 = (GoSlice *) 0 ; GoInt arg2 ; @@ -3434,7 +2335,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoSlice_cap_set(void * jarg1, long lo } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_GoSlice_cap_get(void * jarg1) { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_GoSlice_cap(void * jarg1) { long long jresult ; GoSlice *arg1 = (GoSlice *) 0 ; GoInt result; @@ -3464,7 +2365,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_GoSlice(void * jarg1) { } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock(void * jarg1, unsigned long long jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock(void * jarg1, unsigned long long jarg2, void * jarg3, void * jarg4, void * jarg5) { unsigned int jresult ; Block__Handle arg1 ; GoUint64 arg2 ; @@ -3472,8 +2373,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock(void * jarg Transactions__Handle arg4 ; FeeCalculator *arg5 = (FeeCalculator *) 0 ; Block__Handle *arg6 = (Block__Handle *) 0 ; + Handle temp6 ; GoUint32 result; + { + arg6 = &temp6; + } { SWIG_AsVal_long(jarg1, (long*)&arg1); } @@ -3483,39 +2388,45 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock(void * jarg SWIG_AsVal_long(jarg4, (long*)&arg4); } arg5 = (FeeCalculator *)jarg5; - arg6 = (Block__Handle *)jarg6; result = (GoUint32)SKY_coin_NewBlock(arg1,arg2,(GoUint8_ (*)[32])arg3,arg4,arg5,arg6); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SignedBlock_VerifySignature(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SignedBlock_VerifySignature(void * jarg1, cipher_PubKey* jarg2) { unsigned int jresult ; coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; GoUint32 result; arg1 = (coin__SignedBlock *)jarg1; - arg2 = (cipher__PubKey *)jarg2; + arg2 = (cipher_PubKey*)jarg2; result = (GoUint32)SKY_coin_SignedBlock_VerifySignature(arg1,(GoUint8_ (*)[33])arg2); jresult = result; + { + //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey + free(arg2); + } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewGenesisBlock(void * jarg1, unsigned long long jarg2, unsigned long long jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewGenesisBlock(void * jarg1, unsigned long long jarg2, unsigned long long jarg3) { unsigned int jresult ; cipher__Address *arg1 = (cipher__Address *) 0 ; GoUint64 arg2 ; GoUint64 arg3 ; Block__Handle *arg4 = (Block__Handle *) 0 ; + Handle temp4 ; GoUint32 result; + { + arg4 = &temp4; + } arg1 = (cipher__Address *)jarg1; arg2 = (GoUint64)jarg2; arg3 = (GoUint64)jarg3; - arg4 = (Block__Handle *)jarg4; result = (GoUint32)SKY_coin_NewGenesisBlock(arg1,arg2,arg3,arg4); jresult = result; return jresult; @@ -3634,19 +2545,22 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_String(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_GetTransaction(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_GetTransaction(void * jarg1, void * jarg2, void * jarg4) { unsigned int jresult ; Block__Handle arg1 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; Transaction__Handle *arg3 = (Transaction__Handle *) 0 ; GoUint8 *arg4 = (GoUint8 *) 0 ; + Handle temp3 ; GoUint32 result; + { + arg3 = &temp3; + } { SWIG_AsVal_long(jarg1, (long*)&arg1); } arg2 = (cipher__SHA256 *)jarg2; - arg3 = (Transaction__Handle *)jarg3; arg4 = (GoUint8 *)jarg4; result = (GoUint32)SKY_coin_Block_GetTransaction(arg1,(GoUint8_ (*)[32])arg2,arg3,arg4); jresult = result; @@ -3736,13 +2650,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Hash(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Size(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Size(void * jarg2) { unsigned int jresult ; BlockBody__Handle *arg1 = (BlockBody__Handle *) 0 ; GoInt *arg2 = (GoInt *) 0 ; + Handle temp1 ; GoUint32 result; - arg1 = (BlockBody__Handle *)jarg1; + { + arg1 = &temp1; + } arg2 = (GoInt *)jarg2; result = (GoUint32)SKY_coin_BlockBody_Size(arg1,arg2); jresult = result; @@ -3820,32 +2737,38 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetBlockObject(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetBlockBody(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetBlockBody(void * jarg1) { unsigned int jresult ; Block__Handle arg1 ; BlockBody__Handle *arg2 = (BlockBody__Handle *) 0 ; + Handle temp2 ; GoUint32 result; + { + arg2 = &temp2; + } { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (BlockBody__Handle *)jarg2; result = (GoUint32)SKY_coin_GetBlockBody(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewEmptyBlock(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewEmptyBlock(void * jarg1) { unsigned int jresult ; Transactions__Handle arg1 ; Block__Handle *arg2 = (Block__Handle *) 0 ; + Handle temp2 ; GoUint32 result; + { + arg2 = &temp2; + } { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (Block__Handle *)jarg2; result = (GoUint32)SKY_coin_NewEmptyBlock(arg1,arg2); jresult = result; return jresult; @@ -4467,7 +3390,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_WalletBalance( } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Spend(void * jarg1, void * jarg2, void * jarg3, unsigned long long jarg4, void * jarg5, void * jarg6) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Spend(void * jarg1, void * jarg2, void * jarg3, unsigned long long jarg4, void * jarg5) { unsigned int jresult ; Client__Handle arg1 ; GoString arg2 ; @@ -4478,8 +3401,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Spend(void * j GoString *argp2 ; GoString *argp3 ; GoString *argp5 ; + Handle temp6 ; GoUint32 result; + { + arg6 = &temp6; + } { SWIG_AsVal_long(jarg1, (long*)&arg1); } @@ -4502,28 +3429,30 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Spend(void * j return 0; } arg5 = *argp5; - arg6 = (SpendResult_Handle *)jarg6; result = (GoUint32)SKY_api_Client_Spend(arg1,arg2,arg3,arg4,arg5,arg6); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateTransaction(void * jarg1, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateTransaction(void * jarg1) { unsigned int jresult ; Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; CreateTransactionResponse__Handle *arg3 = (CreateTransactionResponse__Handle *) 0 ; Handle temp2 ; + Handle temp3 ; GoUint32 result; { arg2 = &temp2; } + { + arg3 = &temp3; + } { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg3 = (CreateTransactionResponse__Handle *)jarg3; result = (GoUint32)SKY_api_Client_CreateTransaction(arg1,arg2,arg3); jresult = result; return jresult; @@ -5279,14 +4208,18 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewWalletResponse(voi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreateTransactionResponse(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreateTransactionResponse(void * jarg1, void * jarg2) { unsigned int jresult ; Transaction__Handle arg1 ; GoSlice arg2 ; CreateTransactionResponse__Handle *arg3 = (CreateTransactionResponse__Handle *) 0 ; GoSlice *argp2 ; + Handle temp3 ; GoUint32 result; + { + arg3 = &temp3; + } { SWIG_AsVal_long(jarg1, (long*)&arg1); } @@ -5296,21 +4229,24 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreateTransactionR return 0; } arg2 = *argp2; - arg3 = (CreateTransactionResponse__Handle *)jarg3; result = (GoUint32)SKY_api_NewCreateTransactionResponse(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreatedTransaction(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreatedTransaction(void * jarg1, void * jarg2) { unsigned int jresult ; Transaction__Handle arg1 ; GoSlice arg2 ; CreatedTransaction__Handle *arg3 = (CreatedTransaction__Handle *) 0 ; GoSlice *argp2 ; + Handle temp3 ; GoUint32 result; + { + arg3 = &temp3; + } { SWIG_AsVal_long(jarg1, (long*)&arg1); } @@ -5320,53 +4256,61 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreatedTransaction return 0; } arg2 = *argp2; - arg3 = (CreatedTransaction__Handle *)jarg3; result = (GoUint32)SKY_api_NewCreatedTransaction(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_CreatedTransaction_ToTransaction(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_CreatedTransaction_ToTransaction(void * jarg1) { unsigned int jresult ; CreatedTransaction__Handle arg1 ; Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; + Handle temp2 ; GoUint32 result; + { + arg2 = &temp2; + } { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (Transaction__Handle *)jarg2; result = (GoUint32)SKY_api_CreatedTransaction_ToTransaction(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreatedTransactionOutput(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreatedTransactionOutput(void * jarg1, void * jarg2) { unsigned int jresult ; coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; CreatedTransactionOutput__Handle *arg3 = (CreatedTransactionOutput__Handle *) 0 ; + Handle temp3 ; GoUint32 result; + { + arg3 = &temp3; + } arg1 = (coin__TransactionOutput *)jarg1; arg2 = (cipher__SHA256 *)jarg2; - arg3 = (CreatedTransactionOutput__Handle *)jarg3; result = (GoUint32)SKY_api_NewCreatedTransactionOutput(arg1,(GoUint8_ (*)[32])arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreatedTransactionInput(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreatedTransactionInput(void * jarg1) { unsigned int jresult ; wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; CreatedTransactionInput__Handle *arg2 = (CreatedTransactionInput__Handle *) 0 ; + Handle temp2 ; GoUint32 result; + { + arg2 = &temp2; + } arg1 = (wallet__UxBalance *)jarg1; - arg2 = (CreatedTransactionInput__Handle *)jarg2; result = (GoUint32)SKY_api_NewCreatedTransactionInput(arg1,arg2); jresult = result; return jresult; @@ -5391,14 +4335,18 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewError(void * ja } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewWallet(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewWallet(void * jarg1, void * jarg2) { unsigned int jresult ; GoString arg1 ; Options__Handle arg2 ; Wallet__Handle *arg3 = (Wallet__Handle *) 0 ; GoString *argp1 ; + Handle temp3 ; GoUint32 result; + { + arg3 = &temp3; + } argp1 = (GoString *)jarg1; if (!argp1) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); @@ -5408,7 +4356,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewWallet(void * j { SWIG_AsVal_long(jarg2, (long*)&arg2); } - arg3 = (Wallet__Handle *)jarg3; result = (GoUint32)SKY_wallet_NewWallet(arg1,arg2,arg3); jresult = result; return jresult; @@ -5445,14 +4392,18 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Lock(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Unlock(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Unlock(void * jarg1, void * jarg2) { unsigned int jresult ; Wallet__Handle arg1 ; GoSlice arg2 ; Wallet__Handle *arg3 = (Wallet__Handle *) 0 ; GoSlice *argp2 ; + Handle temp3 ; GoUint32 result; + { + arg3 = &temp3; + } { SWIG_AsVal_long(jarg1, (long*)&arg1); } @@ -5462,27 +4413,29 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Unlock(void return 0; } arg2 = *argp2; - arg3 = (Wallet__Handle *)jarg3; result = (GoUint32)SKY_wallet_Wallet_Unlock(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Load(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Load(void * jarg1) { unsigned int jresult ; GoString arg1 ; Wallet__Handle *arg2 = (Wallet__Handle *) 0 ; GoString *argp1 ; + Handle temp2 ; GoUint32 result; + { + arg2 = &temp2; + } argp1 = (GoString *)jarg1; if (!argp1) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg1 = *argp1; - arg2 = (Wallet__Handle *)jarg2; result = (GoUint32)SKY_wallet_Load(arg1,arg2); jresult = result; return jresult; @@ -5799,14 +4752,18 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ChooseSpendsMaximi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CheckWalletBalance(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CheckWalletBalance(void * jarg1, void * jarg2) { unsigned int jresult ; WebRpcClient__Handle arg1 ; GoString arg2 ; BalanceResult_Handle *arg3 = (BalanceResult_Handle *) 0 ; GoString *argp2 ; + Handle temp3 ; GoUint32 result; + { + arg3 = &temp3; + } { SWIG_AsVal_long(jarg1, (long*)&arg1); } @@ -5816,21 +4773,24 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CheckWalletBalance(vo return 0; } arg2 = *argp2; - arg3 = (BalanceResult_Handle *)jarg3; result = (GoUint32)SKY_cli_CheckWalletBalance(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetBalanceOfAddresses(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetBalanceOfAddresses(void * jarg1, void * jarg2) { unsigned int jresult ; WebRpcClient__Handle arg1 ; GoSlice arg2 ; BalanceResult_Handle *arg3 = (BalanceResult_Handle *) 0 ; GoSlice *argp2 ; + Handle temp3 ; GoUint32 result; + { + arg3 = &temp3; + } { SWIG_AsVal_long(jarg1, (long*)&arg1); } @@ -5840,7 +4800,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetBalanceOfAddresses return 0; } arg2 = *argp2; - arg3 = (BalanceResult_Handle *)jarg3; result = (GoUint32)SKY_cli_GetBalanceOfAddresses(arg1,arg2,arg3); jresult = result; return jresult; @@ -6391,24 +5350,30 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Hex2Base58Str(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GenerateWallet(void * jarg1, void * jarg2, unsigned long long jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GenerateWallet(void * jarg1, unsigned long long jarg3) { unsigned int jresult ; GoString arg1 ; Options__Handle *arg2 = (Options__Handle *) 0 ; GoUint64 arg3 ; Wallet__Handle *arg4 = (Wallet__Handle *) 0 ; GoString *argp1 ; + Handle temp2 ; + Handle temp4 ; GoUint32 result; + { + arg2 = &temp2; + } + { + arg4 = &temp4; + } argp1 = (GoString *)jarg1; if (!argp1) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg1 = *argp1; - arg2 = (Options__Handle *)jarg2; arg3 = (GoUint64)jarg3; - arg4 = (Wallet__Handle *)jarg4; result = (GoUint32)SKY_cli_GenerateWallet(arg1,arg2,arg3,arg4); jresult = result; return jresult; @@ -6427,20 +5392,23 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_MakeAlphanumericSeed( } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_NewClient(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_NewClient(void * jarg1) { unsigned int jresult ; GoString arg1 ; WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; GoString *argp1 ; + Handle temp2 ; GoUint32 result; + { + arg2 = &temp2; + } argp1 = (GoString *)jarg1; if (!argp1) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg1 = *argp1; - arg2 = (WebRpcClient__Handle *)jarg2; result = (GoUint32)SKY_webrpc_NewClient(arg1,arg2); jresult = result; return jresult; @@ -6483,30 +5451,37 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_InjectTrans } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetStatus(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetStatus(void * jarg1) { unsigned int jresult ; WebRpcClient__Handle arg1 ; StatusResult_Handle *arg2 = (StatusResult_Handle *) 0 ; + Handle temp2 ; GoUint32 result; + { + arg2 = &temp2; + } { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (StatusResult_Handle *)jarg2; result = (GoUint32)SKY_webrpc_Client_GetStatus(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetTransactionByID(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetTransactionByID(void * jarg1, void * jarg2) { unsigned int jresult ; WebRpcClient__Handle arg1 ; GoString arg2 ; TransactionResult_Handle *arg3 = (TransactionResult_Handle *) 0 ; GoString *argp2 ; + Handle temp3 ; GoUint32 result; + { + arg3 = &temp3; + } { SWIG_AsVal_long(jarg1, (long*)&arg1); } @@ -6516,7 +5491,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetTransact return 0; } arg2 = *argp2; - arg3 = (TransactionResult_Handle *)jarg3; result = (GoUint32)SKY_webrpc_Client_GetTransactionByID(arg1,arg2,arg3); jresult = result; return jresult; @@ -6764,7 +5738,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GenerateAddressesInFi PasswordReader__Handle arg3 ; coin__UxArray *arg4 = (coin__UxArray *) 0 ; GoString *argp1 ; - PasswordReader__Handle *argp3 ; GoUint32 result; argp1 = (GoString *)jarg1; @@ -6774,12 +5747,9 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GenerateAddressesInFi } arg1 = *argp1; arg2 = (GoUint64)jarg2; - argp3 = (PasswordReader__Handle *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null PasswordReader__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg3, (long*)&arg3); } - arg3 = *argp3; arg4 = (coin__UxArray *)jarg4; result = (GoUint32)SKY_cli_GenerateAddressesInFile(arg1,arg2,arg3,arg4); jresult = result; @@ -6953,7 +5923,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_RandByte(long long } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewPubKey(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewPubKey(void * jarg1, cipher_PubKey* jarg2) { unsigned int jresult ; GoSlice arg1 ; cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; @@ -6966,14 +5936,18 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewPubKey(void * j return 0; } arg1 = *argp1; - arg2 = (cipher__PubKey *)jarg2; + arg2 = (cipher_PubKey*)jarg2; result = (GoUint32)SKY_cipher_NewPubKey(arg1,(GoUint8_ (*)[33])arg2); jresult = result; + { + //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey + free(arg2); + } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromHex(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromHex(void * jarg1, cipher_PubKey* jarg2) { unsigned int jresult ; GoString arg1 ; cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; @@ -6986,28 +5960,36 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromHex(void return 0; } arg1 = *argp1; - arg2 = (cipher__PubKey *)jarg2; + arg2 = (cipher_PubKey*)jarg2; result = (GoUint32)SKY_cipher_PubKeyFromHex(arg1,(GoUint8_ (*)[33])arg2); jresult = result; + { + //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey + free(arg2); + } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSecKey(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSecKey(void * jarg1, cipher_PubKey* jarg2) { unsigned int jresult ; cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; GoUint32 result; arg1 = (cipher__SecKey *)jarg1; - arg2 = (cipher__PubKey *)jarg2; + arg2 = (cipher_PubKey*)jarg2; result = (GoUint32)SKY_cipher_PubKeyFromSecKey((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[33])arg2); jresult = result; + { + //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey + free(arg2); + } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSig(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSig(void * jarg1, void * jarg2, cipher_PubKey* jarg3) { unsigned int jresult ; cipher__Sig *arg1 = (cipher__Sig *) 0 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; @@ -7016,49 +5998,65 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSig(void arg1 = (cipher__Sig *)jarg1; arg2 = (cipher__SHA256 *)jarg2; - arg3 = (cipher__PubKey *)jarg3; + arg3 = (cipher_PubKey*)jarg3; result = (GoUint32)SKY_cipher_PubKeyFromSig((GoUint8_ (*)[65])arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[33])arg3); jresult = result; + { + //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey + free(arg3); + } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_Verify(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_Verify(cipher_PubKey* jarg1) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; GoUint32 result; - arg1 = (cipher__PubKey *)jarg1; + arg1 = (cipher_PubKey*)jarg1; result = (GoUint32)SKY_cipher_PubKey_Verify((GoUint8_ (*)[33])arg1); jresult = result; + { + //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey + free(arg1); + } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_Hex(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_Hex(cipher_PubKey* jarg1, void * jarg2) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; - arg1 = (cipher__PubKey *)jarg1; + arg1 = (cipher_PubKey*)jarg1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_cipher_PubKey_Hex((GoUint8_ (*)[33])arg1,arg2); jresult = result; + { + //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey + free(arg1); + } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_ToAddressHash(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_ToAddressHash(cipher_PubKey* jarg1, void * jarg2) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; cipher__Ripemd160 *arg2 = (cipher__Ripemd160 *) 0 ; GoUint32 result; - arg1 = (cipher__PubKey *)jarg1; + arg1 = (cipher_PubKey*)jarg1; arg2 = (cipher__Ripemd160 *)jarg2; result = (GoUint32)SKY_cipher_PubKey_ToAddressHash((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[20])arg2); jresult = result; + { + //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey + free(arg1); + } return jresult; } @@ -7129,18 +6127,22 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKey_Hex(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_ECDH(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_ECDH(cipher_PubKey* jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; coin__UxArray *arg3 = (coin__UxArray *) 0 ; GoUint32 result; - arg1 = (cipher__PubKey *)jarg1; + arg1 = (cipher_PubKey*)jarg1; arg2 = (cipher__SecKey *)jarg2; arg3 = (coin__UxArray *)jarg3; result = (GoUint32)SKY_cipher_ECDH((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2,arg3); jresult = result; + { + //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey + free(arg1); + } return jresult; } @@ -7245,23 +6247,27 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignedHash(v } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignature(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignature(cipher_PubKey* jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; cipher__Sig *arg2 = (cipher__Sig *) 0 ; cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; GoUint32 result; - arg1 = (cipher__PubKey *)jarg1; + arg1 = (cipher_PubKey*)jarg1; arg2 = (cipher__Sig *)jarg2; arg3 = (cipher__SHA256 *)jarg3; result = (GoUint32)SKY_cipher_VerifySignature((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[65])arg2,(GoUint8_ (*)[32])arg3); jresult = result; + { + //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey + free(arg1); + } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPair(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPair(void * jarg1, cipher_PubKey* jarg2, void * jarg3) { unsigned int jresult ; GoSlice arg1 ; cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; @@ -7275,15 +6281,19 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterminis return 0; } arg1 = *argp1; - arg2 = (cipher__PubKey *)jarg2; + arg2 = (cipher_PubKey*)jarg2; arg3 = (cipher__SecKey *)jarg3; result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPair(arg1,(GoUint8_ (*)[33])arg2,(GoUint8_ (*)[32])arg3); jresult = result; + { + //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey + free(arg2); + } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DeterministicKeyPairIterator(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DeterministicKeyPairIterator(void * jarg1, void * jarg2, cipher_PubKey* jarg3, void * jarg4) { unsigned int jresult ; GoSlice arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -7299,10 +6309,14 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DeterministicKeyPa } arg1 = *argp1; arg2 = (coin__UxArray *)jarg2; - arg3 = (cipher__PubKey *)jarg3; + arg3 = (cipher_PubKey*)jarg3; arg4 = (cipher__SecKey *)jarg4; result = (GoUint32)SKY_cipher_DeterministicKeyPairIterator(arg1,arg2,(GoUint8_ (*)[33])arg3,(GoUint8_ (*)[32])arg4); jresult = result; + { + //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey + free(arg3); + } return jresult; } @@ -7379,58 +6393,71 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_TestSecKeyHash(voi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateKeyPair(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateKeyPair(cipher_PubKey* jarg1, void * jarg2) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; GoUint32 result; - arg1 = (cipher__PubKey *)jarg1; + arg1 = (cipher_PubKey*)jarg1; arg2 = (cipher__SecKey *)jarg2; result = (GoUint32)SKY_cipher_GenerateKeyPair((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2); jresult = result; + { + //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey + free(arg1); + } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Create(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Create() { unsigned int jresult ; Signature_Handle *arg1 = (Signature_Handle *) 0 ; + Handle temp1 ; GoUint32 result; - arg1 = (Signature_Handle *)jarg1; + { + arg1 = &temp1; + } result = (GoUint32)SKY_secp256k1go_Signature_Create(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_GetR(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_GetR(void * jarg1) { unsigned int jresult ; Signature_Handle arg1 ; Number_Handle *arg2 = (Number_Handle *) 0 ; + Handle temp2 ; GoUint32 result; + { + arg2 = &temp2; + } { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (Number_Handle *)jarg2; result = (GoUint32)SKY_secp256k1go_Signature_GetR(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_GetS(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_GetS(void * jarg1) { unsigned int jresult ; Signature_Handle arg1 ; Number_Handle *arg2 = (Number_Handle *) 0 ; + Handle temp2 ; GoUint32 result; + { + arg2 = &temp2; + } { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (Number_Handle *)jarg2; result = (GoUint32)SKY_secp256k1go_Signature_GetS(arg1,arg2); jresult = result; return jresult; @@ -7627,16 +6654,19 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_GetRPCAddress( } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_RPCClientFromApp(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_RPCClientFromApp(void * jarg1) { unsigned int jresult ; App__Handle arg1 ; WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; + Handle temp2 ; GoUint32 result; + { + arg2 = &temp2; + } { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (WebRpcClient__Handle *)jarg2; result = (GoUint32)SKY_cli_RPCClientFromApp(arg1,arg2); jresult = result; return jresult; @@ -8005,34 +7035,42 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateAddresses(vo } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_GetSkycoinWalletEntry(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_GetSkycoinWalletEntry(cipher_PubKey* jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; ReadableEntry__Handle *arg3 = (ReadableEntry__Handle *) 0 ; GoUint32 result; - arg1 = (cipher__PubKey *)jarg1; + arg1 = (cipher_PubKey*)jarg1; arg2 = (cipher__SecKey *)jarg2; arg3 = (ReadableEntry__Handle *)jarg3; result = (GoUint32)SKY_wallet_GetSkycoinWalletEntry((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2,arg3); jresult = result; + { + //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey + free(arg1); + } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_GetBitcoinWalletEntry(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_GetBitcoinWalletEntry(cipher_PubKey* jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; ReadableEntry__Handle *arg3 = (ReadableEntry__Handle *) 0 ; GoUint32 result; - arg1 = (cipher__PubKey *)jarg1; + arg1 = (cipher_PubKey*)jarg1; arg2 = (cipher__SecKey *)jarg2; arg3 = (ReadableEntry__Handle *)jarg3; result = (GoUint32)SKY_wallet_GetBitcoinWalletEntry((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2,arg3); jresult = result; + { + //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey + free(arg1); + } return jresult; } @@ -8488,16 +7526,20 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddressFromBytes(v } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddressFromPubKey(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddressFromPubKey(cipher_PubKey* jarg1, void * jarg2) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; cipher__Address *arg2 = (cipher__Address *) 0 ; GoUint32 result; - arg1 = (cipher__PubKey *)jarg1; + arg1 = (cipher_PubKey*)jarg1; arg2 = (cipher__Address *)jarg2; result = (GoUint32)SKY_cipher_AddressFromPubKey((GoUint8_ (*)[33])arg1,arg2); jresult = result; + { + //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey + free(arg1); + } return jresult; } @@ -8578,16 +7620,20 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_BitcoinByt } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Verify(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Verify(void * jarg1, cipher_PubKey* jarg2) { unsigned int jresult ; cipher__Address *arg1 = (cipher__Address *) 0 ; cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; GoUint32 result; arg1 = (cipher__Address *)jarg1; - arg2 = (cipher__PubKey *)jarg2; + arg2 = (cipher_PubKey*)jarg2; result = (GoUint32)SKY_cipher_Address_Verify(arg1,(GoUint8_ (*)[33])arg2); jresult = result; + { + //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey + free(arg2); + } return jresult; } @@ -8648,16 +7694,20 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_BitcoinChe } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddressFromPubkey(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddressFromPubkey(cipher_PubKey* jarg1, void * jarg2) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; - arg1 = (cipher__PubKey *)jarg1; + arg1 = (cipher_PubKey*)jarg1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_cipher_BitcoinAddressFromPubkey((GoUint8_ (*)[33])arg1,arg2); jresult = result; + { + //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey + free(arg1); + } return jresult; } @@ -9013,7 +8063,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWall } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletGetEntry(void * jarg1, unsigned int jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletGetEntry(void * jarg1, unsigned int jarg2, void * jarg3, cipher_PubKey* jarg4) { unsigned int jresult ; Wallet__Handle arg1 ; GoUint32 arg2 ; @@ -9026,9 +8076,13 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletGetEntry } arg2 = (GoUint32)jarg2; arg3 = (cipher__Address *)jarg3; - arg4 = (cipher__PubKey *)jarg4; + arg4 = (cipher_PubKey*)jarg4; result = (GoUint32)SKY_api_Handle_WalletGetEntry(arg1,arg2,arg3,(GoUint8_ (*)[33])arg4); jresult = result; + { + //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey + free(arg4); + } return jresult; } @@ -9187,12 +8241,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetBuildInfoDa } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_ripemd160_New(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_ripemd160_New() { unsigned int jresult ; Hash_Handle *arg1 = (Hash_Handle *) 0 ; + Handle temp1 ; GoUint32 result; - arg1 = (Hash_Handle *)jarg1; + { + arg1 = &temp1; + } result = (GoUint32)SKY_ripemd160_New(arg1); jresult = result; return jresult; @@ -9204,16 +8261,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_ripemd160_Write(void * ja Hash_Handle arg1 ; GoSlice arg2 ; GoInt *arg3 = (GoInt *) 0 ; - Hash_Handle *argp1 ; GoSlice *argp2 ; GoUint32 result; - argp1 = (Hash_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Hash_Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); @@ -9232,16 +8285,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_ripemd160_Sum(void * jarg Hash_Handle arg1 ; GoSlice arg2 ; coin__UxArray *arg3 = (coin__UxArray *) 0 ; - Hash_Handle *argp1 ; GoSlice *argp2 ; GoUint32 result; - argp1 = (Hash_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Hash_Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); @@ -9255,12 +8304,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_ripemd160_Sum(void * jarg } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_Create(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_Create() { unsigned int jresult ; Number_Handle *arg1 = (Number_Handle *) 0 ; + Handle temp1 ; GoUint32 result; - arg1 = (Number_Handle *)jarg1; + { + arg1 = &temp1; + } result = (GoUint32)SKY_secp256k1go_Number_Create(arg1); jresult = result; return jresult; @@ -9555,14 +8607,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Add(void * j } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewAddressUxOuts(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewAddressUxOuts(void * jarg1) { unsigned int jresult ; coin__UxArray *arg1 = (coin__UxArray *) 0 ; AddressUxOuts_Handle *arg2 = (AddressUxOuts_Handle *) 0 ; + Handle temp2 ; GoUint32 result; + { + arg2 = &temp2; + } arg1 = (coin__UxArray *)jarg1; - arg2 = (AddressUxOuts_Handle *)jarg2; result = (GoUint32)SKY_coin_NewAddressUxOuts(arg1,arg2); jresult = result; return jresult; @@ -9573,15 +8628,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Keys(v unsigned int jresult ; AddressUxOuts_Handle arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; - AddressUxOuts_Handle *argp1 ; GoUint32 result; - argp1 = (AddressUxOuts_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (coin__UxArray *)jarg2; result = (GoUint32)SKY_coin_AddressUxOuts_Keys(arg1,arg2); jresult = result; @@ -9593,15 +8644,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Flatte unsigned int jresult ; AddressUxOuts_Handle arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; - AddressUxOuts_Handle *argp1 ; GoUint32 result; - argp1 = (AddressUxOuts_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (coin__UxArray *)jarg2; result = (GoUint32)SKY_coin_AddressUxOuts_Flatten(arg1,arg2); jresult = result; @@ -9609,56 +8656,46 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Flatte } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Sub(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Sub(void * jarg1, void * jarg2) { unsigned int jresult ; AddressUxOuts_Handle arg1 ; AddressUxOuts_Handle arg2 ; AddressUxOuts_Handle *arg3 = (AddressUxOuts_Handle *) 0 ; - AddressUxOuts_Handle *argp1 ; - AddressUxOuts_Handle *argp2 ; + Handle temp3 ; GoUint32 result; - argp1 = (AddressUxOuts_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); - return 0; + { + arg3 = &temp3; } - arg1 = *argp1; - argp2 = (AddressUxOuts_Handle *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + { + SWIG_AsVal_long(jarg2, (long*)&arg2); } - arg2 = *argp2; - arg3 = (AddressUxOuts_Handle *)jarg3; result = (GoUint32)SKY_coin_AddressUxOuts_Sub(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Add(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Add(void * jarg1, void * jarg2) { unsigned int jresult ; AddressUxOuts_Handle arg1 ; AddressUxOuts_Handle arg2 ; AddressUxOuts_Handle *arg3 = (AddressUxOuts_Handle *) 0 ; - AddressUxOuts_Handle *argp1 ; - AddressUxOuts_Handle *argp2 ; + Handle temp3 ; GoUint32 result; - argp1 = (AddressUxOuts_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); - return 0; + { + arg3 = &temp3; } - arg1 = *argp1; - argp2 = (AddressUxOuts_Handle *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + { + SWIG_AsVal_long(jarg2, (long*)&arg2); } - arg2 = *argp2; - arg3 = (AddressUxOuts_Handle *)jarg3; result = (GoUint32)SKY_coin_AddressUxOuts_Add(arg1,arg2,arg3); jresult = result; return jresult; @@ -9670,15 +8707,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Get(vo AddressUxOuts_Handle arg1 ; cipher__Address *arg2 = (cipher__Address *) 0 ; coin__UxArray *arg3 = (coin__UxArray *) 0 ; - AddressUxOuts_Handle *argp1 ; GoUint32 result; - argp1 = (AddressUxOuts_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (cipher__Address *)jarg2; arg3 = (coin__UxArray *)jarg3; result = (GoUint32)SKY_coin_AddressUxOuts_Get(arg1,arg2,arg3); @@ -9692,15 +8725,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_HasKey AddressUxOuts_Handle arg1 ; cipher__Address *arg2 = (cipher__Address *) 0 ; GoUint8 *arg3 = (GoUint8 *) 0 ; - AddressUxOuts_Handle *argp1 ; GoUint32 result; - argp1 = (AddressUxOuts_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (cipher__Address *)jarg2; arg3 = (GoUint8 *)jarg3; result = (GoUint32)SKY_coin_AddressUxOuts_HasKey(arg1,arg2,arg3); @@ -9714,15 +8743,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_GetOut AddressUxOuts_Handle arg1 ; cipher__Address *arg2 = (cipher__Address *) 0 ; GoInt *arg3 = (GoInt *) 0 ; - AddressUxOuts_Handle *argp1 ; GoUint32 result; - argp1 = (AddressUxOuts_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (cipher__Address *)jarg2; arg3 = (GoInt *)jarg3; result = (GoUint32)SKY_coin_AddressUxOuts_GetOutputLength(arg1,arg2,arg3); @@ -9735,15 +8760,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Length unsigned int jresult ; AddressUxOuts_Handle arg1 ; GoInt *arg2 = (GoInt *) 0 ; - AddressUxOuts_Handle *argp1 ; GoUint32 result; - argp1 = (AddressUxOuts_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoInt *)jarg2; result = (GoUint32)SKY_coin_AddressUxOuts_Length(arg1,arg2); jresult = result; @@ -9756,15 +8777,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Set(vo AddressUxOuts_Handle arg1 ; cipher__Address *arg2 = (cipher__Address *) 0 ; coin__UxArray *arg3 = (coin__UxArray *) 0 ; - AddressUxOuts_Handle *argp1 ; GoUint32 result; - argp1 = (AddressUxOuts_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (cipher__Address *)jarg2; arg3 = (coin__UxArray *)jarg3; result = (GoUint32)SKY_coin_AddressUxOuts_Set(arg1,arg2,arg3); @@ -9833,7 +8850,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_ScryptChacha20pol } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateOptionsHandle(void * jarg1, void * jarg2, void * jarg3, unsigned char jarg4, void * jarg5, void * jarg6, unsigned long long jarg7, void * jarg8) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateOptionsHandle(void * jarg1, void * jarg2, void * jarg3, unsigned char jarg4, void * jarg5, void * jarg6, unsigned long long jarg7) { unsigned int jresult ; GoString arg1 ; GoString arg2 ; @@ -9848,8 +8865,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateOptionsHandl GoString *argp3 ; GoString *argp5 ; GoString *argp6 ; + Handle temp8 ; GoUint32 result; + { + arg8 = &temp8; + } argp1 = (GoString *)jarg1; if (!argp1) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); @@ -9882,7 +8903,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateOptionsHandl } arg6 = *argp6; arg7 = (GoUint64)jarg7; - arg8 = (Options__Handle *)jarg8; result = (GoUint32)SKY_wallet_CreateOptionsHandle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); jresult = result; return jresult; @@ -9918,7 +8938,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_AddPrivateKeyToFile(v PasswordReader__Handle arg3 ; GoString *argp1 ; GoString *argp2 ; - PasswordReader__Handle *argp3 ; GoUint32 result; argp1 = (GoString *)jarg1; @@ -9933,12 +8952,9 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_AddPrivateKeyToFile(v return 0; } arg2 = *argp2; - argp3 = (PasswordReader__Handle *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null PasswordReader__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg3, (long*)&arg3); } - arg3 = *argp3; result = (GoUint32)SKY_cli_AddPrivateKeyToFile(arg1,arg2,arg3); jresult = result; return jresult; @@ -10487,12 +9503,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_TransactionFee(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_LoadConfig(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_LoadConfig() { unsigned int jresult ; Config__Handle *arg1 = (Config__Handle *) 0 ; + Handle temp1 ; GoUint32 result; - arg1 = (Config__Handle *)jarg1; + { + arg1 = &temp1; + } result = (GoUint32)SKY_cli_LoadConfig(arg1); jresult = result; return jresult; @@ -10547,32 +9566,38 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_NewApp(void * jarg1, } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_RPCClientFromContext(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_RPCClientFromContext(void * jarg1) { unsigned int jresult ; Context__Handle arg1 ; WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; + Handle temp2 ; GoUint32 result; + { + arg2 = &temp2; + } { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (WebRpcClient__Handle *)jarg2; result = (GoUint32)SKY_cli_RPCClientFromContext(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_ConfigFromContext(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_ConfigFromContext(void * jarg1) { unsigned int jresult ; Context__Handle arg1 ; Config__Handle *arg2 = (Config__Handle *) 0 ; + Handle temp2 ; GoUint32 result; + { + arg2 = &temp2; + } { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (Config__Handle *)jarg2; result = (GoUint32)SKY_cli_ConfigFromContext(arg1,arg2); jresult = result; return jresult; @@ -10605,7 +9630,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_PasswordFromTerm_Pass } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromWallet(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromWallet(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5) { unsigned int jresult ; WebRpcClient__Handle arg1 ; GoString arg2 ; @@ -10616,9 +9641,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromWallet GoString *argp2 ; GoString *argp3 ; GoSlice *argp4 ; - PasswordReader__Handle *argp5 ; + Handle temp6 ; GoUint32 result; + { + arg6 = &temp6; + } { SWIG_AsVal_long(jarg1, (long*)&arg1); } @@ -10640,20 +9668,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromWallet return 0; } arg4 = *argp4; - argp5 = (PasswordReader__Handle *)jarg5; - if (!argp5) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null PasswordReader__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg5, (long*)&arg5); } - arg5 = *argp5; - arg6 = (Transaction__Handle *)jarg6; result = (GoUint32)SKY_cli_CreateRawTxFromWallet(arg1,arg2,arg3,arg4,arg5,arg6); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromAddress(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6, void * jarg7) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromAddress(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) { unsigned int jresult ; WebRpcClient__Handle arg1 ; GoString arg2 ; @@ -10666,9 +9690,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromAddres GoString *argp3 ; GoString *argp4 ; GoSlice *argp5 ; - PasswordReader__Handle *argp6 ; + Handle temp7 ; GoUint32 result; + { + arg7 = &temp7; + } { SWIG_AsVal_long(jarg1, (long*)&arg1); } @@ -10696,20 +9723,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromAddres return 0; } arg5 = *argp5; - argp6 = (PasswordReader__Handle *)jarg6; - if (!argp6) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null PasswordReader__Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg6, (long*)&arg6); } - arg6 = *argp6; - arg7 = (Transaction__Handle *)jarg7; result = (GoUint32)SKY_cli_CreateRawTxFromAddress(arg1,arg2,arg3,arg4,arg5,arg6,arg7); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTx(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6, void * jarg7) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTx(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) { unsigned int jresult ; WebRpcClient__Handle arg1 ; Wallet__Handle arg2 ; @@ -10722,8 +9745,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTx(void * ja GoString *argp4 ; GoSlice *argp5 ; GoSlice *argp6 ; + Handle temp7 ; GoUint32 result; + { + arg7 = &temp7; + } { SWIG_AsVal_long(jarg1, (long*)&arg1); } @@ -10754,14 +9781,13 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTx(void * ja return 0; } arg6 = *argp6; - arg7 = (Transaction__Handle *)jarg7; result = (GoUint32)SKY_cli_CreateRawTx(arg1,arg2,arg3,arg4,arg5,arg6,arg7); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_NewTransaction(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_NewTransaction(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; GoSlice arg1 ; GoSlice arg2 ; @@ -10770,8 +9796,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_NewTransaction(void * GoSlice *argp1 ; GoSlice *argp2 ; GoSlice *argp3 ; + Handle temp4 ; GoUint32 result; + { + arg4 = &temp4; + } argp1 = (GoSlice *)jarg1; if (!argp1) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); @@ -10790,7 +9820,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_NewTransaction(void * return 0; } arg3 = *argp3; - arg4 = (Transaction__Handle *)jarg4; result = (GoUint32)SKY_cli_NewTransaction(arg1,arg2,arg3,arg4); jresult = result; return jresult; @@ -10909,17 +9938,20 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetWalletOutputsFromF } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetWalletOutputs(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetWalletOutputs(void * jarg1, void * jarg3) { unsigned int jresult ; WebRpcClient__Handle arg1 ; Wallet__Handle *arg2 = (Wallet__Handle *) 0 ; ReadableOutputSet__Handle *arg3 = (ReadableOutputSet__Handle *) 0 ; + Handle temp2 ; GoUint32 result; + { + arg2 = &temp2; + } { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (Wallet__Handle *)jarg2; arg3 = (ReadableOutputSet__Handle *)jarg3; result = (GoUint32)SKY_cli_GetWalletOutputs(arg1,arg2,arg3); jresult = result; @@ -11469,28 +10501,34 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Null(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Create_Transaction(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Create_Transaction() { unsigned int jresult ; Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; + Handle temp1 ; GoUint32 result; - arg1 = (Transaction__Handle *)jarg1; + { + arg1 = &temp1; + } result = (GoUint32)SKY_coin_Create_Transaction(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Copy(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Copy(void * jarg1) { unsigned int jresult ; Transaction__Handle arg1 ; Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; + Handle temp2 ; GoUint32 result; + { + arg2 = &temp2; + } { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (Transaction__Handle *)jarg2; result = (GoUint32)SKY_coin_Transaction_Copy(arg1,arg2); jresult = result; return jresult; @@ -11967,20 +11005,23 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Serializ } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_TransactionDeserialize(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_TransactionDeserialize(void * jarg1) { unsigned int jresult ; GoSlice arg1 ; Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; GoSlice *argp1 ; + Handle temp2 ; GoUint32 result; + { + arg2 = &temp2; + } argp1 = (GoSlice *)jarg1; if (!argp1) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - arg2 = (Transaction__Handle *)jarg2; result = (GoUint32)SKY_coin_TransactionDeserialize(arg1,arg2); jresult = result; return jresult; @@ -12003,12 +11044,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_OutputHo } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Create_Transactions(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Create_Transactions() { unsigned int jresult ; Transactions__Handle *arg1 = (Transactions__Handle *) 0 ; + Handle temp1 ; GoUint32 result; - arg1 = (Transactions__Handle *)jarg1; + { + arg1 = &temp1; + } result = (GoUint32)SKY_coin_Create_Transactions(arg1); jresult = result; return jresult; @@ -12083,18 +11127,21 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Fees(vo } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_GetAt(void * jarg1, long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_GetAt(void * jarg1, long long jarg2) { unsigned int jresult ; Transactions__Handle arg1 ; GoInt arg2 ; Transaction__Handle *arg3 = (Transaction__Handle *) 0 ; + Handle temp3 ; GoUint32 result; + { + arg3 = &temp3; + } { SWIG_AsVal_long(jarg1, (long*)&arg1); } arg2 = (GoInt)jarg2; - arg3 = (Transaction__Handle *)jarg3; result = (GoUint32)SKY_coin_Transactions_GetAt(arg1,arg2,arg3); jresult = result; return jresult; @@ -12133,54 +11180,63 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Size(vo } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_TruncateBytesTo(void * jarg1, long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_TruncateBytesTo(void * jarg1, long long jarg2) { unsigned int jresult ; Transactions__Handle arg1 ; GoInt arg2 ; Transactions__Handle *arg3 = (Transactions__Handle *) 0 ; + Handle temp3 ; GoUint32 result; + { + arg3 = &temp3; + } { SWIG_AsVal_long(jarg1, (long*)&arg1); } arg2 = (GoInt)jarg2; - arg3 = (Transactions__Handle *)jarg3; result = (GoUint32)SKY_coin_Transactions_TruncateBytesTo(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortTransactions(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortTransactions(void * jarg1, void * jarg2) { unsigned int jresult ; Transactions__Handle arg1 ; FeeCalculator *arg2 = (FeeCalculator *) 0 ; Transactions__Handle *arg3 = (Transactions__Handle *) 0 ; + Handle temp3 ; GoUint32 result; + { + arg3 = &temp3; + } { SWIG_AsVal_long(jarg1, (long*)&arg1); } arg2 = (FeeCalculator *)jarg2; - arg3 = (Transactions__Handle *)jarg3; result = (GoUint32)SKY_coin_SortTransactions(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewSortableTransactions(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewSortableTransactions(void * jarg1, void * jarg2) { unsigned int jresult ; Transactions__Handle arg1 ; FeeCalculator *arg2 = (FeeCalculator *) 0 ; SortableTransactionResult_Handle *arg3 = (SortableTransactionResult_Handle *) 0 ; + Handle temp3 ; GoUint32 result; + { + arg3 = &temp3; + } { SWIG_AsVal_long(jarg1, (long*)&arg1); } arg2 = (FeeCalculator *)jarg2; - arg3 = (SortableTransactionResult_Handle *)jarg3; result = (GoUint32)SKY_coin_NewSortableTransactions(arg1,arg2,arg3); jresult = result; return jresult; @@ -12190,15 +11246,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewSortableTransacti SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortableTransactions_Sort(void * jarg1) { unsigned int jresult ; SortableTransactionResult_Handle arg1 ; - SortableTransactionResult_Handle *argp1 ; GoUint32 result; - argp1 = (SortableTransactionResult_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null SortableTransactionResult_Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; result = (GoUint32)SKY_coin_SortableTransactions_Sort(arg1); jresult = result; return jresult; @@ -12209,15 +11261,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortableTransactions unsigned int jresult ; SortableTransactionResult_Handle arg1 ; GoInt *arg2 = (GoInt *) 0 ; - SortableTransactionResult_Handle *argp1 ; GoUint32 result; - argp1 = (SortableTransactionResult_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null SortableTransactionResult_Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoInt *)jarg2; result = (GoUint32)SKY_coin_SortableTransactions_Len(arg1,arg2); jresult = result; @@ -12231,15 +11279,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortableTransactions GoInt arg2 ; GoInt arg3 ; GoUint8 *arg4 = (GoUint8 *) 0 ; - SortableTransactionResult_Handle *argp1 ; GoUint32 result; - argp1 = (SortableTransactionResult_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null SortableTransactionResult_Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoInt)jarg2; arg3 = (GoInt)jarg3; arg4 = (GoUint8 *)jarg4; @@ -12254,15 +11298,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortableTransactions SortableTransactionResult_Handle arg1 ; GoInt arg2 ; GoInt arg3 ; - SortableTransactionResult_Handle *argp1 ; GoUint32 result; - argp1 = (SortableTransactionResult_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null SortableTransactionResult_Handle", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoInt)jarg2; arg3 = (GoInt)jarg3; result = (GoUint32)SKY_coin_SortableTransactions_Swap(arg1,arg2,arg3); @@ -12315,7 +11355,7 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher__Address_isEqual(void * jarg1, } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher__Address_Version_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher__Address_Version(void * jarg1, void * jarg2) { cipher__Address *arg1 = (cipher__Address *) 0 ; GoUint8_ arg2 ; GoUint8_ *argp2 ; @@ -12331,7 +11371,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher__Address_Version_set(void * ja } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher__Address_Version_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_cipher__Address_Version(void * jarg1) { void * jresult ; cipher__Address *arg1 = (cipher__Address *) 0 ; GoUint8_ result; @@ -12347,7 +11387,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher__Address_Version_get(void * } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher__Address_Key_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher__Address_Key(void * jarg1, void * jarg2) { cipher__Address *arg1 = (cipher__Address *) 0 ; GoUint8_ *arg2 ; @@ -12361,7 +11401,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher__Address_Key_set(void * jarg1, } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher__Address_Key_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_cipher__Address_Key(void * jarg1) { void * jresult ; cipher__Address *arg1 = (cipher__Address *) 0 ; GoUint8_ *result = 0 ; @@ -12391,7 +11431,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher__Address(void * jarg1) } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_encoder__StructField_Name_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encoder__StructField_Name(void * jarg1, void * jarg2) { encoder__StructField *arg1 = (encoder__StructField *) 0 ; GoString_ arg2 ; GoString_ *argp2 ; @@ -12407,7 +11447,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_encoder__StructField_Name_set(void * } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_encoder__StructField_Name_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_encoder__StructField_Name(void * jarg1) { void * jresult ; encoder__StructField *arg1 = (encoder__StructField *) 0 ; GoString_ result; @@ -12423,7 +11463,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_encoder__StructField_Name_get(void } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_encoder__StructField_Kind_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encoder__StructField_Kind(void * jarg1, void * jarg2) { encoder__StructField *arg1 = (encoder__StructField *) 0 ; GoUint32_ arg2 ; GoUint32_ *argp2 ; @@ -12439,7 +11479,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_encoder__StructField_Kind_set(void * } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_encoder__StructField_Kind_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_encoder__StructField_Kind(void * jarg1) { void * jresult ; encoder__StructField *arg1 = (encoder__StructField *) 0 ; GoUint32_ result; @@ -12455,7 +11495,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_encoder__StructField_Kind_get(void } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_encoder__StructField_Type_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encoder__StructField_Type(void * jarg1, void * jarg2) { encoder__StructField *arg1 = (encoder__StructField *) 0 ; GoString_ arg2 ; GoString_ *argp2 ; @@ -12471,7 +11511,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_encoder__StructField_Type_set(void * } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_encoder__StructField_Type_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_encoder__StructField_Type(void * jarg1) { void * jresult ; encoder__StructField *arg1 = (encoder__StructField *) 0 ; GoString_ result; @@ -12487,7 +11527,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_encoder__StructField_Type_get(void } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_encoder__StructField_Tag_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encoder__StructField_Tag(void * jarg1, void * jarg2) { encoder__StructField *arg1 = (encoder__StructField *) 0 ; GoString_ arg2 ; GoString_ *argp2 ; @@ -12503,7 +11543,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_encoder__StructField_Tag_set(void * j } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_encoder__StructField_Tag_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_encoder__StructField_Tag(void * jarg1) { void * jresult ; encoder__StructField *arg1 = (encoder__StructField *) 0 ; GoString_ result; @@ -12537,7 +11577,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_encoder__StructField(void * ja } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_encrypt__ScryptChacha20poly1305_N_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_N(void * jarg1, void * jarg2) { encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; GoInt_ arg2 ; GoInt_ *argp2 ; @@ -12553,7 +11593,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_encrypt__ScryptChacha20poly1305_N_set } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_encrypt__ScryptChacha20poly1305_N_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_N(void * jarg1) { void * jresult ; encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; GoInt_ result; @@ -12569,7 +11609,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_encrypt__ScryptChacha20poly1305_N_g } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_encrypt__ScryptChacha20poly1305_R_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_R(void * jarg1, void * jarg2) { encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; GoInt_ arg2 ; GoInt_ *argp2 ; @@ -12585,7 +11625,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_encrypt__ScryptChacha20poly1305_R_set } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_encrypt__ScryptChacha20poly1305_R_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_R(void * jarg1) { void * jresult ; encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; GoInt_ result; @@ -12601,7 +11641,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_encrypt__ScryptChacha20poly1305_R_g } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_encrypt__ScryptChacha20poly1305_P_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_P(void * jarg1, void * jarg2) { encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; GoInt_ arg2 ; GoInt_ *argp2 ; @@ -12617,7 +11657,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_encrypt__ScryptChacha20poly1305_P_set } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_encrypt__ScryptChacha20poly1305_P_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_P(void * jarg1) { void * jresult ; encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; GoInt_ result; @@ -12633,7 +11673,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_encrypt__ScryptChacha20poly1305_P_g } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_encrypt__ScryptChacha20poly1305_KeyLen_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_KeyLen(void * jarg1, void * jarg2) { encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; GoInt_ arg2 ; GoInt_ *argp2 ; @@ -12649,7 +11689,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_encrypt__ScryptChacha20poly1305_KeyLe } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_encrypt__ScryptChacha20poly1305_KeyLen_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_KeyLen(void * jarg1) { void * jresult ; encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; GoInt_ result; @@ -12683,7 +11723,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_encrypt__ScryptChacha20poly130 } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_secp256k1go__Field_n_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_secp256k1go__Field_n(void * jarg1, void * jarg2) { secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; GoUint32_ *arg2 ; @@ -12697,7 +11737,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_secp256k1go__Field_n_set(void * jarg1 } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_secp256k1go__Field_n_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_secp256k1go__Field_n(void * jarg1) { void * jresult ; secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; GoUint32_ *result = 0 ; @@ -12727,7 +11767,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_secp256k1go__Field(void * jarg } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_secp256k1go__XY_X_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_secp256k1go__XY_X(void * jarg1, void * jarg2) { secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; @@ -12737,7 +11777,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_secp256k1go__XY_X_set(void * jarg1, v } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_secp256k1go__XY_X_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_secp256k1go__XY_X(void * jarg1) { void * jresult ; secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; secp256k1go__Field *result = 0 ; @@ -12749,7 +11789,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_secp256k1go__XY_X_get(void * jarg1) } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_secp256k1go__XY_Y_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_secp256k1go__XY_Y(void * jarg1, void * jarg2) { secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; @@ -12759,7 +11799,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_secp256k1go__XY_Y_set(void * jarg1, v } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_secp256k1go__XY_Y_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_secp256k1go__XY_Y(void * jarg1) { void * jresult ; secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; secp256k1go__Field *result = 0 ; @@ -12771,7 +11811,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_secp256k1go__XY_Y_get(void * jarg1) } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_secp256k1go__XY_Infinity_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_secp256k1go__XY_Infinity(void * jarg1, void * jarg2) { secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; BOOL arg2 ; BOOL *argp2 ; @@ -12787,7 +11827,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_secp256k1go__XY_Infinity_set(void * j } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_secp256k1go__XY_Infinity_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_secp256k1go__XY_Infinity(void * jarg1) { void * jresult ; secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; BOOL result; @@ -12821,7 +11861,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_secp256k1go__XY(void * jarg1) } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_secp256k1go__XYZ_X_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_secp256k1go__XYZ_X(void * jarg1, void * jarg2) { secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; @@ -12831,7 +11871,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_secp256k1go__XYZ_X_set(void * jarg1, } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_secp256k1go__XYZ_X_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_secp256k1go__XYZ_X(void * jarg1) { void * jresult ; secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; secp256k1go__Field *result = 0 ; @@ -12843,7 +11883,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_secp256k1go__XYZ_X_get(void * jarg1 } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_secp256k1go__XYZ_Y_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_secp256k1go__XYZ_Y(void * jarg1, void * jarg2) { secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; @@ -12853,7 +11893,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_secp256k1go__XYZ_Y_set(void * jarg1, } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_secp256k1go__XYZ_Y_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_secp256k1go__XYZ_Y(void * jarg1) { void * jresult ; secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; secp256k1go__Field *result = 0 ; @@ -12865,7 +11905,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_secp256k1go__XYZ_Y_get(void * jarg1 } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_secp256k1go__XYZ_Z_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_secp256k1go__XYZ_Z(void * jarg1, void * jarg2) { secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; @@ -12875,7 +11915,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_secp256k1go__XYZ_Z_set(void * jarg1, } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_secp256k1go__XYZ_Z_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_secp256k1go__XYZ_Z(void * jarg1) { void * jresult ; secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; secp256k1go__Field *result = 0 ; @@ -12887,7 +11927,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_secp256k1go__XYZ_Z_get(void * jarg1 } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_secp256k1go__XYZ_Infinity_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_secp256k1go__XYZ_Infinity(void * jarg1, void * jarg2) { secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; BOOL arg2 ; BOOL *argp2 ; @@ -12903,7 +11943,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_secp256k1go__XYZ_Infinity_set(void * } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_secp256k1go__XYZ_Infinity_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_secp256k1go__XYZ_Infinity(void * jarg1) { void * jresult ; secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; BOOL result; @@ -12937,7 +11977,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_secp256k1go__XYZ(void * jarg1) } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__SortableTransactions_Txns_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__SortableTransactions_Txns(void * jarg1, void * jarg2) { coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; coin__Transactions arg2 ; coin__Transactions *argp2 ; @@ -12953,7 +11993,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__SortableTransactions_Txns_set(v } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__SortableTransactions_Txns_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__SortableTransactions_Txns(void * jarg1) { void * jresult ; coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; coin__Transactions result; @@ -12969,7 +12009,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__SortableTransactions_Txns_get } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__SortableTransactions_Fees_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__SortableTransactions_Fees(void * jarg1, void * jarg2) { coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; GoSlice_ arg2 ; GoSlice_ *argp2 ; @@ -12985,7 +12025,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__SortableTransactions_Fees_set(v } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__SortableTransactions_Fees_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__SortableTransactions_Fees(void * jarg1) { void * jresult ; coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; GoSlice_ result; @@ -13001,7 +12041,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__SortableTransactions_Fees_get } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__SortableTransactions_Hashes_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__SortableTransactions_Hashes(void * jarg1, void * jarg2) { coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; GoSlice_ arg2 ; GoSlice_ *argp2 ; @@ -13017,7 +12057,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__SortableTransactions_Hashes_set } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__SortableTransactions_Hashes_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__SortableTransactions_Hashes(void * jarg1) { void * jresult ; coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; GoSlice_ result; @@ -13065,7 +12105,7 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__Transaction_isEqual(void * jarg1 } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__Transaction_Length_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__Transaction_Length(void * jarg1, void * jarg2) { coin__Transaction *arg1 = (coin__Transaction *) 0 ; GoInt32_ arg2 ; GoInt32_ *argp2 ; @@ -13081,7 +12121,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__Transaction_Length_set(void * j } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Transaction_Length_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__Transaction_Length(void * jarg1) { void * jresult ; coin__Transaction *arg1 = (coin__Transaction *) 0 ; GoInt32_ result; @@ -13097,7 +12137,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Transaction_Length_get(void * } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__Transaction_Type_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__Transaction_Type(void * jarg1, void * jarg2) { coin__Transaction *arg1 = (coin__Transaction *) 0 ; GoInt8_ arg2 ; GoInt8_ *argp2 ; @@ -13113,7 +12153,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__Transaction_Type_set(void * jar } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Transaction_Type_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__Transaction_Type(void * jarg1) { void * jresult ; coin__Transaction *arg1 = (coin__Transaction *) 0 ; GoInt8_ result; @@ -13129,7 +12169,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Transaction_Type_get(void * j } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__Transaction_InnerHash_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__Transaction_InnerHash(void * jarg1, void * jarg2) { coin__Transaction *arg1 = (coin__Transaction *) 0 ; GoUint8_ *arg2 ; @@ -13143,7 +12183,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__Transaction_InnerHash_set(void } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Transaction_InnerHash_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__Transaction_InnerHash(void * jarg1) { void * jresult ; coin__Transaction *arg1 = (coin__Transaction *) 0 ; GoUint8_ *result = 0 ; @@ -13155,7 +12195,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Transaction_InnerHash_get(voi } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__Transaction_Sigs_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__Transaction_Sigs(void * jarg1, void * jarg2) { coin__Transaction *arg1 = (coin__Transaction *) 0 ; GoSlice_ arg2 ; GoSlice_ *argp2 ; @@ -13171,7 +12211,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__Transaction_Sigs_set(void * jar } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Transaction_Sigs_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__Transaction_Sigs(void * jarg1) { void * jresult ; coin__Transaction *arg1 = (coin__Transaction *) 0 ; GoSlice_ result; @@ -13187,7 +12227,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Transaction_Sigs_get(void * j } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__Transaction_In_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__Transaction_In(void * jarg1, void * jarg2) { coin__Transaction *arg1 = (coin__Transaction *) 0 ; GoSlice_ arg2 ; GoSlice_ *argp2 ; @@ -13203,7 +12243,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__Transaction_In_set(void * jarg1 } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Transaction_In_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__Transaction_In(void * jarg1) { void * jresult ; coin__Transaction *arg1 = (coin__Transaction *) 0 ; GoSlice_ result; @@ -13219,7 +12259,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Transaction_In_get(void * jar } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__Transaction_Out_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__Transaction_Out(void * jarg1, void * jarg2) { coin__Transaction *arg1 = (coin__Transaction *) 0 ; GoSlice_ arg2 ; GoSlice_ *argp2 ; @@ -13235,7 +12275,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__Transaction_Out_set(void * jarg } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Transaction_Out_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__Transaction_Out(void * jarg1) { void * jresult ; coin__Transaction *arg1 = (coin__Transaction *) 0 ; GoSlice_ result; @@ -13283,7 +12323,7 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__TransactionOutput_isEqual(void * } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__TransactionOutput_Address_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__TransactionOutput_Address(void * jarg1, void * jarg2) { coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; cipher__Address *arg2 = (cipher__Address *) 0 ; @@ -13293,7 +12333,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__TransactionOutput_Address_set(v } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__TransactionOutput_Address_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__TransactionOutput_Address(void * jarg1) { void * jresult ; coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; cipher__Address *result = 0 ; @@ -13305,7 +12345,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__TransactionOutput_Address_get } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__TransactionOutput_Coins_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__TransactionOutput_Coins(void * jarg1, void * jarg2) { coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; GoUint64_ arg2 ; GoUint64_ *argp2 ; @@ -13321,7 +12361,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__TransactionOutput_Coins_set(voi } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__TransactionOutput_Coins_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__TransactionOutput_Coins(void * jarg1) { void * jresult ; coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; GoUint64_ result; @@ -13337,7 +12377,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__TransactionOutput_Coins_get(v } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__TransactionOutput_Hours_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__TransactionOutput_Hours(void * jarg1, void * jarg2) { coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; GoUint64_ arg2 ; GoUint64_ *argp2 ; @@ -13353,7 +12393,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__TransactionOutput_Hours_set(voi } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__TransactionOutput_Hours_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__TransactionOutput_Hours(void * jarg1) { void * jresult ; coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; GoUint64_ result; @@ -13401,7 +12441,7 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_isEqual(void * jarg1 } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_Version_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__BlockHeader_Version(void * jarg1, void * jarg2) { coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; GoUint32_ arg2 ; GoUint32_ *argp2 ; @@ -13417,7 +12457,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_Version_set(void * } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_Version_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__BlockHeader_Version(void * jarg1) { void * jresult ; coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; GoUint32_ result; @@ -13433,7 +12473,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_Version_get(void } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_Time_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__BlockHeader_Time(void * jarg1, void * jarg2) { coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; GoUint64_ arg2 ; GoUint64_ *argp2 ; @@ -13449,7 +12489,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_Time_set(void * jar } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_Time_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__BlockHeader_Time(void * jarg1) { void * jresult ; coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; GoUint64_ result; @@ -13465,7 +12505,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_Time_get(void * j } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_BkSeq_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__BlockHeader_BkSeq(void * jarg1, void * jarg2) { coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; GoUint64_ arg2 ; GoUint64_ *argp2 ; @@ -13481,7 +12521,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_BkSeq_set(void * ja } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_BkSeq_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__BlockHeader_BkSeq(void * jarg1) { void * jresult ; coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; GoUint64_ result; @@ -13497,7 +12537,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_BkSeq_get(void * } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_Fee_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__BlockHeader_Fee(void * jarg1, void * jarg2) { coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; GoUint64_ arg2 ; GoUint64_ *argp2 ; @@ -13513,7 +12553,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_Fee_set(void * jarg } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_Fee_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__BlockHeader_Fee(void * jarg1) { void * jresult ; coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; GoUint64_ result; @@ -13529,7 +12569,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_Fee_get(void * ja } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_PrevHash_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__BlockHeader_PrevHash(void * jarg1, void * jarg2) { coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; GoUint8_ *arg2 ; @@ -13543,7 +12583,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_PrevHash_set(void * } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_PrevHash_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__BlockHeader_PrevHash(void * jarg1) { void * jresult ; coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; GoUint8_ *result = 0 ; @@ -13555,7 +12595,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_PrevHash_get(void } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_BodyHash_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__BlockHeader_BodyHash(void * jarg1, void * jarg2) { coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; GoUint8_ *arg2 ; @@ -13569,7 +12609,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_BodyHash_set(void * } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_BodyHash_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__BlockHeader_BodyHash(void * jarg1) { void * jresult ; coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; GoUint8_ *result = 0 ; @@ -13581,7 +12621,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_BodyHash_get(void } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_UxHash_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__BlockHeader_UxHash(void * jarg1, void * jarg2) { coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; GoUint8_ *arg2 ; @@ -13595,7 +12635,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_UxHash_set(void * j } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_UxHash_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__BlockHeader_UxHash(void * jarg1) { void * jresult ; coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; GoUint8_ *result = 0 ; @@ -13639,7 +12679,7 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__BlockBody_isEqual(void * jarg1, } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockBody_Transactions_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__BlockBody_Transactions(void * jarg1, void * jarg2) { coin__BlockBody *arg1 = (coin__BlockBody *) 0 ; coin__Transactions arg2 ; coin__Transactions *argp2 ; @@ -13655,7 +12695,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockBody_Transactions_set(void } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__BlockBody_Transactions_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__BlockBody_Transactions(void * jarg1) { void * jresult ; coin__BlockBody *arg1 = (coin__BlockBody *) 0 ; coin__Transactions result; @@ -13689,7 +12729,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__BlockBody(void * jarg1) } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__Block_Head_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__Block_Head(void * jarg1, void * jarg2) { coin__Block *arg1 = (coin__Block *) 0 ; coin__BlockHeader *arg2 = (coin__BlockHeader *) 0 ; @@ -13699,7 +12739,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__Block_Head_set(void * jarg1, vo } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Block_Head_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__Block_Head(void * jarg1) { void * jresult ; coin__Block *arg1 = (coin__Block *) 0 ; coin__BlockHeader *result = 0 ; @@ -13711,7 +12751,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Block_Head_get(void * jarg1) } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__Block_Body_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__Block_Body(void * jarg1, void * jarg2) { coin__Block *arg1 = (coin__Block *) 0 ; coin__BlockBody *arg2 = (coin__BlockBody *) 0 ; @@ -13721,7 +12761,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__Block_Body_set(void * jarg1, vo } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Block_Body_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__Block_Body(void * jarg1) { void * jresult ; coin__Block *arg1 = (coin__Block *) 0 ; coin__BlockBody *result = 0 ; @@ -13751,7 +12791,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__Block(void * jarg1) { } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__SignedBlock__unnamed_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__SignedBlock__unnamed(void * jarg1, void * jarg2) { coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; coin__Block *arg2 = (coin__Block *) 0 ; @@ -13761,7 +12801,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__SignedBlock__unnamed_set(void * } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__SignedBlock__unnamed_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__SignedBlock__unnamed(void * jarg1) { void * jresult ; coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; coin__Block *result = 0 ; @@ -13773,7 +12813,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__SignedBlock__unnamed_get(void } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__SignedBlock_Sig_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__SignedBlock_Sig(void * jarg1, void * jarg2) { coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; GoUint8_ *arg2 ; @@ -13787,7 +12827,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__SignedBlock_Sig_set(void * jarg } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__SignedBlock_Sig_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__SignedBlock_Sig(void * jarg1) { void * jresult ; coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; GoUint8_ *result = 0 ; @@ -13817,7 +12857,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__SignedBlock(void * jarg1 } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__UxHead_Time_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__UxHead_Time(void * jarg1, void * jarg2) { coin__UxHead *arg1 = (coin__UxHead *) 0 ; GoUint64_ arg2 ; GoUint64_ *argp2 ; @@ -13833,7 +12873,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__UxHead_Time_set(void * jarg1, v } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__UxHead_Time_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__UxHead_Time(void * jarg1) { void * jresult ; coin__UxHead *arg1 = (coin__UxHead *) 0 ; GoUint64_ result; @@ -13849,7 +12889,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__UxHead_Time_get(void * jarg1) } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__UxHead_BkSeq_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__UxHead_BkSeq(void * jarg1, void * jarg2) { coin__UxHead *arg1 = (coin__UxHead *) 0 ; GoUint64_ arg2 ; GoUint64_ *argp2 ; @@ -13865,7 +12905,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__UxHead_BkSeq_set(void * jarg1, } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__UxHead_BkSeq_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__UxHead_BkSeq(void * jarg1) { void * jresult ; coin__UxHead *arg1 = (coin__UxHead *) 0 ; GoUint64_ result; @@ -13899,7 +12939,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__UxHead(void * jarg1) { } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__UxBody_SrcTransaction_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__UxBody_SrcTransaction(void * jarg1, void * jarg2) { coin__UxBody *arg1 = (coin__UxBody *) 0 ; GoUint8_ *arg2 ; @@ -13913,7 +12953,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__UxBody_SrcTransaction_set(void } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__UxBody_SrcTransaction_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__UxBody_SrcTransaction(void * jarg1) { void * jresult ; coin__UxBody *arg1 = (coin__UxBody *) 0 ; GoUint8_ *result = 0 ; @@ -13925,7 +12965,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__UxBody_SrcTransaction_get(voi } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__UxBody_Address_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__UxBody_Address(void * jarg1, void * jarg2) { coin__UxBody *arg1 = (coin__UxBody *) 0 ; cipher__Address *arg2 = (cipher__Address *) 0 ; @@ -13935,7 +12975,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__UxBody_Address_set(void * jarg1 } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__UxBody_Address_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__UxBody_Address(void * jarg1) { void * jresult ; coin__UxBody *arg1 = (coin__UxBody *) 0 ; cipher__Address *result = 0 ; @@ -13947,7 +12987,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__UxBody_Address_get(void * jar } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__UxBody_Coins_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__UxBody_Coins(void * jarg1, void * jarg2) { coin__UxBody *arg1 = (coin__UxBody *) 0 ; GoUint64_ arg2 ; GoUint64_ *argp2 ; @@ -13963,7 +13003,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__UxBody_Coins_set(void * jarg1, } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__UxBody_Coins_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__UxBody_Coins(void * jarg1) { void * jresult ; coin__UxBody *arg1 = (coin__UxBody *) 0 ; GoUint64_ result; @@ -13979,7 +13019,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__UxBody_Coins_get(void * jarg1 } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__UxBody_Hours_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__UxBody_Hours(void * jarg1, void * jarg2) { coin__UxBody *arg1 = (coin__UxBody *) 0 ; GoUint64_ arg2 ; GoUint64_ *argp2 ; @@ -13995,7 +13035,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__UxBody_Hours_set(void * jarg1, } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__UxBody_Hours_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__UxBody_Hours(void * jarg1) { void * jresult ; coin__UxBody *arg1 = (coin__UxBody *) 0 ; GoUint64_ result; @@ -14043,7 +13083,7 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__UxOut_isEqual(void * jarg1, void } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__UxOut_Head_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__UxOut_Head(void * jarg1, void * jarg2) { coin__UxOut *arg1 = (coin__UxOut *) 0 ; coin__UxHead *arg2 = (coin__UxHead *) 0 ; @@ -14053,7 +13093,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__UxOut_Head_set(void * jarg1, vo } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__UxOut_Head_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__UxOut_Head(void * jarg1) { void * jresult ; coin__UxOut *arg1 = (coin__UxOut *) 0 ; coin__UxHead *result = 0 ; @@ -14065,7 +13105,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__UxOut_Head_get(void * jarg1) } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__UxOut_Body_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__UxOut_Body(void * jarg1, void * jarg2) { coin__UxOut *arg1 = (coin__UxOut *) 0 ; coin__UxBody *arg2 = (coin__UxBody *) 0 ; @@ -14075,7 +13115,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__UxOut_Body_set(void * jarg1, vo } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__UxOut_Body_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__UxOut_Body(void * jarg1) { void * jresult ; coin__UxOut *arg1 = (coin__UxOut *) 0 ; coin__UxBody *result = 0 ; @@ -14105,7 +13145,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__UxOut(void * jarg1) { } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Balance_Coins_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__Balance_Coins(void * jarg1, void * jarg2) { wallet__Balance *arg1 = (wallet__Balance *) 0 ; GoUint64_ arg2 ; GoUint64_ *argp2 ; @@ -14121,7 +13161,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Balance_Coins_set(void * jarg } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__Balance_Coins_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__Balance_Coins(void * jarg1) { void * jresult ; wallet__Balance *arg1 = (wallet__Balance *) 0 ; GoUint64_ result; @@ -14137,7 +13177,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__Balance_Coins_get(void * ja } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Balance_Hours_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__Balance_Hours(void * jarg1, void * jarg2) { wallet__Balance *arg1 = (wallet__Balance *) 0 ; GoUint64_ arg2 ; GoUint64_ *argp2 ; @@ -14153,7 +13193,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Balance_Hours_set(void * jarg } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__Balance_Hours_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__Balance_Hours(void * jarg1) { void * jresult ; wallet__Balance *arg1 = (wallet__Balance *) 0 ; GoUint64_ result; @@ -14187,7 +13227,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__Balance(void * jarg1) } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__BalancePair_Confirmed_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__BalancePair_Confirmed(void * jarg1, void * jarg2) { wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; wallet__Balance *arg2 = (wallet__Balance *) 0 ; @@ -14197,7 +13237,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__BalancePair_Confirmed_set(voi } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__BalancePair_Confirmed_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__BalancePair_Confirmed(void * jarg1) { void * jresult ; wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; wallet__Balance *result = 0 ; @@ -14209,7 +13249,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__BalancePair_Confirmed_get(v } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__BalancePair_Predicted_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__BalancePair_Predicted(void * jarg1, void * jarg2) { wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; wallet__Balance *arg2 = (wallet__Balance *) 0 ; @@ -14219,7 +13259,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__BalancePair_Predicted_set(voi } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__BalancePair_Predicted_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__BalancePair_Predicted(void * jarg1) { void * jresult ; wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; wallet__Balance *result = 0 ; @@ -14249,7 +13289,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__BalancePair(void * jar } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Entry_Address_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__Entry_Address(void * jarg1, void * jarg2) { wallet__Entry *arg1 = (wallet__Entry *) 0 ; cipher__Address *arg2 = (cipher__Address *) 0 ; @@ -14259,7 +13299,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Entry_Address_set(void * jarg } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__Entry_Address_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__Entry_Address(void * jarg1) { void * jresult ; wallet__Entry *arg1 = (wallet__Entry *) 0 ; cipher__Address *result = 0 ; @@ -14271,7 +13311,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__Entry_Address_get(void * ja } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Entry_Public_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__Entry_Public(void * jarg1, void * jarg2) { wallet__Entry *arg1 = (wallet__Entry *) 0 ; GoUint8_ *arg2 ; @@ -14285,7 +13325,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Entry_Public_set(void * jarg1 } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__Entry_Public_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__Entry_Public(void * jarg1) { void * jresult ; wallet__Entry *arg1 = (wallet__Entry *) 0 ; GoUint8_ *result = 0 ; @@ -14297,7 +13337,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__Entry_Public_get(void * jar } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Entry_Secret_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__Entry_Secret(void * jarg1, void * jarg2) { wallet__Entry *arg1 = (wallet__Entry *) 0 ; GoUint8_ *arg2 ; @@ -14311,7 +13351,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Entry_Secret_set(void * jarg1 } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__Entry_Secret_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__Entry_Secret(void * jarg1) { void * jresult ; wallet__Entry *arg1 = (wallet__Entry *) 0 ; GoUint8_ *result = 0 ; @@ -14341,7 +13381,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__Entry(void * jarg1) { } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Note_TxID_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__Note_TxID(void * jarg1, void * jarg2) { wallet__Note *arg1 = (wallet__Note *) 0 ; GoString_ arg2 ; GoString_ *argp2 ; @@ -14357,7 +13397,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Note_TxID_set(void * jarg1, v } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__Note_TxID_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__Note_TxID(void * jarg1) { void * jresult ; wallet__Note *arg1 = (wallet__Note *) 0 ; GoString_ result; @@ -14373,7 +13413,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__Note_TxID_get(void * jarg1) } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Note_Value_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__Note_Value(void * jarg1, void * jarg2) { wallet__Note *arg1 = (wallet__Note *) 0 ; GoString_ arg2 ; GoString_ *argp2 ; @@ -14389,7 +13429,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Note_Value_set(void * jarg1, } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__Note_Value_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__Note_Value(void * jarg1) { void * jresult ; wallet__Note *arg1 = (wallet__Note *) 0 ; GoString_ result; @@ -14423,7 +13463,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__Note(void * jarg1) { } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__ReadableNote_TransactionID_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__ReadableNote_TransactionID(void * jarg1, void * jarg2) { wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; GoString_ arg2 ; GoString_ *argp2 ; @@ -14439,7 +13479,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__ReadableNote_TransactionID_se } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__ReadableNote_TransactionID_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__ReadableNote_TransactionID(void * jarg1) { void * jresult ; wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; GoString_ result; @@ -14455,7 +13495,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__ReadableNote_TransactionID_ } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__ReadableNote_ActualNote_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__ReadableNote_ActualNote(void * jarg1, void * jarg2) { wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; GoString_ arg2 ; GoString_ *argp2 ; @@ -14471,7 +13511,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__ReadableNote_ActualNote_set(v } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__ReadableNote_ActualNote_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__ReadableNote_ActualNote(void * jarg1) { void * jresult ; wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; GoString_ result; @@ -14505,7 +13545,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__ReadableNote(void * ja } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Wallet_Meta_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__Wallet_Meta(void * jarg1, void * jarg2) { wallet__Wallet *arg1 = (wallet__Wallet *) 0 ; GoMap_ arg2 ; GoMap_ *argp2 ; @@ -14521,7 +13561,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Wallet_Meta_set(void * jarg1, } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__Wallet_Meta_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__Wallet_Meta(void * jarg1) { void * jresult ; wallet__Wallet *arg1 = (wallet__Wallet *) 0 ; GoMap_ result; @@ -14537,7 +13577,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__Wallet_Meta_get(void * jarg } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Wallet_Entries_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__Wallet_Entries(void * jarg1, void * jarg2) { wallet__Wallet *arg1 = (wallet__Wallet *) 0 ; GoSlice_ arg2 ; GoSlice_ *argp2 ; @@ -14553,7 +13593,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Wallet_Entries_set(void * jar } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__Wallet_Entries_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__Wallet_Entries(void * jarg1) { void * jresult ; wallet__Wallet *arg1 = (wallet__Wallet *) 0 ; GoSlice_ result; @@ -14587,7 +13627,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__Wallet(void * jarg1) { } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_Hash_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__UxBalance_Hash(void * jarg1, void * jarg2) { wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; GoUint8_ *arg2 ; @@ -14601,7 +13641,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_Hash_set(void * jar } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_Hash_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__UxBalance_Hash(void * jarg1) { void * jresult ; wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; GoUint8_ *result = 0 ; @@ -14613,7 +13653,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_Hash_get(void * j } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_BkSeq_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__UxBalance_BkSeq(void * jarg1, void * jarg2) { wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; GoInt64_ arg2 ; GoInt64_ *argp2 ; @@ -14629,7 +13669,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_BkSeq_set(void * ja } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_BkSeq_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__UxBalance_BkSeq(void * jarg1) { void * jresult ; wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; GoInt64_ result; @@ -14645,7 +13685,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_BkSeq_get(void * } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_Address_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__UxBalance_Address(void * jarg1, void * jarg2) { wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; cipher__Address *arg2 = (cipher__Address *) 0 ; @@ -14655,7 +13695,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_Address_set(void * } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_Address_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__UxBalance_Address(void * jarg1) { void * jresult ; wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; cipher__Address *result = 0 ; @@ -14667,7 +13707,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_Address_get(void } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_Coins_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__UxBalance_Coins(void * jarg1, void * jarg2) { wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; GoInt64_ arg2 ; GoInt64_ *argp2 ; @@ -14683,7 +13723,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_Coins_set(void * ja } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_Coins_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__UxBalance_Coins(void * jarg1) { void * jresult ; wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; GoInt64_ result; @@ -14699,7 +13739,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_Coins_get(void * } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_Hours_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__UxBalance_Hours(void * jarg1, void * jarg2) { wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; GoInt64_ arg2 ; GoInt64_ *argp2 ; @@ -14715,7 +13755,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_Hours_set(void * ja } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_Hours_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__UxBalance_Hours(void * jarg1) { void * jresult ; wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; GoInt64_ result; @@ -14749,7 +13789,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__UxBalance(void * jarg1 } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_api__RichlistParams_N_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_api__RichlistParams_N(void * jarg1, void * jarg2) { api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; GoInt_ arg2 ; GoInt_ *argp2 ; @@ -14765,7 +13805,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_api__RichlistParams_N_set(void * jarg } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_api__RichlistParams_N_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_api__RichlistParams_N(void * jarg1) { void * jresult ; api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; GoInt_ result; @@ -14781,7 +13821,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_api__RichlistParams_N_get(void * ja } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_api__RichlistParams_IncludeDistribution_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_api__RichlistParams_IncludeDistribution(void * jarg1, void * jarg2) { api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; BOOL arg2 ; BOOL *argp2 ; @@ -14797,7 +13837,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_api__RichlistParams_IncludeDistributi } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_api__RichlistParams_IncludeDistribution_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_api__RichlistParams_IncludeDistribution(void * jarg1) { void * jresult ; api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; BOOL result; @@ -14831,7 +13871,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_api__RichlistParams(void * jar } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cli__SendAmount_Addr_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cli__SendAmount_Addr(void * jarg1, void * jarg2) { cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; GoString_ arg2 ; GoString_ *argp2 ; @@ -14847,7 +13887,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cli__SendAmount_Addr_set(void * jarg1 } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cli__SendAmount_Addr_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_cli__SendAmount_Addr(void * jarg1) { void * jresult ; cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; GoString_ result; @@ -14863,7 +13903,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cli__SendAmount_Addr_get(void * jar } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cli__SendAmount_Coins_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cli__SendAmount_Coins(void * jarg1, void * jarg2) { cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; GoInt64_ arg2 ; GoInt64_ *argp2 ; @@ -14879,7 +13919,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cli__SendAmount_Coins_set(void * jarg } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cli__SendAmount_Coins_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_cli__SendAmount_Coins(void * jarg1) { void * jresult ; cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; GoInt64_ result; @@ -14913,7 +13953,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cli__SendAmount(void * jarg1) } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_httphelper__Address__unnamed_set(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_httphelper__Address__unnamed(void * jarg1, void * jarg2) { httphelper__Address *arg1 = (httphelper__Address *) 0 ; cipher__Address *arg2 = (cipher__Address *) 0 ; @@ -14923,7 +13963,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_httphelper__Address__unnamed_set(void } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_httphelper__Address__unnamed_get(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_httphelper__Address__unnamed(void * jarg1) { void * jresult ; httphelper__Address *arg1 = (httphelper__Address *) 0 ; cipher__Address *result = 0 ; diff --git a/LibskycoinNet/skycoin/wallet__Balance.cs b/LibskycoinNet/skycoin/wallet__Balance.cs index a5b5d0bb..dddd4a37 100644 --- a/LibskycoinNet/skycoin/wallet__Balance.cs +++ b/LibskycoinNet/skycoin/wallet__Balance.cs @@ -42,11 +42,11 @@ public virtual void Dispose() { public SWIGTYPE_p_GoUint64_ Coins { set { - skycoinPINVOKE.wallet__Balance_Coins_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); + skycoinPINVOKE.set_wallet__Balance_Coins(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.wallet__Balance_Coins_get(swigCPtr), true); + SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.get_wallet__Balance_Coins(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -54,11 +54,11 @@ public SWIGTYPE_p_GoUint64_ Coins { public SWIGTYPE_p_GoUint64_ Hours { set { - skycoinPINVOKE.wallet__Balance_Hours_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); + skycoinPINVOKE.set_wallet__Balance_Hours(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.wallet__Balance_Hours_get(swigCPtr), true); + SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.get_wallet__Balance_Hours(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } diff --git a/LibskycoinNet/skycoin/wallet__BalancePair.cs b/LibskycoinNet/skycoin/wallet__BalancePair.cs index 98834e3d..2b9332f3 100644 --- a/LibskycoinNet/skycoin/wallet__BalancePair.cs +++ b/LibskycoinNet/skycoin/wallet__BalancePair.cs @@ -42,10 +42,10 @@ public virtual void Dispose() { public wallet__Balance Confirmed { set { - skycoinPINVOKE.wallet__BalancePair_Confirmed_set(swigCPtr, wallet__Balance.getCPtr(value)); + skycoinPINVOKE.set_wallet__BalancePair_Confirmed(swigCPtr, wallet__Balance.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.wallet__BalancePair_Confirmed_get(swigCPtr); + global::System.IntPtr cPtr = skycoinPINVOKE.get_wallet__BalancePair_Confirmed(swigCPtr); wallet__Balance ret = (cPtr == global::System.IntPtr.Zero) ? null : new wallet__Balance(cPtr, false); return ret; } @@ -53,10 +53,10 @@ public wallet__Balance Confirmed { public wallet__Balance Predicted { set { - skycoinPINVOKE.wallet__BalancePair_Predicted_set(swigCPtr, wallet__Balance.getCPtr(value)); + skycoinPINVOKE.set_wallet__BalancePair_Predicted(swigCPtr, wallet__Balance.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.wallet__BalancePair_Predicted_get(swigCPtr); + global::System.IntPtr cPtr = skycoinPINVOKE.get_wallet__BalancePair_Predicted(swigCPtr); wallet__Balance ret = (cPtr == global::System.IntPtr.Zero) ? null : new wallet__Balance(cPtr, false); return ret; } diff --git a/LibskycoinNet/skycoin/wallet__Entry.cs b/LibskycoinNet/skycoin/wallet__Entry.cs index 6431c810..23fff609 100644 --- a/LibskycoinNet/skycoin/wallet__Entry.cs +++ b/LibskycoinNet/skycoin/wallet__Entry.cs @@ -42,10 +42,10 @@ public virtual void Dispose() { public cipher__Address Address { set { - skycoinPINVOKE.wallet__Entry_Address_set(swigCPtr, cipher__Address.getCPtr(value)); + skycoinPINVOKE.set_wallet__Entry_Address(swigCPtr, cipher__Address.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.wallet__Entry_Address_get(swigCPtr); + global::System.IntPtr cPtr = skycoinPINVOKE.get_wallet__Entry_Address(swigCPtr); cipher__Address ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher__Address(cPtr, false); return ret; } @@ -53,10 +53,10 @@ public cipher__Address Address { public SWIGTYPE_p_GoUint8_ Public { set { - skycoinPINVOKE.wallet__Entry_Public_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); + skycoinPINVOKE.set_wallet__Entry_Public(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.wallet__Entry_Public_get(swigCPtr); + global::System.IntPtr cPtr = skycoinPINVOKE.get_wallet__Entry_Public(swigCPtr); SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); return ret; } @@ -64,10 +64,10 @@ public SWIGTYPE_p_GoUint8_ Public { public SWIGTYPE_p_GoUint8_ Secret { set { - skycoinPINVOKE.wallet__Entry_Secret_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); + skycoinPINVOKE.set_wallet__Entry_Secret(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.wallet__Entry_Secret_get(swigCPtr); + global::System.IntPtr cPtr = skycoinPINVOKE.get_wallet__Entry_Secret(swigCPtr); SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); return ret; } diff --git a/LibskycoinNet/skycoin/wallet__Note.cs b/LibskycoinNet/skycoin/wallet__Note.cs index 35f5853b..4f242d7b 100644 --- a/LibskycoinNet/skycoin/wallet__Note.cs +++ b/LibskycoinNet/skycoin/wallet__Note.cs @@ -42,11 +42,11 @@ public virtual void Dispose() { public SWIGTYPE_p_GoString_ TxID { set { - skycoinPINVOKE.wallet__Note_TxID_set(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); + skycoinPINVOKE.set_wallet__Note_TxID(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.wallet__Note_TxID_get(swigCPtr), true); + SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.get_wallet__Note_TxID(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -54,11 +54,11 @@ public SWIGTYPE_p_GoString_ TxID { public SWIGTYPE_p_GoString_ Value { set { - skycoinPINVOKE.wallet__Note_Value_set(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); + skycoinPINVOKE.set_wallet__Note_Value(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.wallet__Note_Value_get(swigCPtr), true); + SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.get_wallet__Note_Value(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } diff --git a/LibskycoinNet/skycoin/wallet__ReadableNote.cs b/LibskycoinNet/skycoin/wallet__ReadableNote.cs index 62e0d103..b6eefbec 100644 --- a/LibskycoinNet/skycoin/wallet__ReadableNote.cs +++ b/LibskycoinNet/skycoin/wallet__ReadableNote.cs @@ -42,11 +42,11 @@ public virtual void Dispose() { public SWIGTYPE_p_GoString_ TransactionID { set { - skycoinPINVOKE.wallet__ReadableNote_TransactionID_set(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); + skycoinPINVOKE.set_wallet__ReadableNote_TransactionID(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.wallet__ReadableNote_TransactionID_get(swigCPtr), true); + SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.get_wallet__ReadableNote_TransactionID(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -54,11 +54,11 @@ public SWIGTYPE_p_GoString_ TransactionID { public SWIGTYPE_p_GoString_ ActualNote { set { - skycoinPINVOKE.wallet__ReadableNote_ActualNote_set(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); + skycoinPINVOKE.set_wallet__ReadableNote_ActualNote(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.wallet__ReadableNote_ActualNote_get(swigCPtr), true); + SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.get_wallet__ReadableNote_ActualNote(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } diff --git a/LibskycoinNet/skycoin/wallet__UxBalance.cs b/LibskycoinNet/skycoin/wallet__UxBalance.cs index 478a94bc..4773e63e 100644 --- a/LibskycoinNet/skycoin/wallet__UxBalance.cs +++ b/LibskycoinNet/skycoin/wallet__UxBalance.cs @@ -42,10 +42,10 @@ public virtual void Dispose() { public SWIGTYPE_p_GoUint8_ Hash { set { - skycoinPINVOKE.wallet__UxBalance_Hash_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); + skycoinPINVOKE.set_wallet__UxBalance_Hash(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.wallet__UxBalance_Hash_get(swigCPtr); + global::System.IntPtr cPtr = skycoinPINVOKE.get_wallet__UxBalance_Hash(swigCPtr); SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); return ret; } @@ -53,11 +53,11 @@ public SWIGTYPE_p_GoUint8_ Hash { public SWIGTYPE_p_GoInt64_ BkSeq { set { - skycoinPINVOKE.wallet__UxBalance_BkSeq_set(swigCPtr, SWIGTYPE_p_GoInt64_.getCPtr(value)); + skycoinPINVOKE.set_wallet__UxBalance_BkSeq(swigCPtr, SWIGTYPE_p_GoInt64_.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_GoInt64_ ret = new SWIGTYPE_p_GoInt64_(skycoinPINVOKE.wallet__UxBalance_BkSeq_get(swigCPtr), true); + SWIGTYPE_p_GoInt64_ ret = new SWIGTYPE_p_GoInt64_(skycoinPINVOKE.get_wallet__UxBalance_BkSeq(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -65,10 +65,10 @@ public SWIGTYPE_p_GoInt64_ BkSeq { public cipher__Address Address { set { - skycoinPINVOKE.wallet__UxBalance_Address_set(swigCPtr, cipher__Address.getCPtr(value)); + skycoinPINVOKE.set_wallet__UxBalance_Address(swigCPtr, cipher__Address.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.wallet__UxBalance_Address_get(swigCPtr); + global::System.IntPtr cPtr = skycoinPINVOKE.get_wallet__UxBalance_Address(swigCPtr); cipher__Address ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher__Address(cPtr, false); return ret; } @@ -76,11 +76,11 @@ public cipher__Address Address { public SWIGTYPE_p_GoInt64_ Coins { set { - skycoinPINVOKE.wallet__UxBalance_Coins_set(swigCPtr, SWIGTYPE_p_GoInt64_.getCPtr(value)); + skycoinPINVOKE.set_wallet__UxBalance_Coins(swigCPtr, SWIGTYPE_p_GoInt64_.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_GoInt64_ ret = new SWIGTYPE_p_GoInt64_(skycoinPINVOKE.wallet__UxBalance_Coins_get(swigCPtr), true); + SWIGTYPE_p_GoInt64_ ret = new SWIGTYPE_p_GoInt64_(skycoinPINVOKE.get_wallet__UxBalance_Coins(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -88,11 +88,11 @@ public SWIGTYPE_p_GoInt64_ Coins { public SWIGTYPE_p_GoInt64_ Hours { set { - skycoinPINVOKE.wallet__UxBalance_Hours_set(swigCPtr, SWIGTYPE_p_GoInt64_.getCPtr(value)); + skycoinPINVOKE.set_wallet__UxBalance_Hours(swigCPtr, SWIGTYPE_p_GoInt64_.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_GoInt64_ ret = new SWIGTYPE_p_GoInt64_(skycoinPINVOKE.wallet__UxBalance_Hours_get(swigCPtr), true); + SWIGTYPE_p_GoInt64_ ret = new SWIGTYPE_p_GoInt64_(skycoinPINVOKE.get_wallet__UxBalance_Hours(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } diff --git a/LibskycoinNet/skycoin/wallet__Wallet.cs b/LibskycoinNet/skycoin/wallet__Wallet.cs index ba19252a..49694871 100644 --- a/LibskycoinNet/skycoin/wallet__Wallet.cs +++ b/LibskycoinNet/skycoin/wallet__Wallet.cs @@ -42,11 +42,11 @@ public virtual void Dispose() { public SWIGTYPE_p_GoMap_ Meta { set { - skycoinPINVOKE.wallet__Wallet_Meta_set(swigCPtr, SWIGTYPE_p_GoMap_.getCPtr(value)); + skycoinPINVOKE.set_wallet__Wallet_Meta(swigCPtr, SWIGTYPE_p_GoMap_.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_GoMap_ ret = new SWIGTYPE_p_GoMap_(skycoinPINVOKE.wallet__Wallet_Meta_get(swigCPtr), true); + SWIGTYPE_p_GoMap_ ret = new SWIGTYPE_p_GoMap_(skycoinPINVOKE.get_wallet__Wallet_Meta(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -54,11 +54,11 @@ public SWIGTYPE_p_GoMap_ Meta { public SWIGTYPE_p_GoSlice_ Entries { set { - skycoinPINVOKE.wallet__Wallet_Entries_set(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); + skycoinPINVOKE.set_wallet__Wallet_Entries(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.wallet__Wallet_Entries_get(swigCPtr), true); + SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.get_wallet__Wallet_Entries(swigCPtr), true); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } diff --git a/LibskycoinNet/skycoin1/GoInterface.cs b/LibskycoinNet/skycoin1/GoInterface.cs deleted file mode 100644 index 6c3f46c1..00000000 --- a/LibskycoinNet/skycoin1/GoInterface.cs +++ /dev/null @@ -1,70 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class GoInterface : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal GoInterface(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(GoInterface obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~GoInterface() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_GoInterface(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_void t { - set { - skycoinPINVOKE.GoInterface_t_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.GoInterface_t_get(swigCPtr); - SWIGTYPE_p_void ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_void v { - set { - skycoinPINVOKE.GoInterface_v_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.GoInterface_v_get(swigCPtr); - SWIGTYPE_p_void ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - } - - public GoInterface() : this(skycoinPINVOKE.new_GoInterface(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin1/GoSlice.cs b/LibskycoinNet/skycoin1/GoSlice.cs deleted file mode 100644 index d0d23f9d..00000000 --- a/LibskycoinNet/skycoin1/GoSlice.cs +++ /dev/null @@ -1,79 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class GoSlice : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal GoSlice(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(GoSlice obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~GoSlice() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_GoSlice(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_void data { - set { - skycoinPINVOKE.GoSlice_data_set(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.GoSlice_data_get(swigCPtr); - SWIGTYPE_p_void ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - } - - public long len { - set { - skycoinPINVOKE.GoSlice_len_set(swigCPtr, value); - } - get { - long ret = skycoinPINVOKE.GoSlice_len_get(swigCPtr); - return ret; - } - } - - public long cap { - set { - skycoinPINVOKE.GoSlice_cap_set(swigCPtr, value); - } - get { - long ret = skycoinPINVOKE.GoSlice_cap_get(swigCPtr); - return ret; - } - } - - public GoSlice() : this(skycoinPINVOKE.new_GoSlice(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_CreateTransactionResponse__Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_CreateTransactionResponse__Handle.cs deleted file mode 100644 index 6198a1da..00000000 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_CreateTransactionResponse__Handle.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_CreateTransactionResponse__Handle { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_CreateTransactionResponse__Handle(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_CreateTransactionResponse__Handle() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_CreateTransactionResponse__Handle obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_CreatedTransactionOutput__Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_CreatedTransactionOutput__Handle.cs deleted file mode 100644 index 592e5b9e..00000000 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_CreatedTransactionOutput__Handle.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_CreatedTransactionOutput__Handle { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_CreatedTransactionOutput__Handle(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_CreatedTransactionOutput__Handle() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_CreatedTransactionOutput__Handle obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_GoInt_.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_GoInt_.cs deleted file mode 100644 index 31a900ee..00000000 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_GoInt_.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_GoInt_ { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_GoInt_(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_GoInt_() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_GoInt_ obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_GoMap_.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_GoMap_.cs deleted file mode 100644 index cbdd11ac..00000000 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_GoMap_.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_GoMap_ { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_GoMap_(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_GoMap_() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_GoMap_ obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_GoSlice_.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_GoSlice_.cs deleted file mode 100644 index 1baac701..00000000 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_GoSlice_.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_GoSlice_ { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_GoSlice_(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_GoSlice_() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_GoSlice_ obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_GoString_.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_GoString_.cs deleted file mode 100644 index 465712d7..00000000 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_GoString_.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_GoString_ { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_GoString_(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_GoString_() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_GoString_ obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_GoUint32_.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_GoUint32_.cs deleted file mode 100644 index c74ace3b..00000000 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_GoUint32_.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_GoUint32_ { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_GoUint32_(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_GoUint32_() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_GoUint32_ obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_GoUint64_.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_GoUint64_.cs deleted file mode 100644 index 88aa2bb4..00000000 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_GoUint64_.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_GoUint64_ { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_GoUint64_(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_GoUint64_() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_GoUint64_ obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_GoUint8_.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_GoUint8_.cs deleted file mode 100644 index b51d2ca0..00000000 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_GoUint8_.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_GoUint8_ { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_GoUint8_(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_GoUint8_() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_GoUint8_ obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_Handle.cs deleted file mode 100644 index e23cb818..00000000 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_Handle.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_Handle { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_Handle(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_Handle() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Handle obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_PasswordReader__Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_PasswordReader__Handle.cs deleted file mode 100644 index 3dcc2483..00000000 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_PasswordReader__Handle.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_PasswordReader__Handle { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_PasswordReader__Handle(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_PasswordReader__Handle() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_PasswordReader__Handle obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_ReadableEntry__Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_ReadableEntry__Handle.cs deleted file mode 100644 index 719734ec..00000000 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_ReadableEntry__Handle.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_ReadableEntry__Handle { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_ReadableEntry__Handle(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_ReadableEntry__Handle() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_ReadableEntry__Handle obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_ReadableOutputSet__Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_ReadableOutputSet__Handle.cs deleted file mode 100644 index c01b8b93..00000000 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_ReadableOutputSet__Handle.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_ReadableOutputSet__Handle { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_ReadableOutputSet__Handle(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_ReadableOutputSet__Handle() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_ReadableOutputSet__Handle obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_ReadableWallet__Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_ReadableWallet__Handle.cs deleted file mode 100644 index c8417273..00000000 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_ReadableWallet__Handle.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_ReadableWallet__Handle { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_ReadableWallet__Handle(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_ReadableWallet__Handle() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_ReadableWallet__Handle obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_SortableTransactionResult_Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_SortableTransactionResult_Handle.cs deleted file mode 100644 index a2516295..00000000 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_SortableTransactionResult_Handle.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_SortableTransactionResult_Handle { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_SortableTransactionResult_Handle(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_SortableTransactionResult_Handle() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_SortableTransactionResult_Handle obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_TransactionResult_Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_TransactionResult_Handle.cs deleted file mode 100644 index 21b9b665..00000000 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_TransactionResult_Handle.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_TransactionResult_Handle { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_TransactionResult_Handle(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_TransactionResult_Handle() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_TransactionResult_Handle obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_Transactions__Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_Transactions__Handle.cs deleted file mode 100644 index 0f9acbd5..00000000 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_Transactions__Handle.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_Transactions__Handle { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_Transactions__Handle(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_Transactions__Handle() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Transactions__Handle obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_WalletNotes_Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_WalletNotes_Handle.cs deleted file mode 100644 index fd69d3dc..00000000 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_WalletNotes_Handle.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_WalletNotes_Handle { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_WalletNotes_Handle(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_WalletNotes_Handle() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_WalletNotes_Handle obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_WalletReadableNotes_Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_WalletReadableNotes_Handle.cs deleted file mode 100644 index c145f8d2..00000000 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_WalletReadableNotes_Handle.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_WalletReadableNotes_Handle { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_WalletReadableNotes_Handle(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_WalletReadableNotes_Handle() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_WalletReadableNotes_Handle obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_WalletResponse__Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_WalletResponse__Handle.cs deleted file mode 100644 index 800aa5c8..00000000 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_WalletResponse__Handle.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_WalletResponse__Handle { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_WalletResponse__Handle(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_WalletResponse__Handle() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_WalletResponse__Handle obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_WebRpcClient__Handle.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_WebRpcClient__Handle.cs deleted file mode 100644 index 5758eb23..00000000 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_WebRpcClient__Handle.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_WebRpcClient__Handle { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_WebRpcClient__Handle(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_WebRpcClient__Handle() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_WebRpcClient__Handle obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_a_32__GoUint8_.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_a_32__GoUint8_.cs deleted file mode 100644 index 31785e54..00000000 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_a_32__GoUint8_.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_a_32__GoUint8_ { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_a_32__GoUint8_(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_a_32__GoUint8_() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_a_32__GoUint8_ obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_a_33__GoUint8_.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_a_33__GoUint8_.cs deleted file mode 100644 index 53b8410d..00000000 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_a_33__GoUint8_.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_a_33__GoUint8_ { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_a_33__GoUint8_(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_a_33__GoUint8_() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_a_33__GoUint8_ obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_a_33__unsigned_char.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_a_33__unsigned_char.cs deleted file mode 100644 index 318d8697..00000000 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_a_33__unsigned_char.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_a_33__unsigned_char { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_a_33__unsigned_char(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_a_33__unsigned_char() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_a_33__unsigned_char obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_a_4__unsigned_char.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_a_4__unsigned_char.cs deleted file mode 100644 index 0adc706b..00000000 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_a_4__unsigned_char.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_a_4__unsigned_char { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_a_4__unsigned_char(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_a_4__unsigned_char() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_a_4__unsigned_char obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_a_65__GoUint8_.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_a_65__GoUint8_.cs deleted file mode 100644 index 478f2206..00000000 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_a_65__GoUint8_.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_a_65__GoUint8_ { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_a_65__GoUint8_(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_a_65__GoUint8_() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_a_65__GoUint8_ obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_a_65__unsigned_char.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_a_65__unsigned_char.cs deleted file mode 100644 index b8a8cc82..00000000 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_a_65__unsigned_char.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_a_65__unsigned_char { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_a_65__unsigned_char(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_a_65__unsigned_char() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_a_65__unsigned_char obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_int.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_int.cs deleted file mode 100644 index d8b0dd29..00000000 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_int.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_int { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_int(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_int() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_int obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_long_long.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_long_long.cs deleted file mode 100644 index e61be3d8..00000000 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_long_long.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_long_long { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_long_long(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_long_long() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_long_long obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_p_coin__Block.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_p_coin__Block.cs deleted file mode 100644 index 42843ea3..00000000 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_p_coin__Block.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_p_coin__Block { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_p_coin__Block(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_coin__Block() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_p_coin__Block obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_p_coin__Transaction.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_p_coin__Transaction.cs deleted file mode 100644 index 6b055d2d..00000000 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_p_coin__Transaction.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_p_coin__Transaction { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_p_coin__Transaction(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_p_coin__Transaction() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_p_coin__Transaction obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_ptrdiff_t.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_ptrdiff_t.cs deleted file mode 100644 index a2d0da0b..00000000 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_ptrdiff_t.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_ptrdiff_t { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_ptrdiff_t(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_ptrdiff_t() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_ptrdiff_t obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_unsigned_char.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_unsigned_char.cs deleted file mode 100644 index 01c281d9..00000000 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_unsigned_char.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_unsigned_char { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_unsigned_char(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_unsigned_char() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_unsigned_char obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_unsigned_long_long.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_unsigned_long_long.cs deleted file mode 100644 index 7a44b6fc..00000000 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_unsigned_long_long.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_unsigned_long_long { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_unsigned_long_long(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_unsigned_long_long() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_unsigned_long_long obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_unsigned_short.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_unsigned_short.cs deleted file mode 100644 index ff9b269b..00000000 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_unsigned_short.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_unsigned_short { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_unsigned_short(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_unsigned_short() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_unsigned_short obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin1/SWIGTYPE_p_void.cs b/LibskycoinNet/skycoin1/SWIGTYPE_p_void.cs deleted file mode 100644 index 6b683d89..00000000 --- a/LibskycoinNet/skycoin1/SWIGTYPE_p_void.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_void { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_void(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_void() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_void obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin1/_GoString_.cs b/LibskycoinNet/skycoin1/_GoString_.cs deleted file mode 100644 index 2c9d87b3..00000000 --- a/LibskycoinNet/skycoin1/_GoString_.cs +++ /dev/null @@ -1,70 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class _GoString_ : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal _GoString_(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(_GoString_ obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~_GoString_() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete__GoString_(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public string p { - set { - skycoinPINVOKE._GoString__p_set(swigCPtr, value); - } - get { - string ret = skycoinPINVOKE._GoString__p_get(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_ptrdiff_t n { - set { - skycoinPINVOKE._GoString__n_set(swigCPtr, SWIGTYPE_p_ptrdiff_t.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_ptrdiff_t ret = new SWIGTYPE_p_ptrdiff_t(skycoinPINVOKE._GoString__n_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public _GoString_() : this(skycoinPINVOKE.new__GoString_(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin1/api__RichlistParams.cs b/LibskycoinNet/skycoin1/api__RichlistParams.cs deleted file mode 100644 index 7d036643..00000000 --- a/LibskycoinNet/skycoin1/api__RichlistParams.cs +++ /dev/null @@ -1,72 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class api__RichlistParams : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal api__RichlistParams(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(api__RichlistParams obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~api__RichlistParams() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_api__RichlistParams(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_GoInt_ N { - set { - skycoinPINVOKE.api__RichlistParams_N_set(swigCPtr, SWIGTYPE_p_GoInt_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoInt_ ret = new SWIGTYPE_p_GoInt_(skycoinPINVOKE.api__RichlistParams_N_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_BOOL IncludeDistribution { - set { - skycoinPINVOKE.api__RichlistParams_IncludeDistribution_set(swigCPtr, SWIGTYPE_p_BOOL.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_BOOL ret = new SWIGTYPE_p_BOOL(skycoinPINVOKE.api__RichlistParams_IncludeDistribution_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public api__RichlistParams() : this(skycoinPINVOKE.new_api__RichlistParams(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin1/cipher_Addresses.cs b/LibskycoinNet/skycoin1/cipher_Addresses.cs deleted file mode 100644 index 16368271..00000000 --- a/LibskycoinNet/skycoin1/cipher_Addresses.cs +++ /dev/null @@ -1,69 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class cipher_Addresses : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal cipher_Addresses(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(cipher_Addresses obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~cipher_Addresses() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_cipher_Addresses(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public cipher__Address data { - set { - skycoinPINVOKE.cipher_Addresses_data_set(swigCPtr, cipher__Address.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.cipher_Addresses_data_get(swigCPtr); - cipher__Address ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher__Address(cPtr, false); - return ret; - } - } - - public int count { - set { - skycoinPINVOKE.cipher_Addresses_count_set(swigCPtr, value); - } - get { - int ret = skycoinPINVOKE.cipher_Addresses_count_get(swigCPtr); - return ret; - } - } - - public cipher_Addresses() : this(skycoinPINVOKE.new_cipher_Addresses(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin1/cipher_Checksum.cs b/LibskycoinNet/skycoin1/cipher_Checksum.cs deleted file mode 100644 index 35260312..00000000 --- a/LibskycoinNet/skycoin1/cipher_Checksum.cs +++ /dev/null @@ -1,72 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class cipher_Checksum : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal cipher_Checksum(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(cipher_Checksum obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~cipher_Checksum() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_cipher_Checksum(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public int isEqual(cipher_Checksum a) { - int ret = skycoinPINVOKE.cipher_Checksum_isEqual(swigCPtr, cipher_Checksum.getCPtr(a)); - return ret; - } - - public void assignFrom(SWIGTYPE_p_void data) { - skycoinPINVOKE.cipher_Checksum_assignFrom(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); - } - - public void assignTo(SWIGTYPE_p_void data) { - skycoinPINVOKE.cipher_Checksum_assignTo(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); - } - - public SWIGTYPE_p_unsigned_char data { - set { - skycoinPINVOKE.cipher_Checksum_data_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.cipher_Checksum_data_get(swigCPtr); - SWIGTYPE_p_unsigned_char ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); - return ret; - } - } - - public cipher_Checksum() : this(skycoinPINVOKE.new_cipher_Checksum(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin1/cipher_PubKey.cs b/LibskycoinNet/skycoin1/cipher_PubKey.cs deleted file mode 100644 index d640f7e8..00000000 --- a/LibskycoinNet/skycoin1/cipher_PubKey.cs +++ /dev/null @@ -1,72 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class cipher_PubKey : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal cipher_PubKey(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(cipher_PubKey obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~cipher_PubKey() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_cipher_PubKey(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public int isEqual(cipher_PubKey a) { - int ret = skycoinPINVOKE.cipher_PubKey_isEqual(swigCPtr, cipher_PubKey.getCPtr(a)); - return ret; - } - - public void assignFrom(SWIGTYPE_p_void data) { - skycoinPINVOKE.cipher_PubKey_assignFrom(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); - } - - public void assignTo(SWIGTYPE_p_void data) { - skycoinPINVOKE.cipher_PubKey_assignTo(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); - } - - public SWIGTYPE_p_unsigned_char data { - set { - skycoinPINVOKE.cipher_PubKey_data_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.cipher_PubKey_data_get(swigCPtr); - SWIGTYPE_p_unsigned_char ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); - return ret; - } - } - - public cipher_PubKey() : this(skycoinPINVOKE.new_cipher_PubKey(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin1/cipher_PubKeys.cs b/LibskycoinNet/skycoin1/cipher_PubKeys.cs deleted file mode 100644 index 0586b5c8..00000000 --- a/LibskycoinNet/skycoin1/cipher_PubKeys.cs +++ /dev/null @@ -1,93 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class cipher_PubKeys : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal cipher_PubKeys(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(cipher_PubKeys obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~cipher_PubKeys() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_cipher_PubKeys(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public cipher_PubKey getAt(int i) { - global::System.IntPtr cPtr = skycoinPINVOKE.cipher_PubKeys_getAt(swigCPtr, i); - cipher_PubKey ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher_PubKey(cPtr, false); - return ret; - } - - public int setAt(int i, cipher_PubKey pubkey) { - int ret = skycoinPINVOKE.cipher_PubKeys_setAt(swigCPtr, i, cipher_PubKey.getCPtr(pubkey)); - return ret; - } - - public int isEqual(cipher_PubKeys a) { - int ret = skycoinPINVOKE.cipher_PubKeys_isEqual(swigCPtr, cipher_PubKeys.getCPtr(a)); - return ret; - } - - public void allocate(int n) { - skycoinPINVOKE.cipher_PubKeys_allocate(swigCPtr, n); - } - - public void release() { - skycoinPINVOKE.cipher_PubKeys_release(swigCPtr); - } - - public cipher_PubKey data { - set { - skycoinPINVOKE.cipher_PubKeys_data_set(swigCPtr, cipher_PubKey.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.cipher_PubKeys_data_get(swigCPtr); - cipher_PubKey ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher_PubKey(cPtr, false); - return ret; - } - } - - public int count { - set { - skycoinPINVOKE.cipher_PubKeys_count_set(swigCPtr, value); - } - get { - int ret = skycoinPINVOKE.cipher_PubKeys_count_get(swigCPtr); - return ret; - } - } - - public cipher_PubKeys() : this(skycoinPINVOKE.new_cipher_PubKeys(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin1/cipher_Ripemd160.cs b/LibskycoinNet/skycoin1/cipher_Ripemd160.cs deleted file mode 100644 index 39490c60..00000000 --- a/LibskycoinNet/skycoin1/cipher_Ripemd160.cs +++ /dev/null @@ -1,72 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class cipher_Ripemd160 : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal cipher_Ripemd160(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(cipher_Ripemd160 obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~cipher_Ripemd160() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_cipher_Ripemd160(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public int isEqual(cipher_Ripemd160 a) { - int ret = skycoinPINVOKE.cipher_Ripemd160_isEqual(swigCPtr, cipher_Ripemd160.getCPtr(a)); - return ret; - } - - public void assignFrom(SWIGTYPE_p_void data) { - skycoinPINVOKE.cipher_Ripemd160_assignFrom(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); - } - - public void assignTo(SWIGTYPE_p_void data) { - skycoinPINVOKE.cipher_Ripemd160_assignTo(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); - } - - public SWIGTYPE_p_unsigned_char data { - set { - skycoinPINVOKE.cipher_Ripemd160_data_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.cipher_Ripemd160_data_get(swigCPtr); - SWIGTYPE_p_unsigned_char ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); - return ret; - } - } - - public cipher_Ripemd160() : this(skycoinPINVOKE.new_cipher_Ripemd160(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin1/cipher_SHA256.cs b/LibskycoinNet/skycoin1/cipher_SHA256.cs deleted file mode 100644 index 0bf1631b..00000000 --- a/LibskycoinNet/skycoin1/cipher_SHA256.cs +++ /dev/null @@ -1,72 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class cipher_SHA256 : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal cipher_SHA256(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(cipher_SHA256 obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~cipher_SHA256() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_cipher_SHA256(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public int isEqual(cipher_SHA256 a) { - int ret = skycoinPINVOKE.cipher_SHA256_isEqual(swigCPtr, cipher_SHA256.getCPtr(a)); - return ret; - } - - public void assignFrom(SWIGTYPE_p_void data) { - skycoinPINVOKE.cipher_SHA256_assignFrom(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); - } - - public void assignTo(SWIGTYPE_p_void data) { - skycoinPINVOKE.cipher_SHA256_assignTo(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); - } - - public SWIGTYPE_p_unsigned_char data { - set { - skycoinPINVOKE.cipher_SHA256_data_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.cipher_SHA256_data_get(swigCPtr); - SWIGTYPE_p_unsigned_char ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); - return ret; - } - } - - public cipher_SHA256() : this(skycoinPINVOKE.new_cipher_SHA256(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin1/cipher_SHA256s.cs b/LibskycoinNet/skycoin1/cipher_SHA256s.cs deleted file mode 100644 index a390b06c..00000000 --- a/LibskycoinNet/skycoin1/cipher_SHA256s.cs +++ /dev/null @@ -1,93 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class cipher_SHA256s : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal cipher_SHA256s(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(cipher_SHA256s obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~cipher_SHA256s() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_cipher_SHA256s(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public cipher_SHA256 getAt(int i) { - global::System.IntPtr cPtr = skycoinPINVOKE.cipher_SHA256s_getAt(swigCPtr, i); - cipher_SHA256 ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher_SHA256(cPtr, false); - return ret; - } - - public int setAt(int i, cipher_SHA256 hash) { - int ret = skycoinPINVOKE.cipher_SHA256s_setAt(swigCPtr, i, cipher_SHA256.getCPtr(hash)); - return ret; - } - - public int isEqual(cipher_SHA256s a) { - int ret = skycoinPINVOKE.cipher_SHA256s_isEqual(swigCPtr, cipher_SHA256s.getCPtr(a)); - return ret; - } - - public void allocate(int n) { - skycoinPINVOKE.cipher_SHA256s_allocate(swigCPtr, n); - } - - public void release() { - skycoinPINVOKE.cipher_SHA256s_release(swigCPtr); - } - - public cipher_SHA256 data { - set { - skycoinPINVOKE.cipher_SHA256s_data_set(swigCPtr, cipher_SHA256.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.cipher_SHA256s_data_get(swigCPtr); - cipher_SHA256 ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher_SHA256(cPtr, false); - return ret; - } - } - - public int count { - set { - skycoinPINVOKE.cipher_SHA256s_count_set(swigCPtr, value); - } - get { - int ret = skycoinPINVOKE.cipher_SHA256s_count_get(swigCPtr); - return ret; - } - } - - public cipher_SHA256s() : this(skycoinPINVOKE.new_cipher_SHA256s(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin1/cipher_SecKey.cs b/LibskycoinNet/skycoin1/cipher_SecKey.cs deleted file mode 100644 index 974a4fca..00000000 --- a/LibskycoinNet/skycoin1/cipher_SecKey.cs +++ /dev/null @@ -1,72 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class cipher_SecKey : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal cipher_SecKey(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(cipher_SecKey obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~cipher_SecKey() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_cipher_SecKey(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public int isEqual(cipher_SecKey a) { - int ret = skycoinPINVOKE.cipher_SecKey_isEqual(swigCPtr, cipher_SecKey.getCPtr(a)); - return ret; - } - - public void assignFrom(SWIGTYPE_p_void data) { - skycoinPINVOKE.cipher_SecKey_assignFrom(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); - } - - public void assignTo(SWIGTYPE_p_void data) { - skycoinPINVOKE.cipher_SecKey_assignTo(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); - } - - public SWIGTYPE_p_unsigned_char data { - set { - skycoinPINVOKE.cipher_SecKey_data_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.cipher_SecKey_data_get(swigCPtr); - SWIGTYPE_p_unsigned_char ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); - return ret; - } - } - - public cipher_SecKey() : this(skycoinPINVOKE.new_cipher_SecKey(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin1/cipher_SecKeys.cs b/LibskycoinNet/skycoin1/cipher_SecKeys.cs deleted file mode 100644 index 5740661b..00000000 --- a/LibskycoinNet/skycoin1/cipher_SecKeys.cs +++ /dev/null @@ -1,93 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class cipher_SecKeys : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal cipher_SecKeys(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(cipher_SecKeys obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~cipher_SecKeys() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_cipher_SecKeys(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public cipher_SecKey getAt(int i) { - global::System.IntPtr cPtr = skycoinPINVOKE.cipher_SecKeys_getAt(swigCPtr, i); - cipher_SecKey ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher_SecKey(cPtr, false); - return ret; - } - - public int setAt(int i, cipher_SecKey seckey) { - int ret = skycoinPINVOKE.cipher_SecKeys_setAt(swigCPtr, i, cipher_SecKey.getCPtr(seckey)); - return ret; - } - - public int isEqual(cipher_SecKeys a) { - int ret = skycoinPINVOKE.cipher_SecKeys_isEqual(swigCPtr, cipher_SecKeys.getCPtr(a)); - return ret; - } - - public void allocate(int n) { - skycoinPINVOKE.cipher_SecKeys_allocate(swigCPtr, n); - } - - public void release() { - skycoinPINVOKE.cipher_SecKeys_release(swigCPtr); - } - - public cipher_SecKey data { - set { - skycoinPINVOKE.cipher_SecKeys_data_set(swigCPtr, cipher_SecKey.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.cipher_SecKeys_data_get(swigCPtr); - cipher_SecKey ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher_SecKey(cPtr, false); - return ret; - } - } - - public int count { - set { - skycoinPINVOKE.cipher_SecKeys_count_set(swigCPtr, value); - } - get { - int ret = skycoinPINVOKE.cipher_SecKeys_count_get(swigCPtr); - return ret; - } - } - - public cipher_SecKeys() : this(skycoinPINVOKE.new_cipher_SecKeys(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin1/cipher_Sig.cs b/LibskycoinNet/skycoin1/cipher_Sig.cs deleted file mode 100644 index 9233ff0c..00000000 --- a/LibskycoinNet/skycoin1/cipher_Sig.cs +++ /dev/null @@ -1,72 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class cipher_Sig : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal cipher_Sig(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(cipher_Sig obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~cipher_Sig() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_cipher_Sig(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public int isEqual(cipher_Sig a) { - int ret = skycoinPINVOKE.cipher_Sig_isEqual(swigCPtr, cipher_Sig.getCPtr(a)); - return ret; - } - - public void assignFrom(SWIGTYPE_p_void data) { - skycoinPINVOKE.cipher_Sig_assignFrom(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); - } - - public void assignTo(SWIGTYPE_p_void data) { - skycoinPINVOKE.cipher_Sig_assignTo(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); - } - - public SWIGTYPE_p_unsigned_char data { - set { - skycoinPINVOKE.cipher_Sig_data_set(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.cipher_Sig_data_get(swigCPtr); - SWIGTYPE_p_unsigned_char ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); - return ret; - } - } - - public cipher_Sig() : this(skycoinPINVOKE.new_cipher_Sig(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin1/cipher__Address.cs b/LibskycoinNet/skycoin1/cipher__Address.cs deleted file mode 100644 index 12bc8028..00000000 --- a/LibskycoinNet/skycoin1/cipher__Address.cs +++ /dev/null @@ -1,76 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class cipher__Address : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal cipher__Address(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(cipher__Address obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~cipher__Address() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_cipher__Address(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public int isEqual(cipher__Address a) { - int ret = skycoinPINVOKE.cipher__Address_isEqual(swigCPtr, cipher__Address.getCPtr(a)); - return ret; - } - - public SWIGTYPE_p_GoUint8_ Version { - set { - skycoinPINVOKE.cipher__Address_Version_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoUint8_ ret = new SWIGTYPE_p_GoUint8_(skycoinPINVOKE.cipher__Address_Version_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_GoUint8_ Key { - set { - skycoinPINVOKE.cipher__Address_Key_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.cipher__Address_Key_get(swigCPtr); - SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); - return ret; - } - } - - public cipher__Address() : this(skycoinPINVOKE.new_cipher__Address(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin1/cli__SendAmount.cs b/LibskycoinNet/skycoin1/cli__SendAmount.cs deleted file mode 100644 index f74e4d54..00000000 --- a/LibskycoinNet/skycoin1/cli__SendAmount.cs +++ /dev/null @@ -1,72 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class cli__SendAmount : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal cli__SendAmount(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(cli__SendAmount obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~cli__SendAmount() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_cli__SendAmount(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_GoString_ Addr { - set { - skycoinPINVOKE.cli__SendAmount_Addr_set(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.cli__SendAmount_Addr_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_GoInt64_ Coins { - set { - skycoinPINVOKE.cli__SendAmount_Coins_set(swigCPtr, SWIGTYPE_p_GoInt64_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoInt64_ ret = new SWIGTYPE_p_GoInt64_(skycoinPINVOKE.cli__SendAmount_Coins_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public cli__SendAmount() : this(skycoinPINVOKE.new_cli__SendAmount(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin1/coin_UxOutArray.cs b/LibskycoinNet/skycoin1/coin_UxOutArray.cs deleted file mode 100644 index a204cbae..00000000 --- a/LibskycoinNet/skycoin1/coin_UxOutArray.cs +++ /dev/null @@ -1,93 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class coin_UxOutArray : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal coin_UxOutArray(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(coin_UxOutArray obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~coin_UxOutArray() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_coin_UxOutArray(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public coin__UxOut getAt(int i) { - global::System.IntPtr cPtr = skycoinPINVOKE.coin_UxOutArray_getAt(swigCPtr, i); - coin__UxOut ret = (cPtr == global::System.IntPtr.Zero) ? null : new coin__UxOut(cPtr, false); - return ret; - } - - public int setAt(int i, coin__UxOut uxout) { - int ret = skycoinPINVOKE.coin_UxOutArray_setAt(swigCPtr, i, coin__UxOut.getCPtr(uxout)); - return ret; - } - - public int isEqual(coin_UxOutArray a) { - int ret = skycoinPINVOKE.coin_UxOutArray_isEqual(swigCPtr, coin_UxOutArray.getCPtr(a)); - return ret; - } - - public void allocate(int n) { - skycoinPINVOKE.coin_UxOutArray_allocate(swigCPtr, n); - } - - public void release() { - skycoinPINVOKE.coin_UxOutArray_release(swigCPtr); - } - - public coin__UxOut data { - set { - skycoinPINVOKE.coin_UxOutArray_data_set(swigCPtr, coin__UxOut.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.coin_UxOutArray_data_get(swigCPtr); - coin__UxOut ret = (cPtr == global::System.IntPtr.Zero) ? null : new coin__UxOut(cPtr, false); - return ret; - } - } - - public int count { - set { - skycoinPINVOKE.coin_UxOutArray_count_set(swigCPtr, value); - } - get { - int ret = skycoinPINVOKE.coin_UxOutArray_count_get(swigCPtr); - return ret; - } - } - - public coin_UxOutArray() : this(skycoinPINVOKE.new_coin_UxOutArray(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin1/coin__Block.cs b/LibskycoinNet/skycoin1/coin__Block.cs deleted file mode 100644 index 2f434119..00000000 --- a/LibskycoinNet/skycoin1/coin__Block.cs +++ /dev/null @@ -1,70 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class coin__Block : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal coin__Block(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(coin__Block obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~coin__Block() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_coin__Block(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public coin__BlockHeader Head { - set { - skycoinPINVOKE.coin__Block_Head_set(swigCPtr, coin__BlockHeader.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.coin__Block_Head_get(swigCPtr); - coin__BlockHeader ret = (cPtr == global::System.IntPtr.Zero) ? null : new coin__BlockHeader(cPtr, false); - return ret; - } - } - - public coin__BlockBody Body { - set { - skycoinPINVOKE.coin__Block_Body_set(swigCPtr, coin__BlockBody.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.coin__Block_Body_get(swigCPtr); - coin__BlockBody ret = (cPtr == global::System.IntPtr.Zero) ? null : new coin__BlockBody(cPtr, false); - return ret; - } - } - - public coin__Block() : this(skycoinPINVOKE.new_coin__Block(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin1/coin__BlockBody.cs b/LibskycoinNet/skycoin1/coin__BlockBody.cs deleted file mode 100644 index 24aa32eb..00000000 --- a/LibskycoinNet/skycoin1/coin__BlockBody.cs +++ /dev/null @@ -1,65 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class coin__BlockBody : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal coin__BlockBody(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(coin__BlockBody obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~coin__BlockBody() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_coin__BlockBody(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public int isEqual(coin__BlockBody b) { - int ret = skycoinPINVOKE.coin__BlockBody_isEqual(swigCPtr, coin__BlockBody.getCPtr(b)); - return ret; - } - - public SWIGTYPE_p_GoSlice_ Transactions { - set { - skycoinPINVOKE.coin__BlockBody_Transactions_set(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.coin__BlockBody_Transactions_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public coin__BlockBody() : this(skycoinPINVOKE.new_coin__BlockBody(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin1/coin__BlockHeader.cs b/LibskycoinNet/skycoin1/coin__BlockHeader.cs deleted file mode 100644 index 1c4703a2..00000000 --- a/LibskycoinNet/skycoin1/coin__BlockHeader.cs +++ /dev/null @@ -1,134 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class coin__BlockHeader : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal coin__BlockHeader(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(coin__BlockHeader obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~coin__BlockHeader() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_coin__BlockHeader(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public int isEqual(coin__BlockHeader bh) { - int ret = skycoinPINVOKE.coin__BlockHeader_isEqual(swigCPtr, coin__BlockHeader.getCPtr(bh)); - return ret; - } - - public SWIGTYPE_p_GoUint32_ Version { - set { - skycoinPINVOKE.coin__BlockHeader_Version_set(swigCPtr, SWIGTYPE_p_GoUint32_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoUint32_ ret = new SWIGTYPE_p_GoUint32_(skycoinPINVOKE.coin__BlockHeader_Version_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_GoUint64_ Time { - set { - skycoinPINVOKE.coin__BlockHeader_Time_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.coin__BlockHeader_Time_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_GoUint64_ BkSeq { - set { - skycoinPINVOKE.coin__BlockHeader_BkSeq_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.coin__BlockHeader_BkSeq_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_GoUint64_ Fee { - set { - skycoinPINVOKE.coin__BlockHeader_Fee_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.coin__BlockHeader_Fee_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_GoUint8_ PrevHash { - set { - skycoinPINVOKE.coin__BlockHeader_PrevHash_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.coin__BlockHeader_PrevHash_get(swigCPtr); - SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_GoUint8_ BodyHash { - set { - skycoinPINVOKE.coin__BlockHeader_BodyHash_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.coin__BlockHeader_BodyHash_get(swigCPtr); - SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_GoUint8_ UxHash { - set { - skycoinPINVOKE.coin__BlockHeader_UxHash_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.coin__BlockHeader_UxHash_get(swigCPtr); - SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); - return ret; - } - } - - public coin__BlockHeader() : this(skycoinPINVOKE.new_coin__BlockHeader(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin1/coin__SignedBlock.cs b/LibskycoinNet/skycoin1/coin__SignedBlock.cs deleted file mode 100644 index 20b63f9f..00000000 --- a/LibskycoinNet/skycoin1/coin__SignedBlock.cs +++ /dev/null @@ -1,70 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class coin__SignedBlock : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal coin__SignedBlock(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(coin__SignedBlock obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~coin__SignedBlock() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_coin__SignedBlock(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public coin__Block _unnamed { - set { - skycoinPINVOKE.coin__SignedBlock__unnamed_set(swigCPtr, coin__Block.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.coin__SignedBlock__unnamed_get(swigCPtr); - coin__Block ret = (cPtr == global::System.IntPtr.Zero) ? null : new coin__Block(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_GoUint8_ Sig { - set { - skycoinPINVOKE.coin__SignedBlock_Sig_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.coin__SignedBlock_Sig_get(swigCPtr); - SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); - return ret; - } - } - - public coin__SignedBlock() : this(skycoinPINVOKE.new_coin__SignedBlock(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin1/coin__SortableTransactions.cs b/LibskycoinNet/skycoin1/coin__SortableTransactions.cs deleted file mode 100644 index 534b34a4..00000000 --- a/LibskycoinNet/skycoin1/coin__SortableTransactions.cs +++ /dev/null @@ -1,84 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class coin__SortableTransactions : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal coin__SortableTransactions(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(coin__SortableTransactions obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~coin__SortableTransactions() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_coin__SortableTransactions(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_GoSlice_ Txns { - set { - skycoinPINVOKE.coin__SortableTransactions_Txns_set(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.coin__SortableTransactions_Txns_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_GoSlice_ Fees { - set { - skycoinPINVOKE.coin__SortableTransactions_Fees_set(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.coin__SortableTransactions_Fees_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_GoSlice_ Hashes { - set { - skycoinPINVOKE.coin__SortableTransactions_Hashes_set(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.coin__SortableTransactions_Hashes_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public coin__SortableTransactions() : this(skycoinPINVOKE.new_coin__SortableTransactions(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin1/coin__Transaction.cs b/LibskycoinNet/skycoin1/coin__Transaction.cs deleted file mode 100644 index 68a75704..00000000 --- a/LibskycoinNet/skycoin1/coin__Transaction.cs +++ /dev/null @@ -1,124 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class coin__Transaction : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal coin__Transaction(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(coin__Transaction obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~coin__Transaction() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_coin__Transaction(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public int isEqual(coin__Transaction t) { - int ret = skycoinPINVOKE.coin__Transaction_isEqual(swigCPtr, coin__Transaction.getCPtr(t)); - return ret; - } - - public SWIGTYPE_p_GoInt32_ Length { - set { - skycoinPINVOKE.coin__Transaction_Length_set(swigCPtr, SWIGTYPE_p_GoInt32_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoInt32_ ret = new SWIGTYPE_p_GoInt32_(skycoinPINVOKE.coin__Transaction_Length_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_GoInt8_ Type { - set { - skycoinPINVOKE.coin__Transaction_Type_set(swigCPtr, SWIGTYPE_p_GoInt8_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoInt8_ ret = new SWIGTYPE_p_GoInt8_(skycoinPINVOKE.coin__Transaction_Type_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_GoUint8_ InnerHash { - set { - skycoinPINVOKE.coin__Transaction_InnerHash_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.coin__Transaction_InnerHash_get(swigCPtr); - SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_GoSlice_ Sigs { - set { - skycoinPINVOKE.coin__Transaction_Sigs_set(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.coin__Transaction_Sigs_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_GoSlice_ In { - set { - skycoinPINVOKE.coin__Transaction_In_set(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.coin__Transaction_In_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_GoSlice_ Out { - set { - skycoinPINVOKE.coin__Transaction_Out_set(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.coin__Transaction_Out_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public coin__Transaction() : this(skycoinPINVOKE.new_coin__Transaction(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin1/coin__TransactionOutput.cs b/LibskycoinNet/skycoin1/coin__TransactionOutput.cs deleted file mode 100644 index 656d769b..00000000 --- a/LibskycoinNet/skycoin1/coin__TransactionOutput.cs +++ /dev/null @@ -1,88 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class coin__TransactionOutput : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal coin__TransactionOutput(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(coin__TransactionOutput obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~coin__TransactionOutput() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_coin__TransactionOutput(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public int isEqual(coin__TransactionOutput t) { - int ret = skycoinPINVOKE.coin__TransactionOutput_isEqual(swigCPtr, coin__TransactionOutput.getCPtr(t)); - return ret; - } - - public cipher__Address Address { - set { - skycoinPINVOKE.coin__TransactionOutput_Address_set(swigCPtr, cipher__Address.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.coin__TransactionOutput_Address_get(swigCPtr); - cipher__Address ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher__Address(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_GoUint64_ Coins { - set { - skycoinPINVOKE.coin__TransactionOutput_Coins_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.coin__TransactionOutput_Coins_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_GoUint64_ Hours { - set { - skycoinPINVOKE.coin__TransactionOutput_Hours_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.coin__TransactionOutput_Hours_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public coin__TransactionOutput() : this(skycoinPINVOKE.new_coin__TransactionOutput(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin1/coin__UxBody.cs b/LibskycoinNet/skycoin1/coin__UxBody.cs deleted file mode 100644 index 2dffc686..00000000 --- a/LibskycoinNet/skycoin1/coin__UxBody.cs +++ /dev/null @@ -1,94 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class coin__UxBody : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal coin__UxBody(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(coin__UxBody obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~coin__UxBody() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_coin__UxBody(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_GoUint8_ SrcTransaction { - set { - skycoinPINVOKE.coin__UxBody_SrcTransaction_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.coin__UxBody_SrcTransaction_get(swigCPtr); - SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); - return ret; - } - } - - public cipher__Address Address { - set { - skycoinPINVOKE.coin__UxBody_Address_set(swigCPtr, cipher__Address.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.coin__UxBody_Address_get(swigCPtr); - cipher__Address ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher__Address(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_GoUint64_ Coins { - set { - skycoinPINVOKE.coin__UxBody_Coins_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.coin__UxBody_Coins_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_GoUint64_ Hours { - set { - skycoinPINVOKE.coin__UxBody_Hours_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.coin__UxBody_Hours_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public coin__UxBody() : this(skycoinPINVOKE.new_coin__UxBody(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin1/coin__UxHead.cs b/LibskycoinNet/skycoin1/coin__UxHead.cs deleted file mode 100644 index 5a7f245e..00000000 --- a/LibskycoinNet/skycoin1/coin__UxHead.cs +++ /dev/null @@ -1,72 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class coin__UxHead : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal coin__UxHead(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(coin__UxHead obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~coin__UxHead() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_coin__UxHead(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_GoUint64_ Time { - set { - skycoinPINVOKE.coin__UxHead_Time_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.coin__UxHead_Time_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_GoUint64_ BkSeq { - set { - skycoinPINVOKE.coin__UxHead_BkSeq_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.coin__UxHead_BkSeq_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public coin__UxHead() : this(skycoinPINVOKE.new_coin__UxHead(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin1/coin__UxOut.cs b/LibskycoinNet/skycoin1/coin__UxOut.cs deleted file mode 100644 index ac1bfc43..00000000 --- a/LibskycoinNet/skycoin1/coin__UxOut.cs +++ /dev/null @@ -1,75 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class coin__UxOut : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal coin__UxOut(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(coin__UxOut obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~coin__UxOut() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_coin__UxOut(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public int isEqual(coin__UxOut u) { - int ret = skycoinPINVOKE.coin__UxOut_isEqual(swigCPtr, coin__UxOut.getCPtr(u)); - return ret; - } - - public coin__UxHead Head { - set { - skycoinPINVOKE.coin__UxOut_Head_set(swigCPtr, coin__UxHead.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.coin__UxOut_Head_get(swigCPtr); - coin__UxHead ret = (cPtr == global::System.IntPtr.Zero) ? null : new coin__UxHead(cPtr, false); - return ret; - } - } - - public coin__UxBody Body { - set { - skycoinPINVOKE.coin__UxOut_Body_set(swigCPtr, coin__UxBody.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.coin__UxOut_Body_get(swigCPtr); - coin__UxBody ret = (cPtr == global::System.IntPtr.Zero) ? null : new coin__UxBody(cPtr, false); - return ret; - } - } - - public coin__UxOut() : this(skycoinPINVOKE.new_coin__UxOut(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin1/encoder__StructField.cs b/LibskycoinNet/skycoin1/encoder__StructField.cs deleted file mode 100644 index 7283d5be..00000000 --- a/LibskycoinNet/skycoin1/encoder__StructField.cs +++ /dev/null @@ -1,96 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class encoder__StructField : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal encoder__StructField(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(encoder__StructField obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~encoder__StructField() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_encoder__StructField(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_GoString_ Name { - set { - skycoinPINVOKE.encoder__StructField_Name_set(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.encoder__StructField_Name_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_GoUint32_ Kind { - set { - skycoinPINVOKE.encoder__StructField_Kind_set(swigCPtr, SWIGTYPE_p_GoUint32_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoUint32_ ret = new SWIGTYPE_p_GoUint32_(skycoinPINVOKE.encoder__StructField_Kind_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_GoString_ Type { - set { - skycoinPINVOKE.encoder__StructField_Type_set(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.encoder__StructField_Type_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_GoString_ Tag { - set { - skycoinPINVOKE.encoder__StructField_Tag_set(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.encoder__StructField_Tag_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public encoder__StructField() : this(skycoinPINVOKE.new_encoder__StructField(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin1/encrypt__ScryptChacha20poly1305.cs b/LibskycoinNet/skycoin1/encrypt__ScryptChacha20poly1305.cs deleted file mode 100644 index a7960fe1..00000000 --- a/LibskycoinNet/skycoin1/encrypt__ScryptChacha20poly1305.cs +++ /dev/null @@ -1,96 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class encrypt__ScryptChacha20poly1305 : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal encrypt__ScryptChacha20poly1305(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(encrypt__ScryptChacha20poly1305 obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~encrypt__ScryptChacha20poly1305() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_encrypt__ScryptChacha20poly1305(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_GoInt_ N { - set { - skycoinPINVOKE.encrypt__ScryptChacha20poly1305_N_set(swigCPtr, SWIGTYPE_p_GoInt_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoInt_ ret = new SWIGTYPE_p_GoInt_(skycoinPINVOKE.encrypt__ScryptChacha20poly1305_N_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_GoInt_ R { - set { - skycoinPINVOKE.encrypt__ScryptChacha20poly1305_R_set(swigCPtr, SWIGTYPE_p_GoInt_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoInt_ ret = new SWIGTYPE_p_GoInt_(skycoinPINVOKE.encrypt__ScryptChacha20poly1305_R_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_GoInt_ P { - set { - skycoinPINVOKE.encrypt__ScryptChacha20poly1305_P_set(swigCPtr, SWIGTYPE_p_GoInt_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoInt_ ret = new SWIGTYPE_p_GoInt_(skycoinPINVOKE.encrypt__ScryptChacha20poly1305_P_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_GoInt_ KeyLen { - set { - skycoinPINVOKE.encrypt__ScryptChacha20poly1305_KeyLen_set(swigCPtr, SWIGTYPE_p_GoInt_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoInt_ ret = new SWIGTYPE_p_GoInt_(skycoinPINVOKE.encrypt__ScryptChacha20poly1305_KeyLen_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public encrypt__ScryptChacha20poly1305() : this(skycoinPINVOKE.new_encrypt__ScryptChacha20poly1305(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin1/httphelper__Address.cs b/LibskycoinNet/skycoin1/httphelper__Address.cs deleted file mode 100644 index 882e75ad..00000000 --- a/LibskycoinNet/skycoin1/httphelper__Address.cs +++ /dev/null @@ -1,59 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class httphelper__Address : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal httphelper__Address(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(httphelper__Address obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~httphelper__Address() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_httphelper__Address(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public cipher__Address _unnamed { - set { - skycoinPINVOKE.httphelper__Address__unnamed_set(swigCPtr, cipher__Address.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.httphelper__Address__unnamed_get(swigCPtr); - cipher__Address ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher__Address(cPtr, false); - return ret; - } - } - - public httphelper__Address() : this(skycoinPINVOKE.new_httphelper__Address(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin1/secp256k1go__Field.cs b/LibskycoinNet/skycoin1/secp256k1go__Field.cs deleted file mode 100644 index ca0d1113..00000000 --- a/LibskycoinNet/skycoin1/secp256k1go__Field.cs +++ /dev/null @@ -1,59 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class secp256k1go__Field : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal secp256k1go__Field(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(secp256k1go__Field obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~secp256k1go__Field() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_secp256k1go__Field(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_GoUint32_ n { - set { - skycoinPINVOKE.secp256k1go__Field_n_set(swigCPtr, SWIGTYPE_p_GoUint32_.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.secp256k1go__Field_n_get(swigCPtr); - SWIGTYPE_p_GoUint32_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint32_(cPtr, false); - return ret; - } - } - - public secp256k1go__Field() : this(skycoinPINVOKE.new_secp256k1go__Field(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin1/secp256k1go__XY.cs b/LibskycoinNet/skycoin1/secp256k1go__XY.cs deleted file mode 100644 index 5fa89e8f..00000000 --- a/LibskycoinNet/skycoin1/secp256k1go__XY.cs +++ /dev/null @@ -1,82 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class secp256k1go__XY : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal secp256k1go__XY(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(secp256k1go__XY obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~secp256k1go__XY() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_secp256k1go__XY(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public secp256k1go__Field X { - set { - skycoinPINVOKE.secp256k1go__XY_X_set(swigCPtr, secp256k1go__Field.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.secp256k1go__XY_X_get(swigCPtr); - secp256k1go__Field ret = (cPtr == global::System.IntPtr.Zero) ? null : new secp256k1go__Field(cPtr, false); - return ret; - } - } - - public secp256k1go__Field Y { - set { - skycoinPINVOKE.secp256k1go__XY_Y_set(swigCPtr, secp256k1go__Field.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.secp256k1go__XY_Y_get(swigCPtr); - secp256k1go__Field ret = (cPtr == global::System.IntPtr.Zero) ? null : new secp256k1go__Field(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_BOOL Infinity { - set { - skycoinPINVOKE.secp256k1go__XY_Infinity_set(swigCPtr, SWIGTYPE_p_BOOL.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_BOOL ret = new SWIGTYPE_p_BOOL(skycoinPINVOKE.secp256k1go__XY_Infinity_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public secp256k1go__XY() : this(skycoinPINVOKE.new_secp256k1go__XY(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin1/secp256k1go__XYZ.cs b/LibskycoinNet/skycoin1/secp256k1go__XYZ.cs deleted file mode 100644 index a8d9d665..00000000 --- a/LibskycoinNet/skycoin1/secp256k1go__XYZ.cs +++ /dev/null @@ -1,93 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class secp256k1go__XYZ : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal secp256k1go__XYZ(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(secp256k1go__XYZ obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~secp256k1go__XYZ() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_secp256k1go__XYZ(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public secp256k1go__Field X { - set { - skycoinPINVOKE.secp256k1go__XYZ_X_set(swigCPtr, secp256k1go__Field.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.secp256k1go__XYZ_X_get(swigCPtr); - secp256k1go__Field ret = (cPtr == global::System.IntPtr.Zero) ? null : new secp256k1go__Field(cPtr, false); - return ret; - } - } - - public secp256k1go__Field Y { - set { - skycoinPINVOKE.secp256k1go__XYZ_Y_set(swigCPtr, secp256k1go__Field.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.secp256k1go__XYZ_Y_get(swigCPtr); - secp256k1go__Field ret = (cPtr == global::System.IntPtr.Zero) ? null : new secp256k1go__Field(cPtr, false); - return ret; - } - } - - public secp256k1go__Field Z { - set { - skycoinPINVOKE.secp256k1go__XYZ_Z_set(swigCPtr, secp256k1go__Field.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.secp256k1go__XYZ_Z_get(swigCPtr); - secp256k1go__Field ret = (cPtr == global::System.IntPtr.Zero) ? null : new secp256k1go__Field(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_BOOL Infinity { - set { - skycoinPINVOKE.secp256k1go__XYZ_Infinity_set(swigCPtr, SWIGTYPE_p_BOOL.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_BOOL ret = new SWIGTYPE_p_BOOL(skycoinPINVOKE.secp256k1go__XYZ_Infinity_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public secp256k1go__XYZ() : this(skycoinPINVOKE.new_secp256k1go__XYZ(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin1/skycoin.cs b/LibskycoinNet/skycoin1/skycoin.cs deleted file mode 100644 index 0e40fd88..00000000 --- a/LibskycoinNet/skycoin1/skycoin.cs +++ /dev/null @@ -1,2728 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class skycoin { - public static void destroy_cipher_SecKeys(cipher_SecKeys p) { - skycoinPINVOKE.destroy_cipher_SecKeys(cipher_SecKeys.getCPtr(p)); - } - - public static int equalSlices(GoSlice slice1, GoSlice slice2, int elem_size) { - int ret = skycoinPINVOKE.equalSlices(GoSlice.getCPtr(slice1), GoSlice.getCPtr(slice2), elem_size); - return ret; - } - - public static int equalTransactions(coin__Transaction t1, coin__Transaction t2) { - int ret = skycoinPINVOKE.equalTransactions(coin__Transaction.getCPtr(t1), coin__Transaction.getCPtr(t2)); - return ret; - } - - public static int equalTransactionsArrays(SWIGTYPE_p_GoSlice_ pTxs1, SWIGTYPE_p_GoSlice_ pTxs2) { - int ret = skycoinPINVOKE.equalTransactionsArrays(SWIGTYPE_p_GoSlice_.getCPtr(pTxs1), SWIGTYPE_p_GoSlice_.getCPtr(pTxs2)); - return ret; - } - - public static int equalBlockHeaders(coin__BlockHeader bh1, coin__BlockHeader bh2) { - int ret = skycoinPINVOKE.equalBlockHeaders(coin__BlockHeader.getCPtr(bh1), coin__BlockHeader.getCPtr(bh2)); - return ret; - } - - public static cipher_PubKey new_cipher_PubKeyp() { - global::System.IntPtr cPtr = skycoinPINVOKE.new_cipher_PubKeyp(); - cipher_PubKey ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher_PubKey(cPtr, false); - return ret; - } - - public static cipher_PubKey copy_cipher_PubKeyp(cipher_PubKey value) { - global::System.IntPtr cPtr = skycoinPINVOKE.copy_cipher_PubKeyp(cipher_PubKey.getCPtr(value)); - cipher_PubKey ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher_PubKey(cPtr, false); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static void delete_cipher_PubKeyp(cipher_PubKey obj) { - skycoinPINVOKE.delete_cipher_PubKeyp(cipher_PubKey.getCPtr(obj)); - } - - public static void cipher_PubKeyp_assign(cipher_PubKey obj, cipher_PubKey value) { - skycoinPINVOKE.cipher_PubKeyp_assign(cipher_PubKey.getCPtr(obj), cipher_PubKey.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - - public static cipher_PubKey cipher_PubKeyp_value(cipher_PubKey obj) { - cipher_PubKey ret = new cipher_PubKey(skycoinPINVOKE.cipher_PubKeyp_value(cipher_PubKey.getCPtr(obj)), true); - return ret; - } - - public static void add(cipher_PubKey arg0, cipher_PubKey arg1, cipher_PubKey OUTPUT) { - skycoinPINVOKE.add(cipher_PubKey.getCPtr(arg0), cipher_PubKey.getCPtr(arg1), cipher_PubKey.getCPtr(OUTPUT)); - } - - public static uint SKY_coin_NewBlock(SWIGTYPE_p_Block__Handle p0, ulong p1, SWIGTYPE_p_a_32__GoUint8_ p2, SWIGTYPE_p_Transactions__Handle p3, SWIGTYPE_p_FeeCalculator p4, SWIGTYPE_p_Block__Handle p5) { - uint ret = skycoinPINVOKE.SKY_coin_NewBlock(SWIGTYPE_p_Block__Handle.getCPtr(p0), p1, SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2), SWIGTYPE_p_Transactions__Handle.getCPtr(p3), SWIGTYPE_p_FeeCalculator.getCPtr(p4), SWIGTYPE_p_Block__Handle.getCPtr(p5)); - return ret; - } - - public static uint SKY_coin_SignedBlock_VerifySignature(coin__SignedBlock p0, SWIGTYPE_p_a_33__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_SignedBlock_VerifySignature(coin__SignedBlock.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_NewGenesisBlock(cipher__Address p0, ulong p1, ulong p2, SWIGTYPE_p_Block__Handle p3) { - uint ret = skycoinPINVOKE.SKY_coin_NewGenesisBlock(cipher__Address.getCPtr(p0), p1, p2, SWIGTYPE_p_Block__Handle.getCPtr(p3)); - return ret; - } - - public static uint SKY_coin_Block_HashHeader(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Block_HashHeader(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_Block_PreHashHeader(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Block_PreHashHeader(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_Block_Time(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Block_Time(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_Block_Seq(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Block_Seq(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_Block_HashBody(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Block_HashBody(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_Block_Size(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Block_Size(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_Block_String(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Block_String(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_Block_GetTransaction(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_Transaction__Handle p2, SWIGTYPE_p_unsigned_char p3) { - uint ret = skycoinPINVOKE.SKY_coin_Block_GetTransaction(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_Transaction__Handle.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); - return ret; - } - - public static uint SKY_coin_NewBlockHeader(coin__BlockHeader p0, SWIGTYPE_p_a_32__GoUint8_ p1, ulong p2, ulong p3, SWIGTYPE_p_BlockBody__Handle p4, coin__BlockHeader p5) { - uint ret = skycoinPINVOKE.SKY_coin_NewBlockHeader(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), p2, p3, SWIGTYPE_p_BlockBody__Handle.getCPtr(p4), coin__BlockHeader.getCPtr(p5)); - return ret; - } - - public static uint SKY_coin_BlockHeader_Hash(coin__BlockHeader p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_BlockHeader_Hash(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_BlockHeader_Bytes(coin__BlockHeader p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_BlockHeader_Bytes(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_BlockHeader_String(coin__BlockHeader p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_BlockHeader_String(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_BlockBody_Hash(SWIGTYPE_p_BlockBody__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Hash(SWIGTYPE_p_BlockBody__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_BlockBody_Size(SWIGTYPE_p_BlockBody__Handle p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Size(SWIGTYPE_p_BlockBody__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_BlockBody_Bytes(SWIGTYPE_p_BlockBody__Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Bytes(SWIGTYPE_p_BlockBody__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_CreateUnspents(coin__BlockHeader p0, SWIGTYPE_p_Transaction__Handle p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_CreateUnspents(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - return ret; - } - - public static uint SKY_coin_CreateUnspent(coin__BlockHeader p0, SWIGTYPE_p_Transaction__Handle p1, long p2, coin__UxOut p3) { - uint ret = skycoinPINVOKE.SKY_coin_CreateUnspent(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), p2, coin__UxOut.getCPtr(p3)); - return ret; - } - - public static uint SKY_coin_GetBlockObject(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_p_coin__Block p1) { - uint ret = skycoinPINVOKE.SKY_coin_GetBlockObject(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_p_coin__Block.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_GetBlockBody(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_BlockBody__Handle p1) { - uint ret = skycoinPINVOKE.SKY_coin_GetBlockBody(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_BlockBody__Handle.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_NewEmptyBlock(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_Block__Handle p1) { - uint ret = skycoinPINVOKE.SKY_coin_NewEmptyBlock(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_Block__Handle.getCPtr(p1)); - return ret; - } - - public static uint SKY_bip39_NewDefaultMnemomic(SWIGTYPE_p_GoString_ p0) { - uint ret = skycoinPINVOKE.SKY_bip39_NewDefaultMnemomic(SWIGTYPE_p_GoString_.getCPtr(p0)); - return ret; - } - - public static uint SKY_bip39_NewEntropy(long p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_bip39_NewEntropy(p0, SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; - } - - public static uint SKY_bip39_NewMnemonic(GoSlice p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_bip39_NewMnemonic(GoSlice.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_bip39_MnemonicToByteArray(_GoString_ p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_bip39_MnemonicToByteArray(_GoString_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_bip39_IsMnemonicValid(_GoString_ p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_bip39_IsMnemonicValid(_GoString_.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_api_NewClient(_GoString_ p0, SWIGTYPE_p_Client__Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_NewClient(_GoString_.getCPtr(p0), SWIGTYPE_p_Client__Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_api_Client_CSRF(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_CSRF(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; - } - - public static uint SKY_api_Client_Version(SWIGTYPE_p_Client__Handle p0) { - uint ret = skycoinPINVOKE.SKY_api_Client_Version(SWIGTYPE_p_Client__Handle.getCPtr(p0)); - return ret; - } - - public static uint SKY_api_Client_Outputs(SWIGTYPE_p_Client__Handle p0) { - uint ret = skycoinPINVOKE.SKY_api_Client_Outputs(SWIGTYPE_p_Client__Handle.getCPtr(p0)); - return ret; - } - - public static uint SKY_api_Client_OutputsForAddresses(SWIGTYPE_p_Client__Handle p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_OutputsForAddresses(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_api_Client_OutputsForHashes(SWIGTYPE_p_Client__Handle p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_OutputsForHashes(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_api_Client_CoinSupply(SWIGTYPE_p_Client__Handle p0) { - uint ret = skycoinPINVOKE.SKY_api_Client_CoinSupply(SWIGTYPE_p_Client__Handle.getCPtr(p0)); - return ret; - } - - public static uint SKY_api_Client_BlockByHash(SWIGTYPE_p_Client__Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_BlockByHash(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_api_Client_BlockBySeq(SWIGTYPE_p_Client__Handle p0, ulong p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_BlockBySeq(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1); - return ret; - } - - public static uint SKY_api_Client_Blocks(SWIGTYPE_p_Client__Handle p0, ulong p1, ulong p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_Blocks(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1, p2); - return ret; - } - - public static uint SKY_api_Client_LastBlocks(SWIGTYPE_p_Client__Handle p0, ulong p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_LastBlocks(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1); - return ret; - } - - public static uint SKY_api_Client_BlockchainMetadata(SWIGTYPE_p_Client__Handle p0) { - uint ret = skycoinPINVOKE.SKY_api_Client_BlockchainMetadata(SWIGTYPE_p_Client__Handle.getCPtr(p0)); - return ret; - } - - public static uint SKY_api_Client_BlockchainProgress(SWIGTYPE_p_Client__Handle p0) { - uint ret = skycoinPINVOKE.SKY_api_Client_BlockchainProgress(SWIGTYPE_p_Client__Handle.getCPtr(p0)); - return ret; - } - - public static uint SKY_api_Client_Balance(SWIGTYPE_p_Client__Handle p0, GoSlice p1, wallet__BalancePair p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_Balance(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), wallet__BalancePair.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_api_Client_UxOut(SWIGTYPE_p_Client__Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_UxOut(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_api_Client_AddressUxOuts(SWIGTYPE_p_Client__Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_AddressUxOuts(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_api_Client_Wallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_WalletResponse__Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_Wallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_api_Client_Wallets(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Wallets__Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_Wallets(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Wallets__Handle.getCPtr(p1)); - return ret; - } - - public static uint SKY_api_Client_CreateUnencryptedWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, long p3, SWIGTYPE_p_WalletResponse__Handle p4) { - uint ret = skycoinPINVOKE.SKY_api_Client_CreateUnencryptedWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), p3, SWIGTYPE_p_WalletResponse__Handle.getCPtr(p4)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_api_Client_CreateEncryptedWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, _GoString_ p3, long p4, SWIGTYPE_p_WalletResponse__Handle p5) { - uint ret = skycoinPINVOKE.SKY_api_Client_CreateEncryptedWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), _GoString_.getCPtr(p3), p4, SWIGTYPE_p_WalletResponse__Handle.getCPtr(p5)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_api_Client_NewWalletAddress(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, long p2, _GoString_ p3, SWIGTYPE_p_Strings__Handle p4) { - uint ret = skycoinPINVOKE.SKY_api_Client_NewWalletAddress(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p2, _GoString_.getCPtr(p3), SWIGTYPE_p_Strings__Handle.getCPtr(p4)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_api_Client_WalletBalance(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, wallet__BalancePair p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_WalletBalance(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), wallet__BalancePair.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_api_Client_Spend(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, ulong p3, _GoString_ p4, SWIGTYPE_p_SpendResult_Handle p5) { - uint ret = skycoinPINVOKE.SKY_api_Client_Spend(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), p3, _GoString_.getCPtr(p4), SWIGTYPE_p_SpendResult_Handle.getCPtr(p5)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_api_Client_CreateTransaction(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_CreateTransactionResponse__Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_CreateTransaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_CreateTransactionResponse__Handle.getCPtr(p2)); - return ret; - } - - public static uint SKY_api_Client_UpdateWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_UpdateWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_api_Client_WalletFolderName(SWIGTYPE_p_Client__Handle p0) { - uint ret = skycoinPINVOKE.SKY_api_Client_WalletFolderName(SWIGTYPE_p_Client__Handle.getCPtr(p0)); - return ret; - } - - public static uint SKY_api_Client_NewSeed(SWIGTYPE_p_Client__Handle p0, long p1, SWIGTYPE_p_GoString_ p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_NewSeed(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoString_.getCPtr(p2)); - return ret; - } - - public static uint SKY_api_Client_GetWalletSeed(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, SWIGTYPE_p_GoString_ p3) { - uint ret = skycoinPINVOKE.SKY_api_Client_GetWalletSeed(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), SWIGTYPE_p_GoString_.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_api_Client_NetworkConnection(SWIGTYPE_p_Client__Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_NetworkConnection(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_api_Client_NetworkConnections(SWIGTYPE_p_Client__Handle p0) { - uint ret = skycoinPINVOKE.SKY_api_Client_NetworkConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0)); - return ret; - } - - public static uint SKY_api_Client_NetworkDefaultConnections(SWIGTYPE_p_Client__Handle p0) { - uint ret = skycoinPINVOKE.SKY_api_Client_NetworkDefaultConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0)); - return ret; - } - - public static uint SKY_api_Client_NetworkTrustedConnections(SWIGTYPE_p_Client__Handle p0) { - uint ret = skycoinPINVOKE.SKY_api_Client_NetworkTrustedConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0)); - return ret; - } - - public static uint SKY_api_Client_NetworkExchangeableConnections(SWIGTYPE_p_Client__Handle p0) { - uint ret = skycoinPINVOKE.SKY_api_Client_NetworkExchangeableConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0)); - return ret; - } - - public static uint SKY_api_Client_PendingTransactions(SWIGTYPE_p_Client__Handle p0) { - uint ret = skycoinPINVOKE.SKY_api_Client_PendingTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0)); - return ret; - } - - public static uint SKY_api_Client_Transaction(SWIGTYPE_p_Client__Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_Transaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_api_Client_Transactions(SWIGTYPE_p_Client__Handle p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_Transactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_api_Client_ConfirmedTransactions(SWIGTYPE_p_Client__Handle p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_ConfirmedTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_api_Client_UnconfirmedTransactions(SWIGTYPE_p_Client__Handle p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_UnconfirmedTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_api_Client_InjectTransaction(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Transaction__Handle p1, SWIGTYPE_p_GoString_ p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_InjectTransaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); - return ret; - } - - public static uint SKY_api_Client_ResendUnconfirmedTransactions(SWIGTYPE_p_Client__Handle p0) { - uint ret = skycoinPINVOKE.SKY_api_Client_ResendUnconfirmedTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0)); - return ret; - } - - public static uint SKY_api_Client_RawTransaction(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_GoString_ p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_RawTransaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_api_Client_AddressTransactions(SWIGTYPE_p_Client__Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_AddressTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_api_Client_Richlist(SWIGTYPE_p_Client__Handle p0, api__RichlistParams p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_Richlist(SWIGTYPE_p_Client__Handle.getCPtr(p0), api__RichlistParams.getCPtr(p1)); - return ret; - } - - public static uint SKY_api_Client_AddressCount(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_AddressCount(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); - return ret; - } - - public static uint SKY_api_Client_UnloadWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_UnloadWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_api_Client_Health(SWIGTYPE_p_Client__Handle p0) { - uint ret = skycoinPINVOKE.SKY_api_Client_Health(SWIGTYPE_p_Client__Handle.getCPtr(p0)); - return ret; - } - - public static uint SKY_api_Client_EncryptWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, SWIGTYPE_p_WalletResponse__Handle p3) { - uint ret = skycoinPINVOKE.SKY_api_Client_EncryptWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_api_Client_DecryptWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, SWIGTYPE_p_WalletResponse__Handle p3) { - uint ret = skycoinPINVOKE.SKY_api_Client_DecryptWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1go_XY_Print(secp256k1go__XY p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_Print(secp256k1go__XY.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1go_XY_ParsePubkey(secp256k1go__XY p0, GoSlice p1, SWIGTYPE_p_unsigned_char p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_ParsePubkey(secp256k1go__XY.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1go_XY_Bytes(secp256k1go__XY p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_Bytes(secp256k1go__XY.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; - } - - public static uint SKY_secp256k1go_XY_BytesUncompressed(secp256k1go__XY p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_BytesUncompressed(secp256k1go__XY.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; - } - - public static uint SKY_secp256k1go_XY_SetXY(secp256k1go__XY p0, secp256k1go__Field p1, secp256k1go__Field p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_SetXY(secp256k1go__XY.getCPtr(p0), secp256k1go__Field.getCPtr(p1), secp256k1go__Field.getCPtr(p2)); - return ret; - } - - public static uint SKY_secp256k1go_XY_IsValid(secp256k1go__XY p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_IsValid(secp256k1go__XY.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); - return ret; - } - - public static uint SKY_secp256k1go_XY_SetXYZ(secp256k1go__XY p0, secp256k1go__XYZ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_SetXYZ(secp256k1go__XY.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1)); - return ret; - } - - public static uint SKY_secp256k1go_XY_Neg(secp256k1go__XY p0, secp256k1go__XY p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_Neg(secp256k1go__XY.getCPtr(p0), secp256k1go__XY.getCPtr(p1)); - return ret; - } - - public static uint SKY_secp256k1go_XY_SetXO(secp256k1go__XY p0, secp256k1go__Field p1, byte p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_SetXO(secp256k1go__XY.getCPtr(p0), secp256k1go__Field.getCPtr(p1), p2); - return ret; - } - - public static uint SKY_secp256k1go_XY_AddXY(secp256k1go__XY p0, secp256k1go__XY p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_AddXY(secp256k1go__XY.getCPtr(p0), secp256k1go__XY.getCPtr(p1)); - return ret; - } - - public static uint SKY_secp256k1go_XY_GetPublicKey(secp256k1go__XY p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_GetPublicKey(secp256k1go__XY.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; - } - - public static uint SKY_api_NewWalletResponse(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_WalletResponse__Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_NewWalletResponse(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p1)); - return ret; - } - - public static uint SKY_api_NewCreateTransactionResponse(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1, SWIGTYPE_p_CreateTransactionResponse__Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_NewCreateTransactionResponse(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_CreateTransactionResponse__Handle.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_api_NewCreatedTransaction(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1, SWIGTYPE_p_CreatedTransaction__Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_NewCreatedTransaction(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_CreatedTransaction__Handle.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_api_CreatedTransaction_ToTransaction(SWIGTYPE_p_CreatedTransaction__Handle p0, SWIGTYPE_p_Transaction__Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_CreatedTransaction_ToTransaction(SWIGTYPE_p_CreatedTransaction__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); - return ret; - } - - public static uint SKY_api_NewCreatedTransactionOutput(coin__TransactionOutput p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_CreatedTransactionOutput__Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_NewCreatedTransactionOutput(coin__TransactionOutput.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_CreatedTransactionOutput__Handle.getCPtr(p2)); - return ret; - } - - public static uint SKY_api_NewCreatedTransactionInput(wallet__UxBalance p0, SWIGTYPE_p_CreatedTransactionInput__Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_NewCreatedTransactionInput(wallet__UxBalance.getCPtr(p0), SWIGTYPE_p_CreatedTransactionInput__Handle.getCPtr(p1)); - return ret; - } - - public static uint SKY_wallet_NewError(GoInterface p0) { - uint ret = skycoinPINVOKE.SKY_wallet_NewError(GoInterface.getCPtr(p0)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_NewWallet(_GoString_ p0, SWIGTYPE_p_Options__Handle p1, SWIGTYPE_p_Wallet__Handle p2) { - uint ret = skycoinPINVOKE.SKY_wallet_NewWallet(_GoString_.getCPtr(p0), SWIGTYPE_p_Options__Handle.getCPtr(p1), SWIGTYPE_p_Wallet__Handle.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_Wallet_Lock(SWIGTYPE_p_Wallet__Handle p0, GoSlice p1, _GoString_ p2) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Lock(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), GoSlice.getCPtr(p1), _GoString_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_Wallet_Unlock(SWIGTYPE_p_Wallet__Handle p0, GoSlice p1, SWIGTYPE_p_Wallet__Handle p2) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Unlock(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_Wallet__Handle.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_Load(_GoString_ p0, SWIGTYPE_p_Wallet__Handle p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Load(_GoString_.getCPtr(p0), SWIGTYPE_p_Wallet__Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_Wallet_Save(SWIGTYPE_p_Wallet__Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Save(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_Wallet_Validate(SWIGTYPE_p_Wallet__Handle p0) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Validate(SWIGTYPE_p_Wallet__Handle.getCPtr(p0)); - return ret; - } - - public static uint SKY_wallet_Wallet_Type(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Type(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; - } - - public static uint SKY_wallet_Wallet_Version(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Version(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; - } - - public static uint SKY_wallet_Wallet_Filename(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Filename(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; - } - - public static uint SKY_wallet_Wallet_Label(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Label(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; - } - - public static uint SKY_wallet_Wallet_IsEncrypted(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_IsEncrypted(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); - return ret; - } - - public static uint SKY_wallet_Wallet_GenerateAddresses(SWIGTYPE_p_Wallet__Handle p0, ulong p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GenerateAddresses(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2)); - return ret; - } - - public static uint SKY_wallet_Wallet_GetAddresses(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GetAddresses(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; - } - - public static uint SKY_wallet_Wallet_GetEntry(SWIGTYPE_p_Wallet__Handle p0, cipher__Address p1, wallet__Entry p2, SWIGTYPE_p_unsigned_char p3) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GetEntry(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), cipher__Address.getCPtr(p1), wallet__Entry.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); - return ret; - } - - public static uint SKY_wallet_Wallet_AddEntry(SWIGTYPE_p_Wallet__Handle p0, wallet__Entry p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_AddEntry(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), wallet__Entry.getCPtr(p1)); - return ret; - } - - public static uint SKY_wallet_DistributeSpendHours(ulong p0, ulong p1, byte p2, SWIGTYPE_p_unsigned_long_long p3, SWIGTYPE_p_GoSlice_ p4, SWIGTYPE_p_unsigned_long_long p5) { - uint ret = skycoinPINVOKE.SKY_wallet_DistributeSpendHours(p0, p1, p2, SWIGTYPE_p_unsigned_long_long.getCPtr(p3), SWIGTYPE_p_GoSlice_.getCPtr(p4), SWIGTYPE_p_unsigned_long_long.getCPtr(p5)); - return ret; - } - - public static uint SKY_wallet_DistributeCoinHoursProportional(GoSlice p0, ulong p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_wallet_DistributeCoinHoursProportional(GoSlice.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_NewUxBalances(ulong p0, SWIGTYPE_p_GoSlice_ p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_wallet_NewUxBalances(p0, SWIGTYPE_p_GoSlice_.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - return ret; - } - - public static uint SKY_wallet_NewUxBalance(ulong p0, coin__UxOut p1, wallet__UxBalance p2) { - uint ret = skycoinPINVOKE.SKY_wallet_NewUxBalance(p0, coin__UxOut.getCPtr(p1), wallet__UxBalance.getCPtr(p2)); - return ret; - } - - public static uint SKY_wallet_ChooseSpendsMinimizeUxOuts(GoSlice p0, ulong p1, ulong p2, SWIGTYPE_p_GoSlice_ p3) { - uint ret = skycoinPINVOKE.SKY_wallet_ChooseSpendsMinimizeUxOuts(GoSlice.getCPtr(p0), p1, p2, SWIGTYPE_p_GoSlice_.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_ChooseSpendsMaximizeUxOuts(GoSlice p0, ulong p1, ulong p2, SWIGTYPE_p_GoSlice_ p3) { - uint ret = skycoinPINVOKE.SKY_wallet_ChooseSpendsMaximizeUxOuts(GoSlice.getCPtr(p0), p1, p2, SWIGTYPE_p_GoSlice_.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cli_CheckWalletBalance(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, SWIGTYPE_p_BalanceResult_Handle p2) { - uint ret = skycoinPINVOKE.SKY_cli_CheckWalletBalance(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_BalanceResult_Handle.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cli_GetBalanceOfAddresses(SWIGTYPE_p_WebRpcClient__Handle p0, GoSlice p1, SWIGTYPE_p_BalanceResult_Handle p2) { - uint ret = skycoinPINVOKE.SKY_cli_GetBalanceOfAddresses(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_BalanceResult_Handle.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_NewReadableEntry(wallet__Entry p0, SWIGTYPE_p_ReadableEntry__Handle p1) { - uint ret = skycoinPINVOKE.SKY_wallet_NewReadableEntry(wallet__Entry.getCPtr(p0), SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p1)); - return ret; - } - - public static uint SKY_wallet_LoadReadableEntry(_GoString_ p0, SWIGTYPE_p_ReadableEntry__Handle p1) { - uint ret = skycoinPINVOKE.SKY_wallet_LoadReadableEntry(_GoString_.getCPtr(p0), SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_NewReadableEntryFromPubkey(_GoString_ p0, SWIGTYPE_p_ReadableEntry__Handle p1) { - uint ret = skycoinPINVOKE.SKY_wallet_NewReadableEntryFromPubkey(_GoString_.getCPtr(p0), SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_ReadableEntry_Save(SWIGTYPE_p_ReadableEntry__Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_ReadableEntry_Save(SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_LoadReadableWallet(_GoString_ p0, SWIGTYPE_p_ReadableWallet__Handle p1) { - uint ret = skycoinPINVOKE.SKY_wallet_LoadReadableWallet(_GoString_.getCPtr(p0), SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_ReadableWallet_Save(SWIGTYPE_p_ReadableWallet__Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_ReadableWallet_Save(SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_ReadableWallet_Load(SWIGTYPE_p_ReadableWallet__Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_ReadableWallet_Load(SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_ReadableWallet_Erase(SWIGTYPE_p_ReadableWallet__Handle p0) { - uint ret = skycoinPINVOKE.SKY_wallet_ReadableWallet_Erase(SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p0)); - return ret; - } - - public static uint SKY_secp256k1go_DecompressPoint(GoSlice p0, byte p1, GoSlice p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_DecompressPoint(GoSlice.getCPtr(p0), p1, GoSlice.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1go_RecoverPublicKey(GoSlice p0, GoSlice p1, long p2, SWIGTYPE_p_GoSlice_ p3, SWIGTYPE_p_long_long p4) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_RecoverPublicKey(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), p2, SWIGTYPE_p_GoSlice_.getCPtr(p3), SWIGTYPE_p_long_long.getCPtr(p4)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1go_Multiply(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Multiply(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1go_BaseMultiply(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_BaseMultiply(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1go_BaseMultiplyAdd(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_BaseMultiplyAdd(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1go_GeneratePublicKey(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_GeneratePublicKey(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1go_SeckeyIsValid(GoSlice p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_SeckeyIsValid(GoSlice.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1go_PubkeyIsValid(GoSlice p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_PubkeyIsValid(GoSlice.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_base58_String2Hex(_GoString_ p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_base58_String2Hex(_GoString_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_base58_Base58_ToInt(_GoString_ p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_base58_Base58_ToInt(_GoString_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_base58_Base58_ToHex(_GoString_ p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_base58_Base58_ToHex(_GoString_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_base58_Base58_Base582Int(_GoString_ p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_base58_Base58_Base582Int(_GoString_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_base58_Base582Hex(_GoString_ p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_base58_Base582Hex(_GoString_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_base58_Base58_BitHex(_GoString_ p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_base58_Base58_BitHex(_GoString_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_base58_Int2Base58(long p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_base58_Int2Base58(p0, SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; - } - - public static uint SKY_base58_Hex2Base58(GoSlice p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_base58_Hex2Base58(GoSlice.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_base58_Hex2Base58String(GoSlice p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_base58_Hex2Base58String(GoSlice.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_base58_Hex2Base58Str(GoSlice p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_base58_Hex2Base58Str(GoSlice.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cli_GenerateWallet(_GoString_ p0, SWIGTYPE_p_Options__Handle p1, ulong p2, SWIGTYPE_p_Wallet__Handle p3) { - uint ret = skycoinPINVOKE.SKY_cli_GenerateWallet(_GoString_.getCPtr(p0), SWIGTYPE_p_Options__Handle.getCPtr(p1), p2, SWIGTYPE_p_Wallet__Handle.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cli_MakeAlphanumericSeed(SWIGTYPE_p_GoString_ p0) { - uint ret = skycoinPINVOKE.SKY_cli_MakeAlphanumericSeed(SWIGTYPE_p_GoString_.getCPtr(p0)); - return ret; - } - - public static uint SKY_webrpc_NewClient(_GoString_ p0, SWIGTYPE_p_WebRpcClient__Handle p1) { - uint ret = skycoinPINVOKE.SKY_webrpc_NewClient(_GoString_.getCPtr(p0), SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_webrpc_Client_CSRF(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_CSRF(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; - } - - public static uint SKY_webrpc_Client_InjectTransaction(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_Transaction__Handle p1, SWIGTYPE_p_GoString_ p2) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_InjectTransaction(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); - return ret; - } - - public static uint SKY_webrpc_Client_GetStatus(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_StatusResult_Handle p1) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetStatus(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_StatusResult_Handle.getCPtr(p1)); - return ret; - } - - public static uint SKY_webrpc_Client_GetTransactionByID(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, SWIGTYPE_p_TransactionResult_Handle p2) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetTransactionByID(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_TransactionResult_Handle.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_webrpc_Client_GetAddressUxOuts(SWIGTYPE_p_WebRpcClient__Handle p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetAddressUxOuts(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_webrpc_Client_GetBlocks(SWIGTYPE_p_WebRpcClient__Handle p0, ulong p1, ulong p2, SWIGTYPE_p_GoSlice_ p3) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetBlocks(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), p1, p2, SWIGTYPE_p_GoSlice_.getCPtr(p3)); - return ret; - } - - public static uint SKY_webrpc_Client_GetBlocksBySeq(SWIGTYPE_p_WebRpcClient__Handle p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetBlocksBySeq(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_webrpc_Client_GetLastBlocks(SWIGTYPE_p_WebRpcClient__Handle p0, ulong p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetLastBlocks(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2)); - return ret; - } - - public static uint SKY_browser_Open(_GoString_ p0) { - uint ret = skycoinPINVOKE.SKY_browser_Open(_GoString_.getCPtr(p0)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_iputil_LocalhostIP(SWIGTYPE_p_GoString_ p0) { - uint ret = skycoinPINVOKE.SKY_iputil_LocalhostIP(SWIGTYPE_p_GoString_.getCPtr(p0)); - return ret; - } - - public static uint SKY_iputil_IsLocalhost(_GoString_ p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_iputil_IsLocalhost(_GoString_.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_iputil_SplitAddr(_GoString_ p0, SWIGTYPE_p_GoString_ p1, SWIGTYPE_p_unsigned_short p2) { - uint ret = skycoinPINVOKE.SKY_iputil_SplitAddr(_GoString_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1), SWIGTYPE_p_unsigned_short.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_encoder_StructField_String(encoder__StructField p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_encoder_StructField_String(encoder__StructField.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; - } - - public static uint SKY_encoder_ParseFields(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoStringMap_ p2) { - uint ret = skycoinPINVOKE.SKY_encoder_ParseFields(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoStringMap_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1_SumSHA256(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1_SumSHA256(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1_RandByte(long p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1_RandByte(p0, SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; - } - - public static uint SKY_cli_GenerateAddressesInFile(_GoString_ p0, ulong p1, SWIGTYPE_p_PasswordReader__Handle p2, SWIGTYPE_p_GoSlice_ p3) { - uint ret = skycoinPINVOKE.SKY_cli_GenerateAddressesInFile(_GoString_.getCPtr(p0), p1, SWIGTYPE_p_PasswordReader__Handle.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cli_FormatAddressesAsJSON(GoSlice p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_FormatAddressesAsJSON(GoSlice.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cli_FormatAddressesAsJoinedArray(GoSlice p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_FormatAddressesAsJoinedArray(GoSlice.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cli_AddressesToStrings(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_AddressesToStrings(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_coin_AddUint64(ulong p0, ulong p1, SWIGTYPE_p_unsigned_long_long p2) { - uint ret = skycoinPINVOKE.SKY_coin_AddUint64(p0, p1, SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); - return ret; - } - - public static uint SKY_coin_Uint64ToInt64(ulong p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Uint64ToInt64(p0, SWIGTYPE_p_long_long.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_Int64ToUint64(long p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Int64ToUint64(p0, SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); - return ret; - } - - public static uint SKY_cipher_PubKeySlice_Len(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_cipher_PubKeySlice_Len(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); - return ret; - } - - public static uint SKY_cipher_PubKeySlice_Less(SWIGTYPE_p_GoSlice_ p0, long p1, long p2, SWIGTYPE_p_unsigned_char p3) { - uint ret = skycoinPINVOKE.SKY_cipher_PubKeySlice_Less(SWIGTYPE_p_GoSlice_.getCPtr(p0), p1, p2, SWIGTYPE_p_unsigned_char.getCPtr(p3)); - return ret; - } - - public static uint SKY_cipher_PubKeySlice_Swap(SWIGTYPE_p_GoSlice_ p0, long p1, long p2) { - uint ret = skycoinPINVOKE.SKY_cipher_PubKeySlice_Swap(SWIGTYPE_p_GoSlice_.getCPtr(p0), p1, p2); - return ret; - } - - public static uint SKY_cipher_RandByte(long p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_RandByte(p0, SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; - } - - public static uint SKY_cipher_NewPubKey(GoSlice p0, SWIGTYPE_p_a_33__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_NewPubKey(GoSlice.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cipher_PubKeyFromHex(_GoString_ p0, SWIGTYPE_p_a_33__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_PubKeyFromHex(_GoString_.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cipher_PubKeyFromSecKey(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_a_33__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_PubKeyFromSecKey(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); - return ret; - } - - public static uint SKY_cipher_PubKeyFromSig(SWIGTYPE_p_a_65__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_a_33__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_cipher_PubKeyFromSig(SWIGTYPE_p_a_65__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p2)); - return ret; - } - - public static uint SKY_cipher_PubKey_Verify(SWIGTYPE_p_a_33__GoUint8_ p0) { - uint ret = skycoinPINVOKE.SKY_cipher_PubKey_Verify(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0)); - return ret; - } - - public static uint SKY_cipher_PubKey_Hex(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_PubKey_Hex(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; - } - - public static uint SKY_cipher_PubKey_ToAddressHash(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_20__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_PubKey_ToAddressHash(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_20__GoUint8_.getCPtr(p1)); - return ret; - } - - public static uint SKY_cipher_NewSecKey(GoSlice p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_NewSecKey(GoSlice.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cipher_SecKeyFromHex(_GoString_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_SecKeyFromHex(_GoString_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cipher_SecKey_Verify(SWIGTYPE_p_a_32__GoUint8_ p0) { - uint ret = skycoinPINVOKE.SKY_cipher_SecKey_Verify(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0)); - return ret; - } - - public static uint SKY_cipher_SecKey_Hex(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_SecKey_Hex(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; - } - - public static uint SKY_cipher_ECDH(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_cipher_ECDH(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - return ret; - } - - public static uint SKY_cipher_NewSig(GoSlice p0, SWIGTYPE_p_a_65__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_NewSig(GoSlice.getCPtr(p0), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cipher_SigFromHex(_GoString_ p0, SWIGTYPE_p_a_65__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_SigFromHex(_GoString_.getCPtr(p0), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cipher_Sig_Hex(SWIGTYPE_p_a_65__GoUint8_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_Sig_Hex(SWIGTYPE_p_a_65__GoUint8_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; - } - - public static uint SKY_cipher_SignHash(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_a_65__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_cipher_SignHash(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); - return ret; - } - - public static uint SKY_cipher_ChkSig(cipher__Address p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_a_65__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_cipher_ChkSig(cipher__Address.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); - return ret; - } - - public static uint SKY_cipher_VerifySignedHash(SWIGTYPE_p_a_65__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_VerifySignedHash(SWIGTYPE_p_a_65__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - return ret; - } - - public static uint SKY_cipher_VerifySignature(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_65__GoUint8_ p1, SWIGTYPE_p_a_32__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_cipher_VerifySignature(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); - return ret; - } - - public static uint SKY_cipher_GenerateDeterministicKeyPair(GoSlice p0, SWIGTYPE_p_a_33__GoUint8_ p1, SWIGTYPE_p_a_32__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_cipher_GenerateDeterministicKeyPair(GoSlice.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cipher_DeterministicKeyPairIterator(GoSlice p0, SWIGTYPE_p_GoSlice_ p1, SWIGTYPE_p_a_33__GoUint8_ p2, SWIGTYPE_p_a_32__GoUint8_ p3) { - uint ret = skycoinPINVOKE.SKY_cipher_DeterministicKeyPairIterator(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p2), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cipher_GenerateDeterministicKeyPairs(GoSlice p0, long p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_cipher_GenerateDeterministicKeyPairs(GoSlice.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cipher_GenerateDeterministicKeyPairsSeed(GoSlice p0, long p1, SWIGTYPE_p_GoSlice_ p2, SWIGTYPE_p_GoSlice_ p3) { - uint ret = skycoinPINVOKE.SKY_cipher_GenerateDeterministicKeyPairsSeed(GoSlice.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cipher_TestSecKey(SWIGTYPE_p_a_32__GoUint8_ p0) { - uint ret = skycoinPINVOKE.SKY_cipher_TestSecKey(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0)); - return ret; - } - - public static uint SKY_cipher_TestSecKeyHash(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_TestSecKeyHash(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - return ret; - } - - public static uint SKY_cipher_GenerateKeyPair(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_GenerateKeyPair(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - return ret; - } - - public static uint SKY_secp256k1go_Signature_Create(SWIGTYPE_p_Signature_Handle p0) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Create(SWIGTYPE_p_Signature_Handle.getCPtr(p0)); - return ret; - } - - public static uint SKY_secp256k1go_Signature_GetR(SWIGTYPE_p_Signature_Handle p0, SWIGTYPE_p_Number_Handle p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_GetR(SWIGTYPE_p_Signature_Handle.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1)); - return ret; - } - - public static uint SKY_secp256k1go_Signature_GetS(SWIGTYPE_p_Signature_Handle p0, SWIGTYPE_p_Number_Handle p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_GetS(SWIGTYPE_p_Signature_Handle.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1)); - return ret; - } - - public static uint SKY_secp256k1go_Signature_Print(SWIGTYPE_p_Signature_Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Print(SWIGTYPE_p_Signature_Handle.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1go_Signature_Verify(SWIGTYPE_p_Signature_Handle p0, secp256k1go__XY p1, SWIGTYPE_p_Number_Handle p2, SWIGTYPE_p_unsigned_char p3) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Verify(SWIGTYPE_p_Signature_Handle.getCPtr(p0), secp256k1go__XY.getCPtr(p1), SWIGTYPE_p_Number_Handle.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); - return ret; - } - - public static uint SKY_secp256k1go_Signature_Recover(SWIGTYPE_p_Signature_Handle p0, secp256k1go__XY p1, SWIGTYPE_p_Number_Handle p2, long p3, SWIGTYPE_p_unsigned_char p4) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Recover(SWIGTYPE_p_Signature_Handle.getCPtr(p0), secp256k1go__XY.getCPtr(p1), SWIGTYPE_p_Number_Handle.getCPtr(p2), p3, SWIGTYPE_p_unsigned_char.getCPtr(p4)); - return ret; - } - - public static uint SKY_secp256k1go_Signature_Sign(SWIGTYPE_p_Signature_Handle p0, SWIGTYPE_p_Number_Handle p1, SWIGTYPE_p_Number_Handle p2, SWIGTYPE_p_Number_Handle p3, SWIGTYPE_p_long_long p4, SWIGTYPE_p_long_long p5) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Sign(SWIGTYPE_p_Signature_Handle.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1), SWIGTYPE_p_Number_Handle.getCPtr(p2), SWIGTYPE_p_Number_Handle.getCPtr(p3), SWIGTYPE_p_long_long.getCPtr(p4), SWIGTYPE_p_long_long.getCPtr(p5)); - return ret; - } - - public static uint SKY_secp256k1go_Signature_ParseBytes(SWIGTYPE_p_Signature_Handle p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_ParseBytes(SWIGTYPE_p_Signature_Handle.getCPtr(p0), GoSlice.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1go_Signature_Bytes(SWIGTYPE_p_Signature_Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Bytes(SWIGTYPE_p_Signature_Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; - } - - public static uint SKY_cli_App_Run(SWIGTYPE_p_App__Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_App_Run(SWIGTYPE_p_App__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cli_Config_GetCoin(SWIGTYPE_p_Config__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_Config_GetCoin(SWIGTYPE_p_Config__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; - } - - public static uint SKY_cli_Config_GetRPCAddress(SWIGTYPE_p_Config__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_Config_GetRPCAddress(SWIGTYPE_p_Config__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; - } - - public static uint SKY_cli_RPCClientFromApp(SWIGTYPE_p_App__Handle p0, SWIGTYPE_p_WebRpcClient__Handle p1) { - uint ret = skycoinPINVOKE.SKY_cli_RPCClientFromApp(SWIGTYPE_p_App__Handle.getCPtr(p0), SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p1)); - return ret; - } - - public static uint SKY_cli_Getenv(_GoString_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_Getenv(_GoString_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cli_Setenv(_GoString_ p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_Setenv(_GoString_.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_poly1305_Verify(SWIGTYPE_p_GoSlice_ p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2, SWIGTYPE_p_unsigned_char p3) { - uint ret = skycoinPINVOKE.SKY_poly1305_Verify(SWIGTYPE_p_GoSlice_.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_NewBalance(ulong p0, ulong p1, wallet__Balance p2) { - uint ret = skycoinPINVOKE.SKY_wallet_NewBalance(p0, p1, wallet__Balance.getCPtr(p2)); - return ret; - } - - public static uint SKY_wallet_NewBalanceFromUxOut(ulong p0, coin__UxOut p1, wallet__Balance p2) { - uint ret = skycoinPINVOKE.SKY_wallet_NewBalanceFromUxOut(p0, coin__UxOut.getCPtr(p1), wallet__Balance.getCPtr(p2)); - return ret; - } - - public static uint SKY_wallet_Balance_Add(wallet__Balance p0, wallet__Balance p1, wallet__Balance p2) { - uint ret = skycoinPINVOKE.SKY_wallet_Balance_Add(wallet__Balance.getCPtr(p0), wallet__Balance.getCPtr(p1), wallet__Balance.getCPtr(p2)); - return ret; - } - - public static uint SKY_wallet_Balance_Sub(wallet__Balance p0, wallet__Balance p1, wallet__Balance p2) { - uint ret = skycoinPINVOKE.SKY_wallet_Balance_Sub(wallet__Balance.getCPtr(p0), wallet__Balance.getCPtr(p1), wallet__Balance.getCPtr(p2)); - return ret; - } - - public static uint SKY_wallet_Balance_Equals(wallet__Balance p0, wallet__Balance p1, SWIGTYPE_p_unsigned_char p2) { - uint ret = skycoinPINVOKE.SKY_wallet_Balance_Equals(wallet__Balance.getCPtr(p0), wallet__Balance.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); - return ret; - } - - public static uint SKY_wallet_Balance_IsZero(wallet__Balance p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Balance_IsZero(wallet__Balance.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); - return ret; - } - - public static uint SKY_utc_UnixNow(SWIGTYPE_p_long_long p0) { - uint ret = skycoinPINVOKE.SKY_utc_UnixNow(SWIGTYPE_p_long_long.getCPtr(p0)); - return ret; - } - - public static uint SKY_httphelper_Address_UnmarshalJSON(httphelper__Address p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_httphelper_Address_UnmarshalJSON(httphelper__Address.getCPtr(p0), GoSlice.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_httphelper_Address_MarshalJSON(httphelper__Address p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_httphelper_Address_MarshalJSON(httphelper__Address.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; - } - - public static uint SKY_httphelper_Coins_UnmarshalJSON(SWIGTYPE_p_GoUint64_ p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_httphelper_Coins_UnmarshalJSON(SWIGTYPE_p_GoUint64_.getCPtr(p0), GoSlice.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_httphelper_Coins_MarshalJSON(SWIGTYPE_p_GoUint64_ p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_httphelper_Coins_MarshalJSON(SWIGTYPE_p_GoUint64_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; - } - - public static uint SKY_httphelper_Coins_Value(SWIGTYPE_p_GoUint64_ p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_httphelper_Coins_Value(SWIGTYPE_p_GoUint64_.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); - return ret; - } - - public static uint SKY_httphelper_Hours_UnmarshalJSON(SWIGTYPE_p_GoUint64_ p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_httphelper_Hours_UnmarshalJSON(SWIGTYPE_p_GoUint64_.getCPtr(p0), GoSlice.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_httphelper_Hours_MarshalJSON(SWIGTYPE_p_GoUint64_ p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_httphelper_Hours_MarshalJSON(SWIGTYPE_p_GoUint64_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; - } - - public static uint SKY_httphelper_Hours_Value(SWIGTYPE_p_GoUint64_ p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_httphelper_Hours_Value(SWIGTYPE_p_GoUint64_.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); - return ret; - } - - public static uint SKY_wallet_Entry_Verify(wallet__Entry p0) { - uint ret = skycoinPINVOKE.SKY_wallet_Entry_Verify(wallet__Entry.getCPtr(p0)); - return ret; - } - - public static uint SKY_wallet_Entry_VerifyPublic(wallet__Entry p0) { - uint ret = skycoinPINVOKE.SKY_wallet_Entry_VerifyPublic(wallet__Entry.getCPtr(p0)); - return ret; - } - - public static uint SKY_wallet_CreateAddresses(_GoString_ p0, _GoString_ p1, long p2, byte p3, SWIGTYPE_p_ReadableWallet__Handle p4) { - uint ret = skycoinPINVOKE.SKY_wallet_CreateAddresses(_GoString_.getCPtr(p0), _GoString_.getCPtr(p1), p2, p3, SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p4)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_GetSkycoinWalletEntry(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_ReadableEntry__Handle p2) { - uint ret = skycoinPINVOKE.SKY_wallet_GetSkycoinWalletEntry(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p2)); - return ret; - } - - public static uint SKY_wallet_GetBitcoinWalletEntry(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_ReadableEntry__Handle p2) { - uint ret = skycoinPINVOKE.SKY_wallet_GetBitcoinWalletEntry(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p2)); - return ret; - } - - public static uint SKY_secp256k1go_XYZ_Print(secp256k1go__XYZ p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_Print(secp256k1go__XYZ.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1go_XYZ_SetXY(secp256k1go__XYZ p0, secp256k1go__XY p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_SetXY(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XY.getCPtr(p1)); - return ret; - } - - public static uint SKY_secp256k1go_XYZ_IsInfinity(secp256k1go__XYZ p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_IsInfinity(secp256k1go__XYZ.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); - return ret; - } - - public static uint SKY_secp256k1go_XYZ_IsValid(secp256k1go__XYZ p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_IsValid(secp256k1go__XYZ.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); - return ret; - } - - public static uint SKY_secp256k1go_XYZ_Normalize(secp256k1go__XYZ p0) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_Normalize(secp256k1go__XYZ.getCPtr(p0)); - return ret; - } - - public static uint SKY_secp256k1go_XYZ_Equals(secp256k1go__XYZ p0, secp256k1go__XYZ p1, SWIGTYPE_p_unsigned_char p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_Equals(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); - return ret; - } - - public static uint SKY_secp256k1go_XYZ_ECmult(secp256k1go__XYZ p0, secp256k1go__XYZ p1, SWIGTYPE_p_Number_Handle p2, SWIGTYPE_p_Number_Handle p3) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_ECmult(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1), SWIGTYPE_p_Number_Handle.getCPtr(p2), SWIGTYPE_p_Number_Handle.getCPtr(p3)); - return ret; - } - - public static uint SKY_secp256k1go_XYZ_Neg(secp256k1go__XYZ p0, secp256k1go__XYZ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_Neg(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1)); - return ret; - } - - public static uint SKY_secp256k1go_XYZ_Double(secp256k1go__XYZ p0, secp256k1go__XYZ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_Double(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1)); - return ret; - } - - public static uint SKY_secp256k1go_XYZ_AddXY(secp256k1go__XYZ p0, secp256k1go__XYZ p1, secp256k1go__XY p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_AddXY(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1), secp256k1go__XY.getCPtr(p2)); - return ret; - } - - public static uint SKY_secp256k1go_XYZ_Add(secp256k1go__XYZ p0, secp256k1go__XYZ p1, secp256k1go__XYZ p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_Add(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1), secp256k1go__XYZ.getCPtr(p2)); - return ret; - } - - public static uint SKY_secp256k1go_ECmultGen(secp256k1go__XYZ p0, SWIGTYPE_p_Number_Handle p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_ECmultGen(secp256k1go__XYZ.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1)); - return ret; - } - - public static uint SKY_encrypt_Sha256Xor_Encrypt(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_encrypt_Sha256Xor_Encrypt(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_encrypt_Sha256Xor_Decrypt(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_encrypt_Sha256Xor_Decrypt(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_droplet_FromString(_GoString_ p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_droplet_FromString(_GoString_.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_droplet_ToString(ulong p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_droplet_ToString(p0, SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; - } - - public static uint SKY_wallet_CryptoTypeFromString(_GoString_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_CryptoTypeFromString(_GoString_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static void SKY_handle_close(SWIGTYPE_p_Handle p0) { - skycoinPINVOKE.SKY_handle_close(SWIGTYPE_p_Handle.getCPtr(p0)); - } - - public static uint SKY_handle_copy(SWIGTYPE_p_Handle p0) { - uint ret = skycoinPINVOKE.SKY_handle_copy(SWIGTYPE_p_Handle.getCPtr(p0)); - return ret; - } - - public static uint SKY_logging_EnableColors() { - uint ret = skycoinPINVOKE.SKY_logging_EnableColors(); - return ret; - } - - public static uint SKY_logging_DisableColors() { - uint ret = skycoinPINVOKE.SKY_logging_DisableColors(); - return ret; - } - - public static uint SKY_logging_Disable() { - uint ret = skycoinPINVOKE.SKY_logging_Disable(); - return ret; - } - - public static uint SKY_map_Get(SWIGTYPE_p_GoStringMap_ p0, _GoString_ p1, SWIGTYPE_p_GoString_ p2) { - uint ret = skycoinPINVOKE.SKY_map_Get(SWIGTYPE_p_GoStringMap_.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static byte SKY_map_HasKey(SWIGTYPE_p_GoStringMap_ p0, _GoString_ p1) { - byte ret = skycoinPINVOKE.SKY_map_HasKey(SWIGTYPE_p_GoStringMap_.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_map_Close(SWIGTYPE_p_GoStringMap_ p0) { - uint ret = skycoinPINVOKE.SKY_map_Close(SWIGTYPE_p_GoStringMap_.getCPtr(p0)); - return ret; - } - - public static uint SKY_cipher_DecodeBase58Address(_GoString_ p0, cipher__Address p1) { - uint ret = skycoinPINVOKE.SKY_cipher_DecodeBase58Address(_GoString_.getCPtr(p0), cipher__Address.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cipher_AddressFromBytes(GoSlice p0, cipher__Address p1) { - uint ret = skycoinPINVOKE.SKY_cipher_AddressFromBytes(GoSlice.getCPtr(p0), cipher__Address.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cipher_AddressFromPubKey(SWIGTYPE_p_a_33__GoUint8_ p0, cipher__Address p1) { - uint ret = skycoinPINVOKE.SKY_cipher_AddressFromPubKey(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), cipher__Address.getCPtr(p1)); - return ret; - } - - public static uint SKY_cipher_AddressFromSecKey(SWIGTYPE_p_a_32__GoUint8_ p0, cipher__Address p1) { - uint ret = skycoinPINVOKE.SKY_cipher_AddressFromSecKey(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), cipher__Address.getCPtr(p1)); - return ret; - } - - public static uint SKY_cipher_BitcoinDecodeBase58Address(_GoString_ p0, cipher__Address p1) { - uint ret = skycoinPINVOKE.SKY_cipher_BitcoinDecodeBase58Address(_GoString_.getCPtr(p0), cipher__Address.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cipher_Address_Null(cipher__Address p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_cipher_Address_Null(cipher__Address.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); - return ret; - } - - public static uint SKY_cipher_Address_Bytes(cipher__Address p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_Address_Bytes(cipher__Address.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; - } - - public static uint SKY_cipher_Address_BitcoinBytes(cipher__Address p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_Address_BitcoinBytes(cipher__Address.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; - } - - public static uint SKY_cipher_Address_Verify(cipher__Address p0, SWIGTYPE_p_a_33__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_Address_Verify(cipher__Address.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); - return ret; - } - - public static uint SKY_cipher_Address_String(cipher__Address p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_Address_String(cipher__Address.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; - } - - public static uint SKY_cipher_Address_BitcoinString(cipher__Address p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_Address_BitcoinString(cipher__Address.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; - } - - public static uint SKY_cipher_Address_Checksum(cipher__Address p0, SWIGTYPE_p_a_4__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_Address_Checksum(cipher__Address.getCPtr(p0), SWIGTYPE_p_a_4__GoUint8_.getCPtr(p1)); - return ret; - } - - public static uint SKY_cipher_Address_BitcoinChecksum(cipher__Address p0, SWIGTYPE_p_a_4__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_Address_BitcoinChecksum(cipher__Address.getCPtr(p0), SWIGTYPE_p_a_4__GoUint8_.getCPtr(p1)); - return ret; - } - - public static uint SKY_cipher_BitcoinAddressFromPubkey(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_BitcoinAddressFromPubkey(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; - } - - public static uint SKY_cipher_BitcoinWalletImportFormatFromSeckey(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_BitcoinWalletImportFormatFromSeckey(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; - } - - public static uint SKY_cipher_BitcoinAddressFromBytes(GoSlice p0, cipher__Address p1) { - uint ret = skycoinPINVOKE.SKY_cipher_BitcoinAddressFromBytes(GoSlice.getCPtr(p0), cipher__Address.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cipher_SecKeyFromWalletImportFormat(_GoString_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_SecKeyFromWalletImportFormat(_GoString_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_JsonEncode_Handle(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_JsonEncode_Handle(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; - } - - public static uint SKY_Handle_Progress_GetCurrent(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_Handle_Progress_GetCurrent(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); - return ret; - } - - public static uint SKY_Handle_Block_GetHeadSeq(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_Handle_Block_GetHeadSeq(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); - return ret; - } - - public static uint SKY_Handle_Block_GetHeadHash(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_Handle_Block_GetHeadHash(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; - } - - public static uint SKY_Handle_Block_GetPreviousBlockHash(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_Handle_Block_GetPreviousBlockHash(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; - } - - public static uint SKY_Handle_Blocks_GetAt(SWIGTYPE_p_Handle p0, ulong p1) { - uint ret = skycoinPINVOKE.SKY_Handle_Blocks_GetAt(SWIGTYPE_p_Handle.getCPtr(p0), p1); - return ret; - } - - public static uint SKY_Handle_Blocks_GetCount(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_Handle_Blocks_GetCount(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); - return ret; - } - - public static uint SKY_Handle_Connections_GetCount(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_Handle_Connections_GetCount(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); - return ret; - } - - public static uint SKY_Handle_Strings_GetCount(SWIGTYPE_p_Strings__Handle p0, SWIGTYPE_p_unsigned_int p1) { - uint ret = skycoinPINVOKE.SKY_Handle_Strings_GetCount(SWIGTYPE_p_Strings__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); - return ret; - } - - public static uint SKY_Handle_Strings_Sort(SWIGTYPE_p_Strings__Handle p0) { - uint ret = skycoinPINVOKE.SKY_Handle_Strings_Sort(SWIGTYPE_p_Strings__Handle.getCPtr(p0)); - return ret; - } - - public static uint SKY_Handle_Strings_GetAt(SWIGTYPE_p_Strings__Handle p0, long p1, SWIGTYPE_p_GoString_ p2) { - uint ret = skycoinPINVOKE.SKY_Handle_Strings_GetAt(SWIGTYPE_p_Strings__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoString_.getCPtr(p2)); - return ret; - } - - public static uint SKY_api_Handle_Client_GetWalletDir(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletDir(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; - } - - public static uint SKY_api_Handle_Client_GetWalletFileName(SWIGTYPE_p_WalletResponse__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletFileName(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; - } - - public static uint SKY_api_Handle_Client_GetWalletLabel(SWIGTYPE_p_WalletResponse__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletLabel(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; - } - - public static uint SKY_api_Handle_Client_GetWalletFullPath(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_WalletResponse__Handle p1, SWIGTYPE_p_GoString_ p2) { - uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletFullPath(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); - return ret; - } - - public static uint SKY_api_Handle_GetWalletMeta(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoStringMap_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletMeta(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoStringMap_.getCPtr(p1)); - return ret; - } - - public static uint SKY_api_Handle_GetWalletEntriesCount(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_unsigned_int p1) { - uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletEntriesCount(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); - return ret; - } - - public static uint SKY_api_Handle_Client_GetWalletResponseEntriesCount(SWIGTYPE_p_WalletResponse__Handle p0, SWIGTYPE_p_unsigned_int p1) { - uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletResponseEntriesCount(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); - return ret; - } - - public static uint SKY_api_Handle_WalletGetEntry(SWIGTYPE_p_Wallet__Handle p0, uint p1, cipher__Address p2, SWIGTYPE_p_a_33__GoUint8_ p3) { - uint ret = skycoinPINVOKE.SKY_api_Handle_WalletGetEntry(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), p1, cipher__Address.getCPtr(p2), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p3)); - return ret; - } - - public static uint SKY_api_Handle_WalletResponseGetEntry(SWIGTYPE_p_WalletResponse__Handle p0, uint p1, SWIGTYPE_p_GoString_ p2, SWIGTYPE_p_GoString_ p3) { - uint ret = skycoinPINVOKE.SKY_api_Handle_WalletResponseGetEntry(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoString_.getCPtr(p2), SWIGTYPE_p_GoString_.getCPtr(p3)); - return ret; - } - - public static uint SKY_api_Handle_WalletResponseIsEncrypted(SWIGTYPE_p_WalletResponse__Handle p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_api_Handle_WalletResponseIsEncrypted(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); - return ret; - } - - public static uint SKY_api_Handle_WalletResponseGetCryptoType(SWIGTYPE_p_WalletResponse__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Handle_WalletResponseGetCryptoType(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; - } - - public static uint SKY_api_Handle_WalletsResponseGetCount(SWIGTYPE_p_Wallets__Handle p0, SWIGTYPE_p_unsigned_int p1) { - uint ret = skycoinPINVOKE.SKY_api_Handle_WalletsResponseGetCount(SWIGTYPE_p_Wallets__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); - return ret; - } - - public static uint SKY_api_Handle_WalletsResponseGetAt(SWIGTYPE_p_Wallets__Handle p0, uint p1, SWIGTYPE_p_WalletResponse__Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_Handle_WalletsResponseGetAt(SWIGTYPE_p_Wallets__Handle.getCPtr(p0), p1, SWIGTYPE_p_WalletResponse__Handle.getCPtr(p2)); - return ret; - } - - public static uint SKY_api_Handle_GetWalletFolderAddress(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletFolderAddress(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; - } - - public static uint SKY_api_Handle_GetWalletSeed(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletSeed(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; - } - - public static uint SKY_api_Handle_GetWalletLastSeed(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletLastSeed(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; - } - - public static uint SKY_api_Handle_GetBuildInfoData(SWIGTYPE_p_BuildInfo_Handle p0, SWIGTYPE_p_GoString_ p1, SWIGTYPE_p_GoString_ p2, SWIGTYPE_p_GoString_ p3) { - uint ret = skycoinPINVOKE.SKY_api_Handle_GetBuildInfoData(SWIGTYPE_p_BuildInfo_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2), SWIGTYPE_p_GoString_.getCPtr(p3)); - return ret; - } - - public static uint SKY_ripemd160_New(SWIGTYPE_p_Hash_Handle p0) { - uint ret = skycoinPINVOKE.SKY_ripemd160_New(SWIGTYPE_p_Hash_Handle.getCPtr(p0)); - return ret; - } - - public static uint SKY_ripemd160_Write(SWIGTYPE_p_Hash_Handle p0, GoSlice p1, SWIGTYPE_p_long_long p2) { - uint ret = skycoinPINVOKE.SKY_ripemd160_Write(SWIGTYPE_p_Hash_Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_long_long.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_ripemd160_Sum(SWIGTYPE_p_Hash_Handle p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_ripemd160_Sum(SWIGTYPE_p_Hash_Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1go_Number_Create(SWIGTYPE_p_Number_Handle p0) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_Create(SWIGTYPE_p_Number_Handle.getCPtr(p0)); - return ret; - } - - public static uint SKY_secp256k1go_Number_Print(SWIGTYPE_p_Number_Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_Print(SWIGTYPE_p_Number_Handle.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1go_Number_SetHex(SWIGTYPE_p_Number_Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_SetHex(SWIGTYPE_p_Number_Handle.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1go_Number_IsOdd(SWIGTYPE_p_Number_Handle p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_IsOdd(SWIGTYPE_p_Number_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); - return ret; - } - - public static uint SKY_secp256k1go_Number_IsEqual(SWIGTYPE_p_Number_Handle p0, SWIGTYPE_p_Number_Handle p1, SWIGTYPE_p_unsigned_char p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_IsEqual(SWIGTYPE_p_Number_Handle.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); - return ret; - } - - public static uint SKY_coin_UxOut_Hash(coin__UxOut p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_UxOut_Hash(coin__UxOut.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_UxOut_SnapshotHash(coin__UxOut p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_UxOut_SnapshotHash(coin__UxOut.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_UxBody_Hash(coin__UxBody p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_UxBody_Hash(coin__UxBody.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_UxOut_CoinHours(coin__UxOut p0, ulong p1, SWIGTYPE_p_unsigned_long_long p2) { - uint ret = skycoinPINVOKE.SKY_coin_UxOut_CoinHours(coin__UxOut.getCPtr(p0), p1, SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); - return ret; - } - - public static uint SKY_coin_UxArray_Hashes(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_UxArray_Hashes(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_UxArray_HasDupes(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_coin_UxArray_HasDupes(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_UxArray_Sort(SWIGTYPE_p_GoSlice_ p0) { - uint ret = skycoinPINVOKE.SKY_coin_UxArray_Sort(SWIGTYPE_p_GoSlice_.getCPtr(p0)); - return ret; - } - - public static uint SKY_coin_UxArray_Len(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_UxArray_Len(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_UxArray_Less(SWIGTYPE_p_GoSlice_ p0, long p1, long p2, SWIGTYPE_p_unsigned_char p3) { - uint ret = skycoinPINVOKE.SKY_coin_UxArray_Less(SWIGTYPE_p_GoSlice_.getCPtr(p0), p1, p2, SWIGTYPE_p_unsigned_char.getCPtr(p3)); - return ret; - } - - public static uint SKY_coin_UxArray_Swap(SWIGTYPE_p_GoSlice_ p0, long p1, long p2) { - uint ret = skycoinPINVOKE.SKY_coin_UxArray_Swap(SWIGTYPE_p_GoSlice_.getCPtr(p0), p1, p2); - return ret; - } - - public static uint SKY_coin_UxArray_Coins(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_UxArray_Coins(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_UxArray_CoinHours(SWIGTYPE_p_GoSlice_ p0, ulong p1, SWIGTYPE_p_unsigned_long_long p2) { - uint ret = skycoinPINVOKE.SKY_coin_UxArray_CoinHours(SWIGTYPE_p_GoSlice_.getCPtr(p0), p1, SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); - return ret; - } - - public static uint SKY_coin_UxArray_Sub(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_GoSlice_ p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_UxArray_Sub(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - return ret; - } - - public static uint SKY_coin_UxArray_Add(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_GoSlice_ p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_UxArray_Add(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - return ret; - } - - public static uint SKY_coin_NewAddressUxOuts(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_AddressUxOuts_Handle p1) { - uint ret = skycoinPINVOKE.SKY_coin_NewAddressUxOuts(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_AddressUxOuts_Keys(SWIGTYPE_p_AddressUxOuts_Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Keys(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_coin_AddressUxOuts_Flatten(SWIGTYPE_p_AddressUxOuts_Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Flatten(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_coin_AddressUxOuts_Sub(SWIGTYPE_p_AddressUxOuts_Handle p0, SWIGTYPE_p_AddressUxOuts_Handle p1, SWIGTYPE_p_AddressUxOuts_Handle p2) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Sub(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p1), SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_coin_AddressUxOuts_Add(SWIGTYPE_p_AddressUxOuts_Handle p0, SWIGTYPE_p_AddressUxOuts_Handle p1, SWIGTYPE_p_AddressUxOuts_Handle p2) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Add(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p1), SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_coin_AddressUxOuts_Get(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher__Address p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Get(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_coin_AddressUxOuts_HasKey(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher__Address p1, SWIGTYPE_p_unsigned_char p2) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_HasKey(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_coin_AddressUxOuts_GetOutputLength(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher__Address p1, SWIGTYPE_p_long_long p2) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_GetOutputLength(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), SWIGTYPE_p_long_long.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_coin_AddressUxOuts_Length(SWIGTYPE_p_AddressUxOuts_Handle p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Length(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_coin_AddressUxOuts_Set(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher__Address p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Set(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_encrypt_ScryptChacha20poly1305_Encrypt(encrypt__ScryptChacha20poly1305 p0, GoSlice p1, GoSlice p2, SWIGTYPE_p_GoSlice_ p3) { - uint ret = skycoinPINVOKE.SKY_encrypt_ScryptChacha20poly1305_Encrypt(encrypt__ScryptChacha20poly1305.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_encrypt_ScryptChacha20poly1305_Decrypt(encrypt__ScryptChacha20poly1305 p0, GoSlice p1, GoSlice p2, SWIGTYPE_p_GoSlice_ p3) { - uint ret = skycoinPINVOKE.SKY_encrypt_ScryptChacha20poly1305_Decrypt(encrypt__ScryptChacha20poly1305.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_wallet_CreateOptionsHandle(_GoString_ p0, _GoString_ p1, _GoString_ p2, byte p3, _GoString_ p4, _GoString_ p5, ulong p6, SWIGTYPE_p_Options__Handle p7) { - uint ret = skycoinPINVOKE.SKY_wallet_CreateOptionsHandle(_GoString_.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), p3, _GoString_.getCPtr(p4), _GoString_.getCPtr(p5), p6, SWIGTYPE_p_Options__Handle.getCPtr(p7)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cli_AddPrivateKey(SWIGTYPE_p_Wallet__Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_AddPrivateKey(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cli_AddPrivateKeyToFile(_GoString_ p0, _GoString_ p1, SWIGTYPE_p_PasswordReader__Handle p2) { - uint ret = skycoinPINVOKE.SKY_cli_AddPrivateKeyToFile(_GoString_.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_PasswordReader__Handle.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1_GenerateKeyPair(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1_GenerateKeyPair(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; - } - - public static uint SKY_secp256k1_PubkeyFromSeckey(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1_PubkeyFromSeckey(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1_UncompressPubkey(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1_UncompressPubkey(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1_UncompressedPubkeyFromSeckey(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1_UncompressedPubkeyFromSeckey(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1_Secp256k1Hash(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1_Secp256k1Hash(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1_GenerateDeterministicKeyPair(GoSlice p0, SWIGTYPE_p_GoSlice_ p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1_GenerateDeterministicKeyPair(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1_DeterministicKeyPairIterator(GoSlice p0, SWIGTYPE_p_GoSlice_ p1, SWIGTYPE_p_GoSlice_ p2, SWIGTYPE_p_GoSlice_ p3) { - uint ret = skycoinPINVOKE.SKY_secp256k1_DeterministicKeyPairIterator(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1_Sign(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1_Sign(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1_SignDeterministic(GoSlice p0, GoSlice p1, GoSlice p2, SWIGTYPE_p_GoSlice_ p3) { - uint ret = skycoinPINVOKE.SKY_secp256k1_SignDeterministic(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1_VerifySeckey(GoSlice p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1_VerifySeckey(GoSlice.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1_VerifyPubkey(GoSlice p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1_VerifyPubkey(GoSlice.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1_VerifySignatureValidity(GoSlice p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1_VerifySignatureValidity(GoSlice.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1_VerifySignature(GoSlice p0, GoSlice p1, GoSlice p2, SWIGTYPE_p_long_long p3) { - uint ret = skycoinPINVOKE.SKY_secp256k1_VerifySignature(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), SWIGTYPE_p_long_long.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1_SignatureErrorString(GoSlice p0, GoSlice p1, GoSlice p2, SWIGTYPE_p_GoString_ p3) { - uint ret = skycoinPINVOKE.SKY_secp256k1_SignatureErrorString(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), SWIGTYPE_p_GoString_.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1_RecoverPubkey(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1_RecoverPubkey(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1_ECDH(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1_ECDH(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_apputil_CatchInterruptPanic() { - uint ret = skycoinPINVOKE.SKY_apputil_CatchInterruptPanic(); - return ret; - } - - public static uint SKY_apputil_CatchDebug() { - uint ret = skycoinPINVOKE.SKY_apputil_CatchDebug(); - return ret; - } - - public static uint SKY_apputil_PrintProgramStatus() { - uint ret = skycoinPINVOKE.SKY_apputil_PrintProgramStatus(); - return ret; - } - - public static uint SKY_cert_CreateCertIfNotExists(_GoString_ p0, _GoString_ p1, _GoString_ p2, _GoString_ p3) { - uint ret = skycoinPINVOKE.SKY_cert_CreateCertIfNotExists(_GoString_.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), _GoString_.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_fee_VerifyTransactionFee(SWIGTYPE_p_Transaction__Handle p0, ulong p1) { - uint ret = skycoinPINVOKE.SKY_fee_VerifyTransactionFee(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); - return ret; - } - - public static uint SKY_fee_VerifyTransactionFeeForHours(ulong p0, ulong p1) { - uint ret = skycoinPINVOKE.SKY_fee_VerifyTransactionFeeForHours(p0, p1); - return ret; - } - - public static uint SKY_fee_RequiredFee(ulong p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_fee_RequiredFee(p0, SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); - return ret; - } - - public static uint SKY_fee_RemainingHours(ulong p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_fee_RemainingHours(p0, SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); - return ret; - } - - public static uint SKY_fee_TransactionFee(SWIGTYPE_p_Transaction__Handle p0, ulong p1, SWIGTYPE_p_GoSlice_ p2, SWIGTYPE_p_unsigned_long_long p3) { - uint ret = skycoinPINVOKE.SKY_fee_TransactionFee(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2), SWIGTYPE_p_unsigned_long_long.getCPtr(p3)); - return ret; - } - - public static uint SKY_cli_LoadConfig(SWIGTYPE_p_Config__Handle p0) { - uint ret = skycoinPINVOKE.SKY_cli_LoadConfig(SWIGTYPE_p_Config__Handle.getCPtr(p0)); - return ret; - } - - public static uint SKY_cli_Config_FullWalletPath(SWIGTYPE_p_Config__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_Config_FullWalletPath(SWIGTYPE_p_Config__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; - } - - public static uint SKY_cli_Config_FullDBPath(SWIGTYPE_p_Config__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_Config_FullDBPath(SWIGTYPE_p_Config__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; - } - - public static uint SKY_cli_NewApp(SWIGTYPE_p_Config__Handle p0, SWIGTYPE_p_App__Handle p1) { - uint ret = skycoinPINVOKE.SKY_cli_NewApp(SWIGTYPE_p_Config__Handle.getCPtr(p0), SWIGTYPE_p_App__Handle.getCPtr(p1)); - return ret; - } - - public static uint SKY_cli_RPCClientFromContext(SWIGTYPE_p_Context__Handle p0, SWIGTYPE_p_WebRpcClient__Handle p1) { - uint ret = skycoinPINVOKE.SKY_cli_RPCClientFromContext(SWIGTYPE_p_Context__Handle.getCPtr(p0), SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p1)); - return ret; - } - - public static uint SKY_cli_ConfigFromContext(SWIGTYPE_p_Context__Handle p0, SWIGTYPE_p_Config__Handle p1) { - uint ret = skycoinPINVOKE.SKY_cli_ConfigFromContext(SWIGTYPE_p_Context__Handle.getCPtr(p0), SWIGTYPE_p_Config__Handle.getCPtr(p1)); - return ret; - } - - public static uint SKY_cli_PasswordFromBytes_Password(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_PasswordFromBytes_Password(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; - } - - public static uint SKY_cli_PasswordFromTerm_Password(SWIGTYPE_p_GoSlice_ p0) { - uint ret = skycoinPINVOKE.SKY_cli_PasswordFromTerm_Password(SWIGTYPE_p_GoSlice_.getCPtr(p0)); - return ret; - } - - public static uint SKY_cli_CreateRawTxFromWallet(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, _GoString_ p2, GoSlice p3, SWIGTYPE_p_PasswordReader__Handle p4, SWIGTYPE_p_Transaction__Handle p5) { - uint ret = skycoinPINVOKE.SKY_cli_CreateRawTxFromWallet(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), GoSlice.getCPtr(p3), SWIGTYPE_p_PasswordReader__Handle.getCPtr(p4), SWIGTYPE_p_Transaction__Handle.getCPtr(p5)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cli_CreateRawTxFromAddress(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, _GoString_ p2, _GoString_ p3, GoSlice p4, SWIGTYPE_p_PasswordReader__Handle p5, SWIGTYPE_p_Transaction__Handle p6) { - uint ret = skycoinPINVOKE.SKY_cli_CreateRawTxFromAddress(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), _GoString_.getCPtr(p3), GoSlice.getCPtr(p4), SWIGTYPE_p_PasswordReader__Handle.getCPtr(p5), SWIGTYPE_p_Transaction__Handle.getCPtr(p6)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cli_CreateRawTx(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_Wallet__Handle p1, GoSlice p2, _GoString_ p3, GoSlice p4, GoSlice p5, SWIGTYPE_p_Transaction__Handle p6) { - uint ret = skycoinPINVOKE.SKY_cli_CreateRawTx(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_Wallet__Handle.getCPtr(p1), GoSlice.getCPtr(p2), _GoString_.getCPtr(p3), GoSlice.getCPtr(p4), GoSlice.getCPtr(p5), SWIGTYPE_p_Transaction__Handle.getCPtr(p6)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cli_NewTransaction(GoSlice p0, GoSlice p1, GoSlice p2, SWIGTYPE_p_Transaction__Handle p3) { - uint ret = skycoinPINVOKE.SKY_cli_NewTransaction(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), SWIGTYPE_p_Transaction__Handle.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_file_InitDataDir(_GoString_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_file_InitDataDir(_GoString_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_file_UserHome(SWIGTYPE_p_GoString_ p0) { - uint ret = skycoinPINVOKE.SKY_file_UserHome(SWIGTYPE_p_GoString_.getCPtr(p0)); - return ret; - } - - public static uint SKY_file_ResolveResourceDirectory(_GoString_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_file_ResolveResourceDirectory(_GoString_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_file_DetermineResourcePath(_GoString_ p0, _GoString_ p1, _GoString_ p2, SWIGTYPE_p_GoString_ p3) { - uint ret = skycoinPINVOKE.SKY_file_DetermineResourcePath(_GoString_.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), SWIGTYPE_p_GoString_.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, SWIGTYPE_p_ReadableOutputSet__Handle p2) { - uint ret = skycoinPINVOKE.SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_ReadableOutputSet__Handle.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cli_GetWalletOutputs(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_Wallet__Handle p1, SWIGTYPE_p_ReadableOutputSet__Handle p2) { - uint ret = skycoinPINVOKE.SKY_cli_GetWalletOutputs(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_Wallet__Handle.getCPtr(p1), SWIGTYPE_p_ReadableOutputSet__Handle.getCPtr(p2)); - return ret; - } - - public static uint SKY_testutil_MakeAddress(cipher__Address p0) { - uint ret = skycoinPINVOKE.SKY_testutil_MakeAddress(cipher__Address.getCPtr(p0)); - return ret; - } - - public static uint SKY_secp256k1go_Field_String(secp256k1go__Field p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_String(secp256k1go__Field.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; - } - - public static uint SKY_secp256k1go_Field_Print(secp256k1go__Field p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Print(secp256k1go__Field.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1go_Field_SetB32(secp256k1go__Field p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_SetB32(secp256k1go__Field.getCPtr(p0), GoSlice.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1go_Field_SetBytes(secp256k1go__Field p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_SetBytes(secp256k1go__Field.getCPtr(p0), GoSlice.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1go_Field_SetHex(secp256k1go__Field p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_SetHex(secp256k1go__Field.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1go_Field_IsOdd(secp256k1go__Field p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_IsOdd(secp256k1go__Field.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); - return ret; - } - - public static uint SKY_secp256k1go_Field_IsZero(secp256k1go__Field p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_IsZero(secp256k1go__Field.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); - return ret; - } - - public static uint SKY_secp256k1go_Field_SetInt(secp256k1go__Field p0, uint p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_SetInt(secp256k1go__Field.getCPtr(p0), p1); - return ret; - } - - public static uint SKY_secp256k1go_Field_Normalize(secp256k1go__Field p0) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Normalize(secp256k1go__Field.getCPtr(p0)); - return ret; - } - - public static uint SKY_secp256k1go_Field_GetB32(secp256k1go__Field p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_GetB32(secp256k1go__Field.getCPtr(p0), GoSlice.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1go_Field_Equals(secp256k1go__Field p0, secp256k1go__Field p1, SWIGTYPE_p_unsigned_char p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Equals(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); - return ret; - } - - public static uint SKY_secp256k1go_Field_SetAdd(secp256k1go__Field p0, secp256k1go__Field p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_SetAdd(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1)); - return ret; - } - - public static uint SKY_secp256k1go_Field_MulInt(secp256k1go__Field p0, uint p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_MulInt(secp256k1go__Field.getCPtr(p0), p1); - return ret; - } - - public static uint SKY_secp256k1go_Field_Negate(secp256k1go__Field p0, secp256k1go__Field p1, uint p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Negate(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1), p2); - return ret; - } - - public static uint SKY_secp256k1go_Field_Inv(secp256k1go__Field p0, secp256k1go__Field p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Inv(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1)); - return ret; - } - - public static uint SKY_secp256k1go_Field_Sqrt(secp256k1go__Field p0, secp256k1go__Field p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Sqrt(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1)); - return ret; - } - - public static uint SKY_secp256k1go_Field_InvVar(secp256k1go__Field p0, secp256k1go__Field p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_InvVar(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1)); - return ret; - } - - public static uint SKY_secp256k1go_Field_Mul(secp256k1go__Field p0, secp256k1go__Field p1, secp256k1go__Field p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Mul(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1), secp256k1go__Field.getCPtr(p2)); - return ret; - } - - public static uint SKY_secp256k1go_Field_Sqr(secp256k1go__Field p0, secp256k1go__Field p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Sqr(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1)); - return ret; - } - - public static uint SKY_scrypt_Key(GoSlice p0, GoSlice p1, long p2, long p3, long p4, long p5, SWIGTYPE_p_GoSlice_ p6) { - uint ret = skycoinPINVOKE.SKY_scrypt_Key(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), p2, p3, p4, p5, SWIGTYPE_p_GoSlice_.getCPtr(p6)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cipher_Ripemd160_Set(SWIGTYPE_p_a_20__GoUint8_ p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_cipher_Ripemd160_Set(SWIGTYPE_p_a_20__GoUint8_.getCPtr(p0), GoSlice.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cipher_HashRipemd160(GoSlice p0, SWIGTYPE_p_a_20__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_HashRipemd160(GoSlice.getCPtr(p0), SWIGTYPE_p_a_20__GoUint8_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cipher_SHA256_Set(SWIGTYPE_p_a_32__GoUint8_ p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Set(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), GoSlice.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cipher_SHA256_Hex(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Hex(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; - } - - public static uint SKY_cipher_SHA256_Xor(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_a_32__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Xor(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); - return ret; - } - - public static uint SKY_cipher_SumSHA256(GoSlice p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_SumSHA256(GoSlice.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cipher_SHA256FromHex(_GoString_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_SHA256FromHex(_GoString_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cipher_DoubleSHA256(GoSlice p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_DoubleSHA256(GoSlice.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cipher_AddSHA256(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_a_32__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_cipher_AddSHA256(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); - return ret; - } - - public static uint SKY_cipher_Merkle(GoSlice p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_Merkle(GoSlice.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - return ret; - } - - public static uint SKY_cipher_SHA256_Null(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Null(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_Create_Transaction(SWIGTYPE_p_Transaction__Handle p0) { - uint ret = skycoinPINVOKE.SKY_coin_Create_Transaction(SWIGTYPE_p_Transaction__Handle.getCPtr(p0)); - return ret; - } - - public static uint SKY_coin_Transaction_Copy(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_Transaction__Handle p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_Copy(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_GetTransactionObject(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_p_coin__Transaction p1) { - uint ret = skycoinPINVOKE.SKY_coin_GetTransactionObject(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_p_coin__Transaction.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_Transaction_ResetInputs(SWIGTYPE_p_Transaction__Handle p0, long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_ResetInputs(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); - return ret; - } - - public static uint SKY_coin_Transaction_GetInputsCount(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetInputsCount(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_Transaction_GetInputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, SWIGTYPE_p_a_32__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetInputAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); - return ret; - } - - public static uint SKY_coin_Transaction_SetInputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, SWIGTYPE_p_a_32__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetInputAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); - return ret; - } - - public static uint SKY_coin_Transaction_GetOutputsCount(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetOutputsCount(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_Transaction_GetOutputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, coin__TransactionOutput p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetOutputAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, coin__TransactionOutput.getCPtr(p2)); - return ret; - } - - public static uint SKY_coin_Transaction_SetOutputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, coin__TransactionOutput p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetOutputAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, coin__TransactionOutput.getCPtr(p2)); - return ret; - } - - public static uint SKY_coin_Transaction_GetSignaturesCount(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetSignaturesCount(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_Transaction_GetSignatureAt(SWIGTYPE_p_Transaction__Handle p0, long p1, SWIGTYPE_p_a_65__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetSignatureAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); - return ret; - } - - public static uint SKY_coin_Transaction_SetSignatureAt(SWIGTYPE_p_Transaction__Handle p0, long p1, SWIGTYPE_p_a_65__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetSignatureAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); - return ret; - } - - public static uint SKY_coin_Transaction_PushSignature(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_a_65__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushSignature(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_Transaction_ResetOutputs(SWIGTYPE_p_Transaction__Handle p0, long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_ResetOutputs(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); - return ret; - } - - public static uint SKY_coin_Transaction_ResetSignatures(SWIGTYPE_p_Transaction__Handle p0, long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_ResetSignatures(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); - return ret; - } - - public static uint SKY_coin_Transaction_Verify(SWIGTYPE_p_Transaction__Handle p0) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_Verify(SWIGTYPE_p_Transaction__Handle.getCPtr(p0)); - return ret; - } - - public static uint SKY_coin_Transaction_VerifyInput(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_VerifyInput(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_Transaction_PushInput(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_unsigned_short p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushInput(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_unsigned_short.getCPtr(p2)); - return ret; - } - - public static uint SKY_coin_TransactionOutput_UxID(coin__TransactionOutput p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_a_32__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_TransactionOutput_UxID(coin__TransactionOutput.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); - return ret; - } - - public static uint SKY_coin_Transaction_PushOutput(SWIGTYPE_p_Transaction__Handle p0, cipher__Address p1, ulong p2, ulong p3) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushOutput(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), cipher__Address.getCPtr(p1), p2, p3); - return ret; - } - - public static uint SKY_coin_Transaction_SignInputs(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_SignInputs(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_coin_Transaction_Size(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_Size(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_Transaction_Hash(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_Hash(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_Transaction_SizeHash(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1, SWIGTYPE_p_a_32__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_SizeHash(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); - return ret; - } - - public static uint SKY_coin_Transaction_TxID(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_TxID(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_Transaction_TxIDHex(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_TxIDHex(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_Transaction_UpdateHeader(SWIGTYPE_p_Transaction__Handle p0) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_UpdateHeader(SWIGTYPE_p_Transaction__Handle.getCPtr(p0)); - return ret; - } - - public static uint SKY_coin_Transaction_HashInner(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_HashInner(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_Transaction_Serialize(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_Serialize(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_TransactionDeserialize(GoSlice p0, SWIGTYPE_p_Transaction__Handle p1) { - uint ret = skycoinPINVOKE.SKY_coin_TransactionDeserialize(GoSlice.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_coin_Transaction_OutputHours(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_OutputHours(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_Create_Transactions(SWIGTYPE_p_Transactions__Handle p0) { - uint ret = skycoinPINVOKE.SKY_coin_Create_Transactions(SWIGTYPE_p_Transactions__Handle.getCPtr(p0)); - return ret; - } - - public static uint SKY_coin_GetTransactionsObject(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_GetTransactionsObject(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_p_GoSlice_.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_Transactions_Length(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transactions_Length(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_Transactions_Add(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_Transaction__Handle p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transactions_Add(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_Transactions_Fees(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_FeeCalculator p1, SWIGTYPE_p_unsigned_long_long p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transactions_Fees(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1), SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); - return ret; - } - - public static uint SKY_coin_Transactions_GetAt(SWIGTYPE_p_Transactions__Handle p0, long p1, SWIGTYPE_p_Transaction__Handle p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transactions_GetAt(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), p1, SWIGTYPE_p_Transaction__Handle.getCPtr(p2)); - return ret; - } - - public static uint SKY_coin_Transactions_Hashes(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transactions_Hashes(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_Transactions_Size(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transactions_Size(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_Transactions_TruncateBytesTo(SWIGTYPE_p_Transactions__Handle p0, long p1, SWIGTYPE_p_Transactions__Handle p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transactions_TruncateBytesTo(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), p1, SWIGTYPE_p_Transactions__Handle.getCPtr(p2)); - return ret; - } - - public static uint SKY_coin_SortTransactions(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_FeeCalculator p1, SWIGTYPE_p_Transactions__Handle p2) { - uint ret = skycoinPINVOKE.SKY_coin_SortTransactions(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1), SWIGTYPE_p_Transactions__Handle.getCPtr(p2)); - return ret; - } - - public static uint SKY_coin_NewSortableTransactions(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_FeeCalculator p1, SWIGTYPE_p_SortableTransactionResult_Handle p2) { - uint ret = skycoinPINVOKE.SKY_coin_NewSortableTransactions(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1), SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p2)); - return ret; - } - - public static uint SKY_coin_SortableTransactions_Sort(SWIGTYPE_p_SortableTransactionResult_Handle p0) { - uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Sort(SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p0)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_coin_SortableTransactions_Len(SWIGTYPE_p_SortableTransactionResult_Handle p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Len(SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_coin_SortableTransactions_Less(SWIGTYPE_p_SortableTransactionResult_Handle p0, long p1, long p2, SWIGTYPE_p_unsigned_char p3) { - uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Less(SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p0), p1, p2, SWIGTYPE_p_unsigned_char.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_coin_SortableTransactions_Swap(SWIGTYPE_p_SortableTransactionResult_Handle p0, long p1, long p2) { - uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Swap(SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p0), p1, p2); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_coin_VerifyTransactionCoinsSpending(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_VerifyTransactionCoinsSpending(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; - } - - public static uint SKY_coin_VerifyTransactionHoursSpending(ulong p0, SWIGTYPE_p_GoSlice_ p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_VerifyTransactionHoursSpending(p0, SWIGTYPE_p_GoSlice_.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - return ret; - } - - public static readonly long SKY_ErrVerifySignatureInvalidPubkeysLength = skycoinPINVOKE.SKY_ErrVerifySignatureInvalidPubkeysLength_get(); - public static readonly long SKY_OK = skycoinPINVOKE.SKY_OK_get(); - public static readonly long SKY_ERROR = skycoinPINVOKE.SKY_ERROR_get(); - public static readonly long SKY_PKG_API = skycoinPINVOKE.SKY_PKG_API_get(); - public static readonly long SKY_PKG_CIPHER = skycoinPINVOKE.SKY_PKG_CIPHER_get(); - public static readonly long SKY_PKG_CLI = skycoinPINVOKE.SKY_PKG_CLI_get(); - public static readonly long SKY_PKG_COIN = skycoinPINVOKE.SKY_PKG_COIN_get(); - public static readonly long SKY_PKG_CONSENSUS = skycoinPINVOKE.SKY_PKG_CONSENSUS_get(); - public static readonly long SKY_PKG_DAEMON = skycoinPINVOKE.SKY_PKG_DAEMON_get(); - public static readonly long SKY_PKG_GUI = skycoinPINVOKE.SKY_PKG_GUI_get(); - public static readonly long SKY_PKG_SKYCOIN = skycoinPINVOKE.SKY_PKG_SKYCOIN_get(); - public static readonly long SKY_PKG_UTIL = skycoinPINVOKE.SKY_PKG_UTIL_get(); - public static readonly long SKY_PKG_VISOR = skycoinPINVOKE.SKY_PKG_VISOR_get(); - public static readonly long SKY_PKG_WALLET = skycoinPINVOKE.SKY_PKG_WALLET_get(); - public static readonly long SKY_ErrAddressInvalidLength = skycoinPINVOKE.SKY_ErrAddressInvalidLength_get(); - public static readonly long SKY_ErrAddressInvalidChecksum = skycoinPINVOKE.SKY_ErrAddressInvalidChecksum_get(); - public static readonly long SKY_ErrAddressInvalidVersion = skycoinPINVOKE.SKY_ErrAddressInvalidVersion_get(); - public static readonly long SKY_ErrAddressInvalidPubKey = skycoinPINVOKE.SKY_ErrAddressInvalidPubKey_get(); - public static readonly long SKY_ErrAddressInvalidFirstByte = skycoinPINVOKE.SKY_ErrAddressInvalidFirstByte_get(); - public static readonly long SKY_ErrAddressInvalidLastByte = skycoinPINVOKE.SKY_ErrAddressInvalidLastByte_get(); - public static readonly long SKY_ErrBufferUnderflow = skycoinPINVOKE.SKY_ErrBufferUnderflow_get(); - public static readonly long SKY_ErrInvalidOmitEmpty = skycoinPINVOKE.SKY_ErrInvalidOmitEmpty_get(); - public static readonly long SKY_ErrInvalidLengthPubKey = skycoinPINVOKE.SKY_ErrInvalidLengthPubKey_get(); - public static readonly long SKY_ErrPubKeyFromNullSecKey = skycoinPINVOKE.SKY_ErrPubKeyFromNullSecKey_get(); - public static readonly long SKY_ErrPubKeyFromBadSecKey = skycoinPINVOKE.SKY_ErrPubKeyFromBadSecKey_get(); - public static readonly long SKY_ErrInvalidLengthSecKey = skycoinPINVOKE.SKY_ErrInvalidLengthSecKey_get(); - public static readonly long SKY_ErrECHDInvalidPubKey = skycoinPINVOKE.SKY_ErrECHDInvalidPubKey_get(); - public static readonly long SKY_ErrECHDInvalidSecKey = skycoinPINVOKE.SKY_ErrECHDInvalidSecKey_get(); - public static readonly long SKY_ErrInvalidLengthSig = skycoinPINVOKE.SKY_ErrInvalidLengthSig_get(); - public static readonly long SKY_ErrInvalidLengthRipemd160 = skycoinPINVOKE.SKY_ErrInvalidLengthRipemd160_get(); - public static readonly long SKY_ErrInvalidLengthSHA256 = skycoinPINVOKE.SKY_ErrInvalidLengthSHA256_get(); - public static readonly long SKY_ErrInvalidBase58Char = skycoinPINVOKE.SKY_ErrInvalidBase58Char_get(); - public static readonly long SKY_ErrInvalidBase58String = skycoinPINVOKE.SKY_ErrInvalidBase58String_get(); - public static readonly long SKY_ErrInvalidBase58Length = skycoinPINVOKE.SKY_ErrInvalidBase58Length_get(); - public static readonly long SKY_ErrInvalidHexLength = skycoinPINVOKE.SKY_ErrInvalidHexLength_get(); - public static readonly long SKY_ErrInvalidBytesLength = skycoinPINVOKE.SKY_ErrInvalidBytesLength_get(); - public static readonly long SKY_ErrInvalidPubKey = skycoinPINVOKE.SKY_ErrInvalidPubKey_get(); - public static readonly long SKY_ErrInvalidSecKey = skycoinPINVOKE.SKY_ErrInvalidSecKey_get(); - public static readonly long SKY_ErrInvalidSigForPubKey = skycoinPINVOKE.SKY_ErrInvalidSigForPubKey_get(); - public static readonly long SKY_ErrInvalidSecKeyHex = skycoinPINVOKE.SKY_ErrInvalidSecKeyHex_get(); - public static readonly long SKY_ErrInvalidAddressForSig = skycoinPINVOKE.SKY_ErrInvalidAddressForSig_get(); - public static readonly long SKY_ErrInvalidHashForSig = skycoinPINVOKE.SKY_ErrInvalidHashForSig_get(); - public static readonly long SKY_ErrPubKeyRecoverMismatch = skycoinPINVOKE.SKY_ErrPubKeyRecoverMismatch_get(); - public static readonly long SKY_ErrInvalidSigInvalidPubKey = skycoinPINVOKE.SKY_ErrInvalidSigInvalidPubKey_get(); - public static readonly long SKY_ErrInvalidSigValidity = skycoinPINVOKE.SKY_ErrInvalidSigValidity_get(); - public static readonly long SKY_ErrInvalidSigForMessage = skycoinPINVOKE.SKY_ErrInvalidSigForMessage_get(); - public static readonly long SKY_ErrInvalidSecKyVerification = skycoinPINVOKE.SKY_ErrInvalidSecKyVerification_get(); - public static readonly long SKY_ErrNullPubKeyFromSecKey = skycoinPINVOKE.SKY_ErrNullPubKeyFromSecKey_get(); - public static readonly long SKY_ErrInvalidDerivedPubKeyFromSecKey = skycoinPINVOKE.SKY_ErrInvalidDerivedPubKeyFromSecKey_get(); - public static readonly long SKY_ErrInvalidPubKeyFromHash = skycoinPINVOKE.SKY_ErrInvalidPubKeyFromHash_get(); - public static readonly long SKY_ErrPubKeyFromSecKeyMissmatch = skycoinPINVOKE.SKY_ErrPubKeyFromSecKeyMissmatch_get(); - public static readonly long SKY_ErrTemporaryInsufficientBalance = skycoinPINVOKE.SKY_ErrTemporaryInsufficientBalance_get(); - public static readonly long SKY_ErrAddress = skycoinPINVOKE.SKY_ErrAddress_get(); - public static readonly long SKY_ErrWalletName = skycoinPINVOKE.SKY_ErrWalletName_get(); - public static readonly long SKY_ErrJSONMarshal = skycoinPINVOKE.SKY_ErrJSONMarshal_get(); - public static readonly long SKY_WalletLoadError = skycoinPINVOKE.SKY_WalletLoadError_get(); - public static readonly long SKY_WalletSaveError = skycoinPINVOKE.SKY_WalletSaveError_get(); - public static readonly long SKY_ErrAddEarnedCoinHoursAdditionOverflow = skycoinPINVOKE.SKY_ErrAddEarnedCoinHoursAdditionOverflow_get(); - public static readonly long SKY_ErrUint64MultOverflow = skycoinPINVOKE.SKY_ErrUint64MultOverflow_get(); - public static readonly long SKY_ErrUint64AddOverflow = skycoinPINVOKE.SKY_ErrUint64AddOverflow_get(); - public static readonly long SKY_ErrUint32AddOverflow = skycoinPINVOKE.SKY_ErrUint32AddOverflow_get(); - public static readonly long SKY_ErrUint64OverflowsInt64 = skycoinPINVOKE.SKY_ErrUint64OverflowsInt64_get(); - public static readonly long SKY_ErrInt64UnderflowsUint64 = skycoinPINVOKE.SKY_ErrInt64UnderflowsUint64_get(); - public static readonly long SKY_ErrPeerlistFull = skycoinPINVOKE.SKY_ErrPeerlistFull_get(); - public static readonly long SKY_ErrInvalidAddress = skycoinPINVOKE.SKY_ErrInvalidAddress_get(); - public static readonly long SKY_ErrNoLocalhost = skycoinPINVOKE.SKY_ErrNoLocalhost_get(); - public static readonly long SKY_ErrNotExternalIP = skycoinPINVOKE.SKY_ErrNotExternalIP_get(); - public static readonly long SKY_ErrPortTooLow = skycoinPINVOKE.SKY_ErrPortTooLow_get(); - public static readonly long SKY_ErrBlacklistedAddress = skycoinPINVOKE.SKY_ErrBlacklistedAddress_get(); - public static readonly long SKY_ErrDisconnectReadFailed = skycoinPINVOKE.SKY_ErrDisconnectReadFailed_get(); - public static readonly long SKY_ErrDisconnectWriteFailed = skycoinPINVOKE.SKY_ErrDisconnectWriteFailed_get(); - public static readonly long SKY_ErrDisconnectSetReadDeadlineFailed = skycoinPINVOKE.SKY_ErrDisconnectSetReadDeadlineFailed_get(); - public static readonly long SKY_ErrDisconnectInvalidMessageLength = skycoinPINVOKE.SKY_ErrDisconnectInvalidMessageLength_get(); - public static readonly long SKY_ErrDisconnectMalformedMessage = skycoinPINVOKE.SKY_ErrDisconnectMalformedMessage_get(); - public static readonly long SKY_ErrDisconnectUnknownMessage = skycoinPINVOKE.SKY_ErrDisconnectUnknownMessage_get(); - public static readonly long SKY_ErrDisconnectUnexpectedError = skycoinPINVOKE.SKY_ErrDisconnectUnexpectedError_get(); - public static readonly long SKY_ErrConnectionPoolClosed = skycoinPINVOKE.SKY_ErrConnectionPoolClosed_get(); - public static readonly long SKY_ErrWriteQueueFull = skycoinPINVOKE.SKY_ErrWriteQueueFull_get(); - public static readonly long SKY_ErrNoReachableConnections = skycoinPINVOKE.SKY_ErrNoReachableConnections_get(); - public static readonly long SKY_ErrMaxDefaultConnectionsReached = skycoinPINVOKE.SKY_ErrMaxDefaultConnectionsReached_get(); - public static readonly long SKY_ErrDisconnectInvalidVersion = skycoinPINVOKE.SKY_ErrDisconnectInvalidVersion_get(); - public static readonly long SKY_ErrDisconnectIntroductionTimeout = skycoinPINVOKE.SKY_ErrDisconnectIntroductionTimeout_get(); - public static readonly long SKY_ErrDisconnectVersionSendFailed = skycoinPINVOKE.SKY_ErrDisconnectVersionSendFailed_get(); - public static readonly long SKY_ErrDisconnectIsBlacklisted = skycoinPINVOKE.SKY_ErrDisconnectIsBlacklisted_get(); - public static readonly long SKY_ErrDisconnectSelf = skycoinPINVOKE.SKY_ErrDisconnectSelf_get(); - public static readonly long SKY_ErrDisconnectConnectedTwice = skycoinPINVOKE.SKY_ErrDisconnectConnectedTwice_get(); - public static readonly long SKY_ErrDisconnectIdle = skycoinPINVOKE.SKY_ErrDisconnectIdle_get(); - public static readonly long SKY_ErrDisconnectNoIntroduction = skycoinPINVOKE.SKY_ErrDisconnectNoIntroduction_get(); - public static readonly long SKY_ErrDisconnectIPLimitReached = skycoinPINVOKE.SKY_ErrDisconnectIPLimitReached_get(); - public static readonly long SKY_ErrDisconnectOtherError = skycoinPINVOKE.SKY_ErrDisconnectOtherError_get(); - public static readonly long SKY_ErrDisconnectMaxDefaultConnectionReached = skycoinPINVOKE.SKY_ErrDisconnectMaxDefaultConnectionReached_get(); - public static readonly long SKY_ErrDisconnectMaxOutgoingConnectionsReached = skycoinPINVOKE.SKY_ErrDisconnectMaxOutgoingConnectionsReached_get(); - public static readonly long SKY_ConnectionError = skycoinPINVOKE.SKY_ConnectionError_get(); - public static readonly long SKY_ErrTxnNoFee = skycoinPINVOKE.SKY_ErrTxnNoFee_get(); - public static readonly long SKY_ErrTxnInsufficientFee = skycoinPINVOKE.SKY_ErrTxnInsufficientFee_get(); - public static readonly long SKY_ErrTxnInsufficientCoinHours = skycoinPINVOKE.SKY_ErrTxnInsufficientCoinHours_get(); - public static readonly long SKY_ErrNegativeValue = skycoinPINVOKE.SKY_ErrNegativeValue_get(); - public static readonly long SKY_ErrTooManyDecimals = skycoinPINVOKE.SKY_ErrTooManyDecimals_get(); - public static readonly long SKY_ErrTooLarge = skycoinPINVOKE.SKY_ErrTooLarge_get(); - public static readonly long SKY_ErrEmptyDirectoryName = skycoinPINVOKE.SKY_ErrEmptyDirectoryName_get(); - public static readonly long SKY_ErrDotDirectoryName = skycoinPINVOKE.SKY_ErrDotDirectoryName_get(); - public static readonly long SKY_ErrHistoryDBCorrupted = skycoinPINVOKE.SKY_ErrHistoryDBCorrupted_get(); - public static readonly long SKY_ErrUxOutNotExist = skycoinPINVOKE.SKY_ErrUxOutNotExist_get(); - public static readonly long SKY_ErrNoHeadBlock = skycoinPINVOKE.SKY_ErrNoHeadBlock_get(); - public static readonly long SKY_ErrMissingSignature = skycoinPINVOKE.SKY_ErrMissingSignature_get(); - public static readonly long SKY_ErrUnspentNotExist = skycoinPINVOKE.SKY_ErrUnspentNotExist_get(); - public static readonly long SKY_ErrVerifyStopped = skycoinPINVOKE.SKY_ErrVerifyStopped_get(); - public static readonly long SKY_ErrCreateBucketFailed = skycoinPINVOKE.SKY_ErrCreateBucketFailed_get(); - public static readonly long SKY_ErrBucketNotExist = skycoinPINVOKE.SKY_ErrBucketNotExist_get(); - public static readonly long SKY_ErrTxnViolatesHardConstraint = skycoinPINVOKE.SKY_ErrTxnViolatesHardConstraint_get(); - public static readonly long SKY_ErrTxnViolatesSoftConstraint = skycoinPINVOKE.SKY_ErrTxnViolatesSoftConstraint_get(); - public static readonly long SKY_ErrTxnViolatesUserConstraint = skycoinPINVOKE.SKY_ErrTxnViolatesUserConstraint_get(); - public static readonly long SKY_ErrInsufficientBalance = skycoinPINVOKE.SKY_ErrInsufficientBalance_get(); - public static readonly long SKY_ErrInsufficientHours = skycoinPINVOKE.SKY_ErrInsufficientHours_get(); - public static readonly long SKY_ErrZeroSpend = skycoinPINVOKE.SKY_ErrZeroSpend_get(); - public static readonly long SKY_ErrSpendingUnconfirmed = skycoinPINVOKE.SKY_ErrSpendingUnconfirmed_get(); - public static readonly long SKY_ErrInvalidEncryptedField = skycoinPINVOKE.SKY_ErrInvalidEncryptedField_get(); - public static readonly long SKY_ErrWalletEncrypted = skycoinPINVOKE.SKY_ErrWalletEncrypted_get(); - public static readonly long SKY_ErrWalletNotEncrypted = skycoinPINVOKE.SKY_ErrWalletNotEncrypted_get(); - public static readonly long SKY_ErrMissingPassword = skycoinPINVOKE.SKY_ErrMissingPassword_get(); - public static readonly long SKY_ErrMissingEncrypt = skycoinPINVOKE.SKY_ErrMissingEncrypt_get(); - public static readonly long SKY_ErrInvalidPassword = skycoinPINVOKE.SKY_ErrInvalidPassword_get(); - public static readonly long SKY_ErrMissingSeed = skycoinPINVOKE.SKY_ErrMissingSeed_get(); - public static readonly long SKY_ErrMissingAuthenticated = skycoinPINVOKE.SKY_ErrMissingAuthenticated_get(); - public static readonly long SKY_ErrWrongCryptoType = skycoinPINVOKE.SKY_ErrWrongCryptoType_get(); - public static readonly long SKY_ErrWalletNotExist = skycoinPINVOKE.SKY_ErrWalletNotExist_get(); - public static readonly long SKY_ErrSeedUsed = skycoinPINVOKE.SKY_ErrSeedUsed_get(); - public static readonly long SKY_ErrWalletAPIDisabled = skycoinPINVOKE.SKY_ErrWalletAPIDisabled_get(); - public static readonly long SKY_ErrSeedAPIDisabled = skycoinPINVOKE.SKY_ErrSeedAPIDisabled_get(); - public static readonly long SKY_ErrWalletNameConflict = skycoinPINVOKE.SKY_ErrWalletNameConflict_get(); - public static readonly long SKY_ErrInvalidHoursSelectionMode = skycoinPINVOKE.SKY_ErrInvalidHoursSelectionMode_get(); - public static readonly long SKY_ErrInvalidHoursSelectionType = skycoinPINVOKE.SKY_ErrInvalidHoursSelectionType_get(); - public static readonly long SKY_ErrUnknownAddress = skycoinPINVOKE.SKY_ErrUnknownAddress_get(); - public static readonly long SKY_ErrUnknownUxOut = skycoinPINVOKE.SKY_ErrUnknownUxOut_get(); - public static readonly long SKY_ErrNoUnspents = skycoinPINVOKE.SKY_ErrNoUnspents_get(); - public static readonly long SKY_ErrNullChangeAddress = skycoinPINVOKE.SKY_ErrNullChangeAddress_get(); - public static readonly long SKY_ErrMissingTo = skycoinPINVOKE.SKY_ErrMissingTo_get(); - public static readonly long SKY_ErrZeroCoinsTo = skycoinPINVOKE.SKY_ErrZeroCoinsTo_get(); - public static readonly long SKY_ErrNullAddressTo = skycoinPINVOKE.SKY_ErrNullAddressTo_get(); - public static readonly long SKY_ErrDuplicateTo = skycoinPINVOKE.SKY_ErrDuplicateTo_get(); - public static readonly long SKY_ErrMissingWalletID = skycoinPINVOKE.SKY_ErrMissingWalletID_get(); - public static readonly long SKY_ErrIncludesNullAddress = skycoinPINVOKE.SKY_ErrIncludesNullAddress_get(); - public static readonly long SKY_ErrDuplicateAddresses = skycoinPINVOKE.SKY_ErrDuplicateAddresses_get(); - public static readonly long SKY_ErrZeroToHoursAuto = skycoinPINVOKE.SKY_ErrZeroToHoursAuto_get(); - public static readonly long SKY_ErrMissingModeAuto = skycoinPINVOKE.SKY_ErrMissingModeAuto_get(); - public static readonly long SKY_ErrInvalidHoursSelMode = skycoinPINVOKE.SKY_ErrInvalidHoursSelMode_get(); - public static readonly long SKY_ErrInvalidModeManual = skycoinPINVOKE.SKY_ErrInvalidModeManual_get(); - public static readonly long SKY_ErrInvalidHoursSelType = skycoinPINVOKE.SKY_ErrInvalidHoursSelType_get(); - public static readonly long SKY_ErrMissingShareFactor = skycoinPINVOKE.SKY_ErrMissingShareFactor_get(); - public static readonly long SKY_ErrInvalidShareFactor = skycoinPINVOKE.SKY_ErrInvalidShareFactor_get(); - public static readonly long SKY_ErrShareFactorOutOfRange = skycoinPINVOKE.SKY_ErrShareFactorOutOfRange_get(); - public static readonly long SKY_ErrWalletConstraint = skycoinPINVOKE.SKY_ErrWalletConstraint_get(); - public static readonly long SKY_ErrDuplicateUxOuts = skycoinPINVOKE.SKY_ErrDuplicateUxOuts_get(); - public static readonly long SKY_ErrUnknownWalletID = skycoinPINVOKE.SKY_ErrUnknownWalletID_get(); - public static readonly long SKY_ErrSHA256orMissingPassword = skycoinPINVOKE.SKY_ErrSHA256orMissingPassword_get(); - public static readonly long SKY_ErrSHA256LenghtDataOverflowMaxUint32 = skycoinPINVOKE.SKY_ErrSHA256LenghtDataOverflowMaxUint32_get(); -} - -} diff --git a/LibskycoinNet/skycoin1/skycoinPINVOKE.cs b/LibskycoinNet/skycoin1/skycoinPINVOKE.cs deleted file mode 100644 index ae7dc3f6..00000000 --- a/LibskycoinNet/skycoin1/skycoinPINVOKE.cs +++ /dev/null @@ -1,3039 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -class skycoinPINVOKE { - - protected class SWIGExceptionHelper { - - public delegate void ExceptionDelegate(string message); - public delegate void ExceptionArgumentDelegate(string message, string paramName); - - static ExceptionDelegate applicationDelegate = new ExceptionDelegate(SetPendingApplicationException); - static ExceptionDelegate arithmeticDelegate = new ExceptionDelegate(SetPendingArithmeticException); - static ExceptionDelegate divideByZeroDelegate = new ExceptionDelegate(SetPendingDivideByZeroException); - static ExceptionDelegate indexOutOfRangeDelegate = new ExceptionDelegate(SetPendingIndexOutOfRangeException); - static ExceptionDelegate invalidCastDelegate = new ExceptionDelegate(SetPendingInvalidCastException); - static ExceptionDelegate invalidOperationDelegate = new ExceptionDelegate(SetPendingInvalidOperationException); - static ExceptionDelegate ioDelegate = new ExceptionDelegate(SetPendingIOException); - static ExceptionDelegate nullReferenceDelegate = new ExceptionDelegate(SetPendingNullReferenceException); - static ExceptionDelegate outOfMemoryDelegate = new ExceptionDelegate(SetPendingOutOfMemoryException); - static ExceptionDelegate overflowDelegate = new ExceptionDelegate(SetPendingOverflowException); - static ExceptionDelegate systemDelegate = new ExceptionDelegate(SetPendingSystemException); - - static ExceptionArgumentDelegate argumentDelegate = new ExceptionArgumentDelegate(SetPendingArgumentException); - static ExceptionArgumentDelegate argumentNullDelegate = new ExceptionArgumentDelegate(SetPendingArgumentNullException); - static ExceptionArgumentDelegate argumentOutOfRangeDelegate = new ExceptionArgumentDelegate(SetPendingArgumentOutOfRangeException); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="SWIGRegisterExceptionCallbacks_skycoin")] - public static extern void SWIGRegisterExceptionCallbacks_skycoin( - ExceptionDelegate applicationDelegate, - ExceptionDelegate arithmeticDelegate, - ExceptionDelegate divideByZeroDelegate, - ExceptionDelegate indexOutOfRangeDelegate, - ExceptionDelegate invalidCastDelegate, - ExceptionDelegate invalidOperationDelegate, - ExceptionDelegate ioDelegate, - ExceptionDelegate nullReferenceDelegate, - ExceptionDelegate outOfMemoryDelegate, - ExceptionDelegate overflowDelegate, - ExceptionDelegate systemExceptionDelegate); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="SWIGRegisterExceptionArgumentCallbacks_skycoin")] - public static extern void SWIGRegisterExceptionCallbacksArgument_skycoin( - ExceptionArgumentDelegate argumentDelegate, - ExceptionArgumentDelegate argumentNullDelegate, - ExceptionArgumentDelegate argumentOutOfRangeDelegate); - - static void SetPendingApplicationException(string message) { - SWIGPendingException.Set(new global::System.ApplicationException(message, SWIGPendingException.Retrieve())); - } - static void SetPendingArithmeticException(string message) { - SWIGPendingException.Set(new global::System.ArithmeticException(message, SWIGPendingException.Retrieve())); - } - static void SetPendingDivideByZeroException(string message) { - SWIGPendingException.Set(new global::System.DivideByZeroException(message, SWIGPendingException.Retrieve())); - } - static void SetPendingIndexOutOfRangeException(string message) { - SWIGPendingException.Set(new global::System.IndexOutOfRangeException(message, SWIGPendingException.Retrieve())); - } - static void SetPendingInvalidCastException(string message) { - SWIGPendingException.Set(new global::System.InvalidCastException(message, SWIGPendingException.Retrieve())); - } - static void SetPendingInvalidOperationException(string message) { - SWIGPendingException.Set(new global::System.InvalidOperationException(message, SWIGPendingException.Retrieve())); - } - static void SetPendingIOException(string message) { - SWIGPendingException.Set(new global::System.IO.IOException(message, SWIGPendingException.Retrieve())); - } - static void SetPendingNullReferenceException(string message) { - SWIGPendingException.Set(new global::System.NullReferenceException(message, SWIGPendingException.Retrieve())); - } - static void SetPendingOutOfMemoryException(string message) { - SWIGPendingException.Set(new global::System.OutOfMemoryException(message, SWIGPendingException.Retrieve())); - } - static void SetPendingOverflowException(string message) { - SWIGPendingException.Set(new global::System.OverflowException(message, SWIGPendingException.Retrieve())); - } - static void SetPendingSystemException(string message) { - SWIGPendingException.Set(new global::System.SystemException(message, SWIGPendingException.Retrieve())); - } - - static void SetPendingArgumentException(string message, string paramName) { - SWIGPendingException.Set(new global::System.ArgumentException(message, paramName, SWIGPendingException.Retrieve())); - } - static void SetPendingArgumentNullException(string message, string paramName) { - global::System.Exception e = SWIGPendingException.Retrieve(); - if (e != null) message = message + " Inner Exception: " + e.Message; - SWIGPendingException.Set(new global::System.ArgumentNullException(paramName, message)); - } - static void SetPendingArgumentOutOfRangeException(string message, string paramName) { - global::System.Exception e = SWIGPendingException.Retrieve(); - if (e != null) message = message + " Inner Exception: " + e.Message; - SWIGPendingException.Set(new global::System.ArgumentOutOfRangeException(paramName, message)); - } - - static SWIGExceptionHelper() { - SWIGRegisterExceptionCallbacks_skycoin( - applicationDelegate, - arithmeticDelegate, - divideByZeroDelegate, - indexOutOfRangeDelegate, - invalidCastDelegate, - invalidOperationDelegate, - ioDelegate, - nullReferenceDelegate, - outOfMemoryDelegate, - overflowDelegate, - systemDelegate); - - SWIGRegisterExceptionCallbacksArgument_skycoin( - argumentDelegate, - argumentNullDelegate, - argumentOutOfRangeDelegate); - } - } - - protected static SWIGExceptionHelper swigExceptionHelper = new SWIGExceptionHelper(); - - public class SWIGPendingException { - [global::System.ThreadStatic] - private static global::System.Exception pendingException = null; - private static int numExceptionsPending = 0; - - public static bool Pending { - get { - bool pending = false; - if (numExceptionsPending > 0) - if (pendingException != null) - pending = true; - return pending; - } - } - - public static void Set(global::System.Exception e) { - if (pendingException != null) - throw new global::System.ApplicationException("FATAL: An earlier pending exception from unmanaged code was missed and thus not thrown (" + pendingException.ToString() + ")", e); - pendingException = e; - lock(typeof(skycoinPINVOKE)) { - numExceptionsPending++; - } - } - - public static global::System.Exception Retrieve() { - global::System.Exception e = null; - if (numExceptionsPending > 0) { - if (pendingException != null) { - e = pendingException; - pendingException = null; - lock(typeof(skycoinPINVOKE)) { - numExceptionsPending--; - } - } - } - return e; - } - } - - - protected class SWIGStringHelper { - - public delegate string SWIGStringDelegate(string message); - static SWIGStringDelegate stringDelegate = new SWIGStringDelegate(CreateString); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="SWIGRegisterStringCallback_skycoin")] - public static extern void SWIGRegisterStringCallback_skycoin(SWIGStringDelegate stringDelegate); - - static string CreateString(string cString) { - return cString; - } - - static SWIGStringHelper() { - SWIGRegisterStringCallback_skycoin(stringDelegate); - } - } - - static protected SWIGStringHelper swigStringHelper = new SWIGStringHelper(); - - - static skycoinPINVOKE() { - } - - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_destroy_cipher_SecKeys")] - public static extern void destroy_cipher_SecKeys(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_equalSlices")] - public static extern int equalSlices(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_equalTransactions")] - public static extern int equalTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_equalTransactionsArrays")] - public static extern int equalTransactionsArrays(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_equalBlockHeaders")] - public static extern int equalBlockHeaders(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_PubKeyp")] - public static extern global::System.IntPtr new_cipher_PubKeyp(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_cipher_PubKeyp")] - public static extern global::System.IntPtr copy_cipher_PubKeyp(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_PubKeyp")] - public static extern void delete_cipher_PubKeyp(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeyp_assign")] - public static extern void cipher_PubKeyp_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeyp_value")] - public static extern global::System.IntPtr cipher_PubKeyp_value(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_add")] - public static extern void add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrVerifySignatureInvalidPubkeysLength_get")] - public static extern long SKY_ErrVerifySignatureInvalidPubkeysLength_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_OK_get")] - public static extern long SKY_OK_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ERROR_get")] - public static extern long SKY_ERROR_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_API_get")] - public static extern long SKY_PKG_API_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_CIPHER_get")] - public static extern long SKY_PKG_CIPHER_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_CLI_get")] - public static extern long SKY_PKG_CLI_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_COIN_get")] - public static extern long SKY_PKG_COIN_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_CONSENSUS_get")] - public static extern long SKY_PKG_CONSENSUS_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_DAEMON_get")] - public static extern long SKY_PKG_DAEMON_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_GUI_get")] - public static extern long SKY_PKG_GUI_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_SKYCOIN_get")] - public static extern long SKY_PKG_SKYCOIN_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_UTIL_get")] - public static extern long SKY_PKG_UTIL_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_VISOR_get")] - public static extern long SKY_PKG_VISOR_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_PKG_WALLET_get")] - public static extern long SKY_PKG_WALLET_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrAddressInvalidLength_get")] - public static extern long SKY_ErrAddressInvalidLength_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrAddressInvalidChecksum_get")] - public static extern long SKY_ErrAddressInvalidChecksum_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrAddressInvalidVersion_get")] - public static extern long SKY_ErrAddressInvalidVersion_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrAddressInvalidPubKey_get")] - public static extern long SKY_ErrAddressInvalidPubKey_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrAddressInvalidFirstByte_get")] - public static extern long SKY_ErrAddressInvalidFirstByte_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrAddressInvalidLastByte_get")] - public static extern long SKY_ErrAddressInvalidLastByte_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrBufferUnderflow_get")] - public static extern long SKY_ErrBufferUnderflow_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidOmitEmpty_get")] - public static extern long SKY_ErrInvalidOmitEmpty_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidLengthPubKey_get")] - public static extern long SKY_ErrInvalidLengthPubKey_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrPubKeyFromNullSecKey_get")] - public static extern long SKY_ErrPubKeyFromNullSecKey_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrPubKeyFromBadSecKey_get")] - public static extern long SKY_ErrPubKeyFromBadSecKey_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidLengthSecKey_get")] - public static extern long SKY_ErrInvalidLengthSecKey_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrECHDInvalidPubKey_get")] - public static extern long SKY_ErrECHDInvalidPubKey_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrECHDInvalidSecKey_get")] - public static extern long SKY_ErrECHDInvalidSecKey_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidLengthSig_get")] - public static extern long SKY_ErrInvalidLengthSig_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidLengthRipemd160_get")] - public static extern long SKY_ErrInvalidLengthRipemd160_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidLengthSHA256_get")] - public static extern long SKY_ErrInvalidLengthSHA256_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidBase58Char_get")] - public static extern long SKY_ErrInvalidBase58Char_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidBase58String_get")] - public static extern long SKY_ErrInvalidBase58String_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidBase58Length_get")] - public static extern long SKY_ErrInvalidBase58Length_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidHexLength_get")] - public static extern long SKY_ErrInvalidHexLength_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidBytesLength_get")] - public static extern long SKY_ErrInvalidBytesLength_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidPubKey_get")] - public static extern long SKY_ErrInvalidPubKey_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidSecKey_get")] - public static extern long SKY_ErrInvalidSecKey_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidSigForPubKey_get")] - public static extern long SKY_ErrInvalidSigForPubKey_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidSecKeyHex_get")] - public static extern long SKY_ErrInvalidSecKeyHex_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidAddressForSig_get")] - public static extern long SKY_ErrInvalidAddressForSig_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidHashForSig_get")] - public static extern long SKY_ErrInvalidHashForSig_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrPubKeyRecoverMismatch_get")] - public static extern long SKY_ErrPubKeyRecoverMismatch_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidSigInvalidPubKey_get")] - public static extern long SKY_ErrInvalidSigInvalidPubKey_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidSigValidity_get")] - public static extern long SKY_ErrInvalidSigValidity_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidSigForMessage_get")] - public static extern long SKY_ErrInvalidSigForMessage_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidSecKyVerification_get")] - public static extern long SKY_ErrInvalidSecKyVerification_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrNullPubKeyFromSecKey_get")] - public static extern long SKY_ErrNullPubKeyFromSecKey_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidDerivedPubKeyFromSecKey_get")] - public static extern long SKY_ErrInvalidDerivedPubKeyFromSecKey_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidPubKeyFromHash_get")] - public static extern long SKY_ErrInvalidPubKeyFromHash_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrPubKeyFromSecKeyMissmatch_get")] - public static extern long SKY_ErrPubKeyFromSecKeyMissmatch_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrTemporaryInsufficientBalance_get")] - public static extern long SKY_ErrTemporaryInsufficientBalance_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrAddress_get")] - public static extern long SKY_ErrAddress_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrWalletName_get")] - public static extern long SKY_ErrWalletName_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrJSONMarshal_get")] - public static extern long SKY_ErrJSONMarshal_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_WalletLoadError_get")] - public static extern long SKY_WalletLoadError_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_WalletSaveError_get")] - public static extern long SKY_WalletSaveError_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrAddEarnedCoinHoursAdditionOverflow_get")] - public static extern long SKY_ErrAddEarnedCoinHoursAdditionOverflow_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrUint64MultOverflow_get")] - public static extern long SKY_ErrUint64MultOverflow_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrUint64AddOverflow_get")] - public static extern long SKY_ErrUint64AddOverflow_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrUint32AddOverflow_get")] - public static extern long SKY_ErrUint32AddOverflow_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrUint64OverflowsInt64_get")] - public static extern long SKY_ErrUint64OverflowsInt64_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInt64UnderflowsUint64_get")] - public static extern long SKY_ErrInt64UnderflowsUint64_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrPeerlistFull_get")] - public static extern long SKY_ErrPeerlistFull_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidAddress_get")] - public static extern long SKY_ErrInvalidAddress_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrNoLocalhost_get")] - public static extern long SKY_ErrNoLocalhost_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrNotExternalIP_get")] - public static extern long SKY_ErrNotExternalIP_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrPortTooLow_get")] - public static extern long SKY_ErrPortTooLow_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrBlacklistedAddress_get")] - public static extern long SKY_ErrBlacklistedAddress_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectReadFailed_get")] - public static extern long SKY_ErrDisconnectReadFailed_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectWriteFailed_get")] - public static extern long SKY_ErrDisconnectWriteFailed_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectSetReadDeadlineFailed_get")] - public static extern long SKY_ErrDisconnectSetReadDeadlineFailed_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectInvalidMessageLength_get")] - public static extern long SKY_ErrDisconnectInvalidMessageLength_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectMalformedMessage_get")] - public static extern long SKY_ErrDisconnectMalformedMessage_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectUnknownMessage_get")] - public static extern long SKY_ErrDisconnectUnknownMessage_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectUnexpectedError_get")] - public static extern long SKY_ErrDisconnectUnexpectedError_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrConnectionPoolClosed_get")] - public static extern long SKY_ErrConnectionPoolClosed_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrWriteQueueFull_get")] - public static extern long SKY_ErrWriteQueueFull_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrNoReachableConnections_get")] - public static extern long SKY_ErrNoReachableConnections_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrMaxDefaultConnectionsReached_get")] - public static extern long SKY_ErrMaxDefaultConnectionsReached_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectInvalidVersion_get")] - public static extern long SKY_ErrDisconnectInvalidVersion_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectIntroductionTimeout_get")] - public static extern long SKY_ErrDisconnectIntroductionTimeout_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectVersionSendFailed_get")] - public static extern long SKY_ErrDisconnectVersionSendFailed_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectIsBlacklisted_get")] - public static extern long SKY_ErrDisconnectIsBlacklisted_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectSelf_get")] - public static extern long SKY_ErrDisconnectSelf_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectConnectedTwice_get")] - public static extern long SKY_ErrDisconnectConnectedTwice_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectIdle_get")] - public static extern long SKY_ErrDisconnectIdle_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectNoIntroduction_get")] - public static extern long SKY_ErrDisconnectNoIntroduction_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectIPLimitReached_get")] - public static extern long SKY_ErrDisconnectIPLimitReached_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectOtherError_get")] - public static extern long SKY_ErrDisconnectOtherError_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectMaxDefaultConnectionReached_get")] - public static extern long SKY_ErrDisconnectMaxDefaultConnectionReached_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDisconnectMaxOutgoingConnectionsReached_get")] - public static extern long SKY_ErrDisconnectMaxOutgoingConnectionsReached_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ConnectionError_get")] - public static extern long SKY_ConnectionError_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrTxnNoFee_get")] - public static extern long SKY_ErrTxnNoFee_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrTxnInsufficientFee_get")] - public static extern long SKY_ErrTxnInsufficientFee_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrTxnInsufficientCoinHours_get")] - public static extern long SKY_ErrTxnInsufficientCoinHours_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrNegativeValue_get")] - public static extern long SKY_ErrNegativeValue_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrTooManyDecimals_get")] - public static extern long SKY_ErrTooManyDecimals_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrTooLarge_get")] - public static extern long SKY_ErrTooLarge_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrEmptyDirectoryName_get")] - public static extern long SKY_ErrEmptyDirectoryName_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDotDirectoryName_get")] - public static extern long SKY_ErrDotDirectoryName_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrHistoryDBCorrupted_get")] - public static extern long SKY_ErrHistoryDBCorrupted_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrUxOutNotExist_get")] - public static extern long SKY_ErrUxOutNotExist_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrNoHeadBlock_get")] - public static extern long SKY_ErrNoHeadBlock_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrMissingSignature_get")] - public static extern long SKY_ErrMissingSignature_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrUnspentNotExist_get")] - public static extern long SKY_ErrUnspentNotExist_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrVerifyStopped_get")] - public static extern long SKY_ErrVerifyStopped_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrCreateBucketFailed_get")] - public static extern long SKY_ErrCreateBucketFailed_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrBucketNotExist_get")] - public static extern long SKY_ErrBucketNotExist_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrTxnViolatesHardConstraint_get")] - public static extern long SKY_ErrTxnViolatesHardConstraint_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrTxnViolatesSoftConstraint_get")] - public static extern long SKY_ErrTxnViolatesSoftConstraint_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrTxnViolatesUserConstraint_get")] - public static extern long SKY_ErrTxnViolatesUserConstraint_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInsufficientBalance_get")] - public static extern long SKY_ErrInsufficientBalance_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInsufficientHours_get")] - public static extern long SKY_ErrInsufficientHours_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrZeroSpend_get")] - public static extern long SKY_ErrZeroSpend_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrSpendingUnconfirmed_get")] - public static extern long SKY_ErrSpendingUnconfirmed_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidEncryptedField_get")] - public static extern long SKY_ErrInvalidEncryptedField_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrWalletEncrypted_get")] - public static extern long SKY_ErrWalletEncrypted_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrWalletNotEncrypted_get")] - public static extern long SKY_ErrWalletNotEncrypted_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrMissingPassword_get")] - public static extern long SKY_ErrMissingPassword_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrMissingEncrypt_get")] - public static extern long SKY_ErrMissingEncrypt_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidPassword_get")] - public static extern long SKY_ErrInvalidPassword_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrMissingSeed_get")] - public static extern long SKY_ErrMissingSeed_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrMissingAuthenticated_get")] - public static extern long SKY_ErrMissingAuthenticated_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrWrongCryptoType_get")] - public static extern long SKY_ErrWrongCryptoType_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrWalletNotExist_get")] - public static extern long SKY_ErrWalletNotExist_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrSeedUsed_get")] - public static extern long SKY_ErrSeedUsed_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrWalletAPIDisabled_get")] - public static extern long SKY_ErrWalletAPIDisabled_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrSeedAPIDisabled_get")] - public static extern long SKY_ErrSeedAPIDisabled_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrWalletNameConflict_get")] - public static extern long SKY_ErrWalletNameConflict_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidHoursSelectionMode_get")] - public static extern long SKY_ErrInvalidHoursSelectionMode_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidHoursSelectionType_get")] - public static extern long SKY_ErrInvalidHoursSelectionType_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrUnknownAddress_get")] - public static extern long SKY_ErrUnknownAddress_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrUnknownUxOut_get")] - public static extern long SKY_ErrUnknownUxOut_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrNoUnspents_get")] - public static extern long SKY_ErrNoUnspents_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrNullChangeAddress_get")] - public static extern long SKY_ErrNullChangeAddress_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrMissingTo_get")] - public static extern long SKY_ErrMissingTo_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrZeroCoinsTo_get")] - public static extern long SKY_ErrZeroCoinsTo_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrNullAddressTo_get")] - public static extern long SKY_ErrNullAddressTo_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDuplicateTo_get")] - public static extern long SKY_ErrDuplicateTo_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrMissingWalletID_get")] - public static extern long SKY_ErrMissingWalletID_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrIncludesNullAddress_get")] - public static extern long SKY_ErrIncludesNullAddress_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDuplicateAddresses_get")] - public static extern long SKY_ErrDuplicateAddresses_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrZeroToHoursAuto_get")] - public static extern long SKY_ErrZeroToHoursAuto_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrMissingModeAuto_get")] - public static extern long SKY_ErrMissingModeAuto_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidHoursSelMode_get")] - public static extern long SKY_ErrInvalidHoursSelMode_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidModeManual_get")] - public static extern long SKY_ErrInvalidModeManual_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidHoursSelType_get")] - public static extern long SKY_ErrInvalidHoursSelType_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrMissingShareFactor_get")] - public static extern long SKY_ErrMissingShareFactor_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrInvalidShareFactor_get")] - public static extern long SKY_ErrInvalidShareFactor_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrShareFactorOutOfRange_get")] - public static extern long SKY_ErrShareFactorOutOfRange_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrWalletConstraint_get")] - public static extern long SKY_ErrWalletConstraint_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrDuplicateUxOuts_get")] - public static extern long SKY_ErrDuplicateUxOuts_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrUnknownWalletID_get")] - public static extern long SKY_ErrUnknownWalletID_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrSHA256orMissingPassword_get")] - public static extern long SKY_ErrSHA256orMissingPassword_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ErrSHA256LenghtDataOverflowMaxUint32_get")] - public static extern long SKY_ErrSHA256LenghtDataOverflowMaxUint32_get(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKey_isEqual")] - public static extern int cipher_PubKey_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKey_assignFrom")] - public static extern void cipher_PubKey_assignFrom(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKey_assignTo")] - public static extern void cipher_PubKey_assignTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKey_data_set")] - public static extern void cipher_PubKey_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKey_data_get")] - public static extern global::System.IntPtr cipher_PubKey_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_PubKey")] - public static extern global::System.IntPtr new_cipher_PubKey(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_PubKey")] - public static extern void delete_cipher_PubKey(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKey_isEqual")] - public static extern int cipher_SecKey_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKey_assignFrom")] - public static extern void cipher_SecKey_assignFrom(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKey_assignTo")] - public static extern void cipher_SecKey_assignTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKey_data_set")] - public static extern void cipher_SecKey_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKey_data_get")] - public static extern global::System.IntPtr cipher_SecKey_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_SecKey")] - public static extern global::System.IntPtr new_cipher_SecKey(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_SecKey")] - public static extern void delete_cipher_SecKey(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Ripemd160_isEqual")] - public static extern int cipher_Ripemd160_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Ripemd160_assignFrom")] - public static extern void cipher_Ripemd160_assignFrom(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Ripemd160_assignTo")] - public static extern void cipher_Ripemd160_assignTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Ripemd160_data_set")] - public static extern void cipher_Ripemd160_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Ripemd160_data_get")] - public static extern global::System.IntPtr cipher_Ripemd160_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_Ripemd160")] - public static extern global::System.IntPtr new_cipher_Ripemd160(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_Ripemd160")] - public static extern void delete_cipher_Ripemd160(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Sig_isEqual")] - public static extern int cipher_Sig_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Sig_assignFrom")] - public static extern void cipher_Sig_assignFrom(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Sig_assignTo")] - public static extern void cipher_Sig_assignTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Sig_data_set")] - public static extern void cipher_Sig_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Sig_data_get")] - public static extern global::System.IntPtr cipher_Sig_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_Sig")] - public static extern global::System.IntPtr new_cipher_Sig(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_Sig")] - public static extern void delete_cipher_Sig(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256_isEqual")] - public static extern int cipher_SHA256_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256_assignFrom")] - public static extern void cipher_SHA256_assignFrom(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256_assignTo")] - public static extern void cipher_SHA256_assignTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256_data_set")] - public static extern void cipher_SHA256_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256_data_get")] - public static extern global::System.IntPtr cipher_SHA256_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_SHA256")] - public static extern global::System.IntPtr new_cipher_SHA256(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_SHA256")] - public static extern void delete_cipher_SHA256(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Checksum_isEqual")] - public static extern int cipher_Checksum_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Checksum_assignFrom")] - public static extern void cipher_Checksum_assignFrom(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Checksum_assignTo")] - public static extern void cipher_Checksum_assignTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Checksum_data_set")] - public static extern void cipher_Checksum_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Checksum_data_get")] - public static extern global::System.IntPtr cipher_Checksum_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_Checksum")] - public static extern global::System.IntPtr new_cipher_Checksum(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_Checksum")] - public static extern void delete_cipher_Checksum(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeys_getAt")] - public static extern global::System.IntPtr cipher_SecKeys_getAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeys_setAt")] - public static extern int cipher_SecKeys_setAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeys_isEqual")] - public static extern int cipher_SecKeys_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeys_allocate")] - public static extern void cipher_SecKeys_allocate(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeys_release")] - public static extern void cipher_SecKeys_release(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeys_data_set")] - public static extern void cipher_SecKeys_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeys_data_get")] - public static extern global::System.IntPtr cipher_SecKeys_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeys_count_set")] - public static extern void cipher_SecKeys_count_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeys_count_get")] - public static extern int cipher_SecKeys_count_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_SecKeys")] - public static extern global::System.IntPtr new_cipher_SecKeys(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_SecKeys")] - public static extern void delete_cipher_SecKeys(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeys_getAt")] - public static extern global::System.IntPtr cipher_PubKeys_getAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeys_setAt")] - public static extern int cipher_PubKeys_setAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeys_isEqual")] - public static extern int cipher_PubKeys_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeys_allocate")] - public static extern void cipher_PubKeys_allocate(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeys_release")] - public static extern void cipher_PubKeys_release(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeys_data_set")] - public static extern void cipher_PubKeys_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeys_data_get")] - public static extern global::System.IntPtr cipher_PubKeys_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeys_count_set")] - public static extern void cipher_PubKeys_count_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeys_count_get")] - public static extern int cipher_PubKeys_count_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_PubKeys")] - public static extern global::System.IntPtr new_cipher_PubKeys(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_PubKeys")] - public static extern void delete_cipher_PubKeys(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256s_getAt")] - public static extern global::System.IntPtr cipher_SHA256s_getAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256s_setAt")] - public static extern int cipher_SHA256s_setAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256s_isEqual")] - public static extern int cipher_SHA256s_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256s_allocate")] - public static extern void cipher_SHA256s_allocate(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256s_release")] - public static extern void cipher_SHA256s_release(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256s_data_set")] - public static extern void cipher_SHA256s_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256s_data_get")] - public static extern global::System.IntPtr cipher_SHA256s_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256s_count_set")] - public static extern void cipher_SHA256s_count_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256s_count_get")] - public static extern int cipher_SHA256s_count_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_SHA256s")] - public static extern global::System.IntPtr new_cipher_SHA256s(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_SHA256s")] - public static extern void delete_cipher_SHA256s(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_getAt")] - public static extern global::System.IntPtr coin_UxOutArray_getAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_setAt")] - public static extern int coin_UxOutArray_setAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_isEqual")] - public static extern int coin_UxOutArray_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_allocate")] - public static extern void coin_UxOutArray_allocate(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_release")] - public static extern void coin_UxOutArray_release(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_data_set")] - public static extern void coin_UxOutArray_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_data_get")] - public static extern global::System.IntPtr coin_UxOutArray_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_count_set")] - public static extern void coin_UxOutArray_count_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_count_get")] - public static extern int coin_UxOutArray_count_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin_UxOutArray")] - public static extern global::System.IntPtr new_coin_UxOutArray(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin_UxOutArray")] - public static extern void delete_coin_UxOutArray(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Addresses_data_set")] - public static extern void cipher_Addresses_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Addresses_data_get")] - public static extern global::System.IntPtr cipher_Addresses_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Addresses_count_set")] - public static extern void cipher_Addresses_count_set(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Addresses_count_get")] - public static extern int cipher_Addresses_count_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_Addresses")] - public static extern global::System.IntPtr new_cipher_Addresses(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_Addresses")] - public static extern void delete_cipher_Addresses(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin__GoString__p_set")] - public static extern void _GoString__p_set(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin__GoString__p_get")] - public static extern string _GoString__p_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin__GoString__n_set")] - public static extern void _GoString__n_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin__GoString__n_get")] - public static extern global::System.IntPtr _GoString__n_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new__GoString_")] - public static extern global::System.IntPtr new__GoString_(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete__GoString_")] - public static extern void delete__GoString_(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoInterface_t_set")] - public static extern void GoInterface_t_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoInterface_t_get")] - public static extern global::System.IntPtr GoInterface_t_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoInterface_v_set")] - public static extern void GoInterface_v_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoInterface_v_get")] - public static extern global::System.IntPtr GoInterface_v_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_GoInterface")] - public static extern global::System.IntPtr new_GoInterface(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_GoInterface")] - public static extern void delete_GoInterface(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_data_set")] - public static extern void GoSlice_data_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_data_get")] - public static extern global::System.IntPtr GoSlice_data_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_len_set")] - public static extern void GoSlice_len_set(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_len_get")] - public static extern long GoSlice_len_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_cap_set")] - public static extern void GoSlice_cap_set(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_cap_get")] - public static extern long GoSlice_cap_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_GoSlice")] - public static extern global::System.IntPtr new_GoSlice(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_GoSlice")] - public static extern void delete_GoSlice(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewBlock")] - public static extern uint SKY_coin_NewBlock(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SignedBlock_VerifySignature")] - public static extern uint SKY_coin_SignedBlock_VerifySignature(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewGenesisBlock")] - public static extern uint SKY_coin_NewGenesisBlock(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_HashHeader")] - public static extern uint SKY_coin_Block_HashHeader(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_PreHashHeader")] - public static extern uint SKY_coin_Block_PreHashHeader(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_Time")] - public static extern uint SKY_coin_Block_Time(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_Seq")] - public static extern uint SKY_coin_Block_Seq(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_HashBody")] - public static extern uint SKY_coin_Block_HashBody(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_Size")] - public static extern uint SKY_coin_Block_Size(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_String")] - public static extern uint SKY_coin_Block_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_GetTransaction")] - public static extern uint SKY_coin_Block_GetTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewBlockHeader")] - public static extern uint SKY_coin_NewBlockHeader(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, ulong jarg3, ulong jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockHeader_Hash")] - public static extern uint SKY_coin_BlockHeader_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockHeader_Bytes")] - public static extern uint SKY_coin_BlockHeader_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockHeader_String")] - public static extern uint SKY_coin_BlockHeader_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockBody_Hash")] - public static extern uint SKY_coin_BlockBody_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockBody_Size")] - public static extern uint SKY_coin_BlockBody_Size(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockBody_Bytes")] - public static extern uint SKY_coin_BlockBody_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_CreateUnspents")] - public static extern uint SKY_coin_CreateUnspents(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_CreateUnspent")] - public static extern uint SKY_coin_CreateUnspent(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetBlockObject")] - public static extern uint SKY_coin_GetBlockObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetBlockBody")] - public static extern uint SKY_coin_GetBlockBody(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewEmptyBlock")] - public static extern uint SKY_coin_NewEmptyBlock(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_bip39_NewDefaultMnemomic")] - public static extern uint SKY_bip39_NewDefaultMnemomic(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_bip39_NewEntropy")] - public static extern uint SKY_bip39_NewEntropy(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_bip39_NewMnemonic")] - public static extern uint SKY_bip39_NewMnemonic(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_bip39_MnemonicToByteArray")] - public static extern uint SKY_bip39_MnemonicToByteArray(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_bip39_IsMnemonicValid")] - public static extern uint SKY_bip39_IsMnemonicValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewClient")] - public static extern uint SKY_api_NewClient(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CSRF")] - public static extern uint SKY_api_Client_CSRF(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Version")] - public static extern uint SKY_api_Client_Version(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Outputs")] - public static extern uint SKY_api_Client_Outputs(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_OutputsForAddresses")] - public static extern uint SKY_api_Client_OutputsForAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_OutputsForHashes")] - public static extern uint SKY_api_Client_OutputsForHashes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CoinSupply")] - public static extern uint SKY_api_Client_CoinSupply(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_BlockByHash")] - public static extern uint SKY_api_Client_BlockByHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_BlockBySeq")] - public static extern uint SKY_api_Client_BlockBySeq(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Blocks")] - public static extern uint SKY_api_Client_Blocks(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_LastBlocks")] - public static extern uint SKY_api_Client_LastBlocks(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_BlockchainMetadata")] - public static extern uint SKY_api_Client_BlockchainMetadata(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_BlockchainProgress")] - public static extern uint SKY_api_Client_BlockchainProgress(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Balance")] - public static extern uint SKY_api_Client_Balance(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_UxOut")] - public static extern uint SKY_api_Client_UxOut(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_AddressUxOuts")] - public static extern uint SKY_api_Client_AddressUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Wallet")] - public static extern uint SKY_api_Client_Wallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Wallets")] - public static extern uint SKY_api_Client_Wallets(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CreateUnencryptedWallet")] - public static extern uint SKY_api_Client_CreateUnencryptedWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, long jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CreateEncryptedWallet")] - public static extern uint SKY_api_Client_CreateEncryptedWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, long jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NewWalletAddress")] - public static extern uint SKY_api_Client_NewWalletAddress(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_WalletBalance")] - public static extern uint SKY_api_Client_WalletBalance(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Spend")] - public static extern uint SKY_api_Client_Spend(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, ulong jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CreateTransaction")] - public static extern uint SKY_api_Client_CreateTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_UpdateWallet")] - public static extern uint SKY_api_Client_UpdateWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_WalletFolderName")] - public static extern uint SKY_api_Client_WalletFolderName(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NewSeed")] - public static extern uint SKY_api_Client_NewSeed(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_GetWalletSeed")] - public static extern uint SKY_api_Client_GetWalletSeed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkConnection")] - public static extern uint SKY_api_Client_NetworkConnection(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkConnections")] - public static extern uint SKY_api_Client_NetworkConnections(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkDefaultConnections")] - public static extern uint SKY_api_Client_NetworkDefaultConnections(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkTrustedConnections")] - public static extern uint SKY_api_Client_NetworkTrustedConnections(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkExchangeableConnections")] - public static extern uint SKY_api_Client_NetworkExchangeableConnections(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_PendingTransactions")] - public static extern uint SKY_api_Client_PendingTransactions(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Transaction")] - public static extern uint SKY_api_Client_Transaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Transactions")] - public static extern uint SKY_api_Client_Transactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_ConfirmedTransactions")] - public static extern uint SKY_api_Client_ConfirmedTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_UnconfirmedTransactions")] - public static extern uint SKY_api_Client_UnconfirmedTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_InjectTransaction")] - public static extern uint SKY_api_Client_InjectTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_ResendUnconfirmedTransactions")] - public static extern uint SKY_api_Client_ResendUnconfirmedTransactions(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_RawTransaction")] - public static extern uint SKY_api_Client_RawTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_AddressTransactions")] - public static extern uint SKY_api_Client_AddressTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Richlist")] - public static extern uint SKY_api_Client_Richlist(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_AddressCount")] - public static extern uint SKY_api_Client_AddressCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_UnloadWallet")] - public static extern uint SKY_api_Client_UnloadWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Health")] - public static extern uint SKY_api_Client_Health(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_EncryptWallet")] - public static extern uint SKY_api_Client_EncryptWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_DecryptWallet")] - public static extern uint SKY_api_Client_DecryptWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_Print")] - public static extern uint SKY_secp256k1go_XY_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_ParsePubkey")] - public static extern uint SKY_secp256k1go_XY_ParsePubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_Bytes")] - public static extern uint SKY_secp256k1go_XY_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_BytesUncompressed")] - public static extern uint SKY_secp256k1go_XY_BytesUncompressed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_SetXY")] - public static extern uint SKY_secp256k1go_XY_SetXY(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_IsValid")] - public static extern uint SKY_secp256k1go_XY_IsValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_SetXYZ")] - public static extern uint SKY_secp256k1go_XY_SetXYZ(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_Neg")] - public static extern uint SKY_secp256k1go_XY_Neg(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_SetXO")] - public static extern uint SKY_secp256k1go_XY_SetXO(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, byte jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_AddXY")] - public static extern uint SKY_secp256k1go_XY_AddXY(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_GetPublicKey")] - public static extern uint SKY_secp256k1go_XY_GetPublicKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewWalletResponse")] - public static extern uint SKY_api_NewWalletResponse(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewCreateTransactionResponse")] - public static extern uint SKY_api_NewCreateTransactionResponse(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewCreatedTransaction")] - public static extern uint SKY_api_NewCreatedTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_CreatedTransaction_ToTransaction")] - public static extern uint SKY_api_CreatedTransaction_ToTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewCreatedTransactionOutput")] - public static extern uint SKY_api_NewCreatedTransactionOutput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewCreatedTransactionInput")] - public static extern uint SKY_api_NewCreatedTransactionInput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewError")] - public static extern uint SKY_wallet_NewError(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewWallet")] - public static extern uint SKY_wallet_NewWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Lock")] - public static extern uint SKY_wallet_Wallet_Lock(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Unlock")] - public static extern uint SKY_wallet_Wallet_Unlock(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Load")] - public static extern uint SKY_wallet_Load(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Save")] - public static extern uint SKY_wallet_Wallet_Save(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Validate")] - public static extern uint SKY_wallet_Wallet_Validate(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Type")] - public static extern uint SKY_wallet_Wallet_Type(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Version")] - public static extern uint SKY_wallet_Wallet_Version(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Filename")] - public static extern uint SKY_wallet_Wallet_Filename(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Label")] - public static extern uint SKY_wallet_Wallet_Label(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_IsEncrypted")] - public static extern uint SKY_wallet_Wallet_IsEncrypted(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_GenerateAddresses")] - public static extern uint SKY_wallet_Wallet_GenerateAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_GetAddresses")] - public static extern uint SKY_wallet_Wallet_GetAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_GetEntry")] - public static extern uint SKY_wallet_Wallet_GetEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_AddEntry")] - public static extern uint SKY_wallet_Wallet_AddEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_DistributeSpendHours")] - public static extern uint SKY_wallet_DistributeSpendHours(ulong jarg1, ulong jarg2, byte jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_DistributeCoinHoursProportional")] - public static extern uint SKY_wallet_DistributeCoinHoursProportional(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewUxBalances")] - public static extern uint SKY_wallet_NewUxBalances(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewUxBalance")] - public static extern uint SKY_wallet_NewUxBalance(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ChooseSpendsMinimizeUxOuts")] - public static extern uint SKY_wallet_ChooseSpendsMinimizeUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ChooseSpendsMaximizeUxOuts")] - public static extern uint SKY_wallet_ChooseSpendsMaximizeUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_CheckWalletBalance")] - public static extern uint SKY_cli_CheckWalletBalance(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GetBalanceOfAddresses")] - public static extern uint SKY_cli_GetBalanceOfAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewReadableEntry")] - public static extern uint SKY_wallet_NewReadableEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_LoadReadableEntry")] - public static extern uint SKY_wallet_LoadReadableEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewReadableEntryFromPubkey")] - public static extern uint SKY_wallet_NewReadableEntryFromPubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableEntry_Save")] - public static extern uint SKY_wallet_ReadableEntry_Save(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_LoadReadableWallet")] - public static extern uint SKY_wallet_LoadReadableWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableWallet_Save")] - public static extern uint SKY_wallet_ReadableWallet_Save(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableWallet_Load")] - public static extern uint SKY_wallet_ReadableWallet_Load(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableWallet_Erase")] - public static extern uint SKY_wallet_ReadableWallet_Erase(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_DecompressPoint")] - public static extern uint SKY_secp256k1go_DecompressPoint(global::System.Runtime.InteropServices.HandleRef jarg1, byte jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_RecoverPublicKey")] - public static extern uint SKY_secp256k1go_RecoverPublicKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Multiply")] - public static extern uint SKY_secp256k1go_Multiply(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_BaseMultiply")] - public static extern uint SKY_secp256k1go_BaseMultiply(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_BaseMultiplyAdd")] - public static extern uint SKY_secp256k1go_BaseMultiplyAdd(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_GeneratePublicKey")] - public static extern uint SKY_secp256k1go_GeneratePublicKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_SeckeyIsValid")] - public static extern uint SKY_secp256k1go_SeckeyIsValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_PubkeyIsValid")] - public static extern uint SKY_secp256k1go_PubkeyIsValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_String2Hex")] - public static extern uint SKY_base58_String2Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Base58_ToInt")] - public static extern uint SKY_base58_Base58_ToInt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Base58_ToHex")] - public static extern uint SKY_base58_Base58_ToHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Base58_Base582Int")] - public static extern uint SKY_base58_Base58_Base582Int(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Base582Hex")] - public static extern uint SKY_base58_Base582Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Base58_BitHex")] - public static extern uint SKY_base58_Base58_BitHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Int2Base58")] - public static extern uint SKY_base58_Int2Base58(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Hex2Base58")] - public static extern uint SKY_base58_Hex2Base58(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Hex2Base58String")] - public static extern uint SKY_base58_Hex2Base58String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Hex2Base58Str")] - public static extern uint SKY_base58_Hex2Base58Str(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GenerateWallet")] - public static extern uint SKY_cli_GenerateWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_MakeAlphanumericSeed")] - public static extern uint SKY_cli_MakeAlphanumericSeed(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_NewClient")] - public static extern uint SKY_webrpc_NewClient(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_CSRF")] - public static extern uint SKY_webrpc_Client_CSRF(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_InjectTransaction")] - public static extern uint SKY_webrpc_Client_InjectTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetStatus")] - public static extern uint SKY_webrpc_Client_GetStatus(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetTransactionByID")] - public static extern uint SKY_webrpc_Client_GetTransactionByID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetAddressUxOuts")] - public static extern uint SKY_webrpc_Client_GetAddressUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetBlocks")] - public static extern uint SKY_webrpc_Client_GetBlocks(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetBlocksBySeq")] - public static extern uint SKY_webrpc_Client_GetBlocksBySeq(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetLastBlocks")] - public static extern uint SKY_webrpc_Client_GetLastBlocks(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_browser_Open")] - public static extern uint SKY_browser_Open(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_iputil_LocalhostIP")] - public static extern uint SKY_iputil_LocalhostIP(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_iputil_IsLocalhost")] - public static extern uint SKY_iputil_IsLocalhost(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_iputil_SplitAddr")] - public static extern uint SKY_iputil_SplitAddr(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encoder_StructField_String")] - public static extern uint SKY_encoder_StructField_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encoder_ParseFields")] - public static extern uint SKY_encoder_ParseFields(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_SumSHA256")] - public static extern uint SKY_secp256k1_SumSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_RandByte")] - public static extern uint SKY_secp256k1_RandByte(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GenerateAddressesInFile")] - public static extern uint SKY_cli_GenerateAddressesInFile(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_FormatAddressesAsJSON")] - public static extern uint SKY_cli_FormatAddressesAsJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_FormatAddressesAsJoinedArray")] - public static extern uint SKY_cli_FormatAddressesAsJoinedArray(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_AddressesToStrings")] - public static extern uint SKY_cli_AddressesToStrings(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddUint64")] - public static extern uint SKY_coin_AddUint64(ulong jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Uint64ToInt64")] - public static extern uint SKY_coin_Uint64ToInt64(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Int64ToUint64")] - public static extern uint SKY_coin_Int64ToUint64(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeySlice_Len")] - public static extern uint SKY_cipher_PubKeySlice_Len(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeySlice_Less")] - public static extern uint SKY_cipher_PubKeySlice_Less(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeySlice_Swap")] - public static extern uint SKY_cipher_PubKeySlice_Swap(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_RandByte")] - public static extern uint SKY_cipher_RandByte(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_NewPubKey")] - public static extern uint SKY_cipher_NewPubKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromHex")] - public static extern uint SKY_cipher_PubKeyFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromSecKey")] - public static extern uint SKY_cipher_PubKeyFromSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromSig")] - public static extern uint SKY_cipher_PubKeyFromSig(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKey_Verify")] - public static extern uint SKY_cipher_PubKey_Verify(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKey_Hex")] - public static extern uint SKY_cipher_PubKey_Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKey_ToAddressHash")] - public static extern uint SKY_cipher_PubKey_ToAddressHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_NewSecKey")] - public static extern uint SKY_cipher_NewSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKeyFromHex")] - public static extern uint SKY_cipher_SecKeyFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKey_Verify")] - public static extern uint SKY_cipher_SecKey_Verify(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKey_Hex")] - public static extern uint SKY_cipher_SecKey_Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_ECDH")] - public static extern uint SKY_cipher_ECDH(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_NewSig")] - public static extern uint SKY_cipher_NewSig(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SigFromHex")] - public static extern uint SKY_cipher_SigFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Sig_Hex")] - public static extern uint SKY_cipher_Sig_Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SignHash")] - public static extern uint SKY_cipher_SignHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_ChkSig")] - public static extern uint SKY_cipher_ChkSig(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_VerifySignedHash")] - public static extern uint SKY_cipher_VerifySignedHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_VerifySignature")] - public static extern uint SKY_cipher_VerifySignature(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPair")] - public static extern uint SKY_cipher_GenerateDeterministicKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_DeterministicKeyPairIterator")] - public static extern uint SKY_cipher_DeterministicKeyPairIterator(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairs")] - public static extern uint SKY_cipher_GenerateDeterministicKeyPairs(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairsSeed")] - public static extern uint SKY_cipher_GenerateDeterministicKeyPairsSeed(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_TestSecKey")] - public static extern uint SKY_cipher_TestSecKey(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_TestSecKeyHash")] - public static extern uint SKY_cipher_TestSecKeyHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateKeyPair")] - public static extern uint SKY_cipher_GenerateKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Create")] - public static extern uint SKY_secp256k1go_Signature_Create(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_GetR")] - public static extern uint SKY_secp256k1go_Signature_GetR(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_GetS")] - public static extern uint SKY_secp256k1go_Signature_GetS(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Print")] - public static extern uint SKY_secp256k1go_Signature_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Verify")] - public static extern uint SKY_secp256k1go_Signature_Verify(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Recover")] - public static extern uint SKY_secp256k1go_Signature_Recover(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, long jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Sign")] - public static extern uint SKY_secp256k1go_Signature_Sign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_ParseBytes")] - public static extern uint SKY_secp256k1go_Signature_ParseBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Bytes")] - public static extern uint SKY_secp256k1go_Signature_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_App_Run")] - public static extern uint SKY_cli_App_Run(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Config_GetCoin")] - public static extern uint SKY_cli_Config_GetCoin(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Config_GetRPCAddress")] - public static extern uint SKY_cli_Config_GetRPCAddress(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_RPCClientFromApp")] - public static extern uint SKY_cli_RPCClientFromApp(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Getenv")] - public static extern uint SKY_cli_Getenv(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Setenv")] - public static extern uint SKY_cli_Setenv(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_poly1305_Verify")] - public static extern uint SKY_poly1305_Verify(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewBalance")] - public static extern uint SKY_wallet_NewBalance(ulong jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewBalanceFromUxOut")] - public static extern uint SKY_wallet_NewBalanceFromUxOut(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Balance_Add")] - public static extern uint SKY_wallet_Balance_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Balance_Sub")] - public static extern uint SKY_wallet_Balance_Sub(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Balance_Equals")] - public static extern uint SKY_wallet_Balance_Equals(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Balance_IsZero")] - public static extern uint SKY_wallet_Balance_IsZero(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_utc_UnixNow")] - public static extern uint SKY_utc_UnixNow(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Address_UnmarshalJSON")] - public static extern uint SKY_httphelper_Address_UnmarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Address_MarshalJSON")] - public static extern uint SKY_httphelper_Address_MarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Coins_UnmarshalJSON")] - public static extern uint SKY_httphelper_Coins_UnmarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Coins_MarshalJSON")] - public static extern uint SKY_httphelper_Coins_MarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Coins_Value")] - public static extern uint SKY_httphelper_Coins_Value(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Hours_UnmarshalJSON")] - public static extern uint SKY_httphelper_Hours_UnmarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Hours_MarshalJSON")] - public static extern uint SKY_httphelper_Hours_MarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Hours_Value")] - public static extern uint SKY_httphelper_Hours_Value(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Entry_Verify")] - public static extern uint SKY_wallet_Entry_Verify(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Entry_VerifyPublic")] - public static extern uint SKY_wallet_Entry_VerifyPublic(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_CreateAddresses")] - public static extern uint SKY_wallet_CreateAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, byte jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_GetSkycoinWalletEntry")] - public static extern uint SKY_wallet_GetSkycoinWalletEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_GetBitcoinWalletEntry")] - public static extern uint SKY_wallet_GetBitcoinWalletEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Print")] - public static extern uint SKY_secp256k1go_XYZ_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_SetXY")] - public static extern uint SKY_secp256k1go_XYZ_SetXY(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_IsInfinity")] - public static extern uint SKY_secp256k1go_XYZ_IsInfinity(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_IsValid")] - public static extern uint SKY_secp256k1go_XYZ_IsValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Normalize")] - public static extern uint SKY_secp256k1go_XYZ_Normalize(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Equals")] - public static extern uint SKY_secp256k1go_XYZ_Equals(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_ECmult")] - public static extern uint SKY_secp256k1go_XYZ_ECmult(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Neg")] - public static extern uint SKY_secp256k1go_XYZ_Neg(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Double")] - public static extern uint SKY_secp256k1go_XYZ_Double(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_AddXY")] - public static extern uint SKY_secp256k1go_XYZ_AddXY(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Add")] - public static extern uint SKY_secp256k1go_XYZ_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_ECmultGen")] - public static extern uint SKY_secp256k1go_ECmultGen(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encrypt_Sha256Xor_Encrypt")] - public static extern uint SKY_encrypt_Sha256Xor_Encrypt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encrypt_Sha256Xor_Decrypt")] - public static extern uint SKY_encrypt_Sha256Xor_Decrypt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_droplet_FromString")] - public static extern uint SKY_droplet_FromString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_droplet_ToString")] - public static extern uint SKY_droplet_ToString(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_CryptoTypeFromString")] - public static extern uint SKY_wallet_CryptoTypeFromString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_handle_close")] - public static extern void SKY_handle_close(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_handle_copy")] - public static extern uint SKY_handle_copy(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_logging_EnableColors")] - public static extern uint SKY_logging_EnableColors(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_logging_DisableColors")] - public static extern uint SKY_logging_DisableColors(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_logging_Disable")] - public static extern uint SKY_logging_Disable(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_map_Get")] - public static extern uint SKY_map_Get(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_map_HasKey")] - public static extern byte SKY_map_HasKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_map_Close")] - public static extern uint SKY_map_Close(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_DecodeBase58Address")] - public static extern uint SKY_cipher_DecodeBase58Address(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddressFromBytes")] - public static extern uint SKY_cipher_AddressFromBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddressFromPubKey")] - public static extern uint SKY_cipher_AddressFromPubKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddressFromSecKey")] - public static extern uint SKY_cipher_AddressFromSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinDecodeBase58Address")] - public static extern uint SKY_cipher_BitcoinDecodeBase58Address(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_Null")] - public static extern uint SKY_cipher_Address_Null(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_Bytes")] - public static extern uint SKY_cipher_Address_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_BitcoinBytes")] - public static extern uint SKY_cipher_Address_BitcoinBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_Verify")] - public static extern uint SKY_cipher_Address_Verify(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_String")] - public static extern uint SKY_cipher_Address_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_BitcoinString")] - public static extern uint SKY_cipher_Address_BitcoinString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_Checksum")] - public static extern uint SKY_cipher_Address_Checksum(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_BitcoinChecksum")] - public static extern uint SKY_cipher_Address_BitcoinChecksum(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinAddressFromPubkey")] - public static extern uint SKY_cipher_BitcoinAddressFromPubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinWalletImportFormatFromSeckey")] - public static extern uint SKY_cipher_BitcoinWalletImportFormatFromSeckey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinAddressFromBytes")] - public static extern uint SKY_cipher_BitcoinAddressFromBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKeyFromWalletImportFormat")] - public static extern uint SKY_cipher_SecKeyFromWalletImportFormat(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_JsonEncode_Handle")] - public static extern uint SKY_JsonEncode_Handle(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Progress_GetCurrent")] - public static extern uint SKY_Handle_Progress_GetCurrent(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Block_GetHeadSeq")] - public static extern uint SKY_Handle_Block_GetHeadSeq(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Block_GetHeadHash")] - public static extern uint SKY_Handle_Block_GetHeadHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Block_GetPreviousBlockHash")] - public static extern uint SKY_Handle_Block_GetPreviousBlockHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Blocks_GetAt")] - public static extern uint SKY_Handle_Blocks_GetAt(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Blocks_GetCount")] - public static extern uint SKY_Handle_Blocks_GetCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Connections_GetCount")] - public static extern uint SKY_Handle_Connections_GetCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Strings_GetCount")] - public static extern uint SKY_Handle_Strings_GetCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Strings_Sort")] - public static extern uint SKY_Handle_Strings_Sort(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Strings_GetAt")] - public static extern uint SKY_Handle_Strings_GetAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_Client_GetWalletDir")] - public static extern uint SKY_api_Handle_Client_GetWalletDir(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_Client_GetWalletFileName")] - public static extern uint SKY_api_Handle_Client_GetWalletFileName(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_Client_GetWalletLabel")] - public static extern uint SKY_api_Handle_Client_GetWalletLabel(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_Client_GetWalletFullPath")] - public static extern uint SKY_api_Handle_Client_GetWalletFullPath(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetWalletMeta")] - public static extern uint SKY_api_Handle_GetWalletMeta(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetWalletEntriesCount")] - public static extern uint SKY_api_Handle_GetWalletEntriesCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_Client_GetWalletResponseEntriesCount")] - public static extern uint SKY_api_Handle_Client_GetWalletResponseEntriesCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletGetEntry")] - public static extern uint SKY_api_Handle_WalletGetEntry(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletResponseGetEntry")] - public static extern uint SKY_api_Handle_WalletResponseGetEntry(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletResponseIsEncrypted")] - public static extern uint SKY_api_Handle_WalletResponseIsEncrypted(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletResponseGetCryptoType")] - public static extern uint SKY_api_Handle_WalletResponseGetCryptoType(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletsResponseGetCount")] - public static extern uint SKY_api_Handle_WalletsResponseGetCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletsResponseGetAt")] - public static extern uint SKY_api_Handle_WalletsResponseGetAt(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetWalletFolderAddress")] - public static extern uint SKY_api_Handle_GetWalletFolderAddress(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetWalletSeed")] - public static extern uint SKY_api_Handle_GetWalletSeed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetWalletLastSeed")] - public static extern uint SKY_api_Handle_GetWalletLastSeed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetBuildInfoData")] - public static extern uint SKY_api_Handle_GetBuildInfoData(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ripemd160_New")] - public static extern uint SKY_ripemd160_New(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ripemd160_Write")] - public static extern uint SKY_ripemd160_Write(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ripemd160_Sum")] - public static extern uint SKY_ripemd160_Sum(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_Create")] - public static extern uint SKY_secp256k1go_Number_Create(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_Print")] - public static extern uint SKY_secp256k1go_Number_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_SetHex")] - public static extern uint SKY_secp256k1go_Number_SetHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_IsOdd")] - public static extern uint SKY_secp256k1go_Number_IsOdd(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_IsEqual")] - public static extern uint SKY_secp256k1go_Number_IsEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxOut_Hash")] - public static extern uint SKY_coin_UxOut_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxOut_SnapshotHash")] - public static extern uint SKY_coin_UxOut_SnapshotHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxBody_Hash")] - public static extern uint SKY_coin_UxBody_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxOut_CoinHours")] - public static extern uint SKY_coin_UxOut_CoinHours(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Hashes")] - public static extern uint SKY_coin_UxArray_Hashes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_HasDupes")] - public static extern uint SKY_coin_UxArray_HasDupes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Sort")] - public static extern uint SKY_coin_UxArray_Sort(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Len")] - public static extern uint SKY_coin_UxArray_Len(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Less")] - public static extern uint SKY_coin_UxArray_Less(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Swap")] - public static extern uint SKY_coin_UxArray_Swap(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Coins")] - public static extern uint SKY_coin_UxArray_Coins(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_CoinHours")] - public static extern uint SKY_coin_UxArray_CoinHours(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Sub")] - public static extern uint SKY_coin_UxArray_Sub(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Add")] - public static extern uint SKY_coin_UxArray_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewAddressUxOuts")] - public static extern uint SKY_coin_NewAddressUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Keys")] - public static extern uint SKY_coin_AddressUxOuts_Keys(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Flatten")] - public static extern uint SKY_coin_AddressUxOuts_Flatten(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Sub")] - public static extern uint SKY_coin_AddressUxOuts_Sub(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Add")] - public static extern uint SKY_coin_AddressUxOuts_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Get")] - public static extern uint SKY_coin_AddressUxOuts_Get(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_HasKey")] - public static extern uint SKY_coin_AddressUxOuts_HasKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_GetOutputLength")] - public static extern uint SKY_coin_AddressUxOuts_GetOutputLength(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Length")] - public static extern uint SKY_coin_AddressUxOuts_Length(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Set")] - public static extern uint SKY_coin_AddressUxOuts_Set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encrypt_ScryptChacha20poly1305_Encrypt")] - public static extern uint SKY_encrypt_ScryptChacha20poly1305_Encrypt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encrypt_ScryptChacha20poly1305_Decrypt")] - public static extern uint SKY_encrypt_ScryptChacha20poly1305_Decrypt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_CreateOptionsHandle")] - public static extern uint SKY_wallet_CreateOptionsHandle(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, byte jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, ulong jarg7, global::System.Runtime.InteropServices.HandleRef jarg8); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_AddPrivateKey")] - public static extern uint SKY_cli_AddPrivateKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_AddPrivateKeyToFile")] - public static extern uint SKY_cli_AddPrivateKeyToFile(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_GenerateKeyPair")] - public static extern uint SKY_secp256k1_GenerateKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_PubkeyFromSeckey")] - public static extern uint SKY_secp256k1_PubkeyFromSeckey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_UncompressPubkey")] - public static extern uint SKY_secp256k1_UncompressPubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_UncompressedPubkeyFromSeckey")] - public static extern uint SKY_secp256k1_UncompressedPubkeyFromSeckey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_Secp256k1Hash")] - public static extern uint SKY_secp256k1_Secp256k1Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_GenerateDeterministicKeyPair")] - public static extern uint SKY_secp256k1_GenerateDeterministicKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_DeterministicKeyPairIterator")] - public static extern uint SKY_secp256k1_DeterministicKeyPairIterator(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_Sign")] - public static extern uint SKY_secp256k1_Sign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_SignDeterministic")] - public static extern uint SKY_secp256k1_SignDeterministic(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_VerifySeckey")] - public static extern uint SKY_secp256k1_VerifySeckey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_VerifyPubkey")] - public static extern uint SKY_secp256k1_VerifyPubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_VerifySignatureValidity")] - public static extern uint SKY_secp256k1_VerifySignatureValidity(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_VerifySignature")] - public static extern uint SKY_secp256k1_VerifySignature(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_SignatureErrorString")] - public static extern uint SKY_secp256k1_SignatureErrorString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_RecoverPubkey")] - public static extern uint SKY_secp256k1_RecoverPubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_ECDH")] - public static extern uint SKY_secp256k1_ECDH(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_apputil_CatchInterruptPanic")] - public static extern uint SKY_apputil_CatchInterruptPanic(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_apputil_CatchDebug")] - public static extern uint SKY_apputil_CatchDebug(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_apputil_PrintProgramStatus")] - public static extern uint SKY_apputil_PrintProgramStatus(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cert_CreateCertIfNotExists")] - public static extern uint SKY_cert_CreateCertIfNotExists(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_VerifyTransactionFee")] - public static extern uint SKY_fee_VerifyTransactionFee(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_VerifyTransactionFeeForHours")] - public static extern uint SKY_fee_VerifyTransactionFeeForHours(ulong jarg1, ulong jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_RequiredFee")] - public static extern uint SKY_fee_RequiredFee(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_RemainingHours")] - public static extern uint SKY_fee_RemainingHours(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_TransactionFee")] - public static extern uint SKY_fee_TransactionFee(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_LoadConfig")] - public static extern uint SKY_cli_LoadConfig(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Config_FullWalletPath")] - public static extern uint SKY_cli_Config_FullWalletPath(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Config_FullDBPath")] - public static extern uint SKY_cli_Config_FullDBPath(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_NewApp")] - public static extern uint SKY_cli_NewApp(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_RPCClientFromContext")] - public static extern uint SKY_cli_RPCClientFromContext(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_ConfigFromContext")] - public static extern uint SKY_cli_ConfigFromContext(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_PasswordFromBytes_Password")] - public static extern uint SKY_cli_PasswordFromBytes_Password(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_PasswordFromTerm_Password")] - public static extern uint SKY_cli_PasswordFromTerm_Password(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_CreateRawTxFromWallet")] - public static extern uint SKY_cli_CreateRawTxFromWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_CreateRawTxFromAddress")] - public static extern uint SKY_cli_CreateRawTxFromAddress(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, global::System.Runtime.InteropServices.HandleRef jarg7); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_CreateRawTx")] - public static extern uint SKY_cli_CreateRawTx(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, global::System.Runtime.InteropServices.HandleRef jarg7); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_NewTransaction")] - public static extern uint SKY_cli_NewTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_file_InitDataDir")] - public static extern uint SKY_file_InitDataDir(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_file_UserHome")] - public static extern uint SKY_file_UserHome(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_file_ResolveResourceDirectory")] - public static extern uint SKY_file_ResolveResourceDirectory(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_file_DetermineResourcePath")] - public static extern uint SKY_file_DetermineResourcePath(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GetWalletOutputsFromFile")] - public static extern uint SKY_cli_GetWalletOutputsFromFile(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GetWalletOutputs")] - public static extern uint SKY_cli_GetWalletOutputs(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_testutil_MakeAddress")] - public static extern uint SKY_testutil_MakeAddress(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_String")] - public static extern uint SKY_secp256k1go_Field_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Print")] - public static extern uint SKY_secp256k1go_Field_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_SetB32")] - public static extern uint SKY_secp256k1go_Field_SetB32(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_SetBytes")] - public static extern uint SKY_secp256k1go_Field_SetBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_SetHex")] - public static extern uint SKY_secp256k1go_Field_SetHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_IsOdd")] - public static extern uint SKY_secp256k1go_Field_IsOdd(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_IsZero")] - public static extern uint SKY_secp256k1go_Field_IsZero(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_SetInt")] - public static extern uint SKY_secp256k1go_Field_SetInt(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Normalize")] - public static extern uint SKY_secp256k1go_Field_Normalize(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_GetB32")] - public static extern uint SKY_secp256k1go_Field_GetB32(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Equals")] - public static extern uint SKY_secp256k1go_Field_Equals(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_SetAdd")] - public static extern uint SKY_secp256k1go_Field_SetAdd(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_MulInt")] - public static extern uint SKY_secp256k1go_Field_MulInt(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Negate")] - public static extern uint SKY_secp256k1go_Field_Negate(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, uint jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Inv")] - public static extern uint SKY_secp256k1go_Field_Inv(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Sqrt")] - public static extern uint SKY_secp256k1go_Field_Sqrt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_InvVar")] - public static extern uint SKY_secp256k1go_Field_InvVar(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Mul")] - public static extern uint SKY_secp256k1go_Field_Mul(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Sqr")] - public static extern uint SKY_secp256k1go_Field_Sqr(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_scrypt_Key")] - public static extern uint SKY_scrypt_Key(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, long jarg4, long jarg5, long jarg6, global::System.Runtime.InteropServices.HandleRef jarg7); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Ripemd160_Set")] - public static extern uint SKY_cipher_Ripemd160_Set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_HashRipemd160")] - public static extern uint SKY_cipher_HashRipemd160(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Set")] - public static extern uint SKY_cipher_SHA256_Set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Hex")] - public static extern uint SKY_cipher_SHA256_Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Xor")] - public static extern uint SKY_cipher_SHA256_Xor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SumSHA256")] - public static extern uint SKY_cipher_SumSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256FromHex")] - public static extern uint SKY_cipher_SHA256FromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_DoubleSHA256")] - public static extern uint SKY_cipher_DoubleSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddSHA256")] - public static extern uint SKY_cipher_AddSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Merkle")] - public static extern uint SKY_cipher_Merkle(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Null")] - public static extern uint SKY_cipher_SHA256_Null(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Create_Transaction")] - public static extern uint SKY_coin_Create_Transaction(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Copy")] - public static extern uint SKY_coin_Transaction_Copy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetTransactionObject")] - public static extern uint SKY_coin_GetTransactionObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_ResetInputs")] - public static extern uint SKY_coin_Transaction_ResetInputs(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetInputsCount")] - public static extern uint SKY_coin_Transaction_GetInputsCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetInputAt")] - public static extern uint SKY_coin_Transaction_GetInputAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SetInputAt")] - public static extern uint SKY_coin_Transaction_SetInputAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetOutputsCount")] - public static extern uint SKY_coin_Transaction_GetOutputsCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetOutputAt")] - public static extern uint SKY_coin_Transaction_GetOutputAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SetOutputAt")] - public static extern uint SKY_coin_Transaction_SetOutputAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetSignaturesCount")] - public static extern uint SKY_coin_Transaction_GetSignaturesCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetSignatureAt")] - public static extern uint SKY_coin_Transaction_GetSignatureAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SetSignatureAt")] - public static extern uint SKY_coin_Transaction_SetSignatureAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_PushSignature")] - public static extern uint SKY_coin_Transaction_PushSignature(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_ResetOutputs")] - public static extern uint SKY_coin_Transaction_ResetOutputs(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_ResetSignatures")] - public static extern uint SKY_coin_Transaction_ResetSignatures(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Verify")] - public static extern uint SKY_coin_Transaction_Verify(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_VerifyInput")] - public static extern uint SKY_coin_Transaction_VerifyInput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_PushInput")] - public static extern uint SKY_coin_Transaction_PushInput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_TransactionOutput_UxID")] - public static extern uint SKY_coin_TransactionOutput_UxID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_PushOutput")] - public static extern uint SKY_coin_Transaction_PushOutput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, ulong jarg3, ulong jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SignInputs")] - public static extern uint SKY_coin_Transaction_SignInputs(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Size")] - public static extern uint SKY_coin_Transaction_Size(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Hash")] - public static extern uint SKY_coin_Transaction_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SizeHash")] - public static extern uint SKY_coin_Transaction_SizeHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_TxID")] - public static extern uint SKY_coin_Transaction_TxID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_TxIDHex")] - public static extern uint SKY_coin_Transaction_TxIDHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_UpdateHeader")] - public static extern uint SKY_coin_Transaction_UpdateHeader(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_HashInner")] - public static extern uint SKY_coin_Transaction_HashInner(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Serialize")] - public static extern uint SKY_coin_Transaction_Serialize(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_TransactionDeserialize")] - public static extern uint SKY_coin_TransactionDeserialize(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_OutputHours")] - public static extern uint SKY_coin_Transaction_OutputHours(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Create_Transactions")] - public static extern uint SKY_coin_Create_Transactions(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetTransactionsObject")] - public static extern uint SKY_coin_GetTransactionsObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Length")] - public static extern uint SKY_coin_Transactions_Length(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Add")] - public static extern uint SKY_coin_Transactions_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Fees")] - public static extern uint SKY_coin_Transactions_Fees(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_GetAt")] - public static extern uint SKY_coin_Transactions_GetAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Hashes")] - public static extern uint SKY_coin_Transactions_Hashes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Size")] - public static extern uint SKY_coin_Transactions_Size(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_TruncateBytesTo")] - public static extern uint SKY_coin_Transactions_TruncateBytesTo(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SortTransactions")] - public static extern uint SKY_coin_SortTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewSortableTransactions")] - public static extern uint SKY_coin_NewSortableTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SortableTransactions_Sort")] - public static extern uint SKY_coin_SortableTransactions_Sort(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SortableTransactions_Len")] - public static extern uint SKY_coin_SortableTransactions_Len(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SortableTransactions_Less")] - public static extern uint SKY_coin_SortableTransactions_Less(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SortableTransactions_Swap")] - public static extern uint SKY_coin_SortableTransactions_Swap(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_VerifyTransactionCoinsSpending")] - public static extern uint SKY_coin_VerifyTransactionCoinsSpending(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_VerifyTransactionHoursSpending")] - public static extern uint SKY_coin_VerifyTransactionHoursSpending(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Address_isEqual")] - public static extern int cipher__Address_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Address_Version_set")] - public static extern void cipher__Address_Version_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Address_Version_get")] - public static extern global::System.IntPtr cipher__Address_Version_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Address_Key_set")] - public static extern void cipher__Address_Key_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Address_Key_get")] - public static extern global::System.IntPtr cipher__Address_Key_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher__Address")] - public static extern global::System.IntPtr new_cipher__Address(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher__Address")] - public static extern void delete_cipher__Address(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encoder__StructField_Name_set")] - public static extern void encoder__StructField_Name_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encoder__StructField_Name_get")] - public static extern global::System.IntPtr encoder__StructField_Name_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encoder__StructField_Kind_set")] - public static extern void encoder__StructField_Kind_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encoder__StructField_Kind_get")] - public static extern global::System.IntPtr encoder__StructField_Kind_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encoder__StructField_Type_set")] - public static extern void encoder__StructField_Type_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encoder__StructField_Type_get")] - public static extern global::System.IntPtr encoder__StructField_Type_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encoder__StructField_Tag_set")] - public static extern void encoder__StructField_Tag_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encoder__StructField_Tag_get")] - public static extern global::System.IntPtr encoder__StructField_Tag_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_encoder__StructField")] - public static extern global::System.IntPtr new_encoder__StructField(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_encoder__StructField")] - public static extern void delete_encoder__StructField(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encrypt__ScryptChacha20poly1305_N_set")] - public static extern void encrypt__ScryptChacha20poly1305_N_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encrypt__ScryptChacha20poly1305_N_get")] - public static extern global::System.IntPtr encrypt__ScryptChacha20poly1305_N_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encrypt__ScryptChacha20poly1305_R_set")] - public static extern void encrypt__ScryptChacha20poly1305_R_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encrypt__ScryptChacha20poly1305_R_get")] - public static extern global::System.IntPtr encrypt__ScryptChacha20poly1305_R_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encrypt__ScryptChacha20poly1305_P_set")] - public static extern void encrypt__ScryptChacha20poly1305_P_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encrypt__ScryptChacha20poly1305_P_get")] - public static extern global::System.IntPtr encrypt__ScryptChacha20poly1305_P_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encrypt__ScryptChacha20poly1305_KeyLen_set")] - public static extern void encrypt__ScryptChacha20poly1305_KeyLen_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_encrypt__ScryptChacha20poly1305_KeyLen_get")] - public static extern global::System.IntPtr encrypt__ScryptChacha20poly1305_KeyLen_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_encrypt__ScryptChacha20poly1305")] - public static extern global::System.IntPtr new_encrypt__ScryptChacha20poly1305(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_encrypt__ScryptChacha20poly1305")] - public static extern void delete_encrypt__ScryptChacha20poly1305(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__Field_n_set")] - public static extern void secp256k1go__Field_n_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__Field_n_get")] - public static extern global::System.IntPtr secp256k1go__Field_n_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_secp256k1go__Field")] - public static extern global::System.IntPtr new_secp256k1go__Field(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_secp256k1go__Field")] - public static extern void delete_secp256k1go__Field(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XY_X_set")] - public static extern void secp256k1go__XY_X_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XY_X_get")] - public static extern global::System.IntPtr secp256k1go__XY_X_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XY_Y_set")] - public static extern void secp256k1go__XY_Y_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XY_Y_get")] - public static extern global::System.IntPtr secp256k1go__XY_Y_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XY_Infinity_set")] - public static extern void secp256k1go__XY_Infinity_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XY_Infinity_get")] - public static extern global::System.IntPtr secp256k1go__XY_Infinity_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_secp256k1go__XY")] - public static extern global::System.IntPtr new_secp256k1go__XY(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_secp256k1go__XY")] - public static extern void delete_secp256k1go__XY(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XYZ_X_set")] - public static extern void secp256k1go__XYZ_X_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XYZ_X_get")] - public static extern global::System.IntPtr secp256k1go__XYZ_X_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XYZ_Y_set")] - public static extern void secp256k1go__XYZ_Y_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XYZ_Y_get")] - public static extern global::System.IntPtr secp256k1go__XYZ_Y_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XYZ_Z_set")] - public static extern void secp256k1go__XYZ_Z_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XYZ_Z_get")] - public static extern global::System.IntPtr secp256k1go__XYZ_Z_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XYZ_Infinity_set")] - public static extern void secp256k1go__XYZ_Infinity_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_secp256k1go__XYZ_Infinity_get")] - public static extern global::System.IntPtr secp256k1go__XYZ_Infinity_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_secp256k1go__XYZ")] - public static extern global::System.IntPtr new_secp256k1go__XYZ(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_secp256k1go__XYZ")] - public static extern void delete_secp256k1go__XYZ(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__SortableTransactions_Txns_set")] - public static extern void coin__SortableTransactions_Txns_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__SortableTransactions_Txns_get")] - public static extern global::System.IntPtr coin__SortableTransactions_Txns_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__SortableTransactions_Fees_set")] - public static extern void coin__SortableTransactions_Fees_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__SortableTransactions_Fees_get")] - public static extern global::System.IntPtr coin__SortableTransactions_Fees_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__SortableTransactions_Hashes_set")] - public static extern void coin__SortableTransactions_Hashes_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__SortableTransactions_Hashes_get")] - public static extern global::System.IntPtr coin__SortableTransactions_Hashes_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__SortableTransactions")] - public static extern global::System.IntPtr new_coin__SortableTransactions(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__SortableTransactions")] - public static extern void delete_coin__SortableTransactions(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_isEqual")] - public static extern int coin__Transaction_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_Length_set")] - public static extern void coin__Transaction_Length_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_Length_get")] - public static extern global::System.IntPtr coin__Transaction_Length_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_Type_set")] - public static extern void coin__Transaction_Type_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_Type_get")] - public static extern global::System.IntPtr coin__Transaction_Type_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_InnerHash_set")] - public static extern void coin__Transaction_InnerHash_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_InnerHash_get")] - public static extern global::System.IntPtr coin__Transaction_InnerHash_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_Sigs_set")] - public static extern void coin__Transaction_Sigs_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_Sigs_get")] - public static extern global::System.IntPtr coin__Transaction_Sigs_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_In_set")] - public static extern void coin__Transaction_In_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_In_get")] - public static extern global::System.IntPtr coin__Transaction_In_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_Out_set")] - public static extern void coin__Transaction_Out_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_Out_get")] - public static extern global::System.IntPtr coin__Transaction_Out_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__Transaction")] - public static extern global::System.IntPtr new_coin__Transaction(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__Transaction")] - public static extern void delete_coin__Transaction(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__TransactionOutput_isEqual")] - public static extern int coin__TransactionOutput_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__TransactionOutput_Address_set")] - public static extern void coin__TransactionOutput_Address_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__TransactionOutput_Address_get")] - public static extern global::System.IntPtr coin__TransactionOutput_Address_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__TransactionOutput_Coins_set")] - public static extern void coin__TransactionOutput_Coins_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__TransactionOutput_Coins_get")] - public static extern global::System.IntPtr coin__TransactionOutput_Coins_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__TransactionOutput_Hours_set")] - public static extern void coin__TransactionOutput_Hours_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__TransactionOutput_Hours_get")] - public static extern global::System.IntPtr coin__TransactionOutput_Hours_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__TransactionOutput")] - public static extern global::System.IntPtr new_coin__TransactionOutput(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__TransactionOutput")] - public static extern void delete_coin__TransactionOutput(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_isEqual")] - public static extern int coin__BlockHeader_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_Version_set")] - public static extern void coin__BlockHeader_Version_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_Version_get")] - public static extern global::System.IntPtr coin__BlockHeader_Version_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_Time_set")] - public static extern void coin__BlockHeader_Time_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_Time_get")] - public static extern global::System.IntPtr coin__BlockHeader_Time_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_BkSeq_set")] - public static extern void coin__BlockHeader_BkSeq_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_BkSeq_get")] - public static extern global::System.IntPtr coin__BlockHeader_BkSeq_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_Fee_set")] - public static extern void coin__BlockHeader_Fee_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_Fee_get")] - public static extern global::System.IntPtr coin__BlockHeader_Fee_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_PrevHash_set")] - public static extern void coin__BlockHeader_PrevHash_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_PrevHash_get")] - public static extern global::System.IntPtr coin__BlockHeader_PrevHash_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_BodyHash_set")] - public static extern void coin__BlockHeader_BodyHash_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_BodyHash_get")] - public static extern global::System.IntPtr coin__BlockHeader_BodyHash_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_UxHash_set")] - public static extern void coin__BlockHeader_UxHash_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_UxHash_get")] - public static extern global::System.IntPtr coin__BlockHeader_UxHash_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__BlockHeader")] - public static extern global::System.IntPtr new_coin__BlockHeader(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__BlockHeader")] - public static extern void delete_coin__BlockHeader(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockBody_isEqual")] - public static extern int coin__BlockBody_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockBody_Transactions_set")] - public static extern void coin__BlockBody_Transactions_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockBody_Transactions_get")] - public static extern global::System.IntPtr coin__BlockBody_Transactions_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__BlockBody")] - public static extern global::System.IntPtr new_coin__BlockBody(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__BlockBody")] - public static extern void delete_coin__BlockBody(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Block_Head_set")] - public static extern void coin__Block_Head_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Block_Head_get")] - public static extern global::System.IntPtr coin__Block_Head_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Block_Body_set")] - public static extern void coin__Block_Body_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Block_Body_get")] - public static extern global::System.IntPtr coin__Block_Body_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__Block")] - public static extern global::System.IntPtr new_coin__Block(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__Block")] - public static extern void delete_coin__Block(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__SignedBlock__unnamed_set")] - public static extern void coin__SignedBlock__unnamed_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__SignedBlock__unnamed_get")] - public static extern global::System.IntPtr coin__SignedBlock__unnamed_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__SignedBlock_Sig_set")] - public static extern void coin__SignedBlock_Sig_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__SignedBlock_Sig_get")] - public static extern global::System.IntPtr coin__SignedBlock_Sig_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__SignedBlock")] - public static extern global::System.IntPtr new_coin__SignedBlock(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__SignedBlock")] - public static extern void delete_coin__SignedBlock(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxHead_Time_set")] - public static extern void coin__UxHead_Time_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxHead_Time_get")] - public static extern global::System.IntPtr coin__UxHead_Time_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxHead_BkSeq_set")] - public static extern void coin__UxHead_BkSeq_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxHead_BkSeq_get")] - public static extern global::System.IntPtr coin__UxHead_BkSeq_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__UxHead")] - public static extern global::System.IntPtr new_coin__UxHead(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__UxHead")] - public static extern void delete_coin__UxHead(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxBody_SrcTransaction_set")] - public static extern void coin__UxBody_SrcTransaction_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxBody_SrcTransaction_get")] - public static extern global::System.IntPtr coin__UxBody_SrcTransaction_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxBody_Address_set")] - public static extern void coin__UxBody_Address_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxBody_Address_get")] - public static extern global::System.IntPtr coin__UxBody_Address_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxBody_Coins_set")] - public static extern void coin__UxBody_Coins_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxBody_Coins_get")] - public static extern global::System.IntPtr coin__UxBody_Coins_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxBody_Hours_set")] - public static extern void coin__UxBody_Hours_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxBody_Hours_get")] - public static extern global::System.IntPtr coin__UxBody_Hours_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__UxBody")] - public static extern global::System.IntPtr new_coin__UxBody(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__UxBody")] - public static extern void delete_coin__UxBody(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxOut_isEqual")] - public static extern int coin__UxOut_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxOut_Head_set")] - public static extern void coin__UxOut_Head_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxOut_Head_get")] - public static extern global::System.IntPtr coin__UxOut_Head_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxOut_Body_set")] - public static extern void coin__UxOut_Body_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxOut_Body_get")] - public static extern global::System.IntPtr coin__UxOut_Body_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__UxOut")] - public static extern global::System.IntPtr new_coin__UxOut(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__UxOut")] - public static extern void delete_coin__UxOut(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Balance_Coins_set")] - public static extern void wallet__Balance_Coins_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Balance_Coins_get")] - public static extern global::System.IntPtr wallet__Balance_Coins_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Balance_Hours_set")] - public static extern void wallet__Balance_Hours_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Balance_Hours_get")] - public static extern global::System.IntPtr wallet__Balance_Hours_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__Balance")] - public static extern global::System.IntPtr new_wallet__Balance(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__Balance")] - public static extern void delete_wallet__Balance(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__BalancePair_Confirmed_set")] - public static extern void wallet__BalancePair_Confirmed_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__BalancePair_Confirmed_get")] - public static extern global::System.IntPtr wallet__BalancePair_Confirmed_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__BalancePair_Predicted_set")] - public static extern void wallet__BalancePair_Predicted_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__BalancePair_Predicted_get")] - public static extern global::System.IntPtr wallet__BalancePair_Predicted_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__BalancePair")] - public static extern global::System.IntPtr new_wallet__BalancePair(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__BalancePair")] - public static extern void delete_wallet__BalancePair(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Entry_Address_set")] - public static extern void wallet__Entry_Address_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Entry_Address_get")] - public static extern global::System.IntPtr wallet__Entry_Address_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Entry_Public_set")] - public static extern void wallet__Entry_Public_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Entry_Public_get")] - public static extern global::System.IntPtr wallet__Entry_Public_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Entry_Secret_set")] - public static extern void wallet__Entry_Secret_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Entry_Secret_get")] - public static extern global::System.IntPtr wallet__Entry_Secret_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__Entry")] - public static extern global::System.IntPtr new_wallet__Entry(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__Entry")] - public static extern void delete_wallet__Entry(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Note_TxID_set")] - public static extern void wallet__Note_TxID_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Note_TxID_get")] - public static extern global::System.IntPtr wallet__Note_TxID_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Note_Value_set")] - public static extern void wallet__Note_Value_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Note_Value_get")] - public static extern global::System.IntPtr wallet__Note_Value_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__Note")] - public static extern global::System.IntPtr new_wallet__Note(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__Note")] - public static extern void delete_wallet__Note(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__ReadableNote_TransactionID_set")] - public static extern void wallet__ReadableNote_TransactionID_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__ReadableNote_TransactionID_get")] - public static extern global::System.IntPtr wallet__ReadableNote_TransactionID_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__ReadableNote_ActualNote_set")] - public static extern void wallet__ReadableNote_ActualNote_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__ReadableNote_ActualNote_get")] - public static extern global::System.IntPtr wallet__ReadableNote_ActualNote_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__ReadableNote")] - public static extern global::System.IntPtr new_wallet__ReadableNote(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__ReadableNote")] - public static extern void delete_wallet__ReadableNote(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Wallet_Meta_set")] - public static extern void wallet__Wallet_Meta_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Wallet_Meta_get")] - public static extern global::System.IntPtr wallet__Wallet_Meta_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Wallet_Entries_set")] - public static extern void wallet__Wallet_Entries_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__Wallet_Entries_get")] - public static extern global::System.IntPtr wallet__Wallet_Entries_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__Wallet")] - public static extern global::System.IntPtr new_wallet__Wallet(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__Wallet")] - public static extern void delete_wallet__Wallet(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__UxBalance_Hash_set")] - public static extern void wallet__UxBalance_Hash_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__UxBalance_Hash_get")] - public static extern global::System.IntPtr wallet__UxBalance_Hash_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__UxBalance_BkSeq_set")] - public static extern void wallet__UxBalance_BkSeq_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__UxBalance_BkSeq_get")] - public static extern global::System.IntPtr wallet__UxBalance_BkSeq_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__UxBalance_Address_set")] - public static extern void wallet__UxBalance_Address_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__UxBalance_Address_get")] - public static extern global::System.IntPtr wallet__UxBalance_Address_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__UxBalance_Coins_set")] - public static extern void wallet__UxBalance_Coins_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__UxBalance_Coins_get")] - public static extern global::System.IntPtr wallet__UxBalance_Coins_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__UxBalance_Hours_set")] - public static extern void wallet__UxBalance_Hours_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_wallet__UxBalance_Hours_get")] - public static extern global::System.IntPtr wallet__UxBalance_Hours_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__UxBalance")] - public static extern global::System.IntPtr new_wallet__UxBalance(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__UxBalance")] - public static extern void delete_wallet__UxBalance(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_api__RichlistParams_N_set")] - public static extern void api__RichlistParams_N_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_api__RichlistParams_N_get")] - public static extern global::System.IntPtr api__RichlistParams_N_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_api__RichlistParams_IncludeDistribution_set")] - public static extern void api__RichlistParams_IncludeDistribution_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_api__RichlistParams_IncludeDistribution_get")] - public static extern global::System.IntPtr api__RichlistParams_IncludeDistribution_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_api__RichlistParams")] - public static extern global::System.IntPtr new_api__RichlistParams(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_api__RichlistParams")] - public static extern void delete_api__RichlistParams(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cli__SendAmount_Addr_set")] - public static extern void cli__SendAmount_Addr_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cli__SendAmount_Addr_get")] - public static extern global::System.IntPtr cli__SendAmount_Addr_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cli__SendAmount_Coins_set")] - public static extern void cli__SendAmount_Coins_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cli__SendAmount_Coins_get")] - public static extern global::System.IntPtr cli__SendAmount_Coins_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cli__SendAmount")] - public static extern global::System.IntPtr new_cli__SendAmount(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cli__SendAmount")] - public static extern void delete_cli__SendAmount(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_httphelper__Address__unnamed_set")] - public static extern void httphelper__Address__unnamed_set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_httphelper__Address__unnamed_get")] - public static extern global::System.IntPtr httphelper__Address__unnamed_get(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_httphelper__Address")] - public static extern global::System.IntPtr new_httphelper__Address(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_httphelper__Address")] - public static extern void delete_httphelper__Address(global::System.Runtime.InteropServices.HandleRef jarg1); -} - -} diff --git a/LibskycoinNet/skycoin1/skycoinnet_wrap.c b/LibskycoinNet/skycoin1/skycoinnet_wrap.c deleted file mode 100644 index 7898bbb5..00000000 --- a/LibskycoinNet/skycoin1/skycoinnet_wrap.c +++ /dev/null @@ -1,15044 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 3.0.12 - * - * This file is not intended to be easily readable and contains a number of - * coding conventions designed to improve portability and efficiency. Do not make - * changes to this file unless you know what you are doing--modify the SWIG - * interface file instead. - * ----------------------------------------------------------------------------- */ - - -#ifndef SWIGCSHARP -#define SWIGCSHARP -#endif - - -/* ----------------------------------------------------------------------------- - * This section contains generic SWIG labels for method/variable - * declarations/attributes, and other compiler dependent labels. - * ----------------------------------------------------------------------------- */ - -/* template workaround for compilers that cannot correctly implement the C++ standard */ -#ifndef SWIGTEMPLATEDISAMBIGUATOR -# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) -# define SWIGTEMPLATEDISAMBIGUATOR template -# elif defined(__HP_aCC) -/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ -/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ -# define SWIGTEMPLATEDISAMBIGUATOR template -# else -# define SWIGTEMPLATEDISAMBIGUATOR -# endif -#endif - -/* inline attribute */ -#ifndef SWIGINLINE -# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) -# define SWIGINLINE inline -# else -# define SWIGINLINE -# endif -#endif - -/* attribute recognised by some compilers to avoid 'unused' warnings */ -#ifndef SWIGUNUSED -# if defined(__GNUC__) -# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) -# define SWIGUNUSED __attribute__ ((__unused__)) -# else -# define SWIGUNUSED -# endif -# elif defined(__ICC) -# define SWIGUNUSED __attribute__ ((__unused__)) -# else -# define SWIGUNUSED -# endif -#endif - -#ifndef SWIG_MSC_UNSUPPRESS_4505 -# if defined(_MSC_VER) -# pragma warning(disable : 4505) /* unreferenced local function has been removed */ -# endif -#endif - -#ifndef SWIGUNUSEDPARM -# ifdef __cplusplus -# define SWIGUNUSEDPARM(p) -# else -# define SWIGUNUSEDPARM(p) p SWIGUNUSED -# endif -#endif - -/* internal SWIG method */ -#ifndef SWIGINTERN -# define SWIGINTERN static SWIGUNUSED -#endif - -/* internal inline SWIG method */ -#ifndef SWIGINTERNINLINE -# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE -#endif - -/* exporting methods */ -#if defined(__GNUC__) -# if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) -# ifndef GCC_HASCLASSVISIBILITY -# define GCC_HASCLASSVISIBILITY -# endif -# endif -#endif - -#ifndef SWIGEXPORT -# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) -# if defined(STATIC_LINKED) -# define SWIGEXPORT -# else -# define SWIGEXPORT __declspec(dllexport) -# endif -# else -# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) -# define SWIGEXPORT __attribute__ ((visibility("default"))) -# else -# define SWIGEXPORT -# endif -# endif -#endif - -/* calling conventions for Windows */ -#ifndef SWIGSTDCALL -# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) -# define SWIGSTDCALL __stdcall -# else -# define SWIGSTDCALL -# endif -#endif - -/* Deal with Microsoft's attempt at deprecating C standard runtime functions */ -#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) -# define _CRT_SECURE_NO_DEPRECATE -#endif - -/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ -#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) -# define _SCL_SECURE_NO_DEPRECATE -#endif - -/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */ -#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES) -# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0 -#endif - -/* Intel's compiler complains if a variable which was never initialised is - * cast to void, which is a common idiom which we use to indicate that we - * are aware a variable isn't used. So we just silence that warning. - * See: https://github.com/swig/swig/issues/192 for more discussion. - */ -#ifdef __INTEL_COMPILER -# pragma warning disable 592 -#endif - - -#include -#include -#include - - -/* Support for throwing C# exceptions from C/C++. There are two types: - * Exceptions that take a message and ArgumentExceptions that take a message and a parameter name. */ -typedef enum { - SWIG_CSharpApplicationException, - SWIG_CSharpArithmeticException, - SWIG_CSharpDivideByZeroException, - SWIG_CSharpIndexOutOfRangeException, - SWIG_CSharpInvalidCastException, - SWIG_CSharpInvalidOperationException, - SWIG_CSharpIOException, - SWIG_CSharpNullReferenceException, - SWIG_CSharpOutOfMemoryException, - SWIG_CSharpOverflowException, - SWIG_CSharpSystemException -} SWIG_CSharpExceptionCodes; - -typedef enum { - SWIG_CSharpArgumentException, - SWIG_CSharpArgumentNullException, - SWIG_CSharpArgumentOutOfRangeException -} SWIG_CSharpExceptionArgumentCodes; - -typedef void (SWIGSTDCALL* SWIG_CSharpExceptionCallback_t)(const char *); -typedef void (SWIGSTDCALL* SWIG_CSharpExceptionArgumentCallback_t)(const char *, const char *); - -typedef struct { - SWIG_CSharpExceptionCodes code; - SWIG_CSharpExceptionCallback_t callback; -} SWIG_CSharpException_t; - -typedef struct { - SWIG_CSharpExceptionArgumentCodes code; - SWIG_CSharpExceptionArgumentCallback_t callback; -} SWIG_CSharpExceptionArgument_t; - -static SWIG_CSharpException_t SWIG_csharp_exceptions[] = { - { SWIG_CSharpApplicationException, NULL }, - { SWIG_CSharpArithmeticException, NULL }, - { SWIG_CSharpDivideByZeroException, NULL }, - { SWIG_CSharpIndexOutOfRangeException, NULL }, - { SWIG_CSharpInvalidCastException, NULL }, - { SWIG_CSharpInvalidOperationException, NULL }, - { SWIG_CSharpIOException, NULL }, - { SWIG_CSharpNullReferenceException, NULL }, - { SWIG_CSharpOutOfMemoryException, NULL }, - { SWIG_CSharpOverflowException, NULL }, - { SWIG_CSharpSystemException, NULL } -}; - -static SWIG_CSharpExceptionArgument_t SWIG_csharp_exceptions_argument[] = { - { SWIG_CSharpArgumentException, NULL }, - { SWIG_CSharpArgumentNullException, NULL }, - { SWIG_CSharpArgumentOutOfRangeException, NULL } -}; - -static void SWIGUNUSED SWIG_CSharpSetPendingException(SWIG_CSharpExceptionCodes code, const char *msg) { - SWIG_CSharpExceptionCallback_t callback = SWIG_csharp_exceptions[SWIG_CSharpApplicationException].callback; - if ((size_t)code < sizeof(SWIG_csharp_exceptions)/sizeof(SWIG_CSharpException_t)) { - callback = SWIG_csharp_exceptions[code].callback; - } - callback(msg); -} - -static void SWIGUNUSED SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpExceptionArgumentCodes code, const char *msg, const char *param_name) { - SWIG_CSharpExceptionArgumentCallback_t callback = SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentException].callback; - if ((size_t)code < sizeof(SWIG_csharp_exceptions_argument)/sizeof(SWIG_CSharpExceptionArgument_t)) { - callback = SWIG_csharp_exceptions_argument[code].callback; - } - callback(msg, param_name); -} - - -#ifdef __cplusplus -extern "C" -#endif -SWIGEXPORT void SWIGSTDCALL SWIGRegisterExceptionCallbacks_skycoin( - SWIG_CSharpExceptionCallback_t applicationCallback, - SWIG_CSharpExceptionCallback_t arithmeticCallback, - SWIG_CSharpExceptionCallback_t divideByZeroCallback, - SWIG_CSharpExceptionCallback_t indexOutOfRangeCallback, - SWIG_CSharpExceptionCallback_t invalidCastCallback, - SWIG_CSharpExceptionCallback_t invalidOperationCallback, - SWIG_CSharpExceptionCallback_t ioCallback, - SWIG_CSharpExceptionCallback_t nullReferenceCallback, - SWIG_CSharpExceptionCallback_t outOfMemoryCallback, - SWIG_CSharpExceptionCallback_t overflowCallback, - SWIG_CSharpExceptionCallback_t systemCallback) { - SWIG_csharp_exceptions[SWIG_CSharpApplicationException].callback = applicationCallback; - SWIG_csharp_exceptions[SWIG_CSharpArithmeticException].callback = arithmeticCallback; - SWIG_csharp_exceptions[SWIG_CSharpDivideByZeroException].callback = divideByZeroCallback; - SWIG_csharp_exceptions[SWIG_CSharpIndexOutOfRangeException].callback = indexOutOfRangeCallback; - SWIG_csharp_exceptions[SWIG_CSharpInvalidCastException].callback = invalidCastCallback; - SWIG_csharp_exceptions[SWIG_CSharpInvalidOperationException].callback = invalidOperationCallback; - SWIG_csharp_exceptions[SWIG_CSharpIOException].callback = ioCallback; - SWIG_csharp_exceptions[SWIG_CSharpNullReferenceException].callback = nullReferenceCallback; - SWIG_csharp_exceptions[SWIG_CSharpOutOfMemoryException].callback = outOfMemoryCallback; - SWIG_csharp_exceptions[SWIG_CSharpOverflowException].callback = overflowCallback; - SWIG_csharp_exceptions[SWIG_CSharpSystemException].callback = systemCallback; -} - -#ifdef __cplusplus -extern "C" -#endif -SWIGEXPORT void SWIGSTDCALL SWIGRegisterExceptionArgumentCallbacks_skycoin( - SWIG_CSharpExceptionArgumentCallback_t argumentCallback, - SWIG_CSharpExceptionArgumentCallback_t argumentNullCallback, - SWIG_CSharpExceptionArgumentCallback_t argumentOutOfRangeCallback) { - SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentException].callback = argumentCallback; - SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentNullException].callback = argumentNullCallback; - SWIG_csharp_exceptions_argument[SWIG_CSharpArgumentOutOfRangeException].callback = argumentOutOfRangeCallback; -} - - -/* Callback for returning strings to C# without leaking memory */ -typedef char * (SWIGSTDCALL* SWIG_CSharpStringHelperCallback)(const char *); -static SWIG_CSharpStringHelperCallback SWIG_csharp_string_callback = NULL; - - -#ifdef __cplusplus -extern "C" -#endif -SWIGEXPORT void SWIGSTDCALL SWIGRegisterStringCallback_skycoin(SWIG_CSharpStringHelperCallback callback) { - SWIG_csharp_string_callback = callback; -} - - -/* Contract support */ - -#define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentOutOfRangeException, msg, ""); return nullreturn; } else - - - #define SWIG_FILE_WITH_INIT - #include "libskycoin.h" - - - - void destroy_cipher_SecKeys(cipher_SecKeys* p){ - if( p != NULL ){ - if( p->data != NULL ){ - free( p->data ); - } - } - } - - - int equalSlices(GoSlice* slice1, GoSlice* slice2, int elem_size){ - if(slice1->len != slice2->len) - return 0; - return memcmp(slice1->data, slice2->data, slice1->len * elem_size) == 0; - } - int equalTransactions(coin__Transaction* t1, coin__Transaction* t2){ - if( t1->Length != t2->Length || t1->Type != t2->Type ){ - return 0; - } - if( memcmp(&t1->InnerHash, &t2->InnerHash, sizeof(cipher__SHA256)) != 0 ) - return 0; - if(!equalSlices((GoSlice*)&t1->Sigs, (GoSlice*)&t2->Sigs, sizeof(cipher__Sig))) - return 0; - if(!equalSlices((GoSlice*)&t1->In, (GoSlice*)&t2->In, sizeof(cipher__SHA256))) - return 0; - if(!equalSlices((GoSlice*)&t1->Out, (GoSlice*)&t2->Out, sizeof(coin__TransactionOutput))) - return 0; - return 1; - } - int equalTransactionsArrays(coin__Transactions* pTxs1, coin__Transactions* pTxs2){ - if( pTxs1->len != pTxs2->len ) - return 0; - coin__Transaction* pTx1 = pTxs1->data; - coin__Transaction* pTx2 = pTxs2->data; - int i; - for(i = 0; i < pTxs1->len; i++){ - if(!equalTransactions(pTx1, pTx2)) - return 0; - pTx1++; - pTx2++; - } - return 1; - } - int equalBlockHeaders(coin__BlockHeader* bh1, coin__BlockHeader* bh2){ - if( bh1->Version != bh2->Version || bh1->Time != bh2->Time || - bh1->BkSeq != bh2->BkSeq || bh1->Fee != bh2->Fee) - return 0; - if( memcmp( &bh1->PrevHash, bh2->PrevHash, sizeof(bh2->PrevHash) ) != 0 ) - return 0; - if( memcmp( &bh1->BodyHash, bh2->PrevHash, sizeof(bh2->BodyHash) ) != 0 ) - return 0; - if( memcmp( &bh1->UxHash, bh2->PrevHash, sizeof(bh2->UxHash) ) != 0 ) - return 0; - return 1; - } - - -static cipher_PubKey *new_cipher_PubKeyp() { - return (cipher_PubKey *) calloc(1,sizeof(cipher_PubKey)); -} - -static cipher_PubKey *copy_cipher_PubKeyp(cipher_PubKey value) { - cipher_PubKey *obj = (cipher_PubKey *) calloc(1,sizeof(cipher_PubKey)); - *obj = value; - return obj; -} - -static void delete_cipher_PubKeyp(cipher_PubKey *obj) { - if (obj) free(obj); -} - -static void cipher_PubKeyp_assign(cipher_PubKey *obj, cipher_PubKey value) { - *obj = value; -} - -static cipher_PubKey cipher_PubKeyp_value(cipher_PubKey *obj) { - return *obj; -} - -SWIGINTERN int cipher_PubKey_isEqual(cipher_PubKey *self,cipher_PubKey *a){ - return memcmp(self->data, a->data, sizeof(a->data)) == 0; - } -SWIGINTERN void cipher_PubKey_assignFrom(cipher_PubKey *self,void *data){ - memcpy(&self->data, data, sizeof(self->data)); - } -SWIGINTERN void cipher_PubKey_assignTo(cipher_PubKey *self,void *data){ - memcpy(data, &self->data, sizeof(self->data)); - } -SWIGINTERN int cipher_SecKey_isEqual(cipher_SecKey *self,cipher_SecKey *a){ - return memcmp(self->data, a->data, sizeof(a->data)) == 0; - } -SWIGINTERN void cipher_SecKey_assignFrom(cipher_SecKey *self,void *data){ - memcpy(&self->data, data, sizeof(self->data)); - } -SWIGINTERN void cipher_SecKey_assignTo(cipher_SecKey *self,void *data){ - memcpy(data, &self->data, sizeof(self->data)); - } -SWIGINTERN int cipher_Ripemd160_isEqual(cipher_Ripemd160 *self,cipher_Ripemd160 *a){ - return memcmp(self->data, a->data, sizeof(a->data)) == 0; - } -SWIGINTERN void cipher_Ripemd160_assignFrom(cipher_Ripemd160 *self,void *data){ - memcpy(&self->data, data, sizeof(self->data)); - } -SWIGINTERN void cipher_Ripemd160_assignTo(cipher_Ripemd160 *self,void *data){ - memcpy(data, &self->data, sizeof(self->data)); - } -SWIGINTERN int cipher_Sig_isEqual(cipher_Sig *self,cipher_Sig *a){ - return memcmp(self->data, a->data, sizeof(a->data)) == 0; - } -SWIGINTERN void cipher_Sig_assignFrom(cipher_Sig *self,void *data){ - memcpy(&self->data, data, sizeof(self->data)); - } -SWIGINTERN void cipher_Sig_assignTo(cipher_Sig *self,void *data){ - memcpy(data, &self->data, sizeof(self->data)); - } -SWIGINTERN int cipher_SHA256_isEqual(cipher_SHA256 *self,cipher_SHA256 *a){ - return memcmp(self->data, a->data, sizeof(a->data)) == 0; - } -SWIGINTERN void cipher_SHA256_assignFrom(cipher_SHA256 *self,void *data){ - memcpy(&self->data, data, sizeof(self->data)); - } -SWIGINTERN void cipher_SHA256_assignTo(cipher_SHA256 *self,void *data){ - memcpy(data, &self->data, sizeof(self->data)); - } -SWIGINTERN int cipher_Checksum_isEqual(cipher_Checksum *self,cipher_Checksum *a){ - return memcmp(self->data, a->data, sizeof(a->data)) == 0; - } -SWIGINTERN void cipher_Checksum_assignFrom(cipher_Checksum *self,void *data){ - memcpy(&self->data, data, sizeof(self->data)); - } -SWIGINTERN void cipher_Checksum_assignTo(cipher_Checksum *self,void *data){ - memcpy(data, &self->data, sizeof(self->data)); - } -SWIGINTERN cipher_SecKey *cipher_SecKeys_getAt(cipher_SecKeys *self,int i){ - if( i < self->count ){ - return &self->data[i]; - } - else - return NULL; - } -SWIGINTERN int cipher_SecKeys_setAt(cipher_SecKeys *self,int i,cipher_SecKey *seckey){ - if( i < self->count){ - memcpy(&self->data[i], seckey, sizeof(*seckey)); - return i; - } else { - return -1; - } - } -SWIGINTERN int cipher_SecKeys_isEqual(cipher_SecKeys *self,cipher_SecKeys *a){ - return self->count == a->count && memcmp(self->data, a->data, sizeof(cipher_SecKey) * self->count) == 0; - } -SWIGINTERN void cipher_SecKeys_allocate(cipher_SecKeys *self,int n){ - self->data = malloc(n * sizeof(*(self->data))); - self->count = n; - } -SWIGINTERN void cipher_SecKeys_release(cipher_SecKeys *self){ - destroy_cipher_SecKeys(self); - } -SWIGINTERN cipher_PubKey *cipher_PubKeys_getAt(cipher_PubKeys *self,int i){ - if( i < self->count ){ - return &self->data[i]; - } - else - return NULL; - } -SWIGINTERN int cipher_PubKeys_setAt(cipher_PubKeys *self,int i,cipher_PubKey *pubkey){ - if( i < self->count){ - memcpy(&self->data[i], pubkey, sizeof(*pubkey)); - return i; - } else { - return -1; - } - } -SWIGINTERN int cipher_PubKeys_isEqual(cipher_PubKeys *self,cipher_PubKeys *a){ - return self->count == a->count && memcmp(self->data, a->data, sizeof(cipher_PubKey) * self->count) == 0; - } -SWIGINTERN void cipher_PubKeys_allocate(cipher_PubKeys *self,int n){ - self->data = malloc(n * sizeof(*(self->data))); - self->count = n; - } -SWIGINTERN void cipher_PubKeys_release(cipher_PubKeys *self){ - if(self->data != NULL) - free(self->data); - } -SWIGINTERN cipher_SHA256 *cipher_SHA256s_getAt(cipher_SHA256s *self,int i){ - if( i < self->count ){ - return &self->data[i]; - } - else - return NULL; - } -SWIGINTERN int cipher_SHA256s_setAt(cipher_SHA256s *self,int i,cipher_SHA256 *hash){ - if( i < self->count){ - memcpy(&self->data[i], hash, sizeof(*hash)); - return i; - } else { - return -1; - } - } -SWIGINTERN int cipher_SHA256s_isEqual(cipher_SHA256s *self,cipher_SHA256s *a){ - return self->count == a->count && memcmp(self->data, a->data, sizeof(cipher_SHA256) * self->count) == 0; - } -SWIGINTERN void cipher_SHA256s_allocate(cipher_SHA256s *self,int n){ - self->data = malloc(n * sizeof(*(self->data))); - self->count = n; - } -SWIGINTERN void cipher_SHA256s_release(cipher_SHA256s *self){ - if(self->data != NULL) free(self->data); - } -SWIGINTERN coin__UxOut *coin_UxOutArray_getAt(coin_UxOutArray *self,int i){ - if( i < self->count ){ - return &self->data[i]; - } - else - return NULL; - } -SWIGINTERN int coin_UxOutArray_setAt(coin_UxOutArray *self,int i,coin__UxOut *uxout){ - if( i < self->count){ - memcpy(&self->data[i], uxout, sizeof(*uxout)); - return i; - } else { - return -1; - } - } -SWIGINTERN int coin_UxOutArray_isEqual(coin_UxOutArray *self,coin_UxOutArray *a){ - return self->count == a->count && memcmp(self->data, a->data, sizeof(coin__UxOut) * self->count) == 0; - } -SWIGINTERN void coin_UxOutArray_allocate(coin_UxOutArray *self,int n){ - self->data = malloc(n * sizeof(*(self->data))); - self->count = n; - } -SWIGINTERN void coin_UxOutArray_release(coin_UxOutArray *self){ - if(self->data != NULL) - free(self->data); - } -SWIGINTERN int cipher__Address_isEqual(cipher__Address *self,cipher__Address *a){ - if( self->Version == a->Version ){ - return memcmp(self->Key, a->Key, sizeof(a->Key)) == 0; - } - return 0; - } -SWIGINTERN int coin__Transaction_isEqual(coin__Transaction *self,coin__Transaction *t){ - return equalTransactions(self, t); - } -SWIGINTERN int coin__TransactionOutput_isEqual(coin__TransactionOutput *self,coin__TransactionOutput *t){ - if( self->Coins != t->Coins || - self->Hours != t->Hours ){ - return 0; - } - - if(memcmp(&self->Address, &t->Address, sizeof(cipher__Address)) != 0) - return 0; - return 1; - } -SWIGINTERN int coin__BlockHeader_isEqual(coin__BlockHeader *self,coin__BlockHeader *bh){ - return equalBlockHeaders(self, bh); - } -SWIGINTERN int coin__BlockBody_isEqual(coin__BlockBody *self,coin__BlockBody *b){ - return equalTransactionsArrays(&self->Transactions, &b->Transactions); - } -SWIGINTERN int coin__UxOut_isEqual(coin__UxOut *self,coin__UxOut *u){ - return memcmp(&self, u, sizeof(coin__UxOut)) == 0; - } - -#ifdef __cplusplus -extern "C" { -#endif - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_destroy_cipher_SecKeys(void * jarg1) { - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - - arg1 = (cipher_SecKeys *)jarg1; - destroy_cipher_SecKeys(arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalSlices(void * jarg1, void * jarg2, int jarg3) { - int jresult ; - GoSlice *arg1 = (GoSlice *) 0 ; - GoSlice *arg2 = (GoSlice *) 0 ; - int arg3 ; - int result; - - arg1 = (GoSlice *)jarg1; - arg2 = (GoSlice *)jarg2; - arg3 = (int)jarg3; - result = (int)equalSlices(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalTransactions(void * jarg1, void * jarg2) { - int jresult ; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - coin__Transaction *arg2 = (coin__Transaction *) 0 ; - int result; - - arg1 = (coin__Transaction *)jarg1; - arg2 = (coin__Transaction *)jarg2; - result = (int)equalTransactions(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalTransactionsArrays(void * jarg1, void * jarg2) { - int jresult ; - coin__Transactions *arg1 = (coin__Transactions *) 0 ; - coin__Transactions *arg2 = (coin__Transactions *) 0 ; - int result; - - arg1 = (coin__Transactions *)jarg1; - arg2 = (coin__Transactions *)jarg2; - result = (int)equalTransactionsArrays(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalBlockHeaders(void * jarg1, void * jarg2) { - int jresult ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - coin__BlockHeader *arg2 = (coin__BlockHeader *) 0 ; - int result; - - arg1 = (coin__BlockHeader *)jarg1; - arg2 = (coin__BlockHeader *)jarg2; - result = (int)equalBlockHeaders(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT cipher_PubKey* SWIGSTDCALL CSharp_skycoin_new_cipher_PubKeyp() { - cipher_PubKey* jresult ; - cipher_PubKey *result = 0 ; - - result = (cipher_PubKey *)new_cipher_PubKeyp(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT cipher_PubKey* SWIGSTDCALL CSharp_skycoin_copy_cipher_PubKeyp(void * jarg1) { - cipher_PubKey* jresult ; - cipher_PubKey arg1 ; - cipher_PubKey *argp1 ; - cipher_PubKey *result = 0 ; - - argp1 = (cipher_PubKey *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null cipher_PubKey", 0); - return 0; - } - arg1 = *argp1; - result = (cipher_PubKey *)copy_cipher_PubKeyp(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_PubKeyp(cipher_PubKey* jarg1) { - cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; - - cipher_PubKey* - delete_cipher_PubKeyp(arg1); - { - //Typemap freearg *ConfigHandle - } -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKeyp_assign(cipher_PubKey* jarg1, void * jarg2) { - cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; - cipher_PubKey arg2 ; - cipher_PubKey *argp2 ; - - cipher_PubKey* - argp2 = (cipher_PubKey *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null cipher_PubKey", 0); - return ; - } - arg2 = *argp2; - cipher_PubKeyp_assign(arg1,arg2); - { - //Typemap freearg *ConfigHandle - } -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_PubKeyp_value(cipher_PubKey* jarg1) { - void * jresult ; - cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; - cipher_PubKey result; - - cipher_PubKey* - result = cipher_PubKeyp_value(arg1); - { - cipher_PubKey * resultptr = (cipher_PubKey *) malloc(sizeof(cipher_PubKey)); - memmove(resultptr, &result, sizeof(cipher_PubKey)); - jresult = resultptr; - } - { - //Typemap freearg *ConfigHandle - } - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_add(cipher_PubKey* jarg1, cipher_PubKey* jarg2, cipher_PubKey* jarg3) { - cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; - cipher_PubKey *arg2 = (cipher_PubKey *) 0 ; - cipher_PubKey *arg3 = (cipher_PubKey *) 0 ; - - cipher_PubKey* - cipher_PubKey* - cipher_PubKey* - add(arg1,arg2,arg3); - { - //Typemap freearg *ConfigHandle - } - { - //Typemap freearg *ConfigHandle - } - { - //Typemap freearg *ConfigHandle - } -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrVerifySignatureInvalidPubkeysLength_get() { - long long jresult ; - long long result; - - result = (long long)(0x0b000036); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_OK_get() { - long long jresult ; - long long result; - - result = (long long)(0); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ERROR_get() { - long long jresult ; - long long result; - - result = (long long)(0x7FFFFFFF); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_API_get() { - long long jresult ; - long long result; - - result = (long long)(0x01000000); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_CIPHER_get() { - long long jresult ; - long long result; - - result = (long long)(0x02000000); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_CLI_get() { - long long jresult ; - long long result; - - result = (long long)(0x03000000); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_COIN_get() { - long long jresult ; - long long result; - - result = (long long)(0x04000000); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_CONSENSUS_get() { - long long jresult ; - long long result; - - result = (long long)(0x05000000); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_DAEMON_get() { - long long jresult ; - long long result; - - result = (long long)(0x06000000); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_GUI_get() { - long long jresult ; - long long result; - - result = (long long)(0x07000000); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_SKYCOIN_get() { - long long jresult ; - long long result; - - result = (long long)(0x08000000); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_UTIL_get() { - long long jresult ; - long long result; - - result = (long long)(0x09000000); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_VISOR_get() { - long long jresult ; - long long result; - - result = (long long)(0x0A000000); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_PKG_WALLET_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000000); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrAddressInvalidLength_get() { - long long jresult ; - long long result; - - result = (long long)(0x02000000); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrAddressInvalidChecksum_get() { - long long jresult ; - long long result; - - result = (long long)(0x02000001); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrAddressInvalidVersion_get() { - long long jresult ; - long long result; - - result = (long long)(0x02000002); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrAddressInvalidPubKey_get() { - long long jresult ; - long long result; - - result = (long long)(0x02000003); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrAddressInvalidFirstByte_get() { - long long jresult ; - long long result; - - result = (long long)(0x02000004); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrAddressInvalidLastByte_get() { - long long jresult ; - long long result; - - result = (long long)(0x02000005); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrBufferUnderflow_get() { - long long jresult ; - long long result; - - result = (long long)(0x02000006); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidOmitEmpty_get() { - long long jresult ; - long long result; - - result = (long long)(0x02000007); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidLengthPubKey_get() { - long long jresult ; - long long result; - - result = (long long)(0x02000008); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrPubKeyFromNullSecKey_get() { - long long jresult ; - long long result; - - result = (long long)(0x02000009); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrPubKeyFromBadSecKey_get() { - long long jresult ; - long long result; - - result = (long long)(0x0200000A); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidLengthSecKey_get() { - long long jresult ; - long long result; - - result = (long long)(0x0200000B); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrECHDInvalidPubKey_get() { - long long jresult ; - long long result; - - result = (long long)(0x0200000C); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrECHDInvalidSecKey_get() { - long long jresult ; - long long result; - - result = (long long)(0x0200000D); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidLengthSig_get() { - long long jresult ; - long long result; - - result = (long long)(0x0200000E); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidLengthRipemd160_get() { - long long jresult ; - long long result; - - result = (long long)(0x0200000F); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidLengthSHA256_get() { - long long jresult ; - long long result; - - result = (long long)(0x02000010); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidBase58Char_get() { - long long jresult ; - long long result; - - result = (long long)(0x02000011); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidBase58String_get() { - long long jresult ; - long long result; - - result = (long long)(0x02000012); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidBase58Length_get() { - long long jresult ; - long long result; - - result = (long long)(0x02000013); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidHexLength_get() { - long long jresult ; - long long result; - - result = (long long)(0x02000014); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidBytesLength_get() { - long long jresult ; - long long result; - - result = (long long)(0x02000015); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidPubKey_get() { - long long jresult ; - long long result; - - result = (long long)(0x02000016); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidSecKey_get() { - long long jresult ; - long long result; - - result = (long long)(0x02000017); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidSigForPubKey_get() { - long long jresult ; - long long result; - - result = (long long)(0x02000018); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidSecKeyHex_get() { - long long jresult ; - long long result; - - result = (long long)(0x02000019); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidAddressForSig_get() { - long long jresult ; - long long result; - - result = (long long)(0x0200001A); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidHashForSig_get() { - long long jresult ; - long long result; - - result = (long long)(0x0200001B); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrPubKeyRecoverMismatch_get() { - long long jresult ; - long long result; - - result = (long long)(0x0200001C); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidSigInvalidPubKey_get() { - long long jresult ; - long long result; - - result = (long long)(0x0200001D); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidSigValidity_get() { - long long jresult ; - long long result; - - result = (long long)(0x0200001E); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidSigForMessage_get() { - long long jresult ; - long long result; - - result = (long long)(0x0200001F); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidSecKyVerification_get() { - long long jresult ; - long long result; - - result = (long long)(0x02000020); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrNullPubKeyFromSecKey_get() { - long long jresult ; - long long result; - - result = (long long)(0x02000021); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidDerivedPubKeyFromSecKey_get() { - long long jresult ; - long long result; - - result = (long long)(0x02000022); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidPubKeyFromHash_get() { - long long jresult ; - long long result; - - result = (long long)(0x02000023); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrPubKeyFromSecKeyMissmatch_get() { - long long jresult ; - long long result; - - result = (long long)(0x02000024); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTemporaryInsufficientBalance_get() { - long long jresult ; - long long result; - - result = (long long)(0x03000000); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrAddress_get() { - long long jresult ; - long long result; - - result = (long long)(0x03000001); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrWalletName_get() { - long long jresult ; - long long result; - - result = (long long)(0x03000002); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrJSONMarshal_get() { - long long jresult ; - long long result; - - result = (long long)(0x03000003); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_WalletLoadError_get() { - long long jresult ; - long long result; - - result = (long long)(0x03000004); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_WalletSaveError_get() { - long long jresult ; - long long result; - - result = (long long)(0x03000005); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrAddEarnedCoinHoursAdditionOverflow_get() { - long long jresult ; - long long result; - - result = (long long)(0x04000000); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrUint64MultOverflow_get() { - long long jresult ; - long long result; - - result = (long long)(0x04000001); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrUint64AddOverflow_get() { - long long jresult ; - long long result; - - result = (long long)(0x04000002); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrUint32AddOverflow_get() { - long long jresult ; - long long result; - - result = (long long)(0x04000003); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrUint64OverflowsInt64_get() { - long long jresult ; - long long result; - - result = (long long)(0x04000004); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInt64UnderflowsUint64_get() { - long long jresult ; - long long result; - - result = (long long)(0x04000005); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrPeerlistFull_get() { - long long jresult ; - long long result; - - result = (long long)(0x06000000); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidAddress_get() { - long long jresult ; - long long result; - - result = (long long)(0x06000001); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrNoLocalhost_get() { - long long jresult ; - long long result; - - result = (long long)(0x06000002); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrNotExternalIP_get() { - long long jresult ; - long long result; - - result = (long long)(0x06000003); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrPortTooLow_get() { - long long jresult ; - long long result; - - result = (long long)(0x06000004); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrBlacklistedAddress_get() { - long long jresult ; - long long result; - - result = (long long)(0x06000005); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectReadFailed_get() { - long long jresult ; - long long result; - - result = (long long)(0x06000006); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectWriteFailed_get() { - long long jresult ; - long long result; - - result = (long long)(0x06000007); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectSetReadDeadlineFailed_get() { - long long jresult ; - long long result; - - result = (long long)(0x06000008); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectInvalidMessageLength_get() { - long long jresult ; - long long result; - - result = (long long)(0x06000009); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectMalformedMessage_get() { - long long jresult ; - long long result; - - result = (long long)(0x0600000A); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectUnknownMessage_get() { - long long jresult ; - long long result; - - result = (long long)(0x0600000B); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectUnexpectedError_get() { - long long jresult ; - long long result; - - result = (long long)(0x0600000C); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrConnectionPoolClosed_get() { - long long jresult ; - long long result; - - result = (long long)(0x0600000D); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrWriteQueueFull_get() { - long long jresult ; - long long result; - - result = (long long)(0x0600000E); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrNoReachableConnections_get() { - long long jresult ; - long long result; - - result = (long long)(0x0600000F); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMaxDefaultConnectionsReached_get() { - long long jresult ; - long long result; - - result = (long long)(0x06000010); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectInvalidVersion_get() { - long long jresult ; - long long result; - - result = (long long)(0x06000011); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectIntroductionTimeout_get() { - long long jresult ; - long long result; - - result = (long long)(0x06000012); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectVersionSendFailed_get() { - long long jresult ; - long long result; - - result = (long long)(0x06000013); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectIsBlacklisted_get() { - long long jresult ; - long long result; - - result = (long long)(0x06000014); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectSelf_get() { - long long jresult ; - long long result; - - result = (long long)(0x06000015); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectConnectedTwice_get() { - long long jresult ; - long long result; - - result = (long long)(0x06000016); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectIdle_get() { - long long jresult ; - long long result; - - result = (long long)(0x06000017); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectNoIntroduction_get() { - long long jresult ; - long long result; - - result = (long long)(0x06000018); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectIPLimitReached_get() { - long long jresult ; - long long result; - - result = (long long)(0x06000019); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectOtherError_get() { - long long jresult ; - long long result; - - result = (long long)(0x0600001A); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectMaxDefaultConnectionReached_get() { - long long jresult ; - long long result; - - result = (long long)(0x0600001B); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDisconnectMaxOutgoingConnectionsReached_get() { - long long jresult ; - long long result; - - result = (long long)(0x0600001C); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ConnectionError_get() { - long long jresult ; - long long result; - - result = (long long)(0x0600001D); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTxnNoFee_get() { - long long jresult ; - long long result; - - result = (long long)(0x09000000); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTxnInsufficientFee_get() { - long long jresult ; - long long result; - - result = (long long)(0x09000001); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTxnInsufficientCoinHours_get() { - long long jresult ; - long long result; - - result = (long long)(0x09000002); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrNegativeValue_get() { - long long jresult ; - long long result; - - result = (long long)(0x09000003); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTooManyDecimals_get() { - long long jresult ; - long long result; - - result = (long long)(0x09000004); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTooLarge_get() { - long long jresult ; - long long result; - - result = (long long)(0x09000005); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrEmptyDirectoryName_get() { - long long jresult ; - long long result; - - result = (long long)(0x09000006); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDotDirectoryName_get() { - long long jresult ; - long long result; - - result = (long long)(0x09000007); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrHistoryDBCorrupted_get() { - long long jresult ; - long long result; - - result = (long long)(0x0A000000); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrUxOutNotExist_get() { - long long jresult ; - long long result; - - result = (long long)(0x0A000001); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrNoHeadBlock_get() { - long long jresult ; - long long result; - - result = (long long)(0x0A000002); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMissingSignature_get() { - long long jresult ; - long long result; - - result = (long long)(0x0A000003); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrUnspentNotExist_get() { - long long jresult ; - long long result; - - result = (long long)(0x0A000004); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrVerifyStopped_get() { - long long jresult ; - long long result; - - result = (long long)(0x0A000005); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrCreateBucketFailed_get() { - long long jresult ; - long long result; - - result = (long long)(0x0A000000); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrBucketNotExist_get() { - long long jresult ; - long long result; - - result = (long long)(0x0A000006); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTxnViolatesHardConstraint_get() { - long long jresult ; - long long result; - - result = (long long)(0x0A000007); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTxnViolatesSoftConstraint_get() { - long long jresult ; - long long result; - - result = (long long)(0x0A000008); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrTxnViolatesUserConstraint_get() { - long long jresult ; - long long result; - - result = (long long)(0x0A000009); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInsufficientBalance_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000000); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInsufficientHours_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000001); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrZeroSpend_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000002); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrSpendingUnconfirmed_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000003); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidEncryptedField_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000004); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrWalletEncrypted_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000005); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrWalletNotEncrypted_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000006); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMissingPassword_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000007); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMissingEncrypt_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000008); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidPassword_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000009); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMissingSeed_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B00000A); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMissingAuthenticated_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B00000B); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrWrongCryptoType_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B00000C); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrWalletNotExist_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B00000D); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrSeedUsed_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B00000E); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrWalletAPIDisabled_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B00000F); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrSeedAPIDisabled_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000010); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrWalletNameConflict_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000011); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidHoursSelectionMode_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000012); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidHoursSelectionType_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000013); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrUnknownAddress_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000014); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrUnknownUxOut_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000015); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrNoUnspents_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000016); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrNullChangeAddress_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000017); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMissingTo_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000018); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrZeroCoinsTo_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000019); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrNullAddressTo_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B00001A); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDuplicateTo_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B00001B); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMissingWalletID_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B00001C); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrIncludesNullAddress_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B00001D); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDuplicateAddresses_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B00001E); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrZeroToHoursAuto_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B00001F); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMissingModeAuto_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000020); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidHoursSelMode_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000021); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidModeManual_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000022); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidHoursSelType_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000023); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrMissingShareFactor_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000024); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrInvalidShareFactor_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000025); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrShareFactorOutOfRange_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000026); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrWalletConstraint_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000027); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrDuplicateUxOuts_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000028); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrUnknownWalletID_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B000029); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrSHA256orMissingPassword_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B00002A); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_SKY_ErrSHA256LenghtDataOverflowMaxUint32_get() { - long long jresult ; - long long result; - - result = (long long)(0x0B00002B); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_PubKey_isEqual(cipher_PubKey* jarg1, cipher_PubKey* jarg2) { - int jresult ; - cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; - cipher_PubKey *arg2 = (cipher_PubKey *) 0 ; - int result; - - cipher_PubKey* - cipher_PubKey* - result = (int)cipher_PubKey_isEqual(arg1,arg2); - jresult = result; - { - //Typemap freearg *ConfigHandle - } - { - //Typemap freearg *ConfigHandle - } - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKey_assignFrom(cipher_PubKey* jarg1, void * jarg2) { - cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; - void *arg2 = (void *) 0 ; - - cipher_PubKey* - arg2 = (void *)jarg2; - cipher_PubKey_assignFrom(arg1,arg2); - { - //Typemap freearg *ConfigHandle - } -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKey_assignTo(cipher_PubKey* jarg1, void * jarg2) { - cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; - void *arg2 = (void *) 0 ; - - cipher_PubKey* - arg2 = (void *)jarg2; - cipher_PubKey_assignTo(arg1,arg2); - { - //Typemap freearg *ConfigHandle - } -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKey_data_set(cipher_PubKey* jarg1, void * jarg2) { - cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; - GoUint8 *arg2 ; - - cipher_PubKey* - arg2 = (GoUint8 *)jarg2; - { - size_t ii; - GoUint8 *b = (GoUint8 *) arg1->data; - for (ii = 0; ii < (size_t)33; ii++) b[ii] = *((GoUint8 *) arg2 + ii); - } - { - //Typemap freearg *ConfigHandle - } -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_PubKey_data_get(cipher_PubKey* jarg1) { - void * jresult ; - cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; - GoUint8 *result = 0 ; - - cipher_PubKey* - result = (GoUint8 *)(GoUint8 *) ((arg1)->data); - jresult = result; - { - //Typemap freearg *ConfigHandle - } - return jresult; -} - - -SWIGEXPORT cipher_PubKey* SWIGSTDCALL CSharp_skycoin_new_cipher_PubKey() { - cipher_PubKey* jresult ; - cipher_PubKey *result = 0 ; - - result = (cipher_PubKey *)calloc(1, sizeof(cipher_PubKey)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_PubKey(cipher_PubKey* jarg1) { - cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; - - cipher_PubKey* - free((char *) arg1); - { - //Typemap freearg *ConfigHandle - } -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_SecKey_isEqual(void * jarg1, void * jarg2) { - int jresult ; - cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; - cipher_SecKey *arg2 = (cipher_SecKey *) 0 ; - int result; - - arg1 = (cipher_SecKey *)jarg1; - arg2 = (cipher_SecKey *)jarg2; - result = (int)cipher_SecKey_isEqual(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SecKey_assignFrom(void * jarg1, void * jarg2) { - cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (cipher_SecKey *)jarg1; - arg2 = (void *)jarg2; - cipher_SecKey_assignFrom(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SecKey_assignTo(void * jarg1, void * jarg2) { - cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (cipher_SecKey *)jarg1; - arg2 = (void *)jarg2; - cipher_SecKey_assignTo(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SecKey_data_set(void * jarg1, void * jarg2) { - cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; - GoUint8 *arg2 ; - - arg1 = (cipher_SecKey *)jarg1; - arg2 = (GoUint8 *)jarg2; - { - size_t ii; - GoUint8 *b = (GoUint8 *) arg1->data; - for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8 *) arg2 + ii); - } -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_SecKey_data_get(void * jarg1) { - void * jresult ; - cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; - GoUint8 *result = 0 ; - - arg1 = (cipher_SecKey *)jarg1; - result = (GoUint8 *)(GoUint8 *) ((arg1)->data); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_SecKey() { - void * jresult ; - cipher_SecKey *result = 0 ; - - result = (cipher_SecKey *)calloc(1, sizeof(cipher_SecKey)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_SecKey(void * jarg1) { - cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; - - arg1 = (cipher_SecKey *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_Ripemd160_isEqual(void * jarg1, void * jarg2) { - int jresult ; - cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; - cipher_Ripemd160 *arg2 = (cipher_Ripemd160 *) 0 ; - int result; - - arg1 = (cipher_Ripemd160 *)jarg1; - arg2 = (cipher_Ripemd160 *)jarg2; - result = (int)cipher_Ripemd160_isEqual(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Ripemd160_assignFrom(void * jarg1, void * jarg2) { - cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (cipher_Ripemd160 *)jarg1; - arg2 = (void *)jarg2; - cipher_Ripemd160_assignFrom(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Ripemd160_assignTo(void * jarg1, void * jarg2) { - cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (cipher_Ripemd160 *)jarg1; - arg2 = (void *)jarg2; - cipher_Ripemd160_assignTo(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Ripemd160_data_set(void * jarg1, void * jarg2) { - cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; - GoUint8 *arg2 ; - - arg1 = (cipher_Ripemd160 *)jarg1; - arg2 = (GoUint8 *)jarg2; - { - size_t ii; - GoUint8 *b = (GoUint8 *) arg1->data; - for (ii = 0; ii < (size_t)20; ii++) b[ii] = *((GoUint8 *) arg2 + ii); - } -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_Ripemd160_data_get(void * jarg1) { - void * jresult ; - cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; - GoUint8 *result = 0 ; - - arg1 = (cipher_Ripemd160 *)jarg1; - result = (GoUint8 *)(GoUint8 *) ((arg1)->data); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_Ripemd160() { - void * jresult ; - cipher_Ripemd160 *result = 0 ; - - result = (cipher_Ripemd160 *)calloc(1, sizeof(cipher_Ripemd160)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_Ripemd160(void * jarg1) { - cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; - - arg1 = (cipher_Ripemd160 *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_Sig_isEqual(void * jarg1, void * jarg2) { - int jresult ; - cipher_Sig *arg1 = (cipher_Sig *) 0 ; - cipher_Sig *arg2 = (cipher_Sig *) 0 ; - int result; - - arg1 = (cipher_Sig *)jarg1; - arg2 = (cipher_Sig *)jarg2; - result = (int)cipher_Sig_isEqual(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Sig_assignFrom(void * jarg1, void * jarg2) { - cipher_Sig *arg1 = (cipher_Sig *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (cipher_Sig *)jarg1; - arg2 = (void *)jarg2; - cipher_Sig_assignFrom(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Sig_assignTo(void * jarg1, void * jarg2) { - cipher_Sig *arg1 = (cipher_Sig *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (cipher_Sig *)jarg1; - arg2 = (void *)jarg2; - cipher_Sig_assignTo(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Sig_data_set(void * jarg1, void * jarg2) { - cipher_Sig *arg1 = (cipher_Sig *) 0 ; - GoUint8 *arg2 ; - - arg1 = (cipher_Sig *)jarg1; - arg2 = (GoUint8 *)jarg2; - { - size_t ii; - GoUint8 *b = (GoUint8 *) arg1->data; - for (ii = 0; ii < (size_t)65; ii++) b[ii] = *((GoUint8 *) arg2 + ii); - } -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_Sig_data_get(void * jarg1) { - void * jresult ; - cipher_Sig *arg1 = (cipher_Sig *) 0 ; - GoUint8 *result = 0 ; - - arg1 = (cipher_Sig *)jarg1; - result = (GoUint8 *)(GoUint8 *) ((arg1)->data); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_Sig() { - void * jresult ; - cipher_Sig *result = 0 ; - - result = (cipher_Sig *)calloc(1, sizeof(cipher_Sig)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_Sig(void * jarg1) { - cipher_Sig *arg1 = (cipher_Sig *) 0 ; - - arg1 = (cipher_Sig *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_SHA256_isEqual(void * jarg1, void * jarg2) { - int jresult ; - cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; - cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; - int result; - - arg1 = (cipher_SHA256 *)jarg1; - arg2 = (cipher_SHA256 *)jarg2; - result = (int)cipher_SHA256_isEqual(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SHA256_assignFrom(void * jarg1, void * jarg2) { - cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (cipher_SHA256 *)jarg1; - arg2 = (void *)jarg2; - cipher_SHA256_assignFrom(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SHA256_assignTo(void * jarg1, void * jarg2) { - cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (cipher_SHA256 *)jarg1; - arg2 = (void *)jarg2; - cipher_SHA256_assignTo(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SHA256_data_set(void * jarg1, void * jarg2) { - cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; - GoUint8 *arg2 ; - - arg1 = (cipher_SHA256 *)jarg1; - arg2 = (GoUint8 *)jarg2; - { - size_t ii; - GoUint8 *b = (GoUint8 *) arg1->data; - for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8 *) arg2 + ii); - } -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_SHA256_data_get(void * jarg1) { - void * jresult ; - cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; - GoUint8 *result = 0 ; - - arg1 = (cipher_SHA256 *)jarg1; - result = (GoUint8 *)(GoUint8 *) ((arg1)->data); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_SHA256() { - void * jresult ; - cipher_SHA256 *result = 0 ; - - result = (cipher_SHA256 *)calloc(1, sizeof(cipher_SHA256)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_SHA256(void * jarg1) { - cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; - - arg1 = (cipher_SHA256 *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_Checksum_isEqual(void * jarg1, void * jarg2) { - int jresult ; - cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; - cipher_Checksum *arg2 = (cipher_Checksum *) 0 ; - int result; - - arg1 = (cipher_Checksum *)jarg1; - arg2 = (cipher_Checksum *)jarg2; - result = (int)cipher_Checksum_isEqual(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Checksum_assignFrom(void * jarg1, void * jarg2) { - cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (cipher_Checksum *)jarg1; - arg2 = (void *)jarg2; - cipher_Checksum_assignFrom(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Checksum_assignTo(void * jarg1, void * jarg2) { - cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (cipher_Checksum *)jarg1; - arg2 = (void *)jarg2; - cipher_Checksum_assignTo(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Checksum_data_set(void * jarg1, void * jarg2) { - cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; - GoUint8 *arg2 ; - - arg1 = (cipher_Checksum *)jarg1; - arg2 = (GoUint8 *)jarg2; - { - size_t ii; - GoUint8 *b = (GoUint8 *) arg1->data; - for (ii = 0; ii < (size_t)4; ii++) b[ii] = *((GoUint8 *) arg2 + ii); - } -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_Checksum_data_get(void * jarg1) { - void * jresult ; - cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; - GoUint8 *result = 0 ; - - arg1 = (cipher_Checksum *)jarg1; - result = (GoUint8 *)(GoUint8 *) ((arg1)->data); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_Checksum() { - void * jresult ; - cipher_Checksum *result = 0 ; - - result = (cipher_Checksum *)calloc(1, sizeof(cipher_Checksum)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_Checksum(void * jarg1) { - cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; - - arg1 = (cipher_Checksum *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_SecKeys_getAt(void * jarg1, int jarg2) { - void * jresult ; - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - int arg2 ; - cipher_SecKey *result = 0 ; - - arg1 = (cipher_SecKeys *)jarg1; - arg2 = (int)jarg2; - result = (cipher_SecKey *)cipher_SecKeys_getAt(arg1,arg2); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_SecKeys_setAt(void * jarg1, int jarg2, void * jarg3) { - int jresult ; - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - int arg2 ; - cipher_SecKey *arg3 = (cipher_SecKey *) 0 ; - int result; - - arg1 = (cipher_SecKeys *)jarg1; - arg2 = (int)jarg2; - arg3 = (cipher_SecKey *)jarg3; - result = (int)cipher_SecKeys_setAt(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_SecKeys_isEqual(void * jarg1, void * jarg2) { - int jresult ; - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - cipher_SecKeys *arg2 = (cipher_SecKeys *) 0 ; - int result; - - arg1 = (cipher_SecKeys *)jarg1; - arg2 = (cipher_SecKeys *)jarg2; - result = (int)cipher_SecKeys_isEqual(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SecKeys_allocate(void * jarg1, int jarg2) { - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - int arg2 ; - - arg1 = (cipher_SecKeys *)jarg1; - arg2 = (int)jarg2; - cipher_SecKeys_allocate(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SecKeys_release(void * jarg1) { - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - - arg1 = (cipher_SecKeys *)jarg1; - cipher_SecKeys_release(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SecKeys_data_set(void * jarg1, void * jarg2) { - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - cipher_SecKey *arg2 = (cipher_SecKey *) 0 ; - - arg1 = (cipher_SecKeys *)jarg1; - arg2 = (cipher_SecKey *)jarg2; - if (arg1) (arg1)->data = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_SecKeys_data_get(void * jarg1) { - void * jresult ; - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - cipher_SecKey *result = 0 ; - - arg1 = (cipher_SecKeys *)jarg1; - result = (cipher_SecKey *) ((arg1)->data); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SecKeys_count_set(void * jarg1, int jarg2) { - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - int arg2 ; - - arg1 = (cipher_SecKeys *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->count = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_SecKeys_count_get(void * jarg1) { - int jresult ; - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - int result; - - arg1 = (cipher_SecKeys *)jarg1; - result = (int) ((arg1)->count); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_SecKeys() { - void * jresult ; - cipher_SecKeys *result = 0 ; - - result = (cipher_SecKeys *)calloc(1, sizeof(cipher_SecKeys)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_SecKeys(void * jarg1) { - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - - arg1 = (cipher_SecKeys *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT cipher_PubKey* SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_getAt(void * jarg1, int jarg2) { - cipher_PubKey* jresult ; - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - int arg2 ; - cipher_PubKey *result = 0 ; - - arg1 = (cipher_PubKeys *)jarg1; - arg2 = (int)jarg2; - result = (cipher_PubKey *)cipher_PubKeys_getAt(arg1,arg2); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_setAt(void * jarg1, int jarg2, cipher_PubKey* jarg3) { - int jresult ; - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - int arg2 ; - cipher_PubKey *arg3 = (cipher_PubKey *) 0 ; - int result; - - arg1 = (cipher_PubKeys *)jarg1; - arg2 = (int)jarg2; - cipher_PubKey* - result = (int)cipher_PubKeys_setAt(arg1,arg2,arg3); - jresult = result; - { - //Typemap freearg *ConfigHandle - } - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_isEqual(void * jarg1, void * jarg2) { - int jresult ; - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - cipher_PubKeys *arg2 = (cipher_PubKeys *) 0 ; - int result; - - arg1 = (cipher_PubKeys *)jarg1; - arg2 = (cipher_PubKeys *)jarg2; - result = (int)cipher_PubKeys_isEqual(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_allocate(void * jarg1, int jarg2) { - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - int arg2 ; - - arg1 = (cipher_PubKeys *)jarg1; - arg2 = (int)jarg2; - cipher_PubKeys_allocate(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_release(void * jarg1) { - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - - arg1 = (cipher_PubKeys *)jarg1; - cipher_PubKeys_release(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_data_set(void * jarg1, cipher_PubKey* jarg2) { - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - cipher_PubKey *arg2 = (cipher_PubKey *) 0 ; - - arg1 = (cipher_PubKeys *)jarg1; - cipher_PubKey* - if (arg1) (arg1)->data = arg2; - { - //Typemap freearg *ConfigHandle - } -} - - -SWIGEXPORT cipher_PubKey* SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_data_get(void * jarg1) { - cipher_PubKey* jresult ; - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - cipher_PubKey *result = 0 ; - - arg1 = (cipher_PubKeys *)jarg1; - result = (cipher_PubKey *) ((arg1)->data); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_count_set(void * jarg1, int jarg2) { - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - int arg2 ; - - arg1 = (cipher_PubKeys *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->count = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_count_get(void * jarg1) { - int jresult ; - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - int result; - - arg1 = (cipher_PubKeys *)jarg1; - result = (int) ((arg1)->count); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_PubKeys() { - void * jresult ; - cipher_PubKeys *result = 0 ; - - result = (cipher_PubKeys *)calloc(1, sizeof(cipher_PubKeys)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_PubKeys(void * jarg1) { - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - - arg1 = (cipher_PubKeys *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_SHA256s_getAt(void * jarg1, int jarg2) { - void * jresult ; - cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; - int arg2 ; - cipher_SHA256 *result = 0 ; - - arg1 = (cipher_SHA256s *)jarg1; - arg2 = (int)jarg2; - result = (cipher_SHA256 *)cipher_SHA256s_getAt(arg1,arg2); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_SHA256s_setAt(void * jarg1, int jarg2, void * jarg3) { - int jresult ; - cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; - int arg2 ; - cipher_SHA256 *arg3 = (cipher_SHA256 *) 0 ; - int result; - - arg1 = (cipher_SHA256s *)jarg1; - arg2 = (int)jarg2; - arg3 = (cipher_SHA256 *)jarg3; - result = (int)cipher_SHA256s_setAt(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_SHA256s_isEqual(void * jarg1, void * jarg2) { - int jresult ; - cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; - cipher_SHA256s *arg2 = (cipher_SHA256s *) 0 ; - int result; - - arg1 = (cipher_SHA256s *)jarg1; - arg2 = (cipher_SHA256s *)jarg2; - result = (int)cipher_SHA256s_isEqual(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SHA256s_allocate(void * jarg1, int jarg2) { - cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; - int arg2 ; - - arg1 = (cipher_SHA256s *)jarg1; - arg2 = (int)jarg2; - cipher_SHA256s_allocate(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SHA256s_release(void * jarg1) { - cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; - - arg1 = (cipher_SHA256s *)jarg1; - cipher_SHA256s_release(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SHA256s_data_set(void * jarg1, void * jarg2) { - cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; - cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; - - arg1 = (cipher_SHA256s *)jarg1; - arg2 = (cipher_SHA256 *)jarg2; - if (arg1) (arg1)->data = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_SHA256s_data_get(void * jarg1) { - void * jresult ; - cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; - cipher_SHA256 *result = 0 ; - - arg1 = (cipher_SHA256s *)jarg1; - result = (cipher_SHA256 *) ((arg1)->data); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SHA256s_count_set(void * jarg1, int jarg2) { - cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; - int arg2 ; - - arg1 = (cipher_SHA256s *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->count = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_SHA256s_count_get(void * jarg1) { - int jresult ; - cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; - int result; - - arg1 = (cipher_SHA256s *)jarg1; - result = (int) ((arg1)->count); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_SHA256s() { - void * jresult ; - cipher_SHA256s *result = 0 ; - - result = (cipher_SHA256s *)calloc(1, sizeof(cipher_SHA256s)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_SHA256s(void * jarg1) { - cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; - - arg1 = (cipher_SHA256s *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_getAt(void * jarg1, int jarg2) { - void * jresult ; - coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; - int arg2 ; - coin__UxOut *result = 0 ; - - arg1 = (coin_UxOutArray *)jarg1; - arg2 = (int)jarg2; - result = (coin__UxOut *)coin_UxOutArray_getAt(arg1,arg2); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_setAt(void * jarg1, int jarg2, void * jarg3) { - int jresult ; - coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; - int arg2 ; - coin__UxOut *arg3 = (coin__UxOut *) 0 ; - int result; - - arg1 = (coin_UxOutArray *)jarg1; - arg2 = (int)jarg2; - arg3 = (coin__UxOut *)jarg3; - result = (int)coin_UxOutArray_setAt(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_isEqual(void * jarg1, void * jarg2) { - int jresult ; - coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; - coin_UxOutArray *arg2 = (coin_UxOutArray *) 0 ; - int result; - - arg1 = (coin_UxOutArray *)jarg1; - arg2 = (coin_UxOutArray *)jarg2; - result = (int)coin_UxOutArray_isEqual(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_allocate(void * jarg1, int jarg2) { - coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; - int arg2 ; - - arg1 = (coin_UxOutArray *)jarg1; - arg2 = (int)jarg2; - coin_UxOutArray_allocate(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_release(void * jarg1) { - coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; - - arg1 = (coin_UxOutArray *)jarg1; - coin_UxOutArray_release(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_data_set(void * jarg1, void * jarg2) { - coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; - coin__UxOut *arg2 = (coin__UxOut *) 0 ; - - arg1 = (coin_UxOutArray *)jarg1; - arg2 = (coin__UxOut *)jarg2; - if (arg1) (arg1)->data = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_data_get(void * jarg1) { - void * jresult ; - coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; - coin__UxOut *result = 0 ; - - arg1 = (coin_UxOutArray *)jarg1; - result = (coin__UxOut *) ((arg1)->data); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_count_set(void * jarg1, int jarg2) { - coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; - int arg2 ; - - arg1 = (coin_UxOutArray *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->count = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_count_get(void * jarg1) { - int jresult ; - coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; - int result; - - arg1 = (coin_UxOutArray *)jarg1; - result = (int) ((arg1)->count); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin_UxOutArray() { - void * jresult ; - coin_UxOutArray *result = 0 ; - - result = (coin_UxOutArray *)calloc(1, sizeof(coin_UxOutArray)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin_UxOutArray(void * jarg1) { - coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; - - arg1 = (coin_UxOutArray *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Addresses_data_set(void * jarg1, void * jarg2) { - cipher_Addresses *arg1 = (cipher_Addresses *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - - arg1 = (cipher_Addresses *)jarg1; - arg2 = (cipher__Address *)jarg2; - if (arg1) (arg1)->data = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_Addresses_data_get(void * jarg1) { - void * jresult ; - cipher_Addresses *arg1 = (cipher_Addresses *) 0 ; - cipher__Address *result = 0 ; - - arg1 = (cipher_Addresses *)jarg1; - result = (cipher__Address *) ((arg1)->data); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Addresses_count_set(void * jarg1, int jarg2) { - cipher_Addresses *arg1 = (cipher_Addresses *) 0 ; - int arg2 ; - - arg1 = (cipher_Addresses *)jarg1; - arg2 = (int)jarg2; - if (arg1) (arg1)->count = arg2; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_Addresses_count_get(void * jarg1) { - int jresult ; - cipher_Addresses *arg1 = (cipher_Addresses *) 0 ; - int result; - - arg1 = (cipher_Addresses *)jarg1; - result = (int) ((arg1)->count); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_Addresses() { - void * jresult ; - cipher_Addresses *result = 0 ; - - result = (cipher_Addresses *)calloc(1, sizeof(cipher_Addresses)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_Addresses(void * jarg1) { - cipher_Addresses *arg1 = (cipher_Addresses *) 0 ; - - arg1 = (cipher_Addresses *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin__GoString__p_set(void * jarg1, char * jarg2) { - _GoString_ *arg1 = (_GoString_ *) 0 ; - char *arg2 = (char *) 0 ; - - arg1 = (_GoString_ *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->p = (char const *) malloc(strlen((const char *)arg2)+1); - strcpy((char *)arg1->p, (const char *)arg2); - } else { - arg1->p = 0; - } - } -} - - -SWIGEXPORT char * SWIGSTDCALL CSharp_skycoin__GoString__p_get(void * jarg1) { - char * jresult ; - _GoString_ *arg1 = (_GoString_ *) 0 ; - char *result = 0 ; - - arg1 = (_GoString_ *)jarg1; - result = (char *) ((arg1)->p); - jresult = SWIG_csharp_string_callback((const char *)result); - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin__GoString__n_set(void * jarg1, void * jarg2) { - _GoString_ *arg1 = (_GoString_ *) 0 ; - ptrdiff_t arg2 ; - ptrdiff_t *argp2 ; - - arg1 = (_GoString_ *)jarg1; - argp2 = (ptrdiff_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null ptrdiff_t", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->n = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin__GoString__n_get(void * jarg1) { - void * jresult ; - _GoString_ *arg1 = (_GoString_ *) 0 ; - ptrdiff_t result; - - arg1 = (_GoString_ *)jarg1; - result = ((arg1)->n); - { - ptrdiff_t * resultptr = (ptrdiff_t *) malloc(sizeof(ptrdiff_t)); - memmove(resultptr, &result, sizeof(ptrdiff_t)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new__GoString_() { - void * jresult ; - _GoString_ *result = 0 ; - - result = (_GoString_ *)calloc(1, sizeof(_GoString_)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete__GoString_(void * jarg1) { - _GoString_ *arg1 = (_GoString_ *) 0 ; - - arg1 = (_GoString_ *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoInterface_t_set(void * jarg1, void * jarg2) { - GoInterface *arg1 = (GoInterface *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (GoInterface *)jarg1; - arg2 = (void *)jarg2; - if (arg1) (arg1)->t = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_GoInterface_t_get(void * jarg1) { - void * jresult ; - GoInterface *arg1 = (GoInterface *) 0 ; - void *result = 0 ; - - arg1 = (GoInterface *)jarg1; - result = (void *) ((arg1)->t); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoInterface_v_set(void * jarg1, void * jarg2) { - GoInterface *arg1 = (GoInterface *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (GoInterface *)jarg1; - arg2 = (void *)jarg2; - if (arg1) (arg1)->v = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_GoInterface_v_get(void * jarg1) { - void * jresult ; - GoInterface *arg1 = (GoInterface *) 0 ; - void *result = 0 ; - - arg1 = (GoInterface *)jarg1; - result = (void *) ((arg1)->v); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_GoInterface() { - void * jresult ; - GoInterface *result = 0 ; - - result = (GoInterface *)calloc(1, sizeof(GoInterface)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_GoInterface(void * jarg1) { - GoInterface *arg1 = (GoInterface *) 0 ; - - arg1 = (GoInterface *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoSlice_data_set(void * jarg1, void * jarg2) { - GoSlice *arg1 = (GoSlice *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (GoSlice *)jarg1; - arg2 = (void *)jarg2; - if (arg1) (arg1)->data = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_GoSlice_data_get(void * jarg1) { - void * jresult ; - GoSlice *arg1 = (GoSlice *) 0 ; - void *result = 0 ; - - arg1 = (GoSlice *)jarg1; - result = (void *) ((arg1)->data); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoSlice_len_set(void * jarg1, long long jarg2) { - GoSlice *arg1 = (GoSlice *) 0 ; - GoInt arg2 ; - - arg1 = (GoSlice *)jarg1; - arg2 = (GoInt)jarg2; - if (arg1) (arg1)->len = arg2; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_GoSlice_len_get(void * jarg1) { - long long jresult ; - GoSlice *arg1 = (GoSlice *) 0 ; - GoInt result; - - arg1 = (GoSlice *)jarg1; - result = (GoInt) ((arg1)->len); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoSlice_cap_set(void * jarg1, long long jarg2) { - GoSlice *arg1 = (GoSlice *) 0 ; - GoInt arg2 ; - - arg1 = (GoSlice *)jarg1; - arg2 = (GoInt)jarg2; - if (arg1) (arg1)->cap = arg2; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_GoSlice_cap_get(void * jarg1) { - long long jresult ; - GoSlice *arg1 = (GoSlice *) 0 ; - GoInt result; - - arg1 = (GoSlice *)jarg1; - result = (GoInt) ((arg1)->cap); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_GoSlice() { - void * jresult ; - GoSlice *result = 0 ; - - result = (GoSlice *)calloc(1, sizeof(GoSlice)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_GoSlice(void * jarg1) { - GoSlice *arg1 = (GoSlice *) 0 ; - - arg1 = (GoSlice *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock(void * jarg1, unsigned long long jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) { - unsigned int jresult ; - Block__Handle arg1 ; - GoUint64 arg2 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - Transactions__Handle arg4 ; - FeeCalculator *arg5 = (FeeCalculator *) 0 ; - Block__Handle *arg6 = (Block__Handle *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoUint64)jarg2; - arg3 = (cipher__SHA256 *)jarg3; - { - SWIG_AsVal_long(jarg4, (long*)&arg4); - } - arg5 = (FeeCalculator *)jarg5; - arg6 = (Block__Handle *)jarg6; - result = (GoUint32)SKY_coin_NewBlock(arg1,arg2,(GoUint8_ (*)[32])arg3,arg4,arg5,arg6); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SignedBlock_VerifySignature(void * jarg1, void * jarg2) { - unsigned int jresult ; - coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; - GoUint32 result; - - arg1 = (coin__SignedBlock *)jarg1; - arg2 = (cipher__PubKey *)jarg2; - result = (GoUint32)SKY_coin_SignedBlock_VerifySignature(arg1,(GoUint8_ (*)[33])arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewGenesisBlock(void * jarg1, unsigned long long jarg2, unsigned long long jarg3, void * jarg4) { - unsigned int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - GoUint64 arg2 ; - GoUint64 arg3 ; - Block__Handle *arg4 = (Block__Handle *) 0 ; - GoUint32 result; - - arg1 = (cipher__Address *)jarg1; - arg2 = (GoUint64)jarg2; - arg3 = (GoUint64)jarg3; - arg4 = (Block__Handle *)jarg4; - result = (GoUint32)SKY_coin_NewGenesisBlock(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_HashHeader(void * jarg1, void * jarg2) { - unsigned int jresult ; - Block__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_coin_Block_HashHeader(arg1,(GoUint8_ (*)[32])arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_PreHashHeader(void * jarg1, void * jarg2) { - unsigned int jresult ; - Block__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_coin_Block_PreHashHeader(arg1,(GoUint8_ (*)[32])arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_Time(void * jarg1, void * jarg2) { - unsigned int jresult ; - Block__Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_coin_Block_Time(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_Seq(void * jarg1, void * jarg2) { - unsigned int jresult ; - Block__Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_coin_Block_Seq(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_HashBody(void * jarg1, void * jarg2) { - unsigned int jresult ; - Block__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_coin_Block_HashBody(arg1,(GoUint8_ (*)[32])arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_Size(void * jarg1, void * jarg2) { - unsigned int jresult ; - Block__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_coin_Block_Size(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_String(void * jarg1, void * jarg2) { - unsigned int jresult ; - Block__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_coin_Block_String(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_GetTransaction(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { - unsigned int jresult ; - Block__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - Transaction__Handle *arg3 = (Transaction__Handle *) 0 ; - GoUint8 *arg4 = (GoUint8 *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (cipher__SHA256 *)jarg2; - arg3 = (Transaction__Handle *)jarg3; - arg4 = (GoUint8 *)jarg4; - result = (GoUint32)SKY_coin_Block_GetTransaction(arg1,(GoUint8_ (*)[32])arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlockHeader(void * jarg1, void * jarg2, unsigned long long jarg3, unsigned long long jarg4, void * jarg5, void * jarg6) { - unsigned int jresult ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoUint64 arg3 ; - GoUint64 arg4 ; - BlockBody__Handle arg5 ; - coin__BlockHeader *arg6 = (coin__BlockHeader *) 0 ; - GoUint32 result; - - arg1 = (coin__BlockHeader *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - arg3 = (GoUint64)jarg3; - arg4 = (GoUint64)jarg4; - { - SWIG_AsVal_long(jarg5, (long*)&arg5); - } - arg6 = (coin__BlockHeader *)jarg6; - result = (GoUint32)SKY_coin_NewBlockHeader(arg1,(GoUint8_ (*)[32])arg2,arg3,arg4,arg5,arg6); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockHeader_Hash(void * jarg1, void * jarg2) { - unsigned int jresult ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoUint32 result; - - arg1 = (coin__BlockHeader *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_coin_BlockHeader_Hash(arg1,(GoUint8_ (*)[32])arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockHeader_Bytes(void * jarg1, void * jarg2) { - unsigned int jresult ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint32 result; - - arg1 = (coin__BlockHeader *)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_coin_BlockHeader_Bytes(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockHeader_String(void * jarg1, void * jarg2) { - unsigned int jresult ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - arg1 = (coin__BlockHeader *)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_coin_BlockHeader_String(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Hash(void * jarg1, void * jarg2) { - unsigned int jresult ; - BlockBody__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_coin_BlockBody_Hash(arg1,(GoUint8_ (*)[32])arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Size(void * jarg1, void * jarg2) { - unsigned int jresult ; - BlockBody__Handle *arg1 = (BlockBody__Handle *) 0 ; - GoInt *arg2 = (GoInt *) 0 ; - GoUint32 result; - - arg1 = (BlockBody__Handle *)jarg1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_coin_BlockBody_Size(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Bytes(void * jarg1, void * jarg2) { - unsigned int jresult ; - BlockBody__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_coin_BlockBody_Bytes(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_CreateUnspents(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - Transaction__Handle arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoUint32 result; - - arg1 = (coin__BlockHeader *)jarg1; - { - SWIG_AsVal_long(jarg2, (long*)&arg2); - } - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_coin_CreateUnspents(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_CreateUnspent(void * jarg1, void * jarg2, long long jarg3, void * jarg4) { - unsigned int jresult ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - Transaction__Handle arg2 ; - GoInt arg3 ; - coin__UxOut *arg4 = (coin__UxOut *) 0 ; - GoUint32 result; - - arg1 = (coin__BlockHeader *)jarg1; - { - SWIG_AsVal_long(jarg2, (long*)&arg2); - } - arg3 = (GoInt)jarg3; - arg4 = (coin__UxOut *)jarg4; - result = (GoUint32)SKY_coin_CreateUnspent(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetBlockObject(void * jarg1, void * jarg2) { - unsigned int jresult ; - Block__Handle arg1 ; - coin__Block **arg2 = (coin__Block **) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (coin__Block **)jarg2; - result = (GoUint32)SKY_coin_GetBlockObject(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetBlockBody(void * jarg1, void * jarg2) { - unsigned int jresult ; - Block__Handle arg1 ; - BlockBody__Handle *arg2 = (BlockBody__Handle *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (BlockBody__Handle *)jarg2; - result = (GoUint32)SKY_coin_GetBlockBody(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewEmptyBlock(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transactions__Handle arg1 ; - Block__Handle *arg2 = (Block__Handle *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (Block__Handle *)jarg2; - result = (GoUint32)SKY_coin_NewEmptyBlock(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_NewDefaultMnemomic(void * jarg1) { - unsigned int jresult ; - GoString_ *arg1 = (GoString_ *) 0 ; - GoUint32 result; - - arg1 = (GoString_ *)jarg1; - result = (GoUint32)SKY_bip39_NewDefaultMnemomic(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_NewEntropy(long long jarg1, void * jarg2) { - unsigned int jresult ; - GoInt arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint32 result; - - arg1 = (GoInt)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_bip39_NewEntropy(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_NewMnemonic(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_bip39_NewMnemonic(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_MnemonicToByteArray(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_bip39_MnemonicToByteArray(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_IsMnemonicValid(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_bip39_IsMnemonicValid(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewClient(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - Client__Handle *arg2 = (Client__Handle *) 0 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (Client__Handle *)jarg2; - result = (GoUint32)SKY_api_NewClient(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CSRF(void * jarg1, void * jarg2) { - unsigned int jresult ; - Client__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_api_Client_CSRF(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Version(void * jarg1) { - unsigned int jresult ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; - GoUint32 result; - - { - arg2 = &temp2; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_Version(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Outputs(void * jarg1) { - unsigned int jresult ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; - GoUint32 result; - - { - arg2 = &temp2; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_Outputs(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_OutputsForAddresses(void * jarg1, void * jarg2) { - unsigned int jresult ; - Client__Handle arg1 ; - GoSlice arg2 ; - Handle *arg3 = (Handle *) 0 ; - GoSlice *argp2 ; - Handle temp3 ; - GoUint32 result; - - { - arg3 = &temp3; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_api_Client_OutputsForAddresses(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_OutputsForHashes(void * jarg1, void * jarg2) { - unsigned int jresult ; - Client__Handle arg1 ; - GoSlice arg2 ; - Handle *arg3 = (Handle *) 0 ; - GoSlice *argp2 ; - Handle temp3 ; - GoUint32 result; - - { - arg3 = &temp3; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_api_Client_OutputsForHashes(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CoinSupply(void * jarg1) { - unsigned int jresult ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; - GoUint32 result; - - { - arg2 = &temp2; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_CoinSupply(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockByHash(void * jarg1, void * jarg2) { - unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - GoString *argp2 ; - Handle temp3 ; - GoUint32 result; - - { - arg3 = &temp3; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_api_Client_BlockByHash(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockBySeq(void * jarg1, unsigned long long jarg2) { - unsigned int jresult ; - Client__Handle arg1 ; - GoUint64 arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; - GoUint32 result; - - { - arg3 = &temp3; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoUint64)jarg2; - result = (GoUint32)SKY_api_Client_BlockBySeq(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Blocks(void * jarg1, unsigned long long jarg2, unsigned long long jarg3) { - unsigned int jresult ; - Client__Handle arg1 ; - GoUint64 arg2 ; - GoUint64 arg3 ; - Handle *arg4 = (Handle *) 0 ; - Handle temp4 ; - GoUint32 result; - - { - arg4 = &temp4; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoUint64)jarg2; - arg3 = (GoUint64)jarg3; - result = (GoUint32)SKY_api_Client_Blocks(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_LastBlocks(void * jarg1, unsigned long long jarg2) { - unsigned int jresult ; - Client__Handle arg1 ; - GoUint64 arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; - GoUint32 result; - - { - arg3 = &temp3; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoUint64)jarg2; - result = (GoUint32)SKY_api_Client_LastBlocks(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockchainMetadata(void * jarg1) { - unsigned int jresult ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; - GoUint32 result; - - { - arg2 = &temp2; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_BlockchainMetadata(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockchainProgress(void * jarg1) { - unsigned int jresult ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; - GoUint32 result; - - { - arg2 = &temp2; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_BlockchainProgress(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Balance(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - Client__Handle arg1 ; - GoSlice arg2 ; - wallet__BalancePair *arg3 = (wallet__BalancePair *) 0 ; - GoSlice *argp2 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (wallet__BalancePair *)jarg3; - result = (GoUint32)SKY_api_Client_Balance(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UxOut(void * jarg1, void * jarg2) { - unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - GoString *argp2 ; - Handle temp3 ; - GoUint32 result; - - { - arg3 = &temp3; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_api_Client_UxOut(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressUxOuts(void * jarg1, void * jarg2) { - unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - GoString *argp2 ; - Handle temp3 ; - GoUint32 result; - - { - arg3 = &temp3; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_api_Client_AddressUxOuts(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Wallet(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - WalletResponse__Handle *arg3 = (WalletResponse__Handle *) 0 ; - GoString *argp2 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - arg3 = (WalletResponse__Handle *)jarg3; - result = (GoUint32)SKY_api_Client_Wallet(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Wallets(void * jarg1, void * jarg2) { - unsigned int jresult ; - Client__Handle arg1 ; - Wallets__Handle *arg2 = (Wallets__Handle *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (Wallets__Handle *)jarg2; - result = (GoUint32)SKY_api_Client_Wallets(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateUnencryptedWallet(void * jarg1, void * jarg2, void * jarg3, long long jarg4, void * jarg5) { - unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - GoInt arg4 ; - WalletResponse__Handle *arg5 = (WalletResponse__Handle *) 0 ; - GoString *argp2 ; - GoString *argp3 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; - arg4 = (GoInt)jarg4; - arg5 = (WalletResponse__Handle *)jarg5; - result = (GoUint32)SKY_api_Client_CreateUnencryptedWallet(arg1,arg2,arg3,arg4,arg5); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateEncryptedWallet(void * jarg1, void * jarg2, void * jarg3, void * jarg4, long long jarg5, void * jarg6) { - unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - GoString arg4 ; - GoInt arg5 ; - WalletResponse__Handle *arg6 = (WalletResponse__Handle *) 0 ; - GoString *argp2 ; - GoString *argp3 ; - GoString *argp4 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; - argp4 = (GoString *)jarg4; - if (!argp4) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg4 = *argp4; - arg5 = (GoInt)jarg5; - arg6 = (WalletResponse__Handle *)jarg6; - result = (GoUint32)SKY_api_Client_CreateEncryptedWallet(arg1,arg2,arg3,arg4,arg5,arg6); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NewWalletAddress(void * jarg1, void * jarg2, long long jarg3, void * jarg4, void * jarg5) { - unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - GoInt arg3 ; - GoString arg4 ; - Strings__Handle *arg5 = (Strings__Handle *) 0 ; - GoString *argp2 ; - GoString *argp4 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - arg3 = (GoInt)jarg3; - argp4 = (GoString *)jarg4; - if (!argp4) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg4 = *argp4; - arg5 = (Strings__Handle *)jarg5; - result = (GoUint32)SKY_api_Client_NewWalletAddress(arg1,arg2,arg3,arg4,arg5); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_WalletBalance(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - wallet__BalancePair *arg3 = (wallet__BalancePair *) 0 ; - GoString *argp2 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - arg3 = (wallet__BalancePair *)jarg3; - result = (GoUint32)SKY_api_Client_WalletBalance(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Spend(void * jarg1, void * jarg2, void * jarg3, unsigned long long jarg4, void * jarg5, void * jarg6) { - unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - GoUint64 arg4 ; - GoString arg5 ; - SpendResult_Handle *arg6 = (SpendResult_Handle *) 0 ; - GoString *argp2 ; - GoString *argp3 ; - GoString *argp5 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; - arg4 = (GoUint64)jarg4; - argp5 = (GoString *)jarg5; - if (!argp5) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg5 = *argp5; - arg6 = (SpendResult_Handle *)jarg6; - result = (GoUint32)SKY_api_Client_Spend(arg1,arg2,arg3,arg4,arg5,arg6); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateTransaction(void * jarg1, void * jarg3) { - unsigned int jresult ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - CreateTransactionResponse__Handle *arg3 = (CreateTransactionResponse__Handle *) 0 ; - Handle temp2 ; - GoUint32 result; - - { - arg2 = &temp2; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg3 = (CreateTransactionResponse__Handle *)jarg3; - result = (GoUint32)SKY_api_Client_CreateTransaction(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UpdateWallet(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - GoString *argp2 ; - GoString *argp3 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; - result = (GoUint32)SKY_api_Client_UpdateWallet(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_WalletFolderName(void * jarg1) { - unsigned int jresult ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; - GoUint32 result; - - { - arg2 = &temp2; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_WalletFolderName(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NewSeed(void * jarg1, long long jarg2, void * jarg3) { - unsigned int jresult ; - Client__Handle arg1 ; - GoInt arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoInt)jarg2; - arg3 = (GoString_ *)jarg3; - result = (GoUint32)SKY_api_Client_NewSeed(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_GetWalletSeed(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { - unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - GoString_ *arg4 = (GoString_ *) 0 ; - GoString *argp2 ; - GoString *argp3 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; - arg4 = (GoString_ *)jarg4; - result = (GoUint32)SKY_api_Client_GetWalletSeed(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkConnection(void * jarg1, void * jarg2) { - unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - GoString *argp2 ; - Handle temp3 ; - GoUint32 result; - - { - arg3 = &temp3; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_api_Client_NetworkConnection(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkConnections(void * jarg1) { - unsigned int jresult ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; - GoUint32 result; - - { - arg2 = &temp2; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_NetworkConnections(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkDefaultConnections(void * jarg1) { - unsigned int jresult ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; - GoUint32 result; - - { - arg2 = &temp2; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_NetworkDefaultConnections(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkTrustedConnections(void * jarg1) { - unsigned int jresult ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; - GoUint32 result; - - { - arg2 = &temp2; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_NetworkTrustedConnections(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkExchangeableConnections(void * jarg1) { - unsigned int jresult ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; - GoUint32 result; - - { - arg2 = &temp2; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_NetworkExchangeableConnections(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_PendingTransactions(void * jarg1) { - unsigned int jresult ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; - GoUint32 result; - - { - arg2 = &temp2; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_PendingTransactions(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Transaction(void * jarg1, void * jarg2) { - unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - GoString *argp2 ; - Handle temp3 ; - GoUint32 result; - - { - arg3 = &temp3; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_api_Client_Transaction(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Transactions(void * jarg1, void * jarg2) { - unsigned int jresult ; - Client__Handle arg1 ; - GoSlice arg2 ; - Handle *arg3 = (Handle *) 0 ; - GoSlice *argp2 ; - Handle temp3 ; - GoUint32 result; - - { - arg3 = &temp3; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_api_Client_Transactions(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_ConfirmedTransactions(void * jarg1, void * jarg2) { - unsigned int jresult ; - Client__Handle arg1 ; - GoSlice arg2 ; - Handle *arg3 = (Handle *) 0 ; - GoSlice *argp2 ; - Handle temp3 ; - GoUint32 result; - - { - arg3 = &temp3; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_api_Client_ConfirmedTransactions(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UnconfirmedTransactions(void * jarg1, void * jarg2) { - unsigned int jresult ; - Client__Handle arg1 ; - GoSlice arg2 ; - Handle *arg3 = (Handle *) 0 ; - GoSlice *argp2 ; - Handle temp3 ; - GoUint32 result; - - { - arg3 = &temp3; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_api_Client_UnconfirmedTransactions(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_InjectTransaction(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - Client__Handle arg1 ; - Transaction__Handle arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - { - SWIG_AsVal_long(jarg2, (long*)&arg2); - } - arg3 = (GoString_ *)jarg3; - result = (GoUint32)SKY_api_Client_InjectTransaction(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_ResendUnconfirmedTransactions(void * jarg1) { - unsigned int jresult ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; - GoUint32 result; - - { - arg2 = &temp2; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_ResendUnconfirmedTransactions(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_RawTransaction(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - GoString *argp2 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - arg3 = (GoString_ *)jarg3; - result = (GoUint32)SKY_api_Client_RawTransaction(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressTransactions(void * jarg1, void * jarg2) { - unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - GoString *argp2 ; - Handle temp3 ; - GoUint32 result; - - { - arg3 = &temp3; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_api_Client_AddressTransactions(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Richlist(void * jarg1, void * jarg2) { - unsigned int jresult ; - Client__Handle arg1 ; - api__RichlistParams *arg2 = (api__RichlistParams *) 0 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; - GoUint32 result; - - { - arg3 = &temp3; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (api__RichlistParams *)jarg2; - result = (GoUint32)SKY_api_Client_Richlist(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressCount(void * jarg1, void * jarg2) { - unsigned int jresult ; - Client__Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_api_Client_AddressCount(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UnloadWallet(void * jarg1, void * jarg2) { - unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - GoString *argp2 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_api_Client_UnloadWallet(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Health(void * jarg1) { - unsigned int jresult ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; - GoUint32 result; - - { - arg2 = &temp2; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_Health(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_EncryptWallet(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { - unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - WalletResponse__Handle *arg4 = (WalletResponse__Handle *) 0 ; - GoString *argp2 ; - GoString *argp3 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; - arg4 = (WalletResponse__Handle *)jarg4; - result = (GoUint32)SKY_api_Client_EncryptWallet(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_DecryptWallet(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { - unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - WalletResponse__Handle *arg4 = (WalletResponse__Handle *) 0 ; - GoString *argp2 ; - GoString *argp3 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; - arg4 = (WalletResponse__Handle *)jarg4; - result = (GoUint32)SKY_api_Client_DecryptWallet(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_Print(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - GoString arg2 ; - GoString *argp2 ; - GoUint32 result; - - arg1 = (secp256k1go__XY *)jarg1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_secp256k1go_XY_Print(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_ParsePubkey(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - GoSlice arg2 ; - GoUint8 *arg3 = (GoUint8 *) 0 ; - GoSlice *argp2 ; - GoUint32 result; - - arg1 = (secp256k1go__XY *)jarg1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (GoUint8 *)jarg3; - result = (GoUint32)SKY_secp256k1go_XY_ParsePubkey(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_Bytes(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint32 result; - - arg1 = (secp256k1go__XY *)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1go_XY_Bytes(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_BytesUncompressed(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint32 result; - - arg1 = (secp256k1go__XY *)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1go_XY_BytesUncompressed(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_SetXY(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg3 = (secp256k1go__Field *) 0 ; - GoUint32 result; - - arg1 = (secp256k1go__XY *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - arg3 = (secp256k1go__Field *)jarg3; - result = (GoUint32)SKY_secp256k1go_XY_SetXY(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_IsValid(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoUint32 result; - - arg1 = (secp256k1go__XY *)jarg1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_secp256k1go_XY_IsValid(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_SetXYZ(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; - GoUint32 result; - - arg1 = (secp256k1go__XY *)jarg1; - arg2 = (secp256k1go__XYZ *)jarg2; - result = (GoUint32)SKY_secp256k1go_XY_SetXYZ(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_Neg(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; - GoUint32 result; - - arg1 = (secp256k1go__XY *)jarg1; - arg2 = (secp256k1go__XY *)jarg2; - result = (GoUint32)SKY_secp256k1go_XY_Neg(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_SetXO(void * jarg1, void * jarg2, unsigned char jarg3) { - unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - GoUint8 arg3 ; - GoUint32 result; - - arg1 = (secp256k1go__XY *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - arg3 = (GoUint8)jarg3; - result = (GoUint32)SKY_secp256k1go_XY_SetXO(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_AddXY(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; - GoUint32 result; - - arg1 = (secp256k1go__XY *)jarg1; - arg2 = (secp256k1go__XY *)jarg2; - result = (GoUint32)SKY_secp256k1go_XY_AddXY(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_GetPublicKey(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint32 result; - - arg1 = (secp256k1go__XY *)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1go_XY_GetPublicKey(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewWalletResponse(void * jarg1, void * jarg2) { - unsigned int jresult ; - Wallet__Handle arg1 ; - WalletResponse__Handle *arg2 = (WalletResponse__Handle *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (WalletResponse__Handle *)jarg2; - result = (GoUint32)SKY_api_NewWalletResponse(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreateTransactionResponse(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoSlice arg2 ; - CreateTransactionResponse__Handle *arg3 = (CreateTransactionResponse__Handle *) 0 ; - GoSlice *argp2 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (CreateTransactionResponse__Handle *)jarg3; - result = (GoUint32)SKY_api_NewCreateTransactionResponse(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreatedTransaction(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoSlice arg2 ; - CreatedTransaction__Handle *arg3 = (CreatedTransaction__Handle *) 0 ; - GoSlice *argp2 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (CreatedTransaction__Handle *)jarg3; - result = (GoUint32)SKY_api_NewCreatedTransaction(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_CreatedTransaction_ToTransaction(void * jarg1, void * jarg2) { - unsigned int jresult ; - CreatedTransaction__Handle arg1 ; - Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (Transaction__Handle *)jarg2; - result = (GoUint32)SKY_api_CreatedTransaction_ToTransaction(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreatedTransactionOutput(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - CreatedTransactionOutput__Handle *arg3 = (CreatedTransactionOutput__Handle *) 0 ; - GoUint32 result; - - arg1 = (coin__TransactionOutput *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - arg3 = (CreatedTransactionOutput__Handle *)jarg3; - result = (GoUint32)SKY_api_NewCreatedTransactionOutput(arg1,(GoUint8_ (*)[32])arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreatedTransactionInput(void * jarg1, void * jarg2) { - unsigned int jresult ; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - CreatedTransactionInput__Handle *arg2 = (CreatedTransactionInput__Handle *) 0 ; - GoUint32 result; - - arg1 = (wallet__UxBalance *)jarg1; - arg2 = (CreatedTransactionInput__Handle *)jarg2; - result = (GoUint32)SKY_api_NewCreatedTransactionInput(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewError(void * jarg1) { - unsigned int jresult ; - GoInterface arg1 ; - GoInterface *argp1 ; - GoUint32 result; - - argp1 = (GoInterface *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInterface", 0); - return 0; - } - arg1 = *argp1; - result = (GoUint32)SKY_wallet_NewError(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewWallet(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - GoString arg1 ; - Options__Handle arg2 ; - Wallet__Handle *arg3 = (Wallet__Handle *) 0 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - { - SWIG_AsVal_long(jarg2, (long*)&arg2); - } - arg3 = (Wallet__Handle *)jarg3; - result = (GoUint32)SKY_wallet_NewWallet(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Lock(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - Wallet__Handle arg1 ; - GoSlice arg2 ; - GoString arg3 ; - GoSlice *argp2 ; - GoString *argp3 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; - result = (GoUint32)SKY_wallet_Wallet_Lock(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Unlock(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - Wallet__Handle arg1 ; - GoSlice arg2 ; - Wallet__Handle *arg3 = (Wallet__Handle *) 0 ; - GoSlice *argp2 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (Wallet__Handle *)jarg3; - result = (GoUint32)SKY_wallet_Wallet_Unlock(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Load(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - Wallet__Handle *arg2 = (Wallet__Handle *) 0 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (Wallet__Handle *)jarg2; - result = (GoUint32)SKY_wallet_Load(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Save(void * jarg1, void * jarg2) { - unsigned int jresult ; - Wallet__Handle arg1 ; - GoString arg2 ; - GoString *argp2 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_wallet_Wallet_Save(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Validate(void * jarg1) { - unsigned int jresult ; - Wallet__Handle arg1 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - result = (GoUint32)SKY_wallet_Wallet_Validate(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Type(void * jarg1, void * jarg2) { - unsigned int jresult ; - Wallet__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_wallet_Wallet_Type(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Version(void * jarg1, void * jarg2) { - unsigned int jresult ; - Wallet__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_wallet_Wallet_Version(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Filename(void * jarg1, void * jarg2) { - unsigned int jresult ; - Wallet__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_wallet_Wallet_Filename(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Label(void * jarg1, void * jarg2) { - unsigned int jresult ; - Wallet__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_wallet_Wallet_Label(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_IsEncrypted(void * jarg1, void * jarg2) { - unsigned int jresult ; - Wallet__Handle arg1 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_wallet_Wallet_IsEncrypted(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_GenerateAddresses(void * jarg1, unsigned long long jarg2, void * jarg3) { - unsigned int jresult ; - Wallet__Handle arg1 ; - GoUint64 arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoUint64)jarg2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_wallet_Wallet_GenerateAddresses(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_GetAddresses(void * jarg1, void * jarg2) { - unsigned int jresult ; - Wallet__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_wallet_Wallet_GetAddresses(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_GetEntry(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { - unsigned int jresult ; - Wallet__Handle arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - wallet__Entry *arg3 = (wallet__Entry *) 0 ; - GoUint8 *arg4 = (GoUint8 *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (cipher__Address *)jarg2; - arg3 = (wallet__Entry *)jarg3; - arg4 = (GoUint8 *)jarg4; - result = (GoUint32)SKY_wallet_Wallet_GetEntry(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_AddEntry(void * jarg1, void * jarg2) { - unsigned int jresult ; - Wallet__Handle arg1 ; - wallet__Entry *arg2 = (wallet__Entry *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (wallet__Entry *)jarg2; - result = (GoUint32)SKY_wallet_Wallet_AddEntry(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_DistributeSpendHours(unsigned long long jarg1, unsigned long long jarg2, unsigned char jarg3, void * jarg4, void * jarg5, void * jarg6) { - unsigned int jresult ; - GoUint64 arg1 ; - GoUint64 arg2 ; - GoUint8 arg3 ; - GoUint64 *arg4 = (GoUint64 *) 0 ; - coin__UxArray *arg5 = (coin__UxArray *) 0 ; - GoUint64 *arg6 = (GoUint64 *) 0 ; - GoUint32 result; - - arg1 = (GoUint64)jarg1; - arg2 = (GoUint64)jarg2; - arg3 = (GoUint8)jarg3; - arg4 = (GoUint64 *)jarg4; - arg5 = (coin__UxArray *)jarg5; - arg6 = (GoUint64 *)jarg6; - result = (GoUint32)SKY_wallet_DistributeSpendHours(arg1,arg2,arg3,arg4,arg5,arg6); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_DistributeCoinHoursProportional(void * jarg1, unsigned long long jarg2, void * jarg3) { - unsigned int jresult ; - GoSlice arg1 ; - GoUint64 arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoUint64)jarg2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_wallet_DistributeCoinHoursProportional(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewUxBalances(unsigned long long jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - GoUint64 arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoUint32 result; - - arg1 = (GoUint64)jarg1; - arg2 = (coin__UxArray *)jarg2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_wallet_NewUxBalances(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewUxBalance(unsigned long long jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - GoUint64 arg1 ; - coin__UxOut *arg2 = (coin__UxOut *) 0 ; - wallet__UxBalance *arg3 = (wallet__UxBalance *) 0 ; - GoUint32 result; - - arg1 = (GoUint64)jarg1; - arg2 = (coin__UxOut *)jarg2; - arg3 = (wallet__UxBalance *)jarg3; - result = (GoUint32)SKY_wallet_NewUxBalance(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ChooseSpendsMinimizeUxOuts(void * jarg1, unsigned long long jarg2, unsigned long long jarg3, void * jarg4) { - unsigned int jresult ; - GoSlice arg1 ; - GoUint64 arg2 ; - GoUint64 arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoUint64)jarg2; - arg3 = (GoUint64)jarg3; - arg4 = (coin__UxArray *)jarg4; - result = (GoUint32)SKY_wallet_ChooseSpendsMinimizeUxOuts(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ChooseSpendsMaximizeUxOuts(void * jarg1, unsigned long long jarg2, unsigned long long jarg3, void * jarg4) { - unsigned int jresult ; - GoSlice arg1 ; - GoUint64 arg2 ; - GoUint64 arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoUint64)jarg2; - arg3 = (GoUint64)jarg3; - arg4 = (coin__UxArray *)jarg4; - result = (GoUint32)SKY_wallet_ChooseSpendsMaximizeUxOuts(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CheckWalletBalance(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - WebRpcClient__Handle arg1 ; - GoString arg2 ; - BalanceResult_Handle *arg3 = (BalanceResult_Handle *) 0 ; - GoString *argp2 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - arg3 = (BalanceResult_Handle *)jarg3; - result = (GoUint32)SKY_cli_CheckWalletBalance(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetBalanceOfAddresses(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - WebRpcClient__Handle arg1 ; - GoSlice arg2 ; - BalanceResult_Handle *arg3 = (BalanceResult_Handle *) 0 ; - GoSlice *argp2 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (BalanceResult_Handle *)jarg3; - result = (GoUint32)SKY_cli_GetBalanceOfAddresses(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewReadableEntry(void * jarg1, void * jarg2) { - unsigned int jresult ; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - ReadableEntry__Handle *arg2 = (ReadableEntry__Handle *) 0 ; - GoUint32 result; - - arg1 = (wallet__Entry *)jarg1; - arg2 = (ReadableEntry__Handle *)jarg2; - result = (GoUint32)SKY_wallet_NewReadableEntry(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_LoadReadableEntry(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - ReadableEntry__Handle *arg2 = (ReadableEntry__Handle *) 0 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (ReadableEntry__Handle *)jarg2; - result = (GoUint32)SKY_wallet_LoadReadableEntry(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewReadableEntryFromPubkey(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - ReadableEntry__Handle *arg2 = (ReadableEntry__Handle *) 0 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (ReadableEntry__Handle *)jarg2; - result = (GoUint32)SKY_wallet_NewReadableEntryFromPubkey(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableEntry_Save(void * jarg1, void * jarg2) { - unsigned int jresult ; - ReadableEntry__Handle arg1 ; - GoString arg2 ; - GoString *argp2 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_wallet_ReadableEntry_Save(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_LoadReadableWallet(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - ReadableWallet__Handle *arg2 = (ReadableWallet__Handle *) 0 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (ReadableWallet__Handle *)jarg2; - result = (GoUint32)SKY_wallet_LoadReadableWallet(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableWallet_Save(void * jarg1, void * jarg2) { - unsigned int jresult ; - ReadableWallet__Handle arg1 ; - GoString arg2 ; - GoString *argp2 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_wallet_ReadableWallet_Save(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableWallet_Load(void * jarg1, void * jarg2) { - unsigned int jresult ; - ReadableWallet__Handle arg1 ; - GoString arg2 ; - GoString *argp2 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_wallet_ReadableWallet_Load(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableWallet_Erase(void * jarg1) { - unsigned int jresult ; - ReadableWallet__Handle arg1 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - result = (GoUint32)SKY_wallet_ReadableWallet_Erase(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_DecompressPoint(void * jarg1, unsigned char jarg2, void * jarg3) { - unsigned int jresult ; - GoSlice arg1 ; - GoUint8 arg2 ; - GoSlice arg3 ; - GoSlice *argp1 ; - GoSlice *argp3 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoUint8)jarg2; - argp3 = (GoSlice *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg3 = *argp3; - result = (GoUint32)SKY_secp256k1go_DecompressPoint(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_RecoverPublicKey(void * jarg1, void * jarg2, long long jarg3, void * jarg4, void * jarg5) { - unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - GoInt arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - GoInt *arg5 = (GoInt *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (GoInt)jarg3; - arg4 = (coin__UxArray *)jarg4; - arg5 = (GoInt *)jarg5; - result = (GoUint32)SKY_secp256k1go_RecoverPublicKey(arg1,arg2,arg3,arg4,arg5); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Multiply(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_secp256k1go_Multiply(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_BaseMultiply(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1go_BaseMultiply(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_BaseMultiplyAdd(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_secp256k1go_BaseMultiplyAdd(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_GeneratePublicKey(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1go_GeneratePublicKey(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_SeckeyIsValid(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_secp256k1go_SeckeyIsValid(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_PubkeyIsValid(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_secp256k1go_PubkeyIsValid(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_String2Hex(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_base58_String2Hex(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_ToInt(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_base58_Base58_ToInt(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_ToHex(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_base58_Base58_ToHex(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_Base582Int(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_base58_Base58_Base582Int(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base582Hex(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_base58_Base582Hex(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_BitHex(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_base58_Base58_BitHex(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Int2Base58(long long jarg1, void * jarg2) { - unsigned int jresult ; - GoInt arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - arg1 = (GoInt)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_base58_Int2Base58(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Hex2Base58(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_base58_Hex2Base58(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Hex2Base58String(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_base58_Hex2Base58String(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Hex2Base58Str(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_base58_Hex2Base58Str(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GenerateWallet(void * jarg1, void * jarg2, unsigned long long jarg3, void * jarg4) { - unsigned int jresult ; - GoString arg1 ; - Options__Handle *arg2 = (Options__Handle *) 0 ; - GoUint64 arg3 ; - Wallet__Handle *arg4 = (Wallet__Handle *) 0 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (Options__Handle *)jarg2; - arg3 = (GoUint64)jarg3; - arg4 = (Wallet__Handle *)jarg4; - result = (GoUint32)SKY_cli_GenerateWallet(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_MakeAlphanumericSeed(void * jarg1) { - unsigned int jresult ; - GoString_ *arg1 = (GoString_ *) 0 ; - GoUint32 result; - - arg1 = (GoString_ *)jarg1; - result = (GoUint32)SKY_cli_MakeAlphanumericSeed(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_NewClient(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (WebRpcClient__Handle *)jarg2; - result = (GoUint32)SKY_webrpc_NewClient(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_CSRF(void * jarg1, void * jarg2) { - unsigned int jresult ; - WebRpcClient__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_webrpc_Client_CSRF(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_InjectTransaction(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - WebRpcClient__Handle arg1 ; - Transaction__Handle arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - { - SWIG_AsVal_long(jarg2, (long*)&arg2); - } - arg3 = (GoString_ *)jarg3; - result = (GoUint32)SKY_webrpc_Client_InjectTransaction(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetStatus(void * jarg1, void * jarg2) { - unsigned int jresult ; - WebRpcClient__Handle arg1 ; - StatusResult_Handle *arg2 = (StatusResult_Handle *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (StatusResult_Handle *)jarg2; - result = (GoUint32)SKY_webrpc_Client_GetStatus(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetTransactionByID(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - WebRpcClient__Handle arg1 ; - GoString arg2 ; - TransactionResult_Handle *arg3 = (TransactionResult_Handle *) 0 ; - GoString *argp2 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - arg3 = (TransactionResult_Handle *)jarg3; - result = (GoUint32)SKY_webrpc_Client_GetTransactionByID(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetAddressUxOuts(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - WebRpcClient__Handle arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice *argp2 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_webrpc_Client_GetAddressUxOuts(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetBlocks(void * jarg1, unsigned long long jarg2, unsigned long long jarg3, void * jarg4) { - unsigned int jresult ; - WebRpcClient__Handle arg1 ; - GoUint64 arg2 ; - GoUint64 arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoUint64)jarg2; - arg3 = (GoUint64)jarg3; - arg4 = (coin__UxArray *)jarg4; - result = (GoUint32)SKY_webrpc_Client_GetBlocks(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetBlocksBySeq(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - WebRpcClient__Handle arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice *argp2 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_webrpc_Client_GetBlocksBySeq(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetLastBlocks(void * jarg1, unsigned long long jarg2, void * jarg3) { - unsigned int jresult ; - WebRpcClient__Handle arg1 ; - GoUint64 arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoUint64)jarg2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_webrpc_Client_GetLastBlocks(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_browser_Open(void * jarg1) { - unsigned int jresult ; - GoString arg1 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - result = (GoUint32)SKY_browser_Open(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_iputil_LocalhostIP(void * jarg1) { - unsigned int jresult ; - GoString_ *arg1 = (GoString_ *) 0 ; - GoUint32 result; - - arg1 = (GoString_ *)jarg1; - result = (GoUint32)SKY_iputil_LocalhostIP(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_iputil_IsLocalhost(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_iputil_IsLocalhost(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_iputil_SplitAddr(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - GoString arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint16 *arg3 = (GoUint16 *) 0 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - arg3 = (GoUint16 *)jarg3; - result = (GoUint32)SKY_iputil_SplitAddr(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encoder_StructField_String(void * jarg1, void * jarg2) { - unsigned int jresult ; - encoder__StructField *arg1 = (encoder__StructField *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - arg1 = (encoder__StructField *)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_encoder_StructField_String(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encoder_ParseFields(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - GoStringMap_ *arg3 = (GoStringMap_ *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (GoStringMap_ *)jarg3; - result = (GoUint32)SKY_encoder_ParseFields(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_SumSHA256(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1_SumSHA256(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_RandByte(long long jarg1, void * jarg2) { - unsigned int jresult ; - GoInt arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint32 result; - - arg1 = (GoInt)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1_RandByte(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GenerateAddressesInFile(void * jarg1, unsigned long long jarg2, void * jarg3, void * jarg4) { - unsigned int jresult ; - GoString arg1 ; - GoUint64 arg2 ; - PasswordReader__Handle arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - GoString *argp1 ; - PasswordReader__Handle *argp3 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoUint64)jarg2; - argp3 = (PasswordReader__Handle *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null PasswordReader__Handle", 0); - return 0; - } - arg3 = *argp3; - arg4 = (coin__UxArray *)jarg4; - result = (GoUint32)SKY_cli_GenerateAddressesInFile(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_FormatAddressesAsJSON(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cli_FormatAddressesAsJSON(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_FormatAddressesAsJoinedArray(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cli_FormatAddressesAsJoinedArray(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_AddressesToStrings(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_cli_AddressesToStrings(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddUint64(unsigned long long jarg1, unsigned long long jarg2, void * jarg3) { - unsigned int jresult ; - GoUint64 arg1 ; - GoUint64 arg2 ; - GoUint64 *arg3 = (GoUint64 *) 0 ; - GoUint32 result; - - arg1 = (GoUint64)jarg1; - arg2 = (GoUint64)jarg2; - arg3 = (GoUint64 *)jarg3; - result = (GoUint32)SKY_coin_AddUint64(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Uint64ToInt64(unsigned long long jarg1, void * jarg2) { - unsigned int jresult ; - GoUint64 arg1 ; - GoInt64 *arg2 = (GoInt64 *) 0 ; - GoUint32 result; - - arg1 = (GoUint64)jarg1; - arg2 = (GoInt64 *)jarg2; - result = (GoUint32)SKY_coin_Uint64ToInt64(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Int64ToUint64(long long jarg1, void * jarg2) { - unsigned int jresult ; - GoInt64 arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint32 result; - - arg1 = (GoInt64)jarg1; - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_coin_Int64ToUint64(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Len(void * jarg1, void * jarg2) { - unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoInt *arg2 = (GoInt *) 0 ; - GoUint32 result; - - arg1 = (coin__UxArray *)jarg1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_cipher_PubKeySlice_Len(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Less(void * jarg1, long long jarg2, long long jarg3, void * jarg4) { - unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoInt arg2 ; - GoInt arg3 ; - GoUint8 *arg4 = (GoUint8 *) 0 ; - GoUint32 result; - - arg1 = (coin__UxArray *)jarg1; - arg2 = (GoInt)jarg2; - arg3 = (GoInt)jarg3; - arg4 = (GoUint8 *)jarg4; - result = (GoUint32)SKY_cipher_PubKeySlice_Less(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Swap(void * jarg1, long long jarg2, long long jarg3) { - unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoInt arg2 ; - GoInt arg3 ; - GoUint32 result; - - arg1 = (coin__UxArray *)jarg1; - arg2 = (GoInt)jarg2; - arg3 = (GoInt)jarg3; - result = (GoUint32)SKY_cipher_PubKeySlice_Swap(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_RandByte(long long jarg1, void * jarg2) { - unsigned int jresult ; - GoInt arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint32 result; - - arg1 = (GoInt)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_cipher_RandByte(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewPubKey(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher__PubKey *)jarg2; - result = (GoUint32)SKY_cipher_NewPubKey(arg1,(GoUint8_ (*)[33])arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromHex(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher__PubKey *)jarg2; - result = (GoUint32)SKY_cipher_PubKeyFromHex(arg1,(GoUint8_ (*)[33])arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSecKey(void * jarg1, void * jarg2) { - unsigned int jresult ; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; - GoUint32 result; - - arg1 = (cipher__SecKey *)jarg1; - arg2 = (cipher__PubKey *)jarg2; - result = (GoUint32)SKY_cipher_PubKeyFromSecKey((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[33])arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSig(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - cipher__Sig *arg1 = (cipher__Sig *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - cipher__PubKey *arg3 = (cipher__PubKey *) 0 ; - GoUint32 result; - - arg1 = (cipher__Sig *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - arg3 = (cipher__PubKey *)jarg3; - result = (GoUint32)SKY_cipher_PubKeyFromSig((GoUint8_ (*)[65])arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[33])arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_Verify(void * jarg1) { - unsigned int jresult ; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - GoUint32 result; - - arg1 = (cipher__PubKey *)jarg1; - result = (GoUint32)SKY_cipher_PubKey_Verify((GoUint8_ (*)[33])arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_Hex(void * jarg1, void * jarg2) { - unsigned int jresult ; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - arg1 = (cipher__PubKey *)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cipher_PubKey_Hex((GoUint8_ (*)[33])arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_ToAddressHash(void * jarg1, void * jarg2) { - unsigned int jresult ; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__Ripemd160 *arg2 = (cipher__Ripemd160 *) 0 ; - GoUint32 result; - - arg1 = (cipher__PubKey *)jarg1; - arg2 = (cipher__Ripemd160 *)jarg2; - result = (GoUint32)SKY_cipher_PubKey_ToAddressHash((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[20])arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewSecKey(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher__SecKey *)jarg2; - result = (GoUint32)SKY_cipher_NewSecKey(arg1,(GoUint8_ (*)[32])arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKeyFromHex(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher__SecKey *)jarg2; - result = (GoUint32)SKY_cipher_SecKeyFromHex(arg1,(GoUint8_ (*)[32])arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKey_Verify(void * jarg1) { - unsigned int jresult ; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - GoUint32 result; - - arg1 = (cipher__SecKey *)jarg1; - result = (GoUint32)SKY_cipher_SecKey_Verify((GoUint8_ (*)[32])arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKey_Hex(void * jarg1, void * jarg2) { - unsigned int jresult ; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - arg1 = (cipher__SecKey *)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cipher_SecKey_Hex((GoUint8_ (*)[32])arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_ECDH(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoUint32 result; - - arg1 = (cipher__PubKey *)jarg1; - arg2 = (cipher__SecKey *)jarg2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_cipher_ECDH((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewSig(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - cipher__Sig *arg2 = (cipher__Sig *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher__Sig *)jarg2; - result = (GoUint32)SKY_cipher_NewSig(arg1,(GoUint8_ (*)[65])arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SigFromHex(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - cipher__Sig *arg2 = (cipher__Sig *) 0 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher__Sig *)jarg2; - result = (GoUint32)SKY_cipher_SigFromHex(arg1,(GoUint8_ (*)[65])arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Sig_Hex(void * jarg1, void * jarg2) { - unsigned int jresult ; - cipher__Sig *arg1 = (cipher__Sig *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - arg1 = (cipher__Sig *)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cipher_Sig_Hex((GoUint8_ (*)[65])arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SignHash(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - cipher__Sig *arg3 = (cipher__Sig *) 0 ; - GoUint32 result; - - arg1 = (cipher__SHA256 *)jarg1; - arg2 = (cipher__SecKey *)jarg2; - arg3 = (cipher__Sig *)jarg3; - result = (GoUint32)SKY_cipher_SignHash((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[65])arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_ChkSig(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - cipher__Sig *arg3 = (cipher__Sig *) 0 ; - GoUint32 result; - - arg1 = (cipher__Address *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - arg3 = (cipher__Sig *)jarg3; - result = (GoUint32)SKY_cipher_ChkSig(arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[65])arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignedHash(void * jarg1, void * jarg2) { - unsigned int jresult ; - cipher__Sig *arg1 = (cipher__Sig *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoUint32 result; - - arg1 = (cipher__Sig *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_cipher_VerifySignedHash((GoUint8_ (*)[65])arg1,(GoUint8_ (*)[32])arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignature(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__Sig *arg2 = (cipher__Sig *) 0 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - GoUint32 result; - - arg1 = (cipher__PubKey *)jarg1; - arg2 = (cipher__Sig *)jarg2; - arg3 = (cipher__SHA256 *)jarg3; - result = (GoUint32)SKY_cipher_VerifySignature((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[65])arg2,(GoUint8_ (*)[32])arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPair(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - GoSlice arg1 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; - cipher__SecKey *arg3 = (cipher__SecKey *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher__PubKey *)jarg2; - arg3 = (cipher__SecKey *)jarg3; - result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPair(arg1,(GoUint8_ (*)[33])arg2,(GoUint8_ (*)[32])arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DeterministicKeyPairIterator(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { - unsigned int jresult ; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - cipher__PubKey *arg3 = (cipher__PubKey *) 0 ; - cipher__SecKey *arg4 = (cipher__SecKey *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - arg3 = (cipher__PubKey *)jarg3; - arg4 = (cipher__SecKey *)jarg4; - result = (GoUint32)SKY_cipher_DeterministicKeyPairIterator(arg1,arg2,(GoUint8_ (*)[33])arg3,(GoUint8_ (*)[32])arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairs(void * jarg1, long long jarg2, void * jarg3) { - unsigned int jresult ; - GoSlice arg1 ; - GoInt arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoInt)jarg2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPairs(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairsSeed(void * jarg1, long long jarg2, void * jarg3, void * jarg4) { - unsigned int jresult ; - GoSlice arg1 ; - GoInt arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoInt)jarg2; - arg3 = (coin__UxArray *)jarg3; - arg4 = (coin__UxArray *)jarg4; - result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPairsSeed(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_TestSecKey(void * jarg1) { - unsigned int jresult ; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - GoUint32 result; - - arg1 = (cipher__SecKey *)jarg1; - result = (GoUint32)SKY_cipher_TestSecKey((GoUint8_ (*)[32])arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_TestSecKeyHash(void * jarg1, void * jarg2) { - unsigned int jresult ; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoUint32 result; - - arg1 = (cipher__SecKey *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_cipher_TestSecKeyHash((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[32])arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateKeyPair(void * jarg1, void * jarg2) { - unsigned int jresult ; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - GoUint32 result; - - arg1 = (cipher__PubKey *)jarg1; - arg2 = (cipher__SecKey *)jarg2; - result = (GoUint32)SKY_cipher_GenerateKeyPair((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Create(void * jarg1) { - unsigned int jresult ; - Signature_Handle *arg1 = (Signature_Handle *) 0 ; - GoUint32 result; - - arg1 = (Signature_Handle *)jarg1; - result = (GoUint32)SKY_secp256k1go_Signature_Create(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_GetR(void * jarg1, void * jarg2) { - unsigned int jresult ; - Signature_Handle arg1 ; - Number_Handle *arg2 = (Number_Handle *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (Number_Handle *)jarg2; - result = (GoUint32)SKY_secp256k1go_Signature_GetR(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_GetS(void * jarg1, void * jarg2) { - unsigned int jresult ; - Signature_Handle arg1 ; - Number_Handle *arg2 = (Number_Handle *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (Number_Handle *)jarg2; - result = (GoUint32)SKY_secp256k1go_Signature_GetS(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Print(void * jarg1, void * jarg2) { - unsigned int jresult ; - Signature_Handle arg1 ; - GoString arg2 ; - GoString *argp2 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_secp256k1go_Signature_Print(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Verify(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { - unsigned int jresult ; - Signature_Handle arg1 ; - secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; - Number_Handle arg3 ; - GoUint8 *arg4 = (GoUint8 *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (secp256k1go__XY *)jarg2; - { - SWIG_AsVal_long(jarg3, (long*)&arg3); - } - arg4 = (GoUint8 *)jarg4; - result = (GoUint32)SKY_secp256k1go_Signature_Verify(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Recover(void * jarg1, void * jarg2, void * jarg3, long long jarg4, void * jarg5) { - unsigned int jresult ; - Signature_Handle arg1 ; - secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; - Number_Handle arg3 ; - GoInt arg4 ; - GoUint8 *arg5 = (GoUint8 *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (secp256k1go__XY *)jarg2; - { - SWIG_AsVal_long(jarg3, (long*)&arg3); - } - arg4 = (GoInt)jarg4; - arg5 = (GoUint8 *)jarg5; - result = (GoUint32)SKY_secp256k1go_Signature_Recover(arg1,arg2,arg3,arg4,arg5); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Sign(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) { - unsigned int jresult ; - Signature_Handle arg1 ; - Number_Handle arg2 ; - Number_Handle arg3 ; - Number_Handle arg4 ; - GoInt *arg5 = (GoInt *) 0 ; - GoInt *arg6 = (GoInt *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - { - SWIG_AsVal_long(jarg2, (long*)&arg2); - } - { - SWIG_AsVal_long(jarg3, (long*)&arg3); - } - { - SWIG_AsVal_long(jarg4, (long*)&arg4); - } - arg5 = (GoInt *)jarg5; - arg6 = (GoInt *)jarg6; - result = (GoUint32)SKY_secp256k1go_Signature_Sign(arg1,arg2,arg3,arg4,arg5,arg6); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_ParseBytes(void * jarg1, void * jarg2) { - unsigned int jresult ; - Signature_Handle arg1 ; - GoSlice arg2 ; - GoSlice *argp2 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_secp256k1go_Signature_ParseBytes(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Bytes(void * jarg1, void * jarg2) { - unsigned int jresult ; - Signature_Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1go_Signature_Bytes(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_App_Run(void * jarg1, void * jarg2) { - unsigned int jresult ; - App__Handle arg1 ; - GoString arg2 ; - GoString *argp2 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_cli_App_Run(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_GetCoin(void * jarg1, void * jarg2) { - unsigned int jresult ; - Config__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cli_Config_GetCoin(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_GetRPCAddress(void * jarg1, void * jarg2) { - unsigned int jresult ; - Config__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cli_Config_GetRPCAddress(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_RPCClientFromApp(void * jarg1, void * jarg2) { - unsigned int jresult ; - App__Handle arg1 ; - WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (WebRpcClient__Handle *)jarg2; - result = (GoUint32)SKY_cli_RPCClientFromApp(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Getenv(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cli_Getenv(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Setenv(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - GoString arg2 ; - GoString *argp1 ; - GoString *argp2 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_cli_Setenv(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_poly1305_Verify(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { - unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoUint8 *arg4 = (GoUint8 *) 0 ; - GoSlice *argp2 ; - GoUint32 result; - - arg1 = (coin__UxArray *)jarg1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (coin__UxArray *)jarg3; - arg4 = (GoUint8 *)jarg4; - result = (GoUint32)SKY_poly1305_Verify(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewBalance(unsigned long long jarg1, unsigned long long jarg2, void * jarg3) { - unsigned int jresult ; - GoUint64 arg1 ; - GoUint64 arg2 ; - wallet__Balance *arg3 = (wallet__Balance *) 0 ; - GoUint32 result; - - arg1 = (GoUint64)jarg1; - arg2 = (GoUint64)jarg2; - arg3 = (wallet__Balance *)jarg3; - result = (GoUint32)SKY_wallet_NewBalance(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewBalanceFromUxOut(unsigned long long jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - GoUint64 arg1 ; - coin__UxOut *arg2 = (coin__UxOut *) 0 ; - wallet__Balance *arg3 = (wallet__Balance *) 0 ; - GoUint32 result; - - arg1 = (GoUint64)jarg1; - arg2 = (coin__UxOut *)jarg2; - arg3 = (wallet__Balance *)jarg3; - result = (GoUint32)SKY_wallet_NewBalanceFromUxOut(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Balance_Add(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - wallet__Balance *arg2 = (wallet__Balance *) 0 ; - wallet__Balance *arg3 = (wallet__Balance *) 0 ; - GoUint32 result; - - arg1 = (wallet__Balance *)jarg1; - arg2 = (wallet__Balance *)jarg2; - arg3 = (wallet__Balance *)jarg3; - result = (GoUint32)SKY_wallet_Balance_Add(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Balance_Sub(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - wallet__Balance *arg2 = (wallet__Balance *) 0 ; - wallet__Balance *arg3 = (wallet__Balance *) 0 ; - GoUint32 result; - - arg1 = (wallet__Balance *)jarg1; - arg2 = (wallet__Balance *)jarg2; - arg3 = (wallet__Balance *)jarg3; - result = (GoUint32)SKY_wallet_Balance_Sub(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Balance_Equals(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - wallet__Balance *arg2 = (wallet__Balance *) 0 ; - GoUint8 *arg3 = (GoUint8 *) 0 ; - GoUint32 result; - - arg1 = (wallet__Balance *)jarg1; - arg2 = (wallet__Balance *)jarg2; - arg3 = (GoUint8 *)jarg3; - result = (GoUint32)SKY_wallet_Balance_Equals(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Balance_IsZero(void * jarg1, void * jarg2) { - unsigned int jresult ; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoUint32 result; - - arg1 = (wallet__Balance *)jarg1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_wallet_Balance_IsZero(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_utc_UnixNow(void * jarg1) { - unsigned int jresult ; - GoInt64 *arg1 = (GoInt64 *) 0 ; - GoUint32 result; - - arg1 = (GoInt64 *)jarg1; - result = (GoUint32)SKY_utc_UnixNow(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Address_UnmarshalJSON(void * jarg1, void * jarg2) { - unsigned int jresult ; - httphelper__Address *arg1 = (httphelper__Address *) 0 ; - GoSlice arg2 ; - GoSlice *argp2 ; - GoUint32 result; - - arg1 = (httphelper__Address *)jarg1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_httphelper_Address_UnmarshalJSON(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Address_MarshalJSON(void * jarg1, void * jarg2) { - unsigned int jresult ; - httphelper__Address *arg1 = (httphelper__Address *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint32 result; - - arg1 = (httphelper__Address *)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_httphelper_Address_MarshalJSON(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Coins_UnmarshalJSON(void * jarg1, void * jarg2) { - unsigned int jresult ; - httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; - GoSlice arg2 ; - GoSlice *argp2 ; - GoUint32 result; - - arg1 = (httphelper__Coins *)jarg1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_httphelper_Coins_UnmarshalJSON(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Coins_MarshalJSON(void * jarg1, void * jarg2) { - unsigned int jresult ; - httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint32 result; - - arg1 = (httphelper__Coins *)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_httphelper_Coins_MarshalJSON(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Coins_Value(void * jarg1, void * jarg2) { - unsigned int jresult ; - httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint32 result; - - arg1 = (httphelper__Coins *)jarg1; - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_httphelper_Coins_Value(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Hours_UnmarshalJSON(void * jarg1, void * jarg2) { - unsigned int jresult ; - httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; - GoSlice arg2 ; - GoSlice *argp2 ; - GoUint32 result; - - arg1 = (httphelper__Hours *)jarg1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_httphelper_Hours_UnmarshalJSON(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Hours_MarshalJSON(void * jarg1, void * jarg2) { - unsigned int jresult ; - httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint32 result; - - arg1 = (httphelper__Hours *)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_httphelper_Hours_MarshalJSON(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Hours_Value(void * jarg1, void * jarg2) { - unsigned int jresult ; - httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint32 result; - - arg1 = (httphelper__Hours *)jarg1; - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_httphelper_Hours_Value(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Entry_Verify(void * jarg1) { - unsigned int jresult ; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - GoUint32 result; - - arg1 = (wallet__Entry *)jarg1; - result = (GoUint32)SKY_wallet_Entry_Verify(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Entry_VerifyPublic(void * jarg1) { - unsigned int jresult ; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - GoUint32 result; - - arg1 = (wallet__Entry *)jarg1; - result = (GoUint32)SKY_wallet_Entry_VerifyPublic(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateAddresses(void * jarg1, void * jarg2, long long jarg3, unsigned char jarg4, void * jarg5) { - unsigned int jresult ; - GoString arg1 ; - GoString arg2 ; - GoInt arg3 ; - GoUint8 arg4 ; - ReadableWallet__Handle *arg5 = (ReadableWallet__Handle *) 0 ; - GoString *argp1 ; - GoString *argp2 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - arg3 = (GoInt)jarg3; - arg4 = (GoUint8)jarg4; - arg5 = (ReadableWallet__Handle *)jarg5; - result = (GoUint32)SKY_wallet_CreateAddresses(arg1,arg2,arg3,arg4,arg5); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_GetSkycoinWalletEntry(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - ReadableEntry__Handle *arg3 = (ReadableEntry__Handle *) 0 ; - GoUint32 result; - - arg1 = (cipher__PubKey *)jarg1; - arg2 = (cipher__SecKey *)jarg2; - arg3 = (ReadableEntry__Handle *)jarg3; - result = (GoUint32)SKY_wallet_GetSkycoinWalletEntry((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_GetBitcoinWalletEntry(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - ReadableEntry__Handle *arg3 = (ReadableEntry__Handle *) 0 ; - GoUint32 result; - - arg1 = (cipher__PubKey *)jarg1; - arg2 = (cipher__SecKey *)jarg2; - arg3 = (ReadableEntry__Handle *)jarg3; - result = (GoUint32)SKY_wallet_GetBitcoinWalletEntry((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Print(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - GoString arg2 ; - GoString *argp2 ; - GoUint32 result; - - arg1 = (secp256k1go__XYZ *)jarg1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_secp256k1go_XYZ_Print(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_SetXY(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; - GoUint32 result; - - arg1 = (secp256k1go__XYZ *)jarg1; - arg2 = (secp256k1go__XY *)jarg2; - result = (GoUint32)SKY_secp256k1go_XYZ_SetXY(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_IsInfinity(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoUint32 result; - - arg1 = (secp256k1go__XYZ *)jarg1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_secp256k1go_XYZ_IsInfinity(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_IsValid(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoUint32 result; - - arg1 = (secp256k1go__XYZ *)jarg1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_secp256k1go_XYZ_IsValid(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Normalize(void * jarg1) { - unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - GoUint32 result; - - arg1 = (secp256k1go__XYZ *)jarg1; - result = (GoUint32)SKY_secp256k1go_XYZ_Normalize(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Equals(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; - GoUint8 *arg3 = (GoUint8 *) 0 ; - GoUint32 result; - - arg1 = (secp256k1go__XYZ *)jarg1; - arg2 = (secp256k1go__XYZ *)jarg2; - arg3 = (GoUint8 *)jarg3; - result = (GoUint32)SKY_secp256k1go_XYZ_Equals(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_ECmult(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { - unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; - Number_Handle arg3 ; - Number_Handle arg4 ; - GoUint32 result; - - arg1 = (secp256k1go__XYZ *)jarg1; - arg2 = (secp256k1go__XYZ *)jarg2; - { - SWIG_AsVal_long(jarg3, (long*)&arg3); - } - { - SWIG_AsVal_long(jarg4, (long*)&arg4); - } - result = (GoUint32)SKY_secp256k1go_XYZ_ECmult(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Neg(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; - GoUint32 result; - - arg1 = (secp256k1go__XYZ *)jarg1; - arg2 = (secp256k1go__XYZ *)jarg2; - result = (GoUint32)SKY_secp256k1go_XYZ_Neg(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Double(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; - GoUint32 result; - - arg1 = (secp256k1go__XYZ *)jarg1; - arg2 = (secp256k1go__XYZ *)jarg2; - result = (GoUint32)SKY_secp256k1go_XYZ_Double(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_AddXY(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XY *arg3 = (secp256k1go__XY *) 0 ; - GoUint32 result; - - arg1 = (secp256k1go__XYZ *)jarg1; - arg2 = (secp256k1go__XYZ *)jarg2; - arg3 = (secp256k1go__XY *)jarg3; - result = (GoUint32)SKY_secp256k1go_XYZ_AddXY(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Add(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XYZ *arg3 = (secp256k1go__XYZ *) 0 ; - GoUint32 result; - - arg1 = (secp256k1go__XYZ *)jarg1; - arg2 = (secp256k1go__XYZ *)jarg2; - arg3 = (secp256k1go__XYZ *)jarg3; - result = (GoUint32)SKY_secp256k1go_XYZ_Add(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_ECmultGen(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - Number_Handle arg2 ; - GoUint32 result; - - arg1 = (secp256k1go__XYZ *)jarg1; - { - SWIG_AsVal_long(jarg2, (long*)&arg2); - } - result = (GoUint32)SKY_secp256k1go_ECmultGen(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_Sha256Xor_Encrypt(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_encrypt_Sha256Xor_Encrypt(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_Sha256Xor_Decrypt(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_encrypt_Sha256Xor_Decrypt(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_droplet_FromString(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_droplet_FromString(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_droplet_ToString(unsigned long long jarg1, void * jarg2) { - unsigned int jresult ; - GoUint64 arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - arg1 = (GoUint64)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_droplet_ToString(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CryptoTypeFromString(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_wallet_CryptoTypeFromString(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_handle_close(void * jarg1) { - Handle arg1 ; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - SKY_handle_close(arg1); -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_handle_copy(void * jarg1) { - unsigned int jresult ; - Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; - GoUint32 result; - - { - arg2 = &temp2; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - result = (GoUint32)SKY_handle_copy(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_logging_EnableColors() { - unsigned int jresult ; - GoUint32 result; - - result = (GoUint32)SKY_logging_EnableColors(); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_logging_DisableColors() { - unsigned int jresult ; - GoUint32 result; - - result = (GoUint32)SKY_logging_DisableColors(); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_logging_Disable() { - unsigned int jresult ; - GoUint32 result; - - result = (GoUint32)SKY_logging_Disable(); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_map_Get(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; - GoString arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - GoString *argp2 ; - GoUint32 result; - - arg1 = (GoStringMap_ *)jarg1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - arg3 = (GoString_ *)jarg3; - result = (GoUint32)SKY_map_Get(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_skycoin_SKY_map_HasKey(void * jarg1, void * jarg2) { - unsigned char jresult ; - GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; - GoString arg2 ; - GoString *argp2 ; - GoUint8 result; - - arg1 = (GoStringMap_ *)jarg1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint8)SKY_map_HasKey(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_map_Close(void * jarg1) { - unsigned int jresult ; - GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; - GoUint32 result; - - arg1 = (GoStringMap_ *)jarg1; - result = (GoUint32)SKY_map_Close(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DecodeBase58Address(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher__Address *)jarg2; - result = (GoUint32)SKY_cipher_DecodeBase58Address(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddressFromBytes(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher__Address *)jarg2; - result = (GoUint32)SKY_cipher_AddressFromBytes(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddressFromPubKey(void * jarg1, void * jarg2) { - unsigned int jresult ; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - GoUint32 result; - - arg1 = (cipher__PubKey *)jarg1; - arg2 = (cipher__Address *)jarg2; - result = (GoUint32)SKY_cipher_AddressFromPubKey((GoUint8_ (*)[33])arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddressFromSecKey(void * jarg1, void * jarg2) { - unsigned int jresult ; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - GoUint32 result; - - arg1 = (cipher__SecKey *)jarg1; - arg2 = (cipher__Address *)jarg2; - result = (GoUint32)SKY_cipher_AddressFromSecKey((GoUint8_ (*)[32])arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinDecodeBase58Address(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher__Address *)jarg2; - result = (GoUint32)SKY_cipher_BitcoinDecodeBase58Address(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Null(void * jarg1, void * jarg2) { - unsigned int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoUint32 result; - - arg1 = (cipher__Address *)jarg1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_cipher_Address_Null(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Bytes(void * jarg1, void * jarg2) { - unsigned int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint32 result; - - arg1 = (cipher__Address *)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_cipher_Address_Bytes(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_BitcoinBytes(void * jarg1, void * jarg2) { - unsigned int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint32 result; - - arg1 = (cipher__Address *)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_cipher_Address_BitcoinBytes(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Verify(void * jarg1, void * jarg2) { - unsigned int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; - GoUint32 result; - - arg1 = (cipher__Address *)jarg1; - arg2 = (cipher__PubKey *)jarg2; - result = (GoUint32)SKY_cipher_Address_Verify(arg1,(GoUint8_ (*)[33])arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_String(void * jarg1, void * jarg2) { - unsigned int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - arg1 = (cipher__Address *)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cipher_Address_String(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_BitcoinString(void * jarg1, void * jarg2) { - unsigned int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - arg1 = (cipher__Address *)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cipher_Address_BitcoinString(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Checksum(void * jarg1, void * jarg2) { - unsigned int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - cipher__Checksum *arg2 = (cipher__Checksum *) 0 ; - GoUint32 result; - - arg1 = (cipher__Address *)jarg1; - arg2 = (cipher__Checksum *)jarg2; - result = (GoUint32)SKY_cipher_Address_Checksum(arg1,(GoUint8_ (*)[4])arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_BitcoinChecksum(void * jarg1, void * jarg2) { - unsigned int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - cipher__Checksum *arg2 = (cipher__Checksum *) 0 ; - GoUint32 result; - - arg1 = (cipher__Address *)jarg1; - arg2 = (cipher__Checksum *)jarg2; - result = (GoUint32)SKY_cipher_Address_BitcoinChecksum(arg1,(GoUint8_ (*)[4])arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddressFromPubkey(void * jarg1, void * jarg2) { - unsigned int jresult ; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - arg1 = (cipher__PubKey *)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cipher_BitcoinAddressFromPubkey((GoUint8_ (*)[33])arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinWalletImportFormatFromSeckey(void * jarg1, void * jarg2) { - unsigned int jresult ; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - arg1 = (cipher__SecKey *)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cipher_BitcoinWalletImportFormatFromSeckey((GoUint8_ (*)[32])arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddressFromBytes(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher__Address *)jarg2; - result = (GoUint32)SKY_cipher_BitcoinAddressFromBytes(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKeyFromWalletImportFormat(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher__SecKey *)jarg2; - result = (GoUint32)SKY_cipher_SecKeyFromWalletImportFormat(arg1,(GoUint8_ (*)[32])arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_JsonEncode_Handle(void * jarg1, void * jarg2) { - unsigned int jresult ; - Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_JsonEncode_Handle(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Progress_GetCurrent(void * jarg1, void * jarg2) { - unsigned int jresult ; - Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_Handle_Progress_GetCurrent(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Block_GetHeadSeq(void * jarg1, void * jarg2) { - unsigned int jresult ; - Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_Handle_Block_GetHeadSeq(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Block_GetHeadHash(void * jarg1, void * jarg2) { - unsigned int jresult ; - Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_Handle_Block_GetHeadHash(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Block_GetPreviousBlockHash(void * jarg1, void * jarg2) { - unsigned int jresult ; - Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_Handle_Block_GetPreviousBlockHash(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Blocks_GetAt(void * jarg1, unsigned long long jarg2) { - unsigned int jresult ; - Handle arg1 ; - GoUint64 arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; - GoUint32 result; - - { - arg3 = &temp3; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoUint64)jarg2; - result = (GoUint32)SKY_Handle_Blocks_GetAt(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Blocks_GetCount(void * jarg1, void * jarg2) { - unsigned int jresult ; - Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_Handle_Blocks_GetCount(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Connections_GetCount(void * jarg1, void * jarg2) { - unsigned int jresult ; - Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_Handle_Connections_GetCount(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Strings_GetCount(void * jarg1, void * jarg2) { - unsigned int jresult ; - Strings__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoUint32 *)jarg2; - result = (GoUint32)SKY_Handle_Strings_GetCount(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Strings_Sort(void * jarg1) { - unsigned int jresult ; - Strings__Handle arg1 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - result = (GoUint32)SKY_Handle_Strings_Sort(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Strings_GetAt(void * jarg1, long long jarg2, void * jarg3) { - unsigned int jresult ; - Strings__Handle arg1 ; - GoInt arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoInt)jarg2; - arg3 = (GoString_ *)jarg3; - result = (GoUint32)SKY_Handle_Strings_GetAt(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletDir(void * jarg1, void * jarg2) { - unsigned int jresult ; - Client__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_api_Handle_Client_GetWalletDir(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletFileName(void * jarg1, void * jarg2) { - unsigned int jresult ; - WalletResponse__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_api_Handle_Client_GetWalletFileName(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletLabel(void * jarg1, void * jarg2) { - unsigned int jresult ; - WalletResponse__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_api_Handle_Client_GetWalletLabel(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletFullPath(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - Client__Handle arg1 ; - WalletResponse__Handle arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - { - SWIG_AsVal_long(jarg2, (long*)&arg2); - } - arg3 = (GoString_ *)jarg3; - result = (GoUint32)SKY_api_Handle_Client_GetWalletFullPath(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletMeta(void * jarg1, void * jarg2) { - unsigned int jresult ; - Wallet__Handle arg1 ; - GoStringMap_ *arg2 = (GoStringMap_ *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoStringMap_ *)jarg2; - result = (GoUint32)SKY_api_Handle_GetWalletMeta(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletEntriesCount(void * jarg1, void * jarg2) { - unsigned int jresult ; - Wallet__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoUint32 *)jarg2; - result = (GoUint32)SKY_api_Handle_GetWalletEntriesCount(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletResponseEntriesCount(void * jarg1, void * jarg2) { - unsigned int jresult ; - WalletResponse__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoUint32 *)jarg2; - result = (GoUint32)SKY_api_Handle_Client_GetWalletResponseEntriesCount(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletGetEntry(void * jarg1, unsigned int jarg2, void * jarg3, void * jarg4) { - unsigned int jresult ; - Wallet__Handle arg1 ; - GoUint32 arg2 ; - cipher__Address *arg3 = (cipher__Address *) 0 ; - cipher__PubKey *arg4 = (cipher__PubKey *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoUint32)jarg2; - arg3 = (cipher__Address *)jarg3; - arg4 = (cipher__PubKey *)jarg4; - result = (GoUint32)SKY_api_Handle_WalletGetEntry(arg1,arg2,arg3,(GoUint8_ (*)[33])arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletResponseGetEntry(void * jarg1, unsigned int jarg2, void * jarg3, void * jarg4) { - unsigned int jresult ; - WalletResponse__Handle arg1 ; - GoUint32 arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - GoString_ *arg4 = (GoString_ *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoUint32)jarg2; - arg3 = (GoString_ *)jarg3; - arg4 = (GoString_ *)jarg4; - result = (GoUint32)SKY_api_Handle_WalletResponseGetEntry(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletResponseIsEncrypted(void * jarg1, void * jarg2) { - unsigned int jresult ; - WalletResponse__Handle arg1 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_api_Handle_WalletResponseIsEncrypted(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletResponseGetCryptoType(void * jarg1, void * jarg2) { - unsigned int jresult ; - WalletResponse__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_api_Handle_WalletResponseGetCryptoType(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletsResponseGetCount(void * jarg1, void * jarg2) { - unsigned int jresult ; - Wallets__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoUint32 *)jarg2; - result = (GoUint32)SKY_api_Handle_WalletsResponseGetCount(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletsResponseGetAt(void * jarg1, unsigned int jarg2, void * jarg3) { - unsigned int jresult ; - Wallets__Handle arg1 ; - GoUint32 arg2 ; - WalletResponse__Handle *arg3 = (WalletResponse__Handle *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoUint32)jarg2; - arg3 = (WalletResponse__Handle *)jarg3; - result = (GoUint32)SKY_api_Handle_WalletsResponseGetAt(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletFolderAddress(void * jarg1, void * jarg2) { - unsigned int jresult ; - Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_api_Handle_GetWalletFolderAddress(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletSeed(void * jarg1, void * jarg2) { - unsigned int jresult ; - Wallet__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_api_Handle_GetWalletSeed(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletLastSeed(void * jarg1, void * jarg2) { - unsigned int jresult ; - Wallet__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_api_Handle_GetWalletLastSeed(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetBuildInfoData(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { - unsigned int jresult ; - BuildInfo_Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString_ *arg3 = (GoString_ *) 0 ; - GoString_ *arg4 = (GoString_ *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoString_ *)jarg2; - arg3 = (GoString_ *)jarg3; - arg4 = (GoString_ *)jarg4; - result = (GoUint32)SKY_api_Handle_GetBuildInfoData(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_ripemd160_New(void * jarg1) { - unsigned int jresult ; - Hash_Handle *arg1 = (Hash_Handle *) 0 ; - GoUint32 result; - - arg1 = (Hash_Handle *)jarg1; - result = (GoUint32)SKY_ripemd160_New(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_ripemd160_Write(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - Hash_Handle arg1 ; - GoSlice arg2 ; - GoInt *arg3 = (GoInt *) 0 ; - Hash_Handle *argp1 ; - GoSlice *argp2 ; - GoUint32 result; - - argp1 = (Hash_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Hash_Handle", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (GoInt *)jarg3; - result = (GoUint32)SKY_ripemd160_Write(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_ripemd160_Sum(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - Hash_Handle arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - Hash_Handle *argp1 ; - GoSlice *argp2 ; - GoUint32 result; - - argp1 = (Hash_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Hash_Handle", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_ripemd160_Sum(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_Create(void * jarg1) { - unsigned int jresult ; - Number_Handle *arg1 = (Number_Handle *) 0 ; - GoUint32 result; - - arg1 = (Number_Handle *)jarg1; - result = (GoUint32)SKY_secp256k1go_Number_Create(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_Print(void * jarg1, void * jarg2) { - unsigned int jresult ; - Number_Handle arg1 ; - GoString arg2 ; - GoString *argp2 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_secp256k1go_Number_Print(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_SetHex(void * jarg1, void * jarg2) { - unsigned int jresult ; - Number_Handle arg1 ; - GoString arg2 ; - GoString *argp2 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_secp256k1go_Number_SetHex(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_IsOdd(void * jarg1, void * jarg2) { - unsigned int jresult ; - Number_Handle arg1 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_secp256k1go_Number_IsOdd(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_IsEqual(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - Number_Handle arg1 ; - Number_Handle arg2 ; - GoUint8 *arg3 = (GoUint8 *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - { - SWIG_AsVal_long(jarg2, (long*)&arg2); - } - arg3 = (GoUint8 *)jarg3; - result = (GoUint32)SKY_secp256k1go_Number_IsEqual(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_Hash(void * jarg1, void * jarg2) { - unsigned int jresult ; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoUint32 result; - - arg1 = (coin__UxOut *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_coin_UxOut_Hash(arg1,(GoUint8_ (*)[32])arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_SnapshotHash(void * jarg1, void * jarg2) { - unsigned int jresult ; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoUint32 result; - - arg1 = (coin__UxOut *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_coin_UxOut_SnapshotHash(arg1,(GoUint8_ (*)[32])arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxBody_Hash(void * jarg1, void * jarg2) { - unsigned int jresult ; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoUint32 result; - - arg1 = (coin__UxBody *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_coin_UxBody_Hash(arg1,(GoUint8_ (*)[32])arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_CoinHours(void * jarg1, unsigned long long jarg2, void * jarg3) { - unsigned int jresult ; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - GoUint64 arg2 ; - GoUint64 *arg3 = (GoUint64 *) 0 ; - GoUint32 result; - - arg1 = (coin__UxOut *)jarg1; - arg2 = (GoUint64)jarg2; - arg3 = (GoUint64 *)jarg3; - result = (GoUint32)SKY_coin_UxOut_CoinHours(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Hashes(void * jarg1, void * jarg2) { - unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint32 result; - - arg1 = (coin__UxArray *)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_coin_UxArray_Hashes(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_HasDupes(void * jarg1, void * jarg2) { - unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoUint32 result; - - arg1 = (coin__UxArray *)jarg1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_coin_UxArray_HasDupes(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Sort(void * jarg1) { - unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoUint32 result; - - arg1 = (coin__UxArray *)jarg1; - result = (GoUint32)SKY_coin_UxArray_Sort(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Len(void * jarg1, void * jarg2) { - unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoInt *arg2 = (GoInt *) 0 ; - GoUint32 result; - - arg1 = (coin__UxArray *)jarg1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_coin_UxArray_Len(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Less(void * jarg1, long long jarg2, long long jarg3, void * jarg4) { - unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoInt arg2 ; - GoInt arg3 ; - GoUint8 *arg4 = (GoUint8 *) 0 ; - GoUint32 result; - - arg1 = (coin__UxArray *)jarg1; - arg2 = (GoInt)jarg2; - arg3 = (GoInt)jarg3; - arg4 = (GoUint8 *)jarg4; - result = (GoUint32)SKY_coin_UxArray_Less(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Swap(void * jarg1, long long jarg2, long long jarg3) { - unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoInt arg2 ; - GoInt arg3 ; - GoUint32 result; - - arg1 = (coin__UxArray *)jarg1; - arg2 = (GoInt)jarg2; - arg3 = (GoInt)jarg3; - result = (GoUint32)SKY_coin_UxArray_Swap(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Coins(void * jarg1, void * jarg2) { - unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint32 result; - - arg1 = (coin__UxArray *)jarg1; - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_coin_UxArray_Coins(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_CoinHours(void * jarg1, unsigned long long jarg2, void * jarg3) { - unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoUint64 arg2 ; - GoUint64 *arg3 = (GoUint64 *) 0 ; - GoUint32 result; - - arg1 = (coin__UxArray *)jarg1; - arg2 = (GoUint64)jarg2; - arg3 = (GoUint64 *)jarg3; - result = (GoUint32)SKY_coin_UxArray_CoinHours(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Sub(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoUint32 result; - - arg1 = (coin__UxArray *)jarg1; - arg2 = (coin__UxArray *)jarg2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_coin_UxArray_Sub(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Add(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoUint32 result; - - arg1 = (coin__UxArray *)jarg1; - arg2 = (coin__UxArray *)jarg2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_coin_UxArray_Add(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewAddressUxOuts(void * jarg1, void * jarg2) { - unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - AddressUxOuts_Handle *arg2 = (AddressUxOuts_Handle *) 0 ; - GoUint32 result; - - arg1 = (coin__UxArray *)jarg1; - arg2 = (AddressUxOuts_Handle *)jarg2; - result = (GoUint32)SKY_coin_NewAddressUxOuts(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Keys(void * jarg1, void * jarg2) { - unsigned int jresult ; - AddressUxOuts_Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - AddressUxOuts_Handle *argp1 ; - GoUint32 result; - - argp1 = (AddressUxOuts_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_coin_AddressUxOuts_Keys(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Flatten(void * jarg1, void * jarg2) { - unsigned int jresult ; - AddressUxOuts_Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - AddressUxOuts_Handle *argp1 ; - GoUint32 result; - - argp1 = (AddressUxOuts_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_coin_AddressUxOuts_Flatten(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Sub(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - AddressUxOuts_Handle arg1 ; - AddressUxOuts_Handle arg2 ; - AddressUxOuts_Handle *arg3 = (AddressUxOuts_Handle *) 0 ; - AddressUxOuts_Handle *argp1 ; - AddressUxOuts_Handle *argp2 ; - GoUint32 result; - - argp1 = (AddressUxOuts_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); - return 0; - } - arg1 = *argp1; - argp2 = (AddressUxOuts_Handle *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); - return 0; - } - arg2 = *argp2; - arg3 = (AddressUxOuts_Handle *)jarg3; - result = (GoUint32)SKY_coin_AddressUxOuts_Sub(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Add(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - AddressUxOuts_Handle arg1 ; - AddressUxOuts_Handle arg2 ; - AddressUxOuts_Handle *arg3 = (AddressUxOuts_Handle *) 0 ; - AddressUxOuts_Handle *argp1 ; - AddressUxOuts_Handle *argp2 ; - GoUint32 result; - - argp1 = (AddressUxOuts_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); - return 0; - } - arg1 = *argp1; - argp2 = (AddressUxOuts_Handle *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); - return 0; - } - arg2 = *argp2; - arg3 = (AddressUxOuts_Handle *)jarg3; - result = (GoUint32)SKY_coin_AddressUxOuts_Add(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Get(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - AddressUxOuts_Handle arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - AddressUxOuts_Handle *argp1 ; - GoUint32 result; - - argp1 = (AddressUxOuts_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher__Address *)jarg2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_coin_AddressUxOuts_Get(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_HasKey(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - AddressUxOuts_Handle arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - GoUint8 *arg3 = (GoUint8 *) 0 ; - AddressUxOuts_Handle *argp1 ; - GoUint32 result; - - argp1 = (AddressUxOuts_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher__Address *)jarg2; - arg3 = (GoUint8 *)jarg3; - result = (GoUint32)SKY_coin_AddressUxOuts_HasKey(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_GetOutputLength(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - AddressUxOuts_Handle arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - GoInt *arg3 = (GoInt *) 0 ; - AddressUxOuts_Handle *argp1 ; - GoUint32 result; - - argp1 = (AddressUxOuts_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher__Address *)jarg2; - arg3 = (GoInt *)jarg3; - result = (GoUint32)SKY_coin_AddressUxOuts_GetOutputLength(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Length(void * jarg1, void * jarg2) { - unsigned int jresult ; - AddressUxOuts_Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - AddressUxOuts_Handle *argp1 ; - GoUint32 result; - - argp1 = (AddressUxOuts_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_coin_AddressUxOuts_Length(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Set(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - AddressUxOuts_Handle arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - AddressUxOuts_Handle *argp1 ; - GoUint32 result; - - argp1 = (AddressUxOuts_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher__Address *)jarg2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_coin_AddressUxOuts_Set(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_ScryptChacha20poly1305_Encrypt(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { - unsigned int jresult ; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - GoSlice arg2 ; - GoSlice arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - GoSlice *argp2 ; - GoSlice *argp3 ; - GoUint32 result; - - arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoSlice *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg3 = *argp3; - arg4 = (coin__UxArray *)jarg4; - result = (GoUint32)SKY_encrypt_ScryptChacha20poly1305_Encrypt(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_ScryptChacha20poly1305_Decrypt(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { - unsigned int jresult ; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - GoSlice arg2 ; - GoSlice arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - GoSlice *argp2 ; - GoSlice *argp3 ; - GoUint32 result; - - arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoSlice *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg3 = *argp3; - arg4 = (coin__UxArray *)jarg4; - result = (GoUint32)SKY_encrypt_ScryptChacha20poly1305_Decrypt(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateOptionsHandle(void * jarg1, void * jarg2, void * jarg3, unsigned char jarg4, void * jarg5, void * jarg6, unsigned long long jarg7, void * jarg8) { - unsigned int jresult ; - GoString arg1 ; - GoString arg2 ; - GoString arg3 ; - GoUint8 arg4 ; - GoString arg5 ; - GoString arg6 ; - GoUint64 arg7 ; - Options__Handle *arg8 = (Options__Handle *) 0 ; - GoString *argp1 ; - GoString *argp2 ; - GoString *argp3 ; - GoString *argp5 ; - GoString *argp6 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; - arg4 = (GoUint8)jarg4; - argp5 = (GoString *)jarg5; - if (!argp5) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg5 = *argp5; - argp6 = (GoString *)jarg6; - if (!argp6) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg6 = *argp6; - arg7 = (GoUint64)jarg7; - arg8 = (Options__Handle *)jarg8; - result = (GoUint32)SKY_wallet_CreateOptionsHandle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_AddPrivateKey(void * jarg1, void * jarg2) { - unsigned int jresult ; - Wallet__Handle arg1 ; - GoString arg2 ; - GoString *argp2 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_cli_AddPrivateKey(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_AddPrivateKeyToFile(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - GoString arg1 ; - GoString arg2 ; - PasswordReader__Handle arg3 ; - GoString *argp1 ; - GoString *argp2 ; - PasswordReader__Handle *argp3 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - argp3 = (PasswordReader__Handle *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null PasswordReader__Handle", 0); - return 0; - } - arg3 = *argp3; - result = (GoUint32)SKY_cli_AddPrivateKeyToFile(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_GenerateKeyPair(void * jarg1, void * jarg2) { - unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint32 result; - - arg1 = (coin__UxArray *)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1_GenerateKeyPair(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_PubkeyFromSeckey(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1_PubkeyFromSeckey(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_UncompressPubkey(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1_UncompressPubkey(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_UncompressedPubkeyFromSeckey(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1_UncompressedPubkeyFromSeckey(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_Secp256k1Hash(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1_Secp256k1Hash(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_GenerateDeterministicKeyPair(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_secp256k1_GenerateDeterministicKeyPair(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_DeterministicKeyPairIterator(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { - unsigned int jresult ; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - arg3 = (coin__UxArray *)jarg3; - arg4 = (coin__UxArray *)jarg4; - result = (GoUint32)SKY_secp256k1_DeterministicKeyPairIterator(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_Sign(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_secp256k1_Sign(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_SignDeterministic(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { - unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - GoSlice arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; - GoSlice *argp3 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoSlice *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg3 = *argp3; - arg4 = (coin__UxArray *)jarg4; - result = (GoUint32)SKY_secp256k1_SignDeterministic(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_VerifySeckey(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_secp256k1_VerifySeckey(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_VerifyPubkey(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_secp256k1_VerifyPubkey(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_VerifySignatureValidity(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_secp256k1_VerifySignatureValidity(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_VerifySignature(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { - unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - GoSlice arg3 ; - GoInt *arg4 = (GoInt *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; - GoSlice *argp3 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoSlice *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg3 = *argp3; - arg4 = (GoInt *)jarg4; - result = (GoUint32)SKY_secp256k1_VerifySignature(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_SignatureErrorString(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { - unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - GoSlice arg3 ; - GoString_ *arg4 = (GoString_ *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; - GoSlice *argp3 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoSlice *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg3 = *argp3; - arg4 = (GoString_ *)jarg4; - result = (GoUint32)SKY_secp256k1_SignatureErrorString(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_RecoverPubkey(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_secp256k1_RecoverPubkey(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_ECDH(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_secp256k1_ECDH(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_apputil_CatchInterruptPanic() { - unsigned int jresult ; - GoUint32 result; - - result = (GoUint32)SKY_apputil_CatchInterruptPanic(); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_apputil_CatchDebug() { - unsigned int jresult ; - GoUint32 result; - - result = (GoUint32)SKY_apputil_CatchDebug(); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_apputil_PrintProgramStatus() { - unsigned int jresult ; - GoUint32 result; - - result = (GoUint32)SKY_apputil_PrintProgramStatus(); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cert_CreateCertIfNotExists(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { - unsigned int jresult ; - GoString arg1 ; - GoString arg2 ; - GoString arg3 ; - GoString arg4 ; - GoString *argp1 ; - GoString *argp2 ; - GoString *argp3 ; - GoString *argp4 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; - argp4 = (GoString *)jarg4; - if (!argp4) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg4 = *argp4; - result = (GoUint32)SKY_cert_CreateCertIfNotExists(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_VerifyTransactionFee(void * jarg1, unsigned long long jarg2) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoUint64 arg2 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoUint64)jarg2; - result = (GoUint32)SKY_fee_VerifyTransactionFee(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_VerifyTransactionFeeForHours(unsigned long long jarg1, unsigned long long jarg2) { - unsigned int jresult ; - GoUint64 arg1 ; - GoUint64 arg2 ; - GoUint32 result; - - arg1 = (GoUint64)jarg1; - arg2 = (GoUint64)jarg2; - result = (GoUint32)SKY_fee_VerifyTransactionFeeForHours(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_RequiredFee(unsigned long long jarg1, void * jarg2) { - unsigned int jresult ; - GoUint64 arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint32 result; - - arg1 = (GoUint64)jarg1; - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_fee_RequiredFee(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_RemainingHours(unsigned long long jarg1, void * jarg2) { - unsigned int jresult ; - GoUint64 arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint32 result; - - arg1 = (GoUint64)jarg1; - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_fee_RemainingHours(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_TransactionFee(void * jarg1, unsigned long long jarg2, void * jarg3, void * jarg4) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoUint64 arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoUint64 *arg4 = (GoUint64 *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoUint64)jarg2; - arg3 = (coin__UxArray *)jarg3; - arg4 = (GoUint64 *)jarg4; - result = (GoUint32)SKY_fee_TransactionFee(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_LoadConfig(void * jarg1) { - unsigned int jresult ; - Config__Handle *arg1 = (Config__Handle *) 0 ; - GoUint32 result; - - arg1 = (Config__Handle *)jarg1; - result = (GoUint32)SKY_cli_LoadConfig(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_FullWalletPath(void * jarg1, void * jarg2) { - unsigned int jresult ; - Config__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cli_Config_FullWalletPath(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_FullDBPath(void * jarg1, void * jarg2) { - unsigned int jresult ; - Config__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cli_Config_FullDBPath(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_NewApp(void * jarg1, void * jarg2) { - unsigned int jresult ; - Config__Handle arg1 ; - App__Handle *arg2 = (App__Handle *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (App__Handle *)jarg2; - result = (GoUint32)SKY_cli_NewApp(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_RPCClientFromContext(void * jarg1, void * jarg2) { - unsigned int jresult ; - Context__Handle arg1 ; - WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (WebRpcClient__Handle *)jarg2; - result = (GoUint32)SKY_cli_RPCClientFromContext(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_ConfigFromContext(void * jarg1, void * jarg2) { - unsigned int jresult ; - Context__Handle arg1 ; - Config__Handle *arg2 = (Config__Handle *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (Config__Handle *)jarg2; - result = (GoUint32)SKY_cli_ConfigFromContext(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_PasswordFromBytes_Password(void * jarg1, void * jarg2) { - unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint32 result; - - arg1 = (coin__UxArray *)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_cli_PasswordFromBytes_Password(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_PasswordFromTerm_Password(void * jarg1) { - unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoUint32 result; - - arg1 = (coin__UxArray *)jarg1; - result = (GoUint32)SKY_cli_PasswordFromTerm_Password(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromWallet(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) { - unsigned int jresult ; - WebRpcClient__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - GoSlice arg4 ; - PasswordReader__Handle arg5 ; - Transaction__Handle *arg6 = (Transaction__Handle *) 0 ; - GoString *argp2 ; - GoString *argp3 ; - GoSlice *argp4 ; - PasswordReader__Handle *argp5 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; - argp4 = (GoSlice *)jarg4; - if (!argp4) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg4 = *argp4; - argp5 = (PasswordReader__Handle *)jarg5; - if (!argp5) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null PasswordReader__Handle", 0); - return 0; - } - arg5 = *argp5; - arg6 = (Transaction__Handle *)jarg6; - result = (GoUint32)SKY_cli_CreateRawTxFromWallet(arg1,arg2,arg3,arg4,arg5,arg6); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromAddress(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6, void * jarg7) { - unsigned int jresult ; - WebRpcClient__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - GoString arg4 ; - GoSlice arg5 ; - PasswordReader__Handle arg6 ; - Transaction__Handle *arg7 = (Transaction__Handle *) 0 ; - GoString *argp2 ; - GoString *argp3 ; - GoString *argp4 ; - GoSlice *argp5 ; - PasswordReader__Handle *argp6 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; - argp4 = (GoString *)jarg4; - if (!argp4) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg4 = *argp4; - argp5 = (GoSlice *)jarg5; - if (!argp5) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg5 = *argp5; - argp6 = (PasswordReader__Handle *)jarg6; - if (!argp6) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null PasswordReader__Handle", 0); - return 0; - } - arg6 = *argp6; - arg7 = (Transaction__Handle *)jarg7; - result = (GoUint32)SKY_cli_CreateRawTxFromAddress(arg1,arg2,arg3,arg4,arg5,arg6,arg7); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTx(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6, void * jarg7) { - unsigned int jresult ; - WebRpcClient__Handle arg1 ; - Wallet__Handle arg2 ; - GoSlice arg3 ; - GoString arg4 ; - GoSlice arg5 ; - GoSlice arg6 ; - Transaction__Handle *arg7 = (Transaction__Handle *) 0 ; - GoSlice *argp3 ; - GoString *argp4 ; - GoSlice *argp5 ; - GoSlice *argp6 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - { - SWIG_AsVal_long(jarg2, (long*)&arg2); - } - argp3 = (GoSlice *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg3 = *argp3; - argp4 = (GoString *)jarg4; - if (!argp4) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg4 = *argp4; - argp5 = (GoSlice *)jarg5; - if (!argp5) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg5 = *argp5; - argp6 = (GoSlice *)jarg6; - if (!argp6) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg6 = *argp6; - arg7 = (Transaction__Handle *)jarg7; - result = (GoUint32)SKY_cli_CreateRawTx(arg1,arg2,arg3,arg4,arg5,arg6,arg7); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_NewTransaction(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { - unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - GoSlice arg3 ; - Transaction__Handle *arg4 = (Transaction__Handle *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; - GoSlice *argp3 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoSlice *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg3 = *argp3; - arg4 = (Transaction__Handle *)jarg4; - result = (GoUint32)SKY_cli_NewTransaction(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_InitDataDir(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_file_InitDataDir(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_UserHome(void * jarg1) { - unsigned int jresult ; - GoString_ *arg1 = (GoString_ *) 0 ; - GoUint32 result; - - arg1 = (GoString_ *)jarg1; - result = (GoUint32)SKY_file_UserHome(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_ResolveResourceDirectory(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_file_ResolveResourceDirectory(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_DetermineResourcePath(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { - unsigned int jresult ; - GoString arg1 ; - GoString arg2 ; - GoString arg3 ; - GoString_ *arg4 = (GoString_ *) 0 ; - GoString *argp1 ; - GoString *argp2 ; - GoString *argp3 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; - arg4 = (GoString_ *)jarg4; - result = (GoUint32)SKY_file_DetermineResourcePath(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetWalletOutputsFromFile(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - WebRpcClient__Handle arg1 ; - GoString arg2 ; - ReadableOutputSet__Handle *arg3 = (ReadableOutputSet__Handle *) 0 ; - GoString *argp2 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - arg3 = (ReadableOutputSet__Handle *)jarg3; - result = (GoUint32)SKY_cli_GetWalletOutputsFromFile(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetWalletOutputs(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - WebRpcClient__Handle arg1 ; - Wallet__Handle *arg2 = (Wallet__Handle *) 0 ; - ReadableOutputSet__Handle *arg3 = (ReadableOutputSet__Handle *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (Wallet__Handle *)jarg2; - arg3 = (ReadableOutputSet__Handle *)jarg3; - result = (GoUint32)SKY_cli_GetWalletOutputs(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_testutil_MakeAddress(void * jarg1) { - unsigned int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - GoUint32 result; - - arg1 = (cipher__Address *)jarg1; - result = (GoUint32)SKY_testutil_MakeAddress(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_String(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_secp256k1go_Field_String(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Print(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoString arg2 ; - GoString *argp2 ; - GoUint32 result; - - arg1 = (secp256k1go__Field *)jarg1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_secp256k1go_Field_Print(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetB32(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoSlice arg2 ; - GoSlice *argp2 ; - GoUint32 result; - - arg1 = (secp256k1go__Field *)jarg1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_secp256k1go_Field_SetB32(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetBytes(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoSlice arg2 ; - GoSlice *argp2 ; - GoUint32 result; - - arg1 = (secp256k1go__Field *)jarg1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_secp256k1go_Field_SetBytes(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetHex(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoString arg2 ; - GoString *argp2 ; - GoUint32 result; - - arg1 = (secp256k1go__Field *)jarg1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_secp256k1go_Field_SetHex(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_IsOdd(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoUint32 result; - - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_secp256k1go_Field_IsOdd(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_IsZero(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoUint32 result; - - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_secp256k1go_Field_IsZero(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetInt(void * jarg1, unsigned int jarg2) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoUint32 arg2 ; - GoUint32 result; - - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (GoUint32)jarg2; - result = (GoUint32)SKY_secp256k1go_Field_SetInt(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Normalize(void * jarg1) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoUint32 result; - - arg1 = (secp256k1go__Field *)jarg1; - result = (GoUint32)SKY_secp256k1go_Field_Normalize(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_GetB32(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoSlice arg2 ; - GoSlice *argp2 ; - GoUint32 result; - - arg1 = (secp256k1go__Field *)jarg1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_secp256k1go_Field_GetB32(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Equals(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - GoUint8 *arg3 = (GoUint8 *) 0 ; - GoUint32 result; - - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - arg3 = (GoUint8 *)jarg3; - result = (GoUint32)SKY_secp256k1go_Field_Equals(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetAdd(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - GoUint32 result; - - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - result = (GoUint32)SKY_secp256k1go_Field_SetAdd(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_MulInt(void * jarg1, unsigned int jarg2) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoUint32 arg2 ; - GoUint32 result; - - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (GoUint32)jarg2; - result = (GoUint32)SKY_secp256k1go_Field_MulInt(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Negate(void * jarg1, void * jarg2, unsigned int jarg3) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - GoUint32 arg3 ; - GoUint32 result; - - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - arg3 = (GoUint32)jarg3; - result = (GoUint32)SKY_secp256k1go_Field_Negate(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Inv(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - GoUint32 result; - - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - result = (GoUint32)SKY_secp256k1go_Field_Inv(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Sqrt(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - GoUint32 result; - - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - result = (GoUint32)SKY_secp256k1go_Field_Sqrt(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_InvVar(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - GoUint32 result; - - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - result = (GoUint32)SKY_secp256k1go_Field_InvVar(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Mul(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg3 = (secp256k1go__Field *) 0 ; - GoUint32 result; - - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - arg3 = (secp256k1go__Field *)jarg3; - result = (GoUint32)SKY_secp256k1go_Field_Mul(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Sqr(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - GoUint32 result; - - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - result = (GoUint32)SKY_secp256k1go_Field_Sqr(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_scrypt_Key(void * jarg1, void * jarg2, long long jarg3, long long jarg4, long long jarg5, long long jarg6, void * jarg7) { - unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - GoInt arg3 ; - GoInt arg4 ; - GoInt arg5 ; - GoInt arg6 ; - coin__UxArray *arg7 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (GoInt)jarg3; - arg4 = (GoInt)jarg4; - arg5 = (GoInt)jarg5; - arg6 = (GoInt)jarg6; - arg7 = (coin__UxArray *)jarg7; - result = (GoUint32)SKY_scrypt_Key(arg1,arg2,arg3,arg4,arg5,arg6,arg7); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Ripemd160_Set(void * jarg1, void * jarg2) { - unsigned int jresult ; - cipher__Ripemd160 *arg1 = (cipher__Ripemd160 *) 0 ; - GoSlice arg2 ; - GoSlice *argp2 ; - GoUint32 result; - - arg1 = (cipher__Ripemd160 *)jarg1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_cipher_Ripemd160_Set((GoUint8_ (*)[20])arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_HashRipemd160(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - cipher__Ripemd160 *arg2 = (cipher__Ripemd160 *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher__Ripemd160 *)jarg2; - result = (GoUint32)SKY_cipher_HashRipemd160(arg1,(GoUint8_ (*)[20])arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Set(void * jarg1, void * jarg2) { - unsigned int jresult ; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; - GoSlice arg2 ; - GoSlice *argp2 ; - GoUint32 result; - - arg1 = (cipher__SHA256 *)jarg1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_cipher_SHA256_Set((GoUint8_ (*)[32])arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Hex(void * jarg1, void * jarg2) { - unsigned int jresult ; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - arg1 = (cipher__SHA256 *)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cipher_SHA256_Hex((GoUint8_ (*)[32])arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Xor(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - GoUint32 result; - - arg1 = (cipher__SHA256 *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - arg3 = (cipher__SHA256 *)jarg3; - result = (GoUint32)SKY_cipher_SHA256_Xor((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[32])arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SumSHA256(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_cipher_SumSHA256(arg1,(GoUint8_ (*)[32])arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256FromHex(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_cipher_SHA256FromHex(arg1,(GoUint8_ (*)[32])arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DoubleSHA256(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_cipher_DoubleSHA256(arg1,(GoUint8_ (*)[32])arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddSHA256(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - GoUint32 result; - - arg1 = (cipher__SHA256 *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - arg3 = (cipher__SHA256 *)jarg3; - result = (GoUint32)SKY_cipher_AddSHA256((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[32])arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Merkle(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice *arg1 = (GoSlice *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoUint32 result; - - arg1 = (GoSlice *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_cipher_Merkle(arg1,(GoUint8_ (*)[32])arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Null(void * jarg1, void * jarg2) { - unsigned int jresult ; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoUint32 result; - - arg1 = (cipher__SHA256 *)jarg1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_cipher_SHA256_Null((GoUint8_ (*)[32])arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Create_Transaction(void * jarg1) { - unsigned int jresult ; - Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; - GoUint32 result; - - arg1 = (Transaction__Handle *)jarg1; - result = (GoUint32)SKY_coin_Create_Transaction(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Copy(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transaction__Handle arg1 ; - Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (Transaction__Handle *)jarg2; - result = (GoUint32)SKY_coin_Transaction_Copy(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetTransactionObject(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transaction__Handle arg1 ; - coin__Transaction **arg2 = (coin__Transaction **) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (coin__Transaction **)jarg2; - result = (GoUint32)SKY_coin_GetTransactionObject(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_ResetInputs(void * jarg1, long long jarg2) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoInt arg2 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoInt)jarg2; - result = (GoUint32)SKY_coin_Transaction_ResetInputs(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetInputsCount(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_coin_Transaction_GetInputsCount(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetInputAt(void * jarg1, long long jarg2, void * jarg3) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoInt arg2 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoInt)jarg2; - arg3 = (cipher__SHA256 *)jarg3; - result = (GoUint32)SKY_coin_Transaction_GetInputAt(arg1,arg2,(GoUint8_ (*)[32])arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SetInputAt(void * jarg1, long long jarg2, void * jarg3) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoInt arg2 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoInt)jarg2; - arg3 = (cipher__SHA256 *)jarg3; - result = (GoUint32)SKY_coin_Transaction_SetInputAt(arg1,arg2,(GoUint8_ (*)[32])arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetOutputsCount(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_coin_Transaction_GetOutputsCount(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetOutputAt(void * jarg1, long long jarg2, void * jarg3) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoInt arg2 ; - coin__TransactionOutput *arg3 = (coin__TransactionOutput *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoInt)jarg2; - arg3 = (coin__TransactionOutput *)jarg3; - result = (GoUint32)SKY_coin_Transaction_GetOutputAt(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SetOutputAt(void * jarg1, long long jarg2, void * jarg3) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoInt arg2 ; - coin__TransactionOutput *arg3 = (coin__TransactionOutput *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoInt)jarg2; - arg3 = (coin__TransactionOutput *)jarg3; - result = (GoUint32)SKY_coin_Transaction_SetOutputAt(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetSignaturesCount(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_coin_Transaction_GetSignaturesCount(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetSignatureAt(void * jarg1, long long jarg2, void * jarg3) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoInt arg2 ; - cipher__Sig *arg3 = (cipher__Sig *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoInt)jarg2; - arg3 = (cipher__Sig *)jarg3; - result = (GoUint32)SKY_coin_Transaction_GetSignatureAt(arg1,arg2,(GoUint8_ (*)[65])arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SetSignatureAt(void * jarg1, long long jarg2, void * jarg3) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoInt arg2 ; - cipher__Sig *arg3 = (cipher__Sig *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoInt)jarg2; - arg3 = (cipher__Sig *)jarg3; - result = (GoUint32)SKY_coin_Transaction_SetSignatureAt(arg1,arg2,(GoUint8_ (*)[65])arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_PushSignature(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transaction__Handle arg1 ; - cipher__Sig *arg2 = (cipher__Sig *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (cipher__Sig *)jarg2; - result = (GoUint32)SKY_coin_Transaction_PushSignature(arg1,(GoUint8_ (*)[65])arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_ResetOutputs(void * jarg1, long long jarg2) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoInt arg2 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoInt)jarg2; - result = (GoUint32)SKY_coin_Transaction_ResetOutputs(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_ResetSignatures(void * jarg1, long long jarg2) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoInt arg2 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoInt)jarg2; - result = (GoUint32)SKY_coin_Transaction_ResetSignatures(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Verify(void * jarg1) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - result = (GoUint32)SKY_coin_Transaction_Verify(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_VerifyInput(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transaction__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_coin_Transaction_VerifyInput(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_PushInput(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - Transaction__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoUint16 *arg3 = (GoUint16 *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (cipher__SHA256 *)jarg2; - arg3 = (GoUint16 *)jarg3; - result = (GoUint32)SKY_coin_Transaction_PushInput(arg1,(GoUint8_ (*)[32])arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_TransactionOutput_UxID(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - GoUint32 result; - - arg1 = (coin__TransactionOutput *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - arg3 = (cipher__SHA256 *)jarg3; - result = (GoUint32)SKY_coin_TransactionOutput_UxID(arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[32])arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_PushOutput(void * jarg1, void * jarg2, unsigned long long jarg3, unsigned long long jarg4) { - unsigned int jresult ; - Transaction__Handle arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - GoUint64 arg3 ; - GoUint64 arg4 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (cipher__Address *)jarg2; - arg3 = (GoUint64)jarg3; - arg4 = (GoUint64)jarg4; - result = (GoUint32)SKY_coin_Transaction_PushOutput(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SignInputs(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoSlice arg2 ; - GoSlice *argp2 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_coin_Transaction_SignInputs(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Size(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_coin_Transaction_Size(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Hash(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transaction__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_coin_Transaction_Hash(arg1,(GoUint8_ (*)[32])arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SizeHash(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoInt *)jarg2; - arg3 = (cipher__SHA256 *)jarg3; - result = (GoUint32)SKY_coin_Transaction_SizeHash(arg1,arg2,(GoUint8_ (*)[32])arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_TxID(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transaction__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_coin_Transaction_TxID(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_TxIDHex(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_coin_Transaction_TxIDHex(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_UpdateHeader(void * jarg1) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - result = (GoUint32)SKY_coin_Transaction_UpdateHeader(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_HashInner(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transaction__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_coin_Transaction_HashInner(arg1,(GoUint8_ (*)[32])arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Serialize(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transaction__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_coin_Transaction_Serialize(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_TransactionDeserialize(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (Transaction__Handle *)jarg2; - result = (GoUint32)SKY_coin_TransactionDeserialize(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_OutputHours(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_coin_Transaction_OutputHours(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Create_Transactions(void * jarg1) { - unsigned int jresult ; - Transactions__Handle *arg1 = (Transactions__Handle *) 0 ; - GoUint32 result; - - arg1 = (Transactions__Handle *)jarg1; - result = (GoUint32)SKY_coin_Create_Transactions(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetTransactionsObject(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transactions__Handle arg1 ; - coin__UxArray **arg2 = (coin__UxArray **) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (coin__UxArray **)jarg2; - result = (GoUint32)SKY_coin_GetTransactionsObject(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Length(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transactions__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_coin_Transactions_Length(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Add(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transactions__Handle arg1 ; - Transaction__Handle arg2 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - { - SWIG_AsVal_long(jarg2, (long*)&arg2); - } - result = (GoUint32)SKY_coin_Transactions_Add(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Fees(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - Transactions__Handle arg1 ; - FeeCalculator *arg2 = (FeeCalculator *) 0 ; - GoUint64 *arg3 = (GoUint64 *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (FeeCalculator *)jarg2; - arg3 = (GoUint64 *)jarg3; - result = (GoUint32)SKY_coin_Transactions_Fees(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_GetAt(void * jarg1, long long jarg2, void * jarg3) { - unsigned int jresult ; - Transactions__Handle arg1 ; - GoInt arg2 ; - Transaction__Handle *arg3 = (Transaction__Handle *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoInt)jarg2; - arg3 = (Transaction__Handle *)jarg3; - result = (GoUint32)SKY_coin_Transactions_GetAt(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Hashes(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transactions__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_coin_Transactions_Hashes(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Size(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transactions__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_coin_Transactions_Size(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_TruncateBytesTo(void * jarg1, long long jarg2, void * jarg3) { - unsigned int jresult ; - Transactions__Handle arg1 ; - GoInt arg2 ; - Transactions__Handle *arg3 = (Transactions__Handle *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoInt)jarg2; - arg3 = (Transactions__Handle *)jarg3; - result = (GoUint32)SKY_coin_Transactions_TruncateBytesTo(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortTransactions(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - Transactions__Handle arg1 ; - FeeCalculator *arg2 = (FeeCalculator *) 0 ; - Transactions__Handle *arg3 = (Transactions__Handle *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (FeeCalculator *)jarg2; - arg3 = (Transactions__Handle *)jarg3; - result = (GoUint32)SKY_coin_SortTransactions(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewSortableTransactions(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - Transactions__Handle arg1 ; - FeeCalculator *arg2 = (FeeCalculator *) 0 ; - SortableTransactionResult_Handle *arg3 = (SortableTransactionResult_Handle *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (FeeCalculator *)jarg2; - arg3 = (SortableTransactionResult_Handle *)jarg3; - result = (GoUint32)SKY_coin_NewSortableTransactions(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortableTransactions_Sort(void * jarg1) { - unsigned int jresult ; - SortableTransactionResult_Handle arg1 ; - SortableTransactionResult_Handle *argp1 ; - GoUint32 result; - - argp1 = (SortableTransactionResult_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null SortableTransactionResult_Handle", 0); - return 0; - } - arg1 = *argp1; - result = (GoUint32)SKY_coin_SortableTransactions_Sort(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortableTransactions_Len(void * jarg1, void * jarg2) { - unsigned int jresult ; - SortableTransactionResult_Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - SortableTransactionResult_Handle *argp1 ; - GoUint32 result; - - argp1 = (SortableTransactionResult_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null SortableTransactionResult_Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_coin_SortableTransactions_Len(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortableTransactions_Less(void * jarg1, long long jarg2, long long jarg3, void * jarg4) { - unsigned int jresult ; - SortableTransactionResult_Handle arg1 ; - GoInt arg2 ; - GoInt arg3 ; - GoUint8 *arg4 = (GoUint8 *) 0 ; - SortableTransactionResult_Handle *argp1 ; - GoUint32 result; - - argp1 = (SortableTransactionResult_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null SortableTransactionResult_Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoInt)jarg2; - arg3 = (GoInt)jarg3; - arg4 = (GoUint8 *)jarg4; - result = (GoUint32)SKY_coin_SortableTransactions_Less(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortableTransactions_Swap(void * jarg1, long long jarg2, long long jarg3) { - unsigned int jresult ; - SortableTransactionResult_Handle arg1 ; - GoInt arg2 ; - GoInt arg3 ; - SortableTransactionResult_Handle *argp1 ; - GoUint32 result; - - argp1 = (SortableTransactionResult_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null SortableTransactionResult_Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoInt)jarg2; - arg3 = (GoInt)jarg3; - result = (GoUint32)SKY_coin_SortableTransactions_Swap(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_VerifyTransactionCoinsSpending(void * jarg1, void * jarg2) { - unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint32 result; - - arg1 = (coin__UxArray *)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_coin_VerifyTransactionCoinsSpending(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_VerifyTransactionHoursSpending(unsigned long long jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - GoUint64 arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoUint32 result; - - arg1 = (GoUint64)jarg1; - arg2 = (coin__UxArray *)jarg2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_coin_VerifyTransactionHoursSpending(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher__Address_isEqual(void * jarg1, void * jarg2) { - int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - int result; - - arg1 = (cipher__Address *)jarg1; - arg2 = (cipher__Address *)jarg2; - result = (int)cipher__Address_isEqual(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher__Address_Version_set(void * jarg1, void * jarg2) { - cipher__Address *arg1 = (cipher__Address *) 0 ; - GoUint8_ arg2 ; - GoUint8_ *argp2 ; - - arg1 = (cipher__Address *)jarg1; - argp2 = (GoUint8_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint8_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Version = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher__Address_Version_get(void * jarg1) { - void * jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - GoUint8_ result; - - arg1 = (cipher__Address *)jarg1; - result = ((arg1)->Version); - { - GoUint8_ * resultptr = (GoUint8_ *) malloc(sizeof(GoUint8_)); - memmove(resultptr, &result, sizeof(GoUint8_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher__Address_Key_set(void * jarg1, void * jarg2) { - cipher__Address *arg1 = (cipher__Address *) 0 ; - GoUint8_ *arg2 ; - - arg1 = (cipher__Address *)jarg1; - arg2 = (GoUint8_ *)jarg2; - { - size_t ii; - GoUint8_ *b = (GoUint8_ *) arg1->Key; - for (ii = 0; ii < (size_t)20; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); - } -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher__Address_Key_get(void * jarg1) { - void * jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - GoUint8_ *result = 0 ; - - arg1 = (cipher__Address *)jarg1; - result = (GoUint8_ *) ((arg1)->Key); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher__Address() { - void * jresult ; - cipher__Address *result = 0 ; - - result = (cipher__Address *)calloc(1, sizeof(cipher__Address)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher__Address(void * jarg1) { - cipher__Address *arg1 = (cipher__Address *) 0 ; - - arg1 = (cipher__Address *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_encoder__StructField_Name_set(void * jarg1, void * jarg2) { - encoder__StructField *arg1 = (encoder__StructField *) 0 ; - GoString_ arg2 ; - GoString_ *argp2 ; - - arg1 = (encoder__StructField *)jarg1; - argp2 = (GoString_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Name = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_encoder__StructField_Name_get(void * jarg1) { - void * jresult ; - encoder__StructField *arg1 = (encoder__StructField *) 0 ; - GoString_ result; - - arg1 = (encoder__StructField *)jarg1; - result = ((arg1)->Name); - { - GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); - memmove(resultptr, &result, sizeof(GoString_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_encoder__StructField_Kind_set(void * jarg1, void * jarg2) { - encoder__StructField *arg1 = (encoder__StructField *) 0 ; - GoUint32_ arg2 ; - GoUint32_ *argp2 ; - - arg1 = (encoder__StructField *)jarg1; - argp2 = (GoUint32_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint32_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Kind = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_encoder__StructField_Kind_get(void * jarg1) { - void * jresult ; - encoder__StructField *arg1 = (encoder__StructField *) 0 ; - GoUint32_ result; - - arg1 = (encoder__StructField *)jarg1; - result = ((arg1)->Kind); - { - GoUint32_ * resultptr = (GoUint32_ *) malloc(sizeof(GoUint32_)); - memmove(resultptr, &result, sizeof(GoUint32_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_encoder__StructField_Type_set(void * jarg1, void * jarg2) { - encoder__StructField *arg1 = (encoder__StructField *) 0 ; - GoString_ arg2 ; - GoString_ *argp2 ; - - arg1 = (encoder__StructField *)jarg1; - argp2 = (GoString_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Type = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_encoder__StructField_Type_get(void * jarg1) { - void * jresult ; - encoder__StructField *arg1 = (encoder__StructField *) 0 ; - GoString_ result; - - arg1 = (encoder__StructField *)jarg1; - result = ((arg1)->Type); - { - GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); - memmove(resultptr, &result, sizeof(GoString_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_encoder__StructField_Tag_set(void * jarg1, void * jarg2) { - encoder__StructField *arg1 = (encoder__StructField *) 0 ; - GoString_ arg2 ; - GoString_ *argp2 ; - - arg1 = (encoder__StructField *)jarg1; - argp2 = (GoString_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Tag = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_encoder__StructField_Tag_get(void * jarg1) { - void * jresult ; - encoder__StructField *arg1 = (encoder__StructField *) 0 ; - GoString_ result; - - arg1 = (encoder__StructField *)jarg1; - result = ((arg1)->Tag); - { - GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); - memmove(resultptr, &result, sizeof(GoString_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_encoder__StructField() { - void * jresult ; - encoder__StructField *result = 0 ; - - result = (encoder__StructField *)calloc(1, sizeof(encoder__StructField)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_encoder__StructField(void * jarg1) { - encoder__StructField *arg1 = (encoder__StructField *) 0 ; - - arg1 = (encoder__StructField *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_encrypt__ScryptChacha20poly1305_N_set(void * jarg1, void * jarg2) { - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - GoInt_ arg2 ; - GoInt_ *argp2 ; - - arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; - argp2 = (GoInt_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->N = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_encrypt__ScryptChacha20poly1305_N_get(void * jarg1) { - void * jresult ; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - GoInt_ result; - - arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; - result = ((arg1)->N); - { - GoInt_ * resultptr = (GoInt_ *) malloc(sizeof(GoInt_)); - memmove(resultptr, &result, sizeof(GoInt_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_encrypt__ScryptChacha20poly1305_R_set(void * jarg1, void * jarg2) { - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - GoInt_ arg2 ; - GoInt_ *argp2 ; - - arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; - argp2 = (GoInt_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->R = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_encrypt__ScryptChacha20poly1305_R_get(void * jarg1) { - void * jresult ; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - GoInt_ result; - - arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; - result = ((arg1)->R); - { - GoInt_ * resultptr = (GoInt_ *) malloc(sizeof(GoInt_)); - memmove(resultptr, &result, sizeof(GoInt_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_encrypt__ScryptChacha20poly1305_P_set(void * jarg1, void * jarg2) { - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - GoInt_ arg2 ; - GoInt_ *argp2 ; - - arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; - argp2 = (GoInt_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->P = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_encrypt__ScryptChacha20poly1305_P_get(void * jarg1) { - void * jresult ; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - GoInt_ result; - - arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; - result = ((arg1)->P); - { - GoInt_ * resultptr = (GoInt_ *) malloc(sizeof(GoInt_)); - memmove(resultptr, &result, sizeof(GoInt_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_encrypt__ScryptChacha20poly1305_KeyLen_set(void * jarg1, void * jarg2) { - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - GoInt_ arg2 ; - GoInt_ *argp2 ; - - arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; - argp2 = (GoInt_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->KeyLen = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_encrypt__ScryptChacha20poly1305_KeyLen_get(void * jarg1) { - void * jresult ; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - GoInt_ result; - - arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; - result = ((arg1)->KeyLen); - { - GoInt_ * resultptr = (GoInt_ *) malloc(sizeof(GoInt_)); - memmove(resultptr, &result, sizeof(GoInt_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_encrypt__ScryptChacha20poly1305() { - void * jresult ; - encrypt__ScryptChacha20poly1305 *result = 0 ; - - result = (encrypt__ScryptChacha20poly1305 *)calloc(1, sizeof(encrypt__ScryptChacha20poly1305)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_encrypt__ScryptChacha20poly1305(void * jarg1) { - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - - arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_secp256k1go__Field_n_set(void * jarg1, void * jarg2) { - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoUint32_ *arg2 ; - - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (GoUint32_ *)jarg2; - { - size_t ii; - GoUint32_ *b = (GoUint32_ *) arg1->n; - for (ii = 0; ii < (size_t)10; ii++) b[ii] = *((GoUint32_ *) arg2 + ii); - } -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_secp256k1go__Field_n_get(void * jarg1) { - void * jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoUint32_ *result = 0 ; - - arg1 = (secp256k1go__Field *)jarg1; - result = (GoUint32_ *)(GoUint32_ *) ((arg1)->n); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_secp256k1go__Field() { - void * jresult ; - secp256k1go__Field *result = 0 ; - - result = (secp256k1go__Field *)calloc(1, sizeof(secp256k1go__Field)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_secp256k1go__Field(void * jarg1) { - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - - arg1 = (secp256k1go__Field *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_secp256k1go__XY_X_set(void * jarg1, void * jarg2) { - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - - arg1 = (secp256k1go__XY *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - if (arg1) (arg1)->X = *arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_secp256k1go__XY_X_get(void * jarg1) { - void * jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - secp256k1go__Field *result = 0 ; - - arg1 = (secp256k1go__XY *)jarg1; - result = (secp256k1go__Field *)& ((arg1)->X); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_secp256k1go__XY_Y_set(void * jarg1, void * jarg2) { - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - - arg1 = (secp256k1go__XY *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - if (arg1) (arg1)->Y = *arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_secp256k1go__XY_Y_get(void * jarg1) { - void * jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - secp256k1go__Field *result = 0 ; - - arg1 = (secp256k1go__XY *)jarg1; - result = (secp256k1go__Field *)& ((arg1)->Y); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_secp256k1go__XY_Infinity_set(void * jarg1, void * jarg2) { - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - BOOL arg2 ; - BOOL *argp2 ; - - arg1 = (secp256k1go__XY *)jarg1; - argp2 = (BOOL *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null BOOL", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Infinity = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_secp256k1go__XY_Infinity_get(void * jarg1) { - void * jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - BOOL result; - - arg1 = (secp256k1go__XY *)jarg1; - result = ((arg1)->Infinity); - { - BOOL * resultptr = (BOOL *) malloc(sizeof(BOOL)); - memmove(resultptr, &result, sizeof(BOOL)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_secp256k1go__XY() { - void * jresult ; - secp256k1go__XY *result = 0 ; - - result = (secp256k1go__XY *)calloc(1, sizeof(secp256k1go__XY)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_secp256k1go__XY(void * jarg1) { - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - - arg1 = (secp256k1go__XY *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_secp256k1go__XYZ_X_set(void * jarg1, void * jarg2) { - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - - arg1 = (secp256k1go__XYZ *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - if (arg1) (arg1)->X = *arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_secp256k1go__XYZ_X_get(void * jarg1) { - void * jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__Field *result = 0 ; - - arg1 = (secp256k1go__XYZ *)jarg1; - result = (secp256k1go__Field *)& ((arg1)->X); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_secp256k1go__XYZ_Y_set(void * jarg1, void * jarg2) { - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - - arg1 = (secp256k1go__XYZ *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - if (arg1) (arg1)->Y = *arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_secp256k1go__XYZ_Y_get(void * jarg1) { - void * jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__Field *result = 0 ; - - arg1 = (secp256k1go__XYZ *)jarg1; - result = (secp256k1go__Field *)& ((arg1)->Y); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_secp256k1go__XYZ_Z_set(void * jarg1, void * jarg2) { - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - - arg1 = (secp256k1go__XYZ *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - if (arg1) (arg1)->Z = *arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_secp256k1go__XYZ_Z_get(void * jarg1) { - void * jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__Field *result = 0 ; - - arg1 = (secp256k1go__XYZ *)jarg1; - result = (secp256k1go__Field *)& ((arg1)->Z); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_secp256k1go__XYZ_Infinity_set(void * jarg1, void * jarg2) { - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - BOOL arg2 ; - BOOL *argp2 ; - - arg1 = (secp256k1go__XYZ *)jarg1; - argp2 = (BOOL *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null BOOL", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Infinity = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_secp256k1go__XYZ_Infinity_get(void * jarg1) { - void * jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - BOOL result; - - arg1 = (secp256k1go__XYZ *)jarg1; - result = ((arg1)->Infinity); - { - BOOL * resultptr = (BOOL *) malloc(sizeof(BOOL)); - memmove(resultptr, &result, sizeof(BOOL)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_secp256k1go__XYZ() { - void * jresult ; - secp256k1go__XYZ *result = 0 ; - - result = (secp256k1go__XYZ *)calloc(1, sizeof(secp256k1go__XYZ)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_secp256k1go__XYZ(void * jarg1) { - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - - arg1 = (secp256k1go__XYZ *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__SortableTransactions_Txns_set(void * jarg1, void * jarg2) { - coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; - coin__Transactions arg2 ; - coin__Transactions *argp2 ; - - arg1 = (coin__SortableTransactions *)jarg1; - argp2 = (coin__Transactions *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null coin__Transactions", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Txns = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__SortableTransactions_Txns_get(void * jarg1) { - void * jresult ; - coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; - coin__Transactions result; - - arg1 = (coin__SortableTransactions *)jarg1; - result = ((arg1)->Txns); - { - coin__Transactions * resultptr = (coin__Transactions *) malloc(sizeof(coin__Transactions)); - memmove(resultptr, &result, sizeof(coin__Transactions)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__SortableTransactions_Fees_set(void * jarg1, void * jarg2) { - coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; - GoSlice_ arg2 ; - GoSlice_ *argp2 ; - - arg1 = (coin__SortableTransactions *)jarg1; - argp2 = (GoSlice_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Fees = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__SortableTransactions_Fees_get(void * jarg1) { - void * jresult ; - coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; - GoSlice_ result; - - arg1 = (coin__SortableTransactions *)jarg1; - result = ((arg1)->Fees); - { - GoSlice_ * resultptr = (GoSlice_ *) malloc(sizeof(GoSlice_)); - memmove(resultptr, &result, sizeof(GoSlice_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__SortableTransactions_Hashes_set(void * jarg1, void * jarg2) { - coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; - GoSlice_ arg2 ; - GoSlice_ *argp2 ; - - arg1 = (coin__SortableTransactions *)jarg1; - argp2 = (GoSlice_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Hashes = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__SortableTransactions_Hashes_get(void * jarg1) { - void * jresult ; - coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; - GoSlice_ result; - - arg1 = (coin__SortableTransactions *)jarg1; - result = ((arg1)->Hashes); - { - GoSlice_ * resultptr = (GoSlice_ *) malloc(sizeof(GoSlice_)); - memmove(resultptr, &result, sizeof(GoSlice_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__SortableTransactions() { - void * jresult ; - coin__SortableTransactions *result = 0 ; - - result = (coin__SortableTransactions *)calloc(1, sizeof(coin__SortableTransactions)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__SortableTransactions(void * jarg1) { - coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; - - arg1 = (coin__SortableTransactions *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__Transaction_isEqual(void * jarg1, void * jarg2) { - int jresult ; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - coin__Transaction *arg2 = (coin__Transaction *) 0 ; - int result; - - arg1 = (coin__Transaction *)jarg1; - arg2 = (coin__Transaction *)jarg2; - result = (int)coin__Transaction_isEqual(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__Transaction_Length_set(void * jarg1, void * jarg2) { - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - GoInt32_ arg2 ; - GoInt32_ *argp2 ; - - arg1 = (coin__Transaction *)jarg1; - argp2 = (GoInt32_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt32_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Length = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Transaction_Length_get(void * jarg1) { - void * jresult ; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - GoInt32_ result; - - arg1 = (coin__Transaction *)jarg1; - result = ((arg1)->Length); - { - GoInt32_ * resultptr = (GoInt32_ *) malloc(sizeof(GoInt32_)); - memmove(resultptr, &result, sizeof(GoInt32_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__Transaction_Type_set(void * jarg1, void * jarg2) { - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - GoInt8_ arg2 ; - GoInt8_ *argp2 ; - - arg1 = (coin__Transaction *)jarg1; - argp2 = (GoInt8_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt8_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Type = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Transaction_Type_get(void * jarg1) { - void * jresult ; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - GoInt8_ result; - - arg1 = (coin__Transaction *)jarg1; - result = ((arg1)->Type); - { - GoInt8_ * resultptr = (GoInt8_ *) malloc(sizeof(GoInt8_)); - memmove(resultptr, &result, sizeof(GoInt8_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__Transaction_InnerHash_set(void * jarg1, void * jarg2) { - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - GoUint8_ *arg2 ; - - arg1 = (coin__Transaction *)jarg1; - arg2 = (GoUint8_ *)jarg2; - { - size_t ii; - GoUint8_ *b = (GoUint8_ *) arg1->InnerHash; - for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); - } -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Transaction_InnerHash_get(void * jarg1) { - void * jresult ; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - GoUint8_ *result = 0 ; - - arg1 = (coin__Transaction *)jarg1; - result = (GoUint8_ *) ((arg1)->InnerHash); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__Transaction_Sigs_set(void * jarg1, void * jarg2) { - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - GoSlice_ arg2 ; - GoSlice_ *argp2 ; - - arg1 = (coin__Transaction *)jarg1; - argp2 = (GoSlice_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Sigs = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Transaction_Sigs_get(void * jarg1) { - void * jresult ; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - GoSlice_ result; - - arg1 = (coin__Transaction *)jarg1; - result = ((arg1)->Sigs); - { - GoSlice_ * resultptr = (GoSlice_ *) malloc(sizeof(GoSlice_)); - memmove(resultptr, &result, sizeof(GoSlice_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__Transaction_In_set(void * jarg1, void * jarg2) { - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - GoSlice_ arg2 ; - GoSlice_ *argp2 ; - - arg1 = (coin__Transaction *)jarg1; - argp2 = (GoSlice_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->In = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Transaction_In_get(void * jarg1) { - void * jresult ; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - GoSlice_ result; - - arg1 = (coin__Transaction *)jarg1; - result = ((arg1)->In); - { - GoSlice_ * resultptr = (GoSlice_ *) malloc(sizeof(GoSlice_)); - memmove(resultptr, &result, sizeof(GoSlice_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__Transaction_Out_set(void * jarg1, void * jarg2) { - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - GoSlice_ arg2 ; - GoSlice_ *argp2 ; - - arg1 = (coin__Transaction *)jarg1; - argp2 = (GoSlice_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Out = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Transaction_Out_get(void * jarg1) { - void * jresult ; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - GoSlice_ result; - - arg1 = (coin__Transaction *)jarg1; - result = ((arg1)->Out); - { - GoSlice_ * resultptr = (GoSlice_ *) malloc(sizeof(GoSlice_)); - memmove(resultptr, &result, sizeof(GoSlice_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__Transaction() { - void * jresult ; - coin__Transaction *result = 0 ; - - result = (coin__Transaction *)calloc(1, sizeof(coin__Transaction)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__Transaction(void * jarg1) { - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - - arg1 = (coin__Transaction *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__TransactionOutput_isEqual(void * jarg1, void * jarg2) { - int jresult ; - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - coin__TransactionOutput *arg2 = (coin__TransactionOutput *) 0 ; - int result; - - arg1 = (coin__TransactionOutput *)jarg1; - arg2 = (coin__TransactionOutput *)jarg2; - result = (int)coin__TransactionOutput_isEqual(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__TransactionOutput_Address_set(void * jarg1, void * jarg2) { - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - - arg1 = (coin__TransactionOutput *)jarg1; - arg2 = (cipher__Address *)jarg2; - if (arg1) (arg1)->Address = *arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__TransactionOutput_Address_get(void * jarg1) { - void * jresult ; - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - cipher__Address *result = 0 ; - - arg1 = (coin__TransactionOutput *)jarg1; - result = (cipher__Address *)& ((arg1)->Address); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__TransactionOutput_Coins_set(void * jarg1, void * jarg2) { - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - GoUint64_ arg2 ; - GoUint64_ *argp2 ; - - arg1 = (coin__TransactionOutput *)jarg1; - argp2 = (GoUint64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Coins = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__TransactionOutput_Coins_get(void * jarg1) { - void * jresult ; - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - GoUint64_ result; - - arg1 = (coin__TransactionOutput *)jarg1; - result = ((arg1)->Coins); - { - GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); - memmove(resultptr, &result, sizeof(GoUint64_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__TransactionOutput_Hours_set(void * jarg1, void * jarg2) { - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - GoUint64_ arg2 ; - GoUint64_ *argp2 ; - - arg1 = (coin__TransactionOutput *)jarg1; - argp2 = (GoUint64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Hours = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__TransactionOutput_Hours_get(void * jarg1) { - void * jresult ; - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - GoUint64_ result; - - arg1 = (coin__TransactionOutput *)jarg1; - result = ((arg1)->Hours); - { - GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); - memmove(resultptr, &result, sizeof(GoUint64_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__TransactionOutput() { - void * jresult ; - coin__TransactionOutput *result = 0 ; - - result = (coin__TransactionOutput *)calloc(1, sizeof(coin__TransactionOutput)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__TransactionOutput(void * jarg1) { - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - - arg1 = (coin__TransactionOutput *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_isEqual(void * jarg1, void * jarg2) { - int jresult ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - coin__BlockHeader *arg2 = (coin__BlockHeader *) 0 ; - int result; - - arg1 = (coin__BlockHeader *)jarg1; - arg2 = (coin__BlockHeader *)jarg2; - result = (int)coin__BlockHeader_isEqual(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_Version_set(void * jarg1, void * jarg2) { - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint32_ arg2 ; - GoUint32_ *argp2 ; - - arg1 = (coin__BlockHeader *)jarg1; - argp2 = (GoUint32_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint32_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Version = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_Version_get(void * jarg1) { - void * jresult ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint32_ result; - - arg1 = (coin__BlockHeader *)jarg1; - result = ((arg1)->Version); - { - GoUint32_ * resultptr = (GoUint32_ *) malloc(sizeof(GoUint32_)); - memmove(resultptr, &result, sizeof(GoUint32_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_Time_set(void * jarg1, void * jarg2) { - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint64_ arg2 ; - GoUint64_ *argp2 ; - - arg1 = (coin__BlockHeader *)jarg1; - argp2 = (GoUint64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Time = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_Time_get(void * jarg1) { - void * jresult ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint64_ result; - - arg1 = (coin__BlockHeader *)jarg1; - result = ((arg1)->Time); - { - GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); - memmove(resultptr, &result, sizeof(GoUint64_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_BkSeq_set(void * jarg1, void * jarg2) { - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint64_ arg2 ; - GoUint64_ *argp2 ; - - arg1 = (coin__BlockHeader *)jarg1; - argp2 = (GoUint64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->BkSeq = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_BkSeq_get(void * jarg1) { - void * jresult ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint64_ result; - - arg1 = (coin__BlockHeader *)jarg1; - result = ((arg1)->BkSeq); - { - GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); - memmove(resultptr, &result, sizeof(GoUint64_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_Fee_set(void * jarg1, void * jarg2) { - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint64_ arg2 ; - GoUint64_ *argp2 ; - - arg1 = (coin__BlockHeader *)jarg1; - argp2 = (GoUint64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Fee = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_Fee_get(void * jarg1) { - void * jresult ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint64_ result; - - arg1 = (coin__BlockHeader *)jarg1; - result = ((arg1)->Fee); - { - GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); - memmove(resultptr, &result, sizeof(GoUint64_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_PrevHash_set(void * jarg1, void * jarg2) { - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint8_ *arg2 ; - - arg1 = (coin__BlockHeader *)jarg1; - arg2 = (GoUint8_ *)jarg2; - { - size_t ii; - GoUint8_ *b = (GoUint8_ *) arg1->PrevHash; - for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); - } -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_PrevHash_get(void * jarg1) { - void * jresult ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint8_ *result = 0 ; - - arg1 = (coin__BlockHeader *)jarg1; - result = (GoUint8_ *) ((arg1)->PrevHash); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_BodyHash_set(void * jarg1, void * jarg2) { - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint8_ *arg2 ; - - arg1 = (coin__BlockHeader *)jarg1; - arg2 = (GoUint8_ *)jarg2; - { - size_t ii; - GoUint8_ *b = (GoUint8_ *) arg1->BodyHash; - for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); - } -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_BodyHash_get(void * jarg1) { - void * jresult ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint8_ *result = 0 ; - - arg1 = (coin__BlockHeader *)jarg1; - result = (GoUint8_ *) ((arg1)->BodyHash); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_UxHash_set(void * jarg1, void * jarg2) { - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint8_ *arg2 ; - - arg1 = (coin__BlockHeader *)jarg1; - arg2 = (GoUint8_ *)jarg2; - { - size_t ii; - GoUint8_ *b = (GoUint8_ *) arg1->UxHash; - for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); - } -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_UxHash_get(void * jarg1) { - void * jresult ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint8_ *result = 0 ; - - arg1 = (coin__BlockHeader *)jarg1; - result = (GoUint8_ *) ((arg1)->UxHash); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__BlockHeader() { - void * jresult ; - coin__BlockHeader *result = 0 ; - - result = (coin__BlockHeader *)calloc(1, sizeof(coin__BlockHeader)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__BlockHeader(void * jarg1) { - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - - arg1 = (coin__BlockHeader *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__BlockBody_isEqual(void * jarg1, void * jarg2) { - int jresult ; - coin__BlockBody *arg1 = (coin__BlockBody *) 0 ; - coin__BlockBody *arg2 = (coin__BlockBody *) 0 ; - int result; - - arg1 = (coin__BlockBody *)jarg1; - arg2 = (coin__BlockBody *)jarg2; - result = (int)coin__BlockBody_isEqual(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockBody_Transactions_set(void * jarg1, void * jarg2) { - coin__BlockBody *arg1 = (coin__BlockBody *) 0 ; - coin__Transactions arg2 ; - coin__Transactions *argp2 ; - - arg1 = (coin__BlockBody *)jarg1; - argp2 = (coin__Transactions *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null coin__Transactions", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Transactions = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__BlockBody_Transactions_get(void * jarg1) { - void * jresult ; - coin__BlockBody *arg1 = (coin__BlockBody *) 0 ; - coin__Transactions result; - - arg1 = (coin__BlockBody *)jarg1; - result = ((arg1)->Transactions); - { - coin__Transactions * resultptr = (coin__Transactions *) malloc(sizeof(coin__Transactions)); - memmove(resultptr, &result, sizeof(coin__Transactions)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__BlockBody() { - void * jresult ; - coin__BlockBody *result = 0 ; - - result = (coin__BlockBody *)calloc(1, sizeof(coin__BlockBody)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__BlockBody(void * jarg1) { - coin__BlockBody *arg1 = (coin__BlockBody *) 0 ; - - arg1 = (coin__BlockBody *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__Block_Head_set(void * jarg1, void * jarg2) { - coin__Block *arg1 = (coin__Block *) 0 ; - coin__BlockHeader *arg2 = (coin__BlockHeader *) 0 ; - - arg1 = (coin__Block *)jarg1; - arg2 = (coin__BlockHeader *)jarg2; - if (arg1) (arg1)->Head = *arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Block_Head_get(void * jarg1) { - void * jresult ; - coin__Block *arg1 = (coin__Block *) 0 ; - coin__BlockHeader *result = 0 ; - - arg1 = (coin__Block *)jarg1; - result = (coin__BlockHeader *)& ((arg1)->Head); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__Block_Body_set(void * jarg1, void * jarg2) { - coin__Block *arg1 = (coin__Block *) 0 ; - coin__BlockBody *arg2 = (coin__BlockBody *) 0 ; - - arg1 = (coin__Block *)jarg1; - arg2 = (coin__BlockBody *)jarg2; - if (arg1) (arg1)->Body = *arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Block_Body_get(void * jarg1) { - void * jresult ; - coin__Block *arg1 = (coin__Block *) 0 ; - coin__BlockBody *result = 0 ; - - arg1 = (coin__Block *)jarg1; - result = (coin__BlockBody *)& ((arg1)->Body); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__Block() { - void * jresult ; - coin__Block *result = 0 ; - - result = (coin__Block *)calloc(1, sizeof(coin__Block)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__Block(void * jarg1) { - coin__Block *arg1 = (coin__Block *) 0 ; - - arg1 = (coin__Block *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__SignedBlock__unnamed_set(void * jarg1, void * jarg2) { - coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; - coin__Block *arg2 = (coin__Block *) 0 ; - - arg1 = (coin__SignedBlock *)jarg1; - arg2 = (coin__Block *)jarg2; - if (arg1) (arg1)->_unnamed = *arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__SignedBlock__unnamed_get(void * jarg1) { - void * jresult ; - coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; - coin__Block *result = 0 ; - - arg1 = (coin__SignedBlock *)jarg1; - result = (coin__Block *)& ((arg1)->_unnamed); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__SignedBlock_Sig_set(void * jarg1, void * jarg2) { - coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; - GoUint8_ *arg2 ; - - arg1 = (coin__SignedBlock *)jarg1; - arg2 = (GoUint8_ *)jarg2; - { - size_t ii; - GoUint8_ *b = (GoUint8_ *) arg1->Sig; - for (ii = 0; ii < (size_t)65; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); - } -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__SignedBlock_Sig_get(void * jarg1) { - void * jresult ; - coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; - GoUint8_ *result = 0 ; - - arg1 = (coin__SignedBlock *)jarg1; - result = (GoUint8_ *) ((arg1)->Sig); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__SignedBlock() { - void * jresult ; - coin__SignedBlock *result = 0 ; - - result = (coin__SignedBlock *)calloc(1, sizeof(coin__SignedBlock)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__SignedBlock(void * jarg1) { - coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; - - arg1 = (coin__SignedBlock *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__UxHead_Time_set(void * jarg1, void * jarg2) { - coin__UxHead *arg1 = (coin__UxHead *) 0 ; - GoUint64_ arg2 ; - GoUint64_ *argp2 ; - - arg1 = (coin__UxHead *)jarg1; - argp2 = (GoUint64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Time = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__UxHead_Time_get(void * jarg1) { - void * jresult ; - coin__UxHead *arg1 = (coin__UxHead *) 0 ; - GoUint64_ result; - - arg1 = (coin__UxHead *)jarg1; - result = ((arg1)->Time); - { - GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); - memmove(resultptr, &result, sizeof(GoUint64_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__UxHead_BkSeq_set(void * jarg1, void * jarg2) { - coin__UxHead *arg1 = (coin__UxHead *) 0 ; - GoUint64_ arg2 ; - GoUint64_ *argp2 ; - - arg1 = (coin__UxHead *)jarg1; - argp2 = (GoUint64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->BkSeq = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__UxHead_BkSeq_get(void * jarg1) { - void * jresult ; - coin__UxHead *arg1 = (coin__UxHead *) 0 ; - GoUint64_ result; - - arg1 = (coin__UxHead *)jarg1; - result = ((arg1)->BkSeq); - { - GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); - memmove(resultptr, &result, sizeof(GoUint64_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__UxHead() { - void * jresult ; - coin__UxHead *result = 0 ; - - result = (coin__UxHead *)calloc(1, sizeof(coin__UxHead)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__UxHead(void * jarg1) { - coin__UxHead *arg1 = (coin__UxHead *) 0 ; - - arg1 = (coin__UxHead *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__UxBody_SrcTransaction_set(void * jarg1, void * jarg2) { - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - GoUint8_ *arg2 ; - - arg1 = (coin__UxBody *)jarg1; - arg2 = (GoUint8_ *)jarg2; - { - size_t ii; - GoUint8_ *b = (GoUint8_ *) arg1->SrcTransaction; - for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); - } -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__UxBody_SrcTransaction_get(void * jarg1) { - void * jresult ; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - GoUint8_ *result = 0 ; - - arg1 = (coin__UxBody *)jarg1; - result = (GoUint8_ *) ((arg1)->SrcTransaction); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__UxBody_Address_set(void * jarg1, void * jarg2) { - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - - arg1 = (coin__UxBody *)jarg1; - arg2 = (cipher__Address *)jarg2; - if (arg1) (arg1)->Address = *arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__UxBody_Address_get(void * jarg1) { - void * jresult ; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - cipher__Address *result = 0 ; - - arg1 = (coin__UxBody *)jarg1; - result = (cipher__Address *)& ((arg1)->Address); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__UxBody_Coins_set(void * jarg1, void * jarg2) { - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - GoUint64_ arg2 ; - GoUint64_ *argp2 ; - - arg1 = (coin__UxBody *)jarg1; - argp2 = (GoUint64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Coins = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__UxBody_Coins_get(void * jarg1) { - void * jresult ; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - GoUint64_ result; - - arg1 = (coin__UxBody *)jarg1; - result = ((arg1)->Coins); - { - GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); - memmove(resultptr, &result, sizeof(GoUint64_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__UxBody_Hours_set(void * jarg1, void * jarg2) { - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - GoUint64_ arg2 ; - GoUint64_ *argp2 ; - - arg1 = (coin__UxBody *)jarg1; - argp2 = (GoUint64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Hours = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__UxBody_Hours_get(void * jarg1) { - void * jresult ; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - GoUint64_ result; - - arg1 = (coin__UxBody *)jarg1; - result = ((arg1)->Hours); - { - GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); - memmove(resultptr, &result, sizeof(GoUint64_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__UxBody() { - void * jresult ; - coin__UxBody *result = 0 ; - - result = (coin__UxBody *)calloc(1, sizeof(coin__UxBody)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__UxBody(void * jarg1) { - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - - arg1 = (coin__UxBody *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__UxOut_isEqual(void * jarg1, void * jarg2) { - int jresult ; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - coin__UxOut *arg2 = (coin__UxOut *) 0 ; - int result; - - arg1 = (coin__UxOut *)jarg1; - arg2 = (coin__UxOut *)jarg2; - result = (int)coin__UxOut_isEqual(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__UxOut_Head_set(void * jarg1, void * jarg2) { - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - coin__UxHead *arg2 = (coin__UxHead *) 0 ; - - arg1 = (coin__UxOut *)jarg1; - arg2 = (coin__UxHead *)jarg2; - if (arg1) (arg1)->Head = *arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__UxOut_Head_get(void * jarg1) { - void * jresult ; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - coin__UxHead *result = 0 ; - - arg1 = (coin__UxOut *)jarg1; - result = (coin__UxHead *)& ((arg1)->Head); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__UxOut_Body_set(void * jarg1, void * jarg2) { - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - coin__UxBody *arg2 = (coin__UxBody *) 0 ; - - arg1 = (coin__UxOut *)jarg1; - arg2 = (coin__UxBody *)jarg2; - if (arg1) (arg1)->Body = *arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__UxOut_Body_get(void * jarg1) { - void * jresult ; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - coin__UxBody *result = 0 ; - - arg1 = (coin__UxOut *)jarg1; - result = (coin__UxBody *)& ((arg1)->Body); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__UxOut() { - void * jresult ; - coin__UxOut *result = 0 ; - - result = (coin__UxOut *)calloc(1, sizeof(coin__UxOut)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__UxOut(void * jarg1) { - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - - arg1 = (coin__UxOut *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Balance_Coins_set(void * jarg1, void * jarg2) { - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - GoUint64_ arg2 ; - GoUint64_ *argp2 ; - - arg1 = (wallet__Balance *)jarg1; - argp2 = (GoUint64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Coins = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__Balance_Coins_get(void * jarg1) { - void * jresult ; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - GoUint64_ result; - - arg1 = (wallet__Balance *)jarg1; - result = ((arg1)->Coins); - { - GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); - memmove(resultptr, &result, sizeof(GoUint64_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Balance_Hours_set(void * jarg1, void * jarg2) { - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - GoUint64_ arg2 ; - GoUint64_ *argp2 ; - - arg1 = (wallet__Balance *)jarg1; - argp2 = (GoUint64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Hours = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__Balance_Hours_get(void * jarg1) { - void * jresult ; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - GoUint64_ result; - - arg1 = (wallet__Balance *)jarg1; - result = ((arg1)->Hours); - { - GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); - memmove(resultptr, &result, sizeof(GoUint64_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_wallet__Balance() { - void * jresult ; - wallet__Balance *result = 0 ; - - result = (wallet__Balance *)calloc(1, sizeof(wallet__Balance)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__Balance(void * jarg1) { - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - - arg1 = (wallet__Balance *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__BalancePair_Confirmed_set(void * jarg1, void * jarg2) { - wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; - wallet__Balance *arg2 = (wallet__Balance *) 0 ; - - arg1 = (wallet__BalancePair *)jarg1; - arg2 = (wallet__Balance *)jarg2; - if (arg1) (arg1)->Confirmed = *arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__BalancePair_Confirmed_get(void * jarg1) { - void * jresult ; - wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; - wallet__Balance *result = 0 ; - - arg1 = (wallet__BalancePair *)jarg1; - result = (wallet__Balance *)& ((arg1)->Confirmed); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__BalancePair_Predicted_set(void * jarg1, void * jarg2) { - wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; - wallet__Balance *arg2 = (wallet__Balance *) 0 ; - - arg1 = (wallet__BalancePair *)jarg1; - arg2 = (wallet__Balance *)jarg2; - if (arg1) (arg1)->Predicted = *arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__BalancePair_Predicted_get(void * jarg1) { - void * jresult ; - wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; - wallet__Balance *result = 0 ; - - arg1 = (wallet__BalancePair *)jarg1; - result = (wallet__Balance *)& ((arg1)->Predicted); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_wallet__BalancePair() { - void * jresult ; - wallet__BalancePair *result = 0 ; - - result = (wallet__BalancePair *)calloc(1, sizeof(wallet__BalancePair)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__BalancePair(void * jarg1) { - wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; - - arg1 = (wallet__BalancePair *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Entry_Address_set(void * jarg1, void * jarg2) { - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - - arg1 = (wallet__Entry *)jarg1; - arg2 = (cipher__Address *)jarg2; - if (arg1) (arg1)->Address = *arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__Entry_Address_get(void * jarg1) { - void * jresult ; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - cipher__Address *result = 0 ; - - arg1 = (wallet__Entry *)jarg1; - result = (cipher__Address *)& ((arg1)->Address); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Entry_Public_set(void * jarg1, void * jarg2) { - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - GoUint8_ *arg2 ; - - arg1 = (wallet__Entry *)jarg1; - arg2 = (GoUint8_ *)jarg2; - { - size_t ii; - GoUint8_ *b = (GoUint8_ *) arg1->Public; - for (ii = 0; ii < (size_t)33; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); - } -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__Entry_Public_get(void * jarg1) { - void * jresult ; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - GoUint8_ *result = 0 ; - - arg1 = (wallet__Entry *)jarg1; - result = (GoUint8_ *) ((arg1)->Public); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Entry_Secret_set(void * jarg1, void * jarg2) { - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - GoUint8_ *arg2 ; - - arg1 = (wallet__Entry *)jarg1; - arg2 = (GoUint8_ *)jarg2; - { - size_t ii; - GoUint8_ *b = (GoUint8_ *) arg1->Secret; - for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); - } -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__Entry_Secret_get(void * jarg1) { - void * jresult ; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - GoUint8_ *result = 0 ; - - arg1 = (wallet__Entry *)jarg1; - result = (GoUint8_ *) ((arg1)->Secret); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_wallet__Entry() { - void * jresult ; - wallet__Entry *result = 0 ; - - result = (wallet__Entry *)calloc(1, sizeof(wallet__Entry)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__Entry(void * jarg1) { - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - - arg1 = (wallet__Entry *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Note_TxID_set(void * jarg1, void * jarg2) { - wallet__Note *arg1 = (wallet__Note *) 0 ; - GoString_ arg2 ; - GoString_ *argp2 ; - - arg1 = (wallet__Note *)jarg1; - argp2 = (GoString_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->TxID = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__Note_TxID_get(void * jarg1) { - void * jresult ; - wallet__Note *arg1 = (wallet__Note *) 0 ; - GoString_ result; - - arg1 = (wallet__Note *)jarg1; - result = ((arg1)->TxID); - { - GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); - memmove(resultptr, &result, sizeof(GoString_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Note_Value_set(void * jarg1, void * jarg2) { - wallet__Note *arg1 = (wallet__Note *) 0 ; - GoString_ arg2 ; - GoString_ *argp2 ; - - arg1 = (wallet__Note *)jarg1; - argp2 = (GoString_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Value = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__Note_Value_get(void * jarg1) { - void * jresult ; - wallet__Note *arg1 = (wallet__Note *) 0 ; - GoString_ result; - - arg1 = (wallet__Note *)jarg1; - result = ((arg1)->Value); - { - GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); - memmove(resultptr, &result, sizeof(GoString_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_wallet__Note() { - void * jresult ; - wallet__Note *result = 0 ; - - result = (wallet__Note *)calloc(1, sizeof(wallet__Note)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__Note(void * jarg1) { - wallet__Note *arg1 = (wallet__Note *) 0 ; - - arg1 = (wallet__Note *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__ReadableNote_TransactionID_set(void * jarg1, void * jarg2) { - wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; - GoString_ arg2 ; - GoString_ *argp2 ; - - arg1 = (wallet__ReadableNote *)jarg1; - argp2 = (GoString_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->TransactionID = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__ReadableNote_TransactionID_get(void * jarg1) { - void * jresult ; - wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; - GoString_ result; - - arg1 = (wallet__ReadableNote *)jarg1; - result = ((arg1)->TransactionID); - { - GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); - memmove(resultptr, &result, sizeof(GoString_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__ReadableNote_ActualNote_set(void * jarg1, void * jarg2) { - wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; - GoString_ arg2 ; - GoString_ *argp2 ; - - arg1 = (wallet__ReadableNote *)jarg1; - argp2 = (GoString_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->ActualNote = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__ReadableNote_ActualNote_get(void * jarg1) { - void * jresult ; - wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; - GoString_ result; - - arg1 = (wallet__ReadableNote *)jarg1; - result = ((arg1)->ActualNote); - { - GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); - memmove(resultptr, &result, sizeof(GoString_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_wallet__ReadableNote() { - void * jresult ; - wallet__ReadableNote *result = 0 ; - - result = (wallet__ReadableNote *)calloc(1, sizeof(wallet__ReadableNote)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__ReadableNote(void * jarg1) { - wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; - - arg1 = (wallet__ReadableNote *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Wallet_Meta_set(void * jarg1, void * jarg2) { - wallet__Wallet *arg1 = (wallet__Wallet *) 0 ; - GoMap_ arg2 ; - GoMap_ *argp2 ; - - arg1 = (wallet__Wallet *)jarg1; - argp2 = (GoMap_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoMap_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Meta = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__Wallet_Meta_get(void * jarg1) { - void * jresult ; - wallet__Wallet *arg1 = (wallet__Wallet *) 0 ; - GoMap_ result; - - arg1 = (wallet__Wallet *)jarg1; - result = ((arg1)->Meta); - { - GoMap_ * resultptr = (GoMap_ *) malloc(sizeof(GoMap_)); - memmove(resultptr, &result, sizeof(GoMap_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__Wallet_Entries_set(void * jarg1, void * jarg2) { - wallet__Wallet *arg1 = (wallet__Wallet *) 0 ; - GoSlice_ arg2 ; - GoSlice_ *argp2 ; - - arg1 = (wallet__Wallet *)jarg1; - argp2 = (GoSlice_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Entries = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__Wallet_Entries_get(void * jarg1) { - void * jresult ; - wallet__Wallet *arg1 = (wallet__Wallet *) 0 ; - GoSlice_ result; - - arg1 = (wallet__Wallet *)jarg1; - result = ((arg1)->Entries); - { - GoSlice_ * resultptr = (GoSlice_ *) malloc(sizeof(GoSlice_)); - memmove(resultptr, &result, sizeof(GoSlice_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_wallet__Wallet() { - void * jresult ; - wallet__Wallet *result = 0 ; - - result = (wallet__Wallet *)calloc(1, sizeof(wallet__Wallet)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__Wallet(void * jarg1) { - wallet__Wallet *arg1 = (wallet__Wallet *) 0 ; - - arg1 = (wallet__Wallet *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_Hash_set(void * jarg1, void * jarg2) { - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - GoUint8_ *arg2 ; - - arg1 = (wallet__UxBalance *)jarg1; - arg2 = (GoUint8_ *)jarg2; - { - size_t ii; - GoUint8_ *b = (GoUint8_ *) arg1->Hash; - for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); - } -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_Hash_get(void * jarg1) { - void * jresult ; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - GoUint8_ *result = 0 ; - - arg1 = (wallet__UxBalance *)jarg1; - result = (GoUint8_ *) ((arg1)->Hash); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_BkSeq_set(void * jarg1, void * jarg2) { - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - GoInt64_ arg2 ; - GoInt64_ *argp2 ; - - arg1 = (wallet__UxBalance *)jarg1; - argp2 = (GoInt64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt64_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->BkSeq = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_BkSeq_get(void * jarg1) { - void * jresult ; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - GoInt64_ result; - - arg1 = (wallet__UxBalance *)jarg1; - result = ((arg1)->BkSeq); - { - GoInt64_ * resultptr = (GoInt64_ *) malloc(sizeof(GoInt64_)); - memmove(resultptr, &result, sizeof(GoInt64_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_Address_set(void * jarg1, void * jarg2) { - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - - arg1 = (wallet__UxBalance *)jarg1; - arg2 = (cipher__Address *)jarg2; - if (arg1) (arg1)->Address = *arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_Address_get(void * jarg1) { - void * jresult ; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - cipher__Address *result = 0 ; - - arg1 = (wallet__UxBalance *)jarg1; - result = (cipher__Address *)& ((arg1)->Address); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_Coins_set(void * jarg1, void * jarg2) { - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - GoInt64_ arg2 ; - GoInt64_ *argp2 ; - - arg1 = (wallet__UxBalance *)jarg1; - argp2 = (GoInt64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt64_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Coins = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_Coins_get(void * jarg1) { - void * jresult ; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - GoInt64_ result; - - arg1 = (wallet__UxBalance *)jarg1; - result = ((arg1)->Coins); - { - GoInt64_ * resultptr = (GoInt64_ *) malloc(sizeof(GoInt64_)); - memmove(resultptr, &result, sizeof(GoInt64_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_Hours_set(void * jarg1, void * jarg2) { - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - GoInt64_ arg2 ; - GoInt64_ *argp2 ; - - arg1 = (wallet__UxBalance *)jarg1; - argp2 = (GoInt64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt64_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Hours = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_wallet__UxBalance_Hours_get(void * jarg1) { - void * jresult ; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - GoInt64_ result; - - arg1 = (wallet__UxBalance *)jarg1; - result = ((arg1)->Hours); - { - GoInt64_ * resultptr = (GoInt64_ *) malloc(sizeof(GoInt64_)); - memmove(resultptr, &result, sizeof(GoInt64_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_wallet__UxBalance() { - void * jresult ; - wallet__UxBalance *result = 0 ; - - result = (wallet__UxBalance *)calloc(1, sizeof(wallet__UxBalance)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__UxBalance(void * jarg1) { - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - - arg1 = (wallet__UxBalance *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_api__RichlistParams_N_set(void * jarg1, void * jarg2) { - api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; - GoInt_ arg2 ; - GoInt_ *argp2 ; - - arg1 = (api__RichlistParams *)jarg1; - argp2 = (GoInt_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->N = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_api__RichlistParams_N_get(void * jarg1) { - void * jresult ; - api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; - GoInt_ result; - - arg1 = (api__RichlistParams *)jarg1; - result = ((arg1)->N); - { - GoInt_ * resultptr = (GoInt_ *) malloc(sizeof(GoInt_)); - memmove(resultptr, &result, sizeof(GoInt_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_api__RichlistParams_IncludeDistribution_set(void * jarg1, void * jarg2) { - api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; - BOOL arg2 ; - BOOL *argp2 ; - - arg1 = (api__RichlistParams *)jarg1; - argp2 = (BOOL *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null BOOL", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->IncludeDistribution = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_api__RichlistParams_IncludeDistribution_get(void * jarg1) { - void * jresult ; - api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; - BOOL result; - - arg1 = (api__RichlistParams *)jarg1; - result = ((arg1)->IncludeDistribution); - { - BOOL * resultptr = (BOOL *) malloc(sizeof(BOOL)); - memmove(resultptr, &result, sizeof(BOOL)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_api__RichlistParams() { - void * jresult ; - api__RichlistParams *result = 0 ; - - result = (api__RichlistParams *)calloc(1, sizeof(api__RichlistParams)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_api__RichlistParams(void * jarg1) { - api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; - - arg1 = (api__RichlistParams *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cli__SendAmount_Addr_set(void * jarg1, void * jarg2) { - cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; - GoString_ arg2 ; - GoString_ *argp2 ; - - arg1 = (cli__SendAmount *)jarg1; - argp2 = (GoString_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Addr = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cli__SendAmount_Addr_get(void * jarg1) { - void * jresult ; - cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; - GoString_ result; - - arg1 = (cli__SendAmount *)jarg1; - result = ((arg1)->Addr); - { - GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); - memmove(resultptr, &result, sizeof(GoString_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cli__SendAmount_Coins_set(void * jarg1, void * jarg2) { - cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; - GoInt64_ arg2 ; - GoInt64_ *argp2 ; - - arg1 = (cli__SendAmount *)jarg1; - argp2 = (GoInt64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt64_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Coins = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cli__SendAmount_Coins_get(void * jarg1) { - void * jresult ; - cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; - GoInt64_ result; - - arg1 = (cli__SendAmount *)jarg1; - result = ((arg1)->Coins); - { - GoInt64_ * resultptr = (GoInt64_ *) malloc(sizeof(GoInt64_)); - memmove(resultptr, &result, sizeof(GoInt64_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cli__SendAmount() { - void * jresult ; - cli__SendAmount *result = 0 ; - - result = (cli__SendAmount *)calloc(1, sizeof(cli__SendAmount)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cli__SendAmount(void * jarg1) { - cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; - - arg1 = (cli__SendAmount *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_httphelper__Address__unnamed_set(void * jarg1, void * jarg2) { - httphelper__Address *arg1 = (httphelper__Address *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - - arg1 = (httphelper__Address *)jarg1; - arg2 = (cipher__Address *)jarg2; - if (arg1) (arg1)->_unnamed = *arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_httphelper__Address__unnamed_get(void * jarg1) { - void * jresult ; - httphelper__Address *arg1 = (httphelper__Address *) 0 ; - cipher__Address *result = 0 ; - - arg1 = (httphelper__Address *)jarg1; - result = (cipher__Address *)& ((arg1)->_unnamed); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_httphelper__Address() { - void * jresult ; - httphelper__Address *result = 0 ; - - result = (httphelper__Address *)calloc(1, sizeof(httphelper__Address)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_httphelper__Address(void * jarg1) { - httphelper__Address *arg1 = (httphelper__Address *) 0 ; - - arg1 = (httphelper__Address *)jarg1; - free((char *) arg1); -} - - -#ifdef __cplusplus -} -#endif - diff --git a/LibskycoinNet/skycoin1/wallet__Balance.cs b/LibskycoinNet/skycoin1/wallet__Balance.cs deleted file mode 100644 index a5b5d0bb..00000000 --- a/LibskycoinNet/skycoin1/wallet__Balance.cs +++ /dev/null @@ -1,72 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class wallet__Balance : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal wallet__Balance(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(wallet__Balance obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~wallet__Balance() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_wallet__Balance(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_GoUint64_ Coins { - set { - skycoinPINVOKE.wallet__Balance_Coins_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.wallet__Balance_Coins_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_GoUint64_ Hours { - set { - skycoinPINVOKE.wallet__Balance_Hours_set(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.wallet__Balance_Hours_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public wallet__Balance() : this(skycoinPINVOKE.new_wallet__Balance(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin1/wallet__BalancePair.cs b/LibskycoinNet/skycoin1/wallet__BalancePair.cs deleted file mode 100644 index 98834e3d..00000000 --- a/LibskycoinNet/skycoin1/wallet__BalancePair.cs +++ /dev/null @@ -1,70 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class wallet__BalancePair : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal wallet__BalancePair(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(wallet__BalancePair obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~wallet__BalancePair() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_wallet__BalancePair(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public wallet__Balance Confirmed { - set { - skycoinPINVOKE.wallet__BalancePair_Confirmed_set(swigCPtr, wallet__Balance.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.wallet__BalancePair_Confirmed_get(swigCPtr); - wallet__Balance ret = (cPtr == global::System.IntPtr.Zero) ? null : new wallet__Balance(cPtr, false); - return ret; - } - } - - public wallet__Balance Predicted { - set { - skycoinPINVOKE.wallet__BalancePair_Predicted_set(swigCPtr, wallet__Balance.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.wallet__BalancePair_Predicted_get(swigCPtr); - wallet__Balance ret = (cPtr == global::System.IntPtr.Zero) ? null : new wallet__Balance(cPtr, false); - return ret; - } - } - - public wallet__BalancePair() : this(skycoinPINVOKE.new_wallet__BalancePair(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin1/wallet__Entry.cs b/LibskycoinNet/skycoin1/wallet__Entry.cs deleted file mode 100644 index 6431c810..00000000 --- a/LibskycoinNet/skycoin1/wallet__Entry.cs +++ /dev/null @@ -1,81 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class wallet__Entry : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal wallet__Entry(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(wallet__Entry obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~wallet__Entry() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_wallet__Entry(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public cipher__Address Address { - set { - skycoinPINVOKE.wallet__Entry_Address_set(swigCPtr, cipher__Address.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.wallet__Entry_Address_get(swigCPtr); - cipher__Address ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher__Address(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_GoUint8_ Public { - set { - skycoinPINVOKE.wallet__Entry_Public_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.wallet__Entry_Public_get(swigCPtr); - SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_GoUint8_ Secret { - set { - skycoinPINVOKE.wallet__Entry_Secret_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.wallet__Entry_Secret_get(swigCPtr); - SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); - return ret; - } - } - - public wallet__Entry() : this(skycoinPINVOKE.new_wallet__Entry(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin1/wallet__Note.cs b/LibskycoinNet/skycoin1/wallet__Note.cs deleted file mode 100644 index 35f5853b..00000000 --- a/LibskycoinNet/skycoin1/wallet__Note.cs +++ /dev/null @@ -1,72 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class wallet__Note : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal wallet__Note(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(wallet__Note obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~wallet__Note() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_wallet__Note(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_GoString_ TxID { - set { - skycoinPINVOKE.wallet__Note_TxID_set(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.wallet__Note_TxID_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_GoString_ Value { - set { - skycoinPINVOKE.wallet__Note_Value_set(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.wallet__Note_Value_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public wallet__Note() : this(skycoinPINVOKE.new_wallet__Note(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin1/wallet__ReadableNote.cs b/LibskycoinNet/skycoin1/wallet__ReadableNote.cs deleted file mode 100644 index 62e0d103..00000000 --- a/LibskycoinNet/skycoin1/wallet__ReadableNote.cs +++ /dev/null @@ -1,72 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class wallet__ReadableNote : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal wallet__ReadableNote(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(wallet__ReadableNote obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~wallet__ReadableNote() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_wallet__ReadableNote(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_GoString_ TransactionID { - set { - skycoinPINVOKE.wallet__ReadableNote_TransactionID_set(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.wallet__ReadableNote_TransactionID_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_GoString_ ActualNote { - set { - skycoinPINVOKE.wallet__ReadableNote_ActualNote_set(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.wallet__ReadableNote_ActualNote_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public wallet__ReadableNote() : this(skycoinPINVOKE.new_wallet__ReadableNote(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin1/wallet__UxBalance.cs b/LibskycoinNet/skycoin1/wallet__UxBalance.cs deleted file mode 100644 index 478a94bc..00000000 --- a/LibskycoinNet/skycoin1/wallet__UxBalance.cs +++ /dev/null @@ -1,106 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class wallet__UxBalance : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal wallet__UxBalance(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(wallet__UxBalance obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~wallet__UxBalance() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_wallet__UxBalance(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_GoUint8_ Hash { - set { - skycoinPINVOKE.wallet__UxBalance_Hash_set(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.wallet__UxBalance_Hash_get(swigCPtr); - SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_GoInt64_ BkSeq { - set { - skycoinPINVOKE.wallet__UxBalance_BkSeq_set(swigCPtr, SWIGTYPE_p_GoInt64_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoInt64_ ret = new SWIGTYPE_p_GoInt64_(skycoinPINVOKE.wallet__UxBalance_BkSeq_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public cipher__Address Address { - set { - skycoinPINVOKE.wallet__UxBalance_Address_set(swigCPtr, cipher__Address.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.wallet__UxBalance_Address_get(swigCPtr); - cipher__Address ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher__Address(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_GoInt64_ Coins { - set { - skycoinPINVOKE.wallet__UxBalance_Coins_set(swigCPtr, SWIGTYPE_p_GoInt64_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoInt64_ ret = new SWIGTYPE_p_GoInt64_(skycoinPINVOKE.wallet__UxBalance_Coins_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_GoInt64_ Hours { - set { - skycoinPINVOKE.wallet__UxBalance_Hours_set(swigCPtr, SWIGTYPE_p_GoInt64_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoInt64_ ret = new SWIGTYPE_p_GoInt64_(skycoinPINVOKE.wallet__UxBalance_Hours_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public wallet__UxBalance() : this(skycoinPINVOKE.new_wallet__UxBalance(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin1/wallet__Wallet.cs b/LibskycoinNet/skycoin1/wallet__Wallet.cs deleted file mode 100644 index ba19252a..00000000 --- a/LibskycoinNet/skycoin1/wallet__Wallet.cs +++ /dev/null @@ -1,72 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class wallet__Wallet : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal wallet__Wallet(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(wallet__Wallet obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~wallet__Wallet() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_wallet__Wallet(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_GoMap_ Meta { - set { - skycoinPINVOKE.wallet__Wallet_Meta_set(swigCPtr, SWIGTYPE_p_GoMap_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoMap_ ret = new SWIGTYPE_p_GoMap_(skycoinPINVOKE.wallet__Wallet_Meta_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_GoSlice_ Entries { - set { - skycoinPINVOKE.wallet__Wallet_Entries_set(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.wallet__Wallet_Entries_get(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public wallet__Wallet() : this(skycoinPINVOKE.new_wallet__Wallet(), true) { - } - -} - -} diff --git a/Makefile b/Makefile index a4da8557..098ad49e 100644 --- a/Makefile +++ b/Makefile @@ -43,7 +43,7 @@ build-swig: fi \ } mkdir -p ./LibskycoinNet/skycoin - swig -csharp -namespace skycoin -Iswig/include -I$(INCLUDE_DIR) -outdir LibskycoinNet/skycoin -o LibskycoinNet/skycoin/skycoinnet_wrap.c $(LIBSWIG_DIR)/skycoin.i + swig -csharp -oldvarnames -v -namespace skycoin -Iswig/include -I$(INCLUDE_DIR) -outdir LibskycoinNet/skycoin -o LibskycoinNet/skycoin/skycoinnet_wrap.c $(LIBSWIG_DIR)/skycoin.i build-libskycoin-net: gcc -c -fpic -ILibskycoinNet/swig/include -I$(INCLUDE_DIR) LibskycoinNet/skycoin/skycoinnet_wrap.c diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index e6839b52..89376401 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit e6839b52cc38eb56767c263b20d9145f4adbdcaa +Subproject commit 893764018c8b44dfe38062705b6a5d35be751157 From abb42713f7b61b333080064d72d0cdeb22f15dc9 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Wed, 5 Sep 2018 22:23:45 -0400 Subject: [PATCH 13/73] [swig][libdotnet] Update submodule --- .../SWIGTYPE_p_ReadableOutputSet_Handle.cs | 29 +++ LibskycoinNet/skycoin/skycoin.cs | 10 +- LibskycoinNet/skycoin/skycoinPINVOKE.cs | 48 +--- LibskycoinNet/skycoin/skycoinnet_wrap.c | 224 ++---------------- gopath/src/github.com/skycoin/skycoin | 2 +- swig/include/libskycoin.h | 6 +- 6 files changed, 55 insertions(+), 264 deletions(-) create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_ReadableOutputSet_Handle.cs diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_ReadableOutputSet_Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_ReadableOutputSet_Handle.cs new file mode 100644 index 00000000..7a5bfcd1 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_ReadableOutputSet_Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_ReadableOutputSet_Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_ReadableOutputSet_Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_ReadableOutputSet_Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_ReadableOutputSet_Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs index 652c965d..d436da12 100644 --- a/LibskycoinNet/skycoin/skycoin.cs +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -2093,14 +2093,14 @@ public static uint SKY_file_DetermineResourcePath(_GoString_ p0, _GoString_ p1, return ret; } - public static uint SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_Handle p0, _GoString_ p1, SWIGTYPE_p_ReadableOutputSet__Handle p2) { - uint ret = skycoinPINVOKE.SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_ReadableOutputSet__Handle.getCPtr(p2)); + public static uint SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_Handle p0, _GoString_ p1, SWIGTYPE_p_ReadableOutputSet_Handle p2) { + uint ret = skycoinPINVOKE.SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_ReadableOutputSet_Handle.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cli_GetWalletOutputs(SWIGTYPE_p_Handle p0, SWIGTYPE_p_ReadableOutputSet__Handle p2) { - uint ret = skycoinPINVOKE.SKY_cli_GetWalletOutputs(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_ReadableOutputSet__Handle.getCPtr(p2)); + public static uint SKY_cli_GetWalletOutputs(SWIGTYPE_p_Handle p0, SWIGTYPE_p_ReadableOutputSet_Handle p2) { + uint ret = skycoinPINVOKE.SKY_cli_GetWalletOutputs(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_ReadableOutputSet_Handle.getCPtr(p2)); return ret; } @@ -2523,7 +2523,6 @@ public static uint SKY_coin_VerifyTransactionHoursSpending(ulong p0, SWIGTYPE_p_ return ret; } - public static readonly long SKY_ErrVerifySignatureInvalidPubkeysLength = skycoinPINVOKE.get_SKY_ErrVerifySignatureInvalidPubkeysLength(); public static readonly long SKY_OK = skycoinPINVOKE.get_SKY_OK(); public static readonly long SKY_ERROR = skycoinPINVOKE.get_SKY_ERROR(); public static readonly long SKY_PKG_API = skycoinPINVOKE.get_SKY_PKG_API(); @@ -2679,6 +2678,7 @@ public static uint SKY_coin_VerifyTransactionHoursSpending(ulong p0, SWIGTYPE_p_ public static readonly long SKY_ErrUnknownWalletID = skycoinPINVOKE.get_SKY_ErrUnknownWalletID(); public static readonly long SKY_ErrSHA256orMissingPassword = skycoinPINVOKE.get_SKY_ErrSHA256orMissingPassword(); public static readonly long SKY_ErrSHA256LenghtDataOverflowMaxUint32 = skycoinPINVOKE.get_SKY_ErrSHA256LenghtDataOverflowMaxUint32(); + public static readonly long SKY_ErrVerifySignatureInvalidPubkeysLength = skycoinPINVOKE.get_SKY_ErrVerifySignatureInvalidPubkeysLength(); } } diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index 5215043b..59025237 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -203,9 +203,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_equalBlockHeaders")] public static extern int equalBlockHeaders(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrVerifySignatureInvalidPubkeysLength")] - public static extern long get_SKY_ErrVerifySignatureInvalidPubkeysLength(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_OK")] public static extern long get_SKY_OK(); @@ -671,6 +668,9 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrSHA256LenghtDataOverflowMaxUint32")] public static extern long get_SKY_ErrSHA256LenghtDataOverflowMaxUint32(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrVerifySignatureInvalidPubkeysLength")] + public static extern long get_SKY_ErrVerifySignatureInvalidPubkeysLength(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set__GoString__p")] public static extern void set__GoString__p(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); @@ -2276,30 +2276,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_secp256k1go__XYZ")] public static extern void delete_secp256k1go__XYZ(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__SortableTransactions_Txns")] - public static extern void set_coin__SortableTransactions_Txns(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__SortableTransactions_Txns")] - public static extern global::System.IntPtr get_coin__SortableTransactions_Txns(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__SortableTransactions_Fees")] - public static extern void set_coin__SortableTransactions_Fees(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__SortableTransactions_Fees")] - public static extern global::System.IntPtr get_coin__SortableTransactions_Fees(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__SortableTransactions_Hashes")] - public static extern void set_coin__SortableTransactions_Hashes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__SortableTransactions_Hashes")] - public static extern global::System.IntPtr get_coin__SortableTransactions_Hashes(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__SortableTransactions")] - public static extern global::System.IntPtr new_coin__SortableTransactions(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__SortableTransactions")] - public static extern void delete_coin__SortableTransactions(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_isEqual")] public static extern int coin__Transaction_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -2639,24 +2615,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__ReadableNote")] public static extern void delete_wallet__ReadableNote(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__Wallet_Meta")] - public static extern void set_wallet__Wallet_Meta(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__Wallet_Meta")] - public static extern global::System.IntPtr get_wallet__Wallet_Meta(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__Wallet_Entries")] - public static extern void set_wallet__Wallet_Entries(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__Wallet_Entries")] - public static extern global::System.IntPtr get_wallet__Wallet_Entries(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__Wallet")] - public static extern global::System.IntPtr new_wallet__Wallet(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__Wallet")] - public static extern void delete_wallet__Wallet(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__UxBalance_Hash")] public static extern void set_wallet__UxBalance_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index 3903eaf0..28639444 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -580,16 +580,6 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalBlockHeaders(void * jarg1, void * } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrVerifySignatureInvalidPubkeysLength() { - long long jresult ; - long long result; - - result = (long long)(0x0b000036); - jresult = result; - return jresult; -} - - SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_OK() { long long jresult ; long long result; @@ -2140,6 +2130,16 @@ SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrSHA256LenghtDataOverf } +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrVerifySignatureInvalidPubkeysLength() { + long long jresult ; + long long result; + + result = (long long)(0x0b000036); + jresult = result; + return jresult; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set__GoString__p(void * jarg1, char * jarg2) { _GoString_ *arg1 = (_GoString_ *) 0 ; char *arg2 = (char *) 0 ; @@ -9918,7 +9918,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetWalletOutputsFromF unsigned int jresult ; WebRpcClient__Handle arg1 ; GoString arg2 ; - ReadableOutputSet__Handle *arg3 = (ReadableOutputSet__Handle *) 0 ; + ReadableOutputSet_Handle *arg3 = (ReadableOutputSet_Handle *) 0 ; GoString *argp2 ; GoUint32 result; @@ -9931,7 +9931,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetWalletOutputsFromF return 0; } arg2 = *argp2; - arg3 = (ReadableOutputSet__Handle *)jarg3; + arg3 = (ReadableOutputSet_Handle *)jarg3; result = (GoUint32)SKY_cli_GetWalletOutputsFromFile(arg1,arg2,arg3); jresult = result; return jresult; @@ -9942,7 +9942,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetWalletOutputs(void unsigned int jresult ; WebRpcClient__Handle arg1 ; Wallet__Handle *arg2 = (Wallet__Handle *) 0 ; - ReadableOutputSet__Handle *arg3 = (ReadableOutputSet__Handle *) 0 ; + ReadableOutputSet_Handle *arg3 = (ReadableOutputSet_Handle *) 0 ; Handle temp2 ; GoUint32 result; @@ -9952,7 +9952,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetWalletOutputs(void { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg3 = (ReadableOutputSet__Handle *)jarg3; + arg3 = (ReadableOutputSet_Handle *)jarg3; result = (GoUint32)SKY_cli_GetWalletOutputs(arg1,arg2,arg3); jresult = result; return jresult; @@ -11977,120 +11977,6 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_secp256k1go__XYZ(void * jarg1) } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__SortableTransactions_Txns(void * jarg1, void * jarg2) { - coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; - coin__Transactions arg2 ; - coin__Transactions *argp2 ; - - arg1 = (coin__SortableTransactions *)jarg1; - argp2 = (coin__Transactions *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null coin__Transactions", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Txns = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__SortableTransactions_Txns(void * jarg1) { - void * jresult ; - coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; - coin__Transactions result; - - arg1 = (coin__SortableTransactions *)jarg1; - result = ((arg1)->Txns); - { - coin__Transactions * resultptr = (coin__Transactions *) malloc(sizeof(coin__Transactions)); - memmove(resultptr, &result, sizeof(coin__Transactions)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__SortableTransactions_Fees(void * jarg1, void * jarg2) { - coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; - GoSlice_ arg2 ; - GoSlice_ *argp2 ; - - arg1 = (coin__SortableTransactions *)jarg1; - argp2 = (GoSlice_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Fees = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__SortableTransactions_Fees(void * jarg1) { - void * jresult ; - coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; - GoSlice_ result; - - arg1 = (coin__SortableTransactions *)jarg1; - result = ((arg1)->Fees); - { - GoSlice_ * resultptr = (GoSlice_ *) malloc(sizeof(GoSlice_)); - memmove(resultptr, &result, sizeof(GoSlice_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__SortableTransactions_Hashes(void * jarg1, void * jarg2) { - coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; - GoSlice_ arg2 ; - GoSlice_ *argp2 ; - - arg1 = (coin__SortableTransactions *)jarg1; - argp2 = (GoSlice_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Hashes = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__SortableTransactions_Hashes(void * jarg1) { - void * jresult ; - coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; - GoSlice_ result; - - arg1 = (coin__SortableTransactions *)jarg1; - result = ((arg1)->Hashes); - { - GoSlice_ * resultptr = (GoSlice_ *) malloc(sizeof(GoSlice_)); - memmove(resultptr, &result, sizeof(GoSlice_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__SortableTransactions() { - void * jresult ; - coin__SortableTransactions *result = 0 ; - - result = (coin__SortableTransactions *)calloc(1, sizeof(coin__SortableTransactions)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__SortableTransactions(void * jarg1) { - coin__SortableTransactions *arg1 = (coin__SortableTransactions *) 0 ; - - arg1 = (coin__SortableTransactions *)jarg1; - free((char *) arg1); -} - - SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__Transaction_isEqual(void * jarg1, void * jarg2) { int jresult ; coin__Transaction *arg1 = (coin__Transaction *) 0 ; @@ -13545,88 +13431,6 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__ReadableNote(void * ja } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__Wallet_Meta(void * jarg1, void * jarg2) { - wallet__Wallet *arg1 = (wallet__Wallet *) 0 ; - GoMap_ arg2 ; - GoMap_ *argp2 ; - - arg1 = (wallet__Wallet *)jarg1; - argp2 = (GoMap_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoMap_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Meta = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__Wallet_Meta(void * jarg1) { - void * jresult ; - wallet__Wallet *arg1 = (wallet__Wallet *) 0 ; - GoMap_ result; - - arg1 = (wallet__Wallet *)jarg1; - result = ((arg1)->Meta); - { - GoMap_ * resultptr = (GoMap_ *) malloc(sizeof(GoMap_)); - memmove(resultptr, &result, sizeof(GoMap_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__Wallet_Entries(void * jarg1, void * jarg2) { - wallet__Wallet *arg1 = (wallet__Wallet *) 0 ; - GoSlice_ arg2 ; - GoSlice_ *argp2 ; - - arg1 = (wallet__Wallet *)jarg1; - argp2 = (GoSlice_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Entries = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__Wallet_Entries(void * jarg1) { - void * jresult ; - wallet__Wallet *arg1 = (wallet__Wallet *) 0 ; - GoSlice_ result; - - arg1 = (wallet__Wallet *)jarg1; - result = ((arg1)->Entries); - { - GoSlice_ * resultptr = (GoSlice_ *) malloc(sizeof(GoSlice_)); - memmove(resultptr, &result, sizeof(GoSlice_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_wallet__Wallet() { - void * jresult ; - wallet__Wallet *result = 0 ; - - result = (wallet__Wallet *)calloc(1, sizeof(wallet__Wallet)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__Wallet(void * jarg1) { - wallet__Wallet *arg1 = (wallet__Wallet *) 0 ; - - arg1 = (wallet__Wallet *)jarg1; - free((char *) arg1); -} - - SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__UxBalance_Hash(void * jarg1, void * jarg2) { wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; GoUint8_ *arg2 ; diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index 89376401..0b82794b 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit 893764018c8b44dfe38062705b6a5d35be751157 +Subproject commit 0b82794b9653ea7ff197181e438e346970d1d3d7 diff --git a/swig/include/libskycoin.h b/swig/include/libskycoin.h index c5bf31dd..b99ef0aa 100644 --- a/swig/include/libskycoin.h +++ b/swig/include/libskycoin.h @@ -118,7 +118,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "cipher.base58.base58.go" +#line 11 "cipher.base58.base58.go" #include @@ -1394,9 +1394,9 @@ extern GoUint32 SKY_file_ResolveResourceDirectory(GoString p0, GoString_* p1); extern GoUint32 SKY_file_DetermineResourcePath(GoString p0, GoString p1, GoString p2, GoString_* p3); -extern GoUint32 SKY_cli_GetWalletOutputsFromFile(WebRpcClient__Handle p0, GoString p1, ReadableOutputSet__Handle* p2); +extern GoUint32 SKY_cli_GetWalletOutputsFromFile(WebRpcClient__Handle p0, GoString p1, ReadableOutputSet_Handle* p2); -extern GoUint32 SKY_cli_GetWalletOutputs(WebRpcClient__Handle p0, Wallet__Handle* p1, ReadableOutputSet__Handle* p2); +extern GoUint32 SKY_cli_GetWalletOutputs(WebRpcClient__Handle p0, Wallet__Handle* p1, ReadableOutputSet_Handle* p2); extern GoUint32 SKY_testutil_MakeAddress(cipher__Address* p0); From c37ddad40d7ecea5dbd8b15a35b97e3da3eeaf65 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Fri, 7 Sep 2018 20:05:07 -0400 Subject: [PATCH 14/73] [Makefile] refs #4 Change in Makefile --- Makefile | 4 +--- gopath/src/github.com/skycoin/skycoin | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 098ad49e..0b91143f 100644 --- a/Makefile +++ b/Makefile @@ -55,9 +55,7 @@ install: nuget restore LibskycoinNet.sln nuget install NUnit.Runners -Version 2.6.4 -OutputDirectory testrunner -test: - nuget restore LibskycoinNet.sln - nuget install NUnit.Runners -Version 2.6.4 -OutputDirectory testrunner +test: install make build-libc make build-swig msbuild /p:Configuration=Release LibskycoinNet.sln diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index 0b82794b..d2bbe0b8 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit 0b82794b9653ea7ff197181e438e346970d1d3d7 +Subproject commit d2bbe0b8356606f9b295cad83604964d1ff1445b From 36651381c75ddf8f85f5327e21fce1b197d82c5e Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Fri, 7 Sep 2018 23:03:16 -0400 Subject: [PATCH 15/73] [swig][submodule] refs #4 Update submodule --- LibskycoinNet/LibskycoinNet.csproj | 3 +- LibskycoinNet/skycoin/skycoin.cs | 896 +- LibskycoinNet/skycoin/skycoinPINVOKE.cs | 3328 ++--- LibskycoinNet/skycoin/skycoinnet_wrap.c | 15065 +++++++++++----------- gopath/src/github.com/skycoin/skycoin | 2 +- 5 files changed, 9648 insertions(+), 9646 deletions(-) diff --git a/LibskycoinNet/LibskycoinNet.csproj b/LibskycoinNet/LibskycoinNet.csproj index 0de49709..cd0bfdba 100644 --- a/LibskycoinNet/LibskycoinNet.csproj +++ b/LibskycoinNet/LibskycoinNet.csproj @@ -132,7 +132,8 @@ - + + diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs index d436da12..0ac0fc61 100644 --- a/LibskycoinNet/skycoin/skycoin.cs +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -35,8 +35,8 @@ public static int equalBlockHeaders(coin__BlockHeader bh1, coin__BlockHeader bh2 return ret; } - public static uint SKY_coin_NewBlock(SWIGTYPE_p_Handle p0, ulong p1, SWIGTYPE_p_a_32__GoUint8_ p2, SWIGTYPE_p_Handle p3, SWIGTYPE_p_FeeCalculator p4) { - uint ret = skycoinPINVOKE.SKY_coin_NewBlock(SWIGTYPE_p_Handle.getCPtr(p0), p1, SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2), SWIGTYPE_p_Handle.getCPtr(p3), SWIGTYPE_p_FeeCalculator.getCPtr(p4)); + public static uint SKY_coin_NewBlock(SWIGTYPE_p_GoInt64_ p0, ulong p1, SWIGTYPE_p_a_32__GoUint8_ p2, SWIGTYPE_p_GoInt64_ p3, SWIGTYPE_p_FeeCalculator p4) { + uint ret = skycoinPINVOKE.SKY_coin_NewBlock(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1, SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2), SWIGTYPE_p_GoInt64_.getCPtr(p3), SWIGTYPE_p_FeeCalculator.getCPtr(p4)); return ret; } @@ -50,48 +50,48 @@ public static uint SKY_coin_NewGenesisBlock(cipher__Address p0, ulong p1, ulong return ret; } - public static uint SKY_coin_Block_HashHeader(SWIGTYPE_p_Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Block_HashHeader(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + public static uint SKY_coin_Block_HashHeader(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Block_HashHeader(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); return ret; } - public static uint SKY_coin_Block_PreHashHeader(SWIGTYPE_p_Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Block_PreHashHeader(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + public static uint SKY_coin_Block_PreHashHeader(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Block_PreHashHeader(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); return ret; } - public static uint SKY_coin_Block_Time(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Block_Time(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static uint SKY_coin_Block_Time(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Block_Time(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); return ret; } - public static uint SKY_coin_Block_Seq(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Block_Seq(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static uint SKY_coin_Block_Seq(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Block_Seq(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); return ret; } - public static uint SKY_coin_Block_HashBody(SWIGTYPE_p_Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Block_HashBody(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + public static uint SKY_coin_Block_HashBody(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Block_HashBody(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); return ret; } - public static uint SKY_coin_Block_Size(SWIGTYPE_p_Handle p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Block_Size(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_coin_Block_Size(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Block_Size(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); return ret; } - public static uint SKY_coin_Block_String(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Block_String(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_coin_Block_String(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Block_String(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } - public static uint SKY_coin_Block_GetTransaction(SWIGTYPE_p_Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_unsigned_char p3) { - uint ret = skycoinPINVOKE.SKY_coin_Block_GetTransaction(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p3)); + public static uint SKY_coin_Block_GetTransaction(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_unsigned_char p3) { + uint ret = skycoinPINVOKE.SKY_coin_Block_GetTransaction(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p3)); return ret; } - public static uint SKY_coin_NewBlockHeader(coin__BlockHeader p0, SWIGTYPE_p_a_32__GoUint8_ p1, ulong p2, ulong p3, SWIGTYPE_p_Handle p4, coin__BlockHeader p5) { - uint ret = skycoinPINVOKE.SKY_coin_NewBlockHeader(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), p2, p3, SWIGTYPE_p_Handle.getCPtr(p4), coin__BlockHeader.getCPtr(p5)); + public static uint SKY_coin_NewBlockHeader(coin__BlockHeader p0, SWIGTYPE_p_a_32__GoUint8_ p1, ulong p2, ulong p3, SWIGTYPE_p_GoInt64_ p4, coin__BlockHeader p5) { + uint ret = skycoinPINVOKE.SKY_coin_NewBlockHeader(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), p2, p3, SWIGTYPE_p_GoInt64_.getCPtr(p4), coin__BlockHeader.getCPtr(p5)); return ret; } @@ -110,8 +110,8 @@ public static uint SKY_coin_BlockHeader_String(coin__BlockHeader p0, SWIGTYPE_p_ return ret; } - public static uint SKY_coin_BlockBody_Hash(SWIGTYPE_p_Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Hash(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + public static uint SKY_coin_BlockBody_Hash(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Hash(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); return ret; } @@ -120,33 +120,33 @@ public static uint SKY_coin_BlockBody_Size(SWIGTYPE_p_long_long p1) { return ret; } - public static uint SKY_coin_BlockBody_Bytes(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Bytes(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_coin_BlockBody_Bytes(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Bytes(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); return ret; } - public static uint SKY_coin_CreateUnspents(coin__BlockHeader p0, SWIGTYPE_p_Handle p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_CreateUnspents(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + public static uint SKY_coin_CreateUnspents(coin__BlockHeader p0, SWIGTYPE_p_GoInt64_ p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_CreateUnspents(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_GoInt64_.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); return ret; } - public static uint SKY_coin_CreateUnspent(coin__BlockHeader p0, SWIGTYPE_p_Handle p1, long p2, coin__UxOut p3) { - uint ret = skycoinPINVOKE.SKY_coin_CreateUnspent(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1), p2, coin__UxOut.getCPtr(p3)); + public static uint SKY_coin_CreateUnspent(coin__BlockHeader p0, SWIGTYPE_p_GoInt64_ p1, long p2, coin__UxOut p3) { + uint ret = skycoinPINVOKE.SKY_coin_CreateUnspent(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_GoInt64_.getCPtr(p1), p2, coin__UxOut.getCPtr(p3)); return ret; } - public static uint SKY_coin_GetBlockObject(SWIGTYPE_p_Handle p0, SWIGTYPE_p_p_coin__Block p1) { - uint ret = skycoinPINVOKE.SKY_coin_GetBlockObject(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_p_coin__Block.getCPtr(p1)); + public static uint SKY_coin_GetBlockObject(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_p_coin__Block p1) { + uint ret = skycoinPINVOKE.SKY_coin_GetBlockObject(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_p_coin__Block.getCPtr(p1)); return ret; } - public static uint SKY_coin_GetBlockBody(SWIGTYPE_p_Handle p0) { - uint ret = skycoinPINVOKE.SKY_coin_GetBlockBody(SWIGTYPE_p_Handle.getCPtr(p0)); + public static uint SKY_coin_GetBlockBody(SWIGTYPE_p_GoInt64_ p0) { + uint ret = skycoinPINVOKE.SKY_coin_GetBlockBody(SWIGTYPE_p_GoInt64_.getCPtr(p0)); return ret; } - public static uint SKY_coin_NewEmptyBlock(SWIGTYPE_p_Handle p0) { - uint ret = skycoinPINVOKE.SKY_coin_NewEmptyBlock(SWIGTYPE_p_Handle.getCPtr(p0)); + public static uint SKY_coin_NewEmptyBlock(SWIGTYPE_p_GoInt64_ p0) { + uint ret = skycoinPINVOKE.SKY_coin_NewEmptyBlock(SWIGTYPE_p_GoInt64_.getCPtr(p0)); return ret; } @@ -388,8 +388,8 @@ public static uint SKY_api_Client_UnconfirmedTransactions(SWIGTYPE_p_Client__Han return ret; } - public static uint SKY_api_Client_InjectTransaction(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1, SWIGTYPE_p_GoString_ p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_InjectTransaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); + public static uint SKY_api_Client_InjectTransaction(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_GoInt64_ p1, SWIGTYPE_p_GoString_ p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_InjectTransaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_GoInt64_.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); return ret; } @@ -500,25 +500,25 @@ public static uint SKY_secp256k1go_XY_GetPublicKey(secp256k1go__XY p0, SWIGTYPE_ return ret; } - public static uint SKY_api_NewWalletResponse(SWIGTYPE_p_Handle p0, SWIGTYPE_p_WalletResponse__Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_NewWalletResponse(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p1)); + public static uint SKY_api_NewWalletResponse(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_WalletResponse__Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_NewWalletResponse(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p1)); return ret; } - public static uint SKY_api_NewCreateTransactionResponse(SWIGTYPE_p_Handle p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_api_NewCreateTransactionResponse(SWIGTYPE_p_Handle.getCPtr(p0), GoSlice.getCPtr(p1)); + public static uint SKY_api_NewCreateTransactionResponse(SWIGTYPE_p_GoInt64_ p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_api_NewCreateTransactionResponse(SWIGTYPE_p_GoInt64_.getCPtr(p0), GoSlice.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_NewCreatedTransaction(SWIGTYPE_p_Handle p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_api_NewCreatedTransaction(SWIGTYPE_p_Handle.getCPtr(p0), GoSlice.getCPtr(p1)); + public static uint SKY_api_NewCreatedTransaction(SWIGTYPE_p_GoInt64_ p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_api_NewCreatedTransaction(SWIGTYPE_p_GoInt64_.getCPtr(p0), GoSlice.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_CreatedTransaction_ToTransaction(SWIGTYPE_p_Handle p0) { - uint ret = skycoinPINVOKE.SKY_api_CreatedTransaction_ToTransaction(SWIGTYPE_p_Handle.getCPtr(p0)); + public static uint SKY_api_CreatedTransaction_ToTransaction(SWIGTYPE_p_GoInt64_ p0) { + uint ret = skycoinPINVOKE.SKY_api_CreatedTransaction_ToTransaction(SWIGTYPE_p_GoInt64_.getCPtr(p0)); return ret; } @@ -538,20 +538,20 @@ public static uint SKY_wallet_NewError(GoInterface p0) { return ret; } - public static uint SKY_wallet_NewWallet(_GoString_ p0, SWIGTYPE_p_Handle p1) { - uint ret = skycoinPINVOKE.SKY_wallet_NewWallet(_GoString_.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + public static uint SKY_wallet_NewWallet(_GoString_ p0, SWIGTYPE_p_GoInt64_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_NewWallet(_GoString_.getCPtr(p0), SWIGTYPE_p_GoInt64_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_wallet_Wallet_Lock(SWIGTYPE_p_Handle p0, GoSlice p1, _GoString_ p2) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Lock(SWIGTYPE_p_Handle.getCPtr(p0), GoSlice.getCPtr(p1), _GoString_.getCPtr(p2)); + public static uint SKY_wallet_Wallet_Lock(SWIGTYPE_p_GoInt64_ p0, GoSlice p1, _GoString_ p2) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Lock(SWIGTYPE_p_GoInt64_.getCPtr(p0), GoSlice.getCPtr(p1), _GoString_.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_wallet_Wallet_Unlock(SWIGTYPE_p_Handle p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Unlock(SWIGTYPE_p_Handle.getCPtr(p0), GoSlice.getCPtr(p1)); + public static uint SKY_wallet_Wallet_Unlock(SWIGTYPE_p_GoInt64_ p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Unlock(SWIGTYPE_p_GoInt64_.getCPtr(p0), GoSlice.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -562,59 +562,59 @@ public static uint SKY_wallet_Load(_GoString_ p0) { return ret; } - public static uint SKY_wallet_Wallet_Save(SWIGTYPE_p_Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Save(SWIGTYPE_p_Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + public static uint SKY_wallet_Wallet_Save(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Save(SWIGTYPE_p_GoInt64_.getCPtr(p0), _GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_wallet_Wallet_Validate(SWIGTYPE_p_Handle p0) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Validate(SWIGTYPE_p_Handle.getCPtr(p0)); + public static uint SKY_wallet_Wallet_Validate(SWIGTYPE_p_GoInt64_ p0) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Validate(SWIGTYPE_p_GoInt64_.getCPtr(p0)); return ret; } - public static uint SKY_wallet_Wallet_Type(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Type(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_wallet_Wallet_Type(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Type(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } - public static uint SKY_wallet_Wallet_Version(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Version(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_wallet_Wallet_Version(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Version(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } - public static uint SKY_wallet_Wallet_Filename(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Filename(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_wallet_Wallet_Filename(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Filename(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } - public static uint SKY_wallet_Wallet_Label(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Label(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_wallet_Wallet_Label(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Label(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } - public static uint SKY_wallet_Wallet_IsEncrypted(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_IsEncrypted(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + public static uint SKY_wallet_Wallet_IsEncrypted(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_IsEncrypted(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); return ret; } - public static uint SKY_wallet_Wallet_GenerateAddresses(SWIGTYPE_p_Handle p0, ulong p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GenerateAddresses(SWIGTYPE_p_Handle.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2)); + public static uint SKY_wallet_Wallet_GenerateAddresses(SWIGTYPE_p_GoInt64_ p0, ulong p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GenerateAddresses(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2)); return ret; } - public static uint SKY_wallet_Wallet_GetAddresses(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GetAddresses(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_wallet_Wallet_GetAddresses(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GetAddresses(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); return ret; } - public static uint SKY_wallet_Wallet_GetEntry(SWIGTYPE_p_Handle p0, cipher__Address p1, wallet__Entry p2, SWIGTYPE_p_unsigned_char p3) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GetEntry(SWIGTYPE_p_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), wallet__Entry.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); + public static uint SKY_wallet_Wallet_GetEntry(SWIGTYPE_p_GoInt64_ p0, cipher__Address p1, wallet__Entry p2, SWIGTYPE_p_unsigned_char p3) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GetEntry(SWIGTYPE_p_GoInt64_.getCPtr(p0), cipher__Address.getCPtr(p1), wallet__Entry.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); return ret; } - public static uint SKY_wallet_Wallet_AddEntry(SWIGTYPE_p_Handle p0, wallet__Entry p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_AddEntry(SWIGTYPE_p_Handle.getCPtr(p0), wallet__Entry.getCPtr(p1)); + public static uint SKY_wallet_Wallet_AddEntry(SWIGTYPE_p_GoInt64_ p0, wallet__Entry p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_AddEntry(SWIGTYPE_p_GoInt64_.getCPtr(p0), wallet__Entry.getCPtr(p1)); return ret; } @@ -651,14 +651,14 @@ public static uint SKY_wallet_ChooseSpendsMaximizeUxOuts(GoSlice p0, ulong p1, u return ret; } - public static uint SKY_cli_CheckWalletBalance(SWIGTYPE_p_Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_CheckWalletBalance(SWIGTYPE_p_Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + public static uint SKY_cli_CheckWalletBalance(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_CheckWalletBalance(SWIGTYPE_p_GoInt64_.getCPtr(p0), _GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cli_GetBalanceOfAddresses(SWIGTYPE_p_Handle p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_cli_GetBalanceOfAddresses(SWIGTYPE_p_Handle.getCPtr(p0), GoSlice.getCPtr(p1)); + public static uint SKY_cli_GetBalanceOfAddresses(SWIGTYPE_p_GoInt64_ p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_cli_GetBalanceOfAddresses(SWIGTYPE_p_GoInt64_.getCPtr(p0), GoSlice.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -833,46 +833,46 @@ public static uint SKY_webrpc_NewClient(_GoString_ p0) { return ret; } - public static uint SKY_webrpc_Client_CSRF(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_CSRF(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_webrpc_Client_CSRF(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_CSRF(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } - public static uint SKY_webrpc_Client_InjectTransaction(SWIGTYPE_p_Handle p0, SWIGTYPE_p_Handle p1, SWIGTYPE_p_GoString_ p2) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_InjectTransaction(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); + public static uint SKY_webrpc_Client_InjectTransaction(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoInt64_ p1, SWIGTYPE_p_GoString_ p2) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_InjectTransaction(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoInt64_.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); return ret; } - public static uint SKY_webrpc_Client_GetStatus(SWIGTYPE_p_Handle p0) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetStatus(SWIGTYPE_p_Handle.getCPtr(p0)); + public static uint SKY_webrpc_Client_GetStatus(SWIGTYPE_p_GoInt64_ p0) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetStatus(SWIGTYPE_p_GoInt64_.getCPtr(p0)); return ret; } - public static uint SKY_webrpc_Client_GetTransactionByID(SWIGTYPE_p_Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetTransactionByID(SWIGTYPE_p_Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + public static uint SKY_webrpc_Client_GetTransactionByID(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetTransactionByID(SWIGTYPE_p_GoInt64_.getCPtr(p0), _GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_webrpc_Client_GetAddressUxOuts(SWIGTYPE_p_Handle p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetAddressUxOuts(SWIGTYPE_p_Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + public static uint SKY_webrpc_Client_GetAddressUxOuts(SWIGTYPE_p_GoInt64_ p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetAddressUxOuts(SWIGTYPE_p_GoInt64_.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_webrpc_Client_GetBlocks(SWIGTYPE_p_Handle p0, ulong p1, ulong p2, SWIGTYPE_p_GoSlice_ p3) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetBlocks(SWIGTYPE_p_Handle.getCPtr(p0), p1, p2, SWIGTYPE_p_GoSlice_.getCPtr(p3)); + public static uint SKY_webrpc_Client_GetBlocks(SWIGTYPE_p_GoInt64_ p0, ulong p1, ulong p2, SWIGTYPE_p_GoSlice_ p3) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetBlocks(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1, p2, SWIGTYPE_p_GoSlice_.getCPtr(p3)); return ret; } - public static uint SKY_webrpc_Client_GetBlocksBySeq(SWIGTYPE_p_Handle p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetBlocksBySeq(SWIGTYPE_p_Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + public static uint SKY_webrpc_Client_GetBlocksBySeq(SWIGTYPE_p_GoInt64_ p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetBlocksBySeq(SWIGTYPE_p_GoInt64_.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_webrpc_Client_GetLastBlocks(SWIGTYPE_p_Handle p0, ulong p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetLastBlocks(SWIGTYPE_p_Handle.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2)); + public static uint SKY_webrpc_Client_GetLastBlocks(SWIGTYPE_p_GoInt64_ p0, ulong p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetLastBlocks(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2)); return ret; } @@ -921,8 +921,8 @@ public static uint SKY_secp256k1_RandByte(long p0, SWIGTYPE_p_GoSlice_ p1) { return ret; } - public static uint SKY_cli_GenerateAddressesInFile(_GoString_ p0, ulong p1, SWIGTYPE_p_Handle p2, SWIGTYPE_p_GoSlice_ p3) { - uint ret = skycoinPINVOKE.SKY_cli_GenerateAddressesInFile(_GoString_.getCPtr(p0), p1, SWIGTYPE_p_Handle.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); + public static uint SKY_cli_GenerateAddressesInFile(_GoString_ p0, ulong p1, SWIGTYPE_p_GoInt64_ p2, SWIGTYPE_p_GoSlice_ p3) { + uint ret = skycoinPINVOKE.SKY_cli_GenerateAddressesInFile(_GoString_.getCPtr(p0), p1, SWIGTYPE_p_GoInt64_.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -1125,45 +1125,45 @@ public static uint SKY_secp256k1go_Signature_Create() { return ret; } - public static uint SKY_secp256k1go_Signature_GetR(SWIGTYPE_p_Handle p0) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_GetR(SWIGTYPE_p_Handle.getCPtr(p0)); + public static uint SKY_secp256k1go_Signature_GetR(SWIGTYPE_p_GoInt64_ p0) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_GetR(SWIGTYPE_p_GoInt64_.getCPtr(p0)); return ret; } - public static uint SKY_secp256k1go_Signature_GetS(SWIGTYPE_p_Handle p0) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_GetS(SWIGTYPE_p_Handle.getCPtr(p0)); + public static uint SKY_secp256k1go_Signature_GetS(SWIGTYPE_p_GoInt64_ p0) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_GetS(SWIGTYPE_p_GoInt64_.getCPtr(p0)); return ret; } - public static uint SKY_secp256k1go_Signature_Print(SWIGTYPE_p_Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Print(SWIGTYPE_p_Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + public static uint SKY_secp256k1go_Signature_Print(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Print(SWIGTYPE_p_GoInt64_.getCPtr(p0), _GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Signature_Verify(SWIGTYPE_p_Handle p0, secp256k1go__XY p1, SWIGTYPE_p_Handle p2, SWIGTYPE_p_unsigned_char p3) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Verify(SWIGTYPE_p_Handle.getCPtr(p0), secp256k1go__XY.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); + public static uint SKY_secp256k1go_Signature_Verify(SWIGTYPE_p_GoInt64_ p0, secp256k1go__XY p1, SWIGTYPE_p_GoInt64_ p2, SWIGTYPE_p_unsigned_char p3) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Verify(SWIGTYPE_p_GoInt64_.getCPtr(p0), secp256k1go__XY.getCPtr(p1), SWIGTYPE_p_GoInt64_.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); return ret; } - public static uint SKY_secp256k1go_Signature_Recover(SWIGTYPE_p_Handle p0, secp256k1go__XY p1, SWIGTYPE_p_Handle p2, long p3, SWIGTYPE_p_unsigned_char p4) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Recover(SWIGTYPE_p_Handle.getCPtr(p0), secp256k1go__XY.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2), p3, SWIGTYPE_p_unsigned_char.getCPtr(p4)); + public static uint SKY_secp256k1go_Signature_Recover(SWIGTYPE_p_GoInt64_ p0, secp256k1go__XY p1, SWIGTYPE_p_GoInt64_ p2, long p3, SWIGTYPE_p_unsigned_char p4) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Recover(SWIGTYPE_p_GoInt64_.getCPtr(p0), secp256k1go__XY.getCPtr(p1), SWIGTYPE_p_GoInt64_.getCPtr(p2), p3, SWIGTYPE_p_unsigned_char.getCPtr(p4)); return ret; } - public static uint SKY_secp256k1go_Signature_Sign(SWIGTYPE_p_Handle p0, SWIGTYPE_p_Handle p1, SWIGTYPE_p_Handle p2, SWIGTYPE_p_Handle p3, SWIGTYPE_p_long_long p4, SWIGTYPE_p_long_long p5) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Sign(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2), SWIGTYPE_p_Handle.getCPtr(p3), SWIGTYPE_p_long_long.getCPtr(p4), SWIGTYPE_p_long_long.getCPtr(p5)); + public static uint SKY_secp256k1go_Signature_Sign(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoInt64_ p1, SWIGTYPE_p_GoInt64_ p2, SWIGTYPE_p_GoInt64_ p3, SWIGTYPE_p_long_long p4, SWIGTYPE_p_long_long p5) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Sign(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoInt64_.getCPtr(p1), SWIGTYPE_p_GoInt64_.getCPtr(p2), SWIGTYPE_p_GoInt64_.getCPtr(p3), SWIGTYPE_p_long_long.getCPtr(p4), SWIGTYPE_p_long_long.getCPtr(p5)); return ret; } - public static uint SKY_secp256k1go_Signature_ParseBytes(SWIGTYPE_p_Handle p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_ParseBytes(SWIGTYPE_p_Handle.getCPtr(p0), GoSlice.getCPtr(p1)); + public static uint SKY_secp256k1go_Signature_ParseBytes(SWIGTYPE_p_GoInt64_ p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_ParseBytes(SWIGTYPE_p_GoInt64_.getCPtr(p0), GoSlice.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Signature_Bytes(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Bytes(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_secp256k1go_Signature_Bytes(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Bytes(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); return ret; } @@ -1173,13 +1173,13 @@ public static uint SKY_cli_App_Run(SWIGTYPE_p_App__Handle p0, _GoString_ p1) { return ret; } - public static uint SKY_cli_Config_GetCoin(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_Config_GetCoin(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_cli_Config_GetCoin(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_Config_GetCoin(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } - public static uint SKY_cli_Config_GetRPCAddress(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_Config_GetRPCAddress(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_cli_Config_GetRPCAddress(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_Config_GetRPCAddress(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } @@ -1341,8 +1341,8 @@ public static uint SKY_secp256k1go_XYZ_Equals(secp256k1go__XYZ p0, secp256k1go__ return ret; } - public static uint SKY_secp256k1go_XYZ_ECmult(secp256k1go__XYZ p0, secp256k1go__XYZ p1, SWIGTYPE_p_Handle p2, SWIGTYPE_p_Handle p3) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_ECmult(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2), SWIGTYPE_p_Handle.getCPtr(p3)); + public static uint SKY_secp256k1go_XYZ_ECmult(secp256k1go__XYZ p0, secp256k1go__XYZ p1, SWIGTYPE_p_GoInt64_ p2, SWIGTYPE_p_GoInt64_ p3) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_ECmult(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1), SWIGTYPE_p_GoInt64_.getCPtr(p2), SWIGTYPE_p_GoInt64_.getCPtr(p3)); return ret; } @@ -1366,8 +1366,8 @@ public static uint SKY_secp256k1go_XYZ_Add(secp256k1go__XYZ p0, secp256k1go__XYZ return ret; } - public static uint SKY_secp256k1go_ECmultGen(secp256k1go__XYZ p0, SWIGTYPE_p_Handle p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_ECmultGen(secp256k1go__XYZ.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + public static uint SKY_secp256k1go_ECmultGen(secp256k1go__XYZ p0, SWIGTYPE_p_GoInt64_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_ECmultGen(secp256k1go__XYZ.getCPtr(p0), SWIGTYPE_p_GoInt64_.getCPtr(p1)); return ret; } @@ -1400,12 +1400,12 @@ public static uint SKY_wallet_CryptoTypeFromString(_GoString_ p0, SWIGTYPE_p_GoS return ret; } - public static void SKY_handle_close(SWIGTYPE_p_Handle p0) { - skycoinPINVOKE.SKY_handle_close(SWIGTYPE_p_Handle.getCPtr(p0)); + public static void SKY_handle_close(SWIGTYPE_p_GoInt64_ p0) { + skycoinPINVOKE.SKY_handle_close(SWIGTYPE_p_GoInt64_.getCPtr(p0)); } - public static uint SKY_handle_copy(SWIGTYPE_p_Handle p0) { - uint ret = skycoinPINVOKE.SKY_handle_copy(SWIGTYPE_p_Handle.getCPtr(p0)); + public static uint SKY_handle_copy(SWIGTYPE_p_GoInt64_ p0) { + uint ret = skycoinPINVOKE.SKY_handle_copy(SWIGTYPE_p_GoInt64_.getCPtr(p0)); return ret; } @@ -1531,43 +1531,43 @@ public static uint SKY_cipher_SecKeyFromWalletImportFormat(_GoString_ p0, SWIGTY return ret; } - public static uint SKY_JsonEncode_Handle(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_JsonEncode_Handle(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_JsonEncode_Handle(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_JsonEncode_Handle(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } - public static uint SKY_Handle_Progress_GetCurrent(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_Handle_Progress_GetCurrent(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static uint SKY_Handle_Progress_GetCurrent(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_Handle_Progress_GetCurrent(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); return ret; } - public static uint SKY_Handle_Block_GetHeadSeq(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_Handle_Block_GetHeadSeq(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static uint SKY_Handle_Block_GetHeadSeq(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_Handle_Block_GetHeadSeq(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); return ret; } - public static uint SKY_Handle_Block_GetHeadHash(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_Handle_Block_GetHeadHash(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_Handle_Block_GetHeadHash(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_Handle_Block_GetHeadHash(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } - public static uint SKY_Handle_Block_GetPreviousBlockHash(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_Handle_Block_GetPreviousBlockHash(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_Handle_Block_GetPreviousBlockHash(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_Handle_Block_GetPreviousBlockHash(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } - public static uint SKY_Handle_Blocks_GetAt(SWIGTYPE_p_Handle p0, ulong p1) { - uint ret = skycoinPINVOKE.SKY_Handle_Blocks_GetAt(SWIGTYPE_p_Handle.getCPtr(p0), p1); + public static uint SKY_Handle_Blocks_GetAt(SWIGTYPE_p_GoInt64_ p0, ulong p1) { + uint ret = skycoinPINVOKE.SKY_Handle_Blocks_GetAt(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1); return ret; } - public static uint SKY_Handle_Blocks_GetCount(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_Handle_Blocks_GetCount(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static uint SKY_Handle_Blocks_GetCount(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_Handle_Blocks_GetCount(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); return ret; } - public static uint SKY_Handle_Connections_GetCount(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_Handle_Connections_GetCount(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static uint SKY_Handle_Connections_GetCount(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_Handle_Connections_GetCount(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); return ret; } @@ -1606,13 +1606,13 @@ public static uint SKY_api_Handle_Client_GetWalletFullPath(SWIGTYPE_p_Client__Ha return ret; } - public static uint SKY_api_Handle_GetWalletMeta(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoStringMap_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletMeta(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoStringMap_.getCPtr(p1)); + public static uint SKY_api_Handle_GetWalletMeta(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoStringMap_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletMeta(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoStringMap_.getCPtr(p1)); return ret; } - public static uint SKY_api_Handle_GetWalletEntriesCount(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_int p1) { - uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletEntriesCount(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); + public static uint SKY_api_Handle_GetWalletEntriesCount(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_unsigned_int p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletEntriesCount(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); return ret; } @@ -1621,8 +1621,8 @@ public static uint SKY_api_Handle_Client_GetWalletResponseEntriesCount(SWIGTYPE_ return ret; } - public static uint SKY_api_Handle_WalletGetEntry(SWIGTYPE_p_Handle p0, uint p1, cipher__Address p2, SWIGTYPE_p_cipher_PubKey p3) { - uint ret = skycoinPINVOKE.SKY_api_Handle_WalletGetEntry(SWIGTYPE_p_Handle.getCPtr(p0), p1, cipher__Address.getCPtr(p2), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p3)); + public static uint SKY_api_Handle_WalletGetEntry(SWIGTYPE_p_GoInt64_ p0, uint p1, cipher__Address p2, SWIGTYPE_p_cipher_PubKey p3) { + uint ret = skycoinPINVOKE.SKY_api_Handle_WalletGetEntry(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1, cipher__Address.getCPtr(p2), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p3)); return ret; } @@ -1651,23 +1651,23 @@ public static uint SKY_api_Handle_WalletsResponseGetAt(SWIGTYPE_p_Wallets__Handl return ret; } - public static uint SKY_api_Handle_GetWalletFolderAddress(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletFolderAddress(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_api_Handle_GetWalletFolderAddress(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletFolderAddress(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } - public static uint SKY_api_Handle_GetWalletSeed(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletSeed(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_api_Handle_GetWalletSeed(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletSeed(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } - public static uint SKY_api_Handle_GetWalletLastSeed(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletLastSeed(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_api_Handle_GetWalletLastSeed(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletLastSeed(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } - public static uint SKY_api_Handle_GetBuildInfoData(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1, SWIGTYPE_p_GoString_ p2, SWIGTYPE_p_GoString_ p3) { - uint ret = skycoinPINVOKE.SKY_api_Handle_GetBuildInfoData(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2), SWIGTYPE_p_GoString_.getCPtr(p3)); + public static uint SKY_api_Handle_GetBuildInfoData(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoString_ p1, SWIGTYPE_p_GoString_ p2, SWIGTYPE_p_GoString_ p3) { + uint ret = skycoinPINVOKE.SKY_api_Handle_GetBuildInfoData(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2), SWIGTYPE_p_GoString_.getCPtr(p3)); return ret; } @@ -1676,14 +1676,14 @@ public static uint SKY_ripemd160_New() { return ret; } - public static uint SKY_ripemd160_Write(SWIGTYPE_p_Handle p0, GoSlice p1, SWIGTYPE_p_long_long p2) { - uint ret = skycoinPINVOKE.SKY_ripemd160_Write(SWIGTYPE_p_Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_long_long.getCPtr(p2)); + public static uint SKY_ripemd160_Write(SWIGTYPE_p_GoInt64_ p0, GoSlice p1, SWIGTYPE_p_long_long p2) { + uint ret = skycoinPINVOKE.SKY_ripemd160_Write(SWIGTYPE_p_GoInt64_.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_long_long.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_ripemd160_Sum(SWIGTYPE_p_Handle p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_ripemd160_Sum(SWIGTYPE_p_Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + public static uint SKY_ripemd160_Sum(SWIGTYPE_p_GoInt64_ p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_ripemd160_Sum(SWIGTYPE_p_GoInt64_.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -1693,25 +1693,25 @@ public static uint SKY_secp256k1go_Number_Create() { return ret; } - public static uint SKY_secp256k1go_Number_Print(SWIGTYPE_p_Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_Print(SWIGTYPE_p_Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + public static uint SKY_secp256k1go_Number_Print(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_Print(SWIGTYPE_p_GoInt64_.getCPtr(p0), _GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Number_SetHex(SWIGTYPE_p_Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_SetHex(SWIGTYPE_p_Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + public static uint SKY_secp256k1go_Number_SetHex(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_SetHex(SWIGTYPE_p_GoInt64_.getCPtr(p0), _GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Number_IsOdd(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_IsOdd(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + public static uint SKY_secp256k1go_Number_IsOdd(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_IsOdd(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); return ret; } - public static uint SKY_secp256k1go_Number_IsEqual(SWIGTYPE_p_Handle p0, SWIGTYPE_p_Handle p1, SWIGTYPE_p_unsigned_char p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_IsEqual(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); + public static uint SKY_secp256k1go_Number_IsEqual(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoInt64_ p1, SWIGTYPE_p_unsigned_char p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_IsEqual(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoInt64_.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); return ret; } @@ -1790,48 +1790,48 @@ public static uint SKY_coin_NewAddressUxOuts(SWIGTYPE_p_GoSlice_ p0) { return ret; } - public static uint SKY_coin_AddressUxOuts_Keys(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Keys(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_coin_AddressUxOuts_Keys(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Keys(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); return ret; } - public static uint SKY_coin_AddressUxOuts_Flatten(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Flatten(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_coin_AddressUxOuts_Flatten(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Flatten(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); return ret; } - public static uint SKY_coin_AddressUxOuts_Sub(SWIGTYPE_p_Handle p0, SWIGTYPE_p_Handle p1) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Sub(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + public static uint SKY_coin_AddressUxOuts_Sub(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoInt64_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Sub(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoInt64_.getCPtr(p1)); return ret; } - public static uint SKY_coin_AddressUxOuts_Add(SWIGTYPE_p_Handle p0, SWIGTYPE_p_Handle p1) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Add(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + public static uint SKY_coin_AddressUxOuts_Add(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoInt64_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Add(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoInt64_.getCPtr(p1)); return ret; } - public static uint SKY_coin_AddressUxOuts_Get(SWIGTYPE_p_Handle p0, cipher__Address p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Get(SWIGTYPE_p_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + public static uint SKY_coin_AddressUxOuts_Get(SWIGTYPE_p_GoInt64_ p0, cipher__Address p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Get(SWIGTYPE_p_GoInt64_.getCPtr(p0), cipher__Address.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); return ret; } - public static uint SKY_coin_AddressUxOuts_HasKey(SWIGTYPE_p_Handle p0, cipher__Address p1, SWIGTYPE_p_unsigned_char p2) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_HasKey(SWIGTYPE_p_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); + public static uint SKY_coin_AddressUxOuts_HasKey(SWIGTYPE_p_GoInt64_ p0, cipher__Address p1, SWIGTYPE_p_unsigned_char p2) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_HasKey(SWIGTYPE_p_GoInt64_.getCPtr(p0), cipher__Address.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); return ret; } - public static uint SKY_coin_AddressUxOuts_GetOutputLength(SWIGTYPE_p_Handle p0, cipher__Address p1, SWIGTYPE_p_long_long p2) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_GetOutputLength(SWIGTYPE_p_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), SWIGTYPE_p_long_long.getCPtr(p2)); + public static uint SKY_coin_AddressUxOuts_GetOutputLength(SWIGTYPE_p_GoInt64_ p0, cipher__Address p1, SWIGTYPE_p_long_long p2) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_GetOutputLength(SWIGTYPE_p_GoInt64_.getCPtr(p0), cipher__Address.getCPtr(p1), SWIGTYPE_p_long_long.getCPtr(p2)); return ret; } - public static uint SKY_coin_AddressUxOuts_Length(SWIGTYPE_p_Handle p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Length(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_coin_AddressUxOuts_Length(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Length(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); return ret; } - public static uint SKY_coin_AddressUxOuts_Set(SWIGTYPE_p_Handle p0, cipher__Address p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Set(SWIGTYPE_p_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + public static uint SKY_coin_AddressUxOuts_Set(SWIGTYPE_p_GoInt64_ p0, cipher__Address p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Set(SWIGTYPE_p_GoInt64_.getCPtr(p0), cipher__Address.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); return ret; } @@ -1853,14 +1853,14 @@ public static uint SKY_wallet_CreateOptionsHandle(_GoString_ p0, _GoString_ p1, return ret; } - public static uint SKY_cli_AddPrivateKey(SWIGTYPE_p_Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_AddPrivateKey(SWIGTYPE_p_Handle.getCPtr(p0), _GoString_.getCPtr(p1)); + public static uint SKY_cli_AddPrivateKey(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_AddPrivateKey(SWIGTYPE_p_GoInt64_.getCPtr(p0), _GoString_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cli_AddPrivateKeyToFile(_GoString_ p0, _GoString_ p1, SWIGTYPE_p_Handle p2) { - uint ret = skycoinPINVOKE.SKY_cli_AddPrivateKeyToFile(_GoString_.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + public static uint SKY_cli_AddPrivateKeyToFile(_GoString_ p0, _GoString_ p1, SWIGTYPE_p_GoInt64_ p2) { + uint ret = skycoinPINVOKE.SKY_cli_AddPrivateKeyToFile(_GoString_.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_GoInt64_.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -1981,8 +1981,8 @@ public static uint SKY_cert_CreateCertIfNotExists(_GoString_ p0, _GoString_ p1, return ret; } - public static uint SKY_fee_VerifyTransactionFee(SWIGTYPE_p_Handle p0, ulong p1) { - uint ret = skycoinPINVOKE.SKY_fee_VerifyTransactionFee(SWIGTYPE_p_Handle.getCPtr(p0), p1); + public static uint SKY_fee_VerifyTransactionFee(SWIGTYPE_p_GoInt64_ p0, ulong p1) { + uint ret = skycoinPINVOKE.SKY_fee_VerifyTransactionFee(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1); return ret; } @@ -2001,8 +2001,8 @@ public static uint SKY_fee_RemainingHours(ulong p0, SWIGTYPE_p_unsigned_long_lon return ret; } - public static uint SKY_fee_TransactionFee(SWIGTYPE_p_Handle p0, ulong p1, SWIGTYPE_p_GoSlice_ p2, SWIGTYPE_p_unsigned_long_long p3) { - uint ret = skycoinPINVOKE.SKY_fee_TransactionFee(SWIGTYPE_p_Handle.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2), SWIGTYPE_p_unsigned_long_long.getCPtr(p3)); + public static uint SKY_fee_TransactionFee(SWIGTYPE_p_GoInt64_ p0, ulong p1, SWIGTYPE_p_GoSlice_ p2, SWIGTYPE_p_unsigned_long_long p3) { + uint ret = skycoinPINVOKE.SKY_fee_TransactionFee(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2), SWIGTYPE_p_unsigned_long_long.getCPtr(p3)); return ret; } @@ -2011,18 +2011,18 @@ public static uint SKY_cli_LoadConfig() { return ret; } - public static uint SKY_cli_Config_FullWalletPath(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_Config_FullWalletPath(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_cli_Config_FullWalletPath(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_Config_FullWalletPath(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } - public static uint SKY_cli_Config_FullDBPath(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_Config_FullDBPath(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_cli_Config_FullDBPath(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_cli_Config_FullDBPath(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } - public static uint SKY_cli_NewApp(SWIGTYPE_p_Handle p0, SWIGTYPE_p_App__Handle p1) { - uint ret = skycoinPINVOKE.SKY_cli_NewApp(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_App__Handle.getCPtr(p1)); + public static uint SKY_cli_NewApp(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_App__Handle p1) { + uint ret = skycoinPINVOKE.SKY_cli_NewApp(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_App__Handle.getCPtr(p1)); return ret; } @@ -2046,20 +2046,20 @@ public static uint SKY_cli_PasswordFromTerm_Password(SWIGTYPE_p_GoSlice_ p0) { return ret; } - public static uint SKY_cli_CreateRawTxFromWallet(SWIGTYPE_p_Handle p0, _GoString_ p1, _GoString_ p2, GoSlice p3, SWIGTYPE_p_Handle p4) { - uint ret = skycoinPINVOKE.SKY_cli_CreateRawTxFromWallet(SWIGTYPE_p_Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), GoSlice.getCPtr(p3), SWIGTYPE_p_Handle.getCPtr(p4)); + public static uint SKY_cli_CreateRawTxFromWallet(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1, _GoString_ p2, GoSlice p3, SWIGTYPE_p_GoInt64_ p4) { + uint ret = skycoinPINVOKE.SKY_cli_CreateRawTxFromWallet(SWIGTYPE_p_GoInt64_.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), GoSlice.getCPtr(p3), SWIGTYPE_p_GoInt64_.getCPtr(p4)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cli_CreateRawTxFromAddress(SWIGTYPE_p_Handle p0, _GoString_ p1, _GoString_ p2, _GoString_ p3, GoSlice p4, SWIGTYPE_p_Handle p5) { - uint ret = skycoinPINVOKE.SKY_cli_CreateRawTxFromAddress(SWIGTYPE_p_Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), _GoString_.getCPtr(p3), GoSlice.getCPtr(p4), SWIGTYPE_p_Handle.getCPtr(p5)); + public static uint SKY_cli_CreateRawTxFromAddress(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1, _GoString_ p2, _GoString_ p3, GoSlice p4, SWIGTYPE_p_GoInt64_ p5) { + uint ret = skycoinPINVOKE.SKY_cli_CreateRawTxFromAddress(SWIGTYPE_p_GoInt64_.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), _GoString_.getCPtr(p3), GoSlice.getCPtr(p4), SWIGTYPE_p_GoInt64_.getCPtr(p5)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cli_CreateRawTx(SWIGTYPE_p_Handle p0, SWIGTYPE_p_Handle p1, GoSlice p2, _GoString_ p3, GoSlice p4, GoSlice p5) { - uint ret = skycoinPINVOKE.SKY_cli_CreateRawTx(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1), GoSlice.getCPtr(p2), _GoString_.getCPtr(p3), GoSlice.getCPtr(p4), GoSlice.getCPtr(p5)); + public static uint SKY_cli_CreateRawTx(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoInt64_ p1, GoSlice p2, _GoString_ p3, GoSlice p4, GoSlice p5) { + uint ret = skycoinPINVOKE.SKY_cli_CreateRawTx(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoInt64_.getCPtr(p1), GoSlice.getCPtr(p2), _GoString_.getCPtr(p3), GoSlice.getCPtr(p4), GoSlice.getCPtr(p5)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -2093,14 +2093,14 @@ public static uint SKY_file_DetermineResourcePath(_GoString_ p0, _GoString_ p1, return ret; } - public static uint SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_Handle p0, _GoString_ p1, SWIGTYPE_p_ReadableOutputSet_Handle p2) { - uint ret = skycoinPINVOKE.SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_ReadableOutputSet_Handle.getCPtr(p2)); + public static uint SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1, SWIGTYPE_p_ReadableOutputSet_Handle p2) { + uint ret = skycoinPINVOKE.SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_GoInt64_.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_ReadableOutputSet_Handle.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cli_GetWalletOutputs(SWIGTYPE_p_Handle p0, SWIGTYPE_p_ReadableOutputSet_Handle p2) { - uint ret = skycoinPINVOKE.SKY_cli_GetWalletOutputs(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_ReadableOutputSet_Handle.getCPtr(p2)); + public static uint SKY_cli_GetWalletOutputs(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_ReadableOutputSet_Handle p2) { + uint ret = skycoinPINVOKE.SKY_cli_GetWalletOutputs(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_ReadableOutputSet_Handle.getCPtr(p2)); return ret; } @@ -2281,93 +2281,93 @@ public static uint SKY_coin_Create_Transaction() { return ret; } - public static uint SKY_coin_Transaction_Copy(SWIGTYPE_p_Handle p0) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_Copy(SWIGTYPE_p_Handle.getCPtr(p0)); + public static uint SKY_coin_Transaction_Copy(SWIGTYPE_p_GoInt64_ p0) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_Copy(SWIGTYPE_p_GoInt64_.getCPtr(p0)); return ret; } - public static uint SKY_coin_GetTransactionObject(SWIGTYPE_p_Handle p0, SWIGTYPE_p_p_coin__Transaction p1) { - uint ret = skycoinPINVOKE.SKY_coin_GetTransactionObject(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_p_coin__Transaction.getCPtr(p1)); + public static uint SKY_coin_GetTransactionObject(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_p_coin__Transaction p1) { + uint ret = skycoinPINVOKE.SKY_coin_GetTransactionObject(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_p_coin__Transaction.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transaction_ResetInputs(SWIGTYPE_p_Handle p0, long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_ResetInputs(SWIGTYPE_p_Handle.getCPtr(p0), p1); + public static uint SKY_coin_Transaction_ResetInputs(SWIGTYPE_p_GoInt64_ p0, long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_ResetInputs(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1); return ret; } - public static uint SKY_coin_Transaction_GetInputsCount(SWIGTYPE_p_Handle p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetInputsCount(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_coin_Transaction_GetInputsCount(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetInputsCount(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transaction_GetInputAt(SWIGTYPE_p_Handle p0, long p1, SWIGTYPE_p_a_32__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetInputAt(SWIGTYPE_p_Handle.getCPtr(p0), p1, SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); + public static uint SKY_coin_Transaction_GetInputAt(SWIGTYPE_p_GoInt64_ p0, long p1, SWIGTYPE_p_a_32__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetInputAt(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1, SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); return ret; } - public static uint SKY_coin_Transaction_SetInputAt(SWIGTYPE_p_Handle p0, long p1, SWIGTYPE_p_a_32__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetInputAt(SWIGTYPE_p_Handle.getCPtr(p0), p1, SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); + public static uint SKY_coin_Transaction_SetInputAt(SWIGTYPE_p_GoInt64_ p0, long p1, SWIGTYPE_p_a_32__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetInputAt(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1, SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); return ret; } - public static uint SKY_coin_Transaction_GetOutputsCount(SWIGTYPE_p_Handle p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetOutputsCount(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_coin_Transaction_GetOutputsCount(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetOutputsCount(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transaction_GetOutputAt(SWIGTYPE_p_Handle p0, long p1, coin__TransactionOutput p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetOutputAt(SWIGTYPE_p_Handle.getCPtr(p0), p1, coin__TransactionOutput.getCPtr(p2)); + public static uint SKY_coin_Transaction_GetOutputAt(SWIGTYPE_p_GoInt64_ p0, long p1, coin__TransactionOutput p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetOutputAt(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1, coin__TransactionOutput.getCPtr(p2)); return ret; } - public static uint SKY_coin_Transaction_SetOutputAt(SWIGTYPE_p_Handle p0, long p1, coin__TransactionOutput p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetOutputAt(SWIGTYPE_p_Handle.getCPtr(p0), p1, coin__TransactionOutput.getCPtr(p2)); + public static uint SKY_coin_Transaction_SetOutputAt(SWIGTYPE_p_GoInt64_ p0, long p1, coin__TransactionOutput p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetOutputAt(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1, coin__TransactionOutput.getCPtr(p2)); return ret; } - public static uint SKY_coin_Transaction_GetSignaturesCount(SWIGTYPE_p_Handle p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetSignaturesCount(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_coin_Transaction_GetSignaturesCount(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetSignaturesCount(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transaction_GetSignatureAt(SWIGTYPE_p_Handle p0, long p1, SWIGTYPE_p_a_65__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetSignatureAt(SWIGTYPE_p_Handle.getCPtr(p0), p1, SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); + public static uint SKY_coin_Transaction_GetSignatureAt(SWIGTYPE_p_GoInt64_ p0, long p1, SWIGTYPE_p_a_65__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetSignatureAt(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1, SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); return ret; } - public static uint SKY_coin_Transaction_SetSignatureAt(SWIGTYPE_p_Handle p0, long p1, SWIGTYPE_p_a_65__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetSignatureAt(SWIGTYPE_p_Handle.getCPtr(p0), p1, SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); + public static uint SKY_coin_Transaction_SetSignatureAt(SWIGTYPE_p_GoInt64_ p0, long p1, SWIGTYPE_p_a_65__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetSignatureAt(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1, SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); return ret; } - public static uint SKY_coin_Transaction_PushSignature(SWIGTYPE_p_Handle p0, SWIGTYPE_p_a_65__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushSignature(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1)); + public static uint SKY_coin_Transaction_PushSignature(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_a_65__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushSignature(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transaction_ResetOutputs(SWIGTYPE_p_Handle p0, long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_ResetOutputs(SWIGTYPE_p_Handle.getCPtr(p0), p1); + public static uint SKY_coin_Transaction_ResetOutputs(SWIGTYPE_p_GoInt64_ p0, long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_ResetOutputs(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1); return ret; } - public static uint SKY_coin_Transaction_ResetSignatures(SWIGTYPE_p_Handle p0, long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_ResetSignatures(SWIGTYPE_p_Handle.getCPtr(p0), p1); + public static uint SKY_coin_Transaction_ResetSignatures(SWIGTYPE_p_GoInt64_ p0, long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_ResetSignatures(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1); return ret; } - public static uint SKY_coin_Transaction_Verify(SWIGTYPE_p_Handle p0) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_Verify(SWIGTYPE_p_Handle.getCPtr(p0)); + public static uint SKY_coin_Transaction_Verify(SWIGTYPE_p_GoInt64_ p0) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_Verify(SWIGTYPE_p_GoInt64_.getCPtr(p0)); return ret; } - public static uint SKY_coin_Transaction_VerifyInput(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_VerifyInput(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_coin_Transaction_VerifyInput(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_VerifyInput(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transaction_PushInput(SWIGTYPE_p_Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_unsigned_short p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushInput(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_unsigned_short.getCPtr(p2)); + public static uint SKY_coin_Transaction_PushInput(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_unsigned_short p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushInput(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_unsigned_short.getCPtr(p2)); return ret; } @@ -2376,54 +2376,54 @@ public static uint SKY_coin_TransactionOutput_UxID(coin__TransactionOutput p0, S return ret; } - public static uint SKY_coin_Transaction_PushOutput(SWIGTYPE_p_Handle p0, cipher__Address p1, ulong p2, ulong p3) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushOutput(SWIGTYPE_p_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), p2, p3); + public static uint SKY_coin_Transaction_PushOutput(SWIGTYPE_p_GoInt64_ p0, cipher__Address p1, ulong p2, ulong p3) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushOutput(SWIGTYPE_p_GoInt64_.getCPtr(p0), cipher__Address.getCPtr(p1), p2, p3); return ret; } - public static uint SKY_coin_Transaction_SignInputs(SWIGTYPE_p_Handle p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_SignInputs(SWIGTYPE_p_Handle.getCPtr(p0), GoSlice.getCPtr(p1)); + public static uint SKY_coin_Transaction_SignInputs(SWIGTYPE_p_GoInt64_ p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_SignInputs(SWIGTYPE_p_GoInt64_.getCPtr(p0), GoSlice.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_Transaction_Size(SWIGTYPE_p_Handle p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_Size(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_coin_Transaction_Size(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_Size(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transaction_Hash(SWIGTYPE_p_Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_Hash(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + public static uint SKY_coin_Transaction_Hash(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_Hash(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transaction_SizeHash(SWIGTYPE_p_Handle p0, SWIGTYPE_p_long_long p1, SWIGTYPE_p_a_32__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_SizeHash(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); + public static uint SKY_coin_Transaction_SizeHash(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_long_long p1, SWIGTYPE_p_a_32__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_SizeHash(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); return ret; } - public static uint SKY_coin_Transaction_TxID(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_TxID(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_coin_Transaction_TxID(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_TxID(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transaction_TxIDHex(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_TxIDHex(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); + public static uint SKY_coin_Transaction_TxIDHex(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoString_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_TxIDHex(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transaction_UpdateHeader(SWIGTYPE_p_Handle p0) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_UpdateHeader(SWIGTYPE_p_Handle.getCPtr(p0)); + public static uint SKY_coin_Transaction_UpdateHeader(SWIGTYPE_p_GoInt64_ p0) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_UpdateHeader(SWIGTYPE_p_GoInt64_.getCPtr(p0)); return ret; } - public static uint SKY_coin_Transaction_HashInner(SWIGTYPE_p_Handle p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_HashInner(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); + public static uint SKY_coin_Transaction_HashInner(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_HashInner(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transaction_Serialize(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_Serialize(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_coin_Transaction_Serialize(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_Serialize(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); return ret; } @@ -2433,8 +2433,8 @@ public static uint SKY_coin_TransactionDeserialize(GoSlice p0) { return ret; } - public static uint SKY_coin_Transaction_OutputHours(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_OutputHours(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static uint SKY_coin_Transaction_OutputHours(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_OutputHours(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); return ret; } @@ -2443,73 +2443,73 @@ public static uint SKY_coin_Create_Transactions() { return ret; } - public static uint SKY_coin_GetTransactionsObject(SWIGTYPE_p_Handle p0, SWIGTYPE_p_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_GetTransactionsObject(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_p_GoSlice_.getCPtr(p1)); + public static uint SKY_coin_GetTransactionsObject(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_GetTransactionsObject(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_p_GoSlice_.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transactions_Length(SWIGTYPE_p_Handle p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transactions_Length(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_coin_Transactions_Length(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_Length(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transactions_Add(SWIGTYPE_p_Handle p0, SWIGTYPE_p_Handle p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transactions_Add(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + public static uint SKY_coin_Transactions_Add(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoInt64_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_Add(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoInt64_.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transactions_Fees(SWIGTYPE_p_Handle p0, SWIGTYPE_p_FeeCalculator p1, SWIGTYPE_p_unsigned_long_long p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transactions_Fees(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1), SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); + public static uint SKY_coin_Transactions_Fees(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_FeeCalculator p1, SWIGTYPE_p_unsigned_long_long p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_Fees(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1), SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); return ret; } - public static uint SKY_coin_Transactions_GetAt(SWIGTYPE_p_Handle p0, long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transactions_GetAt(SWIGTYPE_p_Handle.getCPtr(p0), p1); + public static uint SKY_coin_Transactions_GetAt(SWIGTYPE_p_GoInt64_ p0, long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_GetAt(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1); return ret; } - public static uint SKY_coin_Transactions_Hashes(SWIGTYPE_p_Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transactions_Hashes(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_coin_Transactions_Hashes(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_Hashes(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transactions_Size(SWIGTYPE_p_Handle p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transactions_Size(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_coin_Transactions_Size(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_Size(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transactions_TruncateBytesTo(SWIGTYPE_p_Handle p0, long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transactions_TruncateBytesTo(SWIGTYPE_p_Handle.getCPtr(p0), p1); + public static uint SKY_coin_Transactions_TruncateBytesTo(SWIGTYPE_p_GoInt64_ p0, long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_TruncateBytesTo(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1); return ret; } - public static uint SKY_coin_SortTransactions(SWIGTYPE_p_Handle p0, SWIGTYPE_p_FeeCalculator p1) { - uint ret = skycoinPINVOKE.SKY_coin_SortTransactions(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1)); + public static uint SKY_coin_SortTransactions(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_FeeCalculator p1) { + uint ret = skycoinPINVOKE.SKY_coin_SortTransactions(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1)); return ret; } - public static uint SKY_coin_NewSortableTransactions(SWIGTYPE_p_Handle p0, SWIGTYPE_p_FeeCalculator p1) { - uint ret = skycoinPINVOKE.SKY_coin_NewSortableTransactions(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1)); + public static uint SKY_coin_NewSortableTransactions(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_FeeCalculator p1) { + uint ret = skycoinPINVOKE.SKY_coin_NewSortableTransactions(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1)); return ret; } - public static uint SKY_coin_SortableTransactions_Sort(SWIGTYPE_p_Handle p0) { - uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Sort(SWIGTYPE_p_Handle.getCPtr(p0)); + public static uint SKY_coin_SortableTransactions_Sort(SWIGTYPE_p_GoInt64_ p0) { + uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Sort(SWIGTYPE_p_GoInt64_.getCPtr(p0)); return ret; } - public static uint SKY_coin_SortableTransactions_Len(SWIGTYPE_p_Handle p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Len(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_coin_SortableTransactions_Len(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Len(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); return ret; } - public static uint SKY_coin_SortableTransactions_Less(SWIGTYPE_p_Handle p0, long p1, long p2, SWIGTYPE_p_unsigned_char p3) { - uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Less(SWIGTYPE_p_Handle.getCPtr(p0), p1, p2, SWIGTYPE_p_unsigned_char.getCPtr(p3)); + public static uint SKY_coin_SortableTransactions_Less(SWIGTYPE_p_GoInt64_ p0, long p1, long p2, SWIGTYPE_p_unsigned_char p3) { + uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Less(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1, p2, SWIGTYPE_p_unsigned_char.getCPtr(p3)); return ret; } - public static uint SKY_coin_SortableTransactions_Swap(SWIGTYPE_p_Handle p0, long p1, long p2) { - uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Swap(SWIGTYPE_p_Handle.getCPtr(p0), p1, p2); + public static uint SKY_coin_SortableTransactions_Swap(SWIGTYPE_p_GoInt64_ p0, long p1, long p2) { + uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Swap(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1, p2); return ret; } @@ -2523,162 +2523,162 @@ public static uint SKY_coin_VerifyTransactionHoursSpending(ulong p0, SWIGTYPE_p_ return ret; } - public static readonly long SKY_OK = skycoinPINVOKE.get_SKY_OK(); - public static readonly long SKY_ERROR = skycoinPINVOKE.get_SKY_ERROR(); - public static readonly long SKY_PKG_API = skycoinPINVOKE.get_SKY_PKG_API(); - public static readonly long SKY_PKG_CIPHER = skycoinPINVOKE.get_SKY_PKG_CIPHER(); - public static readonly long SKY_PKG_CLI = skycoinPINVOKE.get_SKY_PKG_CLI(); - public static readonly long SKY_PKG_COIN = skycoinPINVOKE.get_SKY_PKG_COIN(); - public static readonly long SKY_PKG_CONSENSUS = skycoinPINVOKE.get_SKY_PKG_CONSENSUS(); - public static readonly long SKY_PKG_DAEMON = skycoinPINVOKE.get_SKY_PKG_DAEMON(); - public static readonly long SKY_PKG_GUI = skycoinPINVOKE.get_SKY_PKG_GUI(); - public static readonly long SKY_PKG_SKYCOIN = skycoinPINVOKE.get_SKY_PKG_SKYCOIN(); - public static readonly long SKY_PKG_UTIL = skycoinPINVOKE.get_SKY_PKG_UTIL(); - public static readonly long SKY_PKG_VISOR = skycoinPINVOKE.get_SKY_PKG_VISOR(); - public static readonly long SKY_PKG_WALLET = skycoinPINVOKE.get_SKY_PKG_WALLET(); - public static readonly long SKY_ErrAddressInvalidLength = skycoinPINVOKE.get_SKY_ErrAddressInvalidLength(); - public static readonly long SKY_ErrAddressInvalidChecksum = skycoinPINVOKE.get_SKY_ErrAddressInvalidChecksum(); - public static readonly long SKY_ErrAddressInvalidVersion = skycoinPINVOKE.get_SKY_ErrAddressInvalidVersion(); - public static readonly long SKY_ErrAddressInvalidPubKey = skycoinPINVOKE.get_SKY_ErrAddressInvalidPubKey(); - public static readonly long SKY_ErrAddressInvalidFirstByte = skycoinPINVOKE.get_SKY_ErrAddressInvalidFirstByte(); - public static readonly long SKY_ErrAddressInvalidLastByte = skycoinPINVOKE.get_SKY_ErrAddressInvalidLastByte(); - public static readonly long SKY_ErrBufferUnderflow = skycoinPINVOKE.get_SKY_ErrBufferUnderflow(); - public static readonly long SKY_ErrInvalidOmitEmpty = skycoinPINVOKE.get_SKY_ErrInvalidOmitEmpty(); - public static readonly long SKY_ErrInvalidLengthPubKey = skycoinPINVOKE.get_SKY_ErrInvalidLengthPubKey(); - public static readonly long SKY_ErrPubKeyFromNullSecKey = skycoinPINVOKE.get_SKY_ErrPubKeyFromNullSecKey(); - public static readonly long SKY_ErrPubKeyFromBadSecKey = skycoinPINVOKE.get_SKY_ErrPubKeyFromBadSecKey(); - public static readonly long SKY_ErrInvalidLengthSecKey = skycoinPINVOKE.get_SKY_ErrInvalidLengthSecKey(); - public static readonly long SKY_ErrECHDInvalidPubKey = skycoinPINVOKE.get_SKY_ErrECHDInvalidPubKey(); - public static readonly long SKY_ErrECHDInvalidSecKey = skycoinPINVOKE.get_SKY_ErrECHDInvalidSecKey(); - public static readonly long SKY_ErrInvalidLengthSig = skycoinPINVOKE.get_SKY_ErrInvalidLengthSig(); - public static readonly long SKY_ErrInvalidLengthRipemd160 = skycoinPINVOKE.get_SKY_ErrInvalidLengthRipemd160(); - public static readonly long SKY_ErrInvalidLengthSHA256 = skycoinPINVOKE.get_SKY_ErrInvalidLengthSHA256(); - public static readonly long SKY_ErrInvalidBase58Char = skycoinPINVOKE.get_SKY_ErrInvalidBase58Char(); - public static readonly long SKY_ErrInvalidBase58String = skycoinPINVOKE.get_SKY_ErrInvalidBase58String(); - public static readonly long SKY_ErrInvalidBase58Length = skycoinPINVOKE.get_SKY_ErrInvalidBase58Length(); - public static readonly long SKY_ErrInvalidHexLength = skycoinPINVOKE.get_SKY_ErrInvalidHexLength(); - public static readonly long SKY_ErrInvalidBytesLength = skycoinPINVOKE.get_SKY_ErrInvalidBytesLength(); - public static readonly long SKY_ErrInvalidPubKey = skycoinPINVOKE.get_SKY_ErrInvalidPubKey(); - public static readonly long SKY_ErrInvalidSecKey = skycoinPINVOKE.get_SKY_ErrInvalidSecKey(); - public static readonly long SKY_ErrInvalidSigForPubKey = skycoinPINVOKE.get_SKY_ErrInvalidSigForPubKey(); - public static readonly long SKY_ErrInvalidSecKeyHex = skycoinPINVOKE.get_SKY_ErrInvalidSecKeyHex(); - public static readonly long SKY_ErrInvalidAddressForSig = skycoinPINVOKE.get_SKY_ErrInvalidAddressForSig(); - public static readonly long SKY_ErrInvalidHashForSig = skycoinPINVOKE.get_SKY_ErrInvalidHashForSig(); - public static readonly long SKY_ErrPubKeyRecoverMismatch = skycoinPINVOKE.get_SKY_ErrPubKeyRecoverMismatch(); - public static readonly long SKY_ErrInvalidSigInvalidPubKey = skycoinPINVOKE.get_SKY_ErrInvalidSigInvalidPubKey(); - public static readonly long SKY_ErrInvalidSigValidity = skycoinPINVOKE.get_SKY_ErrInvalidSigValidity(); - public static readonly long SKY_ErrInvalidSigForMessage = skycoinPINVOKE.get_SKY_ErrInvalidSigForMessage(); - public static readonly long SKY_ErrInvalidSecKyVerification = skycoinPINVOKE.get_SKY_ErrInvalidSecKyVerification(); - public static readonly long SKY_ErrNullPubKeyFromSecKey = skycoinPINVOKE.get_SKY_ErrNullPubKeyFromSecKey(); - public static readonly long SKY_ErrInvalidDerivedPubKeyFromSecKey = skycoinPINVOKE.get_SKY_ErrInvalidDerivedPubKeyFromSecKey(); - public static readonly long SKY_ErrInvalidPubKeyFromHash = skycoinPINVOKE.get_SKY_ErrInvalidPubKeyFromHash(); - public static readonly long SKY_ErrPubKeyFromSecKeyMissmatch = skycoinPINVOKE.get_SKY_ErrPubKeyFromSecKeyMissmatch(); - public static readonly long SKY_ErrTemporaryInsufficientBalance = skycoinPINVOKE.get_SKY_ErrTemporaryInsufficientBalance(); - public static readonly long SKY_ErrAddress = skycoinPINVOKE.get_SKY_ErrAddress(); - public static readonly long SKY_ErrWalletName = skycoinPINVOKE.get_SKY_ErrWalletName(); - public static readonly long SKY_ErrJSONMarshal = skycoinPINVOKE.get_SKY_ErrJSONMarshal(); - public static readonly long SKY_WalletLoadError = skycoinPINVOKE.get_SKY_WalletLoadError(); - public static readonly long SKY_WalletSaveError = skycoinPINVOKE.get_SKY_WalletSaveError(); - public static readonly long SKY_ErrAddEarnedCoinHoursAdditionOverflow = skycoinPINVOKE.get_SKY_ErrAddEarnedCoinHoursAdditionOverflow(); - public static readonly long SKY_ErrUint64MultOverflow = skycoinPINVOKE.get_SKY_ErrUint64MultOverflow(); - public static readonly long SKY_ErrUint64AddOverflow = skycoinPINVOKE.get_SKY_ErrUint64AddOverflow(); - public static readonly long SKY_ErrUint32AddOverflow = skycoinPINVOKE.get_SKY_ErrUint32AddOverflow(); - public static readonly long SKY_ErrUint64OverflowsInt64 = skycoinPINVOKE.get_SKY_ErrUint64OverflowsInt64(); - public static readonly long SKY_ErrInt64UnderflowsUint64 = skycoinPINVOKE.get_SKY_ErrInt64UnderflowsUint64(); - public static readonly long SKY_ErrPeerlistFull = skycoinPINVOKE.get_SKY_ErrPeerlistFull(); - public static readonly long SKY_ErrInvalidAddress = skycoinPINVOKE.get_SKY_ErrInvalidAddress(); - public static readonly long SKY_ErrNoLocalhost = skycoinPINVOKE.get_SKY_ErrNoLocalhost(); - public static readonly long SKY_ErrNotExternalIP = skycoinPINVOKE.get_SKY_ErrNotExternalIP(); - public static readonly long SKY_ErrPortTooLow = skycoinPINVOKE.get_SKY_ErrPortTooLow(); - public static readonly long SKY_ErrBlacklistedAddress = skycoinPINVOKE.get_SKY_ErrBlacklistedAddress(); - public static readonly long SKY_ErrDisconnectReadFailed = skycoinPINVOKE.get_SKY_ErrDisconnectReadFailed(); - public static readonly long SKY_ErrDisconnectWriteFailed = skycoinPINVOKE.get_SKY_ErrDisconnectWriteFailed(); - public static readonly long SKY_ErrDisconnectSetReadDeadlineFailed = skycoinPINVOKE.get_SKY_ErrDisconnectSetReadDeadlineFailed(); - public static readonly long SKY_ErrDisconnectInvalidMessageLength = skycoinPINVOKE.get_SKY_ErrDisconnectInvalidMessageLength(); - public static readonly long SKY_ErrDisconnectMalformedMessage = skycoinPINVOKE.get_SKY_ErrDisconnectMalformedMessage(); - public static readonly long SKY_ErrDisconnectUnknownMessage = skycoinPINVOKE.get_SKY_ErrDisconnectUnknownMessage(); - public static readonly long SKY_ErrDisconnectUnexpectedError = skycoinPINVOKE.get_SKY_ErrDisconnectUnexpectedError(); - public static readonly long SKY_ErrConnectionPoolClosed = skycoinPINVOKE.get_SKY_ErrConnectionPoolClosed(); - public static readonly long SKY_ErrWriteQueueFull = skycoinPINVOKE.get_SKY_ErrWriteQueueFull(); - public static readonly long SKY_ErrNoReachableConnections = skycoinPINVOKE.get_SKY_ErrNoReachableConnections(); - public static readonly long SKY_ErrMaxDefaultConnectionsReached = skycoinPINVOKE.get_SKY_ErrMaxDefaultConnectionsReached(); - public static readonly long SKY_ErrDisconnectInvalidVersion = skycoinPINVOKE.get_SKY_ErrDisconnectInvalidVersion(); - public static readonly long SKY_ErrDisconnectIntroductionTimeout = skycoinPINVOKE.get_SKY_ErrDisconnectIntroductionTimeout(); - public static readonly long SKY_ErrDisconnectVersionSendFailed = skycoinPINVOKE.get_SKY_ErrDisconnectVersionSendFailed(); - public static readonly long SKY_ErrDisconnectIsBlacklisted = skycoinPINVOKE.get_SKY_ErrDisconnectIsBlacklisted(); - public static readonly long SKY_ErrDisconnectSelf = skycoinPINVOKE.get_SKY_ErrDisconnectSelf(); - public static readonly long SKY_ErrDisconnectConnectedTwice = skycoinPINVOKE.get_SKY_ErrDisconnectConnectedTwice(); - public static readonly long SKY_ErrDisconnectIdle = skycoinPINVOKE.get_SKY_ErrDisconnectIdle(); - public static readonly long SKY_ErrDisconnectNoIntroduction = skycoinPINVOKE.get_SKY_ErrDisconnectNoIntroduction(); - public static readonly long SKY_ErrDisconnectIPLimitReached = skycoinPINVOKE.get_SKY_ErrDisconnectIPLimitReached(); - public static readonly long SKY_ErrDisconnectOtherError = skycoinPINVOKE.get_SKY_ErrDisconnectOtherError(); - public static readonly long SKY_ErrDisconnectMaxDefaultConnectionReached = skycoinPINVOKE.get_SKY_ErrDisconnectMaxDefaultConnectionReached(); - public static readonly long SKY_ErrDisconnectMaxOutgoingConnectionsReached = skycoinPINVOKE.get_SKY_ErrDisconnectMaxOutgoingConnectionsReached(); - public static readonly long SKY_ConnectionError = skycoinPINVOKE.get_SKY_ConnectionError(); - public static readonly long SKY_ErrTxnNoFee = skycoinPINVOKE.get_SKY_ErrTxnNoFee(); - public static readonly long SKY_ErrTxnInsufficientFee = skycoinPINVOKE.get_SKY_ErrTxnInsufficientFee(); - public static readonly long SKY_ErrTxnInsufficientCoinHours = skycoinPINVOKE.get_SKY_ErrTxnInsufficientCoinHours(); - public static readonly long SKY_ErrNegativeValue = skycoinPINVOKE.get_SKY_ErrNegativeValue(); - public static readonly long SKY_ErrTooManyDecimals = skycoinPINVOKE.get_SKY_ErrTooManyDecimals(); - public static readonly long SKY_ErrTooLarge = skycoinPINVOKE.get_SKY_ErrTooLarge(); - public static readonly long SKY_ErrEmptyDirectoryName = skycoinPINVOKE.get_SKY_ErrEmptyDirectoryName(); - public static readonly long SKY_ErrDotDirectoryName = skycoinPINVOKE.get_SKY_ErrDotDirectoryName(); - public static readonly long SKY_ErrHistoryDBCorrupted = skycoinPINVOKE.get_SKY_ErrHistoryDBCorrupted(); - public static readonly long SKY_ErrUxOutNotExist = skycoinPINVOKE.get_SKY_ErrUxOutNotExist(); - public static readonly long SKY_ErrNoHeadBlock = skycoinPINVOKE.get_SKY_ErrNoHeadBlock(); - public static readonly long SKY_ErrMissingSignature = skycoinPINVOKE.get_SKY_ErrMissingSignature(); - public static readonly long SKY_ErrUnspentNotExist = skycoinPINVOKE.get_SKY_ErrUnspentNotExist(); - public static readonly long SKY_ErrVerifyStopped = skycoinPINVOKE.get_SKY_ErrVerifyStopped(); - public static readonly long SKY_ErrCreateBucketFailed = skycoinPINVOKE.get_SKY_ErrCreateBucketFailed(); - public static readonly long SKY_ErrBucketNotExist = skycoinPINVOKE.get_SKY_ErrBucketNotExist(); - public static readonly long SKY_ErrTxnViolatesHardConstraint = skycoinPINVOKE.get_SKY_ErrTxnViolatesHardConstraint(); - public static readonly long SKY_ErrTxnViolatesSoftConstraint = skycoinPINVOKE.get_SKY_ErrTxnViolatesSoftConstraint(); - public static readonly long SKY_ErrTxnViolatesUserConstraint = skycoinPINVOKE.get_SKY_ErrTxnViolatesUserConstraint(); - public static readonly long SKY_ErrInsufficientBalance = skycoinPINVOKE.get_SKY_ErrInsufficientBalance(); - public static readonly long SKY_ErrInsufficientHours = skycoinPINVOKE.get_SKY_ErrInsufficientHours(); - public static readonly long SKY_ErrZeroSpend = skycoinPINVOKE.get_SKY_ErrZeroSpend(); - public static readonly long SKY_ErrSpendingUnconfirmed = skycoinPINVOKE.get_SKY_ErrSpendingUnconfirmed(); - public static readonly long SKY_ErrInvalidEncryptedField = skycoinPINVOKE.get_SKY_ErrInvalidEncryptedField(); - public static readonly long SKY_ErrWalletEncrypted = skycoinPINVOKE.get_SKY_ErrWalletEncrypted(); - public static readonly long SKY_ErrWalletNotEncrypted = skycoinPINVOKE.get_SKY_ErrWalletNotEncrypted(); - public static readonly long SKY_ErrMissingPassword = skycoinPINVOKE.get_SKY_ErrMissingPassword(); - public static readonly long SKY_ErrMissingEncrypt = skycoinPINVOKE.get_SKY_ErrMissingEncrypt(); - public static readonly long SKY_ErrInvalidPassword = skycoinPINVOKE.get_SKY_ErrInvalidPassword(); - public static readonly long SKY_ErrMissingSeed = skycoinPINVOKE.get_SKY_ErrMissingSeed(); - public static readonly long SKY_ErrMissingAuthenticated = skycoinPINVOKE.get_SKY_ErrMissingAuthenticated(); - public static readonly long SKY_ErrWrongCryptoType = skycoinPINVOKE.get_SKY_ErrWrongCryptoType(); - public static readonly long SKY_ErrWalletNotExist = skycoinPINVOKE.get_SKY_ErrWalletNotExist(); - public static readonly long SKY_ErrSeedUsed = skycoinPINVOKE.get_SKY_ErrSeedUsed(); - public static readonly long SKY_ErrWalletAPIDisabled = skycoinPINVOKE.get_SKY_ErrWalletAPIDisabled(); - public static readonly long SKY_ErrSeedAPIDisabled = skycoinPINVOKE.get_SKY_ErrSeedAPIDisabled(); - public static readonly long SKY_ErrWalletNameConflict = skycoinPINVOKE.get_SKY_ErrWalletNameConflict(); - public static readonly long SKY_ErrInvalidHoursSelectionMode = skycoinPINVOKE.get_SKY_ErrInvalidHoursSelectionMode(); - public static readonly long SKY_ErrInvalidHoursSelectionType = skycoinPINVOKE.get_SKY_ErrInvalidHoursSelectionType(); - public static readonly long SKY_ErrUnknownAddress = skycoinPINVOKE.get_SKY_ErrUnknownAddress(); - public static readonly long SKY_ErrUnknownUxOut = skycoinPINVOKE.get_SKY_ErrUnknownUxOut(); - public static readonly long SKY_ErrNoUnspents = skycoinPINVOKE.get_SKY_ErrNoUnspents(); - public static readonly long SKY_ErrNullChangeAddress = skycoinPINVOKE.get_SKY_ErrNullChangeAddress(); - public static readonly long SKY_ErrMissingTo = skycoinPINVOKE.get_SKY_ErrMissingTo(); - public static readonly long SKY_ErrZeroCoinsTo = skycoinPINVOKE.get_SKY_ErrZeroCoinsTo(); - public static readonly long SKY_ErrNullAddressTo = skycoinPINVOKE.get_SKY_ErrNullAddressTo(); - public static readonly long SKY_ErrDuplicateTo = skycoinPINVOKE.get_SKY_ErrDuplicateTo(); - public static readonly long SKY_ErrMissingWalletID = skycoinPINVOKE.get_SKY_ErrMissingWalletID(); - public static readonly long SKY_ErrIncludesNullAddress = skycoinPINVOKE.get_SKY_ErrIncludesNullAddress(); - public static readonly long SKY_ErrDuplicateAddresses = skycoinPINVOKE.get_SKY_ErrDuplicateAddresses(); - public static readonly long SKY_ErrZeroToHoursAuto = skycoinPINVOKE.get_SKY_ErrZeroToHoursAuto(); - public static readonly long SKY_ErrMissingModeAuto = skycoinPINVOKE.get_SKY_ErrMissingModeAuto(); - public static readonly long SKY_ErrInvalidHoursSelMode = skycoinPINVOKE.get_SKY_ErrInvalidHoursSelMode(); - public static readonly long SKY_ErrInvalidModeManual = skycoinPINVOKE.get_SKY_ErrInvalidModeManual(); - public static readonly long SKY_ErrInvalidHoursSelType = skycoinPINVOKE.get_SKY_ErrInvalidHoursSelType(); - public static readonly long SKY_ErrMissingShareFactor = skycoinPINVOKE.get_SKY_ErrMissingShareFactor(); - public static readonly long SKY_ErrInvalidShareFactor = skycoinPINVOKE.get_SKY_ErrInvalidShareFactor(); - public static readonly long SKY_ErrShareFactorOutOfRange = skycoinPINVOKE.get_SKY_ErrShareFactorOutOfRange(); - public static readonly long SKY_ErrWalletConstraint = skycoinPINVOKE.get_SKY_ErrWalletConstraint(); - public static readonly long SKY_ErrDuplicateUxOuts = skycoinPINVOKE.get_SKY_ErrDuplicateUxOuts(); - public static readonly long SKY_ErrUnknownWalletID = skycoinPINVOKE.get_SKY_ErrUnknownWalletID(); - public static readonly long SKY_ErrSHA256orMissingPassword = skycoinPINVOKE.get_SKY_ErrSHA256orMissingPassword(); - public static readonly long SKY_ErrSHA256LenghtDataOverflowMaxUint32 = skycoinPINVOKE.get_SKY_ErrSHA256LenghtDataOverflowMaxUint32(); - public static readonly long SKY_ErrVerifySignatureInvalidPubkeysLength = skycoinPINVOKE.get_SKY_ErrVerifySignatureInvalidPubkeysLength(); + public static readonly int SKY_OK = skycoinPINVOKE.get_SKY_OK(); + public static readonly int SKY_ERROR = skycoinPINVOKE.get_SKY_ERROR(); + public static readonly int SKY_PKG_API = skycoinPINVOKE.get_SKY_PKG_API(); + public static readonly int SKY_PKG_CIPHER = skycoinPINVOKE.get_SKY_PKG_CIPHER(); + public static readonly int SKY_PKG_CLI = skycoinPINVOKE.get_SKY_PKG_CLI(); + public static readonly int SKY_PKG_COIN = skycoinPINVOKE.get_SKY_PKG_COIN(); + public static readonly int SKY_PKG_CONSENSUS = skycoinPINVOKE.get_SKY_PKG_CONSENSUS(); + public static readonly int SKY_PKG_DAEMON = skycoinPINVOKE.get_SKY_PKG_DAEMON(); + public static readonly int SKY_PKG_GUI = skycoinPINVOKE.get_SKY_PKG_GUI(); + public static readonly int SKY_PKG_SKYCOIN = skycoinPINVOKE.get_SKY_PKG_SKYCOIN(); + public static readonly int SKY_PKG_UTIL = skycoinPINVOKE.get_SKY_PKG_UTIL(); + public static readonly int SKY_PKG_VISOR = skycoinPINVOKE.get_SKY_PKG_VISOR(); + public static readonly int SKY_PKG_WALLET = skycoinPINVOKE.get_SKY_PKG_WALLET(); + public static readonly int SKY_ErrAddressInvalidLength = skycoinPINVOKE.get_SKY_ErrAddressInvalidLength(); + public static readonly int SKY_ErrAddressInvalidChecksum = skycoinPINVOKE.get_SKY_ErrAddressInvalidChecksum(); + public static readonly int SKY_ErrAddressInvalidVersion = skycoinPINVOKE.get_SKY_ErrAddressInvalidVersion(); + public static readonly int SKY_ErrAddressInvalidPubKey = skycoinPINVOKE.get_SKY_ErrAddressInvalidPubKey(); + public static readonly int SKY_ErrAddressInvalidFirstByte = skycoinPINVOKE.get_SKY_ErrAddressInvalidFirstByte(); + public static readonly int SKY_ErrAddressInvalidLastByte = skycoinPINVOKE.get_SKY_ErrAddressInvalidLastByte(); + public static readonly int SKY_ErrBufferUnderflow = skycoinPINVOKE.get_SKY_ErrBufferUnderflow(); + public static readonly int SKY_ErrInvalidOmitEmpty = skycoinPINVOKE.get_SKY_ErrInvalidOmitEmpty(); + public static readonly int SKY_ErrInvalidLengthPubKey = skycoinPINVOKE.get_SKY_ErrInvalidLengthPubKey(); + public static readonly int SKY_ErrPubKeyFromNullSecKey = skycoinPINVOKE.get_SKY_ErrPubKeyFromNullSecKey(); + public static readonly int SKY_ErrPubKeyFromBadSecKey = skycoinPINVOKE.get_SKY_ErrPubKeyFromBadSecKey(); + public static readonly int SKY_ErrInvalidLengthSecKey = skycoinPINVOKE.get_SKY_ErrInvalidLengthSecKey(); + public static readonly int SKY_ErrECHDInvalidPubKey = skycoinPINVOKE.get_SKY_ErrECHDInvalidPubKey(); + public static readonly int SKY_ErrECHDInvalidSecKey = skycoinPINVOKE.get_SKY_ErrECHDInvalidSecKey(); + public static readonly int SKY_ErrInvalidLengthSig = skycoinPINVOKE.get_SKY_ErrInvalidLengthSig(); + public static readonly int SKY_ErrInvalidLengthRipemd160 = skycoinPINVOKE.get_SKY_ErrInvalidLengthRipemd160(); + public static readonly int SKY_ErrInvalidLengthSHA256 = skycoinPINVOKE.get_SKY_ErrInvalidLengthSHA256(); + public static readonly int SKY_ErrInvalidBase58Char = skycoinPINVOKE.get_SKY_ErrInvalidBase58Char(); + public static readonly int SKY_ErrInvalidBase58String = skycoinPINVOKE.get_SKY_ErrInvalidBase58String(); + public static readonly int SKY_ErrInvalidBase58Length = skycoinPINVOKE.get_SKY_ErrInvalidBase58Length(); + public static readonly int SKY_ErrInvalidHexLength = skycoinPINVOKE.get_SKY_ErrInvalidHexLength(); + public static readonly int SKY_ErrInvalidBytesLength = skycoinPINVOKE.get_SKY_ErrInvalidBytesLength(); + public static readonly int SKY_ErrInvalidPubKey = skycoinPINVOKE.get_SKY_ErrInvalidPubKey(); + public static readonly int SKY_ErrInvalidSecKey = skycoinPINVOKE.get_SKY_ErrInvalidSecKey(); + public static readonly int SKY_ErrInvalidSigForPubKey = skycoinPINVOKE.get_SKY_ErrInvalidSigForPubKey(); + public static readonly int SKY_ErrInvalidSecKeyHex = skycoinPINVOKE.get_SKY_ErrInvalidSecKeyHex(); + public static readonly int SKY_ErrInvalidAddressForSig = skycoinPINVOKE.get_SKY_ErrInvalidAddressForSig(); + public static readonly int SKY_ErrInvalidHashForSig = skycoinPINVOKE.get_SKY_ErrInvalidHashForSig(); + public static readonly int SKY_ErrPubKeyRecoverMismatch = skycoinPINVOKE.get_SKY_ErrPubKeyRecoverMismatch(); + public static readonly int SKY_ErrInvalidSigInvalidPubKey = skycoinPINVOKE.get_SKY_ErrInvalidSigInvalidPubKey(); + public static readonly int SKY_ErrInvalidSigValidity = skycoinPINVOKE.get_SKY_ErrInvalidSigValidity(); + public static readonly int SKY_ErrInvalidSigForMessage = skycoinPINVOKE.get_SKY_ErrInvalidSigForMessage(); + public static readonly int SKY_ErrInvalidSecKyVerification = skycoinPINVOKE.get_SKY_ErrInvalidSecKyVerification(); + public static readonly int SKY_ErrNullPubKeyFromSecKey = skycoinPINVOKE.get_SKY_ErrNullPubKeyFromSecKey(); + public static readonly int SKY_ErrInvalidDerivedPubKeyFromSecKey = skycoinPINVOKE.get_SKY_ErrInvalidDerivedPubKeyFromSecKey(); + public static readonly int SKY_ErrInvalidPubKeyFromHash = skycoinPINVOKE.get_SKY_ErrInvalidPubKeyFromHash(); + public static readonly int SKY_ErrPubKeyFromSecKeyMissmatch = skycoinPINVOKE.get_SKY_ErrPubKeyFromSecKeyMissmatch(); + public static readonly int SKY_ErrTemporaryInsufficientBalance = skycoinPINVOKE.get_SKY_ErrTemporaryInsufficientBalance(); + public static readonly int SKY_ErrAddress = skycoinPINVOKE.get_SKY_ErrAddress(); + public static readonly int SKY_ErrWalletName = skycoinPINVOKE.get_SKY_ErrWalletName(); + public static readonly int SKY_ErrJSONMarshal = skycoinPINVOKE.get_SKY_ErrJSONMarshal(); + public static readonly int SKY_WalletLoadError = skycoinPINVOKE.get_SKY_WalletLoadError(); + public static readonly int SKY_WalletSaveError = skycoinPINVOKE.get_SKY_WalletSaveError(); + public static readonly int SKY_ErrAddEarnedCoinHoursAdditionOverflow = skycoinPINVOKE.get_SKY_ErrAddEarnedCoinHoursAdditionOverflow(); + public static readonly int SKY_ErrUint64MultOverflow = skycoinPINVOKE.get_SKY_ErrUint64MultOverflow(); + public static readonly int SKY_ErrUint64AddOverflow = skycoinPINVOKE.get_SKY_ErrUint64AddOverflow(); + public static readonly int SKY_ErrUint32AddOverflow = skycoinPINVOKE.get_SKY_ErrUint32AddOverflow(); + public static readonly int SKY_ErrUint64OverflowsInt64 = skycoinPINVOKE.get_SKY_ErrUint64OverflowsInt64(); + public static readonly int SKY_ErrInt64UnderflowsUint64 = skycoinPINVOKE.get_SKY_ErrInt64UnderflowsUint64(); + public static readonly int SKY_ErrPeerlistFull = skycoinPINVOKE.get_SKY_ErrPeerlistFull(); + public static readonly int SKY_ErrInvalidAddress = skycoinPINVOKE.get_SKY_ErrInvalidAddress(); + public static readonly int SKY_ErrNoLocalhost = skycoinPINVOKE.get_SKY_ErrNoLocalhost(); + public static readonly int SKY_ErrNotExternalIP = skycoinPINVOKE.get_SKY_ErrNotExternalIP(); + public static readonly int SKY_ErrPortTooLow = skycoinPINVOKE.get_SKY_ErrPortTooLow(); + public static readonly int SKY_ErrBlacklistedAddress = skycoinPINVOKE.get_SKY_ErrBlacklistedAddress(); + public static readonly int SKY_ErrDisconnectReadFailed = skycoinPINVOKE.get_SKY_ErrDisconnectReadFailed(); + public static readonly int SKY_ErrDisconnectWriteFailed = skycoinPINVOKE.get_SKY_ErrDisconnectWriteFailed(); + public static readonly int SKY_ErrDisconnectSetReadDeadlineFailed = skycoinPINVOKE.get_SKY_ErrDisconnectSetReadDeadlineFailed(); + public static readonly int SKY_ErrDisconnectInvalidMessageLength = skycoinPINVOKE.get_SKY_ErrDisconnectInvalidMessageLength(); + public static readonly int SKY_ErrDisconnectMalformedMessage = skycoinPINVOKE.get_SKY_ErrDisconnectMalformedMessage(); + public static readonly int SKY_ErrDisconnectUnknownMessage = skycoinPINVOKE.get_SKY_ErrDisconnectUnknownMessage(); + public static readonly int SKY_ErrDisconnectUnexpectedError = skycoinPINVOKE.get_SKY_ErrDisconnectUnexpectedError(); + public static readonly int SKY_ErrConnectionPoolClosed = skycoinPINVOKE.get_SKY_ErrConnectionPoolClosed(); + public static readonly int SKY_ErrWriteQueueFull = skycoinPINVOKE.get_SKY_ErrWriteQueueFull(); + public static readonly int SKY_ErrNoReachableConnections = skycoinPINVOKE.get_SKY_ErrNoReachableConnections(); + public static readonly int SKY_ErrMaxDefaultConnectionsReached = skycoinPINVOKE.get_SKY_ErrMaxDefaultConnectionsReached(); + public static readonly int SKY_ErrDisconnectInvalidVersion = skycoinPINVOKE.get_SKY_ErrDisconnectInvalidVersion(); + public static readonly int SKY_ErrDisconnectIntroductionTimeout = skycoinPINVOKE.get_SKY_ErrDisconnectIntroductionTimeout(); + public static readonly int SKY_ErrDisconnectVersionSendFailed = skycoinPINVOKE.get_SKY_ErrDisconnectVersionSendFailed(); + public static readonly int SKY_ErrDisconnectIsBlacklisted = skycoinPINVOKE.get_SKY_ErrDisconnectIsBlacklisted(); + public static readonly int SKY_ErrDisconnectSelf = skycoinPINVOKE.get_SKY_ErrDisconnectSelf(); + public static readonly int SKY_ErrDisconnectConnectedTwice = skycoinPINVOKE.get_SKY_ErrDisconnectConnectedTwice(); + public static readonly int SKY_ErrDisconnectIdle = skycoinPINVOKE.get_SKY_ErrDisconnectIdle(); + public static readonly int SKY_ErrDisconnectNoIntroduction = skycoinPINVOKE.get_SKY_ErrDisconnectNoIntroduction(); + public static readonly int SKY_ErrDisconnectIPLimitReached = skycoinPINVOKE.get_SKY_ErrDisconnectIPLimitReached(); + public static readonly int SKY_ErrDisconnectOtherError = skycoinPINVOKE.get_SKY_ErrDisconnectOtherError(); + public static readonly int SKY_ErrDisconnectMaxDefaultConnectionReached = skycoinPINVOKE.get_SKY_ErrDisconnectMaxDefaultConnectionReached(); + public static readonly int SKY_ErrDisconnectMaxOutgoingConnectionsReached = skycoinPINVOKE.get_SKY_ErrDisconnectMaxOutgoingConnectionsReached(); + public static readonly int SKY_ConnectionError = skycoinPINVOKE.get_SKY_ConnectionError(); + public static readonly int SKY_ErrTxnNoFee = skycoinPINVOKE.get_SKY_ErrTxnNoFee(); + public static readonly int SKY_ErrTxnInsufficientFee = skycoinPINVOKE.get_SKY_ErrTxnInsufficientFee(); + public static readonly int SKY_ErrTxnInsufficientCoinHours = skycoinPINVOKE.get_SKY_ErrTxnInsufficientCoinHours(); + public static readonly int SKY_ErrNegativeValue = skycoinPINVOKE.get_SKY_ErrNegativeValue(); + public static readonly int SKY_ErrTooManyDecimals = skycoinPINVOKE.get_SKY_ErrTooManyDecimals(); + public static readonly int SKY_ErrTooLarge = skycoinPINVOKE.get_SKY_ErrTooLarge(); + public static readonly int SKY_ErrEmptyDirectoryName = skycoinPINVOKE.get_SKY_ErrEmptyDirectoryName(); + public static readonly int SKY_ErrDotDirectoryName = skycoinPINVOKE.get_SKY_ErrDotDirectoryName(); + public static readonly int SKY_ErrHistoryDBCorrupted = skycoinPINVOKE.get_SKY_ErrHistoryDBCorrupted(); + public static readonly int SKY_ErrUxOutNotExist = skycoinPINVOKE.get_SKY_ErrUxOutNotExist(); + public static readonly int SKY_ErrNoHeadBlock = skycoinPINVOKE.get_SKY_ErrNoHeadBlock(); + public static readonly int SKY_ErrMissingSignature = skycoinPINVOKE.get_SKY_ErrMissingSignature(); + public static readonly int SKY_ErrUnspentNotExist = skycoinPINVOKE.get_SKY_ErrUnspentNotExist(); + public static readonly int SKY_ErrVerifyStopped = skycoinPINVOKE.get_SKY_ErrVerifyStopped(); + public static readonly int SKY_ErrCreateBucketFailed = skycoinPINVOKE.get_SKY_ErrCreateBucketFailed(); + public static readonly int SKY_ErrBucketNotExist = skycoinPINVOKE.get_SKY_ErrBucketNotExist(); + public static readonly int SKY_ErrTxnViolatesHardConstraint = skycoinPINVOKE.get_SKY_ErrTxnViolatesHardConstraint(); + public static readonly int SKY_ErrTxnViolatesSoftConstraint = skycoinPINVOKE.get_SKY_ErrTxnViolatesSoftConstraint(); + public static readonly int SKY_ErrTxnViolatesUserConstraint = skycoinPINVOKE.get_SKY_ErrTxnViolatesUserConstraint(); + public static readonly int SKY_ErrInsufficientBalance = skycoinPINVOKE.get_SKY_ErrInsufficientBalance(); + public static readonly int SKY_ErrInsufficientHours = skycoinPINVOKE.get_SKY_ErrInsufficientHours(); + public static readonly int SKY_ErrZeroSpend = skycoinPINVOKE.get_SKY_ErrZeroSpend(); + public static readonly int SKY_ErrSpendingUnconfirmed = skycoinPINVOKE.get_SKY_ErrSpendingUnconfirmed(); + public static readonly int SKY_ErrInvalidEncryptedField = skycoinPINVOKE.get_SKY_ErrInvalidEncryptedField(); + public static readonly int SKY_ErrWalletEncrypted = skycoinPINVOKE.get_SKY_ErrWalletEncrypted(); + public static readonly int SKY_ErrWalletNotEncrypted = skycoinPINVOKE.get_SKY_ErrWalletNotEncrypted(); + public static readonly int SKY_ErrMissingPassword = skycoinPINVOKE.get_SKY_ErrMissingPassword(); + public static readonly int SKY_ErrMissingEncrypt = skycoinPINVOKE.get_SKY_ErrMissingEncrypt(); + public static readonly int SKY_ErrInvalidPassword = skycoinPINVOKE.get_SKY_ErrInvalidPassword(); + public static readonly int SKY_ErrMissingSeed = skycoinPINVOKE.get_SKY_ErrMissingSeed(); + public static readonly int SKY_ErrMissingAuthenticated = skycoinPINVOKE.get_SKY_ErrMissingAuthenticated(); + public static readonly int SKY_ErrWrongCryptoType = skycoinPINVOKE.get_SKY_ErrWrongCryptoType(); + public static readonly int SKY_ErrWalletNotExist = skycoinPINVOKE.get_SKY_ErrWalletNotExist(); + public static readonly int SKY_ErrSeedUsed = skycoinPINVOKE.get_SKY_ErrSeedUsed(); + public static readonly int SKY_ErrWalletAPIDisabled = skycoinPINVOKE.get_SKY_ErrWalletAPIDisabled(); + public static readonly int SKY_ErrSeedAPIDisabled = skycoinPINVOKE.get_SKY_ErrSeedAPIDisabled(); + public static readonly int SKY_ErrWalletNameConflict = skycoinPINVOKE.get_SKY_ErrWalletNameConflict(); + public static readonly int SKY_ErrInvalidHoursSelectionMode = skycoinPINVOKE.get_SKY_ErrInvalidHoursSelectionMode(); + public static readonly int SKY_ErrInvalidHoursSelectionType = skycoinPINVOKE.get_SKY_ErrInvalidHoursSelectionType(); + public static readonly int SKY_ErrUnknownAddress = skycoinPINVOKE.get_SKY_ErrUnknownAddress(); + public static readonly int SKY_ErrUnknownUxOut = skycoinPINVOKE.get_SKY_ErrUnknownUxOut(); + public static readonly int SKY_ErrNoUnspents = skycoinPINVOKE.get_SKY_ErrNoUnspents(); + public static readonly int SKY_ErrNullChangeAddress = skycoinPINVOKE.get_SKY_ErrNullChangeAddress(); + public static readonly int SKY_ErrMissingTo = skycoinPINVOKE.get_SKY_ErrMissingTo(); + public static readonly int SKY_ErrZeroCoinsTo = skycoinPINVOKE.get_SKY_ErrZeroCoinsTo(); + public static readonly int SKY_ErrNullAddressTo = skycoinPINVOKE.get_SKY_ErrNullAddressTo(); + public static readonly int SKY_ErrDuplicateTo = skycoinPINVOKE.get_SKY_ErrDuplicateTo(); + public static readonly int SKY_ErrMissingWalletID = skycoinPINVOKE.get_SKY_ErrMissingWalletID(); + public static readonly int SKY_ErrIncludesNullAddress = skycoinPINVOKE.get_SKY_ErrIncludesNullAddress(); + public static readonly int SKY_ErrDuplicateAddresses = skycoinPINVOKE.get_SKY_ErrDuplicateAddresses(); + public static readonly int SKY_ErrZeroToHoursAuto = skycoinPINVOKE.get_SKY_ErrZeroToHoursAuto(); + public static readonly int SKY_ErrMissingModeAuto = skycoinPINVOKE.get_SKY_ErrMissingModeAuto(); + public static readonly int SKY_ErrInvalidHoursSelMode = skycoinPINVOKE.get_SKY_ErrInvalidHoursSelMode(); + public static readonly int SKY_ErrInvalidModeManual = skycoinPINVOKE.get_SKY_ErrInvalidModeManual(); + public static readonly int SKY_ErrInvalidHoursSelType = skycoinPINVOKE.get_SKY_ErrInvalidHoursSelType(); + public static readonly int SKY_ErrMissingShareFactor = skycoinPINVOKE.get_SKY_ErrMissingShareFactor(); + public static readonly int SKY_ErrInvalidShareFactor = skycoinPINVOKE.get_SKY_ErrInvalidShareFactor(); + public static readonly int SKY_ErrShareFactorOutOfRange = skycoinPINVOKE.get_SKY_ErrShareFactorOutOfRange(); + public static readonly int SKY_ErrWalletConstraint = skycoinPINVOKE.get_SKY_ErrWalletConstraint(); + public static readonly int SKY_ErrDuplicateUxOuts = skycoinPINVOKE.get_SKY_ErrDuplicateUxOuts(); + public static readonly int SKY_ErrUnknownWalletID = skycoinPINVOKE.get_SKY_ErrUnknownWalletID(); + public static readonly int SKY_ErrSHA256orMissingPassword = skycoinPINVOKE.get_SKY_ErrSHA256orMissingPassword(); + public static readonly int SKY_ErrSHA256LenghtDataOverflowMaxUint32 = skycoinPINVOKE.get_SKY_ErrSHA256LenghtDataOverflowMaxUint32(); + public static readonly int SKY_ErrVerifySignatureInvalidPubkeysLength = skycoinPINVOKE.get_SKY_ErrVerifySignatureInvalidPubkeysLength(); } } diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index 59025237..82575951 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -203,2501 +203,2501 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_equalBlockHeaders")] public static extern int equalBlockHeaders(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_OK")] - public static extern long get_SKY_OK(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set__GoString__p")] + public static extern void set__GoString__p(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ERROR")] - public static extern long get_SKY_ERROR(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get__GoString__p")] + public static extern string get__GoString__p(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_API")] - public static extern long get_SKY_PKG_API(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set__GoString__n")] + public static extern void set__GoString__n(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_CIPHER")] - public static extern long get_SKY_PKG_CIPHER(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get__GoString__n")] + public static extern global::System.IntPtr get__GoString__n(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_CLI")] - public static extern long get_SKY_PKG_CLI(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new__GoString_")] + public static extern global::System.IntPtr new__GoString_(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_COIN")] - public static extern long get_SKY_PKG_COIN(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete__GoString_")] + public static extern void delete__GoString_(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_CONSENSUS")] - public static extern long get_SKY_PKG_CONSENSUS(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_GoInterface_t")] + public static extern void set_GoInterface_t(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_DAEMON")] - public static extern long get_SKY_PKG_DAEMON(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_GoInterface_t")] + public static extern global::System.IntPtr get_GoInterface_t(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_GUI")] - public static extern long get_SKY_PKG_GUI(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_GoInterface_v")] + public static extern void set_GoInterface_v(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_SKYCOIN")] - public static extern long get_SKY_PKG_SKYCOIN(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_GoInterface_v")] + public static extern global::System.IntPtr get_GoInterface_v(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_UTIL")] - public static extern long get_SKY_PKG_UTIL(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_GoInterface")] + public static extern global::System.IntPtr new_GoInterface(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_VISOR")] - public static extern long get_SKY_PKG_VISOR(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_GoInterface")] + public static extern void delete_GoInterface(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_WALLET")] - public static extern long get_SKY_PKG_WALLET(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_GoSlice_data")] + public static extern void set_GoSlice_data(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrAddressInvalidLength")] - public static extern long get_SKY_ErrAddressInvalidLength(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_GoSlice_data")] + public static extern global::System.IntPtr get_GoSlice_data(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrAddressInvalidChecksum")] - public static extern long get_SKY_ErrAddressInvalidChecksum(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_GoSlice_len")] + public static extern void set_GoSlice_len(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrAddressInvalidVersion")] - public static extern long get_SKY_ErrAddressInvalidVersion(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_GoSlice_len")] + public static extern long get_GoSlice_len(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrAddressInvalidPubKey")] - public static extern long get_SKY_ErrAddressInvalidPubKey(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_GoSlice_cap")] + public static extern void set_GoSlice_cap(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrAddressInvalidFirstByte")] - public static extern long get_SKY_ErrAddressInvalidFirstByte(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_GoSlice_cap")] + public static extern long get_GoSlice_cap(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrAddressInvalidLastByte")] - public static extern long get_SKY_ErrAddressInvalidLastByte(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_GoSlice")] + public static extern global::System.IntPtr new_GoSlice(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrBufferUnderflow")] - public static extern long get_SKY_ErrBufferUnderflow(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_GoSlice")] + public static extern void delete_GoSlice(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidOmitEmpty")] - public static extern long get_SKY_ErrInvalidOmitEmpty(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewBlock")] + public static extern uint SKY_coin_NewBlock(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidLengthPubKey")] - public static extern long get_SKY_ErrInvalidLengthPubKey(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SignedBlock_VerifySignature")] + public static extern uint SKY_coin_SignedBlock_VerifySignature(global::System.Runtime.InteropServices.HandleRef jarg1, SWIGTYPE_p_cipher_PubKey jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrPubKeyFromNullSecKey")] - public static extern long get_SKY_ErrPubKeyFromNullSecKey(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewGenesisBlock")] + public static extern uint SKY_coin_NewGenesisBlock(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrPubKeyFromBadSecKey")] - public static extern long get_SKY_ErrPubKeyFromBadSecKey(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_HashHeader")] + public static extern uint SKY_coin_Block_HashHeader(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidLengthSecKey")] - public static extern long get_SKY_ErrInvalidLengthSecKey(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_PreHashHeader")] + public static extern uint SKY_coin_Block_PreHashHeader(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrECHDInvalidPubKey")] - public static extern long get_SKY_ErrECHDInvalidPubKey(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_Time")] + public static extern uint SKY_coin_Block_Time(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrECHDInvalidSecKey")] - public static extern long get_SKY_ErrECHDInvalidSecKey(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_Seq")] + public static extern uint SKY_coin_Block_Seq(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidLengthSig")] - public static extern long get_SKY_ErrInvalidLengthSig(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_HashBody")] + public static extern uint SKY_coin_Block_HashBody(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidLengthRipemd160")] - public static extern long get_SKY_ErrInvalidLengthRipemd160(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_Size")] + public static extern uint SKY_coin_Block_Size(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidLengthSHA256")] - public static extern long get_SKY_ErrInvalidLengthSHA256(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_String")] + public static extern uint SKY_coin_Block_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidBase58Char")] - public static extern long get_SKY_ErrInvalidBase58Char(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_GetTransaction")] + public static extern uint SKY_coin_Block_GetTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidBase58String")] - public static extern long get_SKY_ErrInvalidBase58String(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewBlockHeader")] + public static extern uint SKY_coin_NewBlockHeader(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, ulong jarg3, ulong jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidBase58Length")] - public static extern long get_SKY_ErrInvalidBase58Length(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockHeader_Hash")] + public static extern uint SKY_coin_BlockHeader_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidHexLength")] - public static extern long get_SKY_ErrInvalidHexLength(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockHeader_Bytes")] + public static extern uint SKY_coin_BlockHeader_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidBytesLength")] - public static extern long get_SKY_ErrInvalidBytesLength(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockHeader_String")] + public static extern uint SKY_coin_BlockHeader_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidPubKey")] - public static extern long get_SKY_ErrInvalidPubKey(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockBody_Hash")] + public static extern uint SKY_coin_BlockBody_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidSecKey")] - public static extern long get_SKY_ErrInvalidSecKey(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockBody_Size")] + public static extern uint SKY_coin_BlockBody_Size(global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidSigForPubKey")] - public static extern long get_SKY_ErrInvalidSigForPubKey(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockBody_Bytes")] + public static extern uint SKY_coin_BlockBody_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidSecKeyHex")] - public static extern long get_SKY_ErrInvalidSecKeyHex(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_CreateUnspents")] + public static extern uint SKY_coin_CreateUnspents(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidAddressForSig")] - public static extern long get_SKY_ErrInvalidAddressForSig(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_CreateUnspent")] + public static extern uint SKY_coin_CreateUnspent(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidHashForSig")] - public static extern long get_SKY_ErrInvalidHashForSig(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetBlockObject")] + public static extern uint SKY_coin_GetBlockObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrPubKeyRecoverMismatch")] - public static extern long get_SKY_ErrPubKeyRecoverMismatch(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetBlockBody")] + public static extern uint SKY_coin_GetBlockBody(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidSigInvalidPubKey")] - public static extern long get_SKY_ErrInvalidSigInvalidPubKey(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewEmptyBlock")] + public static extern uint SKY_coin_NewEmptyBlock(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidSigValidity")] - public static extern long get_SKY_ErrInvalidSigValidity(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_bip39_NewDefaultMnemomic")] + public static extern uint SKY_bip39_NewDefaultMnemomic(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidSigForMessage")] - public static extern long get_SKY_ErrInvalidSigForMessage(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_bip39_NewEntropy")] + public static extern uint SKY_bip39_NewEntropy(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidSecKyVerification")] - public static extern long get_SKY_ErrInvalidSecKyVerification(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_bip39_NewMnemonic")] + public static extern uint SKY_bip39_NewMnemonic(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrNullPubKeyFromSecKey")] - public static extern long get_SKY_ErrNullPubKeyFromSecKey(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_bip39_MnemonicToByteArray")] + public static extern uint SKY_bip39_MnemonicToByteArray(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidDerivedPubKeyFromSecKey")] - public static extern long get_SKY_ErrInvalidDerivedPubKeyFromSecKey(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_bip39_IsMnemonicValid")] + public static extern uint SKY_bip39_IsMnemonicValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidPubKeyFromHash")] - public static extern long get_SKY_ErrInvalidPubKeyFromHash(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewClient")] + public static extern uint SKY_api_NewClient(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrPubKeyFromSecKeyMissmatch")] - public static extern long get_SKY_ErrPubKeyFromSecKeyMissmatch(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CSRF")] + public static extern uint SKY_api_Client_CSRF(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrTemporaryInsufficientBalance")] - public static extern long get_SKY_ErrTemporaryInsufficientBalance(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Version")] + public static extern uint SKY_api_Client_Version(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrAddress")] - public static extern long get_SKY_ErrAddress(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Outputs")] + public static extern uint SKY_api_Client_Outputs(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrWalletName")] - public static extern long get_SKY_ErrWalletName(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_OutputsForAddresses")] + public static extern uint SKY_api_Client_OutputsForAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrJSONMarshal")] - public static extern long get_SKY_ErrJSONMarshal(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_OutputsForHashes")] + public static extern uint SKY_api_Client_OutputsForHashes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_WalletLoadError")] - public static extern long get_SKY_WalletLoadError(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CoinSupply")] + public static extern uint SKY_api_Client_CoinSupply(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_WalletSaveError")] - public static extern long get_SKY_WalletSaveError(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_BlockByHash")] + public static extern uint SKY_api_Client_BlockByHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrAddEarnedCoinHoursAdditionOverflow")] - public static extern long get_SKY_ErrAddEarnedCoinHoursAdditionOverflow(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_BlockBySeq")] + public static extern uint SKY_api_Client_BlockBySeq(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrUint64MultOverflow")] - public static extern long get_SKY_ErrUint64MultOverflow(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Blocks")] + public static extern uint SKY_api_Client_Blocks(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrUint64AddOverflow")] - public static extern long get_SKY_ErrUint64AddOverflow(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_LastBlocks")] + public static extern uint SKY_api_Client_LastBlocks(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrUint32AddOverflow")] - public static extern long get_SKY_ErrUint32AddOverflow(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_BlockchainMetadata")] + public static extern uint SKY_api_Client_BlockchainMetadata(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrUint64OverflowsInt64")] - public static extern long get_SKY_ErrUint64OverflowsInt64(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_BlockchainProgress")] + public static extern uint SKY_api_Client_BlockchainProgress(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInt64UnderflowsUint64")] - public static extern long get_SKY_ErrInt64UnderflowsUint64(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Balance")] + public static extern uint SKY_api_Client_Balance(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrPeerlistFull")] - public static extern long get_SKY_ErrPeerlistFull(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_UxOut")] + public static extern uint SKY_api_Client_UxOut(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidAddress")] - public static extern long get_SKY_ErrInvalidAddress(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_AddressUxOuts")] + public static extern uint SKY_api_Client_AddressUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrNoLocalhost")] - public static extern long get_SKY_ErrNoLocalhost(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Wallet")] + public static extern uint SKY_api_Client_Wallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrNotExternalIP")] - public static extern long get_SKY_ErrNotExternalIP(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Wallets")] + public static extern uint SKY_api_Client_Wallets(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrPortTooLow")] - public static extern long get_SKY_ErrPortTooLow(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CreateUnencryptedWallet")] + public static extern uint SKY_api_Client_CreateUnencryptedWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, long jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrBlacklistedAddress")] - public static extern long get_SKY_ErrBlacklistedAddress(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CreateEncryptedWallet")] + public static extern uint SKY_api_Client_CreateEncryptedWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, long jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectReadFailed")] - public static extern long get_SKY_ErrDisconnectReadFailed(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NewWalletAddress")] + public static extern uint SKY_api_Client_NewWalletAddress(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectWriteFailed")] - public static extern long get_SKY_ErrDisconnectWriteFailed(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_WalletBalance")] + public static extern uint SKY_api_Client_WalletBalance(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectSetReadDeadlineFailed")] - public static extern long get_SKY_ErrDisconnectSetReadDeadlineFailed(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Spend")] + public static extern uint SKY_api_Client_Spend(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, ulong jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectInvalidMessageLength")] - public static extern long get_SKY_ErrDisconnectInvalidMessageLength(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CreateTransaction")] + public static extern uint SKY_api_Client_CreateTransaction(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectMalformedMessage")] - public static extern long get_SKY_ErrDisconnectMalformedMessage(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_UpdateWallet")] + public static extern uint SKY_api_Client_UpdateWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectUnknownMessage")] - public static extern long get_SKY_ErrDisconnectUnknownMessage(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_WalletFolderName")] + public static extern uint SKY_api_Client_WalletFolderName(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectUnexpectedError")] - public static extern long get_SKY_ErrDisconnectUnexpectedError(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NewSeed")] + public static extern uint SKY_api_Client_NewSeed(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrConnectionPoolClosed")] - public static extern long get_SKY_ErrConnectionPoolClosed(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_GetWalletSeed")] + public static extern uint SKY_api_Client_GetWalletSeed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrWriteQueueFull")] - public static extern long get_SKY_ErrWriteQueueFull(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkConnection")] + public static extern uint SKY_api_Client_NetworkConnection(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrNoReachableConnections")] - public static extern long get_SKY_ErrNoReachableConnections(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkConnections")] + public static extern uint SKY_api_Client_NetworkConnections(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrMaxDefaultConnectionsReached")] - public static extern long get_SKY_ErrMaxDefaultConnectionsReached(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkDefaultConnections")] + public static extern uint SKY_api_Client_NetworkDefaultConnections(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectInvalidVersion")] - public static extern long get_SKY_ErrDisconnectInvalidVersion(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkTrustedConnections")] + public static extern uint SKY_api_Client_NetworkTrustedConnections(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectIntroductionTimeout")] - public static extern long get_SKY_ErrDisconnectIntroductionTimeout(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkExchangeableConnections")] + public static extern uint SKY_api_Client_NetworkExchangeableConnections(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectVersionSendFailed")] - public static extern long get_SKY_ErrDisconnectVersionSendFailed(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_PendingTransactions")] + public static extern uint SKY_api_Client_PendingTransactions(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectIsBlacklisted")] - public static extern long get_SKY_ErrDisconnectIsBlacklisted(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Transaction")] + public static extern uint SKY_api_Client_Transaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectSelf")] - public static extern long get_SKY_ErrDisconnectSelf(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Transactions")] + public static extern uint SKY_api_Client_Transactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectConnectedTwice")] - public static extern long get_SKY_ErrDisconnectConnectedTwice(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_ConfirmedTransactions")] + public static extern uint SKY_api_Client_ConfirmedTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectIdle")] - public static extern long get_SKY_ErrDisconnectIdle(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_UnconfirmedTransactions")] + public static extern uint SKY_api_Client_UnconfirmedTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectNoIntroduction")] - public static extern long get_SKY_ErrDisconnectNoIntroduction(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_InjectTransaction")] + public static extern uint SKY_api_Client_InjectTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectIPLimitReached")] - public static extern long get_SKY_ErrDisconnectIPLimitReached(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_ResendUnconfirmedTransactions")] + public static extern uint SKY_api_Client_ResendUnconfirmedTransactions(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectOtherError")] - public static extern long get_SKY_ErrDisconnectOtherError(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_RawTransaction")] + public static extern uint SKY_api_Client_RawTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectMaxDefaultConnectionReached")] - public static extern long get_SKY_ErrDisconnectMaxDefaultConnectionReached(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_AddressTransactions")] + public static extern uint SKY_api_Client_AddressTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectMaxOutgoingConnectionsReached")] - public static extern long get_SKY_ErrDisconnectMaxOutgoingConnectionsReached(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Richlist")] + public static extern uint SKY_api_Client_Richlist(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ConnectionError")] - public static extern long get_SKY_ConnectionError(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_AddressCount")] + public static extern uint SKY_api_Client_AddressCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrTxnNoFee")] - public static extern long get_SKY_ErrTxnNoFee(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_UnloadWallet")] + public static extern uint SKY_api_Client_UnloadWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrTxnInsufficientFee")] - public static extern long get_SKY_ErrTxnInsufficientFee(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Health")] + public static extern uint SKY_api_Client_Health(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrTxnInsufficientCoinHours")] - public static extern long get_SKY_ErrTxnInsufficientCoinHours(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_EncryptWallet")] + public static extern uint SKY_api_Client_EncryptWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrNegativeValue")] - public static extern long get_SKY_ErrNegativeValue(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_DecryptWallet")] + public static extern uint SKY_api_Client_DecryptWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrTooManyDecimals")] - public static extern long get_SKY_ErrTooManyDecimals(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_Print")] + public static extern uint SKY_secp256k1go_XY_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrTooLarge")] - public static extern long get_SKY_ErrTooLarge(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_ParsePubkey")] + public static extern uint SKY_secp256k1go_XY_ParsePubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrEmptyDirectoryName")] - public static extern long get_SKY_ErrEmptyDirectoryName(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_Bytes")] + public static extern uint SKY_secp256k1go_XY_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDotDirectoryName")] - public static extern long get_SKY_ErrDotDirectoryName(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_BytesUncompressed")] + public static extern uint SKY_secp256k1go_XY_BytesUncompressed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrHistoryDBCorrupted")] - public static extern long get_SKY_ErrHistoryDBCorrupted(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_SetXY")] + public static extern uint SKY_secp256k1go_XY_SetXY(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrUxOutNotExist")] - public static extern long get_SKY_ErrUxOutNotExist(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_IsValid")] + public static extern uint SKY_secp256k1go_XY_IsValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrNoHeadBlock")] - public static extern long get_SKY_ErrNoHeadBlock(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_SetXYZ")] + public static extern uint SKY_secp256k1go_XY_SetXYZ(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrMissingSignature")] - public static extern long get_SKY_ErrMissingSignature(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_Neg")] + public static extern uint SKY_secp256k1go_XY_Neg(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrUnspentNotExist")] - public static extern long get_SKY_ErrUnspentNotExist(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_SetXO")] + public static extern uint SKY_secp256k1go_XY_SetXO(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, byte jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrVerifyStopped")] - public static extern long get_SKY_ErrVerifyStopped(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_AddXY")] + public static extern uint SKY_secp256k1go_XY_AddXY(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrCreateBucketFailed")] - public static extern long get_SKY_ErrCreateBucketFailed(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_GetPublicKey")] + public static extern uint SKY_secp256k1go_XY_GetPublicKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrBucketNotExist")] - public static extern long get_SKY_ErrBucketNotExist(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewWalletResponse")] + public static extern uint SKY_api_NewWalletResponse(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrTxnViolatesHardConstraint")] - public static extern long get_SKY_ErrTxnViolatesHardConstraint(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewCreateTransactionResponse")] + public static extern uint SKY_api_NewCreateTransactionResponse(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrTxnViolatesSoftConstraint")] - public static extern long get_SKY_ErrTxnViolatesSoftConstraint(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewCreatedTransaction")] + public static extern uint SKY_api_NewCreatedTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrTxnViolatesUserConstraint")] - public static extern long get_SKY_ErrTxnViolatesUserConstraint(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_CreatedTransaction_ToTransaction")] + public static extern uint SKY_api_CreatedTransaction_ToTransaction(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInsufficientBalance")] - public static extern long get_SKY_ErrInsufficientBalance(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewCreatedTransactionOutput")] + public static extern uint SKY_api_NewCreatedTransactionOutput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInsufficientHours")] - public static extern long get_SKY_ErrInsufficientHours(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewCreatedTransactionInput")] + public static extern uint SKY_api_NewCreatedTransactionInput(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrZeroSpend")] - public static extern long get_SKY_ErrZeroSpend(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewError")] + public static extern uint SKY_wallet_NewError(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrSpendingUnconfirmed")] - public static extern long get_SKY_ErrSpendingUnconfirmed(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewWallet")] + public static extern uint SKY_wallet_NewWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidEncryptedField")] - public static extern long get_SKY_ErrInvalidEncryptedField(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Lock")] + public static extern uint SKY_wallet_Wallet_Lock(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrWalletEncrypted")] - public static extern long get_SKY_ErrWalletEncrypted(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Unlock")] + public static extern uint SKY_wallet_Wallet_Unlock(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrWalletNotEncrypted")] - public static extern long get_SKY_ErrWalletNotEncrypted(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Load")] + public static extern uint SKY_wallet_Load(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrMissingPassword")] - public static extern long get_SKY_ErrMissingPassword(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Save")] + public static extern uint SKY_wallet_Wallet_Save(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrMissingEncrypt")] - public static extern long get_SKY_ErrMissingEncrypt(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Validate")] + public static extern uint SKY_wallet_Wallet_Validate(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidPassword")] - public static extern long get_SKY_ErrInvalidPassword(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Type")] + public static extern uint SKY_wallet_Wallet_Type(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrMissingSeed")] - public static extern long get_SKY_ErrMissingSeed(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Version")] + public static extern uint SKY_wallet_Wallet_Version(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrMissingAuthenticated")] - public static extern long get_SKY_ErrMissingAuthenticated(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Filename")] + public static extern uint SKY_wallet_Wallet_Filename(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrWrongCryptoType")] - public static extern long get_SKY_ErrWrongCryptoType(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Label")] + public static extern uint SKY_wallet_Wallet_Label(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrWalletNotExist")] - public static extern long get_SKY_ErrWalletNotExist(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_IsEncrypted")] + public static extern uint SKY_wallet_Wallet_IsEncrypted(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrSeedUsed")] - public static extern long get_SKY_ErrSeedUsed(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_GenerateAddresses")] + public static extern uint SKY_wallet_Wallet_GenerateAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrWalletAPIDisabled")] - public static extern long get_SKY_ErrWalletAPIDisabled(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_GetAddresses")] + public static extern uint SKY_wallet_Wallet_GetAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrSeedAPIDisabled")] - public static extern long get_SKY_ErrSeedAPIDisabled(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_GetEntry")] + public static extern uint SKY_wallet_Wallet_GetEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrWalletNameConflict")] - public static extern long get_SKY_ErrWalletNameConflict(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_AddEntry")] + public static extern uint SKY_wallet_Wallet_AddEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidHoursSelectionMode")] - public static extern long get_SKY_ErrInvalidHoursSelectionMode(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_DistributeSpendHours")] + public static extern uint SKY_wallet_DistributeSpendHours(ulong jarg1, ulong jarg2, byte jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidHoursSelectionType")] - public static extern long get_SKY_ErrInvalidHoursSelectionType(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_DistributeCoinHoursProportional")] + public static extern uint SKY_wallet_DistributeCoinHoursProportional(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrUnknownAddress")] - public static extern long get_SKY_ErrUnknownAddress(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewUxBalances")] + public static extern uint SKY_wallet_NewUxBalances(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrUnknownUxOut")] - public static extern long get_SKY_ErrUnknownUxOut(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewUxBalance")] + public static extern uint SKY_wallet_NewUxBalance(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrNoUnspents")] - public static extern long get_SKY_ErrNoUnspents(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ChooseSpendsMinimizeUxOuts")] + public static extern uint SKY_wallet_ChooseSpendsMinimizeUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrNullChangeAddress")] - public static extern long get_SKY_ErrNullChangeAddress(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ChooseSpendsMaximizeUxOuts")] + public static extern uint SKY_wallet_ChooseSpendsMaximizeUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrMissingTo")] - public static extern long get_SKY_ErrMissingTo(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_CheckWalletBalance")] + public static extern uint SKY_cli_CheckWalletBalance(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrZeroCoinsTo")] - public static extern long get_SKY_ErrZeroCoinsTo(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GetBalanceOfAddresses")] + public static extern uint SKY_cli_GetBalanceOfAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrNullAddressTo")] - public static extern long get_SKY_ErrNullAddressTo(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewReadableEntry")] + public static extern uint SKY_wallet_NewReadableEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDuplicateTo")] - public static extern long get_SKY_ErrDuplicateTo(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_LoadReadableEntry")] + public static extern uint SKY_wallet_LoadReadableEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrMissingWalletID")] - public static extern long get_SKY_ErrMissingWalletID(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewReadableEntryFromPubkey")] + public static extern uint SKY_wallet_NewReadableEntryFromPubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrIncludesNullAddress")] - public static extern long get_SKY_ErrIncludesNullAddress(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableEntry_Save")] + public static extern uint SKY_wallet_ReadableEntry_Save(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDuplicateAddresses")] - public static extern long get_SKY_ErrDuplicateAddresses(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_LoadReadableWallet")] + public static extern uint SKY_wallet_LoadReadableWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrZeroToHoursAuto")] - public static extern long get_SKY_ErrZeroToHoursAuto(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableWallet_Save")] + public static extern uint SKY_wallet_ReadableWallet_Save(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrMissingModeAuto")] - public static extern long get_SKY_ErrMissingModeAuto(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableWallet_Load")] + public static extern uint SKY_wallet_ReadableWallet_Load(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidHoursSelMode")] - public static extern long get_SKY_ErrInvalidHoursSelMode(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableWallet_Erase")] + public static extern uint SKY_wallet_ReadableWallet_Erase(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidModeManual")] - public static extern long get_SKY_ErrInvalidModeManual(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_DecompressPoint")] + public static extern uint SKY_secp256k1go_DecompressPoint(global::System.Runtime.InteropServices.HandleRef jarg1, byte jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidHoursSelType")] - public static extern long get_SKY_ErrInvalidHoursSelType(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_RecoverPublicKey")] + public static extern uint SKY_secp256k1go_RecoverPublicKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrMissingShareFactor")] - public static extern long get_SKY_ErrMissingShareFactor(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Multiply")] + public static extern uint SKY_secp256k1go_Multiply(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidShareFactor")] - public static extern long get_SKY_ErrInvalidShareFactor(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_BaseMultiply")] + public static extern uint SKY_secp256k1go_BaseMultiply(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrShareFactorOutOfRange")] - public static extern long get_SKY_ErrShareFactorOutOfRange(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_BaseMultiplyAdd")] + public static extern uint SKY_secp256k1go_BaseMultiplyAdd(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrWalletConstraint")] - public static extern long get_SKY_ErrWalletConstraint(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_GeneratePublicKey")] + public static extern uint SKY_secp256k1go_GeneratePublicKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDuplicateUxOuts")] - public static extern long get_SKY_ErrDuplicateUxOuts(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_SeckeyIsValid")] + public static extern uint SKY_secp256k1go_SeckeyIsValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrUnknownWalletID")] - public static extern long get_SKY_ErrUnknownWalletID(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_PubkeyIsValid")] + public static extern uint SKY_secp256k1go_PubkeyIsValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrSHA256orMissingPassword")] - public static extern long get_SKY_ErrSHA256orMissingPassword(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_String2Hex")] + public static extern uint SKY_base58_String2Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrSHA256LenghtDataOverflowMaxUint32")] - public static extern long get_SKY_ErrSHA256LenghtDataOverflowMaxUint32(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Base58_ToInt")] + public static extern uint SKY_base58_Base58_ToInt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrVerifySignatureInvalidPubkeysLength")] - public static extern long get_SKY_ErrVerifySignatureInvalidPubkeysLength(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Base58_ToHex")] + public static extern uint SKY_base58_Base58_ToHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set__GoString__p")] - public static extern void set__GoString__p(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Base58_Base582Int")] + public static extern uint SKY_base58_Base58_Base582Int(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get__GoString__p")] - public static extern string get__GoString__p(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Base582Hex")] + public static extern uint SKY_base58_Base582Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set__GoString__n")] - public static extern void set__GoString__n(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Base58_BitHex")] + public static extern uint SKY_base58_Base58_BitHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get__GoString__n")] - public static extern global::System.IntPtr get__GoString__n(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Int2Base58")] + public static extern uint SKY_base58_Int2Base58(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new__GoString_")] - public static extern global::System.IntPtr new__GoString_(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Hex2Base58")] + public static extern uint SKY_base58_Hex2Base58(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete__GoString_")] - public static extern void delete__GoString_(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Hex2Base58String")] + public static extern uint SKY_base58_Hex2Base58String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_GoInterface_t")] - public static extern void set_GoInterface_t(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Hex2Base58Str")] + public static extern uint SKY_base58_Hex2Base58Str(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_GoInterface_t")] - public static extern global::System.IntPtr get_GoInterface_t(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GenerateWallet")] + public static extern uint SKY_cli_GenerateWallet(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_GoInterface_v")] - public static extern void set_GoInterface_v(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_MakeAlphanumericSeed")] + public static extern uint SKY_cli_MakeAlphanumericSeed(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_GoInterface_v")] - public static extern global::System.IntPtr get_GoInterface_v(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_NewClient")] + public static extern uint SKY_webrpc_NewClient(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_GoInterface")] - public static extern global::System.IntPtr new_GoInterface(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_CSRF")] + public static extern uint SKY_webrpc_Client_CSRF(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_GoInterface")] - public static extern void delete_GoInterface(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_InjectTransaction")] + public static extern uint SKY_webrpc_Client_InjectTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_GoSlice_data")] - public static extern void set_GoSlice_data(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetStatus")] + public static extern uint SKY_webrpc_Client_GetStatus(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_GoSlice_data")] - public static extern global::System.IntPtr get_GoSlice_data(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetTransactionByID")] + public static extern uint SKY_webrpc_Client_GetTransactionByID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_GoSlice_len")] - public static extern void set_GoSlice_len(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetAddressUxOuts")] + public static extern uint SKY_webrpc_Client_GetAddressUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_GoSlice_len")] - public static extern long get_GoSlice_len(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetBlocks")] + public static extern uint SKY_webrpc_Client_GetBlocks(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_GoSlice_cap")] - public static extern void set_GoSlice_cap(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetBlocksBySeq")] + public static extern uint SKY_webrpc_Client_GetBlocksBySeq(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_GoSlice_cap")] - public static extern long get_GoSlice_cap(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetLastBlocks")] + public static extern uint SKY_webrpc_Client_GetLastBlocks(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_GoSlice")] - public static extern global::System.IntPtr new_GoSlice(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_browser_Open")] + public static extern uint SKY_browser_Open(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_GoSlice")] - public static extern void delete_GoSlice(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_iputil_LocalhostIP")] + public static extern uint SKY_iputil_LocalhostIP(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewBlock")] - public static extern uint SKY_coin_NewBlock(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_iputil_IsLocalhost")] + public static extern uint SKY_iputil_IsLocalhost(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SignedBlock_VerifySignature")] - public static extern uint SKY_coin_SignedBlock_VerifySignature(global::System.Runtime.InteropServices.HandleRef jarg1, SWIGTYPE_p_cipher_PubKey jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_iputil_SplitAddr")] + public static extern uint SKY_iputil_SplitAddr(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewGenesisBlock")] - public static extern uint SKY_coin_NewGenesisBlock(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encoder_StructField_String")] + public static extern uint SKY_encoder_StructField_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_HashHeader")] - public static extern uint SKY_coin_Block_HashHeader(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encoder_ParseFields")] + public static extern uint SKY_encoder_ParseFields(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_PreHashHeader")] - public static extern uint SKY_coin_Block_PreHashHeader(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_SumSHA256")] + public static extern uint SKY_secp256k1_SumSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_Time")] - public static extern uint SKY_coin_Block_Time(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_RandByte")] + public static extern uint SKY_secp256k1_RandByte(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_Seq")] - public static extern uint SKY_coin_Block_Seq(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GenerateAddressesInFile")] + public static extern uint SKY_cli_GenerateAddressesInFile(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_HashBody")] - public static extern uint SKY_coin_Block_HashBody(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_FormatAddressesAsJSON")] + public static extern uint SKY_cli_FormatAddressesAsJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_Size")] - public static extern uint SKY_coin_Block_Size(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_FormatAddressesAsJoinedArray")] + public static extern uint SKY_cli_FormatAddressesAsJoinedArray(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_String")] - public static extern uint SKY_coin_Block_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_AddressesToStrings")] + public static extern uint SKY_cli_AddressesToStrings(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_GetTransaction")] - public static extern uint SKY_coin_Block_GetTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddUint64")] + public static extern uint SKY_coin_AddUint64(ulong jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewBlockHeader")] - public static extern uint SKY_coin_NewBlockHeader(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, ulong jarg3, ulong jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Uint64ToInt64")] + public static extern uint SKY_coin_Uint64ToInt64(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockHeader_Hash")] - public static extern uint SKY_coin_BlockHeader_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Int64ToUint64")] + public static extern uint SKY_coin_Int64ToUint64(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockHeader_Bytes")] - public static extern uint SKY_coin_BlockHeader_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeySlice_Len")] + public static extern uint SKY_cipher_PubKeySlice_Len(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockHeader_String")] - public static extern uint SKY_coin_BlockHeader_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeySlice_Less")] + public static extern uint SKY_cipher_PubKeySlice_Less(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockBody_Hash")] - public static extern uint SKY_coin_BlockBody_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeySlice_Swap")] + public static extern uint SKY_cipher_PubKeySlice_Swap(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockBody_Size")] - public static extern uint SKY_coin_BlockBody_Size(global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_RandByte")] + public static extern uint SKY_cipher_RandByte(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockBody_Bytes")] - public static extern uint SKY_coin_BlockBody_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_NewPubKey")] + public static extern uint SKY_cipher_NewPubKey(global::System.Runtime.InteropServices.HandleRef jarg1, SWIGTYPE_p_cipher_PubKey jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_CreateUnspents")] - public static extern uint SKY_coin_CreateUnspents(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromHex")] + public static extern uint SKY_cipher_PubKeyFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, SWIGTYPE_p_cipher_PubKey jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_CreateUnspent")] - public static extern uint SKY_coin_CreateUnspent(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromSecKey")] + public static extern uint SKY_cipher_PubKeyFromSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, SWIGTYPE_p_cipher_PubKey jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetBlockObject")] - public static extern uint SKY_coin_GetBlockObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromSig")] + public static extern uint SKY_cipher_PubKeyFromSig(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, SWIGTYPE_p_cipher_PubKey jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetBlockBody")] - public static extern uint SKY_coin_GetBlockBody(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKey_Verify")] + public static extern uint SKY_cipher_PubKey_Verify(SWIGTYPE_p_cipher_PubKey jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewEmptyBlock")] - public static extern uint SKY_coin_NewEmptyBlock(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKey_Hex")] + public static extern uint SKY_cipher_PubKey_Hex(SWIGTYPE_p_cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_bip39_NewDefaultMnemomic")] - public static extern uint SKY_bip39_NewDefaultMnemomic(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKey_ToAddressHash")] + public static extern uint SKY_cipher_PubKey_ToAddressHash(SWIGTYPE_p_cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_bip39_NewEntropy")] - public static extern uint SKY_bip39_NewEntropy(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_NewSecKey")] + public static extern uint SKY_cipher_NewSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_bip39_NewMnemonic")] - public static extern uint SKY_bip39_NewMnemonic(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKeyFromHex")] + public static extern uint SKY_cipher_SecKeyFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_bip39_MnemonicToByteArray")] - public static extern uint SKY_bip39_MnemonicToByteArray(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKey_Verify")] + public static extern uint SKY_cipher_SecKey_Verify(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_bip39_IsMnemonicValid")] - public static extern uint SKY_bip39_IsMnemonicValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKey_Hex")] + public static extern uint SKY_cipher_SecKey_Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewClient")] - public static extern uint SKY_api_NewClient(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_ECDH")] + public static extern uint SKY_cipher_ECDH(SWIGTYPE_p_cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CSRF")] - public static extern uint SKY_api_Client_CSRF(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_NewSig")] + public static extern uint SKY_cipher_NewSig(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Version")] - public static extern uint SKY_api_Client_Version(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SigFromHex")] + public static extern uint SKY_cipher_SigFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Outputs")] - public static extern uint SKY_api_Client_Outputs(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Sig_Hex")] + public static extern uint SKY_cipher_Sig_Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_OutputsForAddresses")] - public static extern uint SKY_api_Client_OutputsForAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SignHash")] + public static extern uint SKY_cipher_SignHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_OutputsForHashes")] - public static extern uint SKY_api_Client_OutputsForHashes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_ChkSig")] + public static extern uint SKY_cipher_ChkSig(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CoinSupply")] - public static extern uint SKY_api_Client_CoinSupply(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_VerifySignedHash")] + public static extern uint SKY_cipher_VerifySignedHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_BlockByHash")] - public static extern uint SKY_api_Client_BlockByHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_VerifySignature")] + public static extern uint SKY_cipher_VerifySignature(SWIGTYPE_p_cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_BlockBySeq")] - public static extern uint SKY_api_Client_BlockBySeq(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPair")] + public static extern uint SKY_cipher_GenerateDeterministicKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, SWIGTYPE_p_cipher_PubKey jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Blocks")] - public static extern uint SKY_api_Client_Blocks(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_DeterministicKeyPairIterator")] + public static extern uint SKY_cipher_DeterministicKeyPairIterator(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, SWIGTYPE_p_cipher_PubKey jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_LastBlocks")] - public static extern uint SKY_api_Client_LastBlocks(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairs")] + public static extern uint SKY_cipher_GenerateDeterministicKeyPairs(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_BlockchainMetadata")] - public static extern uint SKY_api_Client_BlockchainMetadata(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairsSeed")] + public static extern uint SKY_cipher_GenerateDeterministicKeyPairsSeed(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_BlockchainProgress")] - public static extern uint SKY_api_Client_BlockchainProgress(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_TestSecKey")] + public static extern uint SKY_cipher_TestSecKey(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Balance")] - public static extern uint SKY_api_Client_Balance(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_TestSecKeyHash")] + public static extern uint SKY_cipher_TestSecKeyHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_UxOut")] - public static extern uint SKY_api_Client_UxOut(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateKeyPair")] + public static extern uint SKY_cipher_GenerateKeyPair(SWIGTYPE_p_cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_AddressUxOuts")] - public static extern uint SKY_api_Client_AddressUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Create")] + public static extern uint SKY_secp256k1go_Signature_Create(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Wallet")] - public static extern uint SKY_api_Client_Wallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_GetR")] + public static extern uint SKY_secp256k1go_Signature_GetR(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Wallets")] - public static extern uint SKY_api_Client_Wallets(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_GetS")] + public static extern uint SKY_secp256k1go_Signature_GetS(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CreateUnencryptedWallet")] - public static extern uint SKY_api_Client_CreateUnencryptedWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, long jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Print")] + public static extern uint SKY_secp256k1go_Signature_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CreateEncryptedWallet")] - public static extern uint SKY_api_Client_CreateEncryptedWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, long jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Verify")] + public static extern uint SKY_secp256k1go_Signature_Verify(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NewWalletAddress")] - public static extern uint SKY_api_Client_NewWalletAddress(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Recover")] + public static extern uint SKY_secp256k1go_Signature_Recover(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, long jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_WalletBalance")] - public static extern uint SKY_api_Client_WalletBalance(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Sign")] + public static extern uint SKY_secp256k1go_Signature_Sign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Spend")] - public static extern uint SKY_api_Client_Spend(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, ulong jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_ParseBytes")] + public static extern uint SKY_secp256k1go_Signature_ParseBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CreateTransaction")] - public static extern uint SKY_api_Client_CreateTransaction(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Bytes")] + public static extern uint SKY_secp256k1go_Signature_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_UpdateWallet")] - public static extern uint SKY_api_Client_UpdateWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_App_Run")] + public static extern uint SKY_cli_App_Run(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_WalletFolderName")] - public static extern uint SKY_api_Client_WalletFolderName(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Config_GetCoin")] + public static extern uint SKY_cli_Config_GetCoin(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NewSeed")] - public static extern uint SKY_api_Client_NewSeed(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Config_GetRPCAddress")] + public static extern uint SKY_cli_Config_GetRPCAddress(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_GetWalletSeed")] - public static extern uint SKY_api_Client_GetWalletSeed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_RPCClientFromApp")] + public static extern uint SKY_cli_RPCClientFromApp(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkConnection")] - public static extern uint SKY_api_Client_NetworkConnection(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Getenv")] + public static extern uint SKY_cli_Getenv(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkConnections")] - public static extern uint SKY_api_Client_NetworkConnections(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Setenv")] + public static extern uint SKY_cli_Setenv(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkDefaultConnections")] - public static extern uint SKY_api_Client_NetworkDefaultConnections(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_poly1305_Verify")] + public static extern uint SKY_poly1305_Verify(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkTrustedConnections")] - public static extern uint SKY_api_Client_NetworkTrustedConnections(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewBalance")] + public static extern uint SKY_wallet_NewBalance(ulong jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkExchangeableConnections")] - public static extern uint SKY_api_Client_NetworkExchangeableConnections(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewBalanceFromUxOut")] + public static extern uint SKY_wallet_NewBalanceFromUxOut(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_PendingTransactions")] - public static extern uint SKY_api_Client_PendingTransactions(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Balance_Add")] + public static extern uint SKY_wallet_Balance_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Transaction")] - public static extern uint SKY_api_Client_Transaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Balance_Sub")] + public static extern uint SKY_wallet_Balance_Sub(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Transactions")] - public static extern uint SKY_api_Client_Transactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Balance_Equals")] + public static extern uint SKY_wallet_Balance_Equals(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_ConfirmedTransactions")] - public static extern uint SKY_api_Client_ConfirmedTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Balance_IsZero")] + public static extern uint SKY_wallet_Balance_IsZero(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_UnconfirmedTransactions")] - public static extern uint SKY_api_Client_UnconfirmedTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_utc_UnixNow")] + public static extern uint SKY_utc_UnixNow(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_InjectTransaction")] - public static extern uint SKY_api_Client_InjectTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Address_UnmarshalJSON")] + public static extern uint SKY_httphelper_Address_UnmarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_ResendUnconfirmedTransactions")] - public static extern uint SKY_api_Client_ResendUnconfirmedTransactions(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Address_MarshalJSON")] + public static extern uint SKY_httphelper_Address_MarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_RawTransaction")] - public static extern uint SKY_api_Client_RawTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Coins_UnmarshalJSON")] + public static extern uint SKY_httphelper_Coins_UnmarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_AddressTransactions")] - public static extern uint SKY_api_Client_AddressTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Coins_MarshalJSON")] + public static extern uint SKY_httphelper_Coins_MarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Richlist")] - public static extern uint SKY_api_Client_Richlist(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Coins_Value")] + public static extern uint SKY_httphelper_Coins_Value(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_AddressCount")] - public static extern uint SKY_api_Client_AddressCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Hours_UnmarshalJSON")] + public static extern uint SKY_httphelper_Hours_UnmarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_UnloadWallet")] - public static extern uint SKY_api_Client_UnloadWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Hours_MarshalJSON")] + public static extern uint SKY_httphelper_Hours_MarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Health")] - public static extern uint SKY_api_Client_Health(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Hours_Value")] + public static extern uint SKY_httphelper_Hours_Value(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_EncryptWallet")] - public static extern uint SKY_api_Client_EncryptWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Entry_Verify")] + public static extern uint SKY_wallet_Entry_Verify(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_DecryptWallet")] - public static extern uint SKY_api_Client_DecryptWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Entry_VerifyPublic")] + public static extern uint SKY_wallet_Entry_VerifyPublic(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_Print")] - public static extern uint SKY_secp256k1go_XY_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_CreateAddresses")] + public static extern uint SKY_wallet_CreateAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, byte jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_ParsePubkey")] - public static extern uint SKY_secp256k1go_XY_ParsePubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_GetSkycoinWalletEntry")] + public static extern uint SKY_wallet_GetSkycoinWalletEntry(SWIGTYPE_p_cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_Bytes")] - public static extern uint SKY_secp256k1go_XY_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_GetBitcoinWalletEntry")] + public static extern uint SKY_wallet_GetBitcoinWalletEntry(SWIGTYPE_p_cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_BytesUncompressed")] - public static extern uint SKY_secp256k1go_XY_BytesUncompressed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Print")] + public static extern uint SKY_secp256k1go_XYZ_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_SetXY")] - public static extern uint SKY_secp256k1go_XY_SetXY(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_SetXY")] + public static extern uint SKY_secp256k1go_XYZ_SetXY(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_IsValid")] - public static extern uint SKY_secp256k1go_XY_IsValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_IsInfinity")] + public static extern uint SKY_secp256k1go_XYZ_IsInfinity(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_SetXYZ")] - public static extern uint SKY_secp256k1go_XY_SetXYZ(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_IsValid")] + public static extern uint SKY_secp256k1go_XYZ_IsValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_Neg")] - public static extern uint SKY_secp256k1go_XY_Neg(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Normalize")] + public static extern uint SKY_secp256k1go_XYZ_Normalize(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_SetXO")] - public static extern uint SKY_secp256k1go_XY_SetXO(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, byte jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Equals")] + public static extern uint SKY_secp256k1go_XYZ_Equals(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_AddXY")] - public static extern uint SKY_secp256k1go_XY_AddXY(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_ECmult")] + public static extern uint SKY_secp256k1go_XYZ_ECmult(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_GetPublicKey")] - public static extern uint SKY_secp256k1go_XY_GetPublicKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Neg")] + public static extern uint SKY_secp256k1go_XYZ_Neg(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewWalletResponse")] - public static extern uint SKY_api_NewWalletResponse(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Double")] + public static extern uint SKY_secp256k1go_XYZ_Double(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewCreateTransactionResponse")] - public static extern uint SKY_api_NewCreateTransactionResponse(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_AddXY")] + public static extern uint SKY_secp256k1go_XYZ_AddXY(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewCreatedTransaction")] - public static extern uint SKY_api_NewCreatedTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Add")] + public static extern uint SKY_secp256k1go_XYZ_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_CreatedTransaction_ToTransaction")] - public static extern uint SKY_api_CreatedTransaction_ToTransaction(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_ECmultGen")] + public static extern uint SKY_secp256k1go_ECmultGen(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewCreatedTransactionOutput")] - public static extern uint SKY_api_NewCreatedTransactionOutput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encrypt_Sha256Xor_Encrypt")] + public static extern uint SKY_encrypt_Sha256Xor_Encrypt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewCreatedTransactionInput")] - public static extern uint SKY_api_NewCreatedTransactionInput(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encrypt_Sha256Xor_Decrypt")] + public static extern uint SKY_encrypt_Sha256Xor_Decrypt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewError")] - public static extern uint SKY_wallet_NewError(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_droplet_FromString")] + public static extern uint SKY_droplet_FromString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewWallet")] - public static extern uint SKY_wallet_NewWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_droplet_ToString")] + public static extern uint SKY_droplet_ToString(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Lock")] - public static extern uint SKY_wallet_Wallet_Lock(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_CryptoTypeFromString")] + public static extern uint SKY_wallet_CryptoTypeFromString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Unlock")] - public static extern uint SKY_wallet_Wallet_Unlock(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_handle_close")] + public static extern void SKY_handle_close(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Load")] - public static extern uint SKY_wallet_Load(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_handle_copy")] + public static extern uint SKY_handle_copy(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Save")] - public static extern uint SKY_wallet_Wallet_Save(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_logging_EnableColors")] + public static extern uint SKY_logging_EnableColors(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Validate")] - public static extern uint SKY_wallet_Wallet_Validate(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_logging_DisableColors")] + public static extern uint SKY_logging_DisableColors(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Type")] - public static extern uint SKY_wallet_Wallet_Type(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_logging_Disable")] + public static extern uint SKY_logging_Disable(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Version")] - public static extern uint SKY_wallet_Wallet_Version(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_map_Get")] + public static extern uint SKY_map_Get(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Filename")] - public static extern uint SKY_wallet_Wallet_Filename(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_map_HasKey")] + public static extern byte SKY_map_HasKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Label")] - public static extern uint SKY_wallet_Wallet_Label(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_map_Close")] + public static extern uint SKY_map_Close(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_IsEncrypted")] - public static extern uint SKY_wallet_Wallet_IsEncrypted(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_DecodeBase58Address")] + public static extern uint SKY_cipher_DecodeBase58Address(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_GenerateAddresses")] - public static extern uint SKY_wallet_Wallet_GenerateAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddressFromBytes")] + public static extern uint SKY_cipher_AddressFromBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_GetAddresses")] - public static extern uint SKY_wallet_Wallet_GetAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddressFromPubKey")] + public static extern uint SKY_cipher_AddressFromPubKey(SWIGTYPE_p_cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_GetEntry")] - public static extern uint SKY_wallet_Wallet_GetEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddressFromSecKey")] + public static extern uint SKY_cipher_AddressFromSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_AddEntry")] - public static extern uint SKY_wallet_Wallet_AddEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinDecodeBase58Address")] + public static extern uint SKY_cipher_BitcoinDecodeBase58Address(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_DistributeSpendHours")] - public static extern uint SKY_wallet_DistributeSpendHours(ulong jarg1, ulong jarg2, byte jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_Null")] + public static extern uint SKY_cipher_Address_Null(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_DistributeCoinHoursProportional")] - public static extern uint SKY_wallet_DistributeCoinHoursProportional(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_Bytes")] + public static extern uint SKY_cipher_Address_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewUxBalances")] - public static extern uint SKY_wallet_NewUxBalances(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_BitcoinBytes")] + public static extern uint SKY_cipher_Address_BitcoinBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewUxBalance")] - public static extern uint SKY_wallet_NewUxBalance(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_Verify")] + public static extern uint SKY_cipher_Address_Verify(global::System.Runtime.InteropServices.HandleRef jarg1, SWIGTYPE_p_cipher_PubKey jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ChooseSpendsMinimizeUxOuts")] - public static extern uint SKY_wallet_ChooseSpendsMinimizeUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_String")] + public static extern uint SKY_cipher_Address_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ChooseSpendsMaximizeUxOuts")] - public static extern uint SKY_wallet_ChooseSpendsMaximizeUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_BitcoinString")] + public static extern uint SKY_cipher_Address_BitcoinString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_CheckWalletBalance")] - public static extern uint SKY_cli_CheckWalletBalance(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_Checksum")] + public static extern uint SKY_cipher_Address_Checksum(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GetBalanceOfAddresses")] - public static extern uint SKY_cli_GetBalanceOfAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_BitcoinChecksum")] + public static extern uint SKY_cipher_Address_BitcoinChecksum(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewReadableEntry")] - public static extern uint SKY_wallet_NewReadableEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinAddressFromPubkey")] + public static extern uint SKY_cipher_BitcoinAddressFromPubkey(SWIGTYPE_p_cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_LoadReadableEntry")] - public static extern uint SKY_wallet_LoadReadableEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinWalletImportFormatFromSeckey")] + public static extern uint SKY_cipher_BitcoinWalletImportFormatFromSeckey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewReadableEntryFromPubkey")] - public static extern uint SKY_wallet_NewReadableEntryFromPubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinAddressFromBytes")] + public static extern uint SKY_cipher_BitcoinAddressFromBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableEntry_Save")] - public static extern uint SKY_wallet_ReadableEntry_Save(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKeyFromWalletImportFormat")] + public static extern uint SKY_cipher_SecKeyFromWalletImportFormat(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_LoadReadableWallet")] - public static extern uint SKY_wallet_LoadReadableWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_JsonEncode_Handle")] + public static extern uint SKY_JsonEncode_Handle(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableWallet_Save")] - public static extern uint SKY_wallet_ReadableWallet_Save(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Progress_GetCurrent")] + public static extern uint SKY_Handle_Progress_GetCurrent(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableWallet_Load")] - public static extern uint SKY_wallet_ReadableWallet_Load(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Block_GetHeadSeq")] + public static extern uint SKY_Handle_Block_GetHeadSeq(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableWallet_Erase")] - public static extern uint SKY_wallet_ReadableWallet_Erase(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Block_GetHeadHash")] + public static extern uint SKY_Handle_Block_GetHeadHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_DecompressPoint")] - public static extern uint SKY_secp256k1go_DecompressPoint(global::System.Runtime.InteropServices.HandleRef jarg1, byte jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Block_GetPreviousBlockHash")] + public static extern uint SKY_Handle_Block_GetPreviousBlockHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_RecoverPublicKey")] - public static extern uint SKY_secp256k1go_RecoverPublicKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Blocks_GetAt")] + public static extern uint SKY_Handle_Blocks_GetAt(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Multiply")] - public static extern uint SKY_secp256k1go_Multiply(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Blocks_GetCount")] + public static extern uint SKY_Handle_Blocks_GetCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_BaseMultiply")] - public static extern uint SKY_secp256k1go_BaseMultiply(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Connections_GetCount")] + public static extern uint SKY_Handle_Connections_GetCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_BaseMultiplyAdd")] - public static extern uint SKY_secp256k1go_BaseMultiplyAdd(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Strings_GetCount")] + public static extern uint SKY_Handle_Strings_GetCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_GeneratePublicKey")] - public static extern uint SKY_secp256k1go_GeneratePublicKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Strings_Sort")] + public static extern uint SKY_Handle_Strings_Sort(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_SeckeyIsValid")] - public static extern uint SKY_secp256k1go_SeckeyIsValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Strings_GetAt")] + public static extern uint SKY_Handle_Strings_GetAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_PubkeyIsValid")] - public static extern uint SKY_secp256k1go_PubkeyIsValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_Client_GetWalletDir")] + public static extern uint SKY_api_Handle_Client_GetWalletDir(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_String2Hex")] - public static extern uint SKY_base58_String2Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_Client_GetWalletFileName")] + public static extern uint SKY_api_Handle_Client_GetWalletFileName(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Base58_ToInt")] - public static extern uint SKY_base58_Base58_ToInt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_Client_GetWalletLabel")] + public static extern uint SKY_api_Handle_Client_GetWalletLabel(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Base58_ToHex")] - public static extern uint SKY_base58_Base58_ToHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_Client_GetWalletFullPath")] + public static extern uint SKY_api_Handle_Client_GetWalletFullPath(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Base58_Base582Int")] - public static extern uint SKY_base58_Base58_Base582Int(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetWalletMeta")] + public static extern uint SKY_api_Handle_GetWalletMeta(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Base582Hex")] - public static extern uint SKY_base58_Base582Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetWalletEntriesCount")] + public static extern uint SKY_api_Handle_GetWalletEntriesCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Base58_BitHex")] - public static extern uint SKY_base58_Base58_BitHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_Client_GetWalletResponseEntriesCount")] + public static extern uint SKY_api_Handle_Client_GetWalletResponseEntriesCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Int2Base58")] - public static extern uint SKY_base58_Int2Base58(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletGetEntry")] + public static extern uint SKY_api_Handle_WalletGetEntry(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, SWIGTYPE_p_cipher_PubKey jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Hex2Base58")] - public static extern uint SKY_base58_Hex2Base58(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletResponseGetEntry")] + public static extern uint SKY_api_Handle_WalletResponseGetEntry(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Hex2Base58String")] - public static extern uint SKY_base58_Hex2Base58String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletResponseIsEncrypted")] + public static extern uint SKY_api_Handle_WalletResponseIsEncrypted(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Hex2Base58Str")] - public static extern uint SKY_base58_Hex2Base58Str(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletResponseGetCryptoType")] + public static extern uint SKY_api_Handle_WalletResponseGetCryptoType(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GenerateWallet")] - public static extern uint SKY_cli_GenerateWallet(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletsResponseGetCount")] + public static extern uint SKY_api_Handle_WalletsResponseGetCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_MakeAlphanumericSeed")] - public static extern uint SKY_cli_MakeAlphanumericSeed(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletsResponseGetAt")] + public static extern uint SKY_api_Handle_WalletsResponseGetAt(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_NewClient")] - public static extern uint SKY_webrpc_NewClient(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetWalletFolderAddress")] + public static extern uint SKY_api_Handle_GetWalletFolderAddress(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_CSRF")] - public static extern uint SKY_webrpc_Client_CSRF(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetWalletSeed")] + public static extern uint SKY_api_Handle_GetWalletSeed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_InjectTransaction")] - public static extern uint SKY_webrpc_Client_InjectTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetWalletLastSeed")] + public static extern uint SKY_api_Handle_GetWalletLastSeed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetStatus")] - public static extern uint SKY_webrpc_Client_GetStatus(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetBuildInfoData")] + public static extern uint SKY_api_Handle_GetBuildInfoData(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetTransactionByID")] - public static extern uint SKY_webrpc_Client_GetTransactionByID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ripemd160_New")] + public static extern uint SKY_ripemd160_New(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetAddressUxOuts")] - public static extern uint SKY_webrpc_Client_GetAddressUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ripemd160_Write")] + public static extern uint SKY_ripemd160_Write(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetBlocks")] - public static extern uint SKY_webrpc_Client_GetBlocks(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ripemd160_Sum")] + public static extern uint SKY_ripemd160_Sum(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetBlocksBySeq")] - public static extern uint SKY_webrpc_Client_GetBlocksBySeq(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_Create")] + public static extern uint SKY_secp256k1go_Number_Create(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetLastBlocks")] - public static extern uint SKY_webrpc_Client_GetLastBlocks(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_Print")] + public static extern uint SKY_secp256k1go_Number_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_browser_Open")] - public static extern uint SKY_browser_Open(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_SetHex")] + public static extern uint SKY_secp256k1go_Number_SetHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_iputil_LocalhostIP")] - public static extern uint SKY_iputil_LocalhostIP(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_IsOdd")] + public static extern uint SKY_secp256k1go_Number_IsOdd(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_iputil_IsLocalhost")] - public static extern uint SKY_iputil_IsLocalhost(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_IsEqual")] + public static extern uint SKY_secp256k1go_Number_IsEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_iputil_SplitAddr")] - public static extern uint SKY_iputil_SplitAddr(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxOut_Hash")] + public static extern uint SKY_coin_UxOut_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encoder_StructField_String")] - public static extern uint SKY_encoder_StructField_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxOut_SnapshotHash")] + public static extern uint SKY_coin_UxOut_SnapshotHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encoder_ParseFields")] - public static extern uint SKY_encoder_ParseFields(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxBody_Hash")] + public static extern uint SKY_coin_UxBody_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_SumSHA256")] - public static extern uint SKY_secp256k1_SumSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxOut_CoinHours")] + public static extern uint SKY_coin_UxOut_CoinHours(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_RandByte")] - public static extern uint SKY_secp256k1_RandByte(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Hashes")] + public static extern uint SKY_coin_UxArray_Hashes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GenerateAddressesInFile")] - public static extern uint SKY_cli_GenerateAddressesInFile(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_HasDupes")] + public static extern uint SKY_coin_UxArray_HasDupes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_FormatAddressesAsJSON")] - public static extern uint SKY_cli_FormatAddressesAsJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Sort")] + public static extern uint SKY_coin_UxArray_Sort(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_FormatAddressesAsJoinedArray")] - public static extern uint SKY_cli_FormatAddressesAsJoinedArray(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Len")] + public static extern uint SKY_coin_UxArray_Len(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_AddressesToStrings")] - public static extern uint SKY_cli_AddressesToStrings(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Less")] + public static extern uint SKY_coin_UxArray_Less(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddUint64")] - public static extern uint SKY_coin_AddUint64(ulong jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Swap")] + public static extern uint SKY_coin_UxArray_Swap(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Uint64ToInt64")] - public static extern uint SKY_coin_Uint64ToInt64(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Coins")] + public static extern uint SKY_coin_UxArray_Coins(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Int64ToUint64")] - public static extern uint SKY_coin_Int64ToUint64(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_CoinHours")] + public static extern uint SKY_coin_UxArray_CoinHours(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeySlice_Len")] - public static extern uint SKY_cipher_PubKeySlice_Len(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Sub")] + public static extern uint SKY_coin_UxArray_Sub(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeySlice_Less")] - public static extern uint SKY_cipher_PubKeySlice_Less(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Add")] + public static extern uint SKY_coin_UxArray_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeySlice_Swap")] - public static extern uint SKY_cipher_PubKeySlice_Swap(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewAddressUxOuts")] + public static extern uint SKY_coin_NewAddressUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_RandByte")] - public static extern uint SKY_cipher_RandByte(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Keys")] + public static extern uint SKY_coin_AddressUxOuts_Keys(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_NewPubKey")] - public static extern uint SKY_cipher_NewPubKey(global::System.Runtime.InteropServices.HandleRef jarg1, SWIGTYPE_p_cipher_PubKey jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Flatten")] + public static extern uint SKY_coin_AddressUxOuts_Flatten(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromHex")] - public static extern uint SKY_cipher_PubKeyFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, SWIGTYPE_p_cipher_PubKey jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Sub")] + public static extern uint SKY_coin_AddressUxOuts_Sub(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromSecKey")] - public static extern uint SKY_cipher_PubKeyFromSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, SWIGTYPE_p_cipher_PubKey jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Add")] + public static extern uint SKY_coin_AddressUxOuts_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromSig")] - public static extern uint SKY_cipher_PubKeyFromSig(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, SWIGTYPE_p_cipher_PubKey jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Get")] + public static extern uint SKY_coin_AddressUxOuts_Get(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKey_Verify")] - public static extern uint SKY_cipher_PubKey_Verify(SWIGTYPE_p_cipher_PubKey jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_HasKey")] + public static extern uint SKY_coin_AddressUxOuts_HasKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKey_Hex")] - public static extern uint SKY_cipher_PubKey_Hex(SWIGTYPE_p_cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_GetOutputLength")] + public static extern uint SKY_coin_AddressUxOuts_GetOutputLength(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKey_ToAddressHash")] - public static extern uint SKY_cipher_PubKey_ToAddressHash(SWIGTYPE_p_cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Length")] + public static extern uint SKY_coin_AddressUxOuts_Length(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_NewSecKey")] - public static extern uint SKY_cipher_NewSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Set")] + public static extern uint SKY_coin_AddressUxOuts_Set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKeyFromHex")] - public static extern uint SKY_cipher_SecKeyFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encrypt_ScryptChacha20poly1305_Encrypt")] + public static extern uint SKY_encrypt_ScryptChacha20poly1305_Encrypt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKey_Verify")] - public static extern uint SKY_cipher_SecKey_Verify(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encrypt_ScryptChacha20poly1305_Decrypt")] + public static extern uint SKY_encrypt_ScryptChacha20poly1305_Decrypt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKey_Hex")] - public static extern uint SKY_cipher_SecKey_Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_CreateOptionsHandle")] + public static extern uint SKY_wallet_CreateOptionsHandle(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, byte jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, ulong jarg7); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_ECDH")] - public static extern uint SKY_cipher_ECDH(SWIGTYPE_p_cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_AddPrivateKey")] + public static extern uint SKY_cli_AddPrivateKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_NewSig")] - public static extern uint SKY_cipher_NewSig(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_AddPrivateKeyToFile")] + public static extern uint SKY_cli_AddPrivateKeyToFile(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SigFromHex")] - public static extern uint SKY_cipher_SigFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_GenerateKeyPair")] + public static extern uint SKY_secp256k1_GenerateKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Sig_Hex")] - public static extern uint SKY_cipher_Sig_Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_PubkeyFromSeckey")] + public static extern uint SKY_secp256k1_PubkeyFromSeckey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SignHash")] - public static extern uint SKY_cipher_SignHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_UncompressPubkey")] + public static extern uint SKY_secp256k1_UncompressPubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_ChkSig")] - public static extern uint SKY_cipher_ChkSig(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_UncompressedPubkeyFromSeckey")] + public static extern uint SKY_secp256k1_UncompressedPubkeyFromSeckey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_VerifySignedHash")] - public static extern uint SKY_cipher_VerifySignedHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_Secp256k1Hash")] + public static extern uint SKY_secp256k1_Secp256k1Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_VerifySignature")] - public static extern uint SKY_cipher_VerifySignature(SWIGTYPE_p_cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_GenerateDeterministicKeyPair")] + public static extern uint SKY_secp256k1_GenerateDeterministicKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPair")] - public static extern uint SKY_cipher_GenerateDeterministicKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, SWIGTYPE_p_cipher_PubKey jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_DeterministicKeyPairIterator")] + public static extern uint SKY_secp256k1_DeterministicKeyPairIterator(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_DeterministicKeyPairIterator")] - public static extern uint SKY_cipher_DeterministicKeyPairIterator(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, SWIGTYPE_p_cipher_PubKey jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_Sign")] + public static extern uint SKY_secp256k1_Sign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairs")] - public static extern uint SKY_cipher_GenerateDeterministicKeyPairs(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_SignDeterministic")] + public static extern uint SKY_secp256k1_SignDeterministic(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairsSeed")] - public static extern uint SKY_cipher_GenerateDeterministicKeyPairsSeed(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_VerifySeckey")] + public static extern uint SKY_secp256k1_VerifySeckey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_TestSecKey")] - public static extern uint SKY_cipher_TestSecKey(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_VerifyPubkey")] + public static extern uint SKY_secp256k1_VerifyPubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_TestSecKeyHash")] - public static extern uint SKY_cipher_TestSecKeyHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_VerifySignatureValidity")] + public static extern uint SKY_secp256k1_VerifySignatureValidity(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateKeyPair")] - public static extern uint SKY_cipher_GenerateKeyPair(SWIGTYPE_p_cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_VerifySignature")] + public static extern uint SKY_secp256k1_VerifySignature(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Create")] - public static extern uint SKY_secp256k1go_Signature_Create(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_SignatureErrorString")] + public static extern uint SKY_secp256k1_SignatureErrorString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_GetR")] - public static extern uint SKY_secp256k1go_Signature_GetR(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_RecoverPubkey")] + public static extern uint SKY_secp256k1_RecoverPubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_GetS")] - public static extern uint SKY_secp256k1go_Signature_GetS(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_ECDH")] + public static extern uint SKY_secp256k1_ECDH(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Print")] - public static extern uint SKY_secp256k1go_Signature_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_apputil_CatchInterruptPanic")] + public static extern uint SKY_apputil_CatchInterruptPanic(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Verify")] - public static extern uint SKY_secp256k1go_Signature_Verify(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_apputil_CatchDebug")] + public static extern uint SKY_apputil_CatchDebug(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Recover")] - public static extern uint SKY_secp256k1go_Signature_Recover(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, long jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_apputil_PrintProgramStatus")] + public static extern uint SKY_apputil_PrintProgramStatus(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Sign")] - public static extern uint SKY_secp256k1go_Signature_Sign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cert_CreateCertIfNotExists")] + public static extern uint SKY_cert_CreateCertIfNotExists(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_ParseBytes")] - public static extern uint SKY_secp256k1go_Signature_ParseBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_VerifyTransactionFee")] + public static extern uint SKY_fee_VerifyTransactionFee(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Bytes")] - public static extern uint SKY_secp256k1go_Signature_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_VerifyTransactionFeeForHours")] + public static extern uint SKY_fee_VerifyTransactionFeeForHours(ulong jarg1, ulong jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_App_Run")] - public static extern uint SKY_cli_App_Run(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_RequiredFee")] + public static extern uint SKY_fee_RequiredFee(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Config_GetCoin")] - public static extern uint SKY_cli_Config_GetCoin(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_RemainingHours")] + public static extern uint SKY_fee_RemainingHours(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Config_GetRPCAddress")] - public static extern uint SKY_cli_Config_GetRPCAddress(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_TransactionFee")] + public static extern uint SKY_fee_TransactionFee(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_RPCClientFromApp")] - public static extern uint SKY_cli_RPCClientFromApp(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_LoadConfig")] + public static extern uint SKY_cli_LoadConfig(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Getenv")] - public static extern uint SKY_cli_Getenv(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Config_FullWalletPath")] + public static extern uint SKY_cli_Config_FullWalletPath(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Setenv")] - public static extern uint SKY_cli_Setenv(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Config_FullDBPath")] + public static extern uint SKY_cli_Config_FullDBPath(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_poly1305_Verify")] - public static extern uint SKY_poly1305_Verify(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_NewApp")] + public static extern uint SKY_cli_NewApp(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewBalance")] - public static extern uint SKY_wallet_NewBalance(ulong jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_RPCClientFromContext")] + public static extern uint SKY_cli_RPCClientFromContext(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewBalanceFromUxOut")] - public static extern uint SKY_wallet_NewBalanceFromUxOut(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_ConfigFromContext")] + public static extern uint SKY_cli_ConfigFromContext(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Balance_Add")] - public static extern uint SKY_wallet_Balance_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_PasswordFromBytes_Password")] + public static extern uint SKY_cli_PasswordFromBytes_Password(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Balance_Sub")] - public static extern uint SKY_wallet_Balance_Sub(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_PasswordFromTerm_Password")] + public static extern uint SKY_cli_PasswordFromTerm_Password(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Balance_Equals")] - public static extern uint SKY_wallet_Balance_Equals(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_CreateRawTxFromWallet")] + public static extern uint SKY_cli_CreateRawTxFromWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Balance_IsZero")] - public static extern uint SKY_wallet_Balance_IsZero(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_CreateRawTxFromAddress")] + public static extern uint SKY_cli_CreateRawTxFromAddress(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_utc_UnixNow")] - public static extern uint SKY_utc_UnixNow(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_CreateRawTx")] + public static extern uint SKY_cli_CreateRawTx(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Address_UnmarshalJSON")] - public static extern uint SKY_httphelper_Address_UnmarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_NewTransaction")] + public static extern uint SKY_cli_NewTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Address_MarshalJSON")] - public static extern uint SKY_httphelper_Address_MarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_file_InitDataDir")] + public static extern uint SKY_file_InitDataDir(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Coins_UnmarshalJSON")] - public static extern uint SKY_httphelper_Coins_UnmarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_file_UserHome")] + public static extern uint SKY_file_UserHome(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Coins_MarshalJSON")] - public static extern uint SKY_httphelper_Coins_MarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_file_ResolveResourceDirectory")] + public static extern uint SKY_file_ResolveResourceDirectory(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Coins_Value")] - public static extern uint SKY_httphelper_Coins_Value(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_file_DetermineResourcePath")] + public static extern uint SKY_file_DetermineResourcePath(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Hours_UnmarshalJSON")] - public static extern uint SKY_httphelper_Hours_UnmarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GetWalletOutputsFromFile")] + public static extern uint SKY_cli_GetWalletOutputsFromFile(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Hours_MarshalJSON")] - public static extern uint SKY_httphelper_Hours_MarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GetWalletOutputs")] + public static extern uint SKY_cli_GetWalletOutputs(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Hours_Value")] - public static extern uint SKY_httphelper_Hours_Value(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_testutil_MakeAddress")] + public static extern uint SKY_testutil_MakeAddress(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Entry_Verify")] - public static extern uint SKY_wallet_Entry_Verify(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_String")] + public static extern uint SKY_secp256k1go_Field_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Entry_VerifyPublic")] - public static extern uint SKY_wallet_Entry_VerifyPublic(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Print")] + public static extern uint SKY_secp256k1go_Field_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_CreateAddresses")] - public static extern uint SKY_wallet_CreateAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, byte jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_SetB32")] + public static extern uint SKY_secp256k1go_Field_SetB32(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_GetSkycoinWalletEntry")] - public static extern uint SKY_wallet_GetSkycoinWalletEntry(SWIGTYPE_p_cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_SetBytes")] + public static extern uint SKY_secp256k1go_Field_SetBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_GetBitcoinWalletEntry")] - public static extern uint SKY_wallet_GetBitcoinWalletEntry(SWIGTYPE_p_cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_SetHex")] + public static extern uint SKY_secp256k1go_Field_SetHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Print")] - public static extern uint SKY_secp256k1go_XYZ_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_IsOdd")] + public static extern uint SKY_secp256k1go_Field_IsOdd(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_SetXY")] - public static extern uint SKY_secp256k1go_XYZ_SetXY(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_IsZero")] + public static extern uint SKY_secp256k1go_Field_IsZero(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_IsInfinity")] - public static extern uint SKY_secp256k1go_XYZ_IsInfinity(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_SetInt")] + public static extern uint SKY_secp256k1go_Field_SetInt(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_IsValid")] - public static extern uint SKY_secp256k1go_XYZ_IsValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Normalize")] + public static extern uint SKY_secp256k1go_Field_Normalize(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Normalize")] - public static extern uint SKY_secp256k1go_XYZ_Normalize(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_GetB32")] + public static extern uint SKY_secp256k1go_Field_GetB32(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Equals")] - public static extern uint SKY_secp256k1go_XYZ_Equals(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Equals")] + public static extern uint SKY_secp256k1go_Field_Equals(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_ECmult")] - public static extern uint SKY_secp256k1go_XYZ_ECmult(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_SetAdd")] + public static extern uint SKY_secp256k1go_Field_SetAdd(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Neg")] - public static extern uint SKY_secp256k1go_XYZ_Neg(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_MulInt")] + public static extern uint SKY_secp256k1go_Field_MulInt(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Double")] - public static extern uint SKY_secp256k1go_XYZ_Double(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Negate")] + public static extern uint SKY_secp256k1go_Field_Negate(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, uint jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_AddXY")] - public static extern uint SKY_secp256k1go_XYZ_AddXY(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Inv")] + public static extern uint SKY_secp256k1go_Field_Inv(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Add")] - public static extern uint SKY_secp256k1go_XYZ_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Sqrt")] + public static extern uint SKY_secp256k1go_Field_Sqrt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_ECmultGen")] - public static extern uint SKY_secp256k1go_ECmultGen(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_InvVar")] + public static extern uint SKY_secp256k1go_Field_InvVar(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encrypt_Sha256Xor_Encrypt")] - public static extern uint SKY_encrypt_Sha256Xor_Encrypt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Mul")] + public static extern uint SKY_secp256k1go_Field_Mul(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encrypt_Sha256Xor_Decrypt")] - public static extern uint SKY_encrypt_Sha256Xor_Decrypt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Sqr")] + public static extern uint SKY_secp256k1go_Field_Sqr(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_droplet_FromString")] - public static extern uint SKY_droplet_FromString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_scrypt_Key")] + public static extern uint SKY_scrypt_Key(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, long jarg4, long jarg5, long jarg6, global::System.Runtime.InteropServices.HandleRef jarg7); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_droplet_ToString")] - public static extern uint SKY_droplet_ToString(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Ripemd160_Set")] + public static extern uint SKY_cipher_Ripemd160_Set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_CryptoTypeFromString")] - public static extern uint SKY_wallet_CryptoTypeFromString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_HashRipemd160")] + public static extern uint SKY_cipher_HashRipemd160(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_handle_close")] - public static extern void SKY_handle_close(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Set")] + public static extern uint SKY_cipher_SHA256_Set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_handle_copy")] - public static extern uint SKY_handle_copy(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Hex")] + public static extern uint SKY_cipher_SHA256_Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_logging_EnableColors")] - public static extern uint SKY_logging_EnableColors(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Xor")] + public static extern uint SKY_cipher_SHA256_Xor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_logging_DisableColors")] - public static extern uint SKY_logging_DisableColors(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SumSHA256")] + public static extern uint SKY_cipher_SumSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_logging_Disable")] - public static extern uint SKY_logging_Disable(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256FromHex")] + public static extern uint SKY_cipher_SHA256FromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_map_Get")] - public static extern uint SKY_map_Get(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_DoubleSHA256")] + public static extern uint SKY_cipher_DoubleSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_map_HasKey")] - public static extern byte SKY_map_HasKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddSHA256")] + public static extern uint SKY_cipher_AddSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_map_Close")] - public static extern uint SKY_map_Close(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Merkle")] + public static extern uint SKY_cipher_Merkle(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_DecodeBase58Address")] - public static extern uint SKY_cipher_DecodeBase58Address(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Null")] + public static extern uint SKY_cipher_SHA256_Null(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddressFromBytes")] - public static extern uint SKY_cipher_AddressFromBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Create_Transaction")] + public static extern uint SKY_coin_Create_Transaction(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddressFromPubKey")] - public static extern uint SKY_cipher_AddressFromPubKey(SWIGTYPE_p_cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Copy")] + public static extern uint SKY_coin_Transaction_Copy(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddressFromSecKey")] - public static extern uint SKY_cipher_AddressFromSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetTransactionObject")] + public static extern uint SKY_coin_GetTransactionObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinDecodeBase58Address")] - public static extern uint SKY_cipher_BitcoinDecodeBase58Address(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_ResetInputs")] + public static extern uint SKY_coin_Transaction_ResetInputs(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_Null")] - public static extern uint SKY_cipher_Address_Null(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetInputsCount")] + public static extern uint SKY_coin_Transaction_GetInputsCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_Bytes")] - public static extern uint SKY_cipher_Address_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetInputAt")] + public static extern uint SKY_coin_Transaction_GetInputAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_BitcoinBytes")] - public static extern uint SKY_cipher_Address_BitcoinBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SetInputAt")] + public static extern uint SKY_coin_Transaction_SetInputAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_Verify")] - public static extern uint SKY_cipher_Address_Verify(global::System.Runtime.InteropServices.HandleRef jarg1, SWIGTYPE_p_cipher_PubKey jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetOutputsCount")] + public static extern uint SKY_coin_Transaction_GetOutputsCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_String")] - public static extern uint SKY_cipher_Address_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetOutputAt")] + public static extern uint SKY_coin_Transaction_GetOutputAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_BitcoinString")] - public static extern uint SKY_cipher_Address_BitcoinString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SetOutputAt")] + public static extern uint SKY_coin_Transaction_SetOutputAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_Checksum")] - public static extern uint SKY_cipher_Address_Checksum(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetSignaturesCount")] + public static extern uint SKY_coin_Transaction_GetSignaturesCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_BitcoinChecksum")] - public static extern uint SKY_cipher_Address_BitcoinChecksum(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetSignatureAt")] + public static extern uint SKY_coin_Transaction_GetSignatureAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinAddressFromPubkey")] - public static extern uint SKY_cipher_BitcoinAddressFromPubkey(SWIGTYPE_p_cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SetSignatureAt")] + public static extern uint SKY_coin_Transaction_SetSignatureAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinWalletImportFormatFromSeckey")] - public static extern uint SKY_cipher_BitcoinWalletImportFormatFromSeckey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_PushSignature")] + public static extern uint SKY_coin_Transaction_PushSignature(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinAddressFromBytes")] - public static extern uint SKY_cipher_BitcoinAddressFromBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_ResetOutputs")] + public static extern uint SKY_coin_Transaction_ResetOutputs(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKeyFromWalletImportFormat")] - public static extern uint SKY_cipher_SecKeyFromWalletImportFormat(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_ResetSignatures")] + public static extern uint SKY_coin_Transaction_ResetSignatures(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_JsonEncode_Handle")] - public static extern uint SKY_JsonEncode_Handle(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Verify")] + public static extern uint SKY_coin_Transaction_Verify(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Progress_GetCurrent")] - public static extern uint SKY_Handle_Progress_GetCurrent(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_VerifyInput")] + public static extern uint SKY_coin_Transaction_VerifyInput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Block_GetHeadSeq")] - public static extern uint SKY_Handle_Block_GetHeadSeq(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_PushInput")] + public static extern uint SKY_coin_Transaction_PushInput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Block_GetHeadHash")] - public static extern uint SKY_Handle_Block_GetHeadHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_TransactionOutput_UxID")] + public static extern uint SKY_coin_TransactionOutput_UxID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Block_GetPreviousBlockHash")] - public static extern uint SKY_Handle_Block_GetPreviousBlockHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_PushOutput")] + public static extern uint SKY_coin_Transaction_PushOutput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, ulong jarg3, ulong jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Blocks_GetAt")] - public static extern uint SKY_Handle_Blocks_GetAt(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SignInputs")] + public static extern uint SKY_coin_Transaction_SignInputs(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Blocks_GetCount")] - public static extern uint SKY_Handle_Blocks_GetCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Size")] + public static extern uint SKY_coin_Transaction_Size(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Connections_GetCount")] - public static extern uint SKY_Handle_Connections_GetCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Hash")] + public static extern uint SKY_coin_Transaction_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Strings_GetCount")] - public static extern uint SKY_Handle_Strings_GetCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SizeHash")] + public static extern uint SKY_coin_Transaction_SizeHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Strings_Sort")] - public static extern uint SKY_Handle_Strings_Sort(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_TxID")] + public static extern uint SKY_coin_Transaction_TxID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Strings_GetAt")] - public static extern uint SKY_Handle_Strings_GetAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_TxIDHex")] + public static extern uint SKY_coin_Transaction_TxIDHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_Client_GetWalletDir")] - public static extern uint SKY_api_Handle_Client_GetWalletDir(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_UpdateHeader")] + public static extern uint SKY_coin_Transaction_UpdateHeader(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_Client_GetWalletFileName")] - public static extern uint SKY_api_Handle_Client_GetWalletFileName(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_HashInner")] + public static extern uint SKY_coin_Transaction_HashInner(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_Client_GetWalletLabel")] - public static extern uint SKY_api_Handle_Client_GetWalletLabel(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Serialize")] + public static extern uint SKY_coin_Transaction_Serialize(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_Client_GetWalletFullPath")] - public static extern uint SKY_api_Handle_Client_GetWalletFullPath(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_TransactionDeserialize")] + public static extern uint SKY_coin_TransactionDeserialize(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetWalletMeta")] - public static extern uint SKY_api_Handle_GetWalletMeta(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_OutputHours")] + public static extern uint SKY_coin_Transaction_OutputHours(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetWalletEntriesCount")] - public static extern uint SKY_api_Handle_GetWalletEntriesCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Create_Transactions")] + public static extern uint SKY_coin_Create_Transactions(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_Client_GetWalletResponseEntriesCount")] - public static extern uint SKY_api_Handle_Client_GetWalletResponseEntriesCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetTransactionsObject")] + public static extern uint SKY_coin_GetTransactionsObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletGetEntry")] - public static extern uint SKY_api_Handle_WalletGetEntry(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, SWIGTYPE_p_cipher_PubKey jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Length")] + public static extern uint SKY_coin_Transactions_Length(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletResponseGetEntry")] - public static extern uint SKY_api_Handle_WalletResponseGetEntry(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Add")] + public static extern uint SKY_coin_Transactions_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletResponseIsEncrypted")] - public static extern uint SKY_api_Handle_WalletResponseIsEncrypted(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Fees")] + public static extern uint SKY_coin_Transactions_Fees(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletResponseGetCryptoType")] - public static extern uint SKY_api_Handle_WalletResponseGetCryptoType(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_GetAt")] + public static extern uint SKY_coin_Transactions_GetAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletsResponseGetCount")] - public static extern uint SKY_api_Handle_WalletsResponseGetCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Hashes")] + public static extern uint SKY_coin_Transactions_Hashes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletsResponseGetAt")] - public static extern uint SKY_api_Handle_WalletsResponseGetAt(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Size")] + public static extern uint SKY_coin_Transactions_Size(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetWalletFolderAddress")] - public static extern uint SKY_api_Handle_GetWalletFolderAddress(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_TruncateBytesTo")] + public static extern uint SKY_coin_Transactions_TruncateBytesTo(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetWalletSeed")] - public static extern uint SKY_api_Handle_GetWalletSeed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SortTransactions")] + public static extern uint SKY_coin_SortTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetWalletLastSeed")] - public static extern uint SKY_api_Handle_GetWalletLastSeed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewSortableTransactions")] + public static extern uint SKY_coin_NewSortableTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetBuildInfoData")] - public static extern uint SKY_api_Handle_GetBuildInfoData(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SortableTransactions_Sort")] + public static extern uint SKY_coin_SortableTransactions_Sort(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ripemd160_New")] - public static extern uint SKY_ripemd160_New(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SortableTransactions_Len")] + public static extern uint SKY_coin_SortableTransactions_Len(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ripemd160_Write")] - public static extern uint SKY_ripemd160_Write(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SortableTransactions_Less")] + public static extern uint SKY_coin_SortableTransactions_Less(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ripemd160_Sum")] - public static extern uint SKY_ripemd160_Sum(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SortableTransactions_Swap")] + public static extern uint SKY_coin_SortableTransactions_Swap(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_Create")] - public static extern uint SKY_secp256k1go_Number_Create(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_VerifyTransactionCoinsSpending")] + public static extern uint SKY_coin_VerifyTransactionCoinsSpending(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_Print")] - public static extern uint SKY_secp256k1go_Number_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_VerifyTransactionHoursSpending")] + public static extern uint SKY_coin_VerifyTransactionHoursSpending(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_SetHex")] - public static extern uint SKY_secp256k1go_Number_SetHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Address_isEqual")] + public static extern int cipher__Address_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_IsOdd")] - public static extern uint SKY_secp256k1go_Number_IsOdd(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cipher__Address_Version")] + public static extern void set_cipher__Address_Version(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_IsEqual")] - public static extern uint SKY_secp256k1go_Number_IsEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_cipher__Address_Version")] + public static extern global::System.IntPtr get_cipher__Address_Version(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxOut_Hash")] - public static extern uint SKY_coin_UxOut_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cipher__Address_Key")] + public static extern void set_cipher__Address_Key(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxOut_SnapshotHash")] - public static extern uint SKY_coin_UxOut_SnapshotHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_cipher__Address_Key")] + public static extern global::System.IntPtr get_cipher__Address_Key(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxBody_Hash")] - public static extern uint SKY_coin_UxBody_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher__Address")] + public static extern global::System.IntPtr new_cipher__Address(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxOut_CoinHours")] - public static extern uint SKY_coin_UxOut_CoinHours(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher__Address")] + public static extern void delete_cipher__Address(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Hashes")] - public static extern uint SKY_coin_UxArray_Hashes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_encoder__StructField_Name")] + public static extern void set_encoder__StructField_Name(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_HasDupes")] - public static extern uint SKY_coin_UxArray_HasDupes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_encoder__StructField_Name")] + public static extern global::System.IntPtr get_encoder__StructField_Name(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Sort")] - public static extern uint SKY_coin_UxArray_Sort(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_encoder__StructField_Kind")] + public static extern void set_encoder__StructField_Kind(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Len")] - public static extern uint SKY_coin_UxArray_Len(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_encoder__StructField_Kind")] + public static extern global::System.IntPtr get_encoder__StructField_Kind(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Less")] - public static extern uint SKY_coin_UxArray_Less(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_encoder__StructField_Type")] + public static extern void set_encoder__StructField_Type(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Swap")] - public static extern uint SKY_coin_UxArray_Swap(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_encoder__StructField_Type")] + public static extern global::System.IntPtr get_encoder__StructField_Type(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Coins")] - public static extern uint SKY_coin_UxArray_Coins(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_encoder__StructField_Tag")] + public static extern void set_encoder__StructField_Tag(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_CoinHours")] - public static extern uint SKY_coin_UxArray_CoinHours(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_encoder__StructField_Tag")] + public static extern global::System.IntPtr get_encoder__StructField_Tag(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Sub")] - public static extern uint SKY_coin_UxArray_Sub(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_encoder__StructField")] + public static extern global::System.IntPtr new_encoder__StructField(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Add")] - public static extern uint SKY_coin_UxArray_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_encoder__StructField")] + public static extern void delete_encoder__StructField(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewAddressUxOuts")] - public static extern uint SKY_coin_NewAddressUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_N")] + public static extern void set_encrypt__ScryptChacha20poly1305_N(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Keys")] - public static extern uint SKY_coin_AddressUxOuts_Keys(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_N")] + public static extern global::System.IntPtr get_encrypt__ScryptChacha20poly1305_N(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Flatten")] - public static extern uint SKY_coin_AddressUxOuts_Flatten(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_R")] + public static extern void set_encrypt__ScryptChacha20poly1305_R(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Sub")] - public static extern uint SKY_coin_AddressUxOuts_Sub(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_R")] + public static extern global::System.IntPtr get_encrypt__ScryptChacha20poly1305_R(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Add")] - public static extern uint SKY_coin_AddressUxOuts_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_P")] + public static extern void set_encrypt__ScryptChacha20poly1305_P(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Get")] - public static extern uint SKY_coin_AddressUxOuts_Get(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_P")] + public static extern global::System.IntPtr get_encrypt__ScryptChacha20poly1305_P(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_HasKey")] - public static extern uint SKY_coin_AddressUxOuts_HasKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_KeyLen")] + public static extern void set_encrypt__ScryptChacha20poly1305_KeyLen(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_GetOutputLength")] - public static extern uint SKY_coin_AddressUxOuts_GetOutputLength(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_KeyLen")] + public static extern global::System.IntPtr get_encrypt__ScryptChacha20poly1305_KeyLen(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Length")] - public static extern uint SKY_coin_AddressUxOuts_Length(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_encrypt__ScryptChacha20poly1305")] + public static extern global::System.IntPtr new_encrypt__ScryptChacha20poly1305(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Set")] - public static extern uint SKY_coin_AddressUxOuts_Set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_encrypt__ScryptChacha20poly1305")] + public static extern void delete_encrypt__ScryptChacha20poly1305(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encrypt_ScryptChacha20poly1305_Encrypt")] - public static extern uint SKY_encrypt_ScryptChacha20poly1305_Encrypt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_secp256k1go__Field_n")] + public static extern void set_secp256k1go__Field_n(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encrypt_ScryptChacha20poly1305_Decrypt")] - public static extern uint SKY_encrypt_ScryptChacha20poly1305_Decrypt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_secp256k1go__Field_n")] + public static extern global::System.IntPtr get_secp256k1go__Field_n(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_CreateOptionsHandle")] - public static extern uint SKY_wallet_CreateOptionsHandle(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, byte jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, ulong jarg7); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_secp256k1go__Field")] + public static extern global::System.IntPtr new_secp256k1go__Field(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_AddPrivateKey")] - public static extern uint SKY_cli_AddPrivateKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_secp256k1go__Field")] + public static extern void delete_secp256k1go__Field(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_AddPrivateKeyToFile")] - public static extern uint SKY_cli_AddPrivateKeyToFile(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_secp256k1go__XY_X")] + public static extern void set_secp256k1go__XY_X(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_GenerateKeyPair")] - public static extern uint SKY_secp256k1_GenerateKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_secp256k1go__XY_X")] + public static extern global::System.IntPtr get_secp256k1go__XY_X(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_PubkeyFromSeckey")] - public static extern uint SKY_secp256k1_PubkeyFromSeckey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_secp256k1go__XY_Y")] + public static extern void set_secp256k1go__XY_Y(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_UncompressPubkey")] - public static extern uint SKY_secp256k1_UncompressPubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_secp256k1go__XY_Y")] + public static extern global::System.IntPtr get_secp256k1go__XY_Y(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_UncompressedPubkeyFromSeckey")] - public static extern uint SKY_secp256k1_UncompressedPubkeyFromSeckey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_secp256k1go__XY_Infinity")] + public static extern void set_secp256k1go__XY_Infinity(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_Secp256k1Hash")] - public static extern uint SKY_secp256k1_Secp256k1Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_secp256k1go__XY_Infinity")] + public static extern global::System.IntPtr get_secp256k1go__XY_Infinity(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_GenerateDeterministicKeyPair")] - public static extern uint SKY_secp256k1_GenerateDeterministicKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_secp256k1go__XY")] + public static extern global::System.IntPtr new_secp256k1go__XY(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_DeterministicKeyPairIterator")] - public static extern uint SKY_secp256k1_DeterministicKeyPairIterator(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_secp256k1go__XY")] + public static extern void delete_secp256k1go__XY(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_Sign")] - public static extern uint SKY_secp256k1_Sign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_secp256k1go__XYZ_X")] + public static extern void set_secp256k1go__XYZ_X(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_SignDeterministic")] - public static extern uint SKY_secp256k1_SignDeterministic(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_secp256k1go__XYZ_X")] + public static extern global::System.IntPtr get_secp256k1go__XYZ_X(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_VerifySeckey")] - public static extern uint SKY_secp256k1_VerifySeckey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_secp256k1go__XYZ_Y")] + public static extern void set_secp256k1go__XYZ_Y(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_VerifyPubkey")] - public static extern uint SKY_secp256k1_VerifyPubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_secp256k1go__XYZ_Y")] + public static extern global::System.IntPtr get_secp256k1go__XYZ_Y(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_VerifySignatureValidity")] - public static extern uint SKY_secp256k1_VerifySignatureValidity(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_secp256k1go__XYZ_Z")] + public static extern void set_secp256k1go__XYZ_Z(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_VerifySignature")] - public static extern uint SKY_secp256k1_VerifySignature(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_secp256k1go__XYZ_Z")] + public static extern global::System.IntPtr get_secp256k1go__XYZ_Z(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_SignatureErrorString")] - public static extern uint SKY_secp256k1_SignatureErrorString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_secp256k1go__XYZ_Infinity")] + public static extern void set_secp256k1go__XYZ_Infinity(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_RecoverPubkey")] - public static extern uint SKY_secp256k1_RecoverPubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_secp256k1go__XYZ_Infinity")] + public static extern global::System.IntPtr get_secp256k1go__XYZ_Infinity(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_ECDH")] - public static extern uint SKY_secp256k1_ECDH(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_secp256k1go__XYZ")] + public static extern global::System.IntPtr new_secp256k1go__XYZ(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_apputil_CatchInterruptPanic")] - public static extern uint SKY_apputil_CatchInterruptPanic(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_secp256k1go__XYZ")] + public static extern void delete_secp256k1go__XYZ(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_apputil_CatchDebug")] - public static extern uint SKY_apputil_CatchDebug(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_isEqual")] + public static extern int coin__Transaction_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_apputil_PrintProgramStatus")] - public static extern uint SKY_apputil_PrintProgramStatus(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__Transaction_Length")] + public static extern void set_coin__Transaction_Length(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cert_CreateCertIfNotExists")] - public static extern uint SKY_cert_CreateCertIfNotExists(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__Transaction_Length")] + public static extern global::System.IntPtr get_coin__Transaction_Length(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_VerifyTransactionFee")] - public static extern uint SKY_fee_VerifyTransactionFee(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__Transaction_Type")] + public static extern void set_coin__Transaction_Type(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_VerifyTransactionFeeForHours")] - public static extern uint SKY_fee_VerifyTransactionFeeForHours(ulong jarg1, ulong jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__Transaction_Type")] + public static extern global::System.IntPtr get_coin__Transaction_Type(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_RequiredFee")] - public static extern uint SKY_fee_RequiredFee(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__Transaction_InnerHash")] + public static extern void set_coin__Transaction_InnerHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_RemainingHours")] - public static extern uint SKY_fee_RemainingHours(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__Transaction_InnerHash")] + public static extern global::System.IntPtr get_coin__Transaction_InnerHash(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_TransactionFee")] - public static extern uint SKY_fee_TransactionFee(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__Transaction_Sigs")] + public static extern void set_coin__Transaction_Sigs(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_LoadConfig")] - public static extern uint SKY_cli_LoadConfig(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__Transaction_Sigs")] + public static extern global::System.IntPtr get_coin__Transaction_Sigs(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Config_FullWalletPath")] - public static extern uint SKY_cli_Config_FullWalletPath(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__Transaction_In")] + public static extern void set_coin__Transaction_In(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Config_FullDBPath")] - public static extern uint SKY_cli_Config_FullDBPath(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__Transaction_In")] + public static extern global::System.IntPtr get_coin__Transaction_In(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_NewApp")] - public static extern uint SKY_cli_NewApp(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__Transaction_Out")] + public static extern void set_coin__Transaction_Out(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_RPCClientFromContext")] - public static extern uint SKY_cli_RPCClientFromContext(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__Transaction_Out")] + public static extern global::System.IntPtr get_coin__Transaction_Out(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_ConfigFromContext")] - public static extern uint SKY_cli_ConfigFromContext(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__Transaction")] + public static extern global::System.IntPtr new_coin__Transaction(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_PasswordFromBytes_Password")] - public static extern uint SKY_cli_PasswordFromBytes_Password(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__Transaction")] + public static extern void delete_coin__Transaction(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_PasswordFromTerm_Password")] - public static extern uint SKY_cli_PasswordFromTerm_Password(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__TransactionOutput_isEqual")] + public static extern int coin__TransactionOutput_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_CreateRawTxFromWallet")] - public static extern uint SKY_cli_CreateRawTxFromWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__TransactionOutput_Address")] + public static extern void set_coin__TransactionOutput_Address(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_CreateRawTxFromAddress")] - public static extern uint SKY_cli_CreateRawTxFromAddress(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__TransactionOutput_Address")] + public static extern global::System.IntPtr get_coin__TransactionOutput_Address(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_CreateRawTx")] - public static extern uint SKY_cli_CreateRawTx(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__TransactionOutput_Coins")] + public static extern void set_coin__TransactionOutput_Coins(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_NewTransaction")] - public static extern uint SKY_cli_NewTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__TransactionOutput_Coins")] + public static extern global::System.IntPtr get_coin__TransactionOutput_Coins(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_file_InitDataDir")] - public static extern uint SKY_file_InitDataDir(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__TransactionOutput_Hours")] + public static extern void set_coin__TransactionOutput_Hours(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_file_UserHome")] - public static extern uint SKY_file_UserHome(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__TransactionOutput_Hours")] + public static extern global::System.IntPtr get_coin__TransactionOutput_Hours(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_file_ResolveResourceDirectory")] - public static extern uint SKY_file_ResolveResourceDirectory(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__TransactionOutput")] + public static extern global::System.IntPtr new_coin__TransactionOutput(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_file_DetermineResourcePath")] - public static extern uint SKY_file_DetermineResourcePath(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__TransactionOutput")] + public static extern void delete_coin__TransactionOutput(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GetWalletOutputsFromFile")] - public static extern uint SKY_cli_GetWalletOutputsFromFile(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_isEqual")] + public static extern int coin__BlockHeader_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GetWalletOutputs")] - public static extern uint SKY_cli_GetWalletOutputs(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__BlockHeader_Version")] + public static extern void set_coin__BlockHeader_Version(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_testutil_MakeAddress")] - public static extern uint SKY_testutil_MakeAddress(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__BlockHeader_Version")] + public static extern global::System.IntPtr get_coin__BlockHeader_Version(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_String")] - public static extern uint SKY_secp256k1go_Field_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__BlockHeader_Time")] + public static extern void set_coin__BlockHeader_Time(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Print")] - public static extern uint SKY_secp256k1go_Field_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__BlockHeader_Time")] + public static extern global::System.IntPtr get_coin__BlockHeader_Time(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_SetB32")] - public static extern uint SKY_secp256k1go_Field_SetB32(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__BlockHeader_BkSeq")] + public static extern void set_coin__BlockHeader_BkSeq(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_SetBytes")] - public static extern uint SKY_secp256k1go_Field_SetBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__BlockHeader_BkSeq")] + public static extern global::System.IntPtr get_coin__BlockHeader_BkSeq(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_SetHex")] - public static extern uint SKY_secp256k1go_Field_SetHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__BlockHeader_Fee")] + public static extern void set_coin__BlockHeader_Fee(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_IsOdd")] - public static extern uint SKY_secp256k1go_Field_IsOdd(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__BlockHeader_Fee")] + public static extern global::System.IntPtr get_coin__BlockHeader_Fee(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_IsZero")] - public static extern uint SKY_secp256k1go_Field_IsZero(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__BlockHeader_PrevHash")] + public static extern void set_coin__BlockHeader_PrevHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_SetInt")] - public static extern uint SKY_secp256k1go_Field_SetInt(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__BlockHeader_PrevHash")] + public static extern global::System.IntPtr get_coin__BlockHeader_PrevHash(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Normalize")] - public static extern uint SKY_secp256k1go_Field_Normalize(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__BlockHeader_BodyHash")] + public static extern void set_coin__BlockHeader_BodyHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_GetB32")] - public static extern uint SKY_secp256k1go_Field_GetB32(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__BlockHeader_BodyHash")] + public static extern global::System.IntPtr get_coin__BlockHeader_BodyHash(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Equals")] - public static extern uint SKY_secp256k1go_Field_Equals(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__BlockHeader_UxHash")] + public static extern void set_coin__BlockHeader_UxHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_SetAdd")] - public static extern uint SKY_secp256k1go_Field_SetAdd(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__BlockHeader_UxHash")] + public static extern global::System.IntPtr get_coin__BlockHeader_UxHash(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_MulInt")] - public static extern uint SKY_secp256k1go_Field_MulInt(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__BlockHeader")] + public static extern global::System.IntPtr new_coin__BlockHeader(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Negate")] - public static extern uint SKY_secp256k1go_Field_Negate(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, uint jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__BlockHeader")] + public static extern void delete_coin__BlockHeader(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Inv")] - public static extern uint SKY_secp256k1go_Field_Inv(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockBody_isEqual")] + public static extern int coin__BlockBody_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Sqrt")] - public static extern uint SKY_secp256k1go_Field_Sqrt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__BlockBody_Transactions")] + public static extern void set_coin__BlockBody_Transactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_InvVar")] - public static extern uint SKY_secp256k1go_Field_InvVar(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__BlockBody_Transactions")] + public static extern global::System.IntPtr get_coin__BlockBody_Transactions(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Mul")] - public static extern uint SKY_secp256k1go_Field_Mul(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__BlockBody")] + public static extern global::System.IntPtr new_coin__BlockBody(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Sqr")] - public static extern uint SKY_secp256k1go_Field_Sqr(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__BlockBody")] + public static extern void delete_coin__BlockBody(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_scrypt_Key")] - public static extern uint SKY_scrypt_Key(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, long jarg4, long jarg5, long jarg6, global::System.Runtime.InteropServices.HandleRef jarg7); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__Block_Head")] + public static extern void set_coin__Block_Head(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Ripemd160_Set")] - public static extern uint SKY_cipher_Ripemd160_Set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__Block_Head")] + public static extern global::System.IntPtr get_coin__Block_Head(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_HashRipemd160")] - public static extern uint SKY_cipher_HashRipemd160(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__Block_Body")] + public static extern void set_coin__Block_Body(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Set")] - public static extern uint SKY_cipher_SHA256_Set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__Block_Body")] + public static extern global::System.IntPtr get_coin__Block_Body(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Hex")] - public static extern uint SKY_cipher_SHA256_Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__Block")] + public static extern global::System.IntPtr new_coin__Block(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Xor")] - public static extern uint SKY_cipher_SHA256_Xor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__Block")] + public static extern void delete_coin__Block(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SumSHA256")] - public static extern uint SKY_cipher_SumSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__SignedBlock__unnamed")] + public static extern void set_coin__SignedBlock__unnamed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256FromHex")] - public static extern uint SKY_cipher_SHA256FromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__SignedBlock__unnamed")] + public static extern global::System.IntPtr get_coin__SignedBlock__unnamed(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_DoubleSHA256")] - public static extern uint SKY_cipher_DoubleSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__SignedBlock_Sig")] + public static extern void set_coin__SignedBlock_Sig(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddSHA256")] - public static extern uint SKY_cipher_AddSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__SignedBlock_Sig")] + public static extern global::System.IntPtr get_coin__SignedBlock_Sig(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Merkle")] - public static extern uint SKY_cipher_Merkle(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__SignedBlock")] + public static extern global::System.IntPtr new_coin__SignedBlock(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Null")] - public static extern uint SKY_cipher_SHA256_Null(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__SignedBlock")] + public static extern void delete_coin__SignedBlock(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Create_Transaction")] - public static extern uint SKY_coin_Create_Transaction(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__UxHead_Time")] + public static extern void set_coin__UxHead_Time(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Copy")] - public static extern uint SKY_coin_Transaction_Copy(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__UxHead_Time")] + public static extern global::System.IntPtr get_coin__UxHead_Time(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetTransactionObject")] - public static extern uint SKY_coin_GetTransactionObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__UxHead_BkSeq")] + public static extern void set_coin__UxHead_BkSeq(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_ResetInputs")] - public static extern uint SKY_coin_Transaction_ResetInputs(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__UxHead_BkSeq")] + public static extern global::System.IntPtr get_coin__UxHead_BkSeq(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetInputsCount")] - public static extern uint SKY_coin_Transaction_GetInputsCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__UxHead")] + public static extern global::System.IntPtr new_coin__UxHead(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetInputAt")] - public static extern uint SKY_coin_Transaction_GetInputAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__UxHead")] + public static extern void delete_coin__UxHead(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SetInputAt")] - public static extern uint SKY_coin_Transaction_SetInputAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__UxBody_SrcTransaction")] + public static extern void set_coin__UxBody_SrcTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetOutputsCount")] - public static extern uint SKY_coin_Transaction_GetOutputsCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__UxBody_SrcTransaction")] + public static extern global::System.IntPtr get_coin__UxBody_SrcTransaction(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetOutputAt")] - public static extern uint SKY_coin_Transaction_GetOutputAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__UxBody_Address")] + public static extern void set_coin__UxBody_Address(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SetOutputAt")] - public static extern uint SKY_coin_Transaction_SetOutputAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__UxBody_Address")] + public static extern global::System.IntPtr get_coin__UxBody_Address(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetSignaturesCount")] - public static extern uint SKY_coin_Transaction_GetSignaturesCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__UxBody_Coins")] + public static extern void set_coin__UxBody_Coins(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetSignatureAt")] - public static extern uint SKY_coin_Transaction_GetSignatureAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__UxBody_Coins")] + public static extern global::System.IntPtr get_coin__UxBody_Coins(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SetSignatureAt")] - public static extern uint SKY_coin_Transaction_SetSignatureAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__UxBody_Hours")] + public static extern void set_coin__UxBody_Hours(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_PushSignature")] - public static extern uint SKY_coin_Transaction_PushSignature(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__UxBody_Hours")] + public static extern global::System.IntPtr get_coin__UxBody_Hours(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_ResetOutputs")] - public static extern uint SKY_coin_Transaction_ResetOutputs(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__UxBody")] + public static extern global::System.IntPtr new_coin__UxBody(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_ResetSignatures")] - public static extern uint SKY_coin_Transaction_ResetSignatures(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__UxBody")] + public static extern void delete_coin__UxBody(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Verify")] - public static extern uint SKY_coin_Transaction_Verify(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxOut_isEqual")] + public static extern int coin__UxOut_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_VerifyInput")] - public static extern uint SKY_coin_Transaction_VerifyInput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__UxOut_Head")] + public static extern void set_coin__UxOut_Head(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_PushInput")] - public static extern uint SKY_coin_Transaction_PushInput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__UxOut_Head")] + public static extern global::System.IntPtr get_coin__UxOut_Head(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_TransactionOutput_UxID")] - public static extern uint SKY_coin_TransactionOutput_UxID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__UxOut_Body")] + public static extern void set_coin__UxOut_Body(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_PushOutput")] - public static extern uint SKY_coin_Transaction_PushOutput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, ulong jarg3, ulong jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__UxOut_Body")] + public static extern global::System.IntPtr get_coin__UxOut_Body(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SignInputs")] - public static extern uint SKY_coin_Transaction_SignInputs(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__UxOut")] + public static extern global::System.IntPtr new_coin__UxOut(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Size")] - public static extern uint SKY_coin_Transaction_Size(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__UxOut")] + public static extern void delete_coin__UxOut(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Hash")] - public static extern uint SKY_coin_Transaction_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__Balance_Coins")] + public static extern void set_wallet__Balance_Coins(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SizeHash")] - public static extern uint SKY_coin_Transaction_SizeHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__Balance_Coins")] + public static extern global::System.IntPtr get_wallet__Balance_Coins(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_TxID")] - public static extern uint SKY_coin_Transaction_TxID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__Balance_Hours")] + public static extern void set_wallet__Balance_Hours(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_TxIDHex")] - public static extern uint SKY_coin_Transaction_TxIDHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__Balance_Hours")] + public static extern global::System.IntPtr get_wallet__Balance_Hours(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_UpdateHeader")] - public static extern uint SKY_coin_Transaction_UpdateHeader(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__Balance")] + public static extern global::System.IntPtr new_wallet__Balance(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_HashInner")] - public static extern uint SKY_coin_Transaction_HashInner(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__Balance")] + public static extern void delete_wallet__Balance(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Serialize")] - public static extern uint SKY_coin_Transaction_Serialize(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__BalancePair_Confirmed")] + public static extern void set_wallet__BalancePair_Confirmed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_TransactionDeserialize")] - public static extern uint SKY_coin_TransactionDeserialize(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__BalancePair_Confirmed")] + public static extern global::System.IntPtr get_wallet__BalancePair_Confirmed(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_OutputHours")] - public static extern uint SKY_coin_Transaction_OutputHours(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__BalancePair_Predicted")] + public static extern void set_wallet__BalancePair_Predicted(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Create_Transactions")] - public static extern uint SKY_coin_Create_Transactions(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__BalancePair_Predicted")] + public static extern global::System.IntPtr get_wallet__BalancePair_Predicted(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetTransactionsObject")] - public static extern uint SKY_coin_GetTransactionsObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__BalancePair")] + public static extern global::System.IntPtr new_wallet__BalancePair(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Length")] - public static extern uint SKY_coin_Transactions_Length(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__BalancePair")] + public static extern void delete_wallet__BalancePair(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Add")] - public static extern uint SKY_coin_Transactions_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__Entry_Address")] + public static extern void set_wallet__Entry_Address(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Fees")] - public static extern uint SKY_coin_Transactions_Fees(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__Entry_Address")] + public static extern global::System.IntPtr get_wallet__Entry_Address(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_GetAt")] - public static extern uint SKY_coin_Transactions_GetAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__Entry_Public")] + public static extern void set_wallet__Entry_Public(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Hashes")] - public static extern uint SKY_coin_Transactions_Hashes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__Entry_Public")] + public static extern global::System.IntPtr get_wallet__Entry_Public(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Size")] - public static extern uint SKY_coin_Transactions_Size(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__Entry_Secret")] + public static extern void set_wallet__Entry_Secret(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_TruncateBytesTo")] - public static extern uint SKY_coin_Transactions_TruncateBytesTo(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__Entry_Secret")] + public static extern global::System.IntPtr get_wallet__Entry_Secret(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SortTransactions")] - public static extern uint SKY_coin_SortTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__Entry")] + public static extern global::System.IntPtr new_wallet__Entry(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewSortableTransactions")] - public static extern uint SKY_coin_NewSortableTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__Entry")] + public static extern void delete_wallet__Entry(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SortableTransactions_Sort")] - public static extern uint SKY_coin_SortableTransactions_Sort(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__Note_TxID")] + public static extern void set_wallet__Note_TxID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SortableTransactions_Len")] - public static extern uint SKY_coin_SortableTransactions_Len(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__Note_TxID")] + public static extern global::System.IntPtr get_wallet__Note_TxID(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SortableTransactions_Less")] - public static extern uint SKY_coin_SortableTransactions_Less(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__Note_Value")] + public static extern void set_wallet__Note_Value(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SortableTransactions_Swap")] - public static extern uint SKY_coin_SortableTransactions_Swap(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__Note_Value")] + public static extern global::System.IntPtr get_wallet__Note_Value(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_VerifyTransactionCoinsSpending")] - public static extern uint SKY_coin_VerifyTransactionCoinsSpending(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__Note")] + public static extern global::System.IntPtr new_wallet__Note(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_VerifyTransactionHoursSpending")] - public static extern uint SKY_coin_VerifyTransactionHoursSpending(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__Note")] + public static extern void delete_wallet__Note(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Address_isEqual")] - public static extern int cipher__Address_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__ReadableNote_TransactionID")] + public static extern void set_wallet__ReadableNote_TransactionID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cipher__Address_Version")] - public static extern void set_cipher__Address_Version(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__ReadableNote_TransactionID")] + public static extern global::System.IntPtr get_wallet__ReadableNote_TransactionID(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_cipher__Address_Version")] - public static extern global::System.IntPtr get_cipher__Address_Version(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__ReadableNote_ActualNote")] + public static extern void set_wallet__ReadableNote_ActualNote(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cipher__Address_Key")] - public static extern void set_cipher__Address_Key(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__ReadableNote_ActualNote")] + public static extern global::System.IntPtr get_wallet__ReadableNote_ActualNote(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_cipher__Address_Key")] - public static extern global::System.IntPtr get_cipher__Address_Key(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__ReadableNote")] + public static extern global::System.IntPtr new_wallet__ReadableNote(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher__Address")] - public static extern global::System.IntPtr new_cipher__Address(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__ReadableNote")] + public static extern void delete_wallet__ReadableNote(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher__Address")] - public static extern void delete_cipher__Address(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__UxBalance_Hash")] + public static extern void set_wallet__UxBalance_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_encoder__StructField_Name")] - public static extern void set_encoder__StructField_Name(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__UxBalance_Hash")] + public static extern global::System.IntPtr get_wallet__UxBalance_Hash(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_encoder__StructField_Name")] - public static extern global::System.IntPtr get_encoder__StructField_Name(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__UxBalance_BkSeq")] + public static extern void set_wallet__UxBalance_BkSeq(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_encoder__StructField_Kind")] - public static extern void set_encoder__StructField_Kind(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__UxBalance_BkSeq")] + public static extern global::System.IntPtr get_wallet__UxBalance_BkSeq(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_encoder__StructField_Kind")] - public static extern global::System.IntPtr get_encoder__StructField_Kind(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__UxBalance_Address")] + public static extern void set_wallet__UxBalance_Address(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_encoder__StructField_Type")] - public static extern void set_encoder__StructField_Type(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__UxBalance_Address")] + public static extern global::System.IntPtr get_wallet__UxBalance_Address(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_encoder__StructField_Type")] - public static extern global::System.IntPtr get_encoder__StructField_Type(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__UxBalance_Coins")] + public static extern void set_wallet__UxBalance_Coins(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_encoder__StructField_Tag")] - public static extern void set_encoder__StructField_Tag(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__UxBalance_Coins")] + public static extern global::System.IntPtr get_wallet__UxBalance_Coins(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_encoder__StructField_Tag")] - public static extern global::System.IntPtr get_encoder__StructField_Tag(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__UxBalance_Hours")] + public static extern void set_wallet__UxBalance_Hours(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_encoder__StructField")] - public static extern global::System.IntPtr new_encoder__StructField(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__UxBalance_Hours")] + public static extern global::System.IntPtr get_wallet__UxBalance_Hours(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_encoder__StructField")] - public static extern void delete_encoder__StructField(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__UxBalance")] + public static extern global::System.IntPtr new_wallet__UxBalance(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_N")] - public static extern void set_encrypt__ScryptChacha20poly1305_N(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__UxBalance")] + public static extern void delete_wallet__UxBalance(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_N")] - public static extern global::System.IntPtr get_encrypt__ScryptChacha20poly1305_N(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_api__RichlistParams_N")] + public static extern void set_api__RichlistParams_N(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_R")] - public static extern void set_encrypt__ScryptChacha20poly1305_R(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_api__RichlistParams_N")] + public static extern global::System.IntPtr get_api__RichlistParams_N(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_R")] - public static extern global::System.IntPtr get_encrypt__ScryptChacha20poly1305_R(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_api__RichlistParams_IncludeDistribution")] + public static extern void set_api__RichlistParams_IncludeDistribution(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_P")] - public static extern void set_encrypt__ScryptChacha20poly1305_P(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_api__RichlistParams_IncludeDistribution")] + public static extern global::System.IntPtr get_api__RichlistParams_IncludeDistribution(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_P")] - public static extern global::System.IntPtr get_encrypt__ScryptChacha20poly1305_P(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_api__RichlistParams")] + public static extern global::System.IntPtr new_api__RichlistParams(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_KeyLen")] - public static extern void set_encrypt__ScryptChacha20poly1305_KeyLen(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_api__RichlistParams")] + public static extern void delete_api__RichlistParams(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_KeyLen")] - public static extern global::System.IntPtr get_encrypt__ScryptChacha20poly1305_KeyLen(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cli__SendAmount_Addr")] + public static extern void set_cli__SendAmount_Addr(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_encrypt__ScryptChacha20poly1305")] - public static extern global::System.IntPtr new_encrypt__ScryptChacha20poly1305(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_cli__SendAmount_Addr")] + public static extern global::System.IntPtr get_cli__SendAmount_Addr(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_encrypt__ScryptChacha20poly1305")] - public static extern void delete_encrypt__ScryptChacha20poly1305(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cli__SendAmount_Coins")] + public static extern void set_cli__SendAmount_Coins(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_secp256k1go__Field_n")] - public static extern void set_secp256k1go__Field_n(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_cli__SendAmount_Coins")] + public static extern global::System.IntPtr get_cli__SendAmount_Coins(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_secp256k1go__Field_n")] - public static extern global::System.IntPtr get_secp256k1go__Field_n(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cli__SendAmount")] + public static extern global::System.IntPtr new_cli__SendAmount(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_secp256k1go__Field")] - public static extern global::System.IntPtr new_secp256k1go__Field(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cli__SendAmount")] + public static extern void delete_cli__SendAmount(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_secp256k1go__Field")] - public static extern void delete_secp256k1go__Field(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_httphelper__Address__unnamed")] + public static extern void set_httphelper__Address__unnamed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_secp256k1go__XY_X")] - public static extern void set_secp256k1go__XY_X(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_httphelper__Address__unnamed")] + public static extern global::System.IntPtr get_httphelper__Address__unnamed(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_secp256k1go__XY_X")] - public static extern global::System.IntPtr get_secp256k1go__XY_X(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_httphelper__Address")] + public static extern global::System.IntPtr new_httphelper__Address(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_secp256k1go__XY_Y")] - public static extern void set_secp256k1go__XY_Y(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_httphelper__Address")] + public static extern void delete_httphelper__Address(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_secp256k1go__XY_Y")] - public static extern global::System.IntPtr get_secp256k1go__XY_Y(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_OK")] + public static extern int get_SKY_OK(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_secp256k1go__XY_Infinity")] - public static extern void set_secp256k1go__XY_Infinity(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ERROR")] + public static extern int get_SKY_ERROR(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_secp256k1go__XY_Infinity")] - public static extern global::System.IntPtr get_secp256k1go__XY_Infinity(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_API")] + public static extern int get_SKY_PKG_API(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_secp256k1go__XY")] - public static extern global::System.IntPtr new_secp256k1go__XY(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_CIPHER")] + public static extern int get_SKY_PKG_CIPHER(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_secp256k1go__XY")] - public static extern void delete_secp256k1go__XY(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_CLI")] + public static extern int get_SKY_PKG_CLI(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_secp256k1go__XYZ_X")] - public static extern void set_secp256k1go__XYZ_X(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_COIN")] + public static extern int get_SKY_PKG_COIN(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_secp256k1go__XYZ_X")] - public static extern global::System.IntPtr get_secp256k1go__XYZ_X(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_CONSENSUS")] + public static extern int get_SKY_PKG_CONSENSUS(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_secp256k1go__XYZ_Y")] - public static extern void set_secp256k1go__XYZ_Y(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_DAEMON")] + public static extern int get_SKY_PKG_DAEMON(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_secp256k1go__XYZ_Y")] - public static extern global::System.IntPtr get_secp256k1go__XYZ_Y(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_GUI")] + public static extern int get_SKY_PKG_GUI(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_secp256k1go__XYZ_Z")] - public static extern void set_secp256k1go__XYZ_Z(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_SKYCOIN")] + public static extern int get_SKY_PKG_SKYCOIN(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_secp256k1go__XYZ_Z")] - public static extern global::System.IntPtr get_secp256k1go__XYZ_Z(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_UTIL")] + public static extern int get_SKY_PKG_UTIL(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_secp256k1go__XYZ_Infinity")] - public static extern void set_secp256k1go__XYZ_Infinity(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_VISOR")] + public static extern int get_SKY_PKG_VISOR(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_secp256k1go__XYZ_Infinity")] - public static extern global::System.IntPtr get_secp256k1go__XYZ_Infinity(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_WALLET")] + public static extern int get_SKY_PKG_WALLET(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_secp256k1go__XYZ")] - public static extern global::System.IntPtr new_secp256k1go__XYZ(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrAddressInvalidLength")] + public static extern int get_SKY_ErrAddressInvalidLength(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_secp256k1go__XYZ")] - public static extern void delete_secp256k1go__XYZ(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrAddressInvalidChecksum")] + public static extern int get_SKY_ErrAddressInvalidChecksum(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_isEqual")] - public static extern int coin__Transaction_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrAddressInvalidVersion")] + public static extern int get_SKY_ErrAddressInvalidVersion(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__Transaction_Length")] - public static extern void set_coin__Transaction_Length(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrAddressInvalidPubKey")] + public static extern int get_SKY_ErrAddressInvalidPubKey(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__Transaction_Length")] - public static extern global::System.IntPtr get_coin__Transaction_Length(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrAddressInvalidFirstByte")] + public static extern int get_SKY_ErrAddressInvalidFirstByte(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__Transaction_Type")] - public static extern void set_coin__Transaction_Type(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrAddressInvalidLastByte")] + public static extern int get_SKY_ErrAddressInvalidLastByte(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__Transaction_Type")] - public static extern global::System.IntPtr get_coin__Transaction_Type(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrBufferUnderflow")] + public static extern int get_SKY_ErrBufferUnderflow(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__Transaction_InnerHash")] - public static extern void set_coin__Transaction_InnerHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidOmitEmpty")] + public static extern int get_SKY_ErrInvalidOmitEmpty(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__Transaction_InnerHash")] - public static extern global::System.IntPtr get_coin__Transaction_InnerHash(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidLengthPubKey")] + public static extern int get_SKY_ErrInvalidLengthPubKey(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__Transaction_Sigs")] - public static extern void set_coin__Transaction_Sigs(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrPubKeyFromNullSecKey")] + public static extern int get_SKY_ErrPubKeyFromNullSecKey(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__Transaction_Sigs")] - public static extern global::System.IntPtr get_coin__Transaction_Sigs(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrPubKeyFromBadSecKey")] + public static extern int get_SKY_ErrPubKeyFromBadSecKey(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__Transaction_In")] - public static extern void set_coin__Transaction_In(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidLengthSecKey")] + public static extern int get_SKY_ErrInvalidLengthSecKey(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__Transaction_In")] - public static extern global::System.IntPtr get_coin__Transaction_In(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrECHDInvalidPubKey")] + public static extern int get_SKY_ErrECHDInvalidPubKey(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__Transaction_Out")] - public static extern void set_coin__Transaction_Out(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrECHDInvalidSecKey")] + public static extern int get_SKY_ErrECHDInvalidSecKey(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__Transaction_Out")] - public static extern global::System.IntPtr get_coin__Transaction_Out(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidLengthSig")] + public static extern int get_SKY_ErrInvalidLengthSig(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__Transaction")] - public static extern global::System.IntPtr new_coin__Transaction(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidLengthRipemd160")] + public static extern int get_SKY_ErrInvalidLengthRipemd160(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__Transaction")] - public static extern void delete_coin__Transaction(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidLengthSHA256")] + public static extern int get_SKY_ErrInvalidLengthSHA256(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__TransactionOutput_isEqual")] - public static extern int coin__TransactionOutput_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidBase58Char")] + public static extern int get_SKY_ErrInvalidBase58Char(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__TransactionOutput_Address")] - public static extern void set_coin__TransactionOutput_Address(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidBase58String")] + public static extern int get_SKY_ErrInvalidBase58String(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__TransactionOutput_Address")] - public static extern global::System.IntPtr get_coin__TransactionOutput_Address(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidBase58Length")] + public static extern int get_SKY_ErrInvalidBase58Length(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__TransactionOutput_Coins")] - public static extern void set_coin__TransactionOutput_Coins(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidHexLength")] + public static extern int get_SKY_ErrInvalidHexLength(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__TransactionOutput_Coins")] - public static extern global::System.IntPtr get_coin__TransactionOutput_Coins(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidBytesLength")] + public static extern int get_SKY_ErrInvalidBytesLength(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__TransactionOutput_Hours")] - public static extern void set_coin__TransactionOutput_Hours(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidPubKey")] + public static extern int get_SKY_ErrInvalidPubKey(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__TransactionOutput_Hours")] - public static extern global::System.IntPtr get_coin__TransactionOutput_Hours(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidSecKey")] + public static extern int get_SKY_ErrInvalidSecKey(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__TransactionOutput")] - public static extern global::System.IntPtr new_coin__TransactionOutput(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidSigForPubKey")] + public static extern int get_SKY_ErrInvalidSigForPubKey(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__TransactionOutput")] - public static extern void delete_coin__TransactionOutput(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidSecKeyHex")] + public static extern int get_SKY_ErrInvalidSecKeyHex(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockHeader_isEqual")] - public static extern int coin__BlockHeader_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidAddressForSig")] + public static extern int get_SKY_ErrInvalidAddressForSig(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__BlockHeader_Version")] - public static extern void set_coin__BlockHeader_Version(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidHashForSig")] + public static extern int get_SKY_ErrInvalidHashForSig(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__BlockHeader_Version")] - public static extern global::System.IntPtr get_coin__BlockHeader_Version(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrPubKeyRecoverMismatch")] + public static extern int get_SKY_ErrPubKeyRecoverMismatch(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__BlockHeader_Time")] - public static extern void set_coin__BlockHeader_Time(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidSigInvalidPubKey")] + public static extern int get_SKY_ErrInvalidSigInvalidPubKey(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__BlockHeader_Time")] - public static extern global::System.IntPtr get_coin__BlockHeader_Time(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidSigValidity")] + public static extern int get_SKY_ErrInvalidSigValidity(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__BlockHeader_BkSeq")] - public static extern void set_coin__BlockHeader_BkSeq(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidSigForMessage")] + public static extern int get_SKY_ErrInvalidSigForMessage(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__BlockHeader_BkSeq")] - public static extern global::System.IntPtr get_coin__BlockHeader_BkSeq(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidSecKyVerification")] + public static extern int get_SKY_ErrInvalidSecKyVerification(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__BlockHeader_Fee")] - public static extern void set_coin__BlockHeader_Fee(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrNullPubKeyFromSecKey")] + public static extern int get_SKY_ErrNullPubKeyFromSecKey(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__BlockHeader_Fee")] - public static extern global::System.IntPtr get_coin__BlockHeader_Fee(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidDerivedPubKeyFromSecKey")] + public static extern int get_SKY_ErrInvalidDerivedPubKeyFromSecKey(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__BlockHeader_PrevHash")] - public static extern void set_coin__BlockHeader_PrevHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidPubKeyFromHash")] + public static extern int get_SKY_ErrInvalidPubKeyFromHash(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__BlockHeader_PrevHash")] - public static extern global::System.IntPtr get_coin__BlockHeader_PrevHash(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrPubKeyFromSecKeyMissmatch")] + public static extern int get_SKY_ErrPubKeyFromSecKeyMissmatch(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__BlockHeader_BodyHash")] - public static extern void set_coin__BlockHeader_BodyHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrTemporaryInsufficientBalance")] + public static extern int get_SKY_ErrTemporaryInsufficientBalance(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__BlockHeader_BodyHash")] - public static extern global::System.IntPtr get_coin__BlockHeader_BodyHash(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrAddress")] + public static extern int get_SKY_ErrAddress(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__BlockHeader_UxHash")] - public static extern void set_coin__BlockHeader_UxHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrWalletName")] + public static extern int get_SKY_ErrWalletName(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__BlockHeader_UxHash")] - public static extern global::System.IntPtr get_coin__BlockHeader_UxHash(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrJSONMarshal")] + public static extern int get_SKY_ErrJSONMarshal(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__BlockHeader")] - public static extern global::System.IntPtr new_coin__BlockHeader(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_WalletLoadError")] + public static extern int get_SKY_WalletLoadError(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__BlockHeader")] - public static extern void delete_coin__BlockHeader(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_WalletSaveError")] + public static extern int get_SKY_WalletSaveError(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockBody_isEqual")] - public static extern int coin__BlockBody_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrAddEarnedCoinHoursAdditionOverflow")] + public static extern int get_SKY_ErrAddEarnedCoinHoursAdditionOverflow(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__BlockBody_Transactions")] - public static extern void set_coin__BlockBody_Transactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrUint64MultOverflow")] + public static extern int get_SKY_ErrUint64MultOverflow(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__BlockBody_Transactions")] - public static extern global::System.IntPtr get_coin__BlockBody_Transactions(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrUint64AddOverflow")] + public static extern int get_SKY_ErrUint64AddOverflow(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__BlockBody")] - public static extern global::System.IntPtr new_coin__BlockBody(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrUint32AddOverflow")] + public static extern int get_SKY_ErrUint32AddOverflow(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__BlockBody")] - public static extern void delete_coin__BlockBody(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrUint64OverflowsInt64")] + public static extern int get_SKY_ErrUint64OverflowsInt64(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__Block_Head")] - public static extern void set_coin__Block_Head(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInt64UnderflowsUint64")] + public static extern int get_SKY_ErrInt64UnderflowsUint64(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__Block_Head")] - public static extern global::System.IntPtr get_coin__Block_Head(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrPeerlistFull")] + public static extern int get_SKY_ErrPeerlistFull(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__Block_Body")] - public static extern void set_coin__Block_Body(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidAddress")] + public static extern int get_SKY_ErrInvalidAddress(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__Block_Body")] - public static extern global::System.IntPtr get_coin__Block_Body(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrNoLocalhost")] + public static extern int get_SKY_ErrNoLocalhost(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__Block")] - public static extern global::System.IntPtr new_coin__Block(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrNotExternalIP")] + public static extern int get_SKY_ErrNotExternalIP(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__Block")] - public static extern void delete_coin__Block(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrPortTooLow")] + public static extern int get_SKY_ErrPortTooLow(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__SignedBlock__unnamed")] - public static extern void set_coin__SignedBlock__unnamed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrBlacklistedAddress")] + public static extern int get_SKY_ErrBlacklistedAddress(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__SignedBlock__unnamed")] - public static extern global::System.IntPtr get_coin__SignedBlock__unnamed(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectReadFailed")] + public static extern int get_SKY_ErrDisconnectReadFailed(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__SignedBlock_Sig")] - public static extern void set_coin__SignedBlock_Sig(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectWriteFailed")] + public static extern int get_SKY_ErrDisconnectWriteFailed(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__SignedBlock_Sig")] - public static extern global::System.IntPtr get_coin__SignedBlock_Sig(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectSetReadDeadlineFailed")] + public static extern int get_SKY_ErrDisconnectSetReadDeadlineFailed(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__SignedBlock")] - public static extern global::System.IntPtr new_coin__SignedBlock(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectInvalidMessageLength")] + public static extern int get_SKY_ErrDisconnectInvalidMessageLength(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__SignedBlock")] - public static extern void delete_coin__SignedBlock(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectMalformedMessage")] + public static extern int get_SKY_ErrDisconnectMalformedMessage(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__UxHead_Time")] - public static extern void set_coin__UxHead_Time(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectUnknownMessage")] + public static extern int get_SKY_ErrDisconnectUnknownMessage(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__UxHead_Time")] - public static extern global::System.IntPtr get_coin__UxHead_Time(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectUnexpectedError")] + public static extern int get_SKY_ErrDisconnectUnexpectedError(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__UxHead_BkSeq")] - public static extern void set_coin__UxHead_BkSeq(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrConnectionPoolClosed")] + public static extern int get_SKY_ErrConnectionPoolClosed(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__UxHead_BkSeq")] - public static extern global::System.IntPtr get_coin__UxHead_BkSeq(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrWriteQueueFull")] + public static extern int get_SKY_ErrWriteQueueFull(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__UxHead")] - public static extern global::System.IntPtr new_coin__UxHead(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrNoReachableConnections")] + public static extern int get_SKY_ErrNoReachableConnections(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__UxHead")] - public static extern void delete_coin__UxHead(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrMaxDefaultConnectionsReached")] + public static extern int get_SKY_ErrMaxDefaultConnectionsReached(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__UxBody_SrcTransaction")] - public static extern void set_coin__UxBody_SrcTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectInvalidVersion")] + public static extern int get_SKY_ErrDisconnectInvalidVersion(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__UxBody_SrcTransaction")] - public static extern global::System.IntPtr get_coin__UxBody_SrcTransaction(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectIntroductionTimeout")] + public static extern int get_SKY_ErrDisconnectIntroductionTimeout(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__UxBody_Address")] - public static extern void set_coin__UxBody_Address(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectVersionSendFailed")] + public static extern int get_SKY_ErrDisconnectVersionSendFailed(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__UxBody_Address")] - public static extern global::System.IntPtr get_coin__UxBody_Address(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectIsBlacklisted")] + public static extern int get_SKY_ErrDisconnectIsBlacklisted(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__UxBody_Coins")] - public static extern void set_coin__UxBody_Coins(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectSelf")] + public static extern int get_SKY_ErrDisconnectSelf(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__UxBody_Coins")] - public static extern global::System.IntPtr get_coin__UxBody_Coins(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectConnectedTwice")] + public static extern int get_SKY_ErrDisconnectConnectedTwice(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__UxBody_Hours")] - public static extern void set_coin__UxBody_Hours(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectIdle")] + public static extern int get_SKY_ErrDisconnectIdle(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__UxBody_Hours")] - public static extern global::System.IntPtr get_coin__UxBody_Hours(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectNoIntroduction")] + public static extern int get_SKY_ErrDisconnectNoIntroduction(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__UxBody")] - public static extern global::System.IntPtr new_coin__UxBody(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectIPLimitReached")] + public static extern int get_SKY_ErrDisconnectIPLimitReached(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__UxBody")] - public static extern void delete_coin__UxBody(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectOtherError")] + public static extern int get_SKY_ErrDisconnectOtherError(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxOut_isEqual")] - public static extern int coin__UxOut_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectMaxDefaultConnectionReached")] + public static extern int get_SKY_ErrDisconnectMaxDefaultConnectionReached(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__UxOut_Head")] - public static extern void set_coin__UxOut_Head(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectMaxOutgoingConnectionsReached")] + public static extern int get_SKY_ErrDisconnectMaxOutgoingConnectionsReached(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__UxOut_Head")] - public static extern global::System.IntPtr get_coin__UxOut_Head(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ConnectionError")] + public static extern int get_SKY_ConnectionError(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__UxOut_Body")] - public static extern void set_coin__UxOut_Body(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrTxnNoFee")] + public static extern int get_SKY_ErrTxnNoFee(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__UxOut_Body")] - public static extern global::System.IntPtr get_coin__UxOut_Body(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrTxnInsufficientFee")] + public static extern int get_SKY_ErrTxnInsufficientFee(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__UxOut")] - public static extern global::System.IntPtr new_coin__UxOut(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrTxnInsufficientCoinHours")] + public static extern int get_SKY_ErrTxnInsufficientCoinHours(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__UxOut")] - public static extern void delete_coin__UxOut(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrNegativeValue")] + public static extern int get_SKY_ErrNegativeValue(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__Balance_Coins")] - public static extern void set_wallet__Balance_Coins(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrTooManyDecimals")] + public static extern int get_SKY_ErrTooManyDecimals(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__Balance_Coins")] - public static extern global::System.IntPtr get_wallet__Balance_Coins(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrTooLarge")] + public static extern int get_SKY_ErrTooLarge(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__Balance_Hours")] - public static extern void set_wallet__Balance_Hours(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrEmptyDirectoryName")] + public static extern int get_SKY_ErrEmptyDirectoryName(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__Balance_Hours")] - public static extern global::System.IntPtr get_wallet__Balance_Hours(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDotDirectoryName")] + public static extern int get_SKY_ErrDotDirectoryName(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__Balance")] - public static extern global::System.IntPtr new_wallet__Balance(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrHistoryDBCorrupted")] + public static extern int get_SKY_ErrHistoryDBCorrupted(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__Balance")] - public static extern void delete_wallet__Balance(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrUxOutNotExist")] + public static extern int get_SKY_ErrUxOutNotExist(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__BalancePair_Confirmed")] - public static extern void set_wallet__BalancePair_Confirmed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrNoHeadBlock")] + public static extern int get_SKY_ErrNoHeadBlock(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__BalancePair_Confirmed")] - public static extern global::System.IntPtr get_wallet__BalancePair_Confirmed(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrMissingSignature")] + public static extern int get_SKY_ErrMissingSignature(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__BalancePair_Predicted")] - public static extern void set_wallet__BalancePair_Predicted(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrUnspentNotExist")] + public static extern int get_SKY_ErrUnspentNotExist(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__BalancePair_Predicted")] - public static extern global::System.IntPtr get_wallet__BalancePair_Predicted(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrVerifyStopped")] + public static extern int get_SKY_ErrVerifyStopped(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__BalancePair")] - public static extern global::System.IntPtr new_wallet__BalancePair(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrCreateBucketFailed")] + public static extern int get_SKY_ErrCreateBucketFailed(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__BalancePair")] - public static extern void delete_wallet__BalancePair(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrBucketNotExist")] + public static extern int get_SKY_ErrBucketNotExist(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__Entry_Address")] - public static extern void set_wallet__Entry_Address(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrTxnViolatesHardConstraint")] + public static extern int get_SKY_ErrTxnViolatesHardConstraint(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__Entry_Address")] - public static extern global::System.IntPtr get_wallet__Entry_Address(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrTxnViolatesSoftConstraint")] + public static extern int get_SKY_ErrTxnViolatesSoftConstraint(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__Entry_Public")] - public static extern void set_wallet__Entry_Public(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrTxnViolatesUserConstraint")] + public static extern int get_SKY_ErrTxnViolatesUserConstraint(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__Entry_Public")] - public static extern global::System.IntPtr get_wallet__Entry_Public(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInsufficientBalance")] + public static extern int get_SKY_ErrInsufficientBalance(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__Entry_Secret")] - public static extern void set_wallet__Entry_Secret(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInsufficientHours")] + public static extern int get_SKY_ErrInsufficientHours(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__Entry_Secret")] - public static extern global::System.IntPtr get_wallet__Entry_Secret(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrZeroSpend")] + public static extern int get_SKY_ErrZeroSpend(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__Entry")] - public static extern global::System.IntPtr new_wallet__Entry(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrSpendingUnconfirmed")] + public static extern int get_SKY_ErrSpendingUnconfirmed(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__Entry")] - public static extern void delete_wallet__Entry(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidEncryptedField")] + public static extern int get_SKY_ErrInvalidEncryptedField(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__Note_TxID")] - public static extern void set_wallet__Note_TxID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrWalletEncrypted")] + public static extern int get_SKY_ErrWalletEncrypted(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__Note_TxID")] - public static extern global::System.IntPtr get_wallet__Note_TxID(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrWalletNotEncrypted")] + public static extern int get_SKY_ErrWalletNotEncrypted(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__Note_Value")] - public static extern void set_wallet__Note_Value(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrMissingPassword")] + public static extern int get_SKY_ErrMissingPassword(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__Note_Value")] - public static extern global::System.IntPtr get_wallet__Note_Value(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrMissingEncrypt")] + public static extern int get_SKY_ErrMissingEncrypt(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__Note")] - public static extern global::System.IntPtr new_wallet__Note(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidPassword")] + public static extern int get_SKY_ErrInvalidPassword(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__Note")] - public static extern void delete_wallet__Note(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrMissingSeed")] + public static extern int get_SKY_ErrMissingSeed(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__ReadableNote_TransactionID")] - public static extern void set_wallet__ReadableNote_TransactionID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrMissingAuthenticated")] + public static extern int get_SKY_ErrMissingAuthenticated(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__ReadableNote_TransactionID")] - public static extern global::System.IntPtr get_wallet__ReadableNote_TransactionID(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrWrongCryptoType")] + public static extern int get_SKY_ErrWrongCryptoType(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__ReadableNote_ActualNote")] - public static extern void set_wallet__ReadableNote_ActualNote(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrWalletNotExist")] + public static extern int get_SKY_ErrWalletNotExist(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__ReadableNote_ActualNote")] - public static extern global::System.IntPtr get_wallet__ReadableNote_ActualNote(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrSeedUsed")] + public static extern int get_SKY_ErrSeedUsed(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__ReadableNote")] - public static extern global::System.IntPtr new_wallet__ReadableNote(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrWalletAPIDisabled")] + public static extern int get_SKY_ErrWalletAPIDisabled(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__ReadableNote")] - public static extern void delete_wallet__ReadableNote(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrSeedAPIDisabled")] + public static extern int get_SKY_ErrSeedAPIDisabled(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__UxBalance_Hash")] - public static extern void set_wallet__UxBalance_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrWalletNameConflict")] + public static extern int get_SKY_ErrWalletNameConflict(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__UxBalance_Hash")] - public static extern global::System.IntPtr get_wallet__UxBalance_Hash(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidHoursSelectionMode")] + public static extern int get_SKY_ErrInvalidHoursSelectionMode(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__UxBalance_BkSeq")] - public static extern void set_wallet__UxBalance_BkSeq(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidHoursSelectionType")] + public static extern int get_SKY_ErrInvalidHoursSelectionType(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__UxBalance_BkSeq")] - public static extern global::System.IntPtr get_wallet__UxBalance_BkSeq(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrUnknownAddress")] + public static extern int get_SKY_ErrUnknownAddress(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__UxBalance_Address")] - public static extern void set_wallet__UxBalance_Address(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrUnknownUxOut")] + public static extern int get_SKY_ErrUnknownUxOut(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__UxBalance_Address")] - public static extern global::System.IntPtr get_wallet__UxBalance_Address(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrNoUnspents")] + public static extern int get_SKY_ErrNoUnspents(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__UxBalance_Coins")] - public static extern void set_wallet__UxBalance_Coins(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrNullChangeAddress")] + public static extern int get_SKY_ErrNullChangeAddress(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__UxBalance_Coins")] - public static extern global::System.IntPtr get_wallet__UxBalance_Coins(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrMissingTo")] + public static extern int get_SKY_ErrMissingTo(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__UxBalance_Hours")] - public static extern void set_wallet__UxBalance_Hours(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrZeroCoinsTo")] + public static extern int get_SKY_ErrZeroCoinsTo(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__UxBalance_Hours")] - public static extern global::System.IntPtr get_wallet__UxBalance_Hours(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrNullAddressTo")] + public static extern int get_SKY_ErrNullAddressTo(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__UxBalance")] - public static extern global::System.IntPtr new_wallet__UxBalance(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDuplicateTo")] + public static extern int get_SKY_ErrDuplicateTo(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__UxBalance")] - public static extern void delete_wallet__UxBalance(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrMissingWalletID")] + public static extern int get_SKY_ErrMissingWalletID(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_api__RichlistParams_N")] - public static extern void set_api__RichlistParams_N(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrIncludesNullAddress")] + public static extern int get_SKY_ErrIncludesNullAddress(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_api__RichlistParams_N")] - public static extern global::System.IntPtr get_api__RichlistParams_N(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDuplicateAddresses")] + public static extern int get_SKY_ErrDuplicateAddresses(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_api__RichlistParams_IncludeDistribution")] - public static extern void set_api__RichlistParams_IncludeDistribution(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrZeroToHoursAuto")] + public static extern int get_SKY_ErrZeroToHoursAuto(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_api__RichlistParams_IncludeDistribution")] - public static extern global::System.IntPtr get_api__RichlistParams_IncludeDistribution(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrMissingModeAuto")] + public static extern int get_SKY_ErrMissingModeAuto(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_api__RichlistParams")] - public static extern global::System.IntPtr new_api__RichlistParams(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidHoursSelMode")] + public static extern int get_SKY_ErrInvalidHoursSelMode(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_api__RichlistParams")] - public static extern void delete_api__RichlistParams(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidModeManual")] + public static extern int get_SKY_ErrInvalidModeManual(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cli__SendAmount_Addr")] - public static extern void set_cli__SendAmount_Addr(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidHoursSelType")] + public static extern int get_SKY_ErrInvalidHoursSelType(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_cli__SendAmount_Addr")] - public static extern global::System.IntPtr get_cli__SendAmount_Addr(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrMissingShareFactor")] + public static extern int get_SKY_ErrMissingShareFactor(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cli__SendAmount_Coins")] - public static extern void set_cli__SendAmount_Coins(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidShareFactor")] + public static extern int get_SKY_ErrInvalidShareFactor(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_cli__SendAmount_Coins")] - public static extern global::System.IntPtr get_cli__SendAmount_Coins(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrShareFactorOutOfRange")] + public static extern int get_SKY_ErrShareFactorOutOfRange(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cli__SendAmount")] - public static extern global::System.IntPtr new_cli__SendAmount(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrWalletConstraint")] + public static extern int get_SKY_ErrWalletConstraint(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cli__SendAmount")] - public static extern void delete_cli__SendAmount(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDuplicateUxOuts")] + public static extern int get_SKY_ErrDuplicateUxOuts(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_httphelper__Address__unnamed")] - public static extern void set_httphelper__Address__unnamed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrUnknownWalletID")] + public static extern int get_SKY_ErrUnknownWalletID(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_httphelper__Address__unnamed")] - public static extern global::System.IntPtr get_httphelper__Address__unnamed(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrSHA256orMissingPassword")] + public static extern int get_SKY_ErrSHA256orMissingPassword(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_httphelper__Address")] - public static extern global::System.IntPtr new_httphelper__Address(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrSHA256LenghtDataOverflowMaxUint32")] + public static extern int get_SKY_ErrSHA256LenghtDataOverflowMaxUint32(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_httphelper__Address")] - public static extern void delete_httphelper__Address(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrVerifySignatureInvalidPubkeysLength")] + public static extern int get_SKY_ErrVerifySignatureInvalidPubkeysLength(); } } diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index 28639444..ac2f148f 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -331,6 +331,7 @@ SWIGEXPORT void SWIGSTDCALL SWIGRegisterStringCallback_skycoin(SWIG_CSharpString } + typedef GoInt64_ Handle; /** * Memory handle for internal object retrieving password to read * encrypted wallets. @@ -580,2291 +581,3817 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalBlockHeaders(void * jarg1, void * } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_OK() { - long long jresult ; - long long result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set__GoString__p(void * jarg1, char * jarg2) { + _GoString_ *arg1 = (_GoString_ *) 0 ; + char *arg2 = (char *) 0 ; - result = (long long)(0); - jresult = result; - return jresult; + arg1 = (_GoString_ *)jarg1; + arg2 = (char *)jarg2; + { + if (arg2) { + arg1->p = (char const *) malloc(strlen((const char *)arg2)+1); + strcpy((char *)arg1->p, (const char *)arg2); + } else { + arg1->p = 0; + } + } } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ERROR() { - long long jresult ; - long long result; +SWIGEXPORT char * SWIGSTDCALL CSharp_skycoin_get__GoString__p(void * jarg1) { + char * jresult ; + _GoString_ *arg1 = (_GoString_ *) 0 ; + char *result = 0 ; - result = (long long)(0x7FFFFFFF); - jresult = result; + arg1 = (_GoString_ *)jarg1; + result = (char *) ((arg1)->p); + jresult = SWIG_csharp_string_callback((const char *)result); return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_PKG_API() { - long long jresult ; - long long result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set__GoString__n(void * jarg1, void * jarg2) { + _GoString_ *arg1 = (_GoString_ *) 0 ; + ptrdiff_t arg2 ; + ptrdiff_t *argp2 ; - result = (long long)(0x01000000); - jresult = result; - return jresult; + arg1 = (_GoString_ *)jarg1; + argp2 = (ptrdiff_t *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null ptrdiff_t", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->n = arg2; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_PKG_CIPHER() { - long long jresult ; - long long result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get__GoString__n(void * jarg1) { + void * jresult ; + _GoString_ *arg1 = (_GoString_ *) 0 ; + ptrdiff_t result; - result = (long long)(0x02000000); - jresult = result; + arg1 = (_GoString_ *)jarg1; + result = ((arg1)->n); + { + ptrdiff_t * resultptr = (ptrdiff_t *) malloc(sizeof(ptrdiff_t)); + memmove(resultptr, &result, sizeof(ptrdiff_t)); + jresult = resultptr; + } return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_PKG_CLI() { - long long jresult ; - long long result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new__GoString_() { + void * jresult ; + _GoString_ *result = 0 ; - result = (long long)(0x03000000); - jresult = result; + result = (_GoString_ *)calloc(1, sizeof(_GoString_)); + jresult = (void *)result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_PKG_COIN() { - long long jresult ; - long long result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete__GoString_(void * jarg1) { + _GoString_ *arg1 = (_GoString_ *) 0 ; - result = (long long)(0x04000000); - jresult = result; - return jresult; + arg1 = (_GoString_ *)jarg1; + free((char *) arg1); } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_PKG_CONSENSUS() { - long long jresult ; - long long result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_GoInterface_t(void * jarg1, void * jarg2) { + GoInterface *arg1 = (GoInterface *) 0 ; + void *arg2 = (void *) 0 ; - result = (long long)(0x05000000); - jresult = result; - return jresult; + arg1 = (GoInterface *)jarg1; + arg2 = (void *)jarg2; + if (arg1) (arg1)->t = arg2; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_PKG_DAEMON() { - long long jresult ; - long long result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_GoInterface_t(void * jarg1) { + void * jresult ; + GoInterface *arg1 = (GoInterface *) 0 ; + void *result = 0 ; - result = (long long)(0x06000000); - jresult = result; + arg1 = (GoInterface *)jarg1; + result = (void *) ((arg1)->t); + jresult = (void *)result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_PKG_GUI() { - long long jresult ; - long long result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_GoInterface_v(void * jarg1, void * jarg2) { + GoInterface *arg1 = (GoInterface *) 0 ; + void *arg2 = (void *) 0 ; - result = (long long)(0x07000000); - jresult = result; - return jresult; + arg1 = (GoInterface *)jarg1; + arg2 = (void *)jarg2; + if (arg1) (arg1)->v = arg2; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_PKG_SKYCOIN() { - long long jresult ; - long long result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_GoInterface_v(void * jarg1) { + void * jresult ; + GoInterface *arg1 = (GoInterface *) 0 ; + void *result = 0 ; - result = (long long)(0x08000000); - jresult = result; + arg1 = (GoInterface *)jarg1; + result = (void *) ((arg1)->v); + jresult = (void *)result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_PKG_UTIL() { - long long jresult ; - long long result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_GoInterface() { + void * jresult ; + GoInterface *result = 0 ; - result = (long long)(0x09000000); - jresult = result; + result = (GoInterface *)calloc(1, sizeof(GoInterface)); + jresult = (void *)result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_PKG_VISOR() { - long long jresult ; - long long result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_GoInterface(void * jarg1) { + GoInterface *arg1 = (GoInterface *) 0 ; - result = (long long)(0x0A000000); - jresult = result; - return jresult; + arg1 = (GoInterface *)jarg1; + free((char *) arg1); } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_PKG_WALLET() { - long long jresult ; - long long result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_GoSlice_data(void * jarg1, void * jarg2) { + GoSlice *arg1 = (GoSlice *) 0 ; + void *arg2 = (void *) 0 ; - result = (long long)(0x0B000000); - jresult = result; - return jresult; + arg1 = (GoSlice *)jarg1; + arg2 = (void *)jarg2; + if (arg1) (arg1)->data = arg2; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrAddressInvalidLength() { - long long jresult ; - long long result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_GoSlice_data(void * jarg1) { + void * jresult ; + GoSlice *arg1 = (GoSlice *) 0 ; + void *result = 0 ; - result = (long long)(0x02000000); - jresult = result; + arg1 = (GoSlice *)jarg1; + result = (void *) ((arg1)->data); + jresult = (void *)result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrAddressInvalidChecksum() { - long long jresult ; - long long result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_GoSlice_len(void * jarg1, long long jarg2) { + GoSlice *arg1 = (GoSlice *) 0 ; + GoInt arg2 ; - result = (long long)(0x02000001); - jresult = result; - return jresult; + arg1 = (GoSlice *)jarg1; + arg2 = (GoInt)jarg2; + if (arg1) (arg1)->len = arg2; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrAddressInvalidVersion() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_GoSlice_len(void * jarg1) { long long jresult ; - long long result; + GoSlice *arg1 = (GoSlice *) 0 ; + GoInt result; - result = (long long)(0x02000002); + arg1 = (GoSlice *)jarg1; + result = (GoInt) ((arg1)->len); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrAddressInvalidPubKey() { - long long jresult ; - long long result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_GoSlice_cap(void * jarg1, long long jarg2) { + GoSlice *arg1 = (GoSlice *) 0 ; + GoInt arg2 ; - result = (long long)(0x02000003); - jresult = result; - return jresult; + arg1 = (GoSlice *)jarg1; + arg2 = (GoInt)jarg2; + if (arg1) (arg1)->cap = arg2; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrAddressInvalidFirstByte() { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_GoSlice_cap(void * jarg1) { long long jresult ; - long long result; + GoSlice *arg1 = (GoSlice *) 0 ; + GoInt result; - result = (long long)(0x02000004); + arg1 = (GoSlice *)jarg1; + result = (GoInt) ((arg1)->cap); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrAddressInvalidLastByte() { - long long jresult ; - long long result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_GoSlice() { + void * jresult ; + GoSlice *result = 0 ; - result = (long long)(0x02000005); - jresult = result; + result = (GoSlice *)calloc(1, sizeof(GoSlice)); + jresult = (void *)result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrBufferUnderflow() { - long long jresult ; - long long result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_GoSlice(void * jarg1) { + GoSlice *arg1 = (GoSlice *) 0 ; - result = (long long)(0x02000006); - jresult = result; - return jresult; + arg1 = (GoSlice *)jarg1; + free((char *) arg1); } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidOmitEmpty() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock(void * jarg1, unsigned long long jarg2, void * jarg3, void * jarg4, void * jarg5) { + unsigned int jresult ; + Block__Handle arg1 ; + GoUint64 arg2 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + Transactions__Handle arg4 ; + FeeCalculator *arg5 = (FeeCalculator *) 0 ; + Block__Handle *arg6 = (Block__Handle *) 0 ; + Handle temp6 ; + GoUint32 result; - result = (long long)(0x02000007); + { + arg6 = &temp6; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoUint64)jarg2; + arg3 = (cipher__SHA256 *)jarg3; + { + SWIG_AsVal_long(jarg4, (long*)&arg4); + } + arg5 = (FeeCalculator *)jarg5; + result = (GoUint32)SKY_coin_NewBlock(arg1,arg2,(GoUint8_ (*)[32])arg3,arg4,arg5,arg6); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidLengthPubKey() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SignedBlock_VerifySignature(void * jarg1, cipher_PubKey* jarg2) { + unsigned int jresult ; + coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + GoUint32 result; - result = (long long)(0x02000008); + arg1 = (coin__SignedBlock *)jarg1; + arg2 = (cipher_PubKey*)jarg2; + result = (GoUint32)SKY_coin_SignedBlock_VerifySignature(arg1,(GoUint8_ (*)[33])arg2); jresult = result; + { + //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey + free(arg2); + } return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrPubKeyFromNullSecKey() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewGenesisBlock(void * jarg1, unsigned long long jarg2, unsigned long long jarg3) { + unsigned int jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoUint64 arg2 ; + GoUint64 arg3 ; + Block__Handle *arg4 = (Block__Handle *) 0 ; + Handle temp4 ; + GoUint32 result; - result = (long long)(0x02000009); + { + arg4 = &temp4; + } + arg1 = (cipher__Address *)jarg1; + arg2 = (GoUint64)jarg2; + arg3 = (GoUint64)jarg3; + result = (GoUint32)SKY_coin_NewGenesisBlock(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrPubKeyFromBadSecKey() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_HashHeader(void * jarg1, void * jarg2) { + unsigned int jresult ; + Block__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint32 result; - result = (long long)(0x0200000A); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_Block_HashHeader(arg1,(GoUint8_ (*)[32])arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidLengthSecKey() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_PreHashHeader(void * jarg1, void * jarg2) { + unsigned int jresult ; + Block__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint32 result; - result = (long long)(0x0200000B); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_Block_PreHashHeader(arg1,(GoUint8_ (*)[32])arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrECHDInvalidPubKey() { - long long jresult ; - long long result; - - result = (long long)(0x0200000C); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrECHDInvalidSecKey() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_Time(void * jarg1, void * jarg2) { + unsigned int jresult ; + Block__Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint32 result; - result = (long long)(0x0200000D); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_coin_Block_Time(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidLengthSig() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_Seq(void * jarg1, void * jarg2) { + unsigned int jresult ; + Block__Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint32 result; - result = (long long)(0x0200000E); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_coin_Block_Seq(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidLengthRipemd160() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_HashBody(void * jarg1, void * jarg2) { + unsigned int jresult ; + Block__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint32 result; - result = (long long)(0x0200000F); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_Block_HashBody(arg1,(GoUint8_ (*)[32])arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidLengthSHA256() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_Size(void * jarg1, void * jarg2) { + unsigned int jresult ; + Block__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoUint32 result; - result = (long long)(0x02000010); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_coin_Block_Size(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidBase58Char() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_String(void * jarg1, void * jarg2) { + unsigned int jresult ; + Block__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; - result = (long long)(0x02000011); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_coin_Block_String(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidBase58String() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_GetTransaction(void * jarg1, void * jarg2, void * jarg4) { + unsigned int jresult ; + Block__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + Transaction__Handle *arg3 = (Transaction__Handle *) 0 ; + GoUint8 *arg4 = (GoUint8 *) 0 ; + Handle temp3 ; + GoUint32 result; - result = (long long)(0x02000012); + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (cipher__SHA256 *)jarg2; + arg4 = (GoUint8 *)jarg4; + result = (GoUint32)SKY_coin_Block_GetTransaction(arg1,(GoUint8_ (*)[32])arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidBase58Length() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlockHeader(void * jarg1, void * jarg2, unsigned long long jarg3, unsigned long long jarg4, void * jarg5, void * jarg6) { + unsigned int jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint64 arg3 ; + GoUint64 arg4 ; + BlockBody__Handle arg5 ; + coin__BlockHeader *arg6 = (coin__BlockHeader *) 0 ; + GoUint32 result; - result = (long long)(0x02000013); + arg1 = (coin__BlockHeader *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + arg3 = (GoUint64)jarg3; + arg4 = (GoUint64)jarg4; + { + SWIG_AsVal_long(jarg5, (long*)&arg5); + } + arg6 = (coin__BlockHeader *)jarg6; + result = (GoUint32)SKY_coin_NewBlockHeader(arg1,(GoUint8_ (*)[32])arg2,arg3,arg4,arg5,arg6); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidHexLength() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockHeader_Hash(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint32 result; - result = (long long)(0x02000014); + arg1 = (coin__BlockHeader *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_BlockHeader_Hash(arg1,(GoUint8_ (*)[32])arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidBytesLength() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockHeader_Bytes(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; - result = (long long)(0x02000015); + arg1 = (coin__BlockHeader *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_coin_BlockHeader_Bytes(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidPubKey() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockHeader_String(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; - result = (long long)(0x02000016); + arg1 = (coin__BlockHeader *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_coin_BlockHeader_String(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidSecKey() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Hash(void * jarg1, void * jarg2) { + unsigned int jresult ; + BlockBody__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint32 result; - result = (long long)(0x02000017); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_BlockBody_Hash(arg1,(GoUint8_ (*)[32])arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidSigForPubKey() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Size(void * jarg2) { + unsigned int jresult ; + BlockBody__Handle *arg1 = (BlockBody__Handle *) 0 ; + GoInt *arg2 = (GoInt *) 0 ; + Handle temp1 ; + GoUint32 result; - result = (long long)(0x02000018); + { + arg1 = &temp1; + } + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_coin_BlockBody_Size(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidSecKeyHex() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Bytes(void * jarg1, void * jarg2) { + unsigned int jresult ; + BlockBody__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; - result = (long long)(0x02000019); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_coin_BlockBody_Bytes(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidAddressForSig() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_CreateUnspents(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + Transaction__Handle arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoUint32 result; - result = (long long)(0x0200001A); + arg1 = (coin__BlockHeader *)jarg1; + { + SWIG_AsVal_long(jarg2, (long*)&arg2); + } + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_coin_CreateUnspents(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidHashForSig() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_CreateUnspent(void * jarg1, void * jarg2, long long jarg3, void * jarg4) { + unsigned int jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + Transaction__Handle arg2 ; + GoInt arg3 ; + coin__UxOut *arg4 = (coin__UxOut *) 0 ; + GoUint32 result; - result = (long long)(0x0200001B); + arg1 = (coin__BlockHeader *)jarg1; + { + SWIG_AsVal_long(jarg2, (long*)&arg2); + } + arg3 = (GoInt)jarg3; + arg4 = (coin__UxOut *)jarg4; + result = (GoUint32)SKY_coin_CreateUnspent(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrPubKeyRecoverMismatch() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetBlockObject(void * jarg1, void * jarg2) { + unsigned int jresult ; + Block__Handle arg1 ; + coin__Block **arg2 = (coin__Block **) 0 ; + GoUint32 result; - result = (long long)(0x0200001C); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (coin__Block **)jarg2; + result = (GoUint32)SKY_coin_GetBlockObject(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidSigInvalidPubKey() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetBlockBody(void * jarg1) { + unsigned int jresult ; + Block__Handle arg1 ; + BlockBody__Handle *arg2 = (BlockBody__Handle *) 0 ; + Handle temp2 ; + GoUint32 result; - result = (long long)(0x0200001D); + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_coin_GetBlockBody(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidSigValidity() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewEmptyBlock(void * jarg1) { + unsigned int jresult ; + Transactions__Handle arg1 ; + Block__Handle *arg2 = (Block__Handle *) 0 ; + Handle temp2 ; + GoUint32 result; - result = (long long)(0x0200001E); + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_coin_NewEmptyBlock(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidSigForMessage() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_NewDefaultMnemomic(void * jarg1) { + unsigned int jresult ; + GoString_ *arg1 = (GoString_ *) 0 ; + GoUint32 result; - result = (long long)(0x0200001F); + arg1 = (GoString_ *)jarg1; + result = (GoUint32)SKY_bip39_NewDefaultMnemomic(arg1); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidSecKyVerification() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_NewEntropy(long long jarg1, void * jarg2) { + unsigned int jresult ; + GoInt arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; - result = (long long)(0x02000020); + arg1 = (GoInt)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_bip39_NewEntropy(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrNullPubKeyFromSecKey() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_NewMnemonic(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoSlice *argp1 ; + GoUint32 result; - result = (long long)(0x02000021); + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_bip39_NewMnemonic(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidDerivedPubKeyFromSecKey() { - long long jresult ; - long long result; - - result = (long long)(0x02000022); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidPubKeyFromHash() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_MnemonicToByteArray(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoString *argp1 ; + GoUint32 result; - result = (long long)(0x02000023); + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_bip39_MnemonicToByteArray(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrPubKeyFromSecKeyMissmatch() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_IsMnemonicValid(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoString *argp1 ; + GoUint32 result; - result = (long long)(0x02000024); + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_bip39_IsMnemonicValid(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrTemporaryInsufficientBalance() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewClient(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + Client__Handle *arg2 = (Client__Handle *) 0 ; + GoString *argp1 ; + GoUint32 result; - result = (long long)(0x03000000); + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Client__Handle *)jarg2; + result = (GoUint32)SKY_api_NewClient(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrAddress() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CSRF(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; - result = (long long)(0x03000001); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_api_Client_CSRF(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrWalletName() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Version(void * jarg1) { + unsigned int jresult ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; + GoUint32 result; - result = (long long)(0x03000002); + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_Version(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrJSONMarshal() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Outputs(void * jarg1) { + unsigned int jresult ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; + GoUint32 result; - result = (long long)(0x03000003); + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_Outputs(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_WalletLoadError() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_OutputsForAddresses(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + GoSlice arg2 ; + Handle *arg3 = (Handle *) 0 ; + GoSlice *argp2 ; + Handle temp3 ; + GoUint32 result; - result = (long long)(0x03000004); + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_api_Client_OutputsForAddresses(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_WalletSaveError() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_OutputsForHashes(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + GoSlice arg2 ; + Handle *arg3 = (Handle *) 0 ; + GoSlice *argp2 ; + Handle temp3 ; + GoUint32 result; - result = (long long)(0x03000005); + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_api_Client_OutputsForHashes(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrAddEarnedCoinHoursAdditionOverflow() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CoinSupply(void * jarg1) { + unsigned int jresult ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; + GoUint32 result; - result = (long long)(0x04000000); + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_CoinSupply(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrUint64MultOverflow() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockByHash(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + GoString *argp2 ; + Handle temp3 ; + GoUint32 result; - result = (long long)(0x04000001); + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_api_Client_BlockByHash(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrUint64AddOverflow() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockBySeq(void * jarg1, unsigned long long jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + GoUint64 arg2 ; + Handle *arg3 = (Handle *) 0 ; + Handle temp3 ; + GoUint32 result; - result = (long long)(0x04000002); + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoUint64)jarg2; + result = (GoUint32)SKY_api_Client_BlockBySeq(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrUint32AddOverflow() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Blocks(void * jarg1, unsigned long long jarg2, unsigned long long jarg3) { + unsigned int jresult ; + Client__Handle arg1 ; + GoUint64 arg2 ; + GoUint64 arg3 ; + Handle *arg4 = (Handle *) 0 ; + Handle temp4 ; + GoUint32 result; - result = (long long)(0x04000003); + { + arg4 = &temp4; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoUint64)jarg2; + arg3 = (GoUint64)jarg3; + result = (GoUint32)SKY_api_Client_Blocks(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrUint64OverflowsInt64() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_LastBlocks(void * jarg1, unsigned long long jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + GoUint64 arg2 ; + Handle *arg3 = (Handle *) 0 ; + Handle temp3 ; + GoUint32 result; - result = (long long)(0x04000004); + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoUint64)jarg2; + result = (GoUint32)SKY_api_Client_LastBlocks(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInt64UnderflowsUint64() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockchainMetadata(void * jarg1) { + unsigned int jresult ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; + GoUint32 result; - result = (long long)(0x04000005); + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_BlockchainMetadata(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrPeerlistFull() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockchainProgress(void * jarg1) { + unsigned int jresult ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; + GoUint32 result; - result = (long long)(0x06000000); + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_BlockchainProgress(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidAddress() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Balance(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Client__Handle arg1 ; + GoSlice arg2 ; + wallet__BalancePair *arg3 = (wallet__BalancePair *) 0 ; + GoSlice *argp2 ; + GoUint32 result; - result = (long long)(0x06000001); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrNoLocalhost() { - long long jresult ; - long long result; - - result = (long long)(0x06000002); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (wallet__BalancePair *)jarg3; + result = (GoUint32)SKY_api_Client_Balance(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrNotExternalIP() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UxOut(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + GoString *argp2 ; + Handle temp3 ; + GoUint32 result; - result = (long long)(0x06000003); + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_api_Client_UxOut(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrPortTooLow() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressUxOuts(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + GoString *argp2 ; + Handle temp3 ; + GoUint32 result; - result = (long long)(0x06000004); + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_api_Client_AddressUxOuts(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrBlacklistedAddress() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Wallet(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + WalletResponse__Handle *arg3 = (WalletResponse__Handle *) 0 ; + GoString *argp2 ; + GoUint32 result; - result = (long long)(0x06000005); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (WalletResponse__Handle *)jarg3; + result = (GoUint32)SKY_api_Client_Wallet(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectReadFailed() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Wallets(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + Wallets__Handle *arg2 = (Wallets__Handle *) 0 ; + GoUint32 result; - result = (long long)(0x06000006); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (Wallets__Handle *)jarg2; + result = (GoUint32)SKY_api_Client_Wallets(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectWriteFailed() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateUnencryptedWallet(void * jarg1, void * jarg2, void * jarg3, long long jarg4, void * jarg5) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + GoInt arg4 ; + WalletResponse__Handle *arg5 = (WalletResponse__Handle *) 0 ; + GoString *argp2 ; + GoString *argp3 ; + GoUint32 result; - result = (long long)(0x06000007); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + arg4 = (GoInt)jarg4; + arg5 = (WalletResponse__Handle *)jarg5; + result = (GoUint32)SKY_api_Client_CreateUnencryptedWallet(arg1,arg2,arg3,arg4,arg5); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectSetReadDeadlineFailed() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateEncryptedWallet(void * jarg1, void * jarg2, void * jarg3, void * jarg4, long long jarg5, void * jarg6) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + GoString arg4 ; + GoInt arg5 ; + WalletResponse__Handle *arg6 = (WalletResponse__Handle *) 0 ; + GoString *argp2 ; + GoString *argp3 ; + GoString *argp4 ; + GoUint32 result; - result = (long long)(0x06000008); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + argp4 = (GoString *)jarg4; + if (!argp4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg4 = *argp4; + arg5 = (GoInt)jarg5; + arg6 = (WalletResponse__Handle *)jarg6; + result = (GoUint32)SKY_api_Client_CreateEncryptedWallet(arg1,arg2,arg3,arg4,arg5,arg6); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectInvalidMessageLength() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NewWalletAddress(void * jarg1, void * jarg2, long long jarg3, void * jarg4, void * jarg5) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + GoInt arg3 ; + GoString arg4 ; + Strings__Handle *arg5 = (Strings__Handle *) 0 ; + GoString *argp2 ; + GoString *argp4 ; + GoUint32 result; - result = (long long)(0x06000009); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (GoInt)jarg3; + argp4 = (GoString *)jarg4; + if (!argp4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg4 = *argp4; + arg5 = (Strings__Handle *)jarg5; + result = (GoUint32)SKY_api_Client_NewWalletAddress(arg1,arg2,arg3,arg4,arg5); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectMalformedMessage() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_WalletBalance(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + wallet__BalancePair *arg3 = (wallet__BalancePair *) 0 ; + GoString *argp2 ; + GoUint32 result; - result = (long long)(0x0600000A); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (wallet__BalancePair *)jarg3; + result = (GoUint32)SKY_api_Client_WalletBalance(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectUnknownMessage() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Spend(void * jarg1, void * jarg2, void * jarg3, unsigned long long jarg4, void * jarg5) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + GoUint64 arg4 ; + GoString arg5 ; + SpendResult_Handle *arg6 = (SpendResult_Handle *) 0 ; + GoString *argp2 ; + GoString *argp3 ; + GoString *argp5 ; + Handle temp6 ; + GoUint32 result; - result = (long long)(0x0600000B); + { + arg6 = &temp6; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + arg4 = (GoUint64)jarg4; + argp5 = (GoString *)jarg5; + if (!argp5) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg5 = *argp5; + result = (GoUint32)SKY_api_Client_Spend(arg1,arg2,arg3,arg4,arg5,arg6); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectUnexpectedError() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateTransaction(void * jarg1) { + unsigned int jresult ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + CreateTransactionResponse__Handle *arg3 = (CreateTransactionResponse__Handle *) 0 ; + Handle temp2 ; + Handle temp3 ; + GoUint32 result; - result = (long long)(0x0600000C); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrConnectionPoolClosed() { - long long jresult ; - long long result; - - result = (long long)(0x0600000D); + { + arg2 = &temp2; + } + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_CreateTransaction(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrWriteQueueFull() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UpdateWallet(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + GoString *argp2 ; + GoString *argp3 ; + GoUint32 result; - result = (long long)(0x0600000E); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + result = (GoUint32)SKY_api_Client_UpdateWallet(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrNoReachableConnections() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_WalletFolderName(void * jarg1) { + unsigned int jresult ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; + GoUint32 result; - result = (long long)(0x0600000F); + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_WalletFolderName(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrMaxDefaultConnectionsReached() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NewSeed(void * jarg1, long long jarg2, void * jarg3) { + unsigned int jresult ; + Client__Handle arg1 ; + GoInt arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + GoUint32 result; - result = (long long)(0x06000010); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoInt)jarg2; + arg3 = (GoString_ *)jarg3; + result = (GoUint32)SKY_api_Client_NewSeed(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectInvalidVersion() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_GetWalletSeed(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + GoString_ *arg4 = (GoString_ *) 0 ; + GoString *argp2 ; + GoString *argp3 ; + GoUint32 result; - result = (long long)(0x06000011); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + arg4 = (GoString_ *)jarg4; + result = (GoUint32)SKY_api_Client_GetWalletSeed(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectIntroductionTimeout() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkConnection(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + GoString *argp2 ; + Handle temp3 ; + GoUint32 result; - result = (long long)(0x06000012); + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_api_Client_NetworkConnection(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectVersionSendFailed() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkConnections(void * jarg1) { + unsigned int jresult ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; + GoUint32 result; - result = (long long)(0x06000013); + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_NetworkConnections(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectIsBlacklisted() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkDefaultConnections(void * jarg1) { + unsigned int jresult ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; + GoUint32 result; - result = (long long)(0x06000014); + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_NetworkDefaultConnections(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectSelf() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkTrustedConnections(void * jarg1) { + unsigned int jresult ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; + GoUint32 result; - result = (long long)(0x06000015); + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_NetworkTrustedConnections(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectConnectedTwice() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkExchangeableConnections(void * jarg1) { + unsigned int jresult ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; + GoUint32 result; - result = (long long)(0x06000016); + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_NetworkExchangeableConnections(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectIdle() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_PendingTransactions(void * jarg1) { + unsigned int jresult ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; + GoUint32 result; - result = (long long)(0x06000017); + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_PendingTransactions(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectNoIntroduction() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Transaction(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + GoString *argp2 ; + Handle temp3 ; + GoUint32 result; - result = (long long)(0x06000018); + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_api_Client_Transaction(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectIPLimitReached() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Transactions(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + GoSlice arg2 ; + Handle *arg3 = (Handle *) 0 ; + GoSlice *argp2 ; + Handle temp3 ; + GoUint32 result; - result = (long long)(0x06000019); + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_api_Client_Transactions(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectOtherError() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_ConfirmedTransactions(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + GoSlice arg2 ; + Handle *arg3 = (Handle *) 0 ; + GoSlice *argp2 ; + Handle temp3 ; + GoUint32 result; - result = (long long)(0x0600001A); + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_api_Client_ConfirmedTransactions(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectMaxDefaultConnectionReached() { - long long jresult ; - long long result; - - result = (long long)(0x0600001B); - jresult = result; - return jresult; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UnconfirmedTransactions(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + GoSlice arg2 ; + Handle *arg3 = (Handle *) 0 ; + GoSlice *argp2 ; + Handle temp3 ; + GoUint32 result; + + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_api_Client_UnconfirmedTransactions(arg1,arg2,arg3); + jresult = result; + return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectMaxOutgoingConnectionsReached() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_InjectTransaction(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Client__Handle arg1 ; + Transaction__Handle arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + GoUint32 result; - result = (long long)(0x0600001C); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + { + SWIG_AsVal_long(jarg2, (long*)&arg2); + } + arg3 = (GoString_ *)jarg3; + result = (GoUint32)SKY_api_Client_InjectTransaction(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ConnectionError() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_ResendUnconfirmedTransactions(void * jarg1) { + unsigned int jresult ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; + GoUint32 result; - result = (long long)(0x0600001D); + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_ResendUnconfirmedTransactions(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrTxnNoFee() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_RawTransaction(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + GoString *argp2 ; + GoUint32 result; - result = (long long)(0x09000000); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (GoString_ *)jarg3; + result = (GoUint32)SKY_api_Client_RawTransaction(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrTxnInsufficientFee() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressTransactions(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + GoString *argp2 ; + Handle temp3 ; + GoUint32 result; - result = (long long)(0x09000001); + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_api_Client_AddressTransactions(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrTxnInsufficientCoinHours() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Richlist(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + api__RichlistParams *arg2 = (api__RichlistParams *) 0 ; + Handle *arg3 = (Handle *) 0 ; + Handle temp3 ; + GoUint32 result; - result = (long long)(0x09000002); + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (api__RichlistParams *)jarg2; + result = (GoUint32)SKY_api_Client_Richlist(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrNegativeValue() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressCount(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint32 result; - result = (long long)(0x09000003); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_api_Client_AddressCount(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrTooManyDecimals() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UnloadWallet(void * jarg1, void * jarg2) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + GoString *argp2 ; + GoUint32 result; - result = (long long)(0x09000004); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_api_Client_UnloadWallet(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrTooLarge() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Health(void * jarg1) { + unsigned int jresult ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; + GoUint32 result; - result = (long long)(0x09000005); + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_api_Client_Health(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrEmptyDirectoryName() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_EncryptWallet(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + WalletResponse__Handle *arg4 = (WalletResponse__Handle *) 0 ; + GoString *argp2 ; + GoString *argp3 ; + GoUint32 result; - result = (long long)(0x09000006); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + arg4 = (WalletResponse__Handle *)jarg4; + result = (GoUint32)SKY_api_Client_EncryptWallet(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDotDirectoryName() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_DecryptWallet(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + WalletResponse__Handle *arg4 = (WalletResponse__Handle *) 0 ; + GoString *argp2 ; + GoString *argp3 ; + GoUint32 result; - result = (long long)(0x09000007); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + arg4 = (WalletResponse__Handle *)jarg4; + result = (GoUint32)SKY_api_Client_DecryptWallet(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrHistoryDBCorrupted() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_Print(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + GoString arg2 ; + GoString *argp2 ; + GoUint32 result; - result = (long long)(0x0A000000); + arg1 = (secp256k1go__XY *)jarg1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_secp256k1go_XY_Print(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrUxOutNotExist() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_ParsePubkey(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + GoSlice arg2 ; + GoUint8 *arg3 = (GoUint8 *) 0 ; + GoSlice *argp2 ; + GoUint32 result; - result = (long long)(0x0A000001); + arg1 = (secp256k1go__XY *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (GoUint8 *)jarg3; + result = (GoUint32)SKY_secp256k1go_XY_ParsePubkey(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrNoHeadBlock() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_Bytes(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; - result = (long long)(0x0A000002); + arg1 = (secp256k1go__XY *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1go_XY_Bytes(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrMissingSignature() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_BytesUncompressed(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; - result = (long long)(0x0A000003); + arg1 = (secp256k1go__XY *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1go_XY_BytesUncompressed(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrUnspentNotExist() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_SetXY(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + secp256k1go__Field *arg3 = (secp256k1go__Field *) 0 ; + GoUint32 result; - result = (long long)(0x0A000004); + arg1 = (secp256k1go__XY *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + arg3 = (secp256k1go__Field *)jarg3; + result = (GoUint32)SKY_secp256k1go_XY_SetXY(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrVerifyStopped() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_IsValid(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoUint32 result; - result = (long long)(0x0A000005); + arg1 = (secp256k1go__XY *)jarg1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_secp256k1go_XY_IsValid(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrCreateBucketFailed() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_SetXYZ(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; + GoUint32 result; - result = (long long)(0x0A000000); + arg1 = (secp256k1go__XY *)jarg1; + arg2 = (secp256k1go__XYZ *)jarg2; + result = (GoUint32)SKY_secp256k1go_XY_SetXYZ(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrBucketNotExist() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_Neg(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; + GoUint32 result; - result = (long long)(0x0A000006); + arg1 = (secp256k1go__XY *)jarg1; + arg2 = (secp256k1go__XY *)jarg2; + result = (GoUint32)SKY_secp256k1go_XY_Neg(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrTxnViolatesHardConstraint() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_SetXO(void * jarg1, void * jarg2, unsigned char jarg3) { + unsigned int jresult ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + GoUint8 arg3 ; + GoUint32 result; - result = (long long)(0x0A000007); + arg1 = (secp256k1go__XY *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + arg3 = (GoUint8)jarg3; + result = (GoUint32)SKY_secp256k1go_XY_SetXO(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrTxnViolatesSoftConstraint() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_AddXY(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; + GoUint32 result; - result = (long long)(0x0A000008); + arg1 = (secp256k1go__XY *)jarg1; + arg2 = (secp256k1go__XY *)jarg2; + result = (GoUint32)SKY_secp256k1go_XY_AddXY(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrTxnViolatesUserConstraint() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_GetPublicKey(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; - result = (long long)(0x0A000009); + arg1 = (secp256k1go__XY *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1go_XY_GetPublicKey(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInsufficientBalance() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewWalletResponse(void * jarg1, void * jarg2) { + unsigned int jresult ; + Wallet__Handle arg1 ; + WalletResponse__Handle *arg2 = (WalletResponse__Handle *) 0 ; + GoUint32 result; - result = (long long)(0x0B000000); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (WalletResponse__Handle *)jarg2; + result = (GoUint32)SKY_api_NewWalletResponse(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInsufficientHours() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreateTransactionResponse(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoSlice arg2 ; + CreateTransactionResponse__Handle *arg3 = (CreateTransactionResponse__Handle *) 0 ; + GoSlice *argp2 ; + Handle temp3 ; + GoUint32 result; - result = (long long)(0x0B000001); + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_api_NewCreateTransactionResponse(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrZeroSpend() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreatedTransaction(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoSlice arg2 ; + CreatedTransaction__Handle *arg3 = (CreatedTransaction__Handle *) 0 ; + GoSlice *argp2 ; + Handle temp3 ; + GoUint32 result; - result = (long long)(0x0B000002); + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_api_NewCreatedTransaction(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrSpendingUnconfirmed() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_CreatedTransaction_ToTransaction(void * jarg1) { + unsigned int jresult ; + CreatedTransaction__Handle arg1 ; + Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; + Handle temp2 ; + GoUint32 result; - result = (long long)(0x0B000003); + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_api_CreatedTransaction_ToTransaction(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidEncryptedField() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreatedTransactionOutput(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + CreatedTransactionOutput__Handle *arg3 = (CreatedTransactionOutput__Handle *) 0 ; + Handle temp3 ; + GoUint32 result; - result = (long long)(0x0B000004); + { + arg3 = &temp3; + } + arg1 = (coin__TransactionOutput *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_api_NewCreatedTransactionOutput(arg1,(GoUint8_ (*)[32])arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrWalletEncrypted() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreatedTransactionInput(void * jarg1) { + unsigned int jresult ; + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + CreatedTransactionInput__Handle *arg2 = (CreatedTransactionInput__Handle *) 0 ; + Handle temp2 ; + GoUint32 result; - result = (long long)(0x0B000005); + { + arg2 = &temp2; + } + arg1 = (wallet__UxBalance *)jarg1; + result = (GoUint32)SKY_api_NewCreatedTransactionInput(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrWalletNotEncrypted() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewError(void * jarg1) { + unsigned int jresult ; + GoInterface arg1 ; + GoInterface *argp1 ; + GoUint32 result; - result = (long long)(0x0B000006); + argp1 = (GoInterface *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInterface", 0); + return 0; + } + arg1 = *argp1; + result = (GoUint32)SKY_wallet_NewError(arg1); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrMissingPassword() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewWallet(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + Options__Handle arg2 ; + Wallet__Handle *arg3 = (Wallet__Handle *) 0 ; + GoString *argp1 ; + Handle temp3 ; + GoUint32 result; - result = (long long)(0x0B000007); + { + arg3 = &temp3; + } + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + { + SWIG_AsVal_long(jarg2, (long*)&arg2); + } + result = (GoUint32)SKY_wallet_NewWallet(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrMissingEncrypt() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Lock(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Wallet__Handle arg1 ; + GoSlice arg2 ; + GoString arg3 ; + GoSlice *argp2 ; + GoString *argp3 ; + GoUint32 result; - result = (long long)(0x0B000008); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + result = (GoUint32)SKY_wallet_Wallet_Lock(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidPassword() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Unlock(void * jarg1, void * jarg2) { + unsigned int jresult ; + Wallet__Handle arg1 ; + GoSlice arg2 ; + Wallet__Handle *arg3 = (Wallet__Handle *) 0 ; + GoSlice *argp2 ; + Handle temp3 ; + GoUint32 result; - result = (long long)(0x0B000009); + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_wallet_Wallet_Unlock(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrMissingSeed() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Load(void * jarg1) { + unsigned int jresult ; + GoString arg1 ; + Wallet__Handle *arg2 = (Wallet__Handle *) 0 ; + GoString *argp1 ; + Handle temp2 ; + GoUint32 result; - result = (long long)(0x0B00000A); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrMissingAuthenticated() { - long long jresult ; - long long result; - - result = (long long)(0x0B00000B); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrWrongCryptoType() { - long long jresult ; - long long result; - - result = (long long)(0x0B00000C); + { + arg2 = &temp2; + } + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + result = (GoUint32)SKY_wallet_Load(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrWalletNotExist() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Save(void * jarg1, void * jarg2) { + unsigned int jresult ; + Wallet__Handle arg1 ; + GoString arg2 ; + GoString *argp2 ; + GoUint32 result; - result = (long long)(0x0B00000D); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_wallet_Wallet_Save(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrSeedUsed() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Validate(void * jarg1) { + unsigned int jresult ; + Wallet__Handle arg1 ; + GoUint32 result; - result = (long long)(0x0B00000E); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_wallet_Wallet_Validate(arg1); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrWalletAPIDisabled() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Type(void * jarg1, void * jarg2) { + unsigned int jresult ; + Wallet__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; - result = (long long)(0x0B00000F); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_wallet_Wallet_Type(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrSeedAPIDisabled() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Version(void * jarg1, void * jarg2) { + unsigned int jresult ; + Wallet__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; - result = (long long)(0x0B000010); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_wallet_Wallet_Version(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrWalletNameConflict() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Filename(void * jarg1, void * jarg2) { + unsigned int jresult ; + Wallet__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; - result = (long long)(0x0B000011); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_wallet_Wallet_Filename(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidHoursSelectionMode() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Label(void * jarg1, void * jarg2) { + unsigned int jresult ; + Wallet__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; - result = (long long)(0x0B000012); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_wallet_Wallet_Label(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidHoursSelectionType() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_IsEncrypted(void * jarg1, void * jarg2) { + unsigned int jresult ; + Wallet__Handle arg1 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoUint32 result; - result = (long long)(0x0B000013); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_wallet_Wallet_IsEncrypted(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrUnknownAddress() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_GenerateAddresses(void * jarg1, unsigned long long jarg2, void * jarg3) { + unsigned int jresult ; + Wallet__Handle arg1 ; + GoUint64 arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoUint32 result; - result = (long long)(0x0B000014); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoUint64)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_wallet_Wallet_GenerateAddresses(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrUnknownUxOut() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_GetAddresses(void * jarg1, void * jarg2) { + unsigned int jresult ; + Wallet__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; - result = (long long)(0x0B000015); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_wallet_Wallet_GetAddresses(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrNoUnspents() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_GetEntry(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + Wallet__Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + wallet__Entry *arg3 = (wallet__Entry *) 0 ; + GoUint8 *arg4 = (GoUint8 *) 0 ; + GoUint32 result; - result = (long long)(0x0B000016); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (cipher__Address *)jarg2; + arg3 = (wallet__Entry *)jarg3; + arg4 = (GoUint8 *)jarg4; + result = (GoUint32)SKY_wallet_Wallet_GetEntry(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrNullChangeAddress() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_AddEntry(void * jarg1, void * jarg2) { + unsigned int jresult ; + Wallet__Handle arg1 ; + wallet__Entry *arg2 = (wallet__Entry *) 0 ; + GoUint32 result; - result = (long long)(0x0B000017); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (wallet__Entry *)jarg2; + result = (GoUint32)SKY_wallet_Wallet_AddEntry(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrMissingTo() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_DistributeSpendHours(unsigned long long jarg1, unsigned long long jarg2, unsigned char jarg3, void * jarg4, void * jarg5, void * jarg6) { + unsigned int jresult ; + GoUint64 arg1 ; + GoUint64 arg2 ; + GoUint8 arg3 ; + GoUint64 *arg4 = (GoUint64 *) 0 ; + coin__UxArray *arg5 = (coin__UxArray *) 0 ; + GoUint64 *arg6 = (GoUint64 *) 0 ; + GoUint32 result; - result = (long long)(0x0B000018); + arg1 = (GoUint64)jarg1; + arg2 = (GoUint64)jarg2; + arg3 = (GoUint8)jarg3; + arg4 = (GoUint64 *)jarg4; + arg5 = (coin__UxArray *)jarg5; + arg6 = (GoUint64 *)jarg6; + result = (GoUint32)SKY_wallet_DistributeSpendHours(arg1,arg2,arg3,arg4,arg5,arg6); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrZeroCoinsTo() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_DistributeCoinHoursProportional(void * jarg1, unsigned long long jarg2, void * jarg3) { + unsigned int jresult ; + GoSlice arg1 ; + GoUint64 arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoUint32 result; - result = (long long)(0x0B000019); + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_wallet_DistributeCoinHoursProportional(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrNullAddressTo() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewUxBalances(unsigned long long jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + GoUint64 arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoUint32 result; - result = (long long)(0x0B00001A); + arg1 = (GoUint64)jarg1; + arg2 = (coin__UxArray *)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_wallet_NewUxBalances(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDuplicateTo() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewUxBalance(unsigned long long jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + GoUint64 arg1 ; + coin__UxOut *arg2 = (coin__UxOut *) 0 ; + wallet__UxBalance *arg3 = (wallet__UxBalance *) 0 ; + GoUint32 result; - result = (long long)(0x0B00001B); + arg1 = (GoUint64)jarg1; + arg2 = (coin__UxOut *)jarg2; + arg3 = (wallet__UxBalance *)jarg3; + result = (GoUint32)SKY_wallet_NewUxBalance(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrMissingWalletID() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ChooseSpendsMinimizeUxOuts(void * jarg1, unsigned long long jarg2, unsigned long long jarg3, void * jarg4) { + unsigned int jresult ; + GoSlice arg1 ; + GoUint64 arg2 ; + GoUint64 arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoUint32 result; - result = (long long)(0x0B00001C); + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64)jarg2; + arg3 = (GoUint64)jarg3; + arg4 = (coin__UxArray *)jarg4; + result = (GoUint32)SKY_wallet_ChooseSpendsMinimizeUxOuts(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrIncludesNullAddress() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ChooseSpendsMaximizeUxOuts(void * jarg1, unsigned long long jarg2, unsigned long long jarg3, void * jarg4) { + unsigned int jresult ; + GoSlice arg1 ; + GoUint64 arg2 ; + GoUint64 arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoUint32 result; - result = (long long)(0x0B00001D); + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64)jarg2; + arg3 = (GoUint64)jarg3; + arg4 = (coin__UxArray *)jarg4; + result = (GoUint32)SKY_wallet_ChooseSpendsMaximizeUxOuts(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDuplicateAddresses() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CheckWalletBalance(void * jarg1, void * jarg2) { + unsigned int jresult ; + WebRpcClient__Handle arg1 ; + GoString arg2 ; + BalanceResult_Handle *arg3 = (BalanceResult_Handle *) 0 ; + GoString *argp2 ; + Handle temp3 ; + GoUint32 result; - result = (long long)(0x0B00001E); - jresult = result; - return jresult; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrZeroToHoursAuto() { - long long jresult ; - long long result; - - result = (long long)(0x0B00001F); + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_cli_CheckWalletBalance(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrMissingModeAuto() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetBalanceOfAddresses(void * jarg1, void * jarg2) { + unsigned int jresult ; + WebRpcClient__Handle arg1 ; + GoSlice arg2 ; + BalanceResult_Handle *arg3 = (BalanceResult_Handle *) 0 ; + GoSlice *argp2 ; + Handle temp3 ; + GoUint32 result; - result = (long long)(0x0B000020); + { + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_cli_GetBalanceOfAddresses(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidHoursSelMode() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewReadableEntry(void * jarg1, void * jarg2) { + unsigned int jresult ; + wallet__Entry *arg1 = (wallet__Entry *) 0 ; + ReadableEntry__Handle *arg2 = (ReadableEntry__Handle *) 0 ; + GoUint32 result; - result = (long long)(0x0B000021); + arg1 = (wallet__Entry *)jarg1; + arg2 = (ReadableEntry__Handle *)jarg2; + result = (GoUint32)SKY_wallet_NewReadableEntry(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidModeManual() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_LoadReadableEntry(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + ReadableEntry__Handle *arg2 = (ReadableEntry__Handle *) 0 ; + GoString *argp1 ; + GoUint32 result; - result = (long long)(0x0B000022); + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (ReadableEntry__Handle *)jarg2; + result = (GoUint32)SKY_wallet_LoadReadableEntry(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidHoursSelType() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewReadableEntryFromPubkey(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + ReadableEntry__Handle *arg2 = (ReadableEntry__Handle *) 0 ; + GoString *argp1 ; + GoUint32 result; - result = (long long)(0x0B000023); + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (ReadableEntry__Handle *)jarg2; + result = (GoUint32)SKY_wallet_NewReadableEntryFromPubkey(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrMissingShareFactor() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableEntry_Save(void * jarg1, void * jarg2) { + unsigned int jresult ; + ReadableEntry__Handle arg1 ; + GoString arg2 ; + GoString *argp2 ; + GoUint32 result; - result = (long long)(0x0B000024); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_wallet_ReadableEntry_Save(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidShareFactor() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_LoadReadableWallet(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + ReadableWallet__Handle *arg2 = (ReadableWallet__Handle *) 0 ; + GoString *argp1 ; + GoUint32 result; - result = (long long)(0x0B000025); + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (ReadableWallet__Handle *)jarg2; + result = (GoUint32)SKY_wallet_LoadReadableWallet(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrShareFactorOutOfRange() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableWallet_Save(void * jarg1, void * jarg2) { + unsigned int jresult ; + ReadableWallet__Handle arg1 ; + GoString arg2 ; + GoString *argp2 ; + GoUint32 result; - result = (long long)(0x0B000026); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_wallet_ReadableWallet_Save(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrWalletConstraint() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableWallet_Load(void * jarg1, void * jarg2) { + unsigned int jresult ; + ReadableWallet__Handle arg1 ; + GoString arg2 ; + GoString *argp2 ; + GoUint32 result; - result = (long long)(0x0B000027); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_wallet_ReadableWallet_Load(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDuplicateUxOuts() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableWallet_Erase(void * jarg1) { + unsigned int jresult ; + ReadableWallet__Handle arg1 ; + GoUint32 result; - result = (long long)(0x0B000028); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_wallet_ReadableWallet_Erase(arg1); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrUnknownWalletID() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_DecompressPoint(void * jarg1, unsigned char jarg2, void * jarg3) { + unsigned int jresult ; + GoSlice arg1 ; + GoUint8 arg2 ; + GoSlice arg3 ; + GoSlice *argp1 ; + GoSlice *argp3 ; + GoUint32 result; - result = (long long)(0x0B000029); + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint8)jarg2; + argp3 = (GoSlice *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg3 = *argp3; + result = (GoUint32)SKY_secp256k1go_DecompressPoint(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrSHA256orMissingPassword() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_RecoverPublicKey(void * jarg1, void * jarg2, long long jarg3, void * jarg4, void * jarg5) { + unsigned int jresult ; + GoSlice arg1 ; + GoSlice arg2 ; + GoInt arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + GoInt *arg5 = (GoInt *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; + GoUint32 result; - result = (long long)(0x0B00002A); + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (GoInt)jarg3; + arg4 = (coin__UxArray *)jarg4; + arg5 = (GoInt *)jarg5; + result = (GoUint32)SKY_secp256k1go_RecoverPublicKey(arg1,arg2,arg3,arg4,arg5); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrSHA256LenghtDataOverflowMaxUint32() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Multiply(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + GoSlice arg1 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; + GoUint32 result; - result = (long long)(0x0B00002B); + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_secp256k1go_Multiply(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_SKY_ErrVerifySignatureInvalidPubkeysLength() { - long long jresult ; - long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_BaseMultiply(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoUint32 result; - result = (long long)(0x0b000036); + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1go_BaseMultiply(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set__GoString__p(void * jarg1, char * jarg2) { - _GoString_ *arg1 = (_GoString_ *) 0 ; - char *arg2 = (char *) 0 ; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_BaseMultiplyAdd(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + GoSlice arg1 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; + GoUint32 result; - arg1 = (_GoString_ *)jarg1; - arg2 = (char *)jarg2; - { - if (arg2) { - arg1->p = (char const *) malloc(strlen((const char *)arg2)+1); - strcpy((char *)arg1->p, (const char *)arg2); - } else { - arg1->p = 0; - } + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; } + arg2 = *argp2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_secp256k1go_BaseMultiplyAdd(arg1,arg2,arg3); + jresult = result; + return jresult; } -SWIGEXPORT char * SWIGSTDCALL CSharp_skycoin_get__GoString__p(void * jarg1) { - char * jresult ; - _GoString_ *arg1 = (_GoString_ *) 0 ; - char *result = 0 ; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_GeneratePublicKey(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoUint32 result; - arg1 = (_GoString_ *)jarg1; - result = (char *) ((arg1)->p); - jresult = SWIG_csharp_string_callback((const char *)result); + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1go_GeneratePublicKey(arg1,arg2); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set__GoString__n(void * jarg1, void * jarg2) { - _GoString_ *arg1 = (_GoString_ *) 0 ; - ptrdiff_t arg2 ; - ptrdiff_t *argp2 ; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_SeckeyIsValid(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoSlice *argp1 ; + GoUint32 result; - arg1 = (_GoString_ *)jarg1; - argp2 = (ptrdiff_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null ptrdiff_t", 0); - return ; + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; } - arg2 = *argp2; - if (arg1) (arg1)->n = arg2; + arg1 = *argp1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_secp256k1go_SeckeyIsValid(arg1,arg2); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get__GoString__n(void * jarg1) { - void * jresult ; - _GoString_ *arg1 = (_GoString_ *) 0 ; - ptrdiff_t result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_PubkeyIsValid(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoSlice *argp1 ; + GoUint32 result; - arg1 = (_GoString_ *)jarg1; - result = ((arg1)->n); - { - ptrdiff_t * resultptr = (ptrdiff_t *) malloc(sizeof(ptrdiff_t)); - memmove(resultptr, &result, sizeof(ptrdiff_t)); - jresult = resultptr; + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; } + arg1 = *argp1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_secp256k1go_PubkeyIsValid(arg1,arg2); + jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new__GoString_() { - void * jresult ; - _GoString_ *result = 0 ; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_String2Hex(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoString *argp1 ; + GoUint32 result; - result = (_GoString_ *)calloc(1, sizeof(_GoString_)); - jresult = (void *)result; + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_base58_String2Hex(arg1,arg2); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete__GoString_(void * jarg1) { - _GoString_ *arg1 = (_GoString_ *) 0 ; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_ToInt(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoString *argp1 ; + GoUint32 result; - arg1 = (_GoString_ *)jarg1; - free((char *) arg1); + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_base58_Base58_ToInt(arg1,arg2); + jresult = result; + return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_GoInterface_t(void * jarg1, void * jarg2) { - GoInterface *arg1 = (GoInterface *) 0 ; - void *arg2 = (void *) 0 ; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_ToHex(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoString *argp1 ; + GoUint32 result; - arg1 = (GoInterface *)jarg1; - arg2 = (void *)jarg2; - if (arg1) (arg1)->t = arg2; + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_base58_Base58_ToHex(arg1,arg2); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_GoInterface_t(void * jarg1) { - void * jresult ; - GoInterface *arg1 = (GoInterface *) 0 ; - void *result = 0 ; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_Base582Int(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoString *argp1 ; + GoUint32 result; - arg1 = (GoInterface *)jarg1; - result = (void *) ((arg1)->t); - jresult = (void *)result; + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_base58_Base58_Base582Int(arg1,arg2); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_GoInterface_v(void * jarg1, void * jarg2) { - GoInterface *arg1 = (GoInterface *) 0 ; - void *arg2 = (void *) 0 ; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base582Hex(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoString *argp1 ; + GoUint32 result; - arg1 = (GoInterface *)jarg1; - arg2 = (void *)jarg2; - if (arg1) (arg1)->v = arg2; + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_base58_Base582Hex(arg1,arg2); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_GoInterface_v(void * jarg1) { - void * jresult ; - GoInterface *arg1 = (GoInterface *) 0 ; - void *result = 0 ; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_BitHex(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoString *argp1 ; + GoUint32 result; - arg1 = (GoInterface *)jarg1; - result = (void *) ((arg1)->v); - jresult = (void *)result; + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_base58_Base58_BitHex(arg1,arg2); + jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_GoInterface() { - void * jresult ; - GoInterface *result = 0 ; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Int2Base58(long long jarg1, void * jarg2) { + unsigned int jresult ; + GoInt arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; - result = (GoInterface *)calloc(1, sizeof(GoInterface)); - jresult = (void *)result; + arg1 = (GoInt)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_base58_Int2Base58(arg1,arg2); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_GoInterface(void * jarg1) { - GoInterface *arg1 = (GoInterface *) 0 ; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Hex2Base58(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoSlice *argp1 ; + GoUint32 result; - arg1 = (GoInterface *)jarg1; - free((char *) arg1); + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_base58_Hex2Base58(arg1,arg2); + jresult = result; + return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_GoSlice_data(void * jarg1, void * jarg2) { - GoSlice *arg1 = (GoSlice *) 0 ; - void *arg2 = (void *) 0 ; - - arg1 = (GoSlice *)jarg1; - arg2 = (void *)jarg2; - if (arg1) (arg1)->data = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_GoSlice_data(void * jarg1) { - void * jresult ; - GoSlice *arg1 = (GoSlice *) 0 ; - void *result = 0 ; - - arg1 = (GoSlice *)jarg1; - result = (void *) ((arg1)->data); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_GoSlice_len(void * jarg1, long long jarg2) { - GoSlice *arg1 = (GoSlice *) 0 ; - GoInt arg2 ; - - arg1 = (GoSlice *)jarg1; - arg2 = (GoInt)jarg2; - if (arg1) (arg1)->len = arg2; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_GoSlice_len(void * jarg1) { - long long jresult ; - GoSlice *arg1 = (GoSlice *) 0 ; - GoInt result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Hex2Base58String(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoSlice *argp1 ; + GoUint32 result; - arg1 = (GoSlice *)jarg1; - result = (GoInt) ((arg1)->len); + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_base58_Hex2Base58String(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_GoSlice_cap(void * jarg1, long long jarg2) { - GoSlice *arg1 = (GoSlice *) 0 ; - GoInt arg2 ; - - arg1 = (GoSlice *)jarg1; - arg2 = (GoInt)jarg2; - if (arg1) (arg1)->cap = arg2; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_GoSlice_cap(void * jarg1) { - long long jresult ; - GoSlice *arg1 = (GoSlice *) 0 ; - GoInt result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Hex2Base58Str(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoSlice *argp1 ; + GoUint32 result; - arg1 = (GoSlice *)jarg1; - result = (GoInt) ((arg1)->cap); + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_base58_Hex2Base58Str(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_GoSlice() { - void * jresult ; - GoSlice *result = 0 ; - - result = (GoSlice *)calloc(1, sizeof(GoSlice)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_GoSlice(void * jarg1) { - GoSlice *arg1 = (GoSlice *) 0 ; - - arg1 = (GoSlice *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock(void * jarg1, unsigned long long jarg2, void * jarg3, void * jarg4, void * jarg5) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GenerateWallet(void * jarg1, unsigned long long jarg3) { unsigned int jresult ; - Block__Handle arg1 ; - GoUint64 arg2 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - Transactions__Handle arg4 ; - FeeCalculator *arg5 = (FeeCalculator *) 0 ; - Block__Handle *arg6 = (Block__Handle *) 0 ; - Handle temp6 ; + GoString arg1 ; + Options__Handle *arg2 = (Options__Handle *) 0 ; + GoUint64 arg3 ; + Wallet__Handle *arg4 = (Wallet__Handle *) 0 ; + GoString *argp1 ; + Handle temp2 ; + Handle temp4 ; GoUint32 result; { - arg6 = &temp6; + arg2 = &temp2; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + arg4 = &temp4; } - arg2 = (GoUint64)jarg2; - arg3 = (cipher__SHA256 *)jarg3; - { - SWIG_AsVal_long(jarg4, (long*)&arg4); + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; } - arg5 = (FeeCalculator *)jarg5; - result = (GoUint32)SKY_coin_NewBlock(arg1,arg2,(GoUint8_ (*)[32])arg3,arg4,arg5,arg6); + arg1 = *argp1; + arg3 = (GoUint64)jarg3; + result = (GoUint32)SKY_cli_GenerateWallet(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SignedBlock_VerifySignature(void * jarg1, cipher_PubKey* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_MakeAlphanumericSeed(void * jarg1) { unsigned int jresult ; - coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + GoString_ *arg1 = (GoString_ *) 0 ; GoUint32 result; - arg1 = (coin__SignedBlock *)jarg1; - arg2 = (cipher_PubKey*)jarg2; - result = (GoUint32)SKY_coin_SignedBlock_VerifySignature(arg1,(GoUint8_ (*)[33])arg2); + arg1 = (GoString_ *)jarg1; + result = (GoUint32)SKY_cli_MakeAlphanumericSeed(arg1); jresult = result; - { - //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey - free(arg2); - } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewGenesisBlock(void * jarg1, unsigned long long jarg2, unsigned long long jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_NewClient(void * jarg1) { unsigned int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - GoUint64 arg2 ; - GoUint64 arg3 ; - Block__Handle *arg4 = (Block__Handle *) 0 ; - Handle temp4 ; + GoString arg1 ; + WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; + GoString *argp1 ; + Handle temp2 ; GoUint32 result; { - arg4 = &temp4; + arg2 = &temp2; } - arg1 = (cipher__Address *)jarg1; - arg2 = (GoUint64)jarg2; - arg3 = (GoUint64)jarg3; - result = (GoUint32)SKY_coin_NewGenesisBlock(arg1,arg2,arg3,arg4); + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + result = (GoUint32)SKY_webrpc_NewClient(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_HashHeader(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_CSRF(void * jarg1, void * jarg2) { unsigned int jresult ; - Block__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + WebRpcClient__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_coin_Block_HashHeader(arg1,(GoUint8_ (*)[32])arg2); + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_webrpc_Client_CSRF(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_PreHashHeader(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_InjectTransaction(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Block__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + WebRpcClient__Handle arg1 ; + Transaction__Handle arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; GoUint32 result; { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_coin_Block_PreHashHeader(arg1,(GoUint8_ (*)[32])arg2); + { + SWIG_AsVal_long(jarg2, (long*)&arg2); + } + arg3 = (GoString_ *)jarg3; + result = (GoUint32)SKY_webrpc_Client_InjectTransaction(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_Time(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetStatus(void * jarg1) { unsigned int jresult ; - Block__Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; + WebRpcClient__Handle arg1 ; + StatusResult_Handle *arg2 = (StatusResult_Handle *) 0 ; + Handle temp2 ; GoUint32 result; + { + arg2 = &temp2; + } { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_coin_Block_Time(arg1,arg2); + result = (GoUint32)SKY_webrpc_Client_GetStatus(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_Seq(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetTransactionByID(void * jarg1, void * jarg2) { unsigned int jresult ; - Block__Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; + WebRpcClient__Handle arg1 ; + GoString arg2 ; + TransactionResult_Handle *arg3 = (TransactionResult_Handle *) 0 ; + GoString *argp2 ; + Handle temp3 ; GoUint32 result; + { + arg3 = &temp3; + } { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_coin_Block_Seq(arg1,arg2); + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_webrpc_Client_GetTransactionByID(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_HashBody(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetAddressUxOuts(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Block__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + WebRpcClient__Handle arg1 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp2 ; GoUint32 result; { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_coin_Block_HashBody(arg1,(GoUint8_ (*)[32])arg2); + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_webrpc_Client_GetAddressUxOuts(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_Size(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetBlocks(void * jarg1, unsigned long long jarg2, unsigned long long jarg3, void * jarg4) { unsigned int jresult ; - Block__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; + WebRpcClient__Handle arg1 ; + GoUint64 arg2 ; + GoUint64 arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; GoUint32 result; { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_coin_Block_Size(arg1,arg2); + arg2 = (GoUint64)jarg2; + arg3 = (GoUint64)jarg3; + arg4 = (coin__UxArray *)jarg4; + result = (GoUint32)SKY_webrpc_Client_GetBlocks(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_String(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetBlocksBySeq(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Block__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; + WebRpcClient__Handle arg1 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp2 ; GoUint32 result; { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_coin_Block_String(arg1,arg2); + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_webrpc_Client_GetBlocksBySeq(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_GetTransaction(void * jarg1, void * jarg2, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetLastBlocks(void * jarg1, unsigned long long jarg2, void * jarg3) { unsigned int jresult ; - Block__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - Transaction__Handle *arg3 = (Transaction__Handle *) 0 ; - GoUint8 *arg4 = (GoUint8 *) 0 ; - Handle temp3 ; + WebRpcClient__Handle arg1 ; + GoUint64 arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; GoUint32 result; - { - arg3 = &temp3; - } { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (cipher__SHA256 *)jarg2; - arg4 = (GoUint8 *)jarg4; - result = (GoUint32)SKY_coin_Block_GetTransaction(arg1,(GoUint8_ (*)[32])arg2,arg3,arg4); + arg2 = (GoUint64)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_webrpc_Client_GetLastBlocks(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlockHeader(void * jarg1, void * jarg2, unsigned long long jarg3, unsigned long long jarg4, void * jarg5, void * jarg6) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_browser_Open(void * jarg1) { unsigned int jresult ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoUint64 arg3 ; - GoUint64 arg4 ; - BlockBody__Handle arg5 ; - coin__BlockHeader *arg6 = (coin__BlockHeader *) 0 ; + GoString arg1 ; + GoString *argp1 ; GoUint32 result; - arg1 = (coin__BlockHeader *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - arg3 = (GoUint64)jarg3; - arg4 = (GoUint64)jarg4; - { - SWIG_AsVal_long(jarg5, (long*)&arg5); + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; } - arg6 = (coin__BlockHeader *)jarg6; - result = (GoUint32)SKY_coin_NewBlockHeader(arg1,(GoUint8_ (*)[32])arg2,arg3,arg4,arg5,arg6); + arg1 = *argp1; + result = (GoUint32)SKY_browser_Open(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockHeader_Hash(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_iputil_LocalhostIP(void * jarg1) { unsigned int jresult ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoString_ *arg1 = (GoString_ *) 0 ; GoUint32 result; - arg1 = (coin__BlockHeader *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_coin_BlockHeader_Hash(arg1,(GoUint8_ (*)[32])arg2); + arg1 = (GoString_ *)jarg1; + result = (GoUint32)SKY_iputil_LocalhostIP(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockHeader_Bytes(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_iputil_IsLocalhost(void * jarg1, void * jarg2) { unsigned int jresult ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoString arg1 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoString *argp1 ; GoUint32 result; - arg1 = (coin__BlockHeader *)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_coin_BlockHeader_Bytes(arg1,arg2); + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_iputil_IsLocalhost(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockHeader_String(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_iputil_SplitAddr(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoString arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; + GoUint16 *arg3 = (GoUint16 *) 0 ; + GoString *argp1 ; GoUint32 result; - arg1 = (coin__BlockHeader *)jarg1; + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_coin_BlockHeader_String(arg1,arg2); + arg3 = (GoUint16 *)jarg3; + result = (GoUint32)SKY_iputil_SplitAddr(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Hash(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encoder_StructField_String(void * jarg1, void * jarg2) { unsigned int jresult ; - BlockBody__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + encoder__StructField *arg1 = (encoder__StructField *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_coin_BlockBody_Hash(arg1,(GoUint8_ (*)[32])arg2); + arg1 = (encoder__StructField *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_encoder_StructField_String(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Size(void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encoder_ParseFields(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - BlockBody__Handle *arg1 = (BlockBody__Handle *) 0 ; - GoInt *arg2 = (GoInt *) 0 ; - Handle temp1 ; + GoSlice arg1 ; + GoSlice arg2 ; + GoStringMap_ *arg3 = (GoStringMap_ *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; GoUint32 result; - { - arg1 = &temp1; + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; } - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_coin_BlockBody_Size(arg1,arg2); + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (GoStringMap_ *)jarg3; + result = (GoUint32)SKY_encoder_ParseFields(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Bytes(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_SumSHA256(void * jarg1, void * jarg2) { unsigned int jresult ; - BlockBody__Handle arg1 ; + GoSlice arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; GoUint32 result; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; } + arg1 = *argp1; arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_coin_BlockBody_Bytes(arg1,arg2); + result = (GoUint32)SKY_secp256k1_SumSHA256(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_CreateUnspents(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_RandByte(long long jarg1, void * jarg2) { unsigned int jresult ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - Transaction__Handle arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoInt arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoUint32 result; - arg1 = (coin__BlockHeader *)jarg1; - { - SWIG_AsVal_long(jarg2, (long*)&arg2); - } - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_coin_CreateUnspents(arg1,arg2,arg3); + arg1 = (GoInt)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1_RandByte(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_CreateUnspent(void * jarg1, void * jarg2, long long jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GenerateAddressesInFile(void * jarg1, unsigned long long jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - Transaction__Handle arg2 ; - GoInt arg3 ; - coin__UxOut *arg4 = (coin__UxOut *) 0 ; + GoString arg1 ; + GoUint64 arg2 ; + PasswordReader__Handle arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + GoString *argp1 ; GoUint32 result; - arg1 = (coin__BlockHeader *)jarg1; + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64)jarg2; { - SWIG_AsVal_long(jarg2, (long*)&arg2); + SWIG_AsVal_long(jarg3, (long*)&arg3); } - arg3 = (GoInt)jarg3; - arg4 = (coin__UxOut *)jarg4; - result = (GoUint32)SKY_coin_CreateUnspent(arg1,arg2,arg3,arg4); + arg4 = (coin__UxArray *)jarg4; + result = (GoUint32)SKY_cli_GenerateAddressesInFile(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetBlockObject(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_FormatAddressesAsJSON(void * jarg1, void * jarg2) { unsigned int jresult ; - Block__Handle arg1 ; - coin__Block **arg2 = (coin__Block **) 0 ; + GoSlice arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoSlice *argp1 ; GoUint32 result; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; } - arg2 = (coin__Block **)jarg2; - result = (GoUint32)SKY_coin_GetBlockObject(arg1,arg2); + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cli_FormatAddressesAsJSON(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetBlockBody(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_FormatAddressesAsJoinedArray(void * jarg1, void * jarg2) { unsigned int jresult ; - Block__Handle arg1 ; - BlockBody__Handle *arg2 = (BlockBody__Handle *) 0 ; - Handle temp2 ; + GoSlice arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoSlice *argp1 ; GoUint32 result; - { - arg2 = &temp2; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; } - result = (GoUint32)SKY_coin_GetBlockBody(arg1,arg2); + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cli_FormatAddressesAsJoinedArray(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewEmptyBlock(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_AddressesToStrings(void * jarg1, void * jarg2) { unsigned int jresult ; - Transactions__Handle arg1 ; - Block__Handle *arg2 = (Block__Handle *) 0 ; - Handle temp2 ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; GoUint32 result; - { - arg2 = &temp2; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; } - result = (GoUint32)SKY_coin_NewEmptyBlock(arg1,arg2); + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_cli_AddressesToStrings(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_NewDefaultMnemomic(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddUint64(unsigned long long jarg1, unsigned long long jarg2, void * jarg3) { unsigned int jresult ; - GoString_ *arg1 = (GoString_ *) 0 ; + GoUint64 arg1 ; + GoUint64 arg2 ; + GoUint64 *arg3 = (GoUint64 *) 0 ; GoUint32 result; - arg1 = (GoString_ *)jarg1; - result = (GoUint32)SKY_bip39_NewDefaultMnemomic(arg1); + arg1 = (GoUint64)jarg1; + arg2 = (GoUint64)jarg2; + arg3 = (GoUint64 *)jarg3; + result = (GoUint32)SKY_coin_AddUint64(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_NewEntropy(long long jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Uint64ToInt64(unsigned long long jarg1, void * jarg2) { unsigned int jresult ; - GoInt arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint64 arg1 ; + GoInt64 *arg2 = (GoInt64 *) 0 ; GoUint32 result; - arg1 = (GoInt)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_bip39_NewEntropy(arg1,arg2); + arg1 = (GoUint64)jarg1; + arg2 = (GoInt64 *)jarg2; + result = (GoUint32)SKY_coin_Uint64ToInt64(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_NewMnemonic(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Int64ToUint64(long long jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoSlice *argp1 ; + GoInt64 arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_bip39_NewMnemonic(arg1,arg2); + arg1 = (GoInt64)jarg1; + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_coin_Int64ToUint64(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_MnemonicToByteArray(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Len(void * jarg1, void * jarg2) { unsigned int jresult ; - GoString arg1 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoInt *arg2 = (GoInt *) 0 ; + GoUint32 result; + + arg1 = (coin__UxArray *)jarg1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_cipher_PubKeySlice_Len(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Less(void * jarg1, long long jarg2, long long jarg3, void * jarg4) { + unsigned int jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoInt arg2 ; + GoInt arg3 ; + GoUint8 *arg4 = (GoUint8 *) 0 ; + GoUint32 result; + + arg1 = (coin__UxArray *)jarg1; + arg2 = (GoInt)jarg2; + arg3 = (GoInt)jarg3; + arg4 = (GoUint8 *)jarg4; + result = (GoUint32)SKY_cipher_PubKeySlice_Less(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Swap(void * jarg1, long long jarg2, long long jarg3) { + unsigned int jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoInt arg2 ; + GoInt arg3 ; + GoUint32 result; + + arg1 = (coin__UxArray *)jarg1; + arg2 = (GoInt)jarg2; + arg3 = (GoInt)jarg3; + result = (GoUint32)SKY_cipher_PubKeySlice_Swap(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_RandByte(long long jarg1, void * jarg2) { + unsigned int jresult ; + GoInt arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoString *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; + arg1 = (GoInt)jarg1; arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_bip39_MnemonicToByteArray(arg1,arg2); + result = (GoUint32)SKY_cipher_RandByte(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_IsMnemonicValid(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewPubKey(void * jarg1, cipher_PubKey* jarg2) { unsigned int jresult ; - GoString arg1 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoString *argp1 ; + GoSlice arg1 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + GoSlice *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_bip39_IsMnemonicValid(arg1,arg2); + arg2 = (cipher_PubKey*)jarg2; + result = (GoUint32)SKY_cipher_NewPubKey(arg1,(GoUint8_ (*)[33])arg2); jresult = result; + { + //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey + free(arg2); + } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewClient(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromHex(void * jarg1, cipher_PubKey* jarg2) { unsigned int jresult ; GoString arg1 ; - Client__Handle *arg2 = (Client__Handle *) 0 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; GoString *argp1 ; GoUint32 result; @@ -2874,598 +4401,515 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewClient(void * jarg return 0; } arg1 = *argp1; - arg2 = (Client__Handle *)jarg2; - result = (GoUint32)SKY_api_NewClient(arg1,arg2); + arg2 = (cipher_PubKey*)jarg2; + result = (GoUint32)SKY_cipher_PubKeyFromHex(arg1,(GoUint8_ (*)[33])arg2); jresult = result; + { + //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey + free(arg2); + } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CSRF(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSecKey(void * jarg1, cipher_PubKey* jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; GoUint32 result; + arg1 = (cipher__SecKey *)jarg1; + arg2 = (cipher_PubKey*)jarg2; + result = (GoUint32)SKY_cipher_PubKeyFromSecKey((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[33])arg2); + jresult = result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey + free(arg2); } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_api_Client_CSRF(arg1,arg2); - jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Version(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSig(void * jarg1, void * jarg2, cipher_PubKey* jarg3) { unsigned int jresult ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; + cipher__Sig *arg1 = (cipher__Sig *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + cipher__PubKey *arg3 = (cipher__PubKey *) 0 ; GoUint32 result; + arg1 = (cipher__Sig *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + arg3 = (cipher_PubKey*)jarg3; + result = (GoUint32)SKY_cipher_PubKeyFromSig((GoUint8_ (*)[65])arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[33])arg3); + jresult = result; { - arg2 = &temp2; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); + //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey + free(arg3); } - result = (GoUint32)SKY_api_Client_Version(arg1,arg2); - jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Outputs(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_Verify(cipher_PubKey* jarg1) { unsigned int jresult ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; GoUint32 result; + arg1 = (cipher_PubKey*)jarg1; + result = (GoUint32)SKY_cipher_PubKey_Verify((GoUint8_ (*)[33])arg1); + jresult = result; { - arg2 = &temp2; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); + //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey + free(arg1); } - result = (GoUint32)SKY_api_Client_Outputs(arg1,arg2); - jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_OutputsForAddresses(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_Hex(cipher_PubKey* jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - GoSlice arg2 ; - Handle *arg3 = (Handle *) 0 ; - GoSlice *argp2 ; - Handle temp3 ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; + arg1 = (cipher_PubKey*)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cipher_PubKey_Hex((GoUint8_ (*)[33])arg1,arg2); + jresult = result; { - arg3 = &temp3; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; + //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey + free(arg1); } - arg2 = *argp2; - result = (GoUint32)SKY_api_Client_OutputsForAddresses(arg1,arg2,arg3); - jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_OutputsForHashes(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_ToAddressHash(cipher_PubKey* jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - GoSlice arg2 ; - Handle *arg3 = (Handle *) 0 ; - GoSlice *argp2 ; - Handle temp3 ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__Ripemd160 *arg2 = (cipher__Ripemd160 *) 0 ; GoUint32 result; + arg1 = (cipher_PubKey*)jarg1; + arg2 = (cipher__Ripemd160 *)jarg2; + result = (GoUint32)SKY_cipher_PubKey_ToAddressHash((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[20])arg2); + jresult = result; { - arg3 = &temp3; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; + //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey + free(arg1); } - arg2 = *argp2; - result = (GoUint32)SKY_api_Client_OutputsForHashes(arg1,arg2,arg3); - jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CoinSupply(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewSecKey(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; + GoSlice arg1 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + GoSlice *argp1 ; GoUint32 result; - { - arg2 = &temp2; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; } - result = (GoUint32)SKY_api_Client_CoinSupply(arg1,arg2); + arg1 = *argp1; + arg2 = (cipher__SecKey *)jarg2; + result = (GoUint32)SKY_cipher_NewSecKey(arg1,(GoUint8_ (*)[32])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockByHash(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKeyFromHex(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - GoString *argp2 ; - Handle temp3 ; + GoString arg1 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + GoString *argp1 ; GoUint32 result; - { - arg3 = &temp3; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { + argp1 = (GoString *)jarg1; + if (!argp1) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } - arg2 = *argp2; - result = (GoUint32)SKY_api_Client_BlockByHash(arg1,arg2,arg3); + arg1 = *argp1; + arg2 = (cipher__SecKey *)jarg2; + result = (GoUint32)SKY_cipher_SecKeyFromHex(arg1,(GoUint8_ (*)[32])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockBySeq(void * jarg1, unsigned long long jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKey_Verify(void * jarg1) { unsigned int jresult ; - Client__Handle arg1 ; - GoUint64 arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; GoUint32 result; - { - arg3 = &temp3; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoUint64)jarg2; - result = (GoUint32)SKY_api_Client_BlockBySeq(arg1,arg2,arg3); + arg1 = (cipher__SecKey *)jarg1; + result = (GoUint32)SKY_cipher_SecKey_Verify((GoUint8_ (*)[32])arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Blocks(void * jarg1, unsigned long long jarg2, unsigned long long jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKey_Hex(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - GoUint64 arg2 ; - GoUint64 arg3 ; - Handle *arg4 = (Handle *) 0 ; - Handle temp4 ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; - { - arg4 = &temp4; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoUint64)jarg2; - arg3 = (GoUint64)jarg3; - result = (GoUint32)SKY_api_Client_Blocks(arg1,arg2,arg3,arg4); + arg1 = (cipher__SecKey *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cipher_SecKey_Hex((GoUint8_ (*)[32])arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_LastBlocks(void * jarg1, unsigned long long jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_ECDH(cipher_PubKey* jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Client__Handle arg1 ; - GoUint64 arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; GoUint32 result; + arg1 = (cipher_PubKey*)jarg1; + arg2 = (cipher__SecKey *)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_cipher_ECDH((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2,arg3); + jresult = result; { - arg3 = &temp3; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); + //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey + free(arg1); } - arg2 = (GoUint64)jarg2; - result = (GoUint32)SKY_api_Client_LastBlocks(arg1,arg2,arg3); - jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockchainMetadata(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewSig(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; + GoSlice arg1 ; + cipher__Sig *arg2 = (cipher__Sig *) 0 ; + GoSlice *argp1 ; GoUint32 result; - { - arg2 = &temp2; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; } - result = (GoUint32)SKY_api_Client_BlockchainMetadata(arg1,arg2); + arg1 = *argp1; + arg2 = (cipher__Sig *)jarg2; + result = (GoUint32)SKY_cipher_NewSig(arg1,(GoUint8_ (*)[65])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockchainProgress(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SigFromHex(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; + GoString arg1 ; + cipher__Sig *arg2 = (cipher__Sig *) 0 ; + GoString *argp1 ; GoUint32 result; - { - arg2 = &temp2; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; } - result = (GoUint32)SKY_api_Client_BlockchainProgress(arg1,arg2); + arg1 = *argp1; + arg2 = (cipher__Sig *)jarg2; + result = (GoUint32)SKY_cipher_SigFromHex(arg1,(GoUint8_ (*)[65])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Balance(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Sig_Hex(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - GoSlice arg2 ; - wallet__BalancePair *arg3 = (wallet__BalancePair *) 0 ; - GoSlice *argp2 ; + cipher__Sig *arg1 = (cipher__Sig *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (wallet__BalancePair *)jarg3; - result = (GoUint32)SKY_api_Client_Balance(arg1,arg2,arg3); + arg1 = (cipher__Sig *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cipher_Sig_Hex((GoUint8_ (*)[65])arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UxOut(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SignHash(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - GoString *argp2 ; - Handle temp3 ; + cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + cipher__Sig *arg3 = (cipher__Sig *) 0 ; GoUint32 result; - { - arg3 = &temp3; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_api_Client_UxOut(arg1,arg2,arg3); + arg1 = (cipher__SHA256 *)jarg1; + arg2 = (cipher__SecKey *)jarg2; + arg3 = (cipher__Sig *)jarg3; + result = (GoUint32)SKY_cipher_SignHash((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[65])arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressUxOuts(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_ChkSig(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - GoString *argp2 ; - Handle temp3 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + cipher__Sig *arg3 = (cipher__Sig *) 0 ; GoUint32 result; - { - arg3 = &temp3; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_api_Client_AddressUxOuts(arg1,arg2,arg3); + arg1 = (cipher__Address *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + arg3 = (cipher__Sig *)jarg3; + result = (GoUint32)SKY_cipher_ChkSig(arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[65])arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Wallet(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignedHash(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - WalletResponse__Handle *arg3 = (WalletResponse__Handle *) 0 ; - GoString *argp2 ; + cipher__Sig *arg1 = (cipher__Sig *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; GoUint32 result; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - arg3 = (WalletResponse__Handle *)jarg3; - result = (GoUint32)SKY_api_Client_Wallet(arg1,arg2,arg3); + arg1 = (cipher__Sig *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_cipher_VerifySignedHash((GoUint8_ (*)[65])arg1,(GoUint8_ (*)[32])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Wallets(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignature(cipher_PubKey* jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Client__Handle arg1 ; - Wallets__Handle *arg2 = (Wallets__Handle *) 0 ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__Sig *arg2 = (cipher__Sig *) 0 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; GoUint32 result; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (Wallets__Handle *)jarg2; - result = (GoUint32)SKY_api_Client_Wallets(arg1,arg2); + arg1 = (cipher_PubKey*)jarg1; + arg2 = (cipher__Sig *)jarg2; + arg3 = (cipher__SHA256 *)jarg3; + result = (GoUint32)SKY_cipher_VerifySignature((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[65])arg2,(GoUint8_ (*)[32])arg3); jresult = result; + { + //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey + free(arg1); + } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateUnencryptedWallet(void * jarg1, void * jarg2, void * jarg3, long long jarg4, void * jarg5) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPair(void * jarg1, cipher_PubKey* jarg2, void * jarg3) { unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - GoInt arg4 ; - WalletResponse__Handle *arg5 = (WalletResponse__Handle *) 0 ; - GoString *argp2 ; - GoString *argp3 ; + GoSlice arg1 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + cipher__SecKey *arg3 = (cipher__SecKey *) 0 ; + GoSlice *argp1 ; GoUint32 result; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } - arg3 = *argp3; - arg4 = (GoInt)jarg4; - arg5 = (WalletResponse__Handle *)jarg5; - result = (GoUint32)SKY_api_Client_CreateUnencryptedWallet(arg1,arg2,arg3,arg4,arg5); + arg1 = *argp1; + arg2 = (cipher_PubKey*)jarg2; + arg3 = (cipher__SecKey *)jarg3; + result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPair(arg1,(GoUint8_ (*)[33])arg2,(GoUint8_ (*)[32])arg3); jresult = result; + { + //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey + free(arg2); + } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateEncryptedWallet(void * jarg1, void * jarg2, void * jarg3, void * jarg4, long long jarg5, void * jarg6) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DeterministicKeyPairIterator(void * jarg1, void * jarg2, cipher_PubKey* jarg3, void * jarg4) { unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - GoString arg4 ; - GoInt arg5 ; - WalletResponse__Handle *arg6 = (WalletResponse__Handle *) 0 ; - GoString *argp2 ; - GoString *argp3 ; - GoString *argp4 ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + cipher__PubKey *arg3 = (cipher__PubKey *) 0 ; + cipher__SecKey *arg4 = (cipher__SecKey *) 0 ; + GoSlice *argp1 ; GoUint32 result; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + arg3 = (cipher_PubKey*)jarg3; + arg4 = (cipher__SecKey *)jarg4; + result = (GoUint32)SKY_cipher_DeterministicKeyPairIterator(arg1,arg2,(GoUint8_ (*)[33])arg3,(GoUint8_ (*)[32])arg4); + jresult = result; + { + //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey + free(arg3); } - arg3 = *argp3; - argp4 = (GoString *)jarg4; - if (!argp4) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairs(void * jarg1, long long jarg2, void * jarg3) { + unsigned int jresult ; + GoSlice arg1 ; + GoInt arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } - arg4 = *argp4; - arg5 = (GoInt)jarg5; - arg6 = (WalletResponse__Handle *)jarg6; - result = (GoUint32)SKY_api_Client_CreateEncryptedWallet(arg1,arg2,arg3,arg4,arg5,arg6); + arg1 = *argp1; + arg2 = (GoInt)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPairs(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NewWalletAddress(void * jarg1, void * jarg2, long long jarg3, void * jarg4, void * jarg5) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairsSeed(void * jarg1, long long jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - GoInt arg3 ; - GoString arg4 ; - Strings__Handle *arg5 = (Strings__Handle *) 0 ; - GoString *argp2 ; - GoString *argp4 ; + GoSlice arg1 ; + GoInt arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; GoUint32 result; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - arg3 = (GoInt)jarg3; - argp4 = (GoString *)jarg4; - if (!argp4) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } - arg4 = *argp4; - arg5 = (Strings__Handle *)jarg5; - result = (GoUint32)SKY_api_Client_NewWalletAddress(arg1,arg2,arg3,arg4,arg5); + arg1 = *argp1; + arg2 = (GoInt)jarg2; + arg3 = (coin__UxArray *)jarg3; + arg4 = (coin__UxArray *)jarg4; + result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPairsSeed(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_WalletBalance(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_TestSecKey(void * jarg1) { unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - wallet__BalancePair *arg3 = (wallet__BalancePair *) 0 ; - GoString *argp2 ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; GoUint32 result; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - arg3 = (wallet__BalancePair *)jarg3; - result = (GoUint32)SKY_api_Client_WalletBalance(arg1,arg2,arg3); + arg1 = (cipher__SecKey *)jarg1; + result = (GoUint32)SKY_cipher_TestSecKey((GoUint8_ (*)[32])arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Spend(void * jarg1, void * jarg2, void * jarg3, unsigned long long jarg4, void * jarg5) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_TestSecKeyHash(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - GoUint64 arg4 ; - GoString arg5 ; - SpendResult_Handle *arg6 = (SpendResult_Handle *) 0 ; - GoString *argp2 ; - GoString *argp3 ; - GoString *argp5 ; - Handle temp6 ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint32 result; + + arg1 = (cipher__SecKey *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_cipher_TestSecKeyHash((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateKeyPair(cipher_PubKey* jarg1, void * jarg2) { + unsigned int jresult ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; GoUint32 result; + arg1 = (cipher_PubKey*)jarg1; + arg2 = (cipher__SecKey *)jarg2; + result = (GoUint32)SKY_cipher_GenerateKeyPair((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2); + jresult = result; { - arg6 = &temp6; + //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey + free(arg1); } + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Create() { + unsigned int jresult ; + Signature_Handle *arg1 = (Signature_Handle *) 0 ; + Handle temp1 ; + GoUint32 result; + { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; - arg4 = (GoUint64)jarg4; - argp5 = (GoString *)jarg5; - if (!argp5) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; + arg1 = &temp1; } - arg5 = *argp5; - result = (GoUint32)SKY_api_Client_Spend(arg1,arg2,arg3,arg4,arg5,arg6); + result = (GoUint32)SKY_secp256k1go_Signature_Create(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateTransaction(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_GetR(void * jarg1) { unsigned int jresult ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - CreateTransactionResponse__Handle *arg3 = (CreateTransactionResponse__Handle *) 0 ; + Signature_Handle arg1 ; + Number_Handle *arg2 = (Number_Handle *) 0 ; Handle temp2 ; - Handle temp3 ; GoUint32 result; { arg2 = &temp2; } - { - arg3 = &temp3; - } { SWIG_AsVal_long(jarg1, (long*)&arg1); } - result = (GoUint32)SKY_api_Client_CreateTransaction(arg1,arg2,arg3); + result = (GoUint32)SKY_secp256k1go_Signature_GetR(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UpdateWallet(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_GetS(void * jarg1) { unsigned int jresult ; - Client__Handle arg1 ; + Signature_Handle arg1 ; + Number_Handle *arg2 = (Number_Handle *) 0 ; + Handle temp2 ; + GoUint32 result; + + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_secp256k1go_Signature_GetS(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Print(void * jarg1, void * jarg2) { + unsigned int jresult ; + Signature_Handle arg1 ; GoString arg2 ; - GoString arg3 ; GoString *argp2 ; - GoString *argp3 ; GoUint32 result; { @@ -3477,194 +4921,184 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UpdateWallet(v return 0; } arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; - result = (GoUint32)SKY_api_Client_UpdateWallet(arg1,arg2,arg3); + result = (GoUint32)SKY_secp256k1go_Signature_Print(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_WalletFolderName(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Verify(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; + Signature_Handle arg1 ; + secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; + Number_Handle arg3 ; + GoUint8 *arg4 = (GoUint8 *) 0 ; GoUint32 result; { - arg2 = &temp2; + SWIG_AsVal_long(jarg1, (long*)&arg1); } + arg2 = (secp256k1go__XY *)jarg2; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + SWIG_AsVal_long(jarg3, (long*)&arg3); } - result = (GoUint32)SKY_api_Client_WalletFolderName(arg1,arg2); + arg4 = (GoUint8 *)jarg4; + result = (GoUint32)SKY_secp256k1go_Signature_Verify(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NewSeed(void * jarg1, long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Recover(void * jarg1, void * jarg2, void * jarg3, long long jarg4, void * jarg5) { unsigned int jresult ; - Client__Handle arg1 ; - GoInt arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; + Signature_Handle arg1 ; + secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; + Number_Handle arg3 ; + GoInt arg4 ; + GoUint8 *arg5 = (GoUint8 *) 0 ; GoUint32 result; { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (GoInt)jarg2; - arg3 = (GoString_ *)jarg3; - result = (GoUint32)SKY_api_Client_NewSeed(arg1,arg2,arg3); + arg2 = (secp256k1go__XY *)jarg2; + { + SWIG_AsVal_long(jarg3, (long*)&arg3); + } + arg4 = (GoInt)jarg4; + arg5 = (GoUint8 *)jarg5; + result = (GoUint32)SKY_secp256k1go_Signature_Recover(arg1,arg2,arg3,arg4,arg5); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_GetWalletSeed(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Sign(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) { unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - GoString_ *arg4 = (GoString_ *) 0 ; - GoString *argp2 ; - GoString *argp3 ; + Signature_Handle arg1 ; + Number_Handle arg2 ; + Number_Handle arg3 ; + Number_Handle arg4 ; + GoInt *arg5 = (GoInt *) 0 ; + GoInt *arg6 = (GoInt *) 0 ; GoUint32 result; { SWIG_AsVal_long(jarg1, (long*)&arg1); } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; + { + SWIG_AsVal_long(jarg2, (long*)&arg2); } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; + { + SWIG_AsVal_long(jarg3, (long*)&arg3); } - arg3 = *argp3; - arg4 = (GoString_ *)jarg4; - result = (GoUint32)SKY_api_Client_GetWalletSeed(arg1,arg2,arg3,arg4); + { + SWIG_AsVal_long(jarg4, (long*)&arg4); + } + arg5 = (GoInt *)jarg5; + arg6 = (GoInt *)jarg6; + result = (GoUint32)SKY_secp256k1go_Signature_Sign(arg1,arg2,arg3,arg4,arg5,arg6); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkConnection(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_ParseBytes(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - GoString *argp2 ; - Handle temp3 ; + Signature_Handle arg1 ; + GoSlice arg2 ; + GoSlice *argp2 ; GoUint32 result; - { - arg3 = &temp3; - } { SWIG_AsVal_long(jarg1, (long*)&arg1); } - argp2 = (GoString *)jarg2; + argp2 = (GoSlice *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg2 = *argp2; - result = (GoUint32)SKY_api_Client_NetworkConnection(arg1,arg2,arg3); + result = (GoUint32)SKY_secp256k1go_Signature_ParseBytes(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkConnections(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Bytes(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; + Signature_Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoUint32 result; - { - arg2 = &temp2; - } { SWIG_AsVal_long(jarg1, (long*)&arg1); } - result = (GoUint32)SKY_api_Client_NetworkConnections(arg1,arg2); + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1go_Signature_Bytes(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkDefaultConnections(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_App_Run(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; + App__Handle arg1 ; + GoString arg2 ; + GoString *argp2 ; GoUint32 result; - { - arg2 = &temp2; - } { SWIG_AsVal_long(jarg1, (long*)&arg1); } - result = (GoUint32)SKY_api_Client_NetworkDefaultConnections(arg1,arg2); + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_cli_App_Run(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkTrustedConnections(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_GetCoin(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; + Config__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; - { - arg2 = &temp2; - } { SWIG_AsVal_long(jarg1, (long*)&arg1); } - result = (GoUint32)SKY_api_Client_NetworkTrustedConnections(arg1,arg2); + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cli_Config_GetCoin(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkExchangeableConnections(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_GetRPCAddress(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; + Config__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; - { - arg2 = &temp2; - } { SWIG_AsVal_long(jarg1, (long*)&arg1); } - result = (GoUint32)SKY_api_Client_NetworkExchangeableConnections(arg1,arg2); + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cli_Config_GetRPCAddress(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_PendingTransactions(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_RPCClientFromApp(void * jarg1) { unsigned int jresult ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; + App__Handle arg1 ; + WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; Handle temp2 ; GoUint32 result; @@ -3674,987 +5108,849 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_PendingTransac { SWIG_AsVal_long(jarg1, (long*)&arg1); } - result = (GoUint32)SKY_api_Client_PendingTransactions(arg1,arg2); + result = (GoUint32)SKY_cli_RPCClientFromApp(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Transaction(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Getenv(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - GoString *argp2 ; - Handle temp3 ; + GoString arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString *argp1 ; GoUint32 result; - { - arg3 = &temp3; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { + argp1 = (GoString *)jarg1; + if (!argp1) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } - arg2 = *argp2; - result = (GoUint32)SKY_api_Client_Transaction(arg1,arg2,arg3); + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cli_Getenv(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Transactions(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Setenv(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - GoSlice arg2 ; - Handle *arg3 = (Handle *) 0 ; - GoSlice *argp2 ; - Handle temp3 ; + GoString arg1 ; + GoString arg2 ; + GoString *argp1 ; + GoString *argp2 ; GoUint32 result; - { - arg3 = &temp3; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; } - argp2 = (GoSlice *)jarg2; + arg1 = *argp1; + argp2 = (GoString *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg2 = *argp2; - result = (GoUint32)SKY_api_Client_Transactions(arg1,arg2,arg3); + result = (GoUint32)SKY_cli_Setenv(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_ConfirmedTransactions(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_poly1305_Verify(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; - Client__Handle arg1 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; GoSlice arg2 ; - Handle *arg3 = (Handle *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoUint8 *arg4 = (GoUint8 *) 0 ; GoSlice *argp2 ; - Handle temp3 ; GoUint32 result; - { - arg3 = &temp3; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } + arg1 = (coin__UxArray *)jarg1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg2 = *argp2; - result = (GoUint32)SKY_api_Client_ConfirmedTransactions(arg1,arg2,arg3); + arg3 = (coin__UxArray *)jarg3; + arg4 = (GoUint8 *)jarg4; + result = (GoUint32)SKY_poly1305_Verify(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UnconfirmedTransactions(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewBalance(unsigned long long jarg1, unsigned long long jarg2, void * jarg3) { unsigned int jresult ; - Client__Handle arg1 ; - GoSlice arg2 ; - Handle *arg3 = (Handle *) 0 ; - GoSlice *argp2 ; - Handle temp3 ; + GoUint64 arg1 ; + GoUint64 arg2 ; + wallet__Balance *arg3 = (wallet__Balance *) 0 ; GoUint32 result; - { - arg3 = &temp3; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_api_Client_UnconfirmedTransactions(arg1,arg2,arg3); + arg1 = (GoUint64)jarg1; + arg2 = (GoUint64)jarg2; + arg3 = (wallet__Balance *)jarg3; + result = (GoUint32)SKY_wallet_NewBalance(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_InjectTransaction(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewBalanceFromUxOut(unsigned long long jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Client__Handle arg1 ; - Transaction__Handle arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; + GoUint64 arg1 ; + coin__UxOut *arg2 = (coin__UxOut *) 0 ; + wallet__Balance *arg3 = (wallet__Balance *) 0 ; GoUint32 result; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - { - SWIG_AsVal_long(jarg2, (long*)&arg2); - } - arg3 = (GoString_ *)jarg3; - result = (GoUint32)SKY_api_Client_InjectTransaction(arg1,arg2,arg3); + arg1 = (GoUint64)jarg1; + arg2 = (coin__UxOut *)jarg2; + arg3 = (wallet__Balance *)jarg3; + result = (GoUint32)SKY_wallet_NewBalanceFromUxOut(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_ResendUnconfirmedTransactions(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Balance_Add(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + wallet__Balance *arg2 = (wallet__Balance *) 0 ; + wallet__Balance *arg3 = (wallet__Balance *) 0 ; GoUint32 result; - { - arg2 = &temp2; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_ResendUnconfirmedTransactions(arg1,arg2); + arg1 = (wallet__Balance *)jarg1; + arg2 = (wallet__Balance *)jarg2; + arg3 = (wallet__Balance *)jarg3; + result = (GoUint32)SKY_wallet_Balance_Add(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_RawTransaction(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Balance_Sub(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - GoString *argp2 ; + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + wallet__Balance *arg2 = (wallet__Balance *) 0 ; + wallet__Balance *arg3 = (wallet__Balance *) 0 ; GoUint32 result; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - arg3 = (GoString_ *)jarg3; - result = (GoUint32)SKY_api_Client_RawTransaction(arg1,arg2,arg3); + arg1 = (wallet__Balance *)jarg1; + arg2 = (wallet__Balance *)jarg2; + arg3 = (wallet__Balance *)jarg3; + result = (GoUint32)SKY_wallet_Balance_Sub(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressTransactions(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Balance_Equals(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - GoString *argp2 ; - Handle temp3 ; + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + wallet__Balance *arg2 = (wallet__Balance *) 0 ; + GoUint8 *arg3 = (GoUint8 *) 0 ; GoUint32 result; - { - arg3 = &temp3; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_api_Client_AddressTransactions(arg1,arg2,arg3); + arg1 = (wallet__Balance *)jarg1; + arg2 = (wallet__Balance *)jarg2; + arg3 = (GoUint8 *)jarg3; + result = (GoUint32)SKY_wallet_Balance_Equals(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Richlist(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Balance_IsZero(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - api__RichlistParams *arg2 = (api__RichlistParams *) 0 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; GoUint32 result; - { - arg3 = &temp3; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (api__RichlistParams *)jarg2; - result = (GoUint32)SKY_api_Client_Richlist(arg1,arg2,arg3); + arg1 = (wallet__Balance *)jarg1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_wallet_Balance_IsZero(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressCount(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_utc_UnixNow(void * jarg1) { unsigned int jresult ; - Client__Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; + GoInt64 *arg1 = (GoInt64 *) 0 ; GoUint32 result; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_api_Client_AddressCount(arg1,arg2); + arg1 = (GoInt64 *)jarg1; + result = (GoUint32)SKY_utc_UnixNow(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UnloadWallet(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Address_UnmarshalJSON(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - GoString *argp2 ; + httphelper__Address *arg1 = (httphelper__Address *) 0 ; + GoSlice arg2 ; + GoSlice *argp2 ; GoUint32 result; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; + arg1 = (httphelper__Address *)jarg1; + argp2 = (GoSlice *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg2 = *argp2; - result = (GoUint32)SKY_api_Client_UnloadWallet(arg1,arg2); + result = (GoUint32)SKY_httphelper_Address_UnmarshalJSON(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Health(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Address_MarshalJSON(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; + httphelper__Address *arg1 = (httphelper__Address *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoUint32 result; - { - arg2 = &temp2; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - result = (GoUint32)SKY_api_Client_Health(arg1,arg2); + arg1 = (httphelper__Address *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_httphelper_Address_MarshalJSON(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_EncryptWallet(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Coins_UnmarshalJSON(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - WalletResponse__Handle *arg4 = (WalletResponse__Handle *) 0 ; - GoString *argp2 ; - GoString *argp3 ; + httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; + GoSlice arg2 ; + GoSlice *argp2 ; GoUint32 result; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; + arg1 = (httphelper__Coins *)jarg1; + argp2 = (GoSlice *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; - arg4 = (WalletResponse__Handle *)jarg4; - result = (GoUint32)SKY_api_Client_EncryptWallet(arg1,arg2,arg3,arg4); + result = (GoUint32)SKY_httphelper_Coins_UnmarshalJSON(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_DecryptWallet(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Coins_MarshalJSON(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - WalletResponse__Handle *arg4 = (WalletResponse__Handle *) 0 ; - GoString *argp2 ; - GoString *argp3 ; + httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoUint32 result; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; - arg4 = (WalletResponse__Handle *)jarg4; - result = (GoUint32)SKY_api_Client_DecryptWallet(arg1,arg2,arg3,arg4); + arg1 = (httphelper__Coins *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_httphelper_Coins_MarshalJSON(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_Print(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Coins_Value(void * jarg1, void * jarg2) { unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - GoString arg2 ; - GoString *argp2 ; + httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; GoUint32 result; - arg1 = (secp256k1go__XY *)jarg1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_secp256k1go_XY_Print(arg1,arg2); + arg1 = (httphelper__Coins *)jarg1; + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_httphelper_Coins_Value(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_ParsePubkey(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Hours_UnmarshalJSON(void * jarg1, void * jarg2) { unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; GoSlice arg2 ; - GoUint8 *arg3 = (GoUint8 *) 0 ; GoSlice *argp2 ; GoUint32 result; - arg1 = (secp256k1go__XY *)jarg1; + arg1 = (httphelper__Hours *)jarg1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg2 = *argp2; - arg3 = (GoUint8 *)jarg3; - result = (GoUint32)SKY_secp256k1go_XY_ParsePubkey(arg1,arg2,arg3); + result = (GoUint32)SKY_httphelper_Hours_UnmarshalJSON(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_Bytes(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Hours_MarshalJSON(void * jarg1, void * jarg2) { unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoUint32 result; - arg1 = (secp256k1go__XY *)jarg1; + arg1 = (httphelper__Hours *)jarg1; arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1go_XY_Bytes(arg1,arg2); + result = (GoUint32)SKY_httphelper_Hours_MarshalJSON(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_BytesUncompressed(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Hours_Value(void * jarg1, void * jarg2) { unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; + httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; GoUint32 result; - arg1 = (secp256k1go__XY *)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1go_XY_BytesUncompressed(arg1,arg2); + arg1 = (httphelper__Hours *)jarg1; + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_httphelper_Hours_Value(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_SetXY(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Entry_Verify(void * jarg1) { unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg3 = (secp256k1go__Field *) 0 ; + wallet__Entry *arg1 = (wallet__Entry *) 0 ; GoUint32 result; - arg1 = (secp256k1go__XY *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - arg3 = (secp256k1go__Field *)jarg3; - result = (GoUint32)SKY_secp256k1go_XY_SetXY(arg1,arg2,arg3); + arg1 = (wallet__Entry *)jarg1; + result = (GoUint32)SKY_wallet_Entry_Verify(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_IsValid(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Entry_VerifyPublic(void * jarg1) { unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; + wallet__Entry *arg1 = (wallet__Entry *) 0 ; GoUint32 result; - arg1 = (secp256k1go__XY *)jarg1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_secp256k1go_XY_IsValid(arg1,arg2); + arg1 = (wallet__Entry *)jarg1; + result = (GoUint32)SKY_wallet_Entry_VerifyPublic(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_SetXYZ(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateAddresses(void * jarg1, void * jarg2, long long jarg3, unsigned char jarg4, void * jarg5) { unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; + GoString arg1 ; + GoString arg2 ; + GoInt arg3 ; + GoUint8 arg4 ; + ReadableWallet__Handle *arg5 = (ReadableWallet__Handle *) 0 ; + GoString *argp1 ; + GoString *argp2 ; GoUint32 result; - arg1 = (secp256k1go__XY *)jarg1; - arg2 = (secp256k1go__XYZ *)jarg2; - result = (GoUint32)SKY_secp256k1go_XY_SetXYZ(arg1,arg2); + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + arg3 = (GoInt)jarg3; + arg4 = (GoUint8)jarg4; + arg5 = (ReadableWallet__Handle *)jarg5; + result = (GoUint32)SKY_wallet_CreateAddresses(arg1,arg2,arg3,arg4,arg5); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_Neg(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_GetSkycoinWalletEntry(cipher_PubKey* jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + ReadableEntry__Handle *arg3 = (ReadableEntry__Handle *) 0 ; GoUint32 result; - arg1 = (secp256k1go__XY *)jarg1; - arg2 = (secp256k1go__XY *)jarg2; - result = (GoUint32)SKY_secp256k1go_XY_Neg(arg1,arg2); + arg1 = (cipher_PubKey*)jarg1; + arg2 = (cipher__SecKey *)jarg2; + arg3 = (ReadableEntry__Handle *)jarg3; + result = (GoUint32)SKY_wallet_GetSkycoinWalletEntry((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2,arg3); jresult = result; + { + //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey + free(arg1); + } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_SetXO(void * jarg1, void * jarg2, unsigned char jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_GetBitcoinWalletEntry(cipher_PubKey* jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - GoUint8 arg3 ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + ReadableEntry__Handle *arg3 = (ReadableEntry__Handle *) 0 ; GoUint32 result; - arg1 = (secp256k1go__XY *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - arg3 = (GoUint8)jarg3; - result = (GoUint32)SKY_secp256k1go_XY_SetXO(arg1,arg2,arg3); + arg1 = (cipher_PubKey*)jarg1; + arg2 = (cipher__SecKey *)jarg2; + arg3 = (ReadableEntry__Handle *)jarg3; + result = (GoUint32)SKY_wallet_GetBitcoinWalletEntry((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2,arg3); jresult = result; + { + //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey + free(arg1); + } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_AddXY(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Print(void * jarg1, void * jarg2) { unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + GoString arg2 ; + GoString *argp2 ; + GoUint32 result; + + arg1 = (secp256k1go__XYZ *)jarg1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_secp256k1go_XYZ_Print(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_SetXY(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; GoUint32 result; - arg1 = (secp256k1go__XY *)jarg1; + arg1 = (secp256k1go__XYZ *)jarg1; arg2 = (secp256k1go__XY *)jarg2; - result = (GoUint32)SKY_secp256k1go_XY_AddXY(arg1,arg2); + result = (GoUint32)SKY_secp256k1go_XYZ_SetXY(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_GetPublicKey(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_IsInfinity(void * jarg1, void * jarg2) { unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; GoUint32 result; - arg1 = (secp256k1go__XY *)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1go_XY_GetPublicKey(arg1,arg2); + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_secp256k1go_XYZ_IsInfinity(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewWalletResponse(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_IsValid(void * jarg1, void * jarg2) { unsigned int jresult ; - Wallet__Handle arg1 ; - WalletResponse__Handle *arg2 = (WalletResponse__Handle *) 0 ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; GoUint32 result; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (WalletResponse__Handle *)jarg2; - result = (GoUint32)SKY_api_NewWalletResponse(arg1,arg2); + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_secp256k1go_XYZ_IsValid(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreateTransactionResponse(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Normalize(void * jarg1) { unsigned int jresult ; - Transaction__Handle arg1 ; - GoSlice arg2 ; - CreateTransactionResponse__Handle *arg3 = (CreateTransactionResponse__Handle *) 0 ; - GoSlice *argp2 ; - Handle temp3 ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; GoUint32 result; - { - arg3 = &temp3; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_api_NewCreateTransactionResponse(arg1,arg2,arg3); + arg1 = (secp256k1go__XYZ *)jarg1; + result = (GoUint32)SKY_secp256k1go_XYZ_Normalize(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreatedTransaction(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Equals(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Transaction__Handle arg1 ; - GoSlice arg2 ; - CreatedTransaction__Handle *arg3 = (CreatedTransaction__Handle *) 0 ; - GoSlice *argp2 ; - Handle temp3 ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; + GoUint8 *arg3 = (GoUint8 *) 0 ; GoUint32 result; - { - arg3 = &temp3; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_api_NewCreatedTransaction(arg1,arg2,arg3); + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (secp256k1go__XYZ *)jarg2; + arg3 = (GoUint8 *)jarg3; + result = (GoUint32)SKY_secp256k1go_XYZ_Equals(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_CreatedTransaction_ToTransaction(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_ECmult(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; - CreatedTransaction__Handle arg1 ; - Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; - Handle temp2 ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; + Number_Handle arg3 ; + Number_Handle arg4 ; GoUint32 result; + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (secp256k1go__XYZ *)jarg2; { - arg2 = &temp2; + SWIG_AsVal_long(jarg3, (long*)&arg3); } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + SWIG_AsVal_long(jarg4, (long*)&arg4); } - result = (GoUint32)SKY_api_CreatedTransaction_ToTransaction(arg1,arg2); + result = (GoUint32)SKY_secp256k1go_XYZ_ECmult(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreatedTransactionOutput(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Neg(void * jarg1, void * jarg2) { unsigned int jresult ; - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - CreatedTransactionOutput__Handle *arg3 = (CreatedTransactionOutput__Handle *) 0 ; - Handle temp3 ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; GoUint32 result; - { - arg3 = &temp3; - } - arg1 = (coin__TransactionOutput *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_api_NewCreatedTransactionOutput(arg1,(GoUint8_ (*)[32])arg2,arg3); + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (secp256k1go__XYZ *)jarg2; + result = (GoUint32)SKY_secp256k1go_XYZ_Neg(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreatedTransactionInput(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Double(void * jarg1, void * jarg2) { unsigned int jresult ; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - CreatedTransactionInput__Handle *arg2 = (CreatedTransactionInput__Handle *) 0 ; - Handle temp2 ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; GoUint32 result; - { - arg2 = &temp2; - } - arg1 = (wallet__UxBalance *)jarg1; - result = (GoUint32)SKY_api_NewCreatedTransactionInput(arg1,arg2); + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (secp256k1go__XYZ *)jarg2; + result = (GoUint32)SKY_secp256k1go_XYZ_Double(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewError(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_AddXY(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - GoInterface arg1 ; - GoInterface *argp1 ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; + secp256k1go__XY *arg3 = (secp256k1go__XY *) 0 ; GoUint32 result; - argp1 = (GoInterface *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInterface", 0); - return 0; - } - arg1 = *argp1; - result = (GoUint32)SKY_wallet_NewError(arg1); + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (secp256k1go__XYZ *)jarg2; + arg3 = (secp256k1go__XY *)jarg3; + result = (GoUint32)SKY_secp256k1go_XYZ_AddXY(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewWallet(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Add(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - GoString arg1 ; - Options__Handle arg2 ; - Wallet__Handle *arg3 = (Wallet__Handle *) 0 ; - GoString *argp1 ; - Handle temp3 ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; + secp256k1go__XYZ *arg3 = (secp256k1go__XYZ *) 0 ; GoUint32 result; - { - arg3 = &temp3; - } - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (secp256k1go__XYZ *)jarg2; + arg3 = (secp256k1go__XYZ *)jarg3; + result = (GoUint32)SKY_secp256k1go_XYZ_Add(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_ECmultGen(void * jarg1, void * jarg2) { + unsigned int jresult ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + Number_Handle arg2 ; + GoUint32 result; + + arg1 = (secp256k1go__XYZ *)jarg1; { SWIG_AsVal_long(jarg2, (long*)&arg2); } - result = (GoUint32)SKY_wallet_NewWallet(arg1,arg2,arg3); + result = (GoUint32)SKY_secp256k1go_ECmultGen(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Lock(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_Sha256Xor_Encrypt(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Wallet__Handle arg1 ; + GoSlice arg1 ; GoSlice arg2 ; - GoString arg3 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; GoSlice *argp2 ; - GoString *argp3 ; GoUint32 result; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; } + arg1 = *argp1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; - result = (GoUint32)SKY_wallet_Wallet_Lock(arg1,arg2,arg3); + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_encrypt_Sha256Xor_Encrypt(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Unlock(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_Sha256Xor_Decrypt(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Wallet__Handle arg1 ; + GoSlice arg1 ; GoSlice arg2 ; - Wallet__Handle *arg3 = (Wallet__Handle *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; GoSlice *argp2 ; - Handle temp3 ; GoUint32 result; - { - arg3 = &temp3; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; } + arg1 = *argp1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg2 = *argp2; - result = (GoUint32)SKY_wallet_Wallet_Unlock(arg1,arg2,arg3); + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_encrypt_Sha256Xor_Decrypt(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Load(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_droplet_FromString(void * jarg1, void * jarg2) { unsigned int jresult ; GoString arg1 ; - Wallet__Handle *arg2 = (Wallet__Handle *) 0 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; GoString *argp1 ; - Handle temp2 ; GoUint32 result; - { - arg2 = &temp2; - } argp1 = (GoString *)jarg1; if (!argp1) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg1 = *argp1; - result = (GoUint32)SKY_wallet_Load(arg1,arg2); + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_droplet_FromString(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Save(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_droplet_ToString(unsigned long long jarg1, void * jarg2) { unsigned int jresult ; - Wallet__Handle arg1 ; - GoString arg2 ; - GoString *argp2 ; + GoUint64 arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_wallet_Wallet_Save(arg1,arg2); + arg1 = (GoUint64)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_droplet_ToString(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Validate(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CryptoTypeFromString(void * jarg1, void * jarg2) { unsigned int jresult ; - Wallet__Handle arg1 ; + GoString arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString *argp1 ; GoUint32 result; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; } - result = (GoUint32)SKY_wallet_Wallet_Validate(arg1); + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_wallet_CryptoTypeFromString(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Type(void * jarg1, void * jarg2) { - unsigned int jresult ; - Wallet__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_handle_close(void * jarg1) { + Handle arg1 ; { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_wallet_Wallet_Type(arg1,arg2); - jresult = result; - return jresult; + SKY_handle_close(arg1); } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Version(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_handle_copy(void * jarg1) { unsigned int jresult ; - Wallet__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; + Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Handle temp2 ; GoUint32 result; + { + arg2 = &temp2; + } { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_wallet_Wallet_Version(arg1,arg2); + result = (GoUint32)SKY_handle_copy(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Filename(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_logging_EnableColors() { unsigned int jresult ; - Wallet__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_wallet_Wallet_Filename(arg1,arg2); + result = (GoUint32)SKY_logging_EnableColors(); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Label(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_logging_DisableColors() { unsigned int jresult ; - Wallet__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_wallet_Wallet_Label(arg1,arg2); + result = (GoUint32)SKY_logging_DisableColors(); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_IsEncrypted(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_logging_Disable() { unsigned int jresult ; - Wallet__Handle arg1 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; GoUint32 result; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_wallet_Wallet_IsEncrypted(arg1,arg2); + result = (GoUint32)SKY_logging_Disable(); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_GenerateAddresses(void * jarg1, unsigned long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_map_Get(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Wallet__Handle arg1 ; - GoUint64 arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; + GoString arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + GoString *argp2 ; GoUint32 result; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); + arg1 = (GoStringMap_ *)jarg1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; } - arg2 = (GoUint64)jarg2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_wallet_Wallet_GenerateAddresses(arg1,arg2,arg3); + arg2 = *argp2; + arg3 = (GoString_ *)jarg3; + result = (GoUint32)SKY_map_Get(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_GetAddresses(void * jarg1, void * jarg2) { - unsigned int jresult ; - Wallet__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_wallet_Wallet_GetAddresses(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_GetEntry(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { - unsigned int jresult ; - Wallet__Handle arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - wallet__Entry *arg3 = (wallet__Entry *) 0 ; - GoUint8 *arg4 = (GoUint8 *) 0 ; - GoUint32 result; +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_skycoin_SKY_map_HasKey(void * jarg1, void * jarg2) { + unsigned char jresult ; + GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; + GoString arg2 ; + GoString *argp2 ; + GoUint8 result; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); + arg1 = (GoStringMap_ *)jarg1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; } - arg2 = (cipher__Address *)jarg2; - arg3 = (wallet__Entry *)jarg3; - arg4 = (GoUint8 *)jarg4; - result = (GoUint32)SKY_wallet_Wallet_GetEntry(arg1,arg2,arg3,arg4); + arg2 = *argp2; + result = (GoUint8)SKY_map_HasKey(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_AddEntry(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_map_Close(void * jarg1) { unsigned int jresult ; - Wallet__Handle arg1 ; - wallet__Entry *arg2 = (wallet__Entry *) 0 ; + GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; GoUint32 result; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (wallet__Entry *)jarg2; - result = (GoUint32)SKY_wallet_Wallet_AddEntry(arg1,arg2); + arg1 = (GoStringMap_ *)jarg1; + result = (GoUint32)SKY_map_Close(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_DistributeSpendHours(unsigned long long jarg1, unsigned long long jarg2, unsigned char jarg3, void * jarg4, void * jarg5, void * jarg6) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DecodeBase58Address(void * jarg1, void * jarg2) { unsigned int jresult ; - GoUint64 arg1 ; - GoUint64 arg2 ; - GoUint8 arg3 ; - GoUint64 *arg4 = (GoUint64 *) 0 ; - coin__UxArray *arg5 = (coin__UxArray *) 0 ; - GoUint64 *arg6 = (GoUint64 *) 0 ; + GoString arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoString *argp1 ; GoUint32 result; - arg1 = (GoUint64)jarg1; - arg2 = (GoUint64)jarg2; - arg3 = (GoUint8)jarg3; - arg4 = (GoUint64 *)jarg4; - arg5 = (coin__UxArray *)jarg5; - arg6 = (GoUint64 *)jarg6; - result = (GoUint32)SKY_wallet_DistributeSpendHours(arg1,arg2,arg3,arg4,arg5,arg6); + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__Address *)jarg2; + result = (GoUint32)SKY_cipher_DecodeBase58Address(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_DistributeCoinHoursProportional(void * jarg1, unsigned long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddressFromBytes(void * jarg1, void * jarg2) { unsigned int jresult ; GoSlice arg1 ; - GoUint64 arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; GoSlice *argp1 ; GoUint32 result; @@ -4664,309 +5960,218 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_DistributeCoinHour return 0; } arg1 = *argp1; - arg2 = (GoUint64)jarg2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_wallet_DistributeCoinHoursProportional(arg1,arg2,arg3); + arg2 = (cipher__Address *)jarg2; + result = (GoUint32)SKY_cipher_AddressFromBytes(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewUxBalances(unsigned long long jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddressFromPubKey(cipher_PubKey* jarg1, void * jarg2) { unsigned int jresult ; - GoUint64 arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; GoUint32 result; - arg1 = (GoUint64)jarg1; - arg2 = (coin__UxArray *)jarg2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_wallet_NewUxBalances(arg1,arg2,arg3); + arg1 = (cipher_PubKey*)jarg1; + arg2 = (cipher__Address *)jarg2; + result = (GoUint32)SKY_cipher_AddressFromPubKey((GoUint8_ (*)[33])arg1,arg2); jresult = result; + { + //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey + free(arg1); + } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewUxBalance(unsigned long long jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddressFromSecKey(void * jarg1, void * jarg2) { unsigned int jresult ; - GoUint64 arg1 ; - coin__UxOut *arg2 = (coin__UxOut *) 0 ; - wallet__UxBalance *arg3 = (wallet__UxBalance *) 0 ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; GoUint32 result; - arg1 = (GoUint64)jarg1; - arg2 = (coin__UxOut *)jarg2; - arg3 = (wallet__UxBalance *)jarg3; - result = (GoUint32)SKY_wallet_NewUxBalance(arg1,arg2,arg3); + arg1 = (cipher__SecKey *)jarg1; + arg2 = (cipher__Address *)jarg2; + result = (GoUint32)SKY_cipher_AddressFromSecKey((GoUint8_ (*)[32])arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ChooseSpendsMinimizeUxOuts(void * jarg1, unsigned long long jarg2, unsigned long long jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinDecodeBase58Address(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - GoUint64 arg2 ; - GoUint64 arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; + GoString arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoString *argp1 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (GoString *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg1 = *argp1; - arg2 = (GoUint64)jarg2; - arg3 = (GoUint64)jarg3; - arg4 = (coin__UxArray *)jarg4; - result = (GoUint32)SKY_wallet_ChooseSpendsMinimizeUxOuts(arg1,arg2,arg3,arg4); + arg2 = (cipher__Address *)jarg2; + result = (GoUint32)SKY_cipher_BitcoinDecodeBase58Address(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ChooseSpendsMaximizeUxOuts(void * jarg1, unsigned long long jarg2, unsigned long long jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Null(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - GoUint64 arg2 ; - GoUint64 arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoUint64)jarg2; - arg3 = (GoUint64)jarg3; - arg4 = (coin__UxArray *)jarg4; - result = (GoUint32)SKY_wallet_ChooseSpendsMaximizeUxOuts(arg1,arg2,arg3,arg4); + arg1 = (cipher__Address *)jarg1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_cipher_Address_Null(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CheckWalletBalance(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Bytes(void * jarg1, void * jarg2) { unsigned int jresult ; - WebRpcClient__Handle arg1 ; - GoString arg2 ; - BalanceResult_Handle *arg3 = (BalanceResult_Handle *) 0 ; - GoString *argp2 ; - Handle temp3 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoUint32 result; - { - arg3 = &temp3; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_cli_CheckWalletBalance(arg1,arg2,arg3); + arg1 = (cipher__Address *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_cipher_Address_Bytes(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetBalanceOfAddresses(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_BitcoinBytes(void * jarg1, void * jarg2) { unsigned int jresult ; - WebRpcClient__Handle arg1 ; - GoSlice arg2 ; - BalanceResult_Handle *arg3 = (BalanceResult_Handle *) 0 ; - GoSlice *argp2 ; - Handle temp3 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoUint32 result; - { - arg3 = &temp3; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_cli_GetBalanceOfAddresses(arg1,arg2,arg3); + arg1 = (cipher__Address *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_cipher_Address_BitcoinBytes(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewReadableEntry(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Verify(void * jarg1, cipher_PubKey* jarg2) { unsigned int jresult ; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - ReadableEntry__Handle *arg2 = (ReadableEntry__Handle *) 0 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; GoUint32 result; - arg1 = (wallet__Entry *)jarg1; - arg2 = (ReadableEntry__Handle *)jarg2; - result = (GoUint32)SKY_wallet_NewReadableEntry(arg1,arg2); + arg1 = (cipher__Address *)jarg1; + arg2 = (cipher_PubKey*)jarg2; + result = (GoUint32)SKY_cipher_Address_Verify(arg1,(GoUint8_ (*)[33])arg2); jresult = result; + { + //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey + free(arg2); + } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_LoadReadableEntry(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_String(void * jarg1, void * jarg2) { unsigned int jresult ; - GoString arg1 ; - ReadableEntry__Handle *arg2 = (ReadableEntry__Handle *) 0 ; - GoString *argp1 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (ReadableEntry__Handle *)jarg2; - result = (GoUint32)SKY_wallet_LoadReadableEntry(arg1,arg2); + arg1 = (cipher__Address *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cipher_Address_String(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewReadableEntryFromPubkey(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_BitcoinString(void * jarg1, void * jarg2) { unsigned int jresult ; - GoString arg1 ; - ReadableEntry__Handle *arg2 = (ReadableEntry__Handle *) 0 ; - GoString *argp1 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (ReadableEntry__Handle *)jarg2; - result = (GoUint32)SKY_wallet_NewReadableEntryFromPubkey(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableEntry_Save(void * jarg1, void * jarg2) { - unsigned int jresult ; - ReadableEntry__Handle arg1 ; - GoString arg2 ; - GoString *argp2 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_wallet_ReadableEntry_Save(arg1,arg2); + arg1 = (cipher__Address *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cipher_Address_BitcoinString(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_LoadReadableWallet(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Checksum(void * jarg1, void * jarg2) { unsigned int jresult ; - GoString arg1 ; - ReadableWallet__Handle *arg2 = (ReadableWallet__Handle *) 0 ; - GoString *argp1 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + cipher__Checksum *arg2 = (cipher__Checksum *) 0 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (ReadableWallet__Handle *)jarg2; - result = (GoUint32)SKY_wallet_LoadReadableWallet(arg1,arg2); + arg1 = (cipher__Address *)jarg1; + arg2 = (cipher__Checksum *)jarg2; + result = (GoUint32)SKY_cipher_Address_Checksum(arg1,(GoUint8_ (*)[4])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableWallet_Save(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_BitcoinChecksum(void * jarg1, void * jarg2) { unsigned int jresult ; - ReadableWallet__Handle arg1 ; - GoString arg2 ; - GoString *argp2 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + cipher__Checksum *arg2 = (cipher__Checksum *) 0 ; GoUint32 result; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_wallet_ReadableWallet_Save(arg1,arg2); + arg1 = (cipher__Address *)jarg1; + arg2 = (cipher__Checksum *)jarg2; + result = (GoUint32)SKY_cipher_Address_BitcoinChecksum(arg1,(GoUint8_ (*)[4])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableWallet_Load(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddressFromPubkey(cipher_PubKey* jarg1, void * jarg2) { unsigned int jresult ; - ReadableWallet__Handle arg1 ; - GoString arg2 ; - GoString *argp2 ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; + arg1 = (cipher_PubKey*)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cipher_BitcoinAddressFromPubkey((GoUint8_ (*)[33])arg1,arg2); + jresult = result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; + //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey + free(arg1); } - arg2 = *argp2; - result = (GoUint32)SKY_wallet_ReadableWallet_Load(arg1,arg2); - jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableWallet_Erase(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinWalletImportFormatFromSeckey(void * jarg1, void * jarg2) { unsigned int jresult ; - ReadableWallet__Handle arg1 ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - result = (GoUint32)SKY_wallet_ReadableWallet_Erase(arg1); + arg1 = (cipher__SecKey *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cipher_BitcoinWalletImportFormatFromSeckey((GoUint8_ (*)[32])arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_DecompressPoint(void * jarg1, unsigned char jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddressFromBytes(void * jarg1, void * jarg2) { unsigned int jresult ; GoSlice arg1 ; - GoUint8 arg2 ; - GoSlice arg3 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; GoSlice *argp1 ; - GoSlice *argp3 ; GoUint32 result; argp1 = (GoSlice *)jarg1; @@ -4975,893 +6180,765 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_DecompressPoi return 0; } arg1 = *argp1; - arg2 = (GoUint8)jarg2; - argp3 = (GoSlice *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg3 = *argp3; - result = (GoUint32)SKY_secp256k1go_DecompressPoint(arg1,arg2,arg3); + arg2 = (cipher__Address *)jarg2; + result = (GoUint32)SKY_cipher_BitcoinAddressFromBytes(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_RecoverPublicKey(void * jarg1, void * jarg2, long long jarg3, void * jarg4, void * jarg5) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKeyFromWalletImportFormat(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - GoInt arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - GoInt *arg5 = (GoInt *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; + GoString arg1 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + GoString *argp1 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (GoString *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (GoInt)jarg3; - arg4 = (coin__UxArray *)jarg4; - arg5 = (GoInt *)jarg5; - result = (GoUint32)SKY_secp256k1go_RecoverPublicKey(arg1,arg2,arg3,arg4,arg5); + arg2 = (cipher__SecKey *)jarg2; + result = (GoUint32)SKY_cipher_SecKeyFromWalletImportFormat(arg1,(GoUint8_ (*)[32])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Multiply(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_JsonEncode_Handle(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; + Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = *argp2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_secp256k1go_Multiply(arg1,arg2,arg3); + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_JsonEncode_Handle(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_BaseMultiply(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Progress_GetCurrent(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; + Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1go_BaseMultiply(arg1,arg2); + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_Handle_Progress_GetCurrent(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_BaseMultiplyAdd(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Block_GetHeadSeq(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; + Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = *argp2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_secp256k1go_BaseMultiplyAdd(arg1,arg2,arg3); + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_Handle_Block_GetHeadSeq(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_GeneratePublicKey(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Block_GetHeadHash(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; + Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1go_GeneratePublicKey(arg1,arg2); + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_Handle_Block_GetHeadHash(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_SeckeyIsValid(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Block_GetPreviousBlockHash(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoSlice *argp1 ; + Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_secp256k1go_SeckeyIsValid(arg1,arg2); + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_Handle_Block_GetPreviousBlockHash(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_PubkeyIsValid(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Blocks_GetAt(void * jarg1, unsigned long long jarg2) { unsigned int jresult ; - GoSlice arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoSlice *argp1 ; + Handle arg1 ; + GoUint64 arg2 ; + Handle *arg3 = (Handle *) 0 ; + Handle temp3 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; + { + arg3 = &temp3; } - arg1 = *argp1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_secp256k1go_PubkeyIsValid(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_String2Hex(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_base58_String2Hex(arg1,arg2); + arg2 = (GoUint64)jarg2; + result = (GoUint32)SKY_Handle_Blocks_GetAt(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_ToInt(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Blocks_GetCount(void * jarg1, void * jarg2) { unsigned int jresult ; - GoString arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoString *argp1 ; + Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_base58_Base58_ToInt(arg1,arg2); + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_Handle_Blocks_GetCount(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_ToHex(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Connections_GetCount(void * jarg1, void * jarg2) { unsigned int jresult ; - GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoString *argp1 ; + Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_base58_Base58_ToHex(arg1,arg2); + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_Handle_Connections_GetCount(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_Base582Int(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Strings_GetCount(void * jarg1, void * jarg2) { unsigned int jresult ; - GoString arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoString *argp1 ; + Strings__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_base58_Base58_Base582Int(arg1,arg2); + arg2 = (GoUint32 *)jarg2; + result = (GoUint32)SKY_Handle_Strings_GetCount(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base582Hex(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Strings_Sort(void * jarg1) { unsigned int jresult ; - GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoString *argp1 ; + Strings__Handle arg1 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_base58_Base582Hex(arg1,arg2); + result = (GoUint32)SKY_Handle_Strings_Sort(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_BitHex(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Strings_GetAt(void * jarg1, long long jarg2, void * jarg3) { unsigned int jresult ; - GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoString *argp1 ; + Strings__Handle arg1 ; + GoInt arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_base58_Base58_BitHex(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Int2Base58(long long jarg1, void * jarg2) { - unsigned int jresult ; - GoInt arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - arg1 = (GoInt)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_base58_Int2Base58(arg1,arg2); + arg2 = (GoInt)jarg2; + arg3 = (GoString_ *)jarg3; + result = (GoUint32)SKY_Handle_Strings_GetAt(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Hex2Base58(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletDir(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; + Client__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; - GoSlice *argp1 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_base58_Hex2Base58(arg1,arg2); + result = (GoUint32)SKY_api_Handle_Client_GetWalletDir(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Hex2Base58String(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletFileName(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; + WalletResponse__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; - GoSlice *argp1 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_base58_Hex2Base58String(arg1,arg2); + result = (GoUint32)SKY_api_Handle_Client_GetWalletFileName(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Hex2Base58Str(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletLabel(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; + WalletResponse__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; - GoSlice *argp1 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_base58_Hex2Base58Str(arg1,arg2); + result = (GoUint32)SKY_api_Handle_Client_GetWalletLabel(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GenerateWallet(void * jarg1, unsigned long long jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletFullPath(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - GoString arg1 ; - Options__Handle *arg2 = (Options__Handle *) 0 ; - GoUint64 arg3 ; - Wallet__Handle *arg4 = (Wallet__Handle *) 0 ; - GoString *argp1 ; - Handle temp2 ; - Handle temp4 ; + Client__Handle arg1 ; + WalletResponse__Handle arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; GoUint32 result; { - arg2 = &temp2; + SWIG_AsVal_long(jarg1, (long*)&arg1); } { - arg4 = &temp4; - } - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; + SWIG_AsVal_long(jarg2, (long*)&arg2); } - arg1 = *argp1; - arg3 = (GoUint64)jarg3; - result = (GoUint32)SKY_cli_GenerateWallet(arg1,arg2,arg3,arg4); + arg3 = (GoString_ *)jarg3; + result = (GoUint32)SKY_api_Handle_Client_GetWalletFullPath(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_MakeAlphanumericSeed(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletMeta(void * jarg1, void * jarg2) { unsigned int jresult ; - GoString_ *arg1 = (GoString_ *) 0 ; + Wallet__Handle arg1 ; + GoStringMap_ *arg2 = (GoStringMap_ *) 0 ; GoUint32 result; - arg1 = (GoString_ *)jarg1; - result = (GoUint32)SKY_cli_MakeAlphanumericSeed(arg1); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoStringMap_ *)jarg2; + result = (GoUint32)SKY_api_Handle_GetWalletMeta(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_NewClient(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletEntriesCount(void * jarg1, void * jarg2) { unsigned int jresult ; - GoString arg1 ; - WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; - GoString *argp1 ; - Handle temp2 ; + Wallet__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; GoUint32 result; { - arg2 = &temp2; - } - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; - result = (GoUint32)SKY_webrpc_NewClient(arg1,arg2); + arg2 = (GoUint32 *)jarg2; + result = (GoUint32)SKY_api_Handle_GetWalletEntriesCount(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_CSRF(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletResponseEntriesCount(void * jarg1, void * jarg2) { unsigned int jresult ; - WebRpcClient__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; + WalletResponse__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; GoUint32 result; { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_webrpc_Client_CSRF(arg1,arg2); + arg2 = (GoUint32 *)jarg2; + result = (GoUint32)SKY_api_Handle_Client_GetWalletResponseEntriesCount(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_InjectTransaction(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletGetEntry(void * jarg1, unsigned int jarg2, void * jarg3, cipher_PubKey* jarg4) { unsigned int jresult ; - WebRpcClient__Handle arg1 ; - Transaction__Handle arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; + Wallet__Handle arg1 ; + GoUint32 arg2 ; + cipher__Address *arg3 = (cipher__Address *) 0 ; + cipher__PubKey *arg4 = (cipher__PubKey *) 0 ; GoUint32 result; { SWIG_AsVal_long(jarg1, (long*)&arg1); } - { - SWIG_AsVal_long(jarg2, (long*)&arg2); - } - arg3 = (GoString_ *)jarg3; - result = (GoUint32)SKY_webrpc_Client_InjectTransaction(arg1,arg2,arg3); + arg2 = (GoUint32)jarg2; + arg3 = (cipher__Address *)jarg3; + arg4 = (cipher_PubKey*)jarg4; + result = (GoUint32)SKY_api_Handle_WalletGetEntry(arg1,arg2,arg3,(GoUint8_ (*)[33])arg4); jresult = result; + { + //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey + free(arg4); + } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetStatus(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletResponseGetEntry(void * jarg1, unsigned int jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; - WebRpcClient__Handle arg1 ; - StatusResult_Handle *arg2 = (StatusResult_Handle *) 0 ; - Handle temp2 ; + WalletResponse__Handle arg1 ; + GoUint32 arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + GoString_ *arg4 = (GoString_ *) 0 ; GoUint32 result; - { - arg2 = &temp2; - } { SWIG_AsVal_long(jarg1, (long*)&arg1); } - result = (GoUint32)SKY_webrpc_Client_GetStatus(arg1,arg2); + arg2 = (GoUint32)jarg2; + arg3 = (GoString_ *)jarg3; + arg4 = (GoString_ *)jarg4; + result = (GoUint32)SKY_api_Handle_WalletResponseGetEntry(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetTransactionByID(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletResponseIsEncrypted(void * jarg1, void * jarg2) { unsigned int jresult ; - WebRpcClient__Handle arg1 ; - GoString arg2 ; - TransactionResult_Handle *arg3 = (TransactionResult_Handle *) 0 ; - GoString *argp2 ; - Handle temp3 ; + WalletResponse__Handle arg1 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; GoUint32 result; - { - arg3 = &temp3; - } { SWIG_AsVal_long(jarg1, (long*)&arg1); } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_webrpc_Client_GetTransactionByID(arg1,arg2,arg3); + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_api_Handle_WalletResponseIsEncrypted(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetAddressUxOuts(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletResponseGetCryptoType(void * jarg1, void * jarg2) { unsigned int jresult ; - WebRpcClient__Handle arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice *argp2 ; + WalletResponse__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; { SWIG_AsVal_long(jarg1, (long*)&arg1); } - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_webrpc_Client_GetAddressUxOuts(arg1,arg2,arg3); + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_api_Handle_WalletResponseGetCryptoType(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetBlocks(void * jarg1, unsigned long long jarg2, unsigned long long jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletsResponseGetCount(void * jarg1, void * jarg2) { unsigned int jresult ; - WebRpcClient__Handle arg1 ; - GoUint64 arg2 ; - GoUint64 arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; + Wallets__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; GoUint32 result; { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (GoUint64)jarg2; - arg3 = (GoUint64)jarg3; - arg4 = (coin__UxArray *)jarg4; - result = (GoUint32)SKY_webrpc_Client_GetBlocks(arg1,arg2,arg3,arg4); + arg2 = (GoUint32 *)jarg2; + result = (GoUint32)SKY_api_Handle_WalletsResponseGetCount(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetBlocksBySeq(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletsResponseGetAt(void * jarg1, unsigned int jarg2, void * jarg3) { unsigned int jresult ; - WebRpcClient__Handle arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice *argp2 ; + Wallets__Handle arg1 ; + GoUint32 arg2 ; + WalletResponse__Handle *arg3 = (WalletResponse__Handle *) 0 ; GoUint32 result; { SWIG_AsVal_long(jarg1, (long*)&arg1); } - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_webrpc_Client_GetBlocksBySeq(arg1,arg2,arg3); + arg2 = (GoUint32)jarg2; + arg3 = (WalletResponse__Handle *)jarg3; + result = (GoUint32)SKY_api_Handle_WalletsResponseGetAt(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetLastBlocks(void * jarg1, unsigned long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletFolderAddress(void * jarg1, void * jarg2) { unsigned int jresult ; - WebRpcClient__Handle arg1 ; - GoUint64 arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; + Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (GoUint64)jarg2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_webrpc_Client_GetLastBlocks(arg1,arg2,arg3); + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_api_Handle_GetWalletFolderAddress(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_browser_Open(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletSeed(void * jarg1, void * jarg2) { unsigned int jresult ; - GoString arg1 ; - GoString *argp1 ; + Wallet__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; - result = (GoUint32)SKY_browser_Open(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_iputil_LocalhostIP(void * jarg1) { - unsigned int jresult ; - GoString_ *arg1 = (GoString_ *) 0 ; - GoUint32 result; - - arg1 = (GoString_ *)jarg1; - result = (GoUint32)SKY_iputil_LocalhostIP(arg1); + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_api_Handle_GetWalletSeed(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_iputil_IsLocalhost(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletLastSeed(void * jarg1, void * jarg2) { unsigned int jresult ; - GoString arg1 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoString *argp1 ; + Wallet__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_iputil_IsLocalhost(arg1,arg2); + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_api_Handle_GetWalletLastSeed(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_iputil_SplitAddr(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetBuildInfoData(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; - GoString arg1 ; + BuildInfo_Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; - GoUint16 *arg3 = (GoUint16 *) 0 ; - GoString *argp1 ; + GoString_ *arg3 = (GoString_ *) 0 ; + GoString_ *arg4 = (GoString_ *) 0 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; arg2 = (GoString_ *)jarg2; - arg3 = (GoUint16 *)jarg3; - result = (GoUint32)SKY_iputil_SplitAddr(arg1,arg2,arg3); + arg3 = (GoString_ *)jarg3; + arg4 = (GoString_ *)jarg4; + result = (GoUint32)SKY_api_Handle_GetBuildInfoData(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encoder_StructField_String(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_ripemd160_New() { unsigned int jresult ; - encoder__StructField *arg1 = (encoder__StructField *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; + Hash_Handle *arg1 = (Hash_Handle *) 0 ; + Handle temp1 ; GoUint32 result; - arg1 = (encoder__StructField *)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_encoder_StructField_String(arg1,arg2); + { + arg1 = &temp1; + } + result = (GoUint32)SKY_ripemd160_New(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encoder_ParseFields(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_ripemd160_Write(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - GoSlice arg1 ; + Hash_Handle arg1 ; GoSlice arg2 ; - GoStringMap_ *arg3 = (GoStringMap_ *) 0 ; - GoSlice *argp1 ; + GoInt *arg3 = (GoInt *) 0 ; GoSlice *argp2 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg2 = *argp2; - arg3 = (GoStringMap_ *)jarg3; - result = (GoUint32)SKY_encoder_ParseFields(arg1,arg2,arg3); + arg3 = (GoInt *)jarg3; + result = (GoUint32)SKY_ripemd160_Write(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_SumSHA256(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_ripemd160_Sum(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; + Hash_Handle arg1 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp2 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoSlice *)jarg2; + if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1_SumSHA256(arg1,arg2); + arg2 = *argp2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_ripemd160_Sum(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_RandByte(long long jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_Create() { unsigned int jresult ; - GoInt arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; + Number_Handle *arg1 = (Number_Handle *) 0 ; + Handle temp1 ; GoUint32 result; - arg1 = (GoInt)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1_RandByte(arg1,arg2); + { + arg1 = &temp1; + } + result = (GoUint32)SKY_secp256k1go_Number_Create(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GenerateAddressesInFile(void * jarg1, unsigned long long jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_Print(void * jarg1, void * jarg2) { unsigned int jresult ; - GoString arg1 ; - GoUint64 arg2 ; - PasswordReader__Handle arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - GoString *argp1 ; + Number_Handle arg1 ; + GoString arg2 ; + GoString *argp2 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } - arg1 = *argp1; - arg2 = (GoUint64)jarg2; - { - SWIG_AsVal_long(jarg3, (long*)&arg3); - } - arg4 = (coin__UxArray *)jarg4; - result = (GoUint32)SKY_cli_GenerateAddressesInFile(arg1,arg2,arg3,arg4); + arg2 = *argp2; + result = (GoUint32)SKY_secp256k1go_Number_Print(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_FormatAddressesAsJSON(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_SetHex(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoSlice *argp1 ; + Number_Handle arg1 ; + GoString arg2 ; + GoString *argp2 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } - arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cli_FormatAddressesAsJSON(arg1,arg2); + arg2 = *argp2; + result = (GoUint32)SKY_secp256k1go_Number_SetHex(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_FormatAddressesAsJoinedArray(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_IsOdd(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoSlice *argp1 ; + Number_Handle arg1 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cli_FormatAddressesAsJoinedArray(arg1,arg2); + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_secp256k1go_Number_IsOdd(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_AddressesToStrings(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_IsEqual(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; + Number_Handle arg1 ; + Number_Handle arg2 ; + GoUint8 *arg3 = (GoUint8 *) 0 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_cli_AddressesToStrings(arg1,arg2); + { + SWIG_AsVal_long(jarg2, (long*)&arg2); + } + arg3 = (GoUint8 *)jarg3; + result = (GoUint32)SKY_secp256k1go_Number_IsEqual(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddUint64(unsigned long long jarg1, unsigned long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_Hash(void * jarg1, void * jarg2) { unsigned int jresult ; - GoUint64 arg1 ; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint32 result; + + arg1 = (coin__UxOut *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_UxOut_Hash(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_SnapshotHash(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint32 result; + + arg1 = (coin__UxOut *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_UxOut_SnapshotHash(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxBody_Hash(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint32 result; + + arg1 = (coin__UxBody *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_UxBody_Hash(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_CoinHours(void * jarg1, unsigned long long jarg2, void * jarg3) { + unsigned int jresult ; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; GoUint64 arg2 ; GoUint64 *arg3 = (GoUint64 *) 0 ; GoUint32 result; - arg1 = (GoUint64)jarg1; + arg1 = (coin__UxOut *)jarg1; arg2 = (GoUint64)jarg2; arg3 = (GoUint64 *)jarg3; - result = (GoUint32)SKY_coin_AddUint64(arg1,arg2,arg3); + result = (GoUint32)SKY_coin_UxOut_CoinHours(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Uint64ToInt64(unsigned long long jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Hashes(void * jarg1, void * jarg2) { unsigned int jresult ; - GoUint64 arg1 ; - GoInt64 *arg2 = (GoInt64 *) 0 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoUint32 result; - arg1 = (GoUint64)jarg1; - arg2 = (GoInt64 *)jarg2; - result = (GoUint32)SKY_coin_Uint64ToInt64(arg1,arg2); + arg1 = (coin__UxArray *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_coin_UxArray_Hashes(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Int64ToUint64(long long jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_HasDupes(void * jarg1, void * jarg2) { unsigned int jresult ; - GoInt64 arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; GoUint32 result; - arg1 = (GoInt64)jarg1; - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_coin_Int64ToUint64(arg1,arg2); + arg1 = (coin__UxArray *)jarg1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_coin_UxArray_HasDupes(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Len(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Sort(void * jarg1) { + unsigned int jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (coin__UxArray *)jarg1; + result = (GoUint32)SKY_coin_UxArray_Sort(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Len(void * jarg1, void * jarg2) { unsigned int jresult ; coin__UxArray *arg1 = (coin__UxArray *) 0 ; GoInt *arg2 = (GoInt *) 0 ; @@ -5869,13 +6946,13 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Len(vo arg1 = (coin__UxArray *)jarg1; arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_cipher_PubKeySlice_Len(arg1,arg2); + result = (GoUint32)SKY_coin_UxArray_Len(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Less(void * jarg1, long long jarg2, long long jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Less(void * jarg1, long long jarg2, long long jarg3, void * jarg4) { unsigned int jresult ; coin__UxArray *arg1 = (coin__UxArray *) 0 ; GoInt arg2 ; @@ -5887,13 +6964,13 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Less(v arg2 = (GoInt)jarg2; arg3 = (GoInt)jarg3; arg4 = (GoUint8 *)jarg4; - result = (GoUint32)SKY_cipher_PubKeySlice_Less(arg1,arg2,arg3,arg4); + result = (GoUint32)SKY_coin_UxArray_Less(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Swap(void * jarg1, long long jarg2, long long jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Swap(void * jarg1, long long jarg2, long long jarg3) { unsigned int jresult ; coin__UxArray *arg1 = (coin__UxArray *) 0 ; GoInt arg2 ; @@ -5903,375 +6980,446 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Swap(v arg1 = (coin__UxArray *)jarg1; arg2 = (GoInt)jarg2; arg3 = (GoInt)jarg3; - result = (GoUint32)SKY_cipher_PubKeySlice_Swap(arg1,arg2,arg3); + result = (GoUint32)SKY_coin_UxArray_Swap(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_RandByte(long long jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Coins(void * jarg1, void * jarg2) { unsigned int jresult ; - GoInt arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; GoUint32 result; - arg1 = (GoInt)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_cipher_RandByte(arg1,arg2); + arg1 = (coin__UxArray *)jarg1; + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_coin_UxArray_Coins(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewPubKey(void * jarg1, cipher_PubKey* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_CoinHours(void * jarg1, unsigned long long jarg2, void * jarg3) { unsigned int jresult ; - GoSlice arg1 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; - GoSlice *argp1 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoUint64 arg2 ; + GoUint64 *arg3 = (GoUint64 *) 0 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher_PubKey*)jarg2; - result = (GoUint32)SKY_cipher_NewPubKey(arg1,(GoUint8_ (*)[33])arg2); + arg1 = (coin__UxArray *)jarg1; + arg2 = (GoUint64)jarg2; + arg3 = (GoUint64 *)jarg3; + result = (GoUint32)SKY_coin_UxArray_CoinHours(arg1,arg2,arg3); jresult = result; - { - //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey - free(arg2); - } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromHex(void * jarg1, cipher_PubKey* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Sub(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - GoString arg1 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; - GoString *argp1 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher_PubKey*)jarg2; - result = (GoUint32)SKY_cipher_PubKeyFromHex(arg1,(GoUint8_ (*)[33])arg2); + arg1 = (coin__UxArray *)jarg1; + arg2 = (coin__UxArray *)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_coin_UxArray_Sub(arg1,arg2,arg3); jresult = result; - { - //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey - free(arg2); - } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSecKey(void * jarg1, cipher_PubKey* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Add(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; GoUint32 result; - arg1 = (cipher__SecKey *)jarg1; - arg2 = (cipher_PubKey*)jarg2; - result = (GoUint32)SKY_cipher_PubKeyFromSecKey((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[33])arg2); + arg1 = (coin__UxArray *)jarg1; + arg2 = (coin__UxArray *)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_coin_UxArray_Add(arg1,arg2,arg3); jresult = result; - { - //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey - free(arg2); - } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSig(void * jarg1, void * jarg2, cipher_PubKey* jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewAddressUxOuts(void * jarg1) { unsigned int jresult ; - cipher__Sig *arg1 = (cipher__Sig *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - cipher__PubKey *arg3 = (cipher__PubKey *) 0 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + AddressUxOuts_Handle *arg2 = (AddressUxOuts_Handle *) 0 ; + Handle temp2 ; GoUint32 result; - arg1 = (cipher__Sig *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - arg3 = (cipher_PubKey*)jarg3; - result = (GoUint32)SKY_cipher_PubKeyFromSig((GoUint8_ (*)[65])arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[33])arg3); - jresult = result; { - //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey - free(arg3); + arg2 = &temp2; } + arg1 = (coin__UxArray *)jarg1; + result = (GoUint32)SKY_coin_NewAddressUxOuts(arg1,arg2); + jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_Verify(cipher_PubKey* jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Keys(void * jarg1, void * jarg2) { unsigned int jresult ; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + AddressUxOuts_Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoUint32 result; - arg1 = (cipher_PubKey*)jarg1; - result = (GoUint32)SKY_cipher_PubKey_Verify((GoUint8_ (*)[33])arg1); - jresult = result; { - //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey - free(arg1); + SWIG_AsVal_long(jarg1, (long*)&arg1); } + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_coin_AddressUxOuts_Keys(arg1,arg2); + jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_Hex(cipher_PubKey* jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Flatten(void * jarg1, void * jarg2) { unsigned int jresult ; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; + AddressUxOuts_Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoUint32 result; - arg1 = (cipher_PubKey*)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cipher_PubKey_Hex((GoUint8_ (*)[33])arg1,arg2); - jresult = result; { - //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey - free(arg1); + SWIG_AsVal_long(jarg1, (long*)&arg1); } + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_coin_AddressUxOuts_Flatten(arg1,arg2); + jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_ToAddressHash(cipher_PubKey* jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Sub(void * jarg1, void * jarg2) { unsigned int jresult ; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__Ripemd160 *arg2 = (cipher__Ripemd160 *) 0 ; + AddressUxOuts_Handle arg1 ; + AddressUxOuts_Handle arg2 ; + AddressUxOuts_Handle *arg3 = (AddressUxOuts_Handle *) 0 ; + Handle temp3 ; GoUint32 result; - arg1 = (cipher_PubKey*)jarg1; - arg2 = (cipher__Ripemd160 *)jarg2; - result = (GoUint32)SKY_cipher_PubKey_ToAddressHash((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[20])arg2); - jresult = result; { - //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey - free(arg1); + arg3 = &temp3; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + { + SWIG_AsVal_long(jarg2, (long*)&arg2); } + result = (GoUint32)SKY_coin_AddressUxOuts_Sub(arg1,arg2,arg3); + jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewSecKey(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Add(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - GoSlice *argp1 ; + AddressUxOuts_Handle arg1 ; + AddressUxOuts_Handle arg2 ; + AddressUxOuts_Handle *arg3 = (AddressUxOuts_Handle *) 0 ; + Handle temp3 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; + { + arg3 = &temp3; } - arg1 = *argp1; - arg2 = (cipher__SecKey *)jarg2; - result = (GoUint32)SKY_cipher_NewSecKey(arg1,(GoUint8_ (*)[32])arg2); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + { + SWIG_AsVal_long(jarg2, (long*)&arg2); + } + result = (GoUint32)SKY_coin_AddressUxOuts_Add(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKeyFromHex(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Get(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - GoString arg1 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - GoString *argp1 ; + AddressUxOuts_Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; - arg2 = (cipher__SecKey *)jarg2; - result = (GoUint32)SKY_cipher_SecKeyFromHex(arg1,(GoUint8_ (*)[32])arg2); + arg2 = (cipher__Address *)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_coin_AddressUxOuts_Get(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKey_Verify(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_HasKey(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + AddressUxOuts_Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoUint8 *arg3 = (GoUint8 *) 0 ; GoUint32 result; - arg1 = (cipher__SecKey *)jarg1; - result = (GoUint32)SKY_cipher_SecKey_Verify((GoUint8_ (*)[32])arg1); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (cipher__Address *)jarg2; + arg3 = (GoUint8 *)jarg3; + result = (GoUint32)SKY_coin_AddressUxOuts_HasKey(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKey_Hex(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_GetOutputLength(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; + AddressUxOuts_Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoInt *arg3 = (GoInt *) 0 ; GoUint32 result; - arg1 = (cipher__SecKey *)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cipher_SecKey_Hex((GoUint8_ (*)[32])arg1,arg2); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (cipher__Address *)jarg2; + arg3 = (GoInt *)jarg3; + result = (GoUint32)SKY_coin_AddressUxOuts_GetOutputLength(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_ECDH(cipher_PubKey* jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Length(void * jarg1, void * jarg2) { unsigned int jresult ; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; + AddressUxOuts_Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; GoUint32 result; - arg1 = (cipher_PubKey*)jarg1; - arg2 = (cipher__SecKey *)jarg2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_cipher_ECDH((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2,arg3); - jresult = result; { - //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey - free(arg1); + SWIG_AsVal_long(jarg1, (long*)&arg1); } + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_coin_AddressUxOuts_Length(arg1,arg2); + jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewSig(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Set(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - GoSlice arg1 ; - cipher__Sig *arg2 = (cipher__Sig *) 0 ; - GoSlice *argp1 ; + AddressUxOuts_Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; - arg2 = (cipher__Sig *)jarg2; - result = (GoUint32)SKY_cipher_NewSig(arg1,(GoUint8_ (*)[65])arg2); + arg2 = (cipher__Address *)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_coin_AddressUxOuts_Set(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SigFromHex(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_ScryptChacha20poly1305_Encrypt(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; - GoString arg1 ; - cipher__Sig *arg2 = (cipher__Sig *) 0 ; - GoString *argp1 ; + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + GoSlice arg2 ; + GoSlice arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + GoSlice *argp2 ; + GoSlice *argp3 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } - arg1 = *argp1; - arg2 = (cipher__Sig *)jarg2; - result = (GoUint32)SKY_cipher_SigFromHex(arg1,(GoUint8_ (*)[65])arg2); + arg2 = *argp2; + argp3 = (GoSlice *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg3 = *argp3; + arg4 = (coin__UxArray *)jarg4; + result = (GoUint32)SKY_encrypt_ScryptChacha20poly1305_Encrypt(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Sig_Hex(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_ScryptChacha20poly1305_Decrypt(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; - cipher__Sig *arg1 = (cipher__Sig *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + GoSlice arg2 ; + GoSlice arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + GoSlice *argp2 ; + GoSlice *argp3 ; GoUint32 result; - arg1 = (cipher__Sig *)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cipher_Sig_Hex((GoUint8_ (*)[65])arg1,arg2); + arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoSlice *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg3 = *argp3; + arg4 = (coin__UxArray *)jarg4; + result = (GoUint32)SKY_encrypt_ScryptChacha20poly1305_Decrypt(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SignHash(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateOptionsHandle(void * jarg1, void * jarg2, void * jarg3, unsigned char jarg4, void * jarg5, void * jarg6, unsigned long long jarg7) { unsigned int jresult ; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - cipher__Sig *arg3 = (cipher__Sig *) 0 ; - GoUint32 result; - - arg1 = (cipher__SHA256 *)jarg1; - arg2 = (cipher__SecKey *)jarg2; - arg3 = (cipher__Sig *)jarg3; - result = (GoUint32)SKY_cipher_SignHash((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[65])arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_ChkSig(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - cipher__Sig *arg3 = (cipher__Sig *) 0 ; + GoString arg1 ; + GoString arg2 ; + GoString arg3 ; + GoUint8 arg4 ; + GoString arg5 ; + GoString arg6 ; + GoUint64 arg7 ; + Options__Handle *arg8 = (Options__Handle *) 0 ; + GoString *argp1 ; + GoString *argp2 ; + GoString *argp3 ; + GoString *argp5 ; + GoString *argp6 ; + Handle temp8 ; GoUint32 result; - arg1 = (cipher__Address *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - arg3 = (cipher__Sig *)jarg3; - result = (GoUint32)SKY_cipher_ChkSig(arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[65])arg3); + { + arg8 = &temp8; + } + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + arg4 = (GoUint8)jarg4; + argp5 = (GoString *)jarg5; + if (!argp5) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg5 = *argp5; + argp6 = (GoString *)jarg6; + if (!argp6) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg6 = *argp6; + arg7 = (GoUint64)jarg7; + result = (GoUint32)SKY_wallet_CreateOptionsHandle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignedHash(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_AddPrivateKey(void * jarg1, void * jarg2) { unsigned int jresult ; - cipher__Sig *arg1 = (cipher__Sig *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + Wallet__Handle arg1 ; + GoString arg2 ; + GoString *argp2 ; GoUint32 result; - arg1 = (cipher__Sig *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_cipher_VerifySignedHash((GoUint8_ (*)[65])arg1,(GoUint8_ (*)[32])arg2); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_cli_AddPrivateKey(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignature(cipher_PubKey* jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_AddPrivateKeyToFile(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__Sig *arg2 = (cipher__Sig *) 0 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + GoString arg1 ; + GoString arg2 ; + PasswordReader__Handle arg3 ; + GoString *argp1 ; + GoString *argp2 ; GoUint32 result; - arg1 = (cipher_PubKey*)jarg1; - arg2 = (cipher__Sig *)jarg2; - arg3 = (cipher__SHA256 *)jarg3; - result = (GoUint32)SKY_cipher_VerifySignature((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[65])arg2,(GoUint8_ (*)[32])arg3); - jresult = result; + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; { - //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey - free(arg1); + SWIG_AsVal_long(jarg3, (long*)&arg3); } + result = (GoUint32)SKY_cli_AddPrivateKeyToFile(arg1,arg2,arg3); + jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPair(void * jarg1, cipher_PubKey* jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_GenerateKeyPair(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; + + arg1 = (coin__UxArray *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1_GenerateKeyPair(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_PubkeyFromSeckey(void * jarg1, void * jarg2) { unsigned int jresult ; GoSlice arg1 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; - cipher__SecKey *arg3 = (cipher__SecKey *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoSlice *argp1 ; GoUint32 result; @@ -6281,24 +7429,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterminis return 0; } arg1 = *argp1; - arg2 = (cipher_PubKey*)jarg2; - arg3 = (cipher__SecKey *)jarg3; - result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPair(arg1,(GoUint8_ (*)[33])arg2,(GoUint8_ (*)[32])arg3); + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1_PubkeyFromSeckey(arg1,arg2); jresult = result; - { - //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey - free(arg2); - } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DeterministicKeyPairIterator(void * jarg1, void * jarg2, cipher_PubKey* jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_UncompressPubkey(void * jarg1, void * jarg2) { unsigned int jresult ; GoSlice arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; - cipher__PubKey *arg3 = (cipher__PubKey *) 0 ; - cipher__SecKey *arg4 = (cipher__SecKey *) 0 ; GoSlice *argp1 ; GoUint32 result; @@ -6309,23 +7450,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DeterministicKeyPa } arg1 = *argp1; arg2 = (coin__UxArray *)jarg2; - arg3 = (cipher_PubKey*)jarg3; - arg4 = (cipher__SecKey *)jarg4; - result = (GoUint32)SKY_cipher_DeterministicKeyPairIterator(arg1,arg2,(GoUint8_ (*)[33])arg3,(GoUint8_ (*)[32])arg4); + result = (GoUint32)SKY_secp256k1_UncompressPubkey(arg1,arg2); jresult = result; - { - //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey - free(arg3); - } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairs(void * jarg1, long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_UncompressedPubkeyFromSeckey(void * jarg1, void * jarg2) { unsigned int jresult ; GoSlice arg1 ; - GoInt arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoSlice *argp1 ; GoUint32 result; @@ -6335,20 +7469,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterminis return 0; } arg1 = *argp1; - arg2 = (GoInt)jarg2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPairs(arg1,arg2,arg3); + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1_UncompressedPubkeyFromSeckey(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairsSeed(void * jarg1, long long jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_Secp256k1Hash(void * jarg1, void * jarg2) { unsigned int jresult ; GoSlice arg1 ; - GoInt arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoSlice *argp1 ; GoUint32 result; @@ -6358,347 +7489,351 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterminis return 0; } arg1 = *argp1; - arg2 = (GoInt)jarg2; - arg3 = (coin__UxArray *)jarg3; - arg4 = (coin__UxArray *)jarg4; - result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPairsSeed(arg1,arg2,arg3,arg4); + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_secp256k1_Secp256k1Hash(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_TestSecKey(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_GenerateDeterministicKeyPair(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; GoUint32 result; - arg1 = (cipher__SecKey *)jarg1; - result = (GoUint32)SKY_cipher_TestSecKey((GoUint8_ (*)[32])arg1); + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_secp256k1_GenerateDeterministicKeyPair(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_TestSecKeyHash(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_DeterministicKeyPairIterator(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; GoUint32 result; - arg1 = (cipher__SecKey *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_cipher_TestSecKeyHash((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[32])arg2); + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__UxArray *)jarg2; + arg3 = (coin__UxArray *)jarg3; + arg4 = (coin__UxArray *)jarg4; + result = (GoUint32)SKY_secp256k1_DeterministicKeyPairIterator(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateKeyPair(cipher_PubKey* jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_Sign(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + GoSlice arg1 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; GoUint32 result; - arg1 = (cipher_PubKey*)jarg1; - arg2 = (cipher__SecKey *)jarg2; - result = (GoUint32)SKY_cipher_GenerateKeyPair((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2); - jresult = result; - { - //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey - free(arg1); + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; } - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Create() { - unsigned int jresult ; - Signature_Handle *arg1 = (Signature_Handle *) 0 ; - Handle temp1 ; - GoUint32 result; - - { - arg1 = &temp1; + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; } - result = (GoUint32)SKY_secp256k1go_Signature_Create(arg1); + arg2 = *argp2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_secp256k1_Sign(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_GetR(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_SignDeterministic(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; - Signature_Handle arg1 ; - Number_Handle *arg2 = (Number_Handle *) 0 ; - Handle temp2 ; + GoSlice arg1 ; + GoSlice arg2 ; + GoSlice arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; + GoSlice *argp3 ; GoUint32 result; - { - arg2 = &temp2; + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; } - result = (GoUint32)SKY_secp256k1go_Signature_GetR(arg1,arg2); + arg2 = *argp2; + argp3 = (GoSlice *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg3 = *argp3; + arg4 = (coin__UxArray *)jarg4; + result = (GoUint32)SKY_secp256k1_SignDeterministic(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_GetS(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_VerifySeckey(void * jarg1, void * jarg2) { unsigned int jresult ; - Signature_Handle arg1 ; - Number_Handle *arg2 = (Number_Handle *) 0 ; - Handle temp2 ; + GoSlice arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoSlice *argp1 ; GoUint32 result; - { - arg2 = &temp2; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; } - result = (GoUint32)SKY_secp256k1go_Signature_GetS(arg1,arg2); + arg1 = *argp1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_secp256k1_VerifySeckey(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Print(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_VerifyPubkey(void * jarg1, void * jarg2) { unsigned int jresult ; - Signature_Handle arg1 ; - GoString arg2 ; - GoString *argp2 ; + GoSlice arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoSlice *argp1 ; GoUint32 result; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } - arg2 = *argp2; - result = (GoUint32)SKY_secp256k1go_Signature_Print(arg1,arg2); + arg1 = *argp1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_secp256k1_VerifyPubkey(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Verify(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_VerifySignatureValidity(void * jarg1, void * jarg2) { unsigned int jresult ; - Signature_Handle arg1 ; - secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; - Number_Handle arg3 ; - GoUint8 *arg4 = (GoUint8 *) 0 ; + GoSlice arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoSlice *argp1 ; GoUint32 result; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (secp256k1go__XY *)jarg2; - { - SWIG_AsVal_long(jarg3, (long*)&arg3); + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; } - arg4 = (GoUint8 *)jarg4; - result = (GoUint32)SKY_secp256k1go_Signature_Verify(arg1,arg2,arg3,arg4); + arg1 = *argp1; + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_secp256k1_VerifySignatureValidity(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Recover(void * jarg1, void * jarg2, void * jarg3, long long jarg4, void * jarg5) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_VerifySignature(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; - Signature_Handle arg1 ; - secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; - Number_Handle arg3 ; - GoInt arg4 ; - GoUint8 *arg5 = (GoUint8 *) 0 ; + GoSlice arg1 ; + GoSlice arg2 ; + GoSlice arg3 ; + GoInt *arg4 = (GoInt *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; + GoSlice *argp3 ; GoUint32 result; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; } - arg2 = (secp256k1go__XY *)jarg2; - { - SWIG_AsVal_long(jarg3, (long*)&arg3); + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; } - arg4 = (GoInt)jarg4; - arg5 = (GoUint8 *)jarg5; - result = (GoUint32)SKY_secp256k1go_Signature_Recover(arg1,arg2,arg3,arg4,arg5); + arg2 = *argp2; + argp3 = (GoSlice *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg3 = *argp3; + arg4 = (GoInt *)jarg4; + result = (GoUint32)SKY_secp256k1_VerifySignature(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Sign(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_SignatureErrorString(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; - Signature_Handle arg1 ; - Number_Handle arg2 ; - Number_Handle arg3 ; - Number_Handle arg4 ; - GoInt *arg5 = (GoInt *) 0 ; - GoInt *arg6 = (GoInt *) 0 ; + GoSlice arg1 ; + GoSlice arg2 ; + GoSlice arg3 ; + GoString_ *arg4 = (GoString_ *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; + GoSlice *argp3 ; GoUint32 result; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - { - SWIG_AsVal_long(jarg2, (long*)&arg2); + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; } - { - SWIG_AsVal_long(jarg3, (long*)&arg3); + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; } - { - SWIG_AsVal_long(jarg4, (long*)&arg4); + arg2 = *argp2; + argp3 = (GoSlice *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; } - arg5 = (GoInt *)jarg5; - arg6 = (GoInt *)jarg6; - result = (GoUint32)SKY_secp256k1go_Signature_Sign(arg1,arg2,arg3,arg4,arg5,arg6); + arg3 = *argp3; + arg4 = (GoString_ *)jarg4; + result = (GoUint32)SKY_secp256k1_SignatureErrorString(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_ParseBytes(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_RecoverPubkey(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Signature_Handle arg1 ; + GoSlice arg1 ; GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; GoSlice *argp2 ; GoUint32 result; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; } + arg1 = *argp1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg2 = *argp2; - result = (GoUint32)SKY_secp256k1go_Signature_ParseBytes(arg1,arg2); + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_secp256k1_RecoverPubkey(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Bytes(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_ECDH(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Signature_Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice arg1 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; GoUint32 result; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; } - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1go_Signature_Bytes(arg1,arg2); + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_secp256k1_ECDH(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_App_Run(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_apputil_CatchInterruptPanic() { unsigned int jresult ; - App__Handle arg1 ; - GoString arg2 ; - GoString *argp2 ; GoUint32 result; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_cli_App_Run(arg1,arg2); + result = (GoUint32)SKY_apputil_CatchInterruptPanic(); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_GetCoin(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_apputil_CatchDebug() { unsigned int jresult ; - Config__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cli_Config_GetCoin(arg1,arg2); + result = (GoUint32)SKY_apputil_CatchDebug(); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_GetRPCAddress(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_apputil_PrintProgramStatus() { unsigned int jresult ; - Config__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cli_Config_GetRPCAddress(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_RPCClientFromApp(void * jarg1) { - unsigned int jresult ; - App__Handle arg1 ; - WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; - Handle temp2 ; - GoUint32 result; - - { - arg2 = &temp2; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - result = (GoUint32)SKY_cli_RPCClientFromApp(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Getenv(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cli_Getenv(arg1,arg2); + result = (GoUint32)SKY_apputil_PrintProgramStatus(); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Setenv(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cert_CreateCertIfNotExists(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; GoString arg1 ; GoString arg2 ; + GoString arg3 ; + GoString arg4 ; GoString *argp1 ; GoString *argp2 ; + GoString *argp3 ; + GoString *argp4 ; GoUint32 result; argp1 = (GoString *)jarg1; @@ -6713,305 +7848,486 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Setenv(void * jarg1, return 0; } arg2 = *argp2; - result = (GoUint32)SKY_cli_Setenv(arg1,arg2); + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + argp4 = (GoString *)jarg4; + if (!argp4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg4 = *argp4; + result = (GoUint32)SKY_cert_CreateCertIfNotExists(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_poly1305_Verify(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_VerifyTransactionFee(void * jarg1, unsigned long long jarg2) { unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoUint8 *arg4 = (GoUint8 *) 0 ; - GoSlice *argp2 ; + Transaction__Handle arg1 ; + GoUint64 arg2 ; GoUint32 result; - arg1 = (coin__UxArray *)jarg1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = *argp2; - arg3 = (coin__UxArray *)jarg3; - arg4 = (GoUint8 *)jarg4; - result = (GoUint32)SKY_poly1305_Verify(arg1,arg2,arg3,arg4); + arg2 = (GoUint64)jarg2; + result = (GoUint32)SKY_fee_VerifyTransactionFee(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewBalance(unsigned long long jarg1, unsigned long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_VerifyTransactionFeeForHours(unsigned long long jarg1, unsigned long long jarg2) { unsigned int jresult ; GoUint64 arg1 ; GoUint64 arg2 ; - wallet__Balance *arg3 = (wallet__Balance *) 0 ; GoUint32 result; arg1 = (GoUint64)jarg1; arg2 = (GoUint64)jarg2; - arg3 = (wallet__Balance *)jarg3; - result = (GoUint32)SKY_wallet_NewBalance(arg1,arg2,arg3); + result = (GoUint32)SKY_fee_VerifyTransactionFeeForHours(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewBalanceFromUxOut(unsigned long long jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_RequiredFee(unsigned long long jarg1, void * jarg2) { unsigned int jresult ; GoUint64 arg1 ; - coin__UxOut *arg2 = (coin__UxOut *) 0 ; - wallet__Balance *arg3 = (wallet__Balance *) 0 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; GoUint32 result; arg1 = (GoUint64)jarg1; - arg2 = (coin__UxOut *)jarg2; - arg3 = (wallet__Balance *)jarg3; - result = (GoUint32)SKY_wallet_NewBalanceFromUxOut(arg1,arg2,arg3); + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_fee_RequiredFee(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Balance_Add(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_RemainingHours(unsigned long long jarg1, void * jarg2) { unsigned int jresult ; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - wallet__Balance *arg2 = (wallet__Balance *) 0 ; - wallet__Balance *arg3 = (wallet__Balance *) 0 ; + GoUint64 arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; GoUint32 result; - arg1 = (wallet__Balance *)jarg1; - arg2 = (wallet__Balance *)jarg2; - arg3 = (wallet__Balance *)jarg3; - result = (GoUint32)SKY_wallet_Balance_Add(arg1,arg2,arg3); + arg1 = (GoUint64)jarg1; + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_fee_RemainingHours(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Balance_Sub(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_TransactionFee(void * jarg1, unsigned long long jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - wallet__Balance *arg2 = (wallet__Balance *) 0 ; - wallet__Balance *arg3 = (wallet__Balance *) 0 ; + Transaction__Handle arg1 ; + GoUint64 arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoUint64 *arg4 = (GoUint64 *) 0 ; GoUint32 result; - arg1 = (wallet__Balance *)jarg1; - arg2 = (wallet__Balance *)jarg2; - arg3 = (wallet__Balance *)jarg3; - result = (GoUint32)SKY_wallet_Balance_Sub(arg1,arg2,arg3); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoUint64)jarg2; + arg3 = (coin__UxArray *)jarg3; + arg4 = (GoUint64 *)jarg4; + result = (GoUint32)SKY_fee_TransactionFee(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Balance_Equals(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_LoadConfig() { unsigned int jresult ; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - wallet__Balance *arg2 = (wallet__Balance *) 0 ; - GoUint8 *arg3 = (GoUint8 *) 0 ; + Config__Handle *arg1 = (Config__Handle *) 0 ; + Handle temp1 ; GoUint32 result; - arg1 = (wallet__Balance *)jarg1; - arg2 = (wallet__Balance *)jarg2; - arg3 = (GoUint8 *)jarg3; - result = (GoUint32)SKY_wallet_Balance_Equals(arg1,arg2,arg3); + { + arg1 = &temp1; + } + result = (GoUint32)SKY_cli_LoadConfig(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Balance_IsZero(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_FullWalletPath(void * jarg1, void * jarg2) { unsigned int jresult ; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; + Config__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; - arg1 = (wallet__Balance *)jarg1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_wallet_Balance_IsZero(arg1,arg2); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cli_Config_FullWalletPath(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_utc_UnixNow(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_FullDBPath(void * jarg1, void * jarg2) { unsigned int jresult ; - GoInt64 *arg1 = (GoInt64 *) 0 ; + Config__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; - arg1 = (GoInt64 *)jarg1; - result = (GoUint32)SKY_utc_UnixNow(arg1); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cli_Config_FullDBPath(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Address_UnmarshalJSON(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_NewApp(void * jarg1, void * jarg2) { unsigned int jresult ; - httphelper__Address *arg1 = (httphelper__Address *) 0 ; - GoSlice arg2 ; - GoSlice *argp2 ; + Config__Handle arg1 ; + App__Handle *arg2 = (App__Handle *) 0 ; GoUint32 result; - arg1 = (httphelper__Address *)jarg1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = *argp2; - result = (GoUint32)SKY_httphelper_Address_UnmarshalJSON(arg1,arg2); + arg2 = (App__Handle *)jarg2; + result = (GoUint32)SKY_cli_NewApp(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Address_MarshalJSON(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_RPCClientFromContext(void * jarg1) { unsigned int jresult ; - httphelper__Address *arg1 = (httphelper__Address *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; + Context__Handle arg1 ; + WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; + Handle temp2 ; GoUint32 result; - arg1 = (httphelper__Address *)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_httphelper_Address_MarshalJSON(arg1,arg2); + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_cli_RPCClientFromContext(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Coins_UnmarshalJSON(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_ConfigFromContext(void * jarg1) { unsigned int jresult ; - httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; - GoSlice arg2 ; - GoSlice *argp2 ; + Context__Handle arg1 ; + Config__Handle *arg2 = (Config__Handle *) 0 ; + Handle temp2 ; GoUint32 result; - arg1 = (httphelper__Coins *)jarg1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; + { + arg2 = &temp2; } - arg2 = *argp2; - result = (GoUint32)SKY_httphelper_Coins_UnmarshalJSON(arg1,arg2); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_cli_ConfigFromContext(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Coins_MarshalJSON(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_PasswordFromBytes_Password(void * jarg1, void * jarg2) { unsigned int jresult ; - httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoUint32 result; - arg1 = (httphelper__Coins *)jarg1; + arg1 = (coin__UxArray *)jarg1; arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_httphelper_Coins_MarshalJSON(arg1,arg2); + result = (GoUint32)SKY_cli_PasswordFromBytes_Password(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Coins_Value(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_PasswordFromTerm_Password(void * jarg1) { unsigned int jresult ; - httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; GoUint32 result; - arg1 = (httphelper__Coins *)jarg1; - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_httphelper_Coins_Value(arg1,arg2); + arg1 = (coin__UxArray *)jarg1; + result = (GoUint32)SKY_cli_PasswordFromTerm_Password(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Hours_UnmarshalJSON(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromWallet(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5) { unsigned int jresult ; - httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; - GoSlice arg2 ; - GoSlice *argp2 ; + WebRpcClient__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + GoSlice arg4 ; + PasswordReader__Handle arg5 ; + Transaction__Handle *arg6 = (Transaction__Handle *) 0 ; + GoString *argp2 ; + GoString *argp3 ; + GoSlice *argp4 ; + Handle temp6 ; GoUint32 result; - arg1 = (httphelper__Hours *)jarg1; - argp2 = (GoSlice *)jarg2; + { + arg6 = &temp6; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + argp4 = (GoSlice *)jarg4; + if (!argp4) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } + arg4 = *argp4; + { + SWIG_AsVal_long(jarg5, (long*)&arg5); + } + result = (GoUint32)SKY_cli_CreateRawTxFromWallet(arg1,arg2,arg3,arg4,arg5,arg6); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromAddress(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) { + unsigned int jresult ; + WebRpcClient__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + GoString arg4 ; + GoSlice arg5 ; + PasswordReader__Handle arg6 ; + Transaction__Handle *arg7 = (Transaction__Handle *) 0 ; + GoString *argp2 ; + GoString *argp3 ; + GoString *argp4 ; + GoSlice *argp5 ; + Handle temp7 ; + GoUint32 result; + + { + arg7 = &temp7; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } arg2 = *argp2; - result = (GoUint32)SKY_httphelper_Hours_UnmarshalJSON(arg1,arg2); + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + argp4 = (GoString *)jarg4; + if (!argp4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg4 = *argp4; + argp5 = (GoSlice *)jarg5; + if (!argp5) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg5 = *argp5; + { + SWIG_AsVal_long(jarg6, (long*)&arg6); + } + result = (GoUint32)SKY_cli_CreateRawTxFromAddress(arg1,arg2,arg3,arg4,arg5,arg6,arg7); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Hours_MarshalJSON(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTx(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) { unsigned int jresult ; - httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; + WebRpcClient__Handle arg1 ; + Wallet__Handle arg2 ; + GoSlice arg3 ; + GoString arg4 ; + GoSlice arg5 ; + GoSlice arg6 ; + Transaction__Handle *arg7 = (Transaction__Handle *) 0 ; + GoSlice *argp3 ; + GoString *argp4 ; + GoSlice *argp5 ; + GoSlice *argp6 ; + Handle temp7 ; GoUint32 result; - arg1 = (httphelper__Hours *)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_httphelper_Hours_MarshalJSON(arg1,arg2); + { + arg7 = &temp7; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + { + SWIG_AsVal_long(jarg2, (long*)&arg2); + } + argp3 = (GoSlice *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg3 = *argp3; + argp4 = (GoString *)jarg4; + if (!argp4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg4 = *argp4; + argp5 = (GoSlice *)jarg5; + if (!argp5) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg5 = *argp5; + argp6 = (GoSlice *)jarg6; + if (!argp6) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg6 = *argp6; + result = (GoUint32)SKY_cli_CreateRawTx(arg1,arg2,arg3,arg4,arg5,arg6,arg7); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Hours_Value(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_NewTransaction(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; + GoSlice arg1 ; + GoSlice arg2 ; + GoSlice arg3 ; + Transaction__Handle *arg4 = (Transaction__Handle *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; + GoSlice *argp3 ; + Handle temp4 ; GoUint32 result; - arg1 = (httphelper__Hours *)jarg1; - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_httphelper_Hours_Value(arg1,arg2); + { + arg4 = &temp4; + } + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + argp3 = (GoSlice *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg3 = *argp3; + result = (GoUint32)SKY_cli_NewTransaction(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Entry_Verify(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_InitDataDir(void * jarg1, void * jarg2) { unsigned int jresult ; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; + GoString arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString *argp1 ; GoUint32 result; - arg1 = (wallet__Entry *)jarg1; - result = (GoUint32)SKY_wallet_Entry_Verify(arg1); + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_file_InitDataDir(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Entry_VerifyPublic(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_UserHome(void * jarg1) { unsigned int jresult ; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; + GoString_ *arg1 = (GoString_ *) 0 ; GoUint32 result; - arg1 = (wallet__Entry *)jarg1; - result = (GoUint32)SKY_wallet_Entry_VerifyPublic(arg1); + arg1 = (GoString_ *)jarg1; + result = (GoUint32)SKY_file_UserHome(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateAddresses(void * jarg1, void * jarg2, long long jarg3, unsigned char jarg4, void * jarg5) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_ResolveResourceDirectory(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString *argp1 ; + GoUint32 result; + + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_file_ResolveResourceDirectory(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_DetermineResourcePath(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; GoString arg1 ; GoString arg2 ; - GoInt arg3 ; - GoUint8 arg4 ; - ReadableWallet__Handle *arg5 = (ReadableWallet__Handle *) 0 ; + GoString arg3 ; + GoString_ *arg4 = (GoString_ *) 0 ; GoString *argp1 ; GoString *argp2 ; + GoString *argp3 ; GoUint32 result; argp1 = (GoString *)jarg1; @@ -7026,1438 +8342,1417 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateAddresses(vo return 0; } arg2 = *argp2; - arg3 = (GoInt)jarg3; - arg4 = (GoUint8)jarg4; - arg5 = (ReadableWallet__Handle *)jarg5; - result = (GoUint32)SKY_wallet_CreateAddresses(arg1,arg2,arg3,arg4,arg5); + argp3 = (GoString *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg3 = *argp3; + arg4 = (GoString_ *)jarg4; + result = (GoUint32)SKY_file_DetermineResourcePath(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_GetSkycoinWalletEntry(cipher_PubKey* jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetWalletOutputsFromFile(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - ReadableEntry__Handle *arg3 = (ReadableEntry__Handle *) 0 ; + WebRpcClient__Handle arg1 ; + GoString arg2 ; + ReadableOutputSet_Handle *arg3 = (ReadableOutputSet_Handle *) 0 ; + GoString *argp2 ; GoUint32 result; - arg1 = (cipher_PubKey*)jarg1; - arg2 = (cipher__SecKey *)jarg2; - arg3 = (ReadableEntry__Handle *)jarg3; - result = (GoUint32)SKY_wallet_GetSkycoinWalletEntry((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2,arg3); - jresult = result; - { - //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey - free(arg1); - } - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_GetBitcoinWalletEntry(cipher_PubKey* jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - ReadableEntry__Handle *arg3 = (ReadableEntry__Handle *) 0 ; - GoUint32 result; - - arg1 = (cipher_PubKey*)jarg1; - arg2 = (cipher__SecKey *)jarg2; - arg3 = (ReadableEntry__Handle *)jarg3; - result = (GoUint32)SKY_wallet_GetBitcoinWalletEntry((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2,arg3); - jresult = result; { - //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey - free(arg1); + SWIG_AsVal_long(jarg1, (long*)&arg1); } - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Print(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - GoString arg2 ; - GoString *argp2 ; - GoUint32 result; - - arg1 = (secp256k1go__XYZ *)jarg1; argp2 = (GoString *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); return 0; } arg2 = *argp2; - result = (GoUint32)SKY_secp256k1go_XYZ_Print(arg1,arg2); + arg3 = (ReadableOutputSet_Handle *)jarg3; + result = (GoUint32)SKY_cli_GetWalletOutputsFromFile(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_SetXY(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetWalletOutputs(void * jarg1, void * jarg3) { unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; + WebRpcClient__Handle arg1 ; + Wallet__Handle *arg2 = (Wallet__Handle *) 0 ; + ReadableOutputSet_Handle *arg3 = (ReadableOutputSet_Handle *) 0 ; + Handle temp2 ; GoUint32 result; - arg1 = (secp256k1go__XYZ *)jarg1; - arg2 = (secp256k1go__XY *)jarg2; - result = (GoUint32)SKY_secp256k1go_XYZ_SetXY(arg1,arg2); + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg3 = (ReadableOutputSet_Handle *)jarg3; + result = (GoUint32)SKY_cli_GetWalletOutputs(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_IsInfinity(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_testutil_MakeAddress(void * jarg1) { unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; GoUint32 result; - arg1 = (secp256k1go__XYZ *)jarg1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_secp256k1go_XYZ_IsInfinity(arg1,arg2); + arg1 = (cipher__Address *)jarg1; + result = (GoUint32)SKY_testutil_MakeAddress(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_IsValid(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_String(void * jarg1, void * jarg2) { unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; - arg1 = (secp256k1go__XYZ *)jarg1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_secp256k1go_XYZ_IsValid(arg1,arg2); + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_secp256k1go_Field_String(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Normalize(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Print(void * jarg1, void * jarg2) { unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoString arg2 ; + GoString *argp2 ; GoUint32 result; - arg1 = (secp256k1go__XYZ *)jarg1; - result = (GoUint32)SKY_secp256k1go_XYZ_Normalize(arg1); + arg1 = (secp256k1go__Field *)jarg1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_secp256k1go_Field_Print(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Equals(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetB32(void * jarg1, void * jarg2) { unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; - GoUint8 *arg3 = (GoUint8 *) 0 ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoSlice arg2 ; + GoSlice *argp2 ; GoUint32 result; - arg1 = (secp256k1go__XYZ *)jarg1; - arg2 = (secp256k1go__XYZ *)jarg2; - arg3 = (GoUint8 *)jarg3; - result = (GoUint32)SKY_secp256k1go_XYZ_Equals(arg1,arg2,arg3); + arg1 = (secp256k1go__Field *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_secp256k1go_Field_SetB32(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_ECmult(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetBytes(void * jarg1, void * jarg2) { unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; - Number_Handle arg3 ; - Number_Handle arg4 ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoSlice arg2 ; + GoSlice *argp2 ; GoUint32 result; - arg1 = (secp256k1go__XYZ *)jarg1; - arg2 = (secp256k1go__XYZ *)jarg2; - { - SWIG_AsVal_long(jarg3, (long*)&arg3); - } - { - SWIG_AsVal_long(jarg4, (long*)&arg4); + arg1 = (secp256k1go__Field *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; } - result = (GoUint32)SKY_secp256k1go_XYZ_ECmult(arg1,arg2,arg3,arg4); + arg2 = *argp2; + result = (GoUint32)SKY_secp256k1go_Field_SetBytes(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Neg(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetHex(void * jarg1, void * jarg2) { unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoString arg2 ; + GoString *argp2 ; GoUint32 result; - arg1 = (secp256k1go__XYZ *)jarg1; - arg2 = (secp256k1go__XYZ *)jarg2; - result = (GoUint32)SKY_secp256k1go_XYZ_Neg(arg1,arg2); + arg1 = (secp256k1go__Field *)jarg1; + argp2 = (GoString *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_secp256k1go_Field_SetHex(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Double(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_IsOdd(void * jarg1, void * jarg2) { unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; GoUint32 result; - arg1 = (secp256k1go__XYZ *)jarg1; - arg2 = (secp256k1go__XYZ *)jarg2; - result = (GoUint32)SKY_secp256k1go_XYZ_Double(arg1,arg2); + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_secp256k1go_Field_IsOdd(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_AddXY(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_IsZero(void * jarg1, void * jarg2) { unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XY *arg3 = (secp256k1go__XY *) 0 ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; GoUint32 result; - arg1 = (secp256k1go__XYZ *)jarg1; - arg2 = (secp256k1go__XYZ *)jarg2; - arg3 = (secp256k1go__XY *)jarg3; - result = (GoUint32)SKY_secp256k1go_XYZ_AddXY(arg1,arg2,arg3); + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_secp256k1go_Field_IsZero(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Add(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetInt(void * jarg1, unsigned int jarg2) { unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XYZ *arg3 = (secp256k1go__XYZ *) 0 ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoUint32 arg2 ; GoUint32 result; - arg1 = (secp256k1go__XYZ *)jarg1; - arg2 = (secp256k1go__XYZ *)jarg2; - arg3 = (secp256k1go__XYZ *)jarg3; - result = (GoUint32)SKY_secp256k1go_XYZ_Add(arg1,arg2,arg3); + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (GoUint32)jarg2; + result = (GoUint32)SKY_secp256k1go_Field_SetInt(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_ECmultGen(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Normalize(void * jarg1) { unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - Number_Handle arg2 ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; GoUint32 result; - arg1 = (secp256k1go__XYZ *)jarg1; - { - SWIG_AsVal_long(jarg2, (long*)&arg2); - } - result = (GoUint32)SKY_secp256k1go_ECmultGen(arg1,arg2); + arg1 = (secp256k1go__Field *)jarg1; + result = (GoUint32)SKY_secp256k1go_Field_Normalize(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_Sha256Xor_Encrypt(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_GetB32(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; GoSlice *argp2 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; + arg1 = (secp256k1go__Field *)jarg1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg2 = *argp2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_encrypt_Sha256Xor_Encrypt(arg1,arg2,arg3); + result = (GoUint32)SKY_secp256k1go_Field_GetB32(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_Sha256Xor_Decrypt(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Equals(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + GoUint8 *arg3 = (GoUint8 *) 0 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_encrypt_Sha256Xor_Decrypt(arg1,arg2,arg3); + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + arg3 = (GoUint8 *)jarg3; + result = (GoUint32)SKY_secp256k1go_Field_Equals(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_droplet_FromString(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetAdd(void * jarg1, void * jarg2) { unsigned int jresult ; - GoString arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoString *argp1 ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_droplet_FromString(arg1,arg2); + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + result = (GoUint32)SKY_secp256k1go_Field_SetAdd(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_droplet_ToString(unsigned long long jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_MulInt(void * jarg1, unsigned int jarg2) { unsigned int jresult ; - GoUint64 arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoUint32 arg2 ; GoUint32 result; - arg1 = (GoUint64)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_droplet_ToString(arg1,arg2); + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (GoUint32)jarg2; + result = (GoUint32)SKY_secp256k1go_Field_MulInt(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CryptoTypeFromString(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Negate(void * jarg1, void * jarg2, unsigned int jarg3) { unsigned int jresult ; - GoString arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString *argp1 ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + GoUint32 arg3 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_wallet_CryptoTypeFromString(arg1,arg2); + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + arg3 = (GoUint32)jarg3; + result = (GoUint32)SKY_secp256k1go_Field_Negate(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_handle_close(void * jarg1) { - Handle arg1 ; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - SKY_handle_close(arg1); -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_handle_copy(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Inv(void * jarg1, void * jarg2) { unsigned int jresult ; - Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; GoUint32 result; - { - arg2 = &temp2; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - result = (GoUint32)SKY_handle_copy(arg1,arg2); + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + result = (GoUint32)SKY_secp256k1go_Field_Inv(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_logging_EnableColors() { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Sqrt(void * jarg1, void * jarg2) { unsigned int jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; GoUint32 result; - result = (GoUint32)SKY_logging_EnableColors(); + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + result = (GoUint32)SKY_secp256k1go_Field_Sqrt(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_logging_DisableColors() { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_InvVar(void * jarg1, void * jarg2) { unsigned int jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; GoUint32 result; - result = (GoUint32)SKY_logging_DisableColors(); + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + result = (GoUint32)SKY_secp256k1go_Field_InvVar(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_logging_Disable() { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Mul(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + secp256k1go__Field *arg3 = (secp256k1go__Field *) 0 ; GoUint32 result; - result = (GoUint32)SKY_logging_Disable(); + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + arg3 = (secp256k1go__Field *)jarg3; + result = (GoUint32)SKY_secp256k1go_Field_Mul(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_map_Get(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Sqr(void * jarg1, void * jarg2) { unsigned int jresult ; - GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; - GoString arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - GoString *argp2 ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; GoUint32 result; - arg1 = (GoStringMap_ *)jarg1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - arg3 = (GoString_ *)jarg3; - result = (GoUint32)SKY_map_Get(arg1,arg2,arg3); + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + result = (GoUint32)SKY_secp256k1go_Field_Sqr(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_skycoin_SKY_map_HasKey(void * jarg1, void * jarg2) { - unsigned char jresult ; - GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; - GoString arg2 ; - GoString *argp2 ; - GoUint8 result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_scrypt_Key(void * jarg1, void * jarg2, long long jarg3, long long jarg4, long long jarg5, long long jarg6, void * jarg7) { + unsigned int jresult ; + GoSlice arg1 ; + GoSlice arg2 ; + GoInt arg3 ; + GoInt arg4 ; + GoInt arg5 ; + GoInt arg6 ; + coin__UxArray *arg7 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoSlice *argp2 ; + GoUint32 result; - arg1 = (GoStringMap_ *)jarg1; - argp2 = (GoString *)jarg2; + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + argp2 = (GoSlice *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg2 = *argp2; - result = (GoUint8)SKY_map_HasKey(arg1,arg2); + arg3 = (GoInt)jarg3; + arg4 = (GoInt)jarg4; + arg5 = (GoInt)jarg5; + arg6 = (GoInt)jarg6; + arg7 = (coin__UxArray *)jarg7; + result = (GoUint32)SKY_scrypt_Key(arg1,arg2,arg3,arg4,arg5,arg6,arg7); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_map_Close(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Ripemd160_Set(void * jarg1, void * jarg2) { unsigned int jresult ; - GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; + cipher__Ripemd160 *arg1 = (cipher__Ripemd160 *) 0 ; + GoSlice arg2 ; + GoSlice *argp2 ; GoUint32 result; - arg1 = (GoStringMap_ *)jarg1; - result = (GoUint32)SKY_map_Close(arg1); + arg1 = (cipher__Ripemd160 *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_cipher_Ripemd160_Set((GoUint8_ (*)[20])arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DecodeBase58Address(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_HashRipemd160(void * jarg1, void * jarg2) { unsigned int jresult ; - GoString arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - GoString *argp1 ; + GoSlice arg1 ; + cipher__Ripemd160 *arg2 = (cipher__Ripemd160 *) 0 ; + GoSlice *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - arg2 = (cipher__Address *)jarg2; - result = (GoUint32)SKY_cipher_DecodeBase58Address(arg1,arg2); + arg2 = (cipher__Ripemd160 *)jarg2; + result = (GoUint32)SKY_cipher_HashRipemd160(arg1,(GoUint8_ (*)[20])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddressFromBytes(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Set(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - GoSlice *argp1 ; + cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; + GoSlice arg2 ; + GoSlice *argp2 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { + arg1 = (cipher__SHA256 *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } - arg1 = *argp1; - arg2 = (cipher__Address *)jarg2; - result = (GoUint32)SKY_cipher_AddressFromBytes(arg1,arg2); + arg2 = *argp2; + result = (GoUint32)SKY_cipher_SHA256_Set((GoUint8_ (*)[32])arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddressFromPubKey(cipher_PubKey* jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Hex(void * jarg1, void * jarg2) { unsigned int jresult ; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; + cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; - arg1 = (cipher_PubKey*)jarg1; - arg2 = (cipher__Address *)jarg2; - result = (GoUint32)SKY_cipher_AddressFromPubKey((GoUint8_ (*)[33])arg1,arg2); + arg1 = (cipher__SHA256 *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cipher_SHA256_Hex((GoUint8_ (*)[32])arg1,arg2); jresult = result; - { - //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey - free(arg1); - } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddressFromSecKey(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Xor(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; + cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; GoUint32 result; - arg1 = (cipher__SecKey *)jarg1; - arg2 = (cipher__Address *)jarg2; - result = (GoUint32)SKY_cipher_AddressFromSecKey((GoUint8_ (*)[32])arg1,arg2); + arg1 = (cipher__SHA256 *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + arg3 = (cipher__SHA256 *)jarg3; + result = (GoUint32)SKY_cipher_SHA256_Xor((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[32])arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinDecodeBase58Address(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SumSHA256(void * jarg1, void * jarg2) { unsigned int jresult ; - GoString arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - GoString *argp1 ; + GoSlice arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoSlice *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - arg2 = (cipher__Address *)jarg2; - result = (GoUint32)SKY_cipher_BitcoinDecodeBase58Address(arg1,arg2); + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_cipher_SumSHA256(arg1,(GoUint8_ (*)[32])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Null(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256FromHex(void * jarg1, void * jarg2) { unsigned int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; + GoString arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoString *argp1 ; GoUint32 result; - arg1 = (cipher__Address *)jarg1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_cipher_Address_Null(arg1,arg2); + argp1 = (GoString *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_cipher_SHA256FromHex(arg1,(GoUint8_ (*)[32])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Bytes(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DoubleSHA256(void * jarg1, void * jarg2) { unsigned int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoSlice *argp1 ; GoUint32 result; - arg1 = (cipher__Address *)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_cipher_Address_Bytes(arg1,arg2); + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_cipher_DoubleSHA256(arg1,(GoUint8_ (*)[32])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_BitcoinBytes(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddSHA256(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; + cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; GoUint32 result; - arg1 = (cipher__Address *)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_cipher_Address_BitcoinBytes(arg1,arg2); + arg1 = (cipher__SHA256 *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + arg3 = (cipher__SHA256 *)jarg3; + result = (GoUint32)SKY_cipher_AddSHA256((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[32])arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Verify(void * jarg1, cipher_PubKey* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Merkle(void * jarg1, void * jarg2) { unsigned int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + GoSlice *arg1 = (GoSlice *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; GoUint32 result; - arg1 = (cipher__Address *)jarg1; - arg2 = (cipher_PubKey*)jarg2; - result = (GoUint32)SKY_cipher_Address_Verify(arg1,(GoUint8_ (*)[33])arg2); + arg1 = (GoSlice *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_cipher_Merkle(arg1,(GoUint8_ (*)[32])arg2); jresult = result; - { - //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey - free(arg2); - } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_String(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Null(void * jarg1, void * jarg2) { unsigned int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; + cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; GoUint32 result; - arg1 = (cipher__Address *)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cipher_Address_String(arg1,arg2); + arg1 = (cipher__SHA256 *)jarg1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_cipher_SHA256_Null((GoUint8_ (*)[32])arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_BitcoinString(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Create_Transaction() { unsigned int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; + Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; + Handle temp1 ; GoUint32 result; - arg1 = (cipher__Address *)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cipher_Address_BitcoinString(arg1,arg2); + { + arg1 = &temp1; + } + result = (GoUint32)SKY_coin_Create_Transaction(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Checksum(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Copy(void * jarg1) { unsigned int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - cipher__Checksum *arg2 = (cipher__Checksum *) 0 ; + Transaction__Handle arg1 ; + Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; + Handle temp2 ; GoUint32 result; - arg1 = (cipher__Address *)jarg1; - arg2 = (cipher__Checksum *)jarg2; - result = (GoUint32)SKY_cipher_Address_Checksum(arg1,(GoUint8_ (*)[4])arg2); + { + arg2 = &temp2; + } + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_coin_Transaction_Copy(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_BitcoinChecksum(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetTransactionObject(void * jarg1, void * jarg2) { unsigned int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - cipher__Checksum *arg2 = (cipher__Checksum *) 0 ; + Transaction__Handle arg1 ; + coin__Transaction **arg2 = (coin__Transaction **) 0 ; GoUint32 result; - arg1 = (cipher__Address *)jarg1; - arg2 = (cipher__Checksum *)jarg2; - result = (GoUint32)SKY_cipher_Address_BitcoinChecksum(arg1,(GoUint8_ (*)[4])arg2); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (coin__Transaction **)jarg2; + result = (GoUint32)SKY_coin_GetTransactionObject(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddressFromPubkey(cipher_PubKey* jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_ResetInputs(void * jarg1, long long jarg2) { unsigned int jresult ; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; + Transaction__Handle arg1 ; + GoInt arg2 ; GoUint32 result; - arg1 = (cipher_PubKey*)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cipher_BitcoinAddressFromPubkey((GoUint8_ (*)[33])arg1,arg2); - jresult = result; { - //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey - free(arg1); + SWIG_AsVal_long(jarg1, (long*)&arg1); } + arg2 = (GoInt)jarg2; + result = (GoUint32)SKY_coin_Transaction_ResetInputs(arg1,arg2); + jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinWalletImportFormatFromSeckey(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetInputsCount(void * jarg1, void * jarg2) { unsigned int jresult ; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; + Transaction__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; GoUint32 result; - arg1 = (cipher__SecKey *)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cipher_BitcoinWalletImportFormatFromSeckey((GoUint8_ (*)[32])arg1,arg2); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_coin_Transaction_GetInputsCount(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddressFromBytes(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetInputAt(void * jarg1, long long jarg2, void * jarg3) { unsigned int jresult ; - GoSlice arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - GoSlice *argp1 ; + Transaction__Handle arg1 ; + GoInt arg2 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; - arg2 = (cipher__Address *)jarg2; - result = (GoUint32)SKY_cipher_BitcoinAddressFromBytes(arg1,arg2); + arg2 = (GoInt)jarg2; + arg3 = (cipher__SHA256 *)jarg3; + result = (GoUint32)SKY_coin_Transaction_GetInputAt(arg1,arg2,(GoUint8_ (*)[32])arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKeyFromWalletImportFormat(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SetInputAt(void * jarg1, long long jarg2, void * jarg3) { unsigned int jresult ; - GoString arg1 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - GoString *argp1 ; + Transaction__Handle arg1 ; + GoInt arg2 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg1 = *argp1; - arg2 = (cipher__SecKey *)jarg2; - result = (GoUint32)SKY_cipher_SecKeyFromWalletImportFormat(arg1,(GoUint8_ (*)[32])arg2); + arg2 = (GoInt)jarg2; + arg3 = (cipher__SHA256 *)jarg3; + result = (GoUint32)SKY_coin_Transaction_SetInputAt(arg1,arg2,(GoUint8_ (*)[32])arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_JsonEncode_Handle(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetOutputsCount(void * jarg1, void * jarg2) { unsigned int jresult ; - Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; + Transaction__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; GoUint32 result; { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_JsonEncode_Handle(arg1,arg2); + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_coin_Transaction_GetOutputsCount(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Progress_GetCurrent(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetOutputAt(void * jarg1, long long jarg2, void * jarg3) { unsigned int jresult ; - Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; + Transaction__Handle arg1 ; + GoInt arg2 ; + coin__TransactionOutput *arg3 = (coin__TransactionOutput *) 0 ; GoUint32 result; { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_Handle_Progress_GetCurrent(arg1,arg2); + arg2 = (GoInt)jarg2; + arg3 = (coin__TransactionOutput *)jarg3; + result = (GoUint32)SKY_coin_Transaction_GetOutputAt(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Block_GetHeadSeq(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SetOutputAt(void * jarg1, long long jarg2, void * jarg3) { unsigned int jresult ; - Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; + Transaction__Handle arg1 ; + GoInt arg2 ; + coin__TransactionOutput *arg3 = (coin__TransactionOutput *) 0 ; GoUint32 result; { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_Handle_Block_GetHeadSeq(arg1,arg2); + arg2 = (GoInt)jarg2; + arg3 = (coin__TransactionOutput *)jarg3; + result = (GoUint32)SKY_coin_Transaction_SetOutputAt(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Block_GetHeadHash(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetSignaturesCount(void * jarg1, void * jarg2) { unsigned int jresult ; - Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; + Transaction__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; GoUint32 result; { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_Handle_Block_GetHeadHash(arg1,arg2); + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_coin_Transaction_GetSignaturesCount(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Block_GetPreviousBlockHash(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetSignatureAt(void * jarg1, long long jarg2, void * jarg3) { unsigned int jresult ; - Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; + Transaction__Handle arg1 ; + GoInt arg2 ; + cipher__Sig *arg3 = (cipher__Sig *) 0 ; GoUint32 result; { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_Handle_Block_GetPreviousBlockHash(arg1,arg2); + arg2 = (GoInt)jarg2; + arg3 = (cipher__Sig *)jarg3; + result = (GoUint32)SKY_coin_Transaction_GetSignatureAt(arg1,arg2,(GoUint8_ (*)[65])arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Blocks_GetAt(void * jarg1, unsigned long long jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SetSignatureAt(void * jarg1, long long jarg2, void * jarg3) { unsigned int jresult ; - Handle arg1 ; - GoUint64 arg2 ; - Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; + Transaction__Handle arg1 ; + GoInt arg2 ; + cipher__Sig *arg3 = (cipher__Sig *) 0 ; GoUint32 result; - { - arg3 = &temp3; - } { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (GoUint64)jarg2; - result = (GoUint32)SKY_Handle_Blocks_GetAt(arg1,arg2,arg3); + arg2 = (GoInt)jarg2; + arg3 = (cipher__Sig *)jarg3; + result = (GoUint32)SKY_coin_Transaction_SetSignatureAt(arg1,arg2,(GoUint8_ (*)[65])arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Blocks_GetCount(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_PushSignature(void * jarg1, void * jarg2) { unsigned int jresult ; - Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; + Transaction__Handle arg1 ; + cipher__Sig *arg2 = (cipher__Sig *) 0 ; GoUint32 result; { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_Handle_Blocks_GetCount(arg1,arg2); + arg2 = (cipher__Sig *)jarg2; + result = (GoUint32)SKY_coin_Transaction_PushSignature(arg1,(GoUint8_ (*)[65])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Connections_GetCount(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_ResetOutputs(void * jarg1, long long jarg2) { unsigned int jresult ; - Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; + Transaction__Handle arg1 ; + GoInt arg2 ; GoUint32 result; { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_Handle_Connections_GetCount(arg1,arg2); + arg2 = (GoInt)jarg2; + result = (GoUint32)SKY_coin_Transaction_ResetOutputs(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Strings_GetCount(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_ResetSignatures(void * jarg1, long long jarg2) { unsigned int jresult ; - Strings__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; + Transaction__Handle arg1 ; + GoInt arg2 ; GoUint32 result; { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (GoUint32 *)jarg2; - result = (GoUint32)SKY_Handle_Strings_GetCount(arg1,arg2); + arg2 = (GoInt)jarg2; + result = (GoUint32)SKY_coin_Transaction_ResetSignatures(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Strings_Sort(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Verify(void * jarg1) { unsigned int jresult ; - Strings__Handle arg1 ; + Transaction__Handle arg1 ; GoUint32 result; { SWIG_AsVal_long(jarg1, (long*)&arg1); } - result = (GoUint32)SKY_Handle_Strings_Sort(arg1); + result = (GoUint32)SKY_coin_Transaction_Verify(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Strings_GetAt(void * jarg1, long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_VerifyInput(void * jarg1, void * jarg2) { unsigned int jresult ; - Strings__Handle arg1 ; - GoInt arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; + Transaction__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoUint32 result; { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (GoInt)jarg2; - arg3 = (GoString_ *)jarg3; - result = (GoUint32)SKY_Handle_Strings_GetAt(arg1,arg2,arg3); + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_coin_Transaction_VerifyInput(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletDir(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_PushInput(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Client__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; + Transaction__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint16 *arg3 = (GoUint16 *) 0 ; GoUint32 result; { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_api_Handle_Client_GetWalletDir(arg1,arg2); + arg2 = (cipher__SHA256 *)jarg2; + arg3 = (GoUint16 *)jarg3; + result = (GoUint32)SKY_coin_Transaction_PushInput(arg1,(GoUint8_ (*)[32])arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletFileName(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_TransactionOutput_UxID(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - WalletResponse__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; GoUint32 result; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_api_Handle_Client_GetWalletFileName(arg1,arg2); + arg1 = (coin__TransactionOutput *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + arg3 = (cipher__SHA256 *)jarg3; + result = (GoUint32)SKY_coin_TransactionOutput_UxID(arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[32])arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletLabel(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_PushOutput(void * jarg1, void * jarg2, unsigned long long jarg3, unsigned long long jarg4) { unsigned int jresult ; - WalletResponse__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; + Transaction__Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoUint64 arg3 ; + GoUint64 arg4 ; GoUint32 result; { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_api_Handle_Client_GetWalletLabel(arg1,arg2); + arg2 = (cipher__Address *)jarg2; + arg3 = (GoUint64)jarg3; + arg4 = (GoUint64)jarg4; + result = (GoUint32)SKY_coin_Transaction_PushOutput(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletFullPath(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SignInputs(void * jarg1, void * jarg2) { unsigned int jresult ; - Client__Handle arg1 ; - WalletResponse__Handle arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; + Transaction__Handle arg1 ; + GoSlice arg2 ; + GoSlice *argp2 ; GoUint32 result; { SWIG_AsVal_long(jarg1, (long*)&arg1); } - { - SWIG_AsVal_long(jarg2, (long*)&arg2); + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; } - arg3 = (GoString_ *)jarg3; - result = (GoUint32)SKY_api_Handle_Client_GetWalletFullPath(arg1,arg2,arg3); + arg2 = *argp2; + result = (GoUint32)SKY_coin_Transaction_SignInputs(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletMeta(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Size(void * jarg1, void * jarg2) { unsigned int jresult ; - Wallet__Handle arg1 ; - GoStringMap_ *arg2 = (GoStringMap_ *) 0 ; + Transaction__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; GoUint32 result; { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (GoStringMap_ *)jarg2; - result = (GoUint32)SKY_api_Handle_GetWalletMeta(arg1,arg2); + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_coin_Transaction_Size(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletEntriesCount(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Hash(void * jarg1, void * jarg2) { unsigned int jresult ; - Wallet__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; + Transaction__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; GoUint32 result; { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (GoUint32 *)jarg2; - result = (GoUint32)SKY_api_Handle_GetWalletEntriesCount(arg1,arg2); + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_Transaction_Hash(arg1,(GoUint8_ (*)[32])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletResponseEntriesCount(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SizeHash(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - WalletResponse__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; + Transaction__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; GoUint32 result; { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (GoUint32 *)jarg2; - result = (GoUint32)SKY_api_Handle_Client_GetWalletResponseEntriesCount(arg1,arg2); + arg2 = (GoInt *)jarg2; + arg3 = (cipher__SHA256 *)jarg3; + result = (GoUint32)SKY_coin_Transaction_SizeHash(arg1,arg2,(GoUint8_ (*)[32])arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletGetEntry(void * jarg1, unsigned int jarg2, void * jarg3, cipher_PubKey* jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_TxID(void * jarg1, void * jarg2) { unsigned int jresult ; - Wallet__Handle arg1 ; - GoUint32 arg2 ; - cipher__Address *arg3 = (cipher__Address *) 0 ; - cipher__PubKey *arg4 = (cipher__PubKey *) 0 ; + Transaction__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoUint32 result; { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (GoUint32)jarg2; - arg3 = (cipher__Address *)jarg3; - arg4 = (cipher_PubKey*)jarg4; - result = (GoUint32)SKY_api_Handle_WalletGetEntry(arg1,arg2,arg3,(GoUint8_ (*)[33])arg4); + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_coin_Transaction_TxID(arg1,arg2); jresult = result; - { - //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey - free(arg4); - } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletResponseGetEntry(void * jarg1, unsigned int jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_TxIDHex(void * jarg1, void * jarg2) { unsigned int jresult ; - WalletResponse__Handle arg1 ; - GoUint32 arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - GoString_ *arg4 = (GoString_ *) 0 ; + Transaction__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (GoUint32)jarg2; - arg3 = (GoString_ *)jarg3; - arg4 = (GoString_ *)jarg4; - result = (GoUint32)SKY_api_Handle_WalletResponseGetEntry(arg1,arg2,arg3,arg4); + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_coin_Transaction_TxIDHex(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletResponseIsEncrypted(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_UpdateHeader(void * jarg1) { unsigned int jresult ; - WalletResponse__Handle arg1 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; + Transaction__Handle arg1 ; GoUint32 result; { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_api_Handle_WalletResponseIsEncrypted(arg1,arg2); + result = (GoUint32)SKY_coin_Transaction_UpdateHeader(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletResponseGetCryptoType(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_HashInner(void * jarg1, void * jarg2) { unsigned int jresult ; - WalletResponse__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; + Transaction__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; GoUint32 result; { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_api_Handle_WalletResponseGetCryptoType(arg1,arg2); + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_Transaction_HashInner(arg1,(GoUint8_ (*)[32])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletsResponseGetCount(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Serialize(void * jarg1, void * jarg2) { unsigned int jresult ; - Wallets__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; + Transaction__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoUint32 result; { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (GoUint32 *)jarg2; - result = (GoUint32)SKY_api_Handle_WalletsResponseGetCount(arg1,arg2); + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_coin_Transaction_Serialize(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletsResponseGetAt(void * jarg1, unsigned int jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_TransactionDeserialize(void * jarg1) { unsigned int jresult ; - Wallets__Handle arg1 ; - GoUint32 arg2 ; - WalletResponse__Handle *arg3 = (WalletResponse__Handle *) 0 ; + GoSlice arg1 ; + Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; + GoSlice *argp1 ; + Handle temp2 ; GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + arg2 = &temp2; } - arg2 = (GoUint32)jarg2; - arg3 = (WalletResponse__Handle *)jarg3; - result = (GoUint32)SKY_api_Handle_WalletsResponseGetAt(arg1,arg2,arg3); + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + result = (GoUint32)SKY_coin_TransactionDeserialize(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletFolderAddress(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_OutputHours(void * jarg1, void * jarg2) { unsigned int jresult ; - Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; + Transaction__Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; GoUint32 result; { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_api_Handle_GetWalletFolderAddress(arg1,arg2); + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_coin_Transaction_OutputHours(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletSeed(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Create_Transactions() { unsigned int jresult ; - Wallet__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; + Transactions__Handle *arg1 = (Transactions__Handle *) 0 ; + Handle temp1 ; GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + arg1 = &temp1; } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_api_Handle_GetWalletSeed(arg1,arg2); + result = (GoUint32)SKY_coin_Create_Transactions(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletLastSeed(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetTransactionsObject(void * jarg1, void * jarg2) { unsigned int jresult ; - Wallet__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; + Transactions__Handle arg1 ; + coin__UxArray **arg2 = (coin__UxArray **) 0 ; GoUint32 result; { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_api_Handle_GetWalletLastSeed(arg1,arg2); + arg2 = (coin__UxArray **)jarg2; + result = (GoUint32)SKY_coin_GetTransactionsObject(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetBuildInfoData(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Length(void * jarg1, void * jarg2) { unsigned int jresult ; - BuildInfo_Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString_ *arg3 = (GoString_ *) 0 ; - GoString_ *arg4 = (GoString_ *) 0 ; + Transactions__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; GoUint32 result; { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (GoString_ *)jarg2; - arg3 = (GoString_ *)jarg3; - arg4 = (GoString_ *)jarg4; - result = (GoUint32)SKY_api_Handle_GetBuildInfoData(arg1,arg2,arg3,arg4); + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_coin_Transactions_Length(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_ripemd160_New() { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Add(void * jarg1, void * jarg2) { unsigned int jresult ; - Hash_Handle *arg1 = (Hash_Handle *) 0 ; - Handle temp1 ; + Transactions__Handle arg1 ; + Transaction__Handle arg2 ; GoUint32 result; { - arg1 = &temp1; + SWIG_AsVal_long(jarg1, (long*)&arg1); } - result = (GoUint32)SKY_ripemd160_New(arg1); + { + SWIG_AsVal_long(jarg2, (long*)&arg2); + } + result = (GoUint32)SKY_coin_Transactions_Add(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_ripemd160_Write(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Fees(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - Hash_Handle arg1 ; - GoSlice arg2 ; - GoInt *arg3 = (GoInt *) 0 ; - GoSlice *argp2 ; + Transactions__Handle arg1 ; + FeeCalculator *arg2 = (FeeCalculator *) 0 ; + GoUint64 *arg3 = (GoUint64 *) 0 ; GoUint32 result; { SWIG_AsVal_long(jarg1, (long*)&arg1); } - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (GoInt *)jarg3; - result = (GoUint32)SKY_ripemd160_Write(arg1,arg2,arg3); + arg2 = (FeeCalculator *)jarg2; + arg3 = (GoUint64 *)jarg3; + result = (GoUint32)SKY_coin_Transactions_Fees(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_ripemd160_Sum(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_GetAt(void * jarg1, long long jarg2) { unsigned int jresult ; - Hash_Handle arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice *argp2 ; + Transactions__Handle arg1 ; + GoInt arg2 ; + Transaction__Handle *arg3 = (Transaction__Handle *) 0 ; + Handle temp3 ; GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + arg3 = &temp3; } - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = *argp2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_ripemd160_Sum(arg1,arg2,arg3); + arg2 = (GoInt)jarg2; + result = (GoUint32)SKY_coin_Transactions_GetAt(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_Create() { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Hashes(void * jarg1, void * jarg2) { unsigned int jresult ; - Number_Handle *arg1 = (Number_Handle *) 0 ; - Handle temp1 ; + Transactions__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoUint32 result; { - arg1 = &temp1; + SWIG_AsVal_long(jarg1, (long*)&arg1); } - result = (GoUint32)SKY_secp256k1go_Number_Create(arg1); + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_coin_Transactions_Hashes(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_Print(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Size(void * jarg1, void * jarg2) { unsigned int jresult ; - Number_Handle arg1 ; - GoString arg2 ; - GoString *argp2 ; + Transactions__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; GoUint32 result; { SWIG_AsVal_long(jarg1, (long*)&arg1); } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_secp256k1go_Number_Print(arg1,arg2); + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_coin_Transactions_Size(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_SetHex(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_TruncateBytesTo(void * jarg1, long long jarg2) { unsigned int jresult ; - Number_Handle arg1 ; - GoString arg2 ; - GoString *argp2 ; + Transactions__Handle arg1 ; + GoInt arg2 ; + Transactions__Handle *arg3 = (Transactions__Handle *) 0 ; + Handle temp3 ; GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + arg3 = &temp3; } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; + { + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = *argp2; - result = (GoUint32)SKY_secp256k1go_Number_SetHex(arg1,arg2); + arg2 = (GoInt)jarg2; + result = (GoUint32)SKY_coin_Transactions_TruncateBytesTo(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_IsOdd(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortTransactions(void * jarg1, void * jarg2) { unsigned int jresult ; - Number_Handle arg1 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; + Transactions__Handle arg1 ; + FeeCalculator *arg2 = (FeeCalculator *) 0 ; + Transactions__Handle *arg3 = (Transactions__Handle *) 0 ; + Handle temp3 ; GoUint32 result; + { + arg3 = &temp3; + } { SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_secp256k1go_Number_IsOdd(arg1,arg2); + arg2 = (FeeCalculator *)jarg2; + result = (GoUint32)SKY_coin_SortTransactions(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_IsEqual(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewSortableTransactions(void * jarg1, void * jarg2) { unsigned int jresult ; - Number_Handle arg1 ; - Number_Handle arg2 ; - GoUint8 *arg3 = (GoUint8 *) 0 ; + Transactions__Handle arg1 ; + FeeCalculator *arg2 = (FeeCalculator *) 0 ; + SortableTransactionResult_Handle *arg3 = (SortableTransactionResult_Handle *) 0 ; + Handle temp3 ; GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + arg3 = &temp3; } { - SWIG_AsVal_long(jarg2, (long*)&arg2); + SWIG_AsVal_long(jarg1, (long*)&arg1); } - arg3 = (GoUint8 *)jarg3; - result = (GoUint32)SKY_secp256k1go_Number_IsEqual(arg1,arg2,arg3); + arg2 = (FeeCalculator *)jarg2; + result = (GoUint32)SKY_coin_NewSortableTransactions(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_Hash(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortableTransactions_Sort(void * jarg1) { unsigned int jresult ; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + SortableTransactionResult_Handle arg1 ; GoUint32 result; - arg1 = (coin__UxOut *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_coin_UxOut_Hash(arg1,(GoUint8_ (*)[32])arg2); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + result = (GoUint32)SKY_coin_SortableTransactions_Sort(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_SnapshotHash(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortableTransactions_Len(void * jarg1, void * jarg2) { unsigned int jresult ; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + SortableTransactionResult_Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; GoUint32 result; - arg1 = (coin__UxOut *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_coin_UxOut_SnapshotHash(arg1,(GoUint8_ (*)[32])arg2); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_coin_SortableTransactions_Len(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxBody_Hash(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortableTransactions_Less(void * jarg1, long long jarg2, long long jarg3, void * jarg4) { unsigned int jresult ; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + SortableTransactionResult_Handle arg1 ; + GoInt arg2 ; + GoInt arg3 ; + GoUint8 *arg4 = (GoUint8 *) 0 ; GoUint32 result; - arg1 = (coin__UxBody *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_coin_UxBody_Hash(arg1,(GoUint8_ (*)[32])arg2); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoInt)jarg2; + arg3 = (GoInt)jarg3; + arg4 = (GoUint8 *)jarg4; + result = (GoUint32)SKY_coin_SortableTransactions_Less(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_CoinHours(void * jarg1, unsigned long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortableTransactions_Swap(void * jarg1, long long jarg2, long long jarg3) { unsigned int jresult ; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - GoUint64 arg2 ; - GoUint64 *arg3 = (GoUint64 *) 0 ; + SortableTransactionResult_Handle arg1 ; + GoInt arg2 ; + GoInt arg3 ; GoUint32 result; - arg1 = (coin__UxOut *)jarg1; - arg2 = (GoUint64)jarg2; - arg3 = (GoUint64 *)jarg3; - result = (GoUint32)SKY_coin_UxOut_CoinHours(arg1,arg2,arg3); + { + SWIG_AsVal_long(jarg1, (long*)&arg1); + } + arg2 = (GoInt)jarg2; + arg3 = (GoInt)jarg3; + result = (GoUint32)SKY_coin_SortableTransactions_Swap(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Hashes(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_VerifyTransactionCoinsSpending(void * jarg1, void * jarg2) { unsigned int jresult ; coin__UxArray *arg1 = (coin__UxArray *) 0 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -8465,2995 +9760,2059 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Hashes(void arg1 = (coin__UxArray *)jarg1; arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_coin_UxArray_Hashes(arg1,arg2); + result = (GoUint32)SKY_coin_VerifyTransactionCoinsSpending(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_HasDupes(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_VerifyTransactionHoursSpending(unsigned long long jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; + GoUint64 arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; GoUint32 result; - arg1 = (coin__UxArray *)jarg1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_coin_UxArray_HasDupes(arg1,arg2); + arg1 = (GoUint64)jarg1; + arg2 = (coin__UxArray *)jarg2; + arg3 = (coin__UxArray *)jarg3; + result = (GoUint32)SKY_coin_VerifyTransactionHoursSpending(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Sort(void * jarg1) { - unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoUint32 result; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher__Address_isEqual(void * jarg1, void * jarg2) { + int jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + int result; - arg1 = (coin__UxArray *)jarg1; - result = (GoUint32)SKY_coin_UxArray_Sort(arg1); + arg1 = (cipher__Address *)jarg1; + arg2 = (cipher__Address *)jarg2; + result = (int)cipher__Address_isEqual(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Len(void * jarg1, void * jarg2) { - unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoInt *arg2 = (GoInt *) 0 ; - GoUint32 result; - - arg1 = (coin__UxArray *)jarg1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_coin_UxArray_Len(arg1,arg2); - jresult = result; - return jresult; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher__Address_Version(void * jarg1, void * jarg2) { + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoUint8_ arg2 ; + GoUint8_ *argp2 ; + + arg1 = (cipher__Address *)jarg1; + argp2 = (GoUint8_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint8_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Version = arg2; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Less(void * jarg1, long long jarg2, long long jarg3, void * jarg4) { - unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoInt arg2 ; - GoInt arg3 ; - GoUint8 *arg4 = (GoUint8 *) 0 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_cipher__Address_Version(void * jarg1) { + void * jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoUint8_ result; - arg1 = (coin__UxArray *)jarg1; - arg2 = (GoInt)jarg2; - arg3 = (GoInt)jarg3; - arg4 = (GoUint8 *)jarg4; - result = (GoUint32)SKY_coin_UxArray_Less(arg1,arg2,arg3,arg4); - jresult = result; + arg1 = (cipher__Address *)jarg1; + result = ((arg1)->Version); + { + GoUint8_ * resultptr = (GoUint8_ *) malloc(sizeof(GoUint8_)); + memmove(resultptr, &result, sizeof(GoUint8_)); + jresult = resultptr; + } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Swap(void * jarg1, long long jarg2, long long jarg3) { - unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoInt arg2 ; - GoInt arg3 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher__Address_Key(void * jarg1, void * jarg2) { + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoUint8_ *arg2 ; - arg1 = (coin__UxArray *)jarg1; - arg2 = (GoInt)jarg2; - arg3 = (GoInt)jarg3; - result = (GoUint32)SKY_coin_UxArray_Swap(arg1,arg2,arg3); - jresult = result; - return jresult; + arg1 = (cipher__Address *)jarg1; + arg2 = (GoUint8_ *)jarg2; + { + size_t ii; + GoUint8_ *b = (GoUint8_ *) arg1->Key; + for (ii = 0; ii < (size_t)20; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); + } } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Coins(void * jarg1, void * jarg2) { - unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_cipher__Address_Key(void * jarg1) { + void * jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoUint8_ *result = 0 ; - arg1 = (coin__UxArray *)jarg1; - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_coin_UxArray_Coins(arg1,arg2); + arg1 = (cipher__Address *)jarg1; + result = (GoUint8_ *) ((arg1)->Key); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_CoinHours(void * jarg1, unsigned long long jarg2, void * jarg3) { - unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoUint64 arg2 ; - GoUint64 *arg3 = (GoUint64 *) 0 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher__Address() { + void * jresult ; + cipher__Address *result = 0 ; - arg1 = (coin__UxArray *)jarg1; - arg2 = (GoUint64)jarg2; - arg3 = (GoUint64 *)jarg3; - result = (GoUint32)SKY_coin_UxArray_CoinHours(arg1,arg2,arg3); - jresult = result; + result = (cipher__Address *)calloc(1, sizeof(cipher__Address)); + jresult = (void *)result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Sub(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher__Address(void * jarg1) { + cipher__Address *arg1 = (cipher__Address *) 0 ; - arg1 = (coin__UxArray *)jarg1; - arg2 = (coin__UxArray *)jarg2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_coin_UxArray_Sub(arg1,arg2,arg3); - jresult = result; - return jresult; + arg1 = (cipher__Address *)jarg1; + free((char *) arg1); } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Add(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encoder__StructField_Name(void * jarg1, void * jarg2) { + encoder__StructField *arg1 = (encoder__StructField *) 0 ; + GoString_ arg2 ; + GoString_ *argp2 ; - arg1 = (coin__UxArray *)jarg1; - arg2 = (coin__UxArray *)jarg2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_coin_UxArray_Add(arg1,arg2,arg3); - jresult = result; - return jresult; + arg1 = (encoder__StructField *)jarg1; + argp2 = (GoString_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Name = arg2; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewAddressUxOuts(void * jarg1) { - unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - AddressUxOuts_Handle *arg2 = (AddressUxOuts_Handle *) 0 ; - Handle temp2 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_encoder__StructField_Name(void * jarg1) { + void * jresult ; + encoder__StructField *arg1 = (encoder__StructField *) 0 ; + GoString_ result; + arg1 = (encoder__StructField *)jarg1; + result = ((arg1)->Name); { - arg2 = &temp2; + GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); + memmove(resultptr, &result, sizeof(GoString_)); + jresult = resultptr; } - arg1 = (coin__UxArray *)jarg1; - result = (GoUint32)SKY_coin_NewAddressUxOuts(arg1,arg2); - jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Keys(void * jarg1, void * jarg2) { - unsigned int jresult ; - AddressUxOuts_Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encoder__StructField_Kind(void * jarg1, void * jarg2) { + encoder__StructField *arg1 = (encoder__StructField *) 0 ; + GoUint32_ arg2 ; + GoUint32_ *argp2 ; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); + arg1 = (encoder__StructField *)jarg1; + argp2 = (GoUint32_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint32_", 0); + return ; } - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_coin_AddressUxOuts_Keys(arg1,arg2); - jresult = result; - return jresult; + arg2 = *argp2; + if (arg1) (arg1)->Kind = arg2; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Flatten(void * jarg1, void * jarg2) { - unsigned int jresult ; - AddressUxOuts_Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_encoder__StructField_Kind(void * jarg1) { + void * jresult ; + encoder__StructField *arg1 = (encoder__StructField *) 0 ; + GoUint32_ result; + arg1 = (encoder__StructField *)jarg1; + result = ((arg1)->Kind); { - SWIG_AsVal_long(jarg1, (long*)&arg1); + GoUint32_ * resultptr = (GoUint32_ *) malloc(sizeof(GoUint32_)); + memmove(resultptr, &result, sizeof(GoUint32_)); + jresult = resultptr; } - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_coin_AddressUxOuts_Flatten(arg1,arg2); - jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Sub(void * jarg1, void * jarg2) { - unsigned int jresult ; - AddressUxOuts_Handle arg1 ; - AddressUxOuts_Handle arg2 ; - AddressUxOuts_Handle *arg3 = (AddressUxOuts_Handle *) 0 ; - Handle temp3 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encoder__StructField_Type(void * jarg1, void * jarg2) { + encoder__StructField *arg1 = (encoder__StructField *) 0 ; + GoString_ arg2 ; + GoString_ *argp2 ; - { - arg3 = &temp3; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - { - SWIG_AsVal_long(jarg2, (long*)&arg2); + arg1 = (encoder__StructField *)jarg1; + argp2 = (GoString_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); + return ; } - result = (GoUint32)SKY_coin_AddressUxOuts_Sub(arg1,arg2,arg3); - jresult = result; - return jresult; + arg2 = *argp2; + if (arg1) (arg1)->Type = arg2; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Add(void * jarg1, void * jarg2) { - unsigned int jresult ; - AddressUxOuts_Handle arg1 ; - AddressUxOuts_Handle arg2 ; - AddressUxOuts_Handle *arg3 = (AddressUxOuts_Handle *) 0 ; - Handle temp3 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_encoder__StructField_Type(void * jarg1) { + void * jresult ; + encoder__StructField *arg1 = (encoder__StructField *) 0 ; + GoString_ result; + arg1 = (encoder__StructField *)jarg1; + result = ((arg1)->Type); { - arg3 = &temp3; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - { - SWIG_AsVal_long(jarg2, (long*)&arg2); + GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); + memmove(resultptr, &result, sizeof(GoString_)); + jresult = resultptr; } - result = (GoUint32)SKY_coin_AddressUxOuts_Add(arg1,arg2,arg3); - jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Get(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - AddressUxOuts_Handle arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encoder__StructField_Tag(void * jarg1, void * jarg2) { + encoder__StructField *arg1 = (encoder__StructField *) 0 ; + GoString_ arg2 ; + GoString_ *argp2 ; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); + arg1 = (encoder__StructField *)jarg1; + argp2 = (GoString_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); + return ; } - arg2 = (cipher__Address *)jarg2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_coin_AddressUxOuts_Get(arg1,arg2,arg3); - jresult = result; - return jresult; + arg2 = *argp2; + if (arg1) (arg1)->Tag = arg2; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_HasKey(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - AddressUxOuts_Handle arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - GoUint8 *arg3 = (GoUint8 *) 0 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_encoder__StructField_Tag(void * jarg1) { + void * jresult ; + encoder__StructField *arg1 = (encoder__StructField *) 0 ; + GoString_ result; + arg1 = (encoder__StructField *)jarg1; + result = ((arg1)->Tag); { - SWIG_AsVal_long(jarg1, (long*)&arg1); + GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); + memmove(resultptr, &result, sizeof(GoString_)); + jresult = resultptr; } - arg2 = (cipher__Address *)jarg2; - arg3 = (GoUint8 *)jarg3; - result = (GoUint32)SKY_coin_AddressUxOuts_HasKey(arg1,arg2,arg3); - jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_GetOutputLength(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - AddressUxOuts_Handle arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - GoInt *arg3 = (GoInt *) 0 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_encoder__StructField() { + void * jresult ; + encoder__StructField *result = 0 ; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (cipher__Address *)jarg2; - arg3 = (GoInt *)jarg3; - result = (GoUint32)SKY_coin_AddressUxOuts_GetOutputLength(arg1,arg2,arg3); - jresult = result; + result = (encoder__StructField *)calloc(1, sizeof(encoder__StructField)); + jresult = (void *)result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Length(void * jarg1, void * jarg2) { - unsigned int jresult ; - AddressUxOuts_Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_encoder__StructField(void * jarg1) { + encoder__StructField *arg1 = (encoder__StructField *) 0 ; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); + arg1 = (encoder__StructField *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_N(void * jarg1, void * jarg2) { + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + GoInt_ arg2 ; + GoInt_ *argp2 ; + + arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; + argp2 = (GoInt_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt_", 0); + return ; } - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_coin_AddressUxOuts_Length(arg1,arg2); - jresult = result; - return jresult; + arg2 = *argp2; + if (arg1) (arg1)->N = arg2; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Set(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - AddressUxOuts_Handle arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_N(void * jarg1) { + void * jresult ; + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + GoInt_ result; + arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; + result = ((arg1)->N); { - SWIG_AsVal_long(jarg1, (long*)&arg1); + GoInt_ * resultptr = (GoInt_ *) malloc(sizeof(GoInt_)); + memmove(resultptr, &result, sizeof(GoInt_)); + jresult = resultptr; } - arg2 = (cipher__Address *)jarg2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_coin_AddressUxOuts_Set(arg1,arg2,arg3); - jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_ScryptChacha20poly1305_Encrypt(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { - unsigned int jresult ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_R(void * jarg1, void * jarg2) { encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - GoSlice arg2 ; - GoSlice arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - GoSlice *argp2 ; - GoSlice *argp3 ; - GoUint32 result; + GoInt_ arg2 ; + GoInt_ *argp2 ; arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; - argp2 = (GoSlice *)jarg2; + argp2 = (GoInt_ *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt_", 0); + return ; } arg2 = *argp2; - argp3 = (GoSlice *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; + if (arg1) (arg1)->R = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_R(void * jarg1) { + void * jresult ; + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + GoInt_ result; + + arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; + result = ((arg1)->R); + { + GoInt_ * resultptr = (GoInt_ *) malloc(sizeof(GoInt_)); + memmove(resultptr, &result, sizeof(GoInt_)); + jresult = resultptr; } - arg3 = *argp3; - arg4 = (coin__UxArray *)jarg4; - result = (GoUint32)SKY_encrypt_ScryptChacha20poly1305_Encrypt(arg1,arg2,arg3,arg4); - jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_ScryptChacha20poly1305_Decrypt(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { - unsigned int jresult ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_P(void * jarg1, void * jarg2) { encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - GoSlice arg2 ; - GoSlice arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - GoSlice *argp2 ; - GoSlice *argp3 ; - GoUint32 result; + GoInt_ arg2 ; + GoInt_ *argp2 ; arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; - argp2 = (GoSlice *)jarg2; + argp2 = (GoInt_ *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt_", 0); + return ; } arg2 = *argp2; - argp3 = (GoSlice *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg3 = *argp3; - arg4 = (coin__UxArray *)jarg4; - result = (GoUint32)SKY_encrypt_ScryptChacha20poly1305_Decrypt(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; + if (arg1) (arg1)->P = arg2; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateOptionsHandle(void * jarg1, void * jarg2, void * jarg3, unsigned char jarg4, void * jarg5, void * jarg6, unsigned long long jarg7) { - unsigned int jresult ; - GoString arg1 ; - GoString arg2 ; - GoString arg3 ; - GoUint8 arg4 ; - GoString arg5 ; - GoString arg6 ; - GoUint64 arg7 ; - Options__Handle *arg8 = (Options__Handle *) 0 ; - GoString *argp1 ; - GoString *argp2 ; - GoString *argp3 ; - GoString *argp5 ; - GoString *argp6 ; - Handle temp8 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_P(void * jarg1) { + void * jresult ; + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + GoInt_ result; + arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; + result = ((arg1)->P); { - arg8 = &temp8; - } - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; - arg4 = (GoUint8)jarg4; - argp5 = (GoString *)jarg5; - if (!argp5) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg5 = *argp5; - argp6 = (GoString *)jarg6; - if (!argp6) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; + GoInt_ * resultptr = (GoInt_ *) malloc(sizeof(GoInt_)); + memmove(resultptr, &result, sizeof(GoInt_)); + jresult = resultptr; } - arg6 = *argp6; - arg7 = (GoUint64)jarg7; - result = (GoUint32)SKY_wallet_CreateOptionsHandle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); - jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_AddPrivateKey(void * jarg1, void * jarg2) { - unsigned int jresult ; - Wallet__Handle arg1 ; - GoString arg2 ; - GoString *argp2 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_KeyLen(void * jarg1, void * jarg2) { + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + GoInt_ arg2 ; + GoInt_ *argp2 ; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; + arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; + argp2 = (GoInt_ *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt_", 0); + return ; } arg2 = *argp2; - result = (GoUint32)SKY_cli_AddPrivateKey(arg1,arg2); - jresult = result; - return jresult; + if (arg1) (arg1)->KeyLen = arg2; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_AddPrivateKeyToFile(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - GoString arg1 ; - GoString arg2 ; - PasswordReader__Handle arg3 ; - GoString *argp1 ; - GoString *argp2 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_KeyLen(void * jarg1) { + void * jresult ; + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + GoInt_ result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; + arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; + result = ((arg1)->KeyLen); { - SWIG_AsVal_long(jarg3, (long*)&arg3); + GoInt_ * resultptr = (GoInt_ *) malloc(sizeof(GoInt_)); + memmove(resultptr, &result, sizeof(GoInt_)); + jresult = resultptr; } - result = (GoUint32)SKY_cli_AddPrivateKeyToFile(arg1,arg2,arg3); - jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_GenerateKeyPair(void * jarg1, void * jarg2) { - unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_encrypt__ScryptChacha20poly1305() { + void * jresult ; + encrypt__ScryptChacha20poly1305 *result = 0 ; - arg1 = (coin__UxArray *)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1_GenerateKeyPair(arg1,arg2); - jresult = result; + result = (encrypt__ScryptChacha20poly1305 *)calloc(1, sizeof(encrypt__ScryptChacha20poly1305)); + jresult = (void *)result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_PubkeyFromSeckey(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_encrypt__ScryptChacha20poly1305(void * jarg1) { + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1_PubkeyFromSeckey(arg1,arg2); - jresult = result; - return jresult; + arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; + free((char *) arg1); } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_UncompressPubkey(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_secp256k1go__Field_n(void * jarg1, void * jarg2) { + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoUint32_ *arg2 ; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; + arg1 = (secp256k1go__Field *)jarg1; + arg2 = (GoUint32_ *)jarg2; + { + size_t ii; + GoUint32_ *b = (GoUint32_ *) arg1->n; + for (ii = 0; ii < (size_t)10; ii++) b[ii] = *((GoUint32_ *) arg2 + ii); } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1_UncompressPubkey(arg1,arg2); - jresult = result; - return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_UncompressedPubkeyFromSeckey(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_secp256k1go__Field_n(void * jarg1) { + void * jresult ; + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoUint32_ *result = 0 ; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1_UncompressedPubkeyFromSeckey(arg1,arg2); + arg1 = (secp256k1go__Field *)jarg1; + result = (GoUint32_ *)(GoUint32_ *) ((arg1)->n); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_Secp256k1Hash(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_secp256k1go__Field() { + void * jresult ; + secp256k1go__Field *result = 0 ; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1_Secp256k1Hash(arg1,arg2); - jresult = result; + result = (secp256k1go__Field *)calloc(1, sizeof(secp256k1go__Field)); + jresult = (void *)result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_GenerateDeterministicKeyPair(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_secp256k1go__Field(void * jarg1) { + secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_secp256k1_GenerateDeterministicKeyPair(arg1,arg2,arg3); - jresult = result; - return jresult; + arg1 = (secp256k1go__Field *)jarg1; + free((char *) arg1); } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_DeterministicKeyPairIterator(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { - unsigned int jresult ; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_secp256k1go__XY_X(void * jarg1, void * jarg2) { + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - arg3 = (coin__UxArray *)jarg3; - arg4 = (coin__UxArray *)jarg4; - result = (GoUint32)SKY_secp256k1_DeterministicKeyPairIterator(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; + arg1 = (secp256k1go__XY *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + if (arg1) (arg1)->X = *arg2; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_Sign(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_secp256k1go__XY_X(void * jarg1) { + void * jresult ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + secp256k1go__Field *result = 0 ; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_secp256k1_Sign(arg1,arg2,arg3); - jresult = result; + arg1 = (secp256k1go__XY *)jarg1; + result = (secp256k1go__Field *)& ((arg1)->X); + jresult = (void *)result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_SignDeterministic(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { - unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - GoSlice arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; - GoSlice *argp3 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_secp256k1go__XY_Y(void * jarg1, void * jarg2) { + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoSlice *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg3 = *argp3; - arg4 = (coin__UxArray *)jarg4; - result = (GoUint32)SKY_secp256k1_SignDeterministic(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; + arg1 = (secp256k1go__XY *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + if (arg1) (arg1)->Y = *arg2; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_VerifySeckey(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoSlice *argp1 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_secp256k1go__XY_Y(void * jarg1) { + void * jresult ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + secp256k1go__Field *result = 0 ; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_secp256k1_VerifySeckey(arg1,arg2); - jresult = result; + arg1 = (secp256k1go__XY *)jarg1; + result = (secp256k1go__Field *)& ((arg1)->Y); + jresult = (void *)result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_VerifyPubkey(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoSlice *argp1 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_secp256k1go__XY_Infinity(void * jarg1, void * jarg2) { + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + BOOL arg2 ; + BOOL *argp2 ; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; + arg1 = (secp256k1go__XY *)jarg1; + argp2 = (BOOL *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null BOOL", 0); + return ; } - arg1 = *argp1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_secp256k1_VerifyPubkey(arg1,arg2); - jresult = result; - return jresult; + arg2 = *argp2; + if (arg1) (arg1)->Infinity = arg2; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_VerifySignatureValidity(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoSlice *argp1 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_secp256k1go__XY_Infinity(void * jarg1) { + void * jresult ; + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; + BOOL result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; + arg1 = (secp256k1go__XY *)jarg1; + result = ((arg1)->Infinity); + { + BOOL * resultptr = (BOOL *) malloc(sizeof(BOOL)); + memmove(resultptr, &result, sizeof(BOOL)); + jresult = resultptr; } - arg1 = *argp1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_secp256k1_VerifySignatureValidity(arg1,arg2); - jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_VerifySignature(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { - unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - GoSlice arg3 ; - GoInt *arg4 = (GoInt *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; - GoSlice *argp3 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_secp256k1go__XY() { + void * jresult ; + secp256k1go__XY *result = 0 ; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoSlice *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg3 = *argp3; - arg4 = (GoInt *)jarg4; - result = (GoUint32)SKY_secp256k1_VerifySignature(arg1,arg2,arg3,arg4); - jresult = result; + result = (secp256k1go__XY *)calloc(1, sizeof(secp256k1go__XY)); + jresult = (void *)result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_SignatureErrorString(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { - unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - GoSlice arg3 ; - GoString_ *arg4 = (GoString_ *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; - GoSlice *argp3 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_secp256k1go__XY(void * jarg1) { + secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoSlice *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg3 = *argp3; - arg4 = (GoString_ *)jarg4; - result = (GoUint32)SKY_secp256k1_SignatureErrorString(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; + arg1 = (secp256k1go__XY *)jarg1; + free((char *) arg1); } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_RecoverPubkey(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_secp256k1go__XYZ_X(void * jarg1, void * jarg2) { + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_secp256k1_RecoverPubkey(arg1,arg2,arg3); - jresult = result; - return jresult; + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + if (arg1) (arg1)->X = *arg2; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_ECDH(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_secp256k1go__XYZ_X(void * jarg1) { + void * jresult ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__Field *result = 0 ; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_secp256k1_ECDH(arg1,arg2,arg3); - jresult = result; + arg1 = (secp256k1go__XYZ *)jarg1; + result = (secp256k1go__Field *)& ((arg1)->X); + jresult = (void *)result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_apputil_CatchInterruptPanic() { - unsigned int jresult ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_secp256k1go__XYZ_Y(void * jarg1, void * jarg2) { + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - result = (GoUint32)SKY_apputil_CatchInterruptPanic(); - jresult = result; - return jresult; + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + if (arg1) (arg1)->Y = *arg2; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_apputil_CatchDebug() { - unsigned int jresult ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_secp256k1go__XYZ_Y(void * jarg1) { + void * jresult ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__Field *result = 0 ; - result = (GoUint32)SKY_apputil_CatchDebug(); - jresult = result; + arg1 = (secp256k1go__XYZ *)jarg1; + result = (secp256k1go__Field *)& ((arg1)->Y); + jresult = (void *)result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_apputil_PrintProgramStatus() { - unsigned int jresult ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_secp256k1go__XYZ_Z(void * jarg1, void * jarg2) { + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - result = (GoUint32)SKY_apputil_PrintProgramStatus(); - jresult = result; + arg1 = (secp256k1go__XYZ *)jarg1; + arg2 = (secp256k1go__Field *)jarg2; + if (arg1) (arg1)->Z = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_secp256k1go__XYZ_Z(void * jarg1) { + void * jresult ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + secp256k1go__Field *result = 0 ; + + arg1 = (secp256k1go__XYZ *)jarg1; + result = (secp256k1go__Field *)& ((arg1)->Z); + jresult = (void *)result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cert_CreateCertIfNotExists(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { - unsigned int jresult ; - GoString arg1 ; - GoString arg2 ; - GoString arg3 ; - GoString arg4 ; - GoString *argp1 ; - GoString *argp2 ; - GoString *argp3 ; - GoString *argp4 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_secp256k1go__XYZ_Infinity(void * jarg1, void * jarg2) { + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + BOOL arg2 ; + BOOL *argp2 ; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoString *)jarg2; + arg1 = (secp256k1go__XYZ *)jarg1; + argp2 = (BOOL *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null BOOL", 0); + return ; } arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; - argp4 = (GoString *)jarg4; - if (!argp4) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg4 = *argp4; - result = (GoUint32)SKY_cert_CreateCertIfNotExists(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_VerifyTransactionFee(void * jarg1, unsigned long long jarg2) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoUint64 arg2 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoUint64)jarg2; - result = (GoUint32)SKY_fee_VerifyTransactionFee(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_VerifyTransactionFeeForHours(unsigned long long jarg1, unsigned long long jarg2) { - unsigned int jresult ; - GoUint64 arg1 ; - GoUint64 arg2 ; - GoUint32 result; - - arg1 = (GoUint64)jarg1; - arg2 = (GoUint64)jarg2; - result = (GoUint32)SKY_fee_VerifyTransactionFeeForHours(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_RequiredFee(unsigned long long jarg1, void * jarg2) { - unsigned int jresult ; - GoUint64 arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint32 result; - - arg1 = (GoUint64)jarg1; - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_fee_RequiredFee(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_RemainingHours(unsigned long long jarg1, void * jarg2) { - unsigned int jresult ; - GoUint64 arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint32 result; - - arg1 = (GoUint64)jarg1; - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_fee_RemainingHours(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_TransactionFee(void * jarg1, unsigned long long jarg2, void * jarg3, void * jarg4) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoUint64 arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoUint64 *arg4 = (GoUint64 *) 0 ; - GoUint32 result; - - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoUint64)jarg2; - arg3 = (coin__UxArray *)jarg3; - arg4 = (GoUint64 *)jarg4; - result = (GoUint32)SKY_fee_TransactionFee(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_LoadConfig() { - unsigned int jresult ; - Config__Handle *arg1 = (Config__Handle *) 0 ; - Handle temp1 ; - GoUint32 result; - - { - arg1 = &temp1; - } - result = (GoUint32)SKY_cli_LoadConfig(arg1); - jresult = result; - return jresult; + if (arg1) (arg1)->Infinity = arg2; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_FullWalletPath(void * jarg1, void * jarg2) { - unsigned int jresult ; - Config__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_secp256k1go__XYZ_Infinity(void * jarg1) { + void * jresult ; + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; + BOOL result; + arg1 = (secp256k1go__XYZ *)jarg1; + result = ((arg1)->Infinity); { - SWIG_AsVal_long(jarg1, (long*)&arg1); + BOOL * resultptr = (BOOL *) malloc(sizeof(BOOL)); + memmove(resultptr, &result, sizeof(BOOL)); + jresult = resultptr; } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cli_Config_FullWalletPath(arg1,arg2); - jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_FullDBPath(void * jarg1, void * jarg2) { - unsigned int jresult ; - Config__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_secp256k1go__XYZ() { + void * jresult ; + secp256k1go__XYZ *result = 0 ; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cli_Config_FullDBPath(arg1,arg2); - jresult = result; + result = (secp256k1go__XYZ *)calloc(1, sizeof(secp256k1go__XYZ)); + jresult = (void *)result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_NewApp(void * jarg1, void * jarg2) { - unsigned int jresult ; - Config__Handle arg1 ; - App__Handle *arg2 = (App__Handle *) 0 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_secp256k1go__XYZ(void * jarg1) { + secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (App__Handle *)jarg2; - result = (GoUint32)SKY_cli_NewApp(arg1,arg2); - jresult = result; - return jresult; + arg1 = (secp256k1go__XYZ *)jarg1; + free((char *) arg1); } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_RPCClientFromContext(void * jarg1) { - unsigned int jresult ; - Context__Handle arg1 ; - WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; - Handle temp2 ; - GoUint32 result; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__Transaction_isEqual(void * jarg1, void * jarg2) { + int jresult ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + coin__Transaction *arg2 = (coin__Transaction *) 0 ; + int result; - { - arg2 = &temp2; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - result = (GoUint32)SKY_cli_RPCClientFromContext(arg1,arg2); + arg1 = (coin__Transaction *)jarg1; + arg2 = (coin__Transaction *)jarg2; + result = (int)coin__Transaction_isEqual(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_ConfigFromContext(void * jarg1) { - unsigned int jresult ; - Context__Handle arg1 ; - Config__Handle *arg2 = (Config__Handle *) 0 ; - Handle temp2 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__Transaction_Length(void * jarg1, void * jarg2) { + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoInt32_ arg2 ; + GoInt32_ *argp2 ; - { - arg2 = &temp2; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); + arg1 = (coin__Transaction *)jarg1; + argp2 = (GoInt32_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt32_", 0); + return ; } - result = (GoUint32)SKY_cli_ConfigFromContext(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_PasswordFromBytes_Password(void * jarg1, void * jarg2) { - unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint32 result; - - arg1 = (coin__UxArray *)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_cli_PasswordFromBytes_Password(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_PasswordFromTerm_Password(void * jarg1) { - unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoUint32 result; - - arg1 = (coin__UxArray *)jarg1; - result = (GoUint32)SKY_cli_PasswordFromTerm_Password(arg1); - jresult = result; - return jresult; + arg2 = *argp2; + if (arg1) (arg1)->Length = arg2; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromWallet(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5) { - unsigned int jresult ; - WebRpcClient__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - GoSlice arg4 ; - PasswordReader__Handle arg5 ; - Transaction__Handle *arg6 = (Transaction__Handle *) 0 ; - GoString *argp2 ; - GoString *argp3 ; - GoSlice *argp4 ; - Handle temp6 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__Transaction_Length(void * jarg1) { + void * jresult ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoInt32_ result; + arg1 = (coin__Transaction *)jarg1; + result = ((arg1)->Length); { - arg6 = &temp6; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; - argp4 = (GoSlice *)jarg4; - if (!argp4) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg4 = *argp4; - { - SWIG_AsVal_long(jarg5, (long*)&arg5); + GoInt32_ * resultptr = (GoInt32_ *) malloc(sizeof(GoInt32_)); + memmove(resultptr, &result, sizeof(GoInt32_)); + jresult = resultptr; } - result = (GoUint32)SKY_cli_CreateRawTxFromWallet(arg1,arg2,arg3,arg4,arg5,arg6); - jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromAddress(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) { - unsigned int jresult ; - WebRpcClient__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - GoString arg4 ; - GoSlice arg5 ; - PasswordReader__Handle arg6 ; - Transaction__Handle *arg7 = (Transaction__Handle *) 0 ; - GoString *argp2 ; - GoString *argp3 ; - GoString *argp4 ; - GoSlice *argp5 ; - Handle temp7 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__Transaction_Type(void * jarg1, void * jarg2) { + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoInt8_ arg2 ; + GoInt8_ *argp2 ; - { - arg7 = &temp7; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoString *)jarg2; + arg1 = (coin__Transaction *)jarg1; + argp2 = (GoInt8_ *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt8_", 0); + return ; } arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; - argp4 = (GoString *)jarg4; - if (!argp4) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg4 = *argp4; - argp5 = (GoSlice *)jarg5; - if (!argp5) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg5 = *argp5; - { - SWIG_AsVal_long(jarg6, (long*)&arg6); - } - result = (GoUint32)SKY_cli_CreateRawTxFromAddress(arg1,arg2,arg3,arg4,arg5,arg6,arg7); - jresult = result; - return jresult; + if (arg1) (arg1)->Type = arg2; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTx(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) { - unsigned int jresult ; - WebRpcClient__Handle arg1 ; - Wallet__Handle arg2 ; - GoSlice arg3 ; - GoString arg4 ; - GoSlice arg5 ; - GoSlice arg6 ; - Transaction__Handle *arg7 = (Transaction__Handle *) 0 ; - GoSlice *argp3 ; - GoString *argp4 ; - GoSlice *argp5 ; - GoSlice *argp6 ; - Handle temp7 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__Transaction_Type(void * jarg1) { + void * jresult ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoInt8_ result; + arg1 = (coin__Transaction *)jarg1; + result = ((arg1)->Type); { - arg7 = &temp7; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - { - SWIG_AsVal_long(jarg2, (long*)&arg2); - } - argp3 = (GoSlice *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg3 = *argp3; - argp4 = (GoString *)jarg4; - if (!argp4) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg4 = *argp4; - argp5 = (GoSlice *)jarg5; - if (!argp5) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg5 = *argp5; - argp6 = (GoSlice *)jarg6; - if (!argp6) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; + GoInt8_ * resultptr = (GoInt8_ *) malloc(sizeof(GoInt8_)); + memmove(resultptr, &result, sizeof(GoInt8_)); + jresult = resultptr; } - arg6 = *argp6; - result = (GoUint32)SKY_cli_CreateRawTx(arg1,arg2,arg3,arg4,arg5,arg6,arg7); - jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_NewTransaction(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - GoSlice arg3 ; - Transaction__Handle *arg4 = (Transaction__Handle *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; - GoSlice *argp3 ; - Handle temp4 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__Transaction_InnerHash(void * jarg1, void * jarg2) { + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoUint8_ *arg2 ; + arg1 = (coin__Transaction *)jarg1; + arg2 = (GoUint8_ *)jarg2; { - arg4 = &temp4; - } - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoSlice *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg3 = *argp3; - result = (GoUint32)SKY_cli_NewTransaction(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_InitDataDir(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString *argp1 ; - GoUint32 result; - - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; + size_t ii; + GoUint8_ *b = (GoUint8_ *) arg1->InnerHash; + for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); } - arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_file_InitDataDir(arg1,arg2); - jresult = result; - return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_UserHome(void * jarg1) { - unsigned int jresult ; - GoString_ *arg1 = (GoString_ *) 0 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__Transaction_InnerHash(void * jarg1) { + void * jresult ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoUint8_ *result = 0 ; - arg1 = (GoString_ *)jarg1; - result = (GoUint32)SKY_file_UserHome(arg1); + arg1 = (coin__Transaction *)jarg1; + result = (GoUint8_ *) ((arg1)->InnerHash); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_ResolveResourceDirectory(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString *argp1 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__Transaction_Sigs(void * jarg1, void * jarg2) { + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoSlice_ arg2 ; + GoSlice_ *argp2 ; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; + arg1 = (coin__Transaction *)jarg1; + argp2 = (GoSlice_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice_", 0); + return ; } - arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_file_ResolveResourceDirectory(arg1,arg2); - jresult = result; - return jresult; + arg2 = *argp2; + if (arg1) (arg1)->Sigs = arg2; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_DetermineResourcePath(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { - unsigned int jresult ; - GoString arg1 ; - GoString arg2 ; - GoString arg3 ; - GoString_ *arg4 = (GoString_ *) 0 ; - GoString *argp1 ; - GoString *argp2 ; - GoString *argp3 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__Transaction_Sigs(void * jarg1) { + void * jresult ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoSlice_ result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; + arg1 = (coin__Transaction *)jarg1; + result = ((arg1)->Sigs); + { + GoSlice_ * resultptr = (GoSlice_ *) malloc(sizeof(GoSlice_)); + memmove(resultptr, &result, sizeof(GoSlice_)); + jresult = resultptr; } - arg1 = *argp1; - argp2 = (GoString *)jarg2; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__Transaction_In(void * jarg1, void * jarg2) { + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoSlice_ arg2 ; + GoSlice_ *argp2 ; + + arg1 = (coin__Transaction *)jarg1; + argp2 = (GoSlice_ *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice_", 0); + return ; } arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; - arg4 = (GoString_ *)jarg4; - result = (GoUint32)SKY_file_DetermineResourcePath(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; + if (arg1) (arg1)->In = arg2; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetWalletOutputsFromFile(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - WebRpcClient__Handle arg1 ; - GoString arg2 ; - ReadableOutputSet_Handle *arg3 = (ReadableOutputSet_Handle *) 0 ; - GoString *argp2 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__Transaction_In(void * jarg1) { + void * jresult ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoSlice_ result; + arg1 = (coin__Transaction *)jarg1; + result = ((arg1)->In); { - SWIG_AsVal_long(jarg1, (long*)&arg1); + GoSlice_ * resultptr = (GoSlice_ *) malloc(sizeof(GoSlice_)); + memmove(resultptr, &result, sizeof(GoSlice_)); + jresult = resultptr; } - argp2 = (GoString *)jarg2; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__Transaction_Out(void * jarg1, void * jarg2) { + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoSlice_ arg2 ; + GoSlice_ *argp2 ; + + arg1 = (coin__Transaction *)jarg1; + argp2 = (GoSlice_ *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice_", 0); + return ; } arg2 = *argp2; - arg3 = (ReadableOutputSet_Handle *)jarg3; - result = (GoUint32)SKY_cli_GetWalletOutputsFromFile(arg1,arg2,arg3); - jresult = result; - return jresult; + if (arg1) (arg1)->Out = arg2; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetWalletOutputs(void * jarg1, void * jarg3) { - unsigned int jresult ; - WebRpcClient__Handle arg1 ; - Wallet__Handle *arg2 = (Wallet__Handle *) 0 ; - ReadableOutputSet_Handle *arg3 = (ReadableOutputSet_Handle *) 0 ; - Handle temp2 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__Transaction_Out(void * jarg1) { + void * jresult ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + GoSlice_ result; + arg1 = (coin__Transaction *)jarg1; + result = ((arg1)->Out); { - arg2 = &temp2; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); + GoSlice_ * resultptr = (GoSlice_ *) malloc(sizeof(GoSlice_)); + memmove(resultptr, &result, sizeof(GoSlice_)); + jresult = resultptr; } - arg3 = (ReadableOutputSet_Handle *)jarg3; - result = (GoUint32)SKY_cli_GetWalletOutputs(arg1,arg2,arg3); - jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_testutil_MakeAddress(void * jarg1) { - unsigned int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__Transaction() { + void * jresult ; + coin__Transaction *result = 0 ; - arg1 = (cipher__Address *)jarg1; - result = (GoUint32)SKY_testutil_MakeAddress(arg1); - jresult = result; + result = (coin__Transaction *)calloc(1, sizeof(coin__Transaction)); + jresult = (void *)result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_String(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__Transaction(void * jarg1) { + coin__Transaction *arg1 = (coin__Transaction *) 0 ; - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_secp256k1go_Field_String(arg1,arg2); + arg1 = (coin__Transaction *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__TransactionOutput_isEqual(void * jarg1, void * jarg2) { + int jresult ; + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + coin__TransactionOutput *arg2 = (coin__TransactionOutput *) 0 ; + int result; + + arg1 = (coin__TransactionOutput *)jarg1; + arg2 = (coin__TransactionOutput *)jarg2; + result = (int)coin__TransactionOutput_isEqual(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Print(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoString arg2 ; - GoString *argp2 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__TransactionOutput_Address(void * jarg1, void * jarg2) { + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; - arg1 = (secp256k1go__Field *)jarg1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_secp256k1go_Field_Print(arg1,arg2); - jresult = result; + arg1 = (coin__TransactionOutput *)jarg1; + arg2 = (cipher__Address *)jarg2; + if (arg1) (arg1)->Address = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__TransactionOutput_Address(void * jarg1) { + void * jresult ; + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + cipher__Address *result = 0 ; + + arg1 = (coin__TransactionOutput *)jarg1; + result = (cipher__Address *)& ((arg1)->Address); + jresult = (void *)result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetB32(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoSlice arg2 ; - GoSlice *argp2 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__TransactionOutput_Coins(void * jarg1, void * jarg2) { + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + GoUint64_ arg2 ; + GoUint64_ *argp2 ; - arg1 = (secp256k1go__Field *)jarg1; - argp2 = (GoSlice *)jarg2; + arg1 = (coin__TransactionOutput *)jarg1; + argp2 = (GoUint64_ *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); + return ; } arg2 = *argp2; - result = (GoUint32)SKY_secp256k1go_Field_SetB32(arg1,arg2); - jresult = result; - return jresult; + if (arg1) (arg1)->Coins = arg2; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetBytes(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoSlice arg2 ; - GoSlice *argp2 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__TransactionOutput_Coins(void * jarg1) { + void * jresult ; + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + GoUint64_ result; - arg1 = (secp256k1go__Field *)jarg1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; + arg1 = (coin__TransactionOutput *)jarg1; + result = ((arg1)->Coins); + { + GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); + memmove(resultptr, &result, sizeof(GoUint64_)); + jresult = resultptr; } - arg2 = *argp2; - result = (GoUint32)SKY_secp256k1go_Field_SetBytes(arg1,arg2); - jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetHex(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoString arg2 ; - GoString *argp2 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__TransactionOutput_Hours(void * jarg1, void * jarg2) { + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + GoUint64_ arg2 ; + GoUint64_ *argp2 ; - arg1 = (secp256k1go__Field *)jarg1; - argp2 = (GoString *)jarg2; + arg1 = (coin__TransactionOutput *)jarg1; + argp2 = (GoUint64_ *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); + return ; } arg2 = *argp2; - result = (GoUint32)SKY_secp256k1go_Field_SetHex(arg1,arg2); - jresult = result; - return jresult; + if (arg1) (arg1)->Hours = arg2; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_IsOdd(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__TransactionOutput_Hours(void * jarg1) { + void * jresult ; + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + GoUint64_ result; - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_secp256k1go_Field_IsOdd(arg1,arg2); - jresult = result; + arg1 = (coin__TransactionOutput *)jarg1; + result = ((arg1)->Hours); + { + GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); + memmove(resultptr, &result, sizeof(GoUint64_)); + jresult = resultptr; + } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_IsZero(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__TransactionOutput() { + void * jresult ; + coin__TransactionOutput *result = 0 ; - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_secp256k1go_Field_IsZero(arg1,arg2); - jresult = result; + result = (coin__TransactionOutput *)calloc(1, sizeof(coin__TransactionOutput)); + jresult = (void *)result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetInt(void * jarg1, unsigned int jarg2) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoUint32 arg2 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__TransactionOutput(void * jarg1) { + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (GoUint32)jarg2; - result = (GoUint32)SKY_secp256k1go_Field_SetInt(arg1,arg2); - jresult = result; - return jresult; + arg1 = (coin__TransactionOutput *)jarg1; + free((char *) arg1); } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Normalize(void * jarg1) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoUint32 result; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_isEqual(void * jarg1, void * jarg2) { + int jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + coin__BlockHeader *arg2 = (coin__BlockHeader *) 0 ; + int result; - arg1 = (secp256k1go__Field *)jarg1; - result = (GoUint32)SKY_secp256k1go_Field_Normalize(arg1); + arg1 = (coin__BlockHeader *)jarg1; + arg2 = (coin__BlockHeader *)jarg2; + result = (int)coin__BlockHeader_isEqual(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_GetB32(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoSlice arg2 ; - GoSlice *argp2 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__BlockHeader_Version(void * jarg1, void * jarg2) { + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint32_ arg2 ; + GoUint32_ *argp2 ; - arg1 = (secp256k1go__Field *)jarg1; - argp2 = (GoSlice *)jarg2; + arg1 = (coin__BlockHeader *)jarg1; + argp2 = (GoUint32_ *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint32_", 0); + return ; } arg2 = *argp2; - result = (GoUint32)SKY_secp256k1go_Field_GetB32(arg1,arg2); - jresult = result; - return jresult; + if (arg1) (arg1)->Version = arg2; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Equals(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - GoUint8 *arg3 = (GoUint8 *) 0 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__BlockHeader_Version(void * jarg1) { + void * jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint32_ result; - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - arg3 = (GoUint8 *)jarg3; - result = (GoUint32)SKY_secp256k1go_Field_Equals(arg1,arg2,arg3); - jresult = result; + arg1 = (coin__BlockHeader *)jarg1; + result = ((arg1)->Version); + { + GoUint32_ * resultptr = (GoUint32_ *) malloc(sizeof(GoUint32_)); + memmove(resultptr, &result, sizeof(GoUint32_)); + jresult = resultptr; + } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetAdd(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__BlockHeader_Time(void * jarg1, void * jarg2) { + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint64_ arg2 ; + GoUint64_ *argp2 ; - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - result = (GoUint32)SKY_secp256k1go_Field_SetAdd(arg1,arg2); - jresult = result; - return jresult; + arg1 = (coin__BlockHeader *)jarg1; + argp2 = (GoUint64_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Time = arg2; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_MulInt(void * jarg1, unsigned int jarg2) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoUint32 arg2 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__BlockHeader_Time(void * jarg1) { + void * jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint64_ result; - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (GoUint32)jarg2; - result = (GoUint32)SKY_secp256k1go_Field_MulInt(arg1,arg2); - jresult = result; + arg1 = (coin__BlockHeader *)jarg1; + result = ((arg1)->Time); + { + GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); + memmove(resultptr, &result, sizeof(GoUint64_)); + jresult = resultptr; + } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Negate(void * jarg1, void * jarg2, unsigned int jarg3) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - GoUint32 arg3 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__BlockHeader_BkSeq(void * jarg1, void * jarg2) { + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint64_ arg2 ; + GoUint64_ *argp2 ; - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - arg3 = (GoUint32)jarg3; - result = (GoUint32)SKY_secp256k1go_Field_Negate(arg1,arg2,arg3); - jresult = result; - return jresult; + arg1 = (coin__BlockHeader *)jarg1; + argp2 = (GoUint64_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->BkSeq = arg2; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Inv(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__BlockHeader_BkSeq(void * jarg1) { + void * jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint64_ result; - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - result = (GoUint32)SKY_secp256k1go_Field_Inv(arg1,arg2); - jresult = result; + arg1 = (coin__BlockHeader *)jarg1; + result = ((arg1)->BkSeq); + { + GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); + memmove(resultptr, &result, sizeof(GoUint64_)); + jresult = resultptr; + } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Sqrt(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__BlockHeader_Fee(void * jarg1, void * jarg2) { + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint64_ arg2 ; + GoUint64_ *argp2 ; - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - result = (GoUint32)SKY_secp256k1go_Field_Sqrt(arg1,arg2); - jresult = result; - return jresult; + arg1 = (coin__BlockHeader *)jarg1; + argp2 = (GoUint64_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Fee = arg2; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_InvVar(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__BlockHeader_Fee(void * jarg1) { + void * jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint64_ result; - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - result = (GoUint32)SKY_secp256k1go_Field_InvVar(arg1,arg2); - jresult = result; + arg1 = (coin__BlockHeader *)jarg1; + result = ((arg1)->Fee); + { + GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); + memmove(resultptr, &result, sizeof(GoUint64_)); + jresult = resultptr; + } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Mul(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg3 = (secp256k1go__Field *) 0 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__BlockHeader_PrevHash(void * jarg1, void * jarg2) { + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint8_ *arg2 ; - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - arg3 = (secp256k1go__Field *)jarg3; - result = (GoUint32)SKY_secp256k1go_Field_Mul(arg1,arg2,arg3); - jresult = result; - return jresult; + arg1 = (coin__BlockHeader *)jarg1; + arg2 = (GoUint8_ *)jarg2; + { + size_t ii; + GoUint8_ *b = (GoUint8_ *) arg1->PrevHash; + for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); + } } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Sqr(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__BlockHeader_PrevHash(void * jarg1) { + void * jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint8_ *result = 0 ; - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - result = (GoUint32)SKY_secp256k1go_Field_Sqr(arg1,arg2); + arg1 = (coin__BlockHeader *)jarg1; + result = (GoUint8_ *) ((arg1)->PrevHash); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_scrypt_Key(void * jarg1, void * jarg2, long long jarg3, long long jarg4, long long jarg5, long long jarg6, void * jarg7) { - unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - GoInt arg3 ; - GoInt arg4 ; - GoInt arg5 ; - GoInt arg6 ; - coin__UxArray *arg7 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__BlockHeader_BodyHash(void * jarg1, void * jarg2) { + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint8_ *arg2 ; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; + arg1 = (coin__BlockHeader *)jarg1; + arg2 = (GoUint8_ *)jarg2; + { + size_t ii; + GoUint8_ *b = (GoUint8_ *) arg1->BodyHash; + for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); } - arg2 = *argp2; - arg3 = (GoInt)jarg3; - arg4 = (GoInt)jarg4; - arg5 = (GoInt)jarg5; - arg6 = (GoInt)jarg6; - arg7 = (coin__UxArray *)jarg7; - result = (GoUint32)SKY_scrypt_Key(arg1,arg2,arg3,arg4,arg5,arg6,arg7); - jresult = result; - return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Ripemd160_Set(void * jarg1, void * jarg2) { - unsigned int jresult ; - cipher__Ripemd160 *arg1 = (cipher__Ripemd160 *) 0 ; - GoSlice arg2 ; - GoSlice *argp2 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__BlockHeader_BodyHash(void * jarg1) { + void * jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint8_ *result = 0 ; - arg1 = (cipher__Ripemd160 *)jarg1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_cipher_Ripemd160_Set((GoUint8_ (*)[20])arg1,arg2); + arg1 = (coin__BlockHeader *)jarg1; + result = (GoUint8_ *) ((arg1)->BodyHash); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_HashRipemd160(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - cipher__Ripemd160 *arg2 = (cipher__Ripemd160 *) 0 ; - GoSlice *argp1 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__BlockHeader_UxHash(void * jarg1, void * jarg2) { + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint8_ *arg2 ; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; + arg1 = (coin__BlockHeader *)jarg1; + arg2 = (GoUint8_ *)jarg2; + { + size_t ii; + GoUint8_ *b = (GoUint8_ *) arg1->UxHash; + for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); } - arg1 = *argp1; - arg2 = (cipher__Ripemd160 *)jarg2; - result = (GoUint32)SKY_cipher_HashRipemd160(arg1,(GoUint8_ (*)[20])arg2); - jresult = result; - return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Set(void * jarg1, void * jarg2) { - unsigned int jresult ; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; - GoSlice arg2 ; - GoSlice *argp2 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__BlockHeader_UxHash(void * jarg1) { + void * jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoUint8_ *result = 0 ; - arg1 = (cipher__SHA256 *)jarg1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_cipher_SHA256_Set((GoUint8_ (*)[32])arg1,arg2); + arg1 = (coin__BlockHeader *)jarg1; + result = (GoUint8_ *) ((arg1)->UxHash); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Hex(void * jarg1, void * jarg2) { - unsigned int jresult ; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__BlockHeader() { + void * jresult ; + coin__BlockHeader *result = 0 ; - arg1 = (cipher__SHA256 *)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cipher_SHA256_Hex((GoUint8_ (*)[32])arg1,arg2); - jresult = result; + result = (coin__BlockHeader *)calloc(1, sizeof(coin__BlockHeader)); + jresult = (void *)result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Xor(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__BlockHeader(void * jarg1) { + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - arg1 = (cipher__SHA256 *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - arg3 = (cipher__SHA256 *)jarg3; - result = (GoUint32)SKY_cipher_SHA256_Xor((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[32])arg3); - jresult = result; - return jresult; + arg1 = (coin__BlockHeader *)jarg1; + free((char *) arg1); } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SumSHA256(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoSlice *argp1 ; - GoUint32 result; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__BlockBody_isEqual(void * jarg1, void * jarg2) { + int jresult ; + coin__BlockBody *arg1 = (coin__BlockBody *) 0 ; + coin__BlockBody *arg2 = (coin__BlockBody *) 0 ; + int result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_cipher_SumSHA256(arg1,(GoUint8_ (*)[32])arg2); + arg1 = (coin__BlockBody *)jarg1; + arg2 = (coin__BlockBody *)jarg2; + result = (int)coin__BlockBody_isEqual(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256FromHex(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoString *argp1 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__BlockBody_Transactions(void * jarg1, void * jarg2) { + coin__BlockBody *arg1 = (coin__BlockBody *) 0 ; + coin__Transactions arg2 ; + coin__Transactions *argp2 ; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; + arg1 = (coin__BlockBody *)jarg1; + argp2 = (coin__Transactions *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null coin__Transactions", 0); + return ; } - arg1 = *argp1; - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_cipher_SHA256FromHex(arg1,(GoUint8_ (*)[32])arg2); - jresult = result; - return jresult; + arg2 = *argp2; + if (arg1) (arg1)->Transactions = arg2; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DoubleSHA256(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoSlice *argp1 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__BlockBody_Transactions(void * jarg1) { + void * jresult ; + coin__BlockBody *arg1 = (coin__BlockBody *) 0 ; + coin__Transactions result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; + arg1 = (coin__BlockBody *)jarg1; + result = ((arg1)->Transactions); + { + coin__Transactions * resultptr = (coin__Transactions *) malloc(sizeof(coin__Transactions)); + memmove(resultptr, &result, sizeof(coin__Transactions)); + jresult = resultptr; } - arg1 = *argp1; - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_cipher_DoubleSHA256(arg1,(GoUint8_ (*)[32])arg2); - jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddSHA256(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__BlockBody() { + void * jresult ; + coin__BlockBody *result = 0 ; - arg1 = (cipher__SHA256 *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - arg3 = (cipher__SHA256 *)jarg3; - result = (GoUint32)SKY_cipher_AddSHA256((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[32])arg3); - jresult = result; + result = (coin__BlockBody *)calloc(1, sizeof(coin__BlockBody)); + jresult = (void *)result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Merkle(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice *arg1 = (GoSlice *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__BlockBody(void * jarg1) { + coin__BlockBody *arg1 = (coin__BlockBody *) 0 ; - arg1 = (GoSlice *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_cipher_Merkle(arg1,(GoUint8_ (*)[32])arg2); - jresult = result; - return jresult; + arg1 = (coin__BlockBody *)jarg1; + free((char *) arg1); } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Null(void * jarg1, void * jarg2) { - unsigned int jresult ; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__Block_Head(void * jarg1, void * jarg2) { + coin__Block *arg1 = (coin__Block *) 0 ; + coin__BlockHeader *arg2 = (coin__BlockHeader *) 0 ; - arg1 = (cipher__SHA256 *)jarg1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_cipher_SHA256_Null((GoUint8_ (*)[32])arg1,arg2); - jresult = result; - return jresult; + arg1 = (coin__Block *)jarg1; + arg2 = (coin__BlockHeader *)jarg2; + if (arg1) (arg1)->Head = *arg2; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Create_Transaction() { - unsigned int jresult ; - Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; - Handle temp1 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__Block_Head(void * jarg1) { + void * jresult ; + coin__Block *arg1 = (coin__Block *) 0 ; + coin__BlockHeader *result = 0 ; - { - arg1 = &temp1; - } - result = (GoUint32)SKY_coin_Create_Transaction(arg1); - jresult = result; + arg1 = (coin__Block *)jarg1; + result = (coin__BlockHeader *)& ((arg1)->Head); + jresult = (void *)result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Copy(void * jarg1) { - unsigned int jresult ; - Transaction__Handle arg1 ; - Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; - Handle temp2 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__Block_Body(void * jarg1, void * jarg2) { + coin__Block *arg1 = (coin__Block *) 0 ; + coin__BlockBody *arg2 = (coin__BlockBody *) 0 ; - { - arg2 = &temp2; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - result = (GoUint32)SKY_coin_Transaction_Copy(arg1,arg2); - jresult = result; - return jresult; + arg1 = (coin__Block *)jarg1; + arg2 = (coin__BlockBody *)jarg2; + if (arg1) (arg1)->Body = *arg2; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetTransactionObject(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transaction__Handle arg1 ; - coin__Transaction **arg2 = (coin__Transaction **) 0 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__Block_Body(void * jarg1) { + void * jresult ; + coin__Block *arg1 = (coin__Block *) 0 ; + coin__BlockBody *result = 0 ; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (coin__Transaction **)jarg2; - result = (GoUint32)SKY_coin_GetTransactionObject(arg1,arg2); - jresult = result; + arg1 = (coin__Block *)jarg1; + result = (coin__BlockBody *)& ((arg1)->Body); + jresult = (void *)result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_ResetInputs(void * jarg1, long long jarg2) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoInt arg2 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__Block() { + void * jresult ; + coin__Block *result = 0 ; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoInt)jarg2; - result = (GoUint32)SKY_coin_Transaction_ResetInputs(arg1,arg2); - jresult = result; + result = (coin__Block *)calloc(1, sizeof(coin__Block)); + jresult = (void *)result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetInputsCount(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__Block(void * jarg1) { + coin__Block *arg1 = (coin__Block *) 0 ; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_coin_Transaction_GetInputsCount(arg1,arg2); - jresult = result; - return jresult; + arg1 = (coin__Block *)jarg1; + free((char *) arg1); } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetInputAt(void * jarg1, long long jarg2, void * jarg3) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoInt arg2 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__SignedBlock__unnamed(void * jarg1, void * jarg2) { + coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; + coin__Block *arg2 = (coin__Block *) 0 ; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoInt)jarg2; - arg3 = (cipher__SHA256 *)jarg3; - result = (GoUint32)SKY_coin_Transaction_GetInputAt(arg1,arg2,(GoUint8_ (*)[32])arg3); - jresult = result; - return jresult; + arg1 = (coin__SignedBlock *)jarg1; + arg2 = (coin__Block *)jarg2; + if (arg1) (arg1)->_unnamed = *arg2; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SetInputAt(void * jarg1, long long jarg2, void * jarg3) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoInt arg2 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__SignedBlock__unnamed(void * jarg1) { + void * jresult ; + coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; + coin__Block *result = 0 ; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoInt)jarg2; - arg3 = (cipher__SHA256 *)jarg3; - result = (GoUint32)SKY_coin_Transaction_SetInputAt(arg1,arg2,(GoUint8_ (*)[32])arg3); - jresult = result; + arg1 = (coin__SignedBlock *)jarg1; + result = (coin__Block *)& ((arg1)->_unnamed); + jresult = (void *)result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetOutputsCount(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__SignedBlock_Sig(void * jarg1, void * jarg2) { + coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; + GoUint8_ *arg2 ; + arg1 = (coin__SignedBlock *)jarg1; + arg2 = (GoUint8_ *)jarg2; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + size_t ii; + GoUint8_ *b = (GoUint8_ *) arg1->Sig; + for (ii = 0; ii < (size_t)65; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); } - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_coin_Transaction_GetOutputsCount(arg1,arg2); - jresult = result; - return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetOutputAt(void * jarg1, long long jarg2, void * jarg3) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoInt arg2 ; - coin__TransactionOutput *arg3 = (coin__TransactionOutput *) 0 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__SignedBlock_Sig(void * jarg1) { + void * jresult ; + coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; + GoUint8_ *result = 0 ; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoInt)jarg2; - arg3 = (coin__TransactionOutput *)jarg3; - result = (GoUint32)SKY_coin_Transaction_GetOutputAt(arg1,arg2,arg3); + arg1 = (coin__SignedBlock *)jarg1; + result = (GoUint8_ *) ((arg1)->Sig); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SetOutputAt(void * jarg1, long long jarg2, void * jarg3) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoInt arg2 ; - coin__TransactionOutput *arg3 = (coin__TransactionOutput *) 0 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__SignedBlock() { + void * jresult ; + coin__SignedBlock *result = 0 ; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoInt)jarg2; - arg3 = (coin__TransactionOutput *)jarg3; - result = (GoUint32)SKY_coin_Transaction_SetOutputAt(arg1,arg2,arg3); - jresult = result; + result = (coin__SignedBlock *)calloc(1, sizeof(coin__SignedBlock)); + jresult = (void *)result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetSignaturesCount(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__SignedBlock(void * jarg1) { + coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; + + arg1 = (coin__SignedBlock *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__UxHead_Time(void * jarg1, void * jarg2) { + coin__UxHead *arg1 = (coin__UxHead *) 0 ; + GoUint64_ arg2 ; + GoUint64_ *argp2 ; + + arg1 = (coin__UxHead *)jarg1; + argp2 = (GoUint64_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Time = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__UxHead_Time(void * jarg1) { + void * jresult ; + coin__UxHead *arg1 = (coin__UxHead *) 0 ; + GoUint64_ result; + arg1 = (coin__UxHead *)jarg1; + result = ((arg1)->Time); { - SWIG_AsVal_long(jarg1, (long*)&arg1); + GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); + memmove(resultptr, &result, sizeof(GoUint64_)); + jresult = resultptr; } - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_coin_Transaction_GetSignaturesCount(arg1,arg2); - jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetSignatureAt(void * jarg1, long long jarg2, void * jarg3) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoInt arg2 ; - cipher__Sig *arg3 = (cipher__Sig *) 0 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__UxHead_BkSeq(void * jarg1, void * jarg2) { + coin__UxHead *arg1 = (coin__UxHead *) 0 ; + GoUint64_ arg2 ; + GoUint64_ *argp2 ; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); + arg1 = (coin__UxHead *)jarg1; + argp2 = (GoUint64_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); + return ; } - arg2 = (GoInt)jarg2; - arg3 = (cipher__Sig *)jarg3; - result = (GoUint32)SKY_coin_Transaction_GetSignatureAt(arg1,arg2,(GoUint8_ (*)[65])arg3); - jresult = result; - return jresult; + arg2 = *argp2; + if (arg1) (arg1)->BkSeq = arg2; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SetSignatureAt(void * jarg1, long long jarg2, void * jarg3) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoInt arg2 ; - cipher__Sig *arg3 = (cipher__Sig *) 0 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__UxHead_BkSeq(void * jarg1) { + void * jresult ; + coin__UxHead *arg1 = (coin__UxHead *) 0 ; + GoUint64_ result; + arg1 = (coin__UxHead *)jarg1; + result = ((arg1)->BkSeq); { - SWIG_AsVal_long(jarg1, (long*)&arg1); + GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); + memmove(resultptr, &result, sizeof(GoUint64_)); + jresult = resultptr; } - arg2 = (GoInt)jarg2; - arg3 = (cipher__Sig *)jarg3; - result = (GoUint32)SKY_coin_Transaction_SetSignatureAt(arg1,arg2,(GoUint8_ (*)[65])arg3); - jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_PushSignature(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transaction__Handle arg1 ; - cipher__Sig *arg2 = (cipher__Sig *) 0 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__UxHead() { + void * jresult ; + coin__UxHead *result = 0 ; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (cipher__Sig *)jarg2; - result = (GoUint32)SKY_coin_Transaction_PushSignature(arg1,(GoUint8_ (*)[65])arg2); - jresult = result; + result = (coin__UxHead *)calloc(1, sizeof(coin__UxHead)); + jresult = (void *)result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_ResetOutputs(void * jarg1, long long jarg2) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoInt arg2 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__UxHead(void * jarg1) { + coin__UxHead *arg1 = (coin__UxHead *) 0 ; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoInt)jarg2; - result = (GoUint32)SKY_coin_Transaction_ResetOutputs(arg1,arg2); - jresult = result; - return jresult; + arg1 = (coin__UxHead *)jarg1; + free((char *) arg1); } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_ResetSignatures(void * jarg1, long long jarg2) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoInt arg2 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__UxBody_SrcTransaction(void * jarg1, void * jarg2) { + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + GoUint8_ *arg2 ; + arg1 = (coin__UxBody *)jarg1; + arg2 = (GoUint8_ *)jarg2; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + size_t ii; + GoUint8_ *b = (GoUint8_ *) arg1->SrcTransaction; + for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); } - arg2 = (GoInt)jarg2; - result = (GoUint32)SKY_coin_Transaction_ResetSignatures(arg1,arg2); - jresult = result; - return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Verify(void * jarg1) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__UxBody_SrcTransaction(void * jarg1) { + void * jresult ; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + GoUint8_ *result = 0 ; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - result = (GoUint32)SKY_coin_Transaction_Verify(arg1); + arg1 = (coin__UxBody *)jarg1; + result = (GoUint8_ *) ((arg1)->SrcTransaction); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_VerifyInput(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transaction__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__UxBody_Address(void * jarg1, void * jarg2) { + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_coin_Transaction_VerifyInput(arg1,arg2); - jresult = result; - return jresult; + arg1 = (coin__UxBody *)jarg1; + arg2 = (cipher__Address *)jarg2; + if (arg1) (arg1)->Address = *arg2; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_PushInput(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - Transaction__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoUint16 *arg3 = (GoUint16 *) 0 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__UxBody_Address(void * jarg1) { + void * jresult ; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + cipher__Address *result = 0 ; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (cipher__SHA256 *)jarg2; - arg3 = (GoUint16 *)jarg3; - result = (GoUint32)SKY_coin_Transaction_PushInput(arg1,(GoUint8_ (*)[32])arg2,arg3); - jresult = result; + arg1 = (coin__UxBody *)jarg1; + result = (cipher__Address *)& ((arg1)->Address); + jresult = (void *)result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_TransactionOutput_UxID(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__UxBody_Coins(void * jarg1, void * jarg2) { + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + GoUint64_ arg2 ; + GoUint64_ *argp2 ; - arg1 = (coin__TransactionOutput *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - arg3 = (cipher__SHA256 *)jarg3; - result = (GoUint32)SKY_coin_TransactionOutput_UxID(arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[32])arg3); - jresult = result; - return jresult; + arg1 = (coin__UxBody *)jarg1; + argp2 = (GoUint64_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Coins = arg2; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_PushOutput(void * jarg1, void * jarg2, unsigned long long jarg3, unsigned long long jarg4) { - unsigned int jresult ; - Transaction__Handle arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - GoUint64 arg3 ; - GoUint64 arg4 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__UxBody_Coins(void * jarg1) { + void * jresult ; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + GoUint64_ result; + arg1 = (coin__UxBody *)jarg1; + result = ((arg1)->Coins); { - SWIG_AsVal_long(jarg1, (long*)&arg1); + GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); + memmove(resultptr, &result, sizeof(GoUint64_)); + jresult = resultptr; } - arg2 = (cipher__Address *)jarg2; - arg3 = (GoUint64)jarg3; - arg4 = (GoUint64)jarg4; - result = (GoUint32)SKY_coin_Transaction_PushOutput(arg1,arg2,arg3,arg4); - jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SignInputs(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoSlice arg2 ; - GoSlice *argp2 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__UxBody_Hours(void * jarg1, void * jarg2) { + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + GoUint64_ arg2 ; + GoUint64_ *argp2 ; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - argp2 = (GoSlice *)jarg2; + arg1 = (coin__UxBody *)jarg1; + argp2 = (GoUint64_ *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); + return ; } arg2 = *argp2; - result = (GoUint32)SKY_coin_Transaction_SignInputs(arg1,arg2); - jresult = result; - return jresult; + if (arg1) (arg1)->Hours = arg2; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Size(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__UxBody_Hours(void * jarg1) { + void * jresult ; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + GoUint64_ result; + arg1 = (coin__UxBody *)jarg1; + result = ((arg1)->Hours); { - SWIG_AsVal_long(jarg1, (long*)&arg1); + GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); + memmove(resultptr, &result, sizeof(GoUint64_)); + jresult = resultptr; } - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_coin_Transaction_Size(arg1,arg2); - jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Hash(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transaction__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__UxBody() { + void * jresult ; + coin__UxBody *result = 0 ; + + result = (coin__UxBody *)calloc(1, sizeof(coin__UxBody)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__UxBody(void * jarg1) { + coin__UxBody *arg1 = (coin__UxBody *) 0 ; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_coin_Transaction_Hash(arg1,(GoUint8_ (*)[32])arg2); - jresult = result; - return jresult; + arg1 = (coin__UxBody *)jarg1; + free((char *) arg1); } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SizeHash(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - GoUint32 result; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__UxOut_isEqual(void * jarg1, void * jarg2) { + int jresult ; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + coin__UxOut *arg2 = (coin__UxOut *) 0 ; + int result; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoInt *)jarg2; - arg3 = (cipher__SHA256 *)jarg3; - result = (GoUint32)SKY_coin_Transaction_SizeHash(arg1,arg2,(GoUint8_ (*)[32])arg3); + arg1 = (coin__UxOut *)jarg1; + arg2 = (coin__UxOut *)jarg2; + result = (int)coin__UxOut_isEqual(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_TxID(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transaction__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__UxOut_Head(void * jarg1, void * jarg2) { + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + coin__UxHead *arg2 = (coin__UxHead *) 0 ; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_coin_Transaction_TxID(arg1,arg2); - jresult = result; - return jresult; + arg1 = (coin__UxOut *)jarg1; + arg2 = (coin__UxHead *)jarg2; + if (arg1) (arg1)->Head = *arg2; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_TxIDHex(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__UxOut_Head(void * jarg1) { + void * jresult ; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + coin__UxHead *result = 0 ; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_coin_Transaction_TxIDHex(arg1,arg2); - jresult = result; + arg1 = (coin__UxOut *)jarg1; + result = (coin__UxHead *)& ((arg1)->Head); + jresult = (void *)result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_UpdateHeader(void * jarg1) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__UxOut_Body(void * jarg1, void * jarg2) { + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + coin__UxBody *arg2 = (coin__UxBody *) 0 ; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - result = (GoUint32)SKY_coin_Transaction_UpdateHeader(arg1); - jresult = result; - return jresult; + arg1 = (coin__UxOut *)jarg1; + arg2 = (coin__UxBody *)jarg2; + if (arg1) (arg1)->Body = *arg2; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_HashInner(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transaction__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__UxOut_Body(void * jarg1) { + void * jresult ; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + coin__UxBody *result = 0 ; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_coin_Transaction_HashInner(arg1,(GoUint8_ (*)[32])arg2); - jresult = result; + arg1 = (coin__UxOut *)jarg1; + result = (coin__UxBody *)& ((arg1)->Body); + jresult = (void *)result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Serialize(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transaction__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__UxOut() { + void * jresult ; + coin__UxOut *result = 0 ; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_coin_Transaction_Serialize(arg1,arg2); - jresult = result; + result = (coin__UxOut *)calloc(1, sizeof(coin__UxOut)); + jresult = (void *)result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_TransactionDeserialize(void * jarg1) { - unsigned int jresult ; - GoSlice arg1 ; - Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; - GoSlice *argp1 ; - Handle temp2 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__UxOut(void * jarg1) { + coin__UxOut *arg1 = (coin__UxOut *) 0 ; - { - arg2 = &temp2; - } - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - result = (GoUint32)SKY_coin_TransactionDeserialize(arg1,arg2); - jresult = result; - return jresult; + arg1 = (coin__UxOut *)jarg1; + free((char *) arg1); } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_OutputHours(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__Balance_Coins(void * jarg1, void * jarg2) { + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + GoUint64_ arg2 ; + GoUint64_ *argp2 ; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); + arg1 = (wallet__Balance *)jarg1; + argp2 = (GoUint64_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); + return ; } - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_coin_Transaction_OutputHours(arg1,arg2); - jresult = result; - return jresult; + arg2 = *argp2; + if (arg1) (arg1)->Coins = arg2; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Create_Transactions() { - unsigned int jresult ; - Transactions__Handle *arg1 = (Transactions__Handle *) 0 ; - Handle temp1 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__Balance_Coins(void * jarg1) { + void * jresult ; + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + GoUint64_ result; + arg1 = (wallet__Balance *)jarg1; + result = ((arg1)->Coins); { - arg1 = &temp1; + GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); + memmove(resultptr, &result, sizeof(GoUint64_)); + jresult = resultptr; } - result = (GoUint32)SKY_coin_Create_Transactions(arg1); - jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetTransactionsObject(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transactions__Handle arg1 ; - coin__UxArray **arg2 = (coin__UxArray **) 0 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__Balance_Hours(void * jarg1, void * jarg2) { + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + GoUint64_ arg2 ; + GoUint64_ *argp2 ; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); + arg1 = (wallet__Balance *)jarg1; + argp2 = (GoUint64_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); + return ; } - arg2 = (coin__UxArray **)jarg2; - result = (GoUint32)SKY_coin_GetTransactionsObject(arg1,arg2); - jresult = result; - return jresult; + arg2 = *argp2; + if (arg1) (arg1)->Hours = arg2; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Length(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transactions__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__Balance_Hours(void * jarg1) { + void * jresult ; + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + GoUint64_ result; + arg1 = (wallet__Balance *)jarg1; + result = ((arg1)->Hours); { - SWIG_AsVal_long(jarg1, (long*)&arg1); + GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); + memmove(resultptr, &result, sizeof(GoUint64_)); + jresult = resultptr; } - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_coin_Transactions_Length(arg1,arg2); - jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Add(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transactions__Handle arg1 ; - Transaction__Handle arg2 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_wallet__Balance() { + void * jresult ; + wallet__Balance *result = 0 ; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - { - SWIG_AsVal_long(jarg2, (long*)&arg2); - } - result = (GoUint32)SKY_coin_Transactions_Add(arg1,arg2); - jresult = result; + result = (wallet__Balance *)calloc(1, sizeof(wallet__Balance)); + jresult = (void *)result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Fees(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - Transactions__Handle arg1 ; - FeeCalculator *arg2 = (FeeCalculator *) 0 ; - GoUint64 *arg3 = (GoUint64 *) 0 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__Balance(void * jarg1) { + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + + arg1 = (wallet__Balance *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__BalancePair_Confirmed(void * jarg1, void * jarg2) { + wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; + wallet__Balance *arg2 = (wallet__Balance *) 0 ; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (FeeCalculator *)jarg2; - arg3 = (GoUint64 *)jarg3; - result = (GoUint32)SKY_coin_Transactions_Fees(arg1,arg2,arg3); - jresult = result; - return jresult; + arg1 = (wallet__BalancePair *)jarg1; + arg2 = (wallet__Balance *)jarg2; + if (arg1) (arg1)->Confirmed = *arg2; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_GetAt(void * jarg1, long long jarg2) { - unsigned int jresult ; - Transactions__Handle arg1 ; - GoInt arg2 ; - Transaction__Handle *arg3 = (Transaction__Handle *) 0 ; - Handle temp3 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__BalancePair_Confirmed(void * jarg1) { + void * jresult ; + wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; + wallet__Balance *result = 0 ; - { - arg3 = &temp3; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoInt)jarg2; - result = (GoUint32)SKY_coin_Transactions_GetAt(arg1,arg2,arg3); - jresult = result; + arg1 = (wallet__BalancePair *)jarg1; + result = (wallet__Balance *)& ((arg1)->Confirmed); + jresult = (void *)result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Hashes(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transactions__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__BalancePair_Predicted(void * jarg1, void * jarg2) { + wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; + wallet__Balance *arg2 = (wallet__Balance *) 0 ; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_coin_Transactions_Hashes(arg1,arg2); - jresult = result; - return jresult; + arg1 = (wallet__BalancePair *)jarg1; + arg2 = (wallet__Balance *)jarg2; + if (arg1) (arg1)->Predicted = *arg2; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Size(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transactions__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__BalancePair_Predicted(void * jarg1) { + void * jresult ; + wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; + wallet__Balance *result = 0 ; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_coin_Transactions_Size(arg1,arg2); - jresult = result; + arg1 = (wallet__BalancePair *)jarg1; + result = (wallet__Balance *)& ((arg1)->Predicted); + jresult = (void *)result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_TruncateBytesTo(void * jarg1, long long jarg2) { - unsigned int jresult ; - Transactions__Handle arg1 ; - GoInt arg2 ; - Transactions__Handle *arg3 = (Transactions__Handle *) 0 ; - Handle temp3 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_wallet__BalancePair() { + void * jresult ; + wallet__BalancePair *result = 0 ; - { - arg3 = &temp3; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoInt)jarg2; - result = (GoUint32)SKY_coin_Transactions_TruncateBytesTo(arg1,arg2,arg3); - jresult = result; + result = (wallet__BalancePair *)calloc(1, sizeof(wallet__BalancePair)); + jresult = (void *)result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortTransactions(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transactions__Handle arg1 ; - FeeCalculator *arg2 = (FeeCalculator *) 0 ; - Transactions__Handle *arg3 = (Transactions__Handle *) 0 ; - Handle temp3 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__BalancePair(void * jarg1) { + wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; - { - arg3 = &temp3; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (FeeCalculator *)jarg2; - result = (GoUint32)SKY_coin_SortTransactions(arg1,arg2,arg3); - jresult = result; - return jresult; + arg1 = (wallet__BalancePair *)jarg1; + free((char *) arg1); } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewSortableTransactions(void * jarg1, void * jarg2) { - unsigned int jresult ; - Transactions__Handle arg1 ; - FeeCalculator *arg2 = (FeeCalculator *) 0 ; - SortableTransactionResult_Handle *arg3 = (SortableTransactionResult_Handle *) 0 ; - Handle temp3 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__Entry_Address(void * jarg1, void * jarg2) { + wallet__Entry *arg1 = (wallet__Entry *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; - { - arg3 = &temp3; - } - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (FeeCalculator *)jarg2; - result = (GoUint32)SKY_coin_NewSortableTransactions(arg1,arg2,arg3); - jresult = result; - return jresult; + arg1 = (wallet__Entry *)jarg1; + arg2 = (cipher__Address *)jarg2; + if (arg1) (arg1)->Address = *arg2; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortableTransactions_Sort(void * jarg1) { - unsigned int jresult ; - SortableTransactionResult_Handle arg1 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__Entry_Address(void * jarg1) { + void * jresult ; + wallet__Entry *arg1 = (wallet__Entry *) 0 ; + cipher__Address *result = 0 ; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - result = (GoUint32)SKY_coin_SortableTransactions_Sort(arg1); - jresult = result; + arg1 = (wallet__Entry *)jarg1; + result = (cipher__Address *)& ((arg1)->Address); + jresult = (void *)result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortableTransactions_Len(void * jarg1, void * jarg2) { - unsigned int jresult ; - SortableTransactionResult_Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__Entry_Public(void * jarg1, void * jarg2) { + wallet__Entry *arg1 = (wallet__Entry *) 0 ; + GoUint8_ *arg2 ; + arg1 = (wallet__Entry *)jarg1; + arg2 = (GoUint8_ *)jarg2; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + size_t ii; + GoUint8_ *b = (GoUint8_ *) arg1->Public; + for (ii = 0; ii < (size_t)33; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); } - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_coin_SortableTransactions_Len(arg1,arg2); - jresult = result; - return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortableTransactions_Less(void * jarg1, long long jarg2, long long jarg3, void * jarg4) { - unsigned int jresult ; - SortableTransactionResult_Handle arg1 ; - GoInt arg2 ; - GoInt arg3 ; - GoUint8 *arg4 = (GoUint8 *) 0 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__Entry_Public(void * jarg1) { + void * jresult ; + wallet__Entry *arg1 = (wallet__Entry *) 0 ; + GoUint8_ *result = 0 ; - { - SWIG_AsVal_long(jarg1, (long*)&arg1); - } - arg2 = (GoInt)jarg2; - arg3 = (GoInt)jarg3; - arg4 = (GoUint8 *)jarg4; - result = (GoUint32)SKY_coin_SortableTransactions_Less(arg1,arg2,arg3,arg4); + arg1 = (wallet__Entry *)jarg1; + result = (GoUint8_ *) ((arg1)->Public); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortableTransactions_Swap(void * jarg1, long long jarg2, long long jarg3) { - unsigned int jresult ; - SortableTransactionResult_Handle arg1 ; - GoInt arg2 ; - GoInt arg3 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__Entry_Secret(void * jarg1, void * jarg2) { + wallet__Entry *arg1 = (wallet__Entry *) 0 ; + GoUint8_ *arg2 ; + arg1 = (wallet__Entry *)jarg1; + arg2 = (GoUint8_ *)jarg2; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + size_t ii; + GoUint8_ *b = (GoUint8_ *) arg1->Secret; + for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); } - arg2 = (GoInt)jarg2; - arg3 = (GoInt)jarg3; - result = (GoUint32)SKY_coin_SortableTransactions_Swap(arg1,arg2,arg3); - jresult = result; - return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_VerifyTransactionCoinsSpending(void * jarg1, void * jarg2) { - unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__Entry_Secret(void * jarg1) { + void * jresult ; + wallet__Entry *arg1 = (wallet__Entry *) 0 ; + GoUint8_ *result = 0 ; - arg1 = (coin__UxArray *)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_coin_VerifyTransactionCoinsSpending(arg1,arg2); + arg1 = (wallet__Entry *)jarg1; + result = (GoUint8_ *) ((arg1)->Secret); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_VerifyTransactionHoursSpending(unsigned long long jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - GoUint64 arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoUint32 result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_wallet__Entry() { + void * jresult ; + wallet__Entry *result = 0 ; - arg1 = (GoUint64)jarg1; - arg2 = (coin__UxArray *)jarg2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_coin_VerifyTransactionHoursSpending(arg1,arg2,arg3); - jresult = result; + result = (wallet__Entry *)calloc(1, sizeof(wallet__Entry)); + jresult = (void *)result; return jresult; } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher__Address_isEqual(void * jarg1, void * jarg2) { - int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - int result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__Entry(void * jarg1) { + wallet__Entry *arg1 = (wallet__Entry *) 0 ; - arg1 = (cipher__Address *)jarg1; - arg2 = (cipher__Address *)jarg2; - result = (int)cipher__Address_isEqual(arg1,arg2); - jresult = result; - return jresult; + arg1 = (wallet__Entry *)jarg1; + free((char *) arg1); } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher__Address_Version(void * jarg1, void * jarg2) { - cipher__Address *arg1 = (cipher__Address *) 0 ; - GoUint8_ arg2 ; - GoUint8_ *argp2 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__Note_TxID(void * jarg1, void * jarg2) { + wallet__Note *arg1 = (wallet__Note *) 0 ; + GoString_ arg2 ; + GoString_ *argp2 ; - arg1 = (cipher__Address *)jarg1; - argp2 = (GoUint8_ *)jarg2; + arg1 = (wallet__Note *)jarg1; + argp2 = (GoString_ *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint8_", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); return ; } arg2 = *argp2; - if (arg1) (arg1)->Version = arg2; + if (arg1) (arg1)->TxID = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_cipher__Address_Version(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__Note_TxID(void * jarg1) { void * jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - GoUint8_ result; + wallet__Note *arg1 = (wallet__Note *) 0 ; + GoString_ result; - arg1 = (cipher__Address *)jarg1; - result = ((arg1)->Version); + arg1 = (wallet__Note *)jarg1; + result = ((arg1)->TxID); { - GoUint8_ * resultptr = (GoUint8_ *) malloc(sizeof(GoUint8_)); - memmove(resultptr, &result, sizeof(GoUint8_)); + GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); + memmove(resultptr, &result, sizeof(GoString_)); jresult = resultptr; } return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher__Address_Key(void * jarg1, void * jarg2) { - cipher__Address *arg1 = (cipher__Address *) 0 ; - GoUint8_ *arg2 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__Note_Value(void * jarg1, void * jarg2) { + wallet__Note *arg1 = (wallet__Note *) 0 ; + GoString_ arg2 ; + GoString_ *argp2 ; - arg1 = (cipher__Address *)jarg1; - arg2 = (GoUint8_ *)jarg2; - { - size_t ii; - GoUint8_ *b = (GoUint8_ *) arg1->Key; - for (ii = 0; ii < (size_t)20; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); + arg1 = (wallet__Note *)jarg1; + argp2 = (GoString_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); + return ; } + arg2 = *argp2; + if (arg1) (arg1)->Value = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_cipher__Address_Key(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__Note_Value(void * jarg1) { void * jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - GoUint8_ *result = 0 ; + wallet__Note *arg1 = (wallet__Note *) 0 ; + GoString_ result; - arg1 = (cipher__Address *)jarg1; - result = (GoUint8_ *) ((arg1)->Key); - jresult = result; + arg1 = (wallet__Note *)jarg1; + result = ((arg1)->Value); + { + GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); + memmove(resultptr, &result, sizeof(GoString_)); + jresult = resultptr; + } return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher__Address() { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_wallet__Note() { void * jresult ; - cipher__Address *result = 0 ; + wallet__Note *result = 0 ; - result = (cipher__Address *)calloc(1, sizeof(cipher__Address)); + result = (wallet__Note *)calloc(1, sizeof(wallet__Note)); jresult = (void *)result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher__Address(void * jarg1) { - cipher__Address *arg1 = (cipher__Address *) 0 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__Note(void * jarg1) { + wallet__Note *arg1 = (wallet__Note *) 0 ; - arg1 = (cipher__Address *)jarg1; + arg1 = (wallet__Note *)jarg1; free((char *) arg1); } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encoder__StructField_Name(void * jarg1, void * jarg2) { - encoder__StructField *arg1 = (encoder__StructField *) 0 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__ReadableNote_TransactionID(void * jarg1, void * jarg2) { + wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; GoString_ arg2 ; GoString_ *argp2 ; - arg1 = (encoder__StructField *)jarg1; + arg1 = (wallet__ReadableNote *)jarg1; argp2 = (GoString_ *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); return ; } arg2 = *argp2; - if (arg1) (arg1)->Name = arg2; + if (arg1) (arg1)->TransactionID = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_encoder__StructField_Name(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__ReadableNote_TransactionID(void * jarg1) { void * jresult ; - encoder__StructField *arg1 = (encoder__StructField *) 0 ; + wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; GoString_ result; - arg1 = (encoder__StructField *)jarg1; - result = ((arg1)->Name); + arg1 = (wallet__ReadableNote *)jarg1; + result = ((arg1)->TransactionID); { GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); memmove(resultptr, &result, sizeof(GoString_)); @@ -11463,126 +11822,224 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_encoder__StructField_Name(void } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encoder__StructField_Kind(void * jarg1, void * jarg2) { - encoder__StructField *arg1 = (encoder__StructField *) 0 ; - GoUint32_ arg2 ; - GoUint32_ *argp2 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__ReadableNote_ActualNote(void * jarg1, void * jarg2) { + wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; + GoString_ arg2 ; + GoString_ *argp2 ; - arg1 = (encoder__StructField *)jarg1; - argp2 = (GoUint32_ *)jarg2; + arg1 = (wallet__ReadableNote *)jarg1; + argp2 = (GoString_ *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint32_", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); return ; } arg2 = *argp2; - if (arg1) (arg1)->Kind = arg2; + if (arg1) (arg1)->ActualNote = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_encoder__StructField_Kind(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__ReadableNote_ActualNote(void * jarg1) { void * jresult ; - encoder__StructField *arg1 = (encoder__StructField *) 0 ; - GoUint32_ result; + wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; + GoString_ result; - arg1 = (encoder__StructField *)jarg1; - result = ((arg1)->Kind); + arg1 = (wallet__ReadableNote *)jarg1; + result = ((arg1)->ActualNote); { - GoUint32_ * resultptr = (GoUint32_ *) malloc(sizeof(GoUint32_)); - memmove(resultptr, &result, sizeof(GoUint32_)); + GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); + memmove(resultptr, &result, sizeof(GoString_)); jresult = resultptr; } return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encoder__StructField_Type(void * jarg1, void * jarg2) { - encoder__StructField *arg1 = (encoder__StructField *) 0 ; - GoString_ arg2 ; - GoString_ *argp2 ; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_wallet__ReadableNote() { + void * jresult ; + wallet__ReadableNote *result = 0 ; - arg1 = (encoder__StructField *)jarg1; - argp2 = (GoString_ *)jarg2; + result = (wallet__ReadableNote *)calloc(1, sizeof(wallet__ReadableNote)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__ReadableNote(void * jarg1) { + wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; + + arg1 = (wallet__ReadableNote *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__UxBalance_Hash(void * jarg1, void * jarg2) { + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + GoUint8_ *arg2 ; + + arg1 = (wallet__UxBalance *)jarg1; + arg2 = (GoUint8_ *)jarg2; + { + size_t ii; + GoUint8_ *b = (GoUint8_ *) arg1->Hash; + for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__UxBalance_Hash(void * jarg1) { + void * jresult ; + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + GoUint8_ *result = 0 ; + + arg1 = (wallet__UxBalance *)jarg1; + result = (GoUint8_ *) ((arg1)->Hash); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__UxBalance_BkSeq(void * jarg1, void * jarg2) { + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + GoInt64_ arg2 ; + GoInt64_ *argp2 ; + + arg1 = (wallet__UxBalance *)jarg1; + argp2 = (GoInt64_ *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt64_", 0); return ; } arg2 = *argp2; - if (arg1) (arg1)->Type = arg2; + if (arg1) (arg1)->BkSeq = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_encoder__StructField_Type(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__UxBalance_BkSeq(void * jarg1) { void * jresult ; - encoder__StructField *arg1 = (encoder__StructField *) 0 ; - GoString_ result; + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + GoInt64_ result; - arg1 = (encoder__StructField *)jarg1; - result = ((arg1)->Type); + arg1 = (wallet__UxBalance *)jarg1; + result = ((arg1)->BkSeq); { - GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); - memmove(resultptr, &result, sizeof(GoString_)); + GoInt64_ * resultptr = (GoInt64_ *) malloc(sizeof(GoInt64_)); + memmove(resultptr, &result, sizeof(GoInt64_)); jresult = resultptr; } return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encoder__StructField_Tag(void * jarg1, void * jarg2) { - encoder__StructField *arg1 = (encoder__StructField *) 0 ; - GoString_ arg2 ; - GoString_ *argp2 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__UxBalance_Address(void * jarg1, void * jarg2) { + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + + arg1 = (wallet__UxBalance *)jarg1; + arg2 = (cipher__Address *)jarg2; + if (arg1) (arg1)->Address = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__UxBalance_Address(void * jarg1) { + void * jresult ; + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + cipher__Address *result = 0 ; + + arg1 = (wallet__UxBalance *)jarg1; + result = (cipher__Address *)& ((arg1)->Address); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__UxBalance_Coins(void * jarg1, void * jarg2) { + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + GoInt64_ arg2 ; + GoInt64_ *argp2 ; + + arg1 = (wallet__UxBalance *)jarg1; + argp2 = (GoInt64_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt64_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Coins = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__UxBalance_Coins(void * jarg1) { + void * jresult ; + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + GoInt64_ result; + + arg1 = (wallet__UxBalance *)jarg1; + result = ((arg1)->Coins); + { + GoInt64_ * resultptr = (GoInt64_ *) malloc(sizeof(GoInt64_)); + memmove(resultptr, &result, sizeof(GoInt64_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__UxBalance_Hours(void * jarg1, void * jarg2) { + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + GoInt64_ arg2 ; + GoInt64_ *argp2 ; - arg1 = (encoder__StructField *)jarg1; - argp2 = (GoString_ *)jarg2; + arg1 = (wallet__UxBalance *)jarg1; + argp2 = (GoInt64_ *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt64_", 0); return ; } arg2 = *argp2; - if (arg1) (arg1)->Tag = arg2; + if (arg1) (arg1)->Hours = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_encoder__StructField_Tag(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__UxBalance_Hours(void * jarg1) { void * jresult ; - encoder__StructField *arg1 = (encoder__StructField *) 0 ; - GoString_ result; + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + GoInt64_ result; - arg1 = (encoder__StructField *)jarg1; - result = ((arg1)->Tag); + arg1 = (wallet__UxBalance *)jarg1; + result = ((arg1)->Hours); { - GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); - memmove(resultptr, &result, sizeof(GoString_)); + GoInt64_ * resultptr = (GoInt64_ *) malloc(sizeof(GoInt64_)); + memmove(resultptr, &result, sizeof(GoInt64_)); jresult = resultptr; } return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_encoder__StructField() { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_wallet__UxBalance() { void * jresult ; - encoder__StructField *result = 0 ; + wallet__UxBalance *result = 0 ; - result = (encoder__StructField *)calloc(1, sizeof(encoder__StructField)); + result = (wallet__UxBalance *)calloc(1, sizeof(wallet__UxBalance)); jresult = (void *)result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_encoder__StructField(void * jarg1) { - encoder__StructField *arg1 = (encoder__StructField *) 0 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__UxBalance(void * jarg1) { + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - arg1 = (encoder__StructField *)jarg1; + arg1 = (wallet__UxBalance *)jarg1; free((char *) arg1); } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_N(void * jarg1, void * jarg2) { - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_api__RichlistParams_N(void * jarg1, void * jarg2) { + api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; GoInt_ arg2 ; GoInt_ *argp2 ; - arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; + arg1 = (api__RichlistParams *)jarg1; argp2 = (GoInt_ *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt_", 0); @@ -11593,12 +12050,12 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_N } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_N(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_api__RichlistParams_N(void * jarg1) { void * jresult ; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; GoInt_ result; - arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; + arg1 = (api__RichlistParams *)jarg1; result = ((arg1)->N); { GoInt_ * resultptr = (GoInt_ *) malloc(sizeof(GoInt_)); @@ -11609,2191 +12066,1735 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_encrypt__ScryptChacha20poly1305 } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_R(void * jarg1, void * jarg2) { - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - GoInt_ arg2 ; - GoInt_ *argp2 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_api__RichlistParams_IncludeDistribution(void * jarg1, void * jarg2) { + api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; + BOOL arg2 ; + BOOL *argp2 ; - arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; - argp2 = (GoInt_ *)jarg2; + arg1 = (api__RichlistParams *)jarg1; + argp2 = (BOOL *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt_", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null BOOL", 0); return ; } arg2 = *argp2; - if (arg1) (arg1)->R = arg2; + if (arg1) (arg1)->IncludeDistribution = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_R(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_api__RichlistParams_IncludeDistribution(void * jarg1) { void * jresult ; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - GoInt_ result; + api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; + BOOL result; - arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; - result = ((arg1)->R); + arg1 = (api__RichlistParams *)jarg1; + result = ((arg1)->IncludeDistribution); { - GoInt_ * resultptr = (GoInt_ *) malloc(sizeof(GoInt_)); - memmove(resultptr, &result, sizeof(GoInt_)); + BOOL * resultptr = (BOOL *) malloc(sizeof(BOOL)); + memmove(resultptr, &result, sizeof(BOOL)); jresult = resultptr; } return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_P(void * jarg1, void * jarg2) { - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - GoInt_ arg2 ; - GoInt_ *argp2 ; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_api__RichlistParams() { + void * jresult ; + api__RichlistParams *result = 0 ; - arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; - argp2 = (GoInt_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->P = arg2; + result = (api__RichlistParams *)calloc(1, sizeof(api__RichlistParams)); + jresult = (void *)result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_P(void * jarg1) { - void * jresult ; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - GoInt_ result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_api__RichlistParams(void * jarg1) { + api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; - arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; - result = ((arg1)->P); - { - GoInt_ * resultptr = (GoInt_ *) malloc(sizeof(GoInt_)); - memmove(resultptr, &result, sizeof(GoInt_)); - jresult = resultptr; - } - return jresult; + arg1 = (api__RichlistParams *)jarg1; + free((char *) arg1); } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_KeyLen(void * jarg1, void * jarg2) { - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - GoInt_ arg2 ; - GoInt_ *argp2 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cli__SendAmount_Addr(void * jarg1, void * jarg2) { + cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; + GoString_ arg2 ; + GoString_ *argp2 ; - arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; - argp2 = (GoInt_ *)jarg2; + arg1 = (cli__SendAmount *)jarg1; + argp2 = (GoString_ *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt_", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); return ; } arg2 = *argp2; - if (arg1) (arg1)->KeyLen = arg2; + if (arg1) (arg1)->Addr = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_KeyLen(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_cli__SendAmount_Addr(void * jarg1) { void * jresult ; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - GoInt_ result; + cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; + GoString_ result; - arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; - result = ((arg1)->KeyLen); + arg1 = (cli__SendAmount *)jarg1; + result = ((arg1)->Addr); { - GoInt_ * resultptr = (GoInt_ *) malloc(sizeof(GoInt_)); - memmove(resultptr, &result, sizeof(GoInt_)); + GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); + memmove(resultptr, &result, sizeof(GoString_)); jresult = resultptr; } return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_encrypt__ScryptChacha20poly1305() { - void * jresult ; - encrypt__ScryptChacha20poly1305 *result = 0 ; - - result = (encrypt__ScryptChacha20poly1305 *)calloc(1, sizeof(encrypt__ScryptChacha20poly1305)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_encrypt__ScryptChacha20poly1305(void * jarg1) { - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - - arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_secp256k1go__Field_n(void * jarg1, void * jarg2) { - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoUint32_ *arg2 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cli__SendAmount_Coins(void * jarg1, void * jarg2) { + cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; + GoInt64_ arg2 ; + GoInt64_ *argp2 ; - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (GoUint32_ *)jarg2; - { - size_t ii; - GoUint32_ *b = (GoUint32_ *) arg1->n; - for (ii = 0; ii < (size_t)10; ii++) b[ii] = *((GoUint32_ *) arg2 + ii); + arg1 = (cli__SendAmount *)jarg1; + argp2 = (GoInt64_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt64_", 0); + return ; } + arg2 = *argp2; + if (arg1) (arg1)->Coins = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_secp256k1go__Field_n(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_cli__SendAmount_Coins(void * jarg1) { void * jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoUint32_ *result = 0 ; + cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; + GoInt64_ result; - arg1 = (secp256k1go__Field *)jarg1; - result = (GoUint32_ *)(GoUint32_ *) ((arg1)->n); - jresult = result; + arg1 = (cli__SendAmount *)jarg1; + result = ((arg1)->Coins); + { + GoInt64_ * resultptr = (GoInt64_ *) malloc(sizeof(GoInt64_)); + memmove(resultptr, &result, sizeof(GoInt64_)); + jresult = resultptr; + } return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_secp256k1go__Field() { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cli__SendAmount() { void * jresult ; - secp256k1go__Field *result = 0 ; + cli__SendAmount *result = 0 ; - result = (secp256k1go__Field *)calloc(1, sizeof(secp256k1go__Field)); + result = (cli__SendAmount *)calloc(1, sizeof(cli__SendAmount)); jresult = (void *)result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_secp256k1go__Field(void * jarg1) { - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cli__SendAmount(void * jarg1) { + cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; - arg1 = (secp256k1go__Field *)jarg1; + arg1 = (cli__SendAmount *)jarg1; free((char *) arg1); } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_secp256k1go__XY_X(void * jarg1, void * jarg2) { - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_httphelper__Address__unnamed(void * jarg1, void * jarg2) { + httphelper__Address *arg1 = (httphelper__Address *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; - arg1 = (secp256k1go__XY *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - if (arg1) (arg1)->X = *arg2; + arg1 = (httphelper__Address *)jarg1; + arg2 = (cipher__Address *)jarg2; + if (arg1) (arg1)->_unnamed = *arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_secp256k1go__XY_X(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_httphelper__Address__unnamed(void * jarg1) { void * jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - secp256k1go__Field *result = 0 ; + httphelper__Address *arg1 = (httphelper__Address *) 0 ; + cipher__Address *result = 0 ; - arg1 = (secp256k1go__XY *)jarg1; - result = (secp256k1go__Field *)& ((arg1)->X); + arg1 = (httphelper__Address *)jarg1; + result = (cipher__Address *)& ((arg1)->_unnamed); jresult = (void *)result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_secp256k1go__XY_Y(void * jarg1, void * jarg2) { - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - - arg1 = (secp256k1go__XY *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - if (arg1) (arg1)->Y = *arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_secp256k1go__XY_Y(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_httphelper__Address() { void * jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - secp256k1go__Field *result = 0 ; + httphelper__Address *result = 0 ; - arg1 = (secp256k1go__XY *)jarg1; - result = (secp256k1go__Field *)& ((arg1)->Y); + result = (httphelper__Address *)calloc(1, sizeof(httphelper__Address)); jresult = (void *)result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_secp256k1go__XY_Infinity(void * jarg1, void * jarg2) { - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - BOOL arg2 ; - BOOL *argp2 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_httphelper__Address(void * jarg1) { + httphelper__Address *arg1 = (httphelper__Address *) 0 ; - arg1 = (secp256k1go__XY *)jarg1; - argp2 = (BOOL *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null BOOL", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Infinity = arg2; + arg1 = (httphelper__Address *)jarg1; + free((char *) arg1); } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_secp256k1go__XY_Infinity(void * jarg1) { - void * jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - BOOL result; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_OK() { + int jresult ; + int result; - arg1 = (secp256k1go__XY *)jarg1; - result = ((arg1)->Infinity); - { - BOOL * resultptr = (BOOL *) malloc(sizeof(BOOL)); - memmove(resultptr, &result, sizeof(BOOL)); - jresult = resultptr; - } + result = (int)(0); + jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_secp256k1go__XY() { - void * jresult ; - secp256k1go__XY *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ERROR() { + int jresult ; + int result; - result = (secp256k1go__XY *)calloc(1, sizeof(secp256k1go__XY)); - jresult = (void *)result; + result = (int)(0x7FFFFFFF); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_secp256k1go__XY(void * jarg1) { - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_PKG_API() { + int jresult ; + int result; - arg1 = (secp256k1go__XY *)jarg1; - free((char *) arg1); + result = (int)(0x01000000); + jresult = result; + return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_secp256k1go__XYZ_X(void * jarg1, void * jarg2) { - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_PKG_CIPHER() { + int jresult ; + int result; - arg1 = (secp256k1go__XYZ *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - if (arg1) (arg1)->X = *arg2; + result = (int)(0x02000000); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_secp256k1go__XYZ_X(void * jarg1) { - void * jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__Field *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_PKG_CLI() { + int jresult ; + int result; - arg1 = (secp256k1go__XYZ *)jarg1; - result = (secp256k1go__Field *)& ((arg1)->X); - jresult = (void *)result; + result = (int)(0x03000000); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_secp256k1go__XYZ_Y(void * jarg1, void * jarg2) { - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_PKG_COIN() { + int jresult ; + int result; - arg1 = (secp256k1go__XYZ *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - if (arg1) (arg1)->Y = *arg2; + result = (int)(0x04000000); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_secp256k1go__XYZ_Y(void * jarg1) { - void * jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__Field *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_PKG_CONSENSUS() { + int jresult ; + int result; - arg1 = (secp256k1go__XYZ *)jarg1; - result = (secp256k1go__Field *)& ((arg1)->Y); - jresult = (void *)result; + result = (int)(0x05000000); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_secp256k1go__XYZ_Z(void * jarg1, void * jarg2) { - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_PKG_DAEMON() { + int jresult ; + int result; - arg1 = (secp256k1go__XYZ *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - if (arg1) (arg1)->Z = *arg2; + result = (int)(0x06000000); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_secp256k1go__XYZ_Z(void * jarg1) { - void * jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__Field *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_PKG_GUI() { + int jresult ; + int result; - arg1 = (secp256k1go__XYZ *)jarg1; - result = (secp256k1go__Field *)& ((arg1)->Z); - jresult = (void *)result; + result = (int)(0x07000000); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_secp256k1go__XYZ_Infinity(void * jarg1, void * jarg2) { - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - BOOL arg2 ; - BOOL *argp2 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_PKG_SKYCOIN() { + int jresult ; + int result; - arg1 = (secp256k1go__XYZ *)jarg1; - argp2 = (BOOL *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null BOOL", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Infinity = arg2; + result = (int)(0x08000000); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_secp256k1go__XYZ_Infinity(void * jarg1) { - void * jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - BOOL result; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_PKG_UTIL() { + int jresult ; + int result; - arg1 = (secp256k1go__XYZ *)jarg1; - result = ((arg1)->Infinity); - { - BOOL * resultptr = (BOOL *) malloc(sizeof(BOOL)); - memmove(resultptr, &result, sizeof(BOOL)); - jresult = resultptr; - } + result = (int)(0x09000000); + jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_secp256k1go__XYZ() { - void * jresult ; - secp256k1go__XYZ *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_PKG_VISOR() { + int jresult ; + int result; - result = (secp256k1go__XYZ *)calloc(1, sizeof(secp256k1go__XYZ)); - jresult = (void *)result; + result = (int)(0x0A000000); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_secp256k1go__XYZ(void * jarg1) { - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_PKG_WALLET() { + int jresult ; + int result; - arg1 = (secp256k1go__XYZ *)jarg1; - free((char *) arg1); + result = (int)(0x0B000000); + jresult = result; + return jresult; } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__Transaction_isEqual(void * jarg1, void * jarg2) { +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrAddressInvalidLength() { int jresult ; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - coin__Transaction *arg2 = (coin__Transaction *) 0 ; int result; - arg1 = (coin__Transaction *)jarg1; - arg2 = (coin__Transaction *)jarg2; - result = (int)coin__Transaction_isEqual(arg1,arg2); + result = (int)(0x02000000); jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__Transaction_Length(void * jarg1, void * jarg2) { - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - GoInt32_ arg2 ; - GoInt32_ *argp2 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrAddressInvalidChecksum() { + int jresult ; + int result; - arg1 = (coin__Transaction *)jarg1; - argp2 = (GoInt32_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt32_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Length = arg2; + result = (int)(0x02000001); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__Transaction_Length(void * jarg1) { - void * jresult ; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - GoInt32_ result; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrAddressInvalidVersion() { + int jresult ; + int result; - arg1 = (coin__Transaction *)jarg1; - result = ((arg1)->Length); - { - GoInt32_ * resultptr = (GoInt32_ *) malloc(sizeof(GoInt32_)); - memmove(resultptr, &result, sizeof(GoInt32_)); - jresult = resultptr; - } + result = (int)(0x02000002); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__Transaction_Type(void * jarg1, void * jarg2) { - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - GoInt8_ arg2 ; - GoInt8_ *argp2 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrAddressInvalidPubKey() { + int jresult ; + int result; - arg1 = (coin__Transaction *)jarg1; - argp2 = (GoInt8_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt8_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Type = arg2; + result = (int)(0x02000003); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__Transaction_Type(void * jarg1) { - void * jresult ; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - GoInt8_ result; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrAddressInvalidFirstByte() { + int jresult ; + int result; - arg1 = (coin__Transaction *)jarg1; - result = ((arg1)->Type); - { - GoInt8_ * resultptr = (GoInt8_ *) malloc(sizeof(GoInt8_)); - memmove(resultptr, &result, sizeof(GoInt8_)); - jresult = resultptr; - } + result = (int)(0x02000004); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__Transaction_InnerHash(void * jarg1, void * jarg2) { - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - GoUint8_ *arg2 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrAddressInvalidLastByte() { + int jresult ; + int result; - arg1 = (coin__Transaction *)jarg1; - arg2 = (GoUint8_ *)jarg2; - { - size_t ii; - GoUint8_ *b = (GoUint8_ *) arg1->InnerHash; - for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); - } + result = (int)(0x02000005); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__Transaction_InnerHash(void * jarg1) { - void * jresult ; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - GoUint8_ *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrBufferUnderflow() { + int jresult ; + int result; - arg1 = (coin__Transaction *)jarg1; - result = (GoUint8_ *) ((arg1)->InnerHash); + result = (int)(0x02000006); jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__Transaction_Sigs(void * jarg1, void * jarg2) { - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - GoSlice_ arg2 ; - GoSlice_ *argp2 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidOmitEmpty() { + int jresult ; + int result; - arg1 = (coin__Transaction *)jarg1; - argp2 = (GoSlice_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Sigs = arg2; + result = (int)(0x02000007); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__Transaction_Sigs(void * jarg1) { - void * jresult ; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - GoSlice_ result; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidLengthPubKey() { + int jresult ; + int result; - arg1 = (coin__Transaction *)jarg1; - result = ((arg1)->Sigs); - { - GoSlice_ * resultptr = (GoSlice_ *) malloc(sizeof(GoSlice_)); - memmove(resultptr, &result, sizeof(GoSlice_)); - jresult = resultptr; - } + result = (int)(0x02000008); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__Transaction_In(void * jarg1, void * jarg2) { - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - GoSlice_ arg2 ; - GoSlice_ *argp2 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrPubKeyFromNullSecKey() { + int jresult ; + int result; - arg1 = (coin__Transaction *)jarg1; - argp2 = (GoSlice_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->In = arg2; + result = (int)(0x02000009); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__Transaction_In(void * jarg1) { - void * jresult ; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - GoSlice_ result; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrPubKeyFromBadSecKey() { + int jresult ; + int result; - arg1 = (coin__Transaction *)jarg1; - result = ((arg1)->In); - { - GoSlice_ * resultptr = (GoSlice_ *) malloc(sizeof(GoSlice_)); - memmove(resultptr, &result, sizeof(GoSlice_)); - jresult = resultptr; - } + result = (int)(0x0200000A); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__Transaction_Out(void * jarg1, void * jarg2) { - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - GoSlice_ arg2 ; - GoSlice_ *argp2 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidLengthSecKey() { + int jresult ; + int result; - arg1 = (coin__Transaction *)jarg1; - argp2 = (GoSlice_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Out = arg2; + result = (int)(0x0200000B); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__Transaction_Out(void * jarg1) { - void * jresult ; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - GoSlice_ result; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrECHDInvalidPubKey() { + int jresult ; + int result; - arg1 = (coin__Transaction *)jarg1; - result = ((arg1)->Out); - { - GoSlice_ * resultptr = (GoSlice_ *) malloc(sizeof(GoSlice_)); - memmove(resultptr, &result, sizeof(GoSlice_)); - jresult = resultptr; - } + result = (int)(0x0200000C); + jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__Transaction() { - void * jresult ; - coin__Transaction *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrECHDInvalidSecKey() { + int jresult ; + int result; - result = (coin__Transaction *)calloc(1, sizeof(coin__Transaction)); - jresult = (void *)result; + result = (int)(0x0200000D); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__Transaction(void * jarg1) { - coin__Transaction *arg1 = (coin__Transaction *) 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidLengthSig() { + int jresult ; + int result; - arg1 = (coin__Transaction *)jarg1; - free((char *) arg1); + result = (int)(0x0200000E); + jresult = result; + return jresult; } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__TransactionOutput_isEqual(void * jarg1, void * jarg2) { +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidLengthRipemd160() { int jresult ; - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - coin__TransactionOutput *arg2 = (coin__TransactionOutput *) 0 ; int result; - arg1 = (coin__TransactionOutput *)jarg1; - arg2 = (coin__TransactionOutput *)jarg2; - result = (int)coin__TransactionOutput_isEqual(arg1,arg2); + result = (int)(0x0200000F); jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__TransactionOutput_Address(void * jarg1, void * jarg2) { - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidLengthSHA256() { + int jresult ; + int result; - arg1 = (coin__TransactionOutput *)jarg1; - arg2 = (cipher__Address *)jarg2; - if (arg1) (arg1)->Address = *arg2; + result = (int)(0x02000010); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__TransactionOutput_Address(void * jarg1) { - void * jresult ; - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - cipher__Address *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidBase58Char() { + int jresult ; + int result; - arg1 = (coin__TransactionOutput *)jarg1; - result = (cipher__Address *)& ((arg1)->Address); - jresult = (void *)result; + result = (int)(0x02000011); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__TransactionOutput_Coins(void * jarg1, void * jarg2) { - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - GoUint64_ arg2 ; - GoUint64_ *argp2 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidBase58String() { + int jresult ; + int result; - arg1 = (coin__TransactionOutput *)jarg1; - argp2 = (GoUint64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Coins = arg2; + result = (int)(0x02000012); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__TransactionOutput_Coins(void * jarg1) { - void * jresult ; - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - GoUint64_ result; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidBase58Length() { + int jresult ; + int result; - arg1 = (coin__TransactionOutput *)jarg1; - result = ((arg1)->Coins); - { - GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); - memmove(resultptr, &result, sizeof(GoUint64_)); - jresult = resultptr; - } + result = (int)(0x02000013); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__TransactionOutput_Hours(void * jarg1, void * jarg2) { - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - GoUint64_ arg2 ; - GoUint64_ *argp2 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidHexLength() { + int jresult ; + int result; - arg1 = (coin__TransactionOutput *)jarg1; - argp2 = (GoUint64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Hours = arg2; + result = (int)(0x02000014); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__TransactionOutput_Hours(void * jarg1) { - void * jresult ; - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - GoUint64_ result; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidBytesLength() { + int jresult ; + int result; - arg1 = (coin__TransactionOutput *)jarg1; - result = ((arg1)->Hours); - { - GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); - memmove(resultptr, &result, sizeof(GoUint64_)); - jresult = resultptr; - } + result = (int)(0x02000015); + jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__TransactionOutput() { - void * jresult ; - coin__TransactionOutput *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidPubKey() { + int jresult ; + int result; - result = (coin__TransactionOutput *)calloc(1, sizeof(coin__TransactionOutput)); - jresult = (void *)result; + result = (int)(0x02000016); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__TransactionOutput(void * jarg1) { - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidSecKey() { + int jresult ; + int result; - arg1 = (coin__TransactionOutput *)jarg1; - free((char *) arg1); + result = (int)(0x02000017); + jresult = result; + return jresult; } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_isEqual(void * jarg1, void * jarg2) { +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidSigForPubKey() { int jresult ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - coin__BlockHeader *arg2 = (coin__BlockHeader *) 0 ; int result; - arg1 = (coin__BlockHeader *)jarg1; - arg2 = (coin__BlockHeader *)jarg2; - result = (int)coin__BlockHeader_isEqual(arg1,arg2); + result = (int)(0x02000018); jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__BlockHeader_Version(void * jarg1, void * jarg2) { - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint32_ arg2 ; - GoUint32_ *argp2 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidSecKeyHex() { + int jresult ; + int result; - arg1 = (coin__BlockHeader *)jarg1; - argp2 = (GoUint32_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint32_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Version = arg2; + result = (int)(0x02000019); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__BlockHeader_Version(void * jarg1) { - void * jresult ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint32_ result; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidAddressForSig() { + int jresult ; + int result; - arg1 = (coin__BlockHeader *)jarg1; - result = ((arg1)->Version); - { - GoUint32_ * resultptr = (GoUint32_ *) malloc(sizeof(GoUint32_)); - memmove(resultptr, &result, sizeof(GoUint32_)); - jresult = resultptr; - } + result = (int)(0x0200001A); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__BlockHeader_Time(void * jarg1, void * jarg2) { - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint64_ arg2 ; - GoUint64_ *argp2 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidHashForSig() { + int jresult ; + int result; - arg1 = (coin__BlockHeader *)jarg1; - argp2 = (GoUint64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Time = arg2; + result = (int)(0x0200001B); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__BlockHeader_Time(void * jarg1) { - void * jresult ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint64_ result; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrPubKeyRecoverMismatch() { + int jresult ; + int result; - arg1 = (coin__BlockHeader *)jarg1; - result = ((arg1)->Time); - { - GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); - memmove(resultptr, &result, sizeof(GoUint64_)); - jresult = resultptr; - } + result = (int)(0x0200001C); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidSigInvalidPubKey() { + int jresult ; + int result; + + result = (int)(0x0200001D); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__BlockHeader_BkSeq(void * jarg1, void * jarg2) { - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint64_ arg2 ; - GoUint64_ *argp2 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidSigValidity() { + int jresult ; + int result; - arg1 = (coin__BlockHeader *)jarg1; - argp2 = (GoUint64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->BkSeq = arg2; + result = (int)(0x0200001E); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__BlockHeader_BkSeq(void * jarg1) { - void * jresult ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint64_ result; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidSigForMessage() { + int jresult ; + int result; - arg1 = (coin__BlockHeader *)jarg1; - result = ((arg1)->BkSeq); - { - GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); - memmove(resultptr, &result, sizeof(GoUint64_)); - jresult = resultptr; - } + result = (int)(0x0200001F); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__BlockHeader_Fee(void * jarg1, void * jarg2) { - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint64_ arg2 ; - GoUint64_ *argp2 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidSecKyVerification() { + int jresult ; + int result; - arg1 = (coin__BlockHeader *)jarg1; - argp2 = (GoUint64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Fee = arg2; + result = (int)(0x02000020); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__BlockHeader_Fee(void * jarg1) { - void * jresult ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint64_ result; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrNullPubKeyFromSecKey() { + int jresult ; + int result; - arg1 = (coin__BlockHeader *)jarg1; - result = ((arg1)->Fee); - { - GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); - memmove(resultptr, &result, sizeof(GoUint64_)); - jresult = resultptr; - } + result = (int)(0x02000021); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__BlockHeader_PrevHash(void * jarg1, void * jarg2) { - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint8_ *arg2 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidDerivedPubKeyFromSecKey() { + int jresult ; + int result; - arg1 = (coin__BlockHeader *)jarg1; - arg2 = (GoUint8_ *)jarg2; - { - size_t ii; - GoUint8_ *b = (GoUint8_ *) arg1->PrevHash; - for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); - } + result = (int)(0x02000022); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__BlockHeader_PrevHash(void * jarg1) { - void * jresult ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint8_ *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidPubKeyFromHash() { + int jresult ; + int result; - arg1 = (coin__BlockHeader *)jarg1; - result = (GoUint8_ *) ((arg1)->PrevHash); + result = (int)(0x02000023); jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__BlockHeader_BodyHash(void * jarg1, void * jarg2) { - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint8_ *arg2 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrPubKeyFromSecKeyMissmatch() { + int jresult ; + int result; - arg1 = (coin__BlockHeader *)jarg1; - arg2 = (GoUint8_ *)jarg2; - { - size_t ii; - GoUint8_ *b = (GoUint8_ *) arg1->BodyHash; - for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); - } + result = (int)(0x02000024); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__BlockHeader_BodyHash(void * jarg1) { - void * jresult ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint8_ *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrTemporaryInsufficientBalance() { + int jresult ; + int result; - arg1 = (coin__BlockHeader *)jarg1; - result = (GoUint8_ *) ((arg1)->BodyHash); + result = (int)(0x03000000); jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__BlockHeader_UxHash(void * jarg1, void * jarg2) { - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint8_ *arg2 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrAddress() { + int jresult ; + int result; - arg1 = (coin__BlockHeader *)jarg1; - arg2 = (GoUint8_ *)jarg2; - { - size_t ii; - GoUint8_ *b = (GoUint8_ *) arg1->UxHash; - for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); - } + result = (int)(0x03000001); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__BlockHeader_UxHash(void * jarg1) { - void * jresult ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoUint8_ *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrWalletName() { + int jresult ; + int result; - arg1 = (coin__BlockHeader *)jarg1; - result = (GoUint8_ *) ((arg1)->UxHash); + result = (int)(0x03000002); jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__BlockHeader() { - void * jresult ; - coin__BlockHeader *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrJSONMarshal() { + int jresult ; + int result; - result = (coin__BlockHeader *)calloc(1, sizeof(coin__BlockHeader)); - jresult = (void *)result; + result = (int)(0x03000003); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__BlockHeader(void * jarg1) { - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_WalletLoadError() { + int jresult ; + int result; - arg1 = (coin__BlockHeader *)jarg1; - free((char *) arg1); + result = (int)(0x03000004); + jresult = result; + return jresult; } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__BlockBody_isEqual(void * jarg1, void * jarg2) { +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_WalletSaveError() { int jresult ; - coin__BlockBody *arg1 = (coin__BlockBody *) 0 ; - coin__BlockBody *arg2 = (coin__BlockBody *) 0 ; int result; - arg1 = (coin__BlockBody *)jarg1; - arg2 = (coin__BlockBody *)jarg2; - result = (int)coin__BlockBody_isEqual(arg1,arg2); + result = (int)(0x03000005); jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__BlockBody_Transactions(void * jarg1, void * jarg2) { - coin__BlockBody *arg1 = (coin__BlockBody *) 0 ; - coin__Transactions arg2 ; - coin__Transactions *argp2 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrAddEarnedCoinHoursAdditionOverflow() { + int jresult ; + int result; - arg1 = (coin__BlockBody *)jarg1; - argp2 = (coin__Transactions *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null coin__Transactions", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Transactions = arg2; + result = (int)(0x04000000); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__BlockBody_Transactions(void * jarg1) { - void * jresult ; - coin__BlockBody *arg1 = (coin__BlockBody *) 0 ; - coin__Transactions result; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrUint64MultOverflow() { + int jresult ; + int result; - arg1 = (coin__BlockBody *)jarg1; - result = ((arg1)->Transactions); - { - coin__Transactions * resultptr = (coin__Transactions *) malloc(sizeof(coin__Transactions)); - memmove(resultptr, &result, sizeof(coin__Transactions)); - jresult = resultptr; - } + result = (int)(0x04000001); + jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__BlockBody() { - void * jresult ; - coin__BlockBody *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrUint64AddOverflow() { + int jresult ; + int result; - result = (coin__BlockBody *)calloc(1, sizeof(coin__BlockBody)); - jresult = (void *)result; + result = (int)(0x04000002); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__BlockBody(void * jarg1) { - coin__BlockBody *arg1 = (coin__BlockBody *) 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrUint32AddOverflow() { + int jresult ; + int result; - arg1 = (coin__BlockBody *)jarg1; - free((char *) arg1); + result = (int)(0x04000003); + jresult = result; + return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__Block_Head(void * jarg1, void * jarg2) { - coin__Block *arg1 = (coin__Block *) 0 ; - coin__BlockHeader *arg2 = (coin__BlockHeader *) 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrUint64OverflowsInt64() { + int jresult ; + int result; - arg1 = (coin__Block *)jarg1; - arg2 = (coin__BlockHeader *)jarg2; - if (arg1) (arg1)->Head = *arg2; + result = (int)(0x04000004); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__Block_Head(void * jarg1) { - void * jresult ; - coin__Block *arg1 = (coin__Block *) 0 ; - coin__BlockHeader *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInt64UnderflowsUint64() { + int jresult ; + int result; - arg1 = (coin__Block *)jarg1; - result = (coin__BlockHeader *)& ((arg1)->Head); - jresult = (void *)result; + result = (int)(0x04000005); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__Block_Body(void * jarg1, void * jarg2) { - coin__Block *arg1 = (coin__Block *) 0 ; - coin__BlockBody *arg2 = (coin__BlockBody *) 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrPeerlistFull() { + int jresult ; + int result; - arg1 = (coin__Block *)jarg1; - arg2 = (coin__BlockBody *)jarg2; - if (arg1) (arg1)->Body = *arg2; + result = (int)(0x06000000); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__Block_Body(void * jarg1) { - void * jresult ; - coin__Block *arg1 = (coin__Block *) 0 ; - coin__BlockBody *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidAddress() { + int jresult ; + int result; - arg1 = (coin__Block *)jarg1; - result = (coin__BlockBody *)& ((arg1)->Body); - jresult = (void *)result; + result = (int)(0x06000001); + jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__Block() { - void * jresult ; - coin__Block *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrNoLocalhost() { + int jresult ; + int result; - result = (coin__Block *)calloc(1, sizeof(coin__Block)); - jresult = (void *)result; + result = (int)(0x06000002); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__Block(void * jarg1) { - coin__Block *arg1 = (coin__Block *) 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrNotExternalIP() { + int jresult ; + int result; - arg1 = (coin__Block *)jarg1; - free((char *) arg1); + result = (int)(0x06000003); + jresult = result; + return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__SignedBlock__unnamed(void * jarg1, void * jarg2) { - coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; - coin__Block *arg2 = (coin__Block *) 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrPortTooLow() { + int jresult ; + int result; - arg1 = (coin__SignedBlock *)jarg1; - arg2 = (coin__Block *)jarg2; - if (arg1) (arg1)->_unnamed = *arg2; + result = (int)(0x06000004); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__SignedBlock__unnamed(void * jarg1) { - void * jresult ; - coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; - coin__Block *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrBlacklistedAddress() { + int jresult ; + int result; - arg1 = (coin__SignedBlock *)jarg1; - result = (coin__Block *)& ((arg1)->_unnamed); - jresult = (void *)result; + result = (int)(0x06000005); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__SignedBlock_Sig(void * jarg1, void * jarg2) { - coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; - GoUint8_ *arg2 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectReadFailed() { + int jresult ; + int result; - arg1 = (coin__SignedBlock *)jarg1; - arg2 = (GoUint8_ *)jarg2; - { - size_t ii; - GoUint8_ *b = (GoUint8_ *) arg1->Sig; - for (ii = 0; ii < (size_t)65; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); - } + result = (int)(0x06000006); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__SignedBlock_Sig(void * jarg1) { - void * jresult ; - coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; - GoUint8_ *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectWriteFailed() { + int jresult ; + int result; - arg1 = (coin__SignedBlock *)jarg1; - result = (GoUint8_ *) ((arg1)->Sig); + result = (int)(0x06000007); jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__SignedBlock() { - void * jresult ; - coin__SignedBlock *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectSetReadDeadlineFailed() { + int jresult ; + int result; - result = (coin__SignedBlock *)calloc(1, sizeof(coin__SignedBlock)); - jresult = (void *)result; + result = (int)(0x06000008); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__SignedBlock(void * jarg1) { - coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectInvalidMessageLength() { + int jresult ; + int result; - arg1 = (coin__SignedBlock *)jarg1; - free((char *) arg1); + result = (int)(0x06000009); + jresult = result; + return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__UxHead_Time(void * jarg1, void * jarg2) { - coin__UxHead *arg1 = (coin__UxHead *) 0 ; - GoUint64_ arg2 ; - GoUint64_ *argp2 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectMalformedMessage() { + int jresult ; + int result; - arg1 = (coin__UxHead *)jarg1; - argp2 = (GoUint64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Time = arg2; + result = (int)(0x0600000A); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__UxHead_Time(void * jarg1) { - void * jresult ; - coin__UxHead *arg1 = (coin__UxHead *) 0 ; - GoUint64_ result; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectUnknownMessage() { + int jresult ; + int result; - arg1 = (coin__UxHead *)jarg1; - result = ((arg1)->Time); - { - GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); - memmove(resultptr, &result, sizeof(GoUint64_)); - jresult = resultptr; - } + result = (int)(0x0600000B); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__UxHead_BkSeq(void * jarg1, void * jarg2) { - coin__UxHead *arg1 = (coin__UxHead *) 0 ; - GoUint64_ arg2 ; - GoUint64_ *argp2 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectUnexpectedError() { + int jresult ; + int result; - arg1 = (coin__UxHead *)jarg1; - argp2 = (GoUint64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->BkSeq = arg2; + result = (int)(0x0600000C); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__UxHead_BkSeq(void * jarg1) { - void * jresult ; - coin__UxHead *arg1 = (coin__UxHead *) 0 ; - GoUint64_ result; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrConnectionPoolClosed() { + int jresult ; + int result; - arg1 = (coin__UxHead *)jarg1; - result = ((arg1)->BkSeq); - { - GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); - memmove(resultptr, &result, sizeof(GoUint64_)); - jresult = resultptr; - } + result = (int)(0x0600000D); + jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__UxHead() { - void * jresult ; - coin__UxHead *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrWriteQueueFull() { + int jresult ; + int result; - result = (coin__UxHead *)calloc(1, sizeof(coin__UxHead)); - jresult = (void *)result; + result = (int)(0x0600000E); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__UxHead(void * jarg1) { - coin__UxHead *arg1 = (coin__UxHead *) 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrNoReachableConnections() { + int jresult ; + int result; - arg1 = (coin__UxHead *)jarg1; - free((char *) arg1); + result = (int)(0x0600000F); + jresult = result; + return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__UxBody_SrcTransaction(void * jarg1, void * jarg2) { - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - GoUint8_ *arg2 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrMaxDefaultConnectionsReached() { + int jresult ; + int result; - arg1 = (coin__UxBody *)jarg1; - arg2 = (GoUint8_ *)jarg2; - { - size_t ii; - GoUint8_ *b = (GoUint8_ *) arg1->SrcTransaction; - for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); - } + result = (int)(0x06000010); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__UxBody_SrcTransaction(void * jarg1) { - void * jresult ; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - GoUint8_ *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectInvalidVersion() { + int jresult ; + int result; - arg1 = (coin__UxBody *)jarg1; - result = (GoUint8_ *) ((arg1)->SrcTransaction); + result = (int)(0x06000011); jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__UxBody_Address(void * jarg1, void * jarg2) { - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectIntroductionTimeout() { + int jresult ; + int result; - arg1 = (coin__UxBody *)jarg1; - arg2 = (cipher__Address *)jarg2; - if (arg1) (arg1)->Address = *arg2; + result = (int)(0x06000012); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__UxBody_Address(void * jarg1) { - void * jresult ; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - cipher__Address *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectVersionSendFailed() { + int jresult ; + int result; - arg1 = (coin__UxBody *)jarg1; - result = (cipher__Address *)& ((arg1)->Address); - jresult = (void *)result; + result = (int)(0x06000013); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__UxBody_Coins(void * jarg1, void * jarg2) { - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - GoUint64_ arg2 ; - GoUint64_ *argp2 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectIsBlacklisted() { + int jresult ; + int result; - arg1 = (coin__UxBody *)jarg1; - argp2 = (GoUint64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Coins = arg2; + result = (int)(0x06000014); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__UxBody_Coins(void * jarg1) { - void * jresult ; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - GoUint64_ result; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectSelf() { + int jresult ; + int result; - arg1 = (coin__UxBody *)jarg1; - result = ((arg1)->Coins); - { - GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); - memmove(resultptr, &result, sizeof(GoUint64_)); - jresult = resultptr; - } + result = (int)(0x06000015); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__UxBody_Hours(void * jarg1, void * jarg2) { - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - GoUint64_ arg2 ; - GoUint64_ *argp2 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectConnectedTwice() { + int jresult ; + int result; - arg1 = (coin__UxBody *)jarg1; - argp2 = (GoUint64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Hours = arg2; + result = (int)(0x06000016); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__UxBody_Hours(void * jarg1) { - void * jresult ; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - GoUint64_ result; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectIdle() { + int jresult ; + int result; - arg1 = (coin__UxBody *)jarg1; - result = ((arg1)->Hours); - { - GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); - memmove(resultptr, &result, sizeof(GoUint64_)); - jresult = resultptr; - } + result = (int)(0x06000017); + jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__UxBody() { - void * jresult ; - coin__UxBody *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectNoIntroduction() { + int jresult ; + int result; - result = (coin__UxBody *)calloc(1, sizeof(coin__UxBody)); - jresult = (void *)result; + result = (int)(0x06000018); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__UxBody(void * jarg1) { - coin__UxBody *arg1 = (coin__UxBody *) 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectIPLimitReached() { + int jresult ; + int result; - arg1 = (coin__UxBody *)jarg1; - free((char *) arg1); + result = (int)(0x06000019); + jresult = result; + return jresult; } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__UxOut_isEqual(void * jarg1, void * jarg2) { - int jresult ; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - coin__UxOut *arg2 = (coin__UxOut *) 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectOtherError() { + int jresult ; int result; - arg1 = (coin__UxOut *)jarg1; - arg2 = (coin__UxOut *)jarg2; - result = (int)coin__UxOut_isEqual(arg1,arg2); + result = (int)(0x0600001A); jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__UxOut_Head(void * jarg1, void * jarg2) { - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - coin__UxHead *arg2 = (coin__UxHead *) 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectMaxDefaultConnectionReached() { + int jresult ; + int result; - arg1 = (coin__UxOut *)jarg1; - arg2 = (coin__UxHead *)jarg2; - if (arg1) (arg1)->Head = *arg2; + result = (int)(0x0600001B); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__UxOut_Head(void * jarg1) { - void * jresult ; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - coin__UxHead *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectMaxOutgoingConnectionsReached() { + int jresult ; + int result; - arg1 = (coin__UxOut *)jarg1; - result = (coin__UxHead *)& ((arg1)->Head); - jresult = (void *)result; + result = (int)(0x0600001C); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__UxOut_Body(void * jarg1, void * jarg2) { - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - coin__UxBody *arg2 = (coin__UxBody *) 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ConnectionError() { + int jresult ; + int result; - arg1 = (coin__UxOut *)jarg1; - arg2 = (coin__UxBody *)jarg2; - if (arg1) (arg1)->Body = *arg2; + result = (int)(0x0600001D); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__UxOut_Body(void * jarg1) { - void * jresult ; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - coin__UxBody *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrTxnNoFee() { + int jresult ; + int result; - arg1 = (coin__UxOut *)jarg1; - result = (coin__UxBody *)& ((arg1)->Body); - jresult = (void *)result; + result = (int)(0x09000000); + jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__UxOut() { - void * jresult ; - coin__UxOut *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrTxnInsufficientFee() { + int jresult ; + int result; - result = (coin__UxOut *)calloc(1, sizeof(coin__UxOut)); - jresult = (void *)result; + result = (int)(0x09000001); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__UxOut(void * jarg1) { - coin__UxOut *arg1 = (coin__UxOut *) 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrTxnInsufficientCoinHours() { + int jresult ; + int result; - arg1 = (coin__UxOut *)jarg1; - free((char *) arg1); + result = (int)(0x09000002); + jresult = result; + return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__Balance_Coins(void * jarg1, void * jarg2) { - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - GoUint64_ arg2 ; - GoUint64_ *argp2 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrNegativeValue() { + int jresult ; + int result; - arg1 = (wallet__Balance *)jarg1; - argp2 = (GoUint64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Coins = arg2; + result = (int)(0x09000003); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__Balance_Coins(void * jarg1) { - void * jresult ; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - GoUint64_ result; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrTooManyDecimals() { + int jresult ; + int result; - arg1 = (wallet__Balance *)jarg1; - result = ((arg1)->Coins); - { - GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); - memmove(resultptr, &result, sizeof(GoUint64_)); - jresult = resultptr; - } + result = (int)(0x09000004); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__Balance_Hours(void * jarg1, void * jarg2) { - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - GoUint64_ arg2 ; - GoUint64_ *argp2 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrTooLarge() { + int jresult ; + int result; - arg1 = (wallet__Balance *)jarg1; - argp2 = (GoUint64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Hours = arg2; + result = (int)(0x09000005); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__Balance_Hours(void * jarg1) { - void * jresult ; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - GoUint64_ result; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrEmptyDirectoryName() { + int jresult ; + int result; - arg1 = (wallet__Balance *)jarg1; - result = ((arg1)->Hours); - { - GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); - memmove(resultptr, &result, sizeof(GoUint64_)); - jresult = resultptr; - } + result = (int)(0x09000006); + jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_wallet__Balance() { - void * jresult ; - wallet__Balance *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDotDirectoryName() { + int jresult ; + int result; - result = (wallet__Balance *)calloc(1, sizeof(wallet__Balance)); - jresult = (void *)result; + result = (int)(0x09000007); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__Balance(void * jarg1) { - wallet__Balance *arg1 = (wallet__Balance *) 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrHistoryDBCorrupted() { + int jresult ; + int result; - arg1 = (wallet__Balance *)jarg1; - free((char *) arg1); + result = (int)(0x0A000000); + jresult = result; + return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__BalancePair_Confirmed(void * jarg1, void * jarg2) { - wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; - wallet__Balance *arg2 = (wallet__Balance *) 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrUxOutNotExist() { + int jresult ; + int result; - arg1 = (wallet__BalancePair *)jarg1; - arg2 = (wallet__Balance *)jarg2; - if (arg1) (arg1)->Confirmed = *arg2; + result = (int)(0x0A000001); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__BalancePair_Confirmed(void * jarg1) { - void * jresult ; - wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; - wallet__Balance *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrNoHeadBlock() { + int jresult ; + int result; - arg1 = (wallet__BalancePair *)jarg1; - result = (wallet__Balance *)& ((arg1)->Confirmed); - jresult = (void *)result; + result = (int)(0x0A000002); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__BalancePair_Predicted(void * jarg1, void * jarg2) { - wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; - wallet__Balance *arg2 = (wallet__Balance *) 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrMissingSignature() { + int jresult ; + int result; - arg1 = (wallet__BalancePair *)jarg1; - arg2 = (wallet__Balance *)jarg2; - if (arg1) (arg1)->Predicted = *arg2; + result = (int)(0x0A000003); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__BalancePair_Predicted(void * jarg1) { - void * jresult ; - wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; - wallet__Balance *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrUnspentNotExist() { + int jresult ; + int result; - arg1 = (wallet__BalancePair *)jarg1; - result = (wallet__Balance *)& ((arg1)->Predicted); - jresult = (void *)result; + result = (int)(0x0A000004); + jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_wallet__BalancePair() { - void * jresult ; - wallet__BalancePair *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrVerifyStopped() { + int jresult ; + int result; - result = (wallet__BalancePair *)calloc(1, sizeof(wallet__BalancePair)); - jresult = (void *)result; + result = (int)(0x0A000005); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__BalancePair(void * jarg1) { - wallet__BalancePair *arg1 = (wallet__BalancePair *) 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrCreateBucketFailed() { + int jresult ; + int result; - arg1 = (wallet__BalancePair *)jarg1; - free((char *) arg1); + result = (int)(0x0A000000); + jresult = result; + return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__Entry_Address(void * jarg1, void * jarg2) { - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrBucketNotExist() { + int jresult ; + int result; - arg1 = (wallet__Entry *)jarg1; - arg2 = (cipher__Address *)jarg2; - if (arg1) (arg1)->Address = *arg2; + result = (int)(0x0A000006); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__Entry_Address(void * jarg1) { - void * jresult ; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - cipher__Address *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrTxnViolatesHardConstraint() { + int jresult ; + int result; - arg1 = (wallet__Entry *)jarg1; - result = (cipher__Address *)& ((arg1)->Address); - jresult = (void *)result; + result = (int)(0x0A000007); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__Entry_Public(void * jarg1, void * jarg2) { - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - GoUint8_ *arg2 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrTxnViolatesSoftConstraint() { + int jresult ; + int result; - arg1 = (wallet__Entry *)jarg1; - arg2 = (GoUint8_ *)jarg2; - { - size_t ii; - GoUint8_ *b = (GoUint8_ *) arg1->Public; - for (ii = 0; ii < (size_t)33; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); - } + result = (int)(0x0A000008); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__Entry_Public(void * jarg1) { - void * jresult ; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - GoUint8_ *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrTxnViolatesUserConstraint() { + int jresult ; + int result; - arg1 = (wallet__Entry *)jarg1; - result = (GoUint8_ *) ((arg1)->Public); + result = (int)(0x0A000009); jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__Entry_Secret(void * jarg1, void * jarg2) { - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - GoUint8_ *arg2 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInsufficientBalance() { + int jresult ; + int result; - arg1 = (wallet__Entry *)jarg1; - arg2 = (GoUint8_ *)jarg2; - { - size_t ii; - GoUint8_ *b = (GoUint8_ *) arg1->Secret; - for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); - } + result = (int)(0x0B000000); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__Entry_Secret(void * jarg1) { - void * jresult ; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - GoUint8_ *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInsufficientHours() { + int jresult ; + int result; - arg1 = (wallet__Entry *)jarg1; - result = (GoUint8_ *) ((arg1)->Secret); + result = (int)(0x0B000001); jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_wallet__Entry() { - void * jresult ; - wallet__Entry *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrZeroSpend() { + int jresult ; + int result; - result = (wallet__Entry *)calloc(1, sizeof(wallet__Entry)); - jresult = (void *)result; + result = (int)(0x0B000002); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__Entry(void * jarg1) { - wallet__Entry *arg1 = (wallet__Entry *) 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrSpendingUnconfirmed() { + int jresult ; + int result; - arg1 = (wallet__Entry *)jarg1; - free((char *) arg1); + result = (int)(0x0B000003); + jresult = result; + return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__Note_TxID(void * jarg1, void * jarg2) { - wallet__Note *arg1 = (wallet__Note *) 0 ; - GoString_ arg2 ; - GoString_ *argp2 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidEncryptedField() { + int jresult ; + int result; - arg1 = (wallet__Note *)jarg1; - argp2 = (GoString_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->TxID = arg2; + result = (int)(0x0B000004); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__Note_TxID(void * jarg1) { - void * jresult ; - wallet__Note *arg1 = (wallet__Note *) 0 ; - GoString_ result; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrWalletEncrypted() { + int jresult ; + int result; - arg1 = (wallet__Note *)jarg1; - result = ((arg1)->TxID); - { - GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); - memmove(resultptr, &result, sizeof(GoString_)); - jresult = resultptr; - } + result = (int)(0x0B000005); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__Note_Value(void * jarg1, void * jarg2) { - wallet__Note *arg1 = (wallet__Note *) 0 ; - GoString_ arg2 ; - GoString_ *argp2 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrWalletNotEncrypted() { + int jresult ; + int result; - arg1 = (wallet__Note *)jarg1; - argp2 = (GoString_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Value = arg2; + result = (int)(0x0B000006); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__Note_Value(void * jarg1) { - void * jresult ; - wallet__Note *arg1 = (wallet__Note *) 0 ; - GoString_ result; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrMissingPassword() { + int jresult ; + int result; - arg1 = (wallet__Note *)jarg1; - result = ((arg1)->Value); - { - GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); - memmove(resultptr, &result, sizeof(GoString_)); - jresult = resultptr; - } + result = (int)(0x0B000007); + jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_wallet__Note() { - void * jresult ; - wallet__Note *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrMissingEncrypt() { + int jresult ; + int result; - result = (wallet__Note *)calloc(1, sizeof(wallet__Note)); - jresult = (void *)result; + result = (int)(0x0B000008); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__Note(void * jarg1) { - wallet__Note *arg1 = (wallet__Note *) 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidPassword() { + int jresult ; + int result; - arg1 = (wallet__Note *)jarg1; - free((char *) arg1); + result = (int)(0x0B000009); + jresult = result; + return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__ReadableNote_TransactionID(void * jarg1, void * jarg2) { - wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; - GoString_ arg2 ; - GoString_ *argp2 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrMissingSeed() { + int jresult ; + int result; - arg1 = (wallet__ReadableNote *)jarg1; - argp2 = (GoString_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->TransactionID = arg2; + result = (int)(0x0B00000A); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__ReadableNote_TransactionID(void * jarg1) { - void * jresult ; - wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; - GoString_ result; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrMissingAuthenticated() { + int jresult ; + int result; - arg1 = (wallet__ReadableNote *)jarg1; - result = ((arg1)->TransactionID); - { - GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); - memmove(resultptr, &result, sizeof(GoString_)); - jresult = resultptr; - } + result = (int)(0x0B00000B); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__ReadableNote_ActualNote(void * jarg1, void * jarg2) { - wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; - GoString_ arg2 ; - GoString_ *argp2 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrWrongCryptoType() { + int jresult ; + int result; - arg1 = (wallet__ReadableNote *)jarg1; - argp2 = (GoString_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->ActualNote = arg2; + result = (int)(0x0B00000C); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__ReadableNote_ActualNote(void * jarg1) { - void * jresult ; - wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; - GoString_ result; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrWalletNotExist() { + int jresult ; + int result; - arg1 = (wallet__ReadableNote *)jarg1; - result = ((arg1)->ActualNote); - { - GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); - memmove(resultptr, &result, sizeof(GoString_)); - jresult = resultptr; - } + result = (int)(0x0B00000D); + jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_wallet__ReadableNote() { - void * jresult ; - wallet__ReadableNote *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrSeedUsed() { + int jresult ; + int result; - result = (wallet__ReadableNote *)calloc(1, sizeof(wallet__ReadableNote)); - jresult = (void *)result; + result = (int)(0x0B00000E); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__ReadableNote(void * jarg1) { - wallet__ReadableNote *arg1 = (wallet__ReadableNote *) 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrWalletAPIDisabled() { + int jresult ; + int result; - arg1 = (wallet__ReadableNote *)jarg1; - free((char *) arg1); + result = (int)(0x0B00000F); + jresult = result; + return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__UxBalance_Hash(void * jarg1, void * jarg2) { - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - GoUint8_ *arg2 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrSeedAPIDisabled() { + int jresult ; + int result; - arg1 = (wallet__UxBalance *)jarg1; - arg2 = (GoUint8_ *)jarg2; - { - size_t ii; - GoUint8_ *b = (GoUint8_ *) arg1->Hash; - for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); - } + result = (int)(0x0B000010); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__UxBalance_Hash(void * jarg1) { - void * jresult ; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - GoUint8_ *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrWalletNameConflict() { + int jresult ; + int result; - arg1 = (wallet__UxBalance *)jarg1; - result = (GoUint8_ *) ((arg1)->Hash); + result = (int)(0x0B000011); jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__UxBalance_BkSeq(void * jarg1, void * jarg2) { - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - GoInt64_ arg2 ; - GoInt64_ *argp2 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidHoursSelectionMode() { + int jresult ; + int result; - arg1 = (wallet__UxBalance *)jarg1; - argp2 = (GoInt64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt64_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->BkSeq = arg2; + result = (int)(0x0B000012); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__UxBalance_BkSeq(void * jarg1) { - void * jresult ; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - GoInt64_ result; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidHoursSelectionType() { + int jresult ; + int result; - arg1 = (wallet__UxBalance *)jarg1; - result = ((arg1)->BkSeq); - { - GoInt64_ * resultptr = (GoInt64_ *) malloc(sizeof(GoInt64_)); - memmove(resultptr, &result, sizeof(GoInt64_)); - jresult = resultptr; - } + result = (int)(0x0B000013); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__UxBalance_Address(void * jarg1, void * jarg2) { - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrUnknownAddress() { + int jresult ; + int result; - arg1 = (wallet__UxBalance *)jarg1; - arg2 = (cipher__Address *)jarg2; - if (arg1) (arg1)->Address = *arg2; + result = (int)(0x0B000014); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__UxBalance_Address(void * jarg1) { - void * jresult ; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - cipher__Address *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrUnknownUxOut() { + int jresult ; + int result; - arg1 = (wallet__UxBalance *)jarg1; - result = (cipher__Address *)& ((arg1)->Address); - jresult = (void *)result; + result = (int)(0x0B000015); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__UxBalance_Coins(void * jarg1, void * jarg2) { - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - GoInt64_ arg2 ; - GoInt64_ *argp2 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrNoUnspents() { + int jresult ; + int result; - arg1 = (wallet__UxBalance *)jarg1; - argp2 = (GoInt64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt64_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Coins = arg2; + result = (int)(0x0B000016); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__UxBalance_Coins(void * jarg1) { - void * jresult ; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - GoInt64_ result; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrNullChangeAddress() { + int jresult ; + int result; - arg1 = (wallet__UxBalance *)jarg1; - result = ((arg1)->Coins); - { - GoInt64_ * resultptr = (GoInt64_ *) malloc(sizeof(GoInt64_)); - memmove(resultptr, &result, sizeof(GoInt64_)); - jresult = resultptr; - } + result = (int)(0x0B000017); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__UxBalance_Hours(void * jarg1, void * jarg2) { - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - GoInt64_ arg2 ; - GoInt64_ *argp2 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrMissingTo() { + int jresult ; + int result; - arg1 = (wallet__UxBalance *)jarg1; - argp2 = (GoInt64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt64_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Hours = arg2; + result = (int)(0x0B000018); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__UxBalance_Hours(void * jarg1) { - void * jresult ; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - GoInt64_ result; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrZeroCoinsTo() { + int jresult ; + int result; - arg1 = (wallet__UxBalance *)jarg1; - result = ((arg1)->Hours); - { - GoInt64_ * resultptr = (GoInt64_ *) malloc(sizeof(GoInt64_)); - memmove(resultptr, &result, sizeof(GoInt64_)); - jresult = resultptr; - } + result = (int)(0x0B000019); + jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_wallet__UxBalance() { - void * jresult ; - wallet__UxBalance *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrNullAddressTo() { + int jresult ; + int result; - result = (wallet__UxBalance *)calloc(1, sizeof(wallet__UxBalance)); - jresult = (void *)result; + result = (int)(0x0B00001A); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__UxBalance(void * jarg1) { - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDuplicateTo() { + int jresult ; + int result; - arg1 = (wallet__UxBalance *)jarg1; - free((char *) arg1); + result = (int)(0x0B00001B); + jresult = result; + return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_api__RichlistParams_N(void * jarg1, void * jarg2) { - api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; - GoInt_ arg2 ; - GoInt_ *argp2 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrMissingWalletID() { + int jresult ; + int result; - arg1 = (api__RichlistParams *)jarg1; - argp2 = (GoInt_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->N = arg2; + result = (int)(0x0B00001C); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_api__RichlistParams_N(void * jarg1) { - void * jresult ; - api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; - GoInt_ result; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrIncludesNullAddress() { + int jresult ; + int result; - arg1 = (api__RichlistParams *)jarg1; - result = ((arg1)->N); - { - GoInt_ * resultptr = (GoInt_ *) malloc(sizeof(GoInt_)); - memmove(resultptr, &result, sizeof(GoInt_)); - jresult = resultptr; - } + result = (int)(0x0B00001D); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_api__RichlistParams_IncludeDistribution(void * jarg1, void * jarg2) { - api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; - BOOL arg2 ; - BOOL *argp2 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDuplicateAddresses() { + int jresult ; + int result; - arg1 = (api__RichlistParams *)jarg1; - argp2 = (BOOL *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null BOOL", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->IncludeDistribution = arg2; + result = (int)(0x0B00001E); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_api__RichlistParams_IncludeDistribution(void * jarg1) { - void * jresult ; - api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; - BOOL result; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrZeroToHoursAuto() { + int jresult ; + int result; - arg1 = (api__RichlistParams *)jarg1; - result = ((arg1)->IncludeDistribution); - { - BOOL * resultptr = (BOOL *) malloc(sizeof(BOOL)); - memmove(resultptr, &result, sizeof(BOOL)); - jresult = resultptr; - } + result = (int)(0x0B00001F); + jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_api__RichlistParams() { - void * jresult ; - api__RichlistParams *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrMissingModeAuto() { + int jresult ; + int result; - result = (api__RichlistParams *)calloc(1, sizeof(api__RichlistParams)); - jresult = (void *)result; + result = (int)(0x0B000020); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_api__RichlistParams(void * jarg1) { - api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidHoursSelMode() { + int jresult ; + int result; - arg1 = (api__RichlistParams *)jarg1; - free((char *) arg1); + result = (int)(0x0B000021); + jresult = result; + return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cli__SendAmount_Addr(void * jarg1, void * jarg2) { - cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; - GoString_ arg2 ; - GoString_ *argp2 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidModeManual() { + int jresult ; + int result; - arg1 = (cli__SendAmount *)jarg1; - argp2 = (GoString_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Addr = arg2; + result = (int)(0x0B000022); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_cli__SendAmount_Addr(void * jarg1) { - void * jresult ; - cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; - GoString_ result; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidHoursSelType() { + int jresult ; + int result; - arg1 = (cli__SendAmount *)jarg1; - result = ((arg1)->Addr); - { - GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); - memmove(resultptr, &result, sizeof(GoString_)); - jresult = resultptr; - } + result = (int)(0x0B000023); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cli__SendAmount_Coins(void * jarg1, void * jarg2) { - cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; - GoInt64_ arg2 ; - GoInt64_ *argp2 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrMissingShareFactor() { + int jresult ; + int result; - arg1 = (cli__SendAmount *)jarg1; - argp2 = (GoInt64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt64_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Coins = arg2; + result = (int)(0x0B000024); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_cli__SendAmount_Coins(void * jarg1) { - void * jresult ; - cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; - GoInt64_ result; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidShareFactor() { + int jresult ; + int result; - arg1 = (cli__SendAmount *)jarg1; - result = ((arg1)->Coins); - { - GoInt64_ * resultptr = (GoInt64_ *) malloc(sizeof(GoInt64_)); - memmove(resultptr, &result, sizeof(GoInt64_)); - jresult = resultptr; - } + result = (int)(0x0B000025); + jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cli__SendAmount() { - void * jresult ; - cli__SendAmount *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrShareFactorOutOfRange() { + int jresult ; + int result; - result = (cli__SendAmount *)calloc(1, sizeof(cli__SendAmount)); - jresult = (void *)result; + result = (int)(0x0B000026); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cli__SendAmount(void * jarg1) { - cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrWalletConstraint() { + int jresult ; + int result; - arg1 = (cli__SendAmount *)jarg1; - free((char *) arg1); + result = (int)(0x0B000027); + jresult = result; + return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_httphelper__Address__unnamed(void * jarg1, void * jarg2) { - httphelper__Address *arg1 = (httphelper__Address *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDuplicateUxOuts() { + int jresult ; + int result; - arg1 = (httphelper__Address *)jarg1; - arg2 = (cipher__Address *)jarg2; - if (arg1) (arg1)->_unnamed = *arg2; + result = (int)(0x0B000028); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_httphelper__Address__unnamed(void * jarg1) { - void * jresult ; - httphelper__Address *arg1 = (httphelper__Address *) 0 ; - cipher__Address *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrUnknownWalletID() { + int jresult ; + int result; - arg1 = (httphelper__Address *)jarg1; - result = (cipher__Address *)& ((arg1)->_unnamed); - jresult = (void *)result; + result = (int)(0x0B000029); + jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_httphelper__Address() { - void * jresult ; - httphelper__Address *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrSHA256orMissingPassword() { + int jresult ; + int result; - result = (httphelper__Address *)calloc(1, sizeof(httphelper__Address)); - jresult = (void *)result; + result = (int)(0x0B00002A); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_httphelper__Address(void * jarg1) { - httphelper__Address *arg1 = (httphelper__Address *) 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrSHA256LenghtDataOverflowMaxUint32() { + int jresult ; + int result; - arg1 = (httphelper__Address *)jarg1; - free((char *) arg1); + result = (int)(0x0B00002B); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrVerifySignatureInvalidPubkeysLength() { + int jresult ; + int result; + + result = (int)(0X0b000036); + jresult = result; + return jresult; } diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index d2bbe0b8..60513c12 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit d2bbe0b8356606f9b295cad83604964d1ff1445b +Subproject commit 60513c121da0c78e60a27097b0112e7426507026 From 6ee3a9aa1db03c3a58688a1eb723d2845eef6503 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Fri, 7 Sep 2018 23:22:24 -0400 Subject: [PATCH 16/73] [swig][submodule] refs #4 Update submodule --- gopath/src/github.com/skycoin/skycoin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index 60513c12..6e6dfc5f 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit 60513c121da0c78e60a27097b0112e7426507026 +Subproject commit 6e6dfc5f04ab953f9b250e74832fe6f788e53609 From ae352a43ad85905766ce8cd25dd4dbd8b83e968d Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Sun, 9 Sep 2018 01:02:20 -0400 Subject: [PATCH 17/73] [swig] refs #4 Update submodule --- LibskycoinNet/LibskycoinNet.csproj | 5 - .../skycoin/SWIGTYPE_p_GoInterface.cs | 29 - LibskycoinNet/skycoin/SWIGTYPE_p_GoMap_.cs | 29 - LibskycoinNet/skycoin/SWIGTYPE_p_GoSlice.cs | 29 - .../SWIGTYPE_p_ReadableOutputSet__Handle.cs | 29 - .../skycoin/SWIGTYPE_p__GoString_.cs | 29 - .../skycoin/SWIGTYPE_p_a_33__cipher_PubKey.cs | 29 - .../skycoin/SWIGTYPE_p_api__RichlistParams.cs | 29 - .../skycoin/SWIGTYPE_p_cipher_Addresses.cs | 29 - .../skycoin/SWIGTYPE_p_cipher_Checksum.cs | 29 - .../skycoin/SWIGTYPE_p_cipher_PubKey.cs | 29 - .../skycoin/SWIGTYPE_p_cipher_PubKeys.cs | 29 - .../skycoin/SWIGTYPE_p_cipher_Ripemd160.cs | 29 - .../skycoin/SWIGTYPE_p_cipher_SHA256.cs | 29 - .../skycoin/SWIGTYPE_p_cipher_SHA256s.cs | 29 - .../skycoin/SWIGTYPE_p_cipher_SecKey.cs | 29 - .../skycoin/SWIGTYPE_p_cipher_SecKeys.cs | 29 - .../skycoin/SWIGTYPE_p_cipher_Sig.cs | 29 - .../skycoin/SWIGTYPE_p_cipher__Address.cs | 29 - .../skycoin/SWIGTYPE_p_cli__SendAmount.cs | 29 - .../skycoin/SWIGTYPE_p_coin_UxOutArray.cs | 29 - .../skycoin/SWIGTYPE_p_coin__Block.cs | 29 - .../skycoin/SWIGTYPE_p_coin__BlockBody.cs | 29 - .../skycoin/SWIGTYPE_p_coin__BlockHeader.cs | 29 - .../skycoin/SWIGTYPE_p_coin__SignedBlock.cs | 29 - .../SWIGTYPE_p_coin__SortableTransactions.cs | 29 - .../skycoin/SWIGTYPE_p_coin__Transaction.cs | 29 - .../SWIGTYPE_p_coin__TransactionOutput.cs | 29 - .../skycoin/SWIGTYPE_p_coin__UxBody.cs | 29 - .../skycoin/SWIGTYPE_p_coin__UxHead.cs | 29 - .../skycoin/SWIGTYPE_p_coin__UxOut.cs | 29 - .../SWIGTYPE_p_encoder__StructField.cs | 29 - ...GTYPE_p_encrypt__ScryptChacha20poly1305.cs | 29 - .../skycoin/SWIGTYPE_p_httphelper__Address.cs | 29 - .../skycoin/SWIGTYPE_p_secp256k1go__Field.cs | 29 - .../skycoin/SWIGTYPE_p_secp256k1go__XY.cs | 29 - .../skycoin/SWIGTYPE_p_secp256k1go__XYZ.cs | 29 - .../skycoin/SWIGTYPE_p_wallet__Balance.cs | 29 - .../skycoin/SWIGTYPE_p_wallet__BalancePair.cs | 29 - .../skycoin/SWIGTYPE_p_wallet__Entry.cs | 29 - .../skycoin/SWIGTYPE_p_wallet__Note.cs | 29 - .../SWIGTYPE_p_wallet__ReadableNote.cs | 29 - .../skycoin/SWIGTYPE_p_wallet__UxBalance.cs | 29 - .../skycoin/SWIGTYPE_p_wallet__Wallet.cs | 29 - .../skycoin/coin__SortableTransactions.cs | 84 - LibskycoinNet/skycoin/skycoin.cs | 75 +- LibskycoinNet/skycoin/skycoinPINVOKE.cs | 332 +++- LibskycoinNet/skycoin/skycoinnet_wrap.c | 1756 +++++++++++++++-- LibskycoinNet/skycoin/wallet__Wallet.cs | 72 - gopath/src/github.com/skycoin/skycoin | 2 +- 50 files changed, 1969 insertions(+), 1604 deletions(-) delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_GoInterface.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_GoMap_.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_GoSlice.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_ReadableOutputSet__Handle.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p__GoString_.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_a_33__cipher_PubKey.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_api__RichlistParams.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_cipher_Addresses.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_cipher_Checksum.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_cipher_PubKey.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_cipher_PubKeys.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_cipher_Ripemd160.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_cipher_SHA256.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_cipher_SHA256s.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_cipher_SecKey.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_cipher_SecKeys.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_cipher_Sig.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_cipher__Address.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_cli__SendAmount.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_coin_UxOutArray.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_coin__Block.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_coin__BlockBody.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_coin__BlockHeader.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_coin__SignedBlock.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_coin__SortableTransactions.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_coin__Transaction.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_coin__TransactionOutput.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_coin__UxBody.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_coin__UxHead.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_coin__UxOut.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_encoder__StructField.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_encrypt__ScryptChacha20poly1305.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_httphelper__Address.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_secp256k1go__Field.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_secp256k1go__XY.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_secp256k1go__XYZ.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_wallet__Balance.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_wallet__BalancePair.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_wallet__Entry.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_wallet__Note.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_wallet__ReadableNote.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_wallet__UxBalance.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_wallet__Wallet.cs delete mode 100644 LibskycoinNet/skycoin/coin__SortableTransactions.cs delete mode 100644 LibskycoinNet/skycoin/wallet__Wallet.cs diff --git a/LibskycoinNet/LibskycoinNet.csproj b/LibskycoinNet/LibskycoinNet.csproj index cd0bfdba..5ac45615 100644 --- a/LibskycoinNet/LibskycoinNet.csproj +++ b/LibskycoinNet/LibskycoinNet.csproj @@ -52,7 +52,6 @@ - @@ -111,7 +110,6 @@ - @@ -131,10 +129,7 @@ - - - diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_GoInterface.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_GoInterface.cs deleted file mode 100644 index 408d0c77..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_GoInterface.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_GoInterface { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_GoInterface(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_GoInterface() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_GoInterface obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_GoMap_.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_GoMap_.cs deleted file mode 100644 index cbdd11ac..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_GoMap_.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_GoMap_ { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_GoMap_(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_GoMap_() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_GoMap_ obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_GoSlice.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_GoSlice.cs deleted file mode 100644 index 1e890847..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_GoSlice.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_GoSlice { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_GoSlice(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_GoSlice() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_GoSlice obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_ReadableOutputSet__Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_ReadableOutputSet__Handle.cs deleted file mode 100644 index c01b8b93..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_ReadableOutputSet__Handle.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_ReadableOutputSet__Handle { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_ReadableOutputSet__Handle(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_ReadableOutputSet__Handle() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_ReadableOutputSet__Handle obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p__GoString_.cs b/LibskycoinNet/skycoin/SWIGTYPE_p__GoString_.cs deleted file mode 100644 index f95ee083..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p__GoString_.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p__GoString_ { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p__GoString_(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p__GoString_() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p__GoString_ obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_a_33__cipher_PubKey.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_a_33__cipher_PubKey.cs deleted file mode 100644 index 868df023..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_a_33__cipher_PubKey.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_a_33__cipher_PubKey { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_a_33__cipher_PubKey(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_a_33__cipher_PubKey() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_a_33__cipher_PubKey obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_api__RichlistParams.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_api__RichlistParams.cs deleted file mode 100644 index fda547c3..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_api__RichlistParams.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_api__RichlistParams { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_api__RichlistParams(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_api__RichlistParams() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_api__RichlistParams obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_Addresses.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_Addresses.cs deleted file mode 100644 index 28ccd2c7..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_Addresses.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_cipher_Addresses { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_cipher_Addresses(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_cipher_Addresses() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_cipher_Addresses obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_Checksum.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_Checksum.cs deleted file mode 100644 index 13cb3810..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_Checksum.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_cipher_Checksum { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_cipher_Checksum(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_cipher_Checksum() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_cipher_Checksum obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_PubKey.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_PubKey.cs deleted file mode 100644 index 1c9bc115..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_PubKey.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_cipher_PubKey { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_cipher_PubKey(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_cipher_PubKey() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_cipher_PubKey obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_PubKeys.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_PubKeys.cs deleted file mode 100644 index 0350f3ef..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_PubKeys.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_cipher_PubKeys { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_cipher_PubKeys(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_cipher_PubKeys() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_cipher_PubKeys obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_Ripemd160.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_Ripemd160.cs deleted file mode 100644 index 2f100017..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_Ripemd160.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_cipher_Ripemd160 { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_cipher_Ripemd160(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_cipher_Ripemd160() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_cipher_Ripemd160 obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_SHA256.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_SHA256.cs deleted file mode 100644 index af076180..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_SHA256.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_cipher_SHA256 { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_cipher_SHA256(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_cipher_SHA256() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_cipher_SHA256 obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_SHA256s.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_SHA256s.cs deleted file mode 100644 index d5ff8350..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_SHA256s.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_cipher_SHA256s { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_cipher_SHA256s(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_cipher_SHA256s() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_cipher_SHA256s obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_SecKey.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_SecKey.cs deleted file mode 100644 index c0c5743e..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_SecKey.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_cipher_SecKey { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_cipher_SecKey(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_cipher_SecKey() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_cipher_SecKey obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_SecKeys.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_SecKeys.cs deleted file mode 100644 index 8670df9c..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_SecKeys.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_cipher_SecKeys { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_cipher_SecKeys(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_cipher_SecKeys() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_cipher_SecKeys obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_Sig.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_Sig.cs deleted file mode 100644 index 7dd0c3d3..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_cipher_Sig.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_cipher_Sig { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_cipher_Sig(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_cipher_Sig() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_cipher_Sig obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_cipher__Address.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_cipher__Address.cs deleted file mode 100644 index 4bb23746..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_cipher__Address.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_cipher__Address { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_cipher__Address(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_cipher__Address() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_cipher__Address obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_cli__SendAmount.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_cli__SendAmount.cs deleted file mode 100644 index e0a64bed..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_cli__SendAmount.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_cli__SendAmount { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_cli__SendAmount(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_cli__SendAmount() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_cli__SendAmount obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_coin_UxOutArray.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_coin_UxOutArray.cs deleted file mode 100644 index 88a0c0cf..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_coin_UxOutArray.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_coin_UxOutArray { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_coin_UxOutArray(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_coin_UxOutArray() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_coin_UxOutArray obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_coin__Block.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_coin__Block.cs deleted file mode 100644 index 3feb8213..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_coin__Block.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_coin__Block { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_coin__Block(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_coin__Block() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_coin__Block obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_coin__BlockBody.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_coin__BlockBody.cs deleted file mode 100644 index a4a05163..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_coin__BlockBody.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_coin__BlockBody { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_coin__BlockBody(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_coin__BlockBody() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_coin__BlockBody obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_coin__BlockHeader.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_coin__BlockHeader.cs deleted file mode 100644 index 5118da11..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_coin__BlockHeader.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_coin__BlockHeader { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_coin__BlockHeader(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_coin__BlockHeader() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_coin__BlockHeader obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_coin__SignedBlock.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_coin__SignedBlock.cs deleted file mode 100644 index b5a6457b..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_coin__SignedBlock.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_coin__SignedBlock { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_coin__SignedBlock(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_coin__SignedBlock() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_coin__SignedBlock obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_coin__SortableTransactions.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_coin__SortableTransactions.cs deleted file mode 100644 index d814d2d0..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_coin__SortableTransactions.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_coin__SortableTransactions { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_coin__SortableTransactions(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_coin__SortableTransactions() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_coin__SortableTransactions obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_coin__Transaction.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_coin__Transaction.cs deleted file mode 100644 index d014c2ce..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_coin__Transaction.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_coin__Transaction { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_coin__Transaction(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_coin__Transaction() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_coin__Transaction obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_coin__TransactionOutput.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_coin__TransactionOutput.cs deleted file mode 100644 index 708c06d0..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_coin__TransactionOutput.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_coin__TransactionOutput { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_coin__TransactionOutput(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_coin__TransactionOutput() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_coin__TransactionOutput obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_coin__UxBody.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_coin__UxBody.cs deleted file mode 100644 index 6bb37beb..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_coin__UxBody.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_coin__UxBody { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_coin__UxBody(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_coin__UxBody() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_coin__UxBody obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_coin__UxHead.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_coin__UxHead.cs deleted file mode 100644 index 28398232..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_coin__UxHead.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_coin__UxHead { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_coin__UxHead(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_coin__UxHead() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_coin__UxHead obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_coin__UxOut.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_coin__UxOut.cs deleted file mode 100644 index 83705f40..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_coin__UxOut.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_coin__UxOut { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_coin__UxOut(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_coin__UxOut() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_coin__UxOut obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_encoder__StructField.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_encoder__StructField.cs deleted file mode 100644 index c9463287..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_encoder__StructField.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_encoder__StructField { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_encoder__StructField(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_encoder__StructField() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_encoder__StructField obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_encrypt__ScryptChacha20poly1305.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_encrypt__ScryptChacha20poly1305.cs deleted file mode 100644 index 8bfdab1b..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_encrypt__ScryptChacha20poly1305.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_encrypt__ScryptChacha20poly1305 { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_encrypt__ScryptChacha20poly1305(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_encrypt__ScryptChacha20poly1305() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_encrypt__ScryptChacha20poly1305 obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_httphelper__Address.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_httphelper__Address.cs deleted file mode 100644 index c3e493f2..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_httphelper__Address.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_httphelper__Address { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_httphelper__Address(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_httphelper__Address() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_httphelper__Address obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_secp256k1go__Field.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_secp256k1go__Field.cs deleted file mode 100644 index a4a53a67..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_secp256k1go__Field.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_secp256k1go__Field { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_secp256k1go__Field(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_secp256k1go__Field() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_secp256k1go__Field obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_secp256k1go__XY.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_secp256k1go__XY.cs deleted file mode 100644 index 47a2dcdc..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_secp256k1go__XY.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_secp256k1go__XY { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_secp256k1go__XY(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_secp256k1go__XY() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_secp256k1go__XY obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_secp256k1go__XYZ.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_secp256k1go__XYZ.cs deleted file mode 100644 index d4134d2a..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_secp256k1go__XYZ.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_secp256k1go__XYZ { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_secp256k1go__XYZ(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_secp256k1go__XYZ() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_secp256k1go__XYZ obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_wallet__Balance.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_wallet__Balance.cs deleted file mode 100644 index 4ff46707..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_wallet__Balance.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_wallet__Balance { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_wallet__Balance(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_wallet__Balance() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_wallet__Balance obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_wallet__BalancePair.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_wallet__BalancePair.cs deleted file mode 100644 index 4800f3d8..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_wallet__BalancePair.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_wallet__BalancePair { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_wallet__BalancePair(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_wallet__BalancePair() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_wallet__BalancePair obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_wallet__Entry.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_wallet__Entry.cs deleted file mode 100644 index db1fa259..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_wallet__Entry.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_wallet__Entry { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_wallet__Entry(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_wallet__Entry() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_wallet__Entry obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_wallet__Note.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_wallet__Note.cs deleted file mode 100644 index e315e5b6..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_wallet__Note.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_wallet__Note { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_wallet__Note(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_wallet__Note() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_wallet__Note obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_wallet__ReadableNote.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_wallet__ReadableNote.cs deleted file mode 100644 index 3ba28c62..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_wallet__ReadableNote.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_wallet__ReadableNote { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_wallet__ReadableNote(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_wallet__ReadableNote() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_wallet__ReadableNote obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_wallet__UxBalance.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_wallet__UxBalance.cs deleted file mode 100644 index 3e4f71e1..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_wallet__UxBalance.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_wallet__UxBalance { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_wallet__UxBalance(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_wallet__UxBalance() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_wallet__UxBalance obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_wallet__Wallet.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_wallet__Wallet.cs deleted file mode 100644 index 61cb9c56..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_wallet__Wallet.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_wallet__Wallet { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_wallet__Wallet(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_wallet__Wallet() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_wallet__Wallet obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/coin__SortableTransactions.cs b/LibskycoinNet/skycoin/coin__SortableTransactions.cs deleted file mode 100644 index efb7e857..00000000 --- a/LibskycoinNet/skycoin/coin__SortableTransactions.cs +++ /dev/null @@ -1,84 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class coin__SortableTransactions : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal coin__SortableTransactions(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(coin__SortableTransactions obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~coin__SortableTransactions() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_coin__SortableTransactions(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_GoSlice_ Txns { - set { - skycoinPINVOKE.set_coin__SortableTransactions_Txns(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.get_coin__SortableTransactions_Txns(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_GoSlice_ Fees { - set { - skycoinPINVOKE.set_coin__SortableTransactions_Fees(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.get_coin__SortableTransactions_Fees(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_GoSlice_ Hashes { - set { - skycoinPINVOKE.set_coin__SortableTransactions_Hashes(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.get_coin__SortableTransactions_Hashes(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public coin__SortableTransactions() : this(skycoinPINVOKE.new_coin__SortableTransactions(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs index 0ac0fc61..df7f49ee 100644 --- a/LibskycoinNet/skycoin/skycoin.cs +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -11,8 +11,8 @@ namespace skycoin { public class skycoin { - public static void destroy_cipher_SecKeys(SWIGTYPE_p_cipher_SecKeys p) { - skycoinPINVOKE.destroy_cipher_SecKeys(SWIGTYPE_p_cipher_SecKeys.getCPtr(p)); + public static void destroy_cipher_SecKeys(cipher_SecKeys p) { + skycoinPINVOKE.destroy_cipher_SecKeys(cipher_SecKeys.getCPtr(p)); } public static int equalSlices(GoSlice slice1, GoSlice slice2, int elem_size) { @@ -35,12 +35,45 @@ public static int equalBlockHeaders(coin__BlockHeader bh1, coin__BlockHeader bh2 return ret; } + public static cipher_PubKey new_cipher_PubKeyp() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_cipher_PubKeyp(); + cipher_PubKey ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher_PubKey(cPtr, false); + return ret; + } + + public static cipher_PubKey copy_cipher_PubKeyp(cipher_PubKey value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_cipher_PubKeyp(cipher_PubKey.getCPtr(value)); + cipher_PubKey ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher_PubKey(cPtr, false); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static void delete_cipher_PubKeyp(cipher_PubKey obj) { + skycoinPINVOKE.delete_cipher_PubKeyp(cipher_PubKey.getCPtr(obj)); + } + + public static void cipher_PubKeyp_assign(cipher_PubKey obj, cipher_PubKey value) { + skycoinPINVOKE.cipher_PubKeyp_assign(cipher_PubKey.getCPtr(obj), cipher_PubKey.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + + public static cipher_PubKey cipher_PubKeyp_value(cipher_PubKey obj) { + cipher_PubKey ret = new cipher_PubKey(skycoinPINVOKE.cipher_PubKeyp_value(cipher_PubKey.getCPtr(obj)), true); + return ret; + } + + public static cipher_PubKey f(cipher_PubKey v) { + global::System.IntPtr cPtr = skycoinPINVOKE.f(cipher_PubKey.getCPtr(v)); + cipher_PubKey ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher_PubKey(cPtr, false); + return ret; + } + public static uint SKY_coin_NewBlock(SWIGTYPE_p_GoInt64_ p0, ulong p1, SWIGTYPE_p_a_32__GoUint8_ p2, SWIGTYPE_p_GoInt64_ p3, SWIGTYPE_p_FeeCalculator p4) { uint ret = skycoinPINVOKE.SKY_coin_NewBlock(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1, SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2), SWIGTYPE_p_GoInt64_.getCPtr(p3), SWIGTYPE_p_FeeCalculator.getCPtr(p4)); return ret; } - public static uint SKY_coin_SignedBlock_VerifySignature(coin__SignedBlock p0, SWIGTYPE_p_cipher_PubKey p1) { + public static uint SKY_coin_SignedBlock_VerifySignature(coin__SignedBlock p0, SWIGTYPE_p_a_33__GoUint8_ p1) { uint ret = skycoinPINVOKE.SKY_coin_SignedBlock_VerifySignature(coin__SignedBlock.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); return ret; } @@ -980,39 +1013,39 @@ public static uint SKY_cipher_RandByte(long p0, SWIGTYPE_p_GoSlice_ p1) { return ret; } - public static uint SKY_cipher_NewPubKey(GoSlice p0, SWIGTYPE_p_cipher_PubKey p1) { + public static uint SKY_cipher_NewPubKey(GoSlice p0, SWIGTYPE_p_a_33__GoUint8_ p1) { uint ret = skycoinPINVOKE.SKY_cipher_NewPubKey(GoSlice.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_PubKeyFromHex(_GoString_ p0, SWIGTYPE_p_cipher_PubKey p1) { + public static uint SKY_cipher_PubKeyFromHex(_GoString_ p0, SWIGTYPE_p_a_33__GoUint8_ p1) { uint ret = skycoinPINVOKE.SKY_cipher_PubKeyFromHex(_GoString_.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_PubKeyFromSecKey(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_cipher_PubKey p1) { + public static uint SKY_cipher_PubKeyFromSecKey(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_a_33__GoUint8_ p1) { uint ret = skycoinPINVOKE.SKY_cipher_PubKeyFromSecKey(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); return ret; } - public static uint SKY_cipher_PubKeyFromSig(SWIGTYPE_p_a_65__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_cipher_PubKey p2) { + public static uint SKY_cipher_PubKeyFromSig(SWIGTYPE_p_a_65__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_a_33__GoUint8_ p2) { uint ret = skycoinPINVOKE.SKY_cipher_PubKeyFromSig(SWIGTYPE_p_a_65__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p2)); return ret; } - public static uint SKY_cipher_PubKey_Verify(SWIGTYPE_p_cipher_PubKey p0) { + public static uint SKY_cipher_PubKey_Verify(SWIGTYPE_p_a_33__GoUint8_ p0) { uint ret = skycoinPINVOKE.SKY_cipher_PubKey_Verify(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0)); return ret; } - public static uint SKY_cipher_PubKey_Hex(SWIGTYPE_p_cipher_PubKey p0, SWIGTYPE_p_GoString_ p1) { + public static uint SKY_cipher_PubKey_Hex(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_GoString_ p1) { uint ret = skycoinPINVOKE.SKY_cipher_PubKey_Hex(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } - public static uint SKY_cipher_PubKey_ToAddressHash(SWIGTYPE_p_cipher_PubKey p0, SWIGTYPE_p_a_20__GoUint8_ p1) { + public static uint SKY_cipher_PubKey_ToAddressHash(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_20__GoUint8_ p1) { uint ret = skycoinPINVOKE.SKY_cipher_PubKey_ToAddressHash(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_20__GoUint8_.getCPtr(p1)); return ret; } @@ -1039,7 +1072,7 @@ public static uint SKY_cipher_SecKey_Hex(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_ return ret; } - public static uint SKY_cipher_ECDH(SWIGTYPE_p_cipher_PubKey p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_GoSlice_ p2) { + public static uint SKY_cipher_ECDH(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_GoSlice_ p2) { uint ret = skycoinPINVOKE.SKY_cipher_ECDH(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); return ret; } @@ -1076,18 +1109,18 @@ public static uint SKY_cipher_VerifySignedHash(SWIGTYPE_p_a_65__GoUint8_ p0, SWI return ret; } - public static uint SKY_cipher_VerifySignature(SWIGTYPE_p_cipher_PubKey p0, SWIGTYPE_p_a_65__GoUint8_ p1, SWIGTYPE_p_a_32__GoUint8_ p2) { + public static uint SKY_cipher_VerifySignature(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_65__GoUint8_ p1, SWIGTYPE_p_a_32__GoUint8_ p2) { uint ret = skycoinPINVOKE.SKY_cipher_VerifySignature(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); return ret; } - public static uint SKY_cipher_GenerateDeterministicKeyPair(GoSlice p0, SWIGTYPE_p_cipher_PubKey p1, SWIGTYPE_p_a_32__GoUint8_ p2) { + public static uint SKY_cipher_GenerateDeterministicKeyPair(GoSlice p0, SWIGTYPE_p_a_33__GoUint8_ p1, SWIGTYPE_p_a_32__GoUint8_ p2) { uint ret = skycoinPINVOKE.SKY_cipher_GenerateDeterministicKeyPair(GoSlice.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_DeterministicKeyPairIterator(GoSlice p0, SWIGTYPE_p_GoSlice_ p1, SWIGTYPE_p_cipher_PubKey p2, SWIGTYPE_p_a_32__GoUint8_ p3) { + public static uint SKY_cipher_DeterministicKeyPairIterator(GoSlice p0, SWIGTYPE_p_GoSlice_ p1, SWIGTYPE_p_a_33__GoUint8_ p2, SWIGTYPE_p_a_32__GoUint8_ p3) { uint ret = skycoinPINVOKE.SKY_cipher_DeterministicKeyPairIterator(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p2), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p3)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; @@ -1115,7 +1148,7 @@ public static uint SKY_cipher_TestSecKeyHash(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGT return ret; } - public static uint SKY_cipher_GenerateKeyPair(SWIGTYPE_p_cipher_PubKey p0, SWIGTYPE_p_a_32__GoUint8_ p1) { + public static uint SKY_cipher_GenerateKeyPair(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { uint ret = skycoinPINVOKE.SKY_cipher_GenerateKeyPair(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); return ret; } @@ -1300,12 +1333,12 @@ public static uint SKY_wallet_CreateAddresses(_GoString_ p0, _GoString_ p1, long return ret; } - public static uint SKY_wallet_GetSkycoinWalletEntry(SWIGTYPE_p_cipher_PubKey p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_ReadableEntry__Handle p2) { + public static uint SKY_wallet_GetSkycoinWalletEntry(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_ReadableEntry__Handle p2) { uint ret = skycoinPINVOKE.SKY_wallet_GetSkycoinWalletEntry(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p2)); return ret; } - public static uint SKY_wallet_GetBitcoinWalletEntry(SWIGTYPE_p_cipher_PubKey p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_ReadableEntry__Handle p2) { + public static uint SKY_wallet_GetBitcoinWalletEntry(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_ReadableEntry__Handle p2) { uint ret = skycoinPINVOKE.SKY_wallet_GetBitcoinWalletEntry(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p2)); return ret; } @@ -1453,7 +1486,7 @@ public static uint SKY_cipher_AddressFromBytes(GoSlice p0, cipher__Address p1) { return ret; } - public static uint SKY_cipher_AddressFromPubKey(SWIGTYPE_p_cipher_PubKey p0, cipher__Address p1) { + public static uint SKY_cipher_AddressFromPubKey(SWIGTYPE_p_a_33__GoUint8_ p0, cipher__Address p1) { uint ret = skycoinPINVOKE.SKY_cipher_AddressFromPubKey(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), cipher__Address.getCPtr(p1)); return ret; } @@ -1484,7 +1517,7 @@ public static uint SKY_cipher_Address_BitcoinBytes(cipher__Address p0, SWIGTYPE_ return ret; } - public static uint SKY_cipher_Address_Verify(cipher__Address p0, SWIGTYPE_p_cipher_PubKey p1) { + public static uint SKY_cipher_Address_Verify(cipher__Address p0, SWIGTYPE_p_a_33__GoUint8_ p1) { uint ret = skycoinPINVOKE.SKY_cipher_Address_Verify(cipher__Address.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); return ret; } @@ -1509,7 +1542,7 @@ public static uint SKY_cipher_Address_BitcoinChecksum(cipher__Address p0, SWIGTY return ret; } - public static uint SKY_cipher_BitcoinAddressFromPubkey(SWIGTYPE_p_cipher_PubKey p0, SWIGTYPE_p_GoString_ p1) { + public static uint SKY_cipher_BitcoinAddressFromPubkey(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_GoString_ p1) { uint ret = skycoinPINVOKE.SKY_cipher_BitcoinAddressFromPubkey(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; } @@ -1621,7 +1654,7 @@ public static uint SKY_api_Handle_Client_GetWalletResponseEntriesCount(SWIGTYPE_ return ret; } - public static uint SKY_api_Handle_WalletGetEntry(SWIGTYPE_p_GoInt64_ p0, uint p1, cipher__Address p2, SWIGTYPE_p_cipher_PubKey p3) { + public static uint SKY_api_Handle_WalletGetEntry(SWIGTYPE_p_GoInt64_ p0, uint p1, cipher__Address p2, SWIGTYPE_p_a_33__GoUint8_ p3) { uint ret = skycoinPINVOKE.SKY_api_Handle_WalletGetEntry(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1, cipher__Address.getCPtr(p2), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p3)); return ret; } diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index 82575951..f00332a0 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -203,6 +203,300 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_equalBlockHeaders")] public static extern int equalBlockHeaders(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_PubKeyp")] + public static extern global::System.IntPtr new_cipher_PubKeyp(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_cipher_PubKeyp")] + public static extern global::System.IntPtr copy_cipher_PubKeyp(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_PubKeyp")] + public static extern void delete_cipher_PubKeyp(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeyp_assign")] + public static extern void cipher_PubKeyp_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeyp_value")] + public static extern global::System.IntPtr cipher_PubKeyp_value(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_f")] + public static extern global::System.IntPtr f(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKey_isEqual")] + public static extern int cipher_PubKey_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKey_assignFrom")] + public static extern void cipher_PubKey_assignFrom(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKey_assignTo")] + public static extern void cipher_PubKey_assignTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cipher_PubKey_data")] + public static extern void set_cipher_PubKey_data(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_cipher_PubKey_data")] + public static extern global::System.IntPtr get_cipher_PubKey_data(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_PubKey")] + public static extern global::System.IntPtr new_cipher_PubKey(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_PubKey")] + public static extern void delete_cipher_PubKey(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKey_isEqual")] + public static extern int cipher_SecKey_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKey_assignFrom")] + public static extern void cipher_SecKey_assignFrom(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKey_assignTo")] + public static extern void cipher_SecKey_assignTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cipher_SecKey_data")] + public static extern void set_cipher_SecKey_data(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_cipher_SecKey_data")] + public static extern global::System.IntPtr get_cipher_SecKey_data(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_SecKey")] + public static extern global::System.IntPtr new_cipher_SecKey(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_SecKey")] + public static extern void delete_cipher_SecKey(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Ripemd160_isEqual")] + public static extern int cipher_Ripemd160_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Ripemd160_assignFrom")] + public static extern void cipher_Ripemd160_assignFrom(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Ripemd160_assignTo")] + public static extern void cipher_Ripemd160_assignTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cipher_Ripemd160_data")] + public static extern void set_cipher_Ripemd160_data(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_cipher_Ripemd160_data")] + public static extern global::System.IntPtr get_cipher_Ripemd160_data(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_Ripemd160")] + public static extern global::System.IntPtr new_cipher_Ripemd160(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_Ripemd160")] + public static extern void delete_cipher_Ripemd160(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Sig_isEqual")] + public static extern int cipher_Sig_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Sig_assignFrom")] + public static extern void cipher_Sig_assignFrom(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Sig_assignTo")] + public static extern void cipher_Sig_assignTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cipher_Sig_data")] + public static extern void set_cipher_Sig_data(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_cipher_Sig_data")] + public static extern global::System.IntPtr get_cipher_Sig_data(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_Sig")] + public static extern global::System.IntPtr new_cipher_Sig(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_Sig")] + public static extern void delete_cipher_Sig(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256_isEqual")] + public static extern int cipher_SHA256_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256_assignFrom")] + public static extern void cipher_SHA256_assignFrom(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256_assignTo")] + public static extern void cipher_SHA256_assignTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cipher_SHA256_data")] + public static extern void set_cipher_SHA256_data(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_cipher_SHA256_data")] + public static extern global::System.IntPtr get_cipher_SHA256_data(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_SHA256")] + public static extern global::System.IntPtr new_cipher_SHA256(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_SHA256")] + public static extern void delete_cipher_SHA256(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Checksum_isEqual")] + public static extern int cipher_Checksum_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Checksum_assignFrom")] + public static extern void cipher_Checksum_assignFrom(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Checksum_assignTo")] + public static extern void cipher_Checksum_assignTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cipher_Checksum_data")] + public static extern void set_cipher_Checksum_data(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_cipher_Checksum_data")] + public static extern global::System.IntPtr get_cipher_Checksum_data(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_Checksum")] + public static extern global::System.IntPtr new_cipher_Checksum(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_Checksum")] + public static extern void delete_cipher_Checksum(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeys_getAt")] + public static extern global::System.IntPtr cipher_SecKeys_getAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeys_setAt")] + public static extern int cipher_SecKeys_setAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeys_isEqual")] + public static extern int cipher_SecKeys_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeys_allocate")] + public static extern void cipher_SecKeys_allocate(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeys_release")] + public static extern void cipher_SecKeys_release(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cipher_SecKeys_data")] + public static extern void set_cipher_SecKeys_data(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_cipher_SecKeys_data")] + public static extern global::System.IntPtr get_cipher_SecKeys_data(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cipher_SecKeys_count")] + public static extern void set_cipher_SecKeys_count(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_cipher_SecKeys_count")] + public static extern int get_cipher_SecKeys_count(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_SecKeys")] + public static extern global::System.IntPtr new_cipher_SecKeys(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_SecKeys")] + public static extern void delete_cipher_SecKeys(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeys_getAt")] + public static extern global::System.IntPtr cipher_PubKeys_getAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeys_setAt")] + public static extern int cipher_PubKeys_setAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeys_isEqual")] + public static extern int cipher_PubKeys_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeys_allocate")] + public static extern void cipher_PubKeys_allocate(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeys_release")] + public static extern void cipher_PubKeys_release(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cipher_PubKeys_data")] + public static extern void set_cipher_PubKeys_data(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_cipher_PubKeys_data")] + public static extern global::System.IntPtr get_cipher_PubKeys_data(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cipher_PubKeys_count")] + public static extern void set_cipher_PubKeys_count(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_cipher_PubKeys_count")] + public static extern int get_cipher_PubKeys_count(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_PubKeys")] + public static extern global::System.IntPtr new_cipher_PubKeys(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_PubKeys")] + public static extern void delete_cipher_PubKeys(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256s_getAt")] + public static extern global::System.IntPtr cipher_SHA256s_getAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256s_setAt")] + public static extern int cipher_SHA256s_setAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256s_isEqual")] + public static extern int cipher_SHA256s_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256s_allocate")] + public static extern void cipher_SHA256s_allocate(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256s_release")] + public static extern void cipher_SHA256s_release(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cipher_SHA256s_data")] + public static extern void set_cipher_SHA256s_data(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_cipher_SHA256s_data")] + public static extern global::System.IntPtr get_cipher_SHA256s_data(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cipher_SHA256s_count")] + public static extern void set_cipher_SHA256s_count(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_cipher_SHA256s_count")] + public static extern int get_cipher_SHA256s_count(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_SHA256s")] + public static extern global::System.IntPtr new_cipher_SHA256s(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_SHA256s")] + public static extern void delete_cipher_SHA256s(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_getAt")] + public static extern global::System.IntPtr coin_UxOutArray_getAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_setAt")] + public static extern int coin_UxOutArray_setAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_isEqual")] + public static extern int coin_UxOutArray_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_allocate")] + public static extern void coin_UxOutArray_allocate(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_release")] + public static extern void coin_UxOutArray_release(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin_UxOutArray_data")] + public static extern void set_coin_UxOutArray_data(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin_UxOutArray_data")] + public static extern global::System.IntPtr get_coin_UxOutArray_data(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin_UxOutArray_count")] + public static extern void set_coin_UxOutArray_count(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin_UxOutArray_count")] + public static extern int get_coin_UxOutArray_count(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin_UxOutArray")] + public static extern global::System.IntPtr new_coin_UxOutArray(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin_UxOutArray")] + public static extern void delete_coin_UxOutArray(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cipher_Addresses_data")] + public static extern void set_cipher_Addresses_data(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_cipher_Addresses_data")] + public static extern global::System.IntPtr get_cipher_Addresses_data(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cipher_Addresses_count")] + public static extern void set_cipher_Addresses_count(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_cipher_Addresses_count")] + public static extern int get_cipher_Addresses_count(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_Addresses")] + public static extern global::System.IntPtr new_cipher_Addresses(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_Addresses")] + public static extern void delete_cipher_Addresses(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set__GoString__p")] public static extern void set__GoString__p(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); @@ -267,7 +561,7 @@ static skycoinPINVOKE() { public static extern uint SKY_coin_NewBlock(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SignedBlock_VerifySignature")] - public static extern uint SKY_coin_SignedBlock_VerifySignature(global::System.Runtime.InteropServices.HandleRef jarg1, SWIGTYPE_p_cipher_PubKey jarg2); + public static extern uint SKY_coin_SignedBlock_VerifySignature(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewGenesisBlock")] public static extern uint SKY_coin_NewGenesisBlock(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3); @@ -783,25 +1077,25 @@ static skycoinPINVOKE() { public static extern uint SKY_cipher_RandByte(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_NewPubKey")] - public static extern uint SKY_cipher_NewPubKey(global::System.Runtime.InteropServices.HandleRef jarg1, SWIGTYPE_p_cipher_PubKey jarg2); + public static extern uint SKY_cipher_NewPubKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromHex")] - public static extern uint SKY_cipher_PubKeyFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, SWIGTYPE_p_cipher_PubKey jarg2); + public static extern uint SKY_cipher_PubKeyFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromSecKey")] - public static extern uint SKY_cipher_PubKeyFromSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, SWIGTYPE_p_cipher_PubKey jarg2); + public static extern uint SKY_cipher_PubKeyFromSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromSig")] - public static extern uint SKY_cipher_PubKeyFromSig(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, SWIGTYPE_p_cipher_PubKey jarg3); + public static extern uint SKY_cipher_PubKeyFromSig(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKey_Verify")] - public static extern uint SKY_cipher_PubKey_Verify(SWIGTYPE_p_cipher_PubKey jarg1); + public static extern uint SKY_cipher_PubKey_Verify(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKey_Hex")] - public static extern uint SKY_cipher_PubKey_Hex(SWIGTYPE_p_cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_PubKey_Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKey_ToAddressHash")] - public static extern uint SKY_cipher_PubKey_ToAddressHash(SWIGTYPE_p_cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_PubKey_ToAddressHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_NewSecKey")] public static extern uint SKY_cipher_NewSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -816,7 +1110,7 @@ static skycoinPINVOKE() { public static extern uint SKY_cipher_SecKey_Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_ECDH")] - public static extern uint SKY_cipher_ECDH(SWIGTYPE_p_cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_cipher_ECDH(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_NewSig")] public static extern uint SKY_cipher_NewSig(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -837,13 +1131,13 @@ static skycoinPINVOKE() { public static extern uint SKY_cipher_VerifySignedHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_VerifySignature")] - public static extern uint SKY_cipher_VerifySignature(SWIGTYPE_p_cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_cipher_VerifySignature(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPair")] - public static extern uint SKY_cipher_GenerateDeterministicKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, SWIGTYPE_p_cipher_PubKey jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_cipher_GenerateDeterministicKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_DeterministicKeyPairIterator")] - public static extern uint SKY_cipher_DeterministicKeyPairIterator(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, SWIGTYPE_p_cipher_PubKey jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + public static extern uint SKY_cipher_DeterministicKeyPairIterator(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairs")] public static extern uint SKY_cipher_GenerateDeterministicKeyPairs(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -858,7 +1152,7 @@ static skycoinPINVOKE() { public static extern uint SKY_cipher_TestSecKeyHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateKeyPair")] - public static extern uint SKY_cipher_GenerateKeyPair(SWIGTYPE_p_cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_GenerateKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Create")] public static extern uint SKY_secp256k1go_Signature_Create(); @@ -963,10 +1257,10 @@ static skycoinPINVOKE() { public static extern uint SKY_wallet_CreateAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, byte jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_GetSkycoinWalletEntry")] - public static extern uint SKY_wallet_GetSkycoinWalletEntry(SWIGTYPE_p_cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_wallet_GetSkycoinWalletEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_GetBitcoinWalletEntry")] - public static extern uint SKY_wallet_GetBitcoinWalletEntry(SWIGTYPE_p_cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_wallet_GetBitcoinWalletEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Print")] public static extern uint SKY_secp256k1go_XYZ_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1050,7 +1344,7 @@ static skycoinPINVOKE() { public static extern uint SKY_cipher_AddressFromBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddressFromPubKey")] - public static extern uint SKY_cipher_AddressFromPubKey(SWIGTYPE_p_cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_AddressFromPubKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddressFromSecKey")] public static extern uint SKY_cipher_AddressFromSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1068,7 +1362,7 @@ static skycoinPINVOKE() { public static extern uint SKY_cipher_Address_BitcoinBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_Verify")] - public static extern uint SKY_cipher_Address_Verify(global::System.Runtime.InteropServices.HandleRef jarg1, SWIGTYPE_p_cipher_PubKey jarg2); + public static extern uint SKY_cipher_Address_Verify(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_String")] public static extern uint SKY_cipher_Address_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1083,7 +1377,7 @@ static skycoinPINVOKE() { public static extern uint SKY_cipher_Address_BitcoinChecksum(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinAddressFromPubkey")] - public static extern uint SKY_cipher_BitcoinAddressFromPubkey(SWIGTYPE_p_cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_BitcoinAddressFromPubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinWalletImportFormatFromSeckey")] public static extern uint SKY_cipher_BitcoinWalletImportFormatFromSeckey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1149,7 +1443,7 @@ static skycoinPINVOKE() { public static extern uint SKY_api_Handle_Client_GetWalletResponseEntriesCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletGetEntry")] - public static extern uint SKY_api_Handle_WalletGetEntry(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, SWIGTYPE_p_cipher_PubKey jarg4); + public static extern uint SKY_api_Handle_WalletGetEntry(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletResponseGetEntry")] public static extern uint SKY_api_Handle_WalletResponseGetEntry(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index ac2f148f..0ae84276 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -275,6 +275,11 @@ SWIGEXPORT void SWIGSTDCALL SWIGRegisterStringCallback_skycoin(SWIG_CSharpString #define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentOutOfRangeException, msg, ""); return nullreturn; } else + #define SWIG_FILE_WITH_INIT + #include "libskycoin.h" + #include "swig.h" + + void destroy_cipher_SecKeys(cipher_SecKeys* p){ if( p != NULL ){ if( p->data != NULL ){ @@ -331,6 +336,29 @@ SWIGEXPORT void SWIGSTDCALL SWIGRegisterStringCallback_skycoin(SWIG_CSharpString } +static cipher_PubKey *new_cipher_PubKeyp() { + return (cipher_PubKey *) calloc(1,sizeof(cipher_PubKey)); +} + +static cipher_PubKey *copy_cipher_PubKeyp(cipher_PubKey value) { + cipher_PubKey *obj = (cipher_PubKey *) calloc(1,sizeof(cipher_PubKey)); + *obj = value; + return obj; +} + +static void delete_cipher_PubKeyp(cipher_PubKey *obj) { + if (obj) free(obj); +} + +static void cipher_PubKeyp_assign(cipher_PubKey *obj, cipher_PubKey value) { + *obj = value; +} + +static cipher_PubKey cipher_PubKeyp_value(cipher_PubKey *obj) { + return *obj; +} + + typedef GoInt64_ Handle; /** * Memory handle for internal object retrieving password to read @@ -403,184 +431,1526 @@ typedef Handle SignedBlock__Handle; */ typedef Handle BlockBody__Handle; -/** - * Memory handle to access to cli.BalanceResult - */ +/** + * Memory handle to access to cli.BalanceResult + */ + +typedef Handle BalanceResult_Handle; + + +/** + * Memory handle to access to api.SpendResult + */ + +typedef Handle SpendResult_Handle; + +/** + * Memory handle to access to coin.Transactions + */ + +typedef Handle TransactionResult_Handle; + +/** + * Memory handle to access to coin.SortableTransactions + */ + +typedef Handle SortableTransactionResult_Handle; + +/** + * Memory handle to access to wallet.Notes + */ + + +/** + * Memory handle to access to wallet.ReadableNotes + */ + +typedef Handle WalletReadableNotes_Handle; + +/** + * Memory handle to access to webrpc.OutputsResult + */ + +typedef Handle OutputsResult_Handle; + +/** + * Memory handle to access to webrpc.StatusResult + */ + +typedef Handle StatusResult_Handle; + +/** + * Memory handle to access to coin.AddressUxOuts + */ + +typedef Handle AddressUxOuts_Handle; + +/** + * Memory handle to access to visor.BuildInfo (BuildInfo) + */ + +typedef Handle BuildInfo_Handle; + +/** + * Memory handle for hash (ripemd160.digest) + */ + +typedef Handle Hash_Handle; + +/** +* Handle for Number type +*/ + +typedef Handle Number_Handle; + +/** +* Handle for Signature type +*/ + +typedef Handle Signature_Handle; + + +SWIGINTERN int cipher_PubKey_isEqual(cipher_PubKey *self,cipher_PubKey *a){ + return memcmp(self->data, a->data, sizeof(a->data)) == 0; + } +SWIGINTERN void cipher_PubKey_assignFrom(cipher_PubKey *self,void *data){ + memcpy(&self->data, data, sizeof(self->data)); + } +SWIGINTERN void cipher_PubKey_assignTo(cipher_PubKey *self,void *data){ + memcpy(data, &self->data, sizeof(self->data)); + } +SWIGINTERN int cipher_SecKey_isEqual(cipher_SecKey *self,cipher_SecKey *a){ + return memcmp(self->data, a->data, sizeof(a->data)) == 0; + } +SWIGINTERN void cipher_SecKey_assignFrom(cipher_SecKey *self,void *data){ + memcpy(&self->data, data, sizeof(self->data)); + } +SWIGINTERN void cipher_SecKey_assignTo(cipher_SecKey *self,void *data){ + memcpy(data, &self->data, sizeof(self->data)); + } +SWIGINTERN int cipher_Ripemd160_isEqual(cipher_Ripemd160 *self,cipher_Ripemd160 *a){ + return memcmp(self->data, a->data, sizeof(a->data)) == 0; + } +SWIGINTERN void cipher_Ripemd160_assignFrom(cipher_Ripemd160 *self,void *data){ + memcpy(&self->data, data, sizeof(self->data)); + } +SWIGINTERN void cipher_Ripemd160_assignTo(cipher_Ripemd160 *self,void *data){ + memcpy(data, &self->data, sizeof(self->data)); + } +SWIGINTERN int cipher_Sig_isEqual(cipher_Sig *self,cipher_Sig *a){ + return memcmp(self->data, a->data, sizeof(a->data)) == 0; + } +SWIGINTERN void cipher_Sig_assignFrom(cipher_Sig *self,void *data){ + memcpy(&self->data, data, sizeof(self->data)); + } +SWIGINTERN void cipher_Sig_assignTo(cipher_Sig *self,void *data){ + memcpy(data, &self->data, sizeof(self->data)); + } +SWIGINTERN int cipher_SHA256_isEqual(cipher_SHA256 *self,cipher_SHA256 *a){ + return memcmp(self->data, a->data, sizeof(a->data)) == 0; + } +SWIGINTERN void cipher_SHA256_assignFrom(cipher_SHA256 *self,void *data){ + memcpy(&self->data, data, sizeof(self->data)); + } +SWIGINTERN void cipher_SHA256_assignTo(cipher_SHA256 *self,void *data){ + memcpy(data, &self->data, sizeof(self->data)); + } +SWIGINTERN int cipher_Checksum_isEqual(cipher_Checksum *self,cipher_Checksum *a){ + return memcmp(self->data, a->data, sizeof(a->data)) == 0; + } +SWIGINTERN void cipher_Checksum_assignFrom(cipher_Checksum *self,void *data){ + memcpy(&self->data, data, sizeof(self->data)); + } +SWIGINTERN void cipher_Checksum_assignTo(cipher_Checksum *self,void *data){ + memcpy(data, &self->data, sizeof(self->data)); + } +SWIGINTERN cipher_SecKey *cipher_SecKeys_getAt(cipher_SecKeys *self,int i){ + if( i < self->count ){ + return &self->data[i]; + } + else + return NULL; + } +SWIGINTERN int cipher_SecKeys_setAt(cipher_SecKeys *self,int i,cipher_SecKey *seckey){ + if( i < self->count){ + memcpy(&self->data[i], seckey, sizeof(*seckey)); + return i; + } else { + return -1; + } + } +SWIGINTERN int cipher_SecKeys_isEqual(cipher_SecKeys *self,cipher_SecKeys *a){ + return self->count == a->count && memcmp(self->data, a->data, sizeof(cipher_SecKey) * self->count) == 0; + } +SWIGINTERN void cipher_SecKeys_allocate(cipher_SecKeys *self,int n){ + self->data = malloc(n * sizeof(*(self->data))); + self->count = n; + } +SWIGINTERN void cipher_SecKeys_release(cipher_SecKeys *self){ + destroy_cipher_SecKeys(self); + } +SWIGINTERN cipher_PubKey *cipher_PubKeys_getAt(cipher_PubKeys *self,int i){ + if( i < self->count ){ + return &self->data[i]; + } + else + return NULL; + } +SWIGINTERN int cipher_PubKeys_setAt(cipher_PubKeys *self,int i,cipher_PubKey *pubkey){ + if( i < self->count){ + memcpy(&self->data[i], pubkey, sizeof(*pubkey)); + return i; + } else { + return -1; + } + } +SWIGINTERN int cipher_PubKeys_isEqual(cipher_PubKeys *self,cipher_PubKeys *a){ + return self->count == a->count && memcmp(self->data, a->data, sizeof(cipher_PubKey) * self->count) == 0; + } +SWIGINTERN void cipher_PubKeys_allocate(cipher_PubKeys *self,int n){ + self->data = malloc(n * sizeof(*(self->data))); + self->count = n; + } +SWIGINTERN void cipher_PubKeys_release(cipher_PubKeys *self){ + if(self->data != NULL) + free(self->data); + } +SWIGINTERN cipher_SHA256 *cipher_SHA256s_getAt(cipher_SHA256s *self,int i){ + if( i < self->count ){ + return &self->data[i]; + } + else + return NULL; + } +SWIGINTERN int cipher_SHA256s_setAt(cipher_SHA256s *self,int i,cipher_SHA256 *hash){ + if( i < self->count){ + memcpy(&self->data[i], hash, sizeof(*hash)); + return i; + } else { + return -1; + } + } +SWIGINTERN int cipher_SHA256s_isEqual(cipher_SHA256s *self,cipher_SHA256s *a){ + return self->count == a->count && memcmp(self->data, a->data, sizeof(cipher_SHA256) * self->count) == 0; + } +SWIGINTERN void cipher_SHA256s_allocate(cipher_SHA256s *self,int n){ + self->data = malloc(n * sizeof(*(self->data))); + self->count = n; + } +SWIGINTERN void cipher_SHA256s_release(cipher_SHA256s *self){ + if(self->data != NULL) free(self->data); + } +SWIGINTERN coin__UxOut *coin_UxOutArray_getAt(coin_UxOutArray *self,int i){ + if( i < self->count ){ + return &self->data[i]; + } + else + return NULL; + } +SWIGINTERN int coin_UxOutArray_setAt(coin_UxOutArray *self,int i,coin__UxOut *uxout){ + if( i < self->count){ + memcpy(&self->data[i], uxout, sizeof(*uxout)); + return i; + } else { + return -1; + } + } +SWIGINTERN int coin_UxOutArray_isEqual(coin_UxOutArray *self,coin_UxOutArray *a){ + return self->count == a->count && memcmp(self->data, a->data, sizeof(coin__UxOut) * self->count) == 0; + } +SWIGINTERN void coin_UxOutArray_allocate(coin_UxOutArray *self,int n){ + self->data = malloc(n * sizeof(*(self->data))); + self->count = n; + } +SWIGINTERN void coin_UxOutArray_release(coin_UxOutArray *self){ + if(self->data != NULL) + free(self->data); + } +SWIGINTERN int cipher__Address_isEqual(cipher__Address *self,cipher__Address *a){ + if( self->Version == a->Version ){ + return memcmp(self->Key, a->Key, sizeof(a->Key)) == 0; + } + return 0; + } +SWIGINTERN int coin__Transaction_isEqual(coin__Transaction *self,coin__Transaction *t){ + return equalTransactions(self, t); + } +SWIGINTERN int coin__TransactionOutput_isEqual(coin__TransactionOutput *self,coin__TransactionOutput *t){ + if( self->Coins != t->Coins || + self->Hours != t->Hours ){ + return 0; + } + + if(memcmp(&self->Address, &t->Address, sizeof(cipher__Address)) != 0) + return 0; + return 1; + } +SWIGINTERN int coin__BlockHeader_isEqual(coin__BlockHeader *self,coin__BlockHeader *bh){ + return equalBlockHeaders(self, bh); + } +SWIGINTERN int coin__BlockBody_isEqual(coin__BlockBody *self,coin__BlockBody *b){ + return equalTransactionsArrays(&self->Transactions, &b->Transactions); + } +SWIGINTERN int coin__UxOut_isEqual(coin__UxOut *self,coin__UxOut *u){ + return memcmp(&self, u, sizeof(coin__UxOut)) == 0; + } + +#ifdef __cplusplus +extern "C" { +#endif + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_destroy_cipher_SecKeys(void * jarg1) { + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + + arg1 = (cipher_SecKeys *)jarg1; + destroy_cipher_SecKeys(arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalSlices(void * jarg1, void * jarg2, int jarg3) { + int jresult ; + GoSlice *arg1 = (GoSlice *) 0 ; + GoSlice *arg2 = (GoSlice *) 0 ; + int arg3 ; + int result; + + arg1 = (GoSlice *)jarg1; + arg2 = (GoSlice *)jarg2; + arg3 = (int)jarg3; + result = (int)equalSlices(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalTransactions(void * jarg1, void * jarg2) { + int jresult ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + coin__Transaction *arg2 = (coin__Transaction *) 0 ; + int result; + + arg1 = (coin__Transaction *)jarg1; + arg2 = (coin__Transaction *)jarg2; + result = (int)equalTransactions(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalTransactionsArrays(void * jarg1, void * jarg2) { + int jresult ; + coin__Transactions *arg1 = (coin__Transactions *) 0 ; + coin__Transactions *arg2 = (coin__Transactions *) 0 ; + int result; + + arg1 = (coin__Transactions *)jarg1; + arg2 = (coin__Transactions *)jarg2; + result = (int)equalTransactionsArrays(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalBlockHeaders(void * jarg1, void * jarg2) { + int jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + coin__BlockHeader *arg2 = (coin__BlockHeader *) 0 ; + int result; + + arg1 = (coin__BlockHeader *)jarg1; + arg2 = (coin__BlockHeader *)jarg2; + result = (int)equalBlockHeaders(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_PubKeyp() { + void * jresult ; + cipher_PubKey *result = 0 ; + + result = (cipher_PubKey *)new_cipher_PubKeyp(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_cipher_PubKeyp(void * jarg1) { + void * jresult ; + cipher_PubKey arg1 ; + cipher_PubKey *argp1 ; + cipher_PubKey *result = 0 ; + + argp1 = (cipher_PubKey *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null cipher_PubKey", 0); + return 0; + } + arg1 = *argp1; + result = (cipher_PubKey *)copy_cipher_PubKeyp(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_PubKeyp(void * jarg1) { + cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; + + arg1 = (cipher_PubKey *)jarg1; + delete_cipher_PubKeyp(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKeyp_assign(void * jarg1, void * jarg2) { + cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; + cipher_PubKey arg2 ; + cipher_PubKey *argp2 ; + + arg1 = (cipher_PubKey *)jarg1; + argp2 = (cipher_PubKey *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null cipher_PubKey", 0); + return ; + } + arg2 = *argp2; + cipher_PubKeyp_assign(arg1,arg2); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_PubKeyp_value(void * jarg1) { + void * jresult ; + cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; + cipher_PubKey result; + + arg1 = (cipher_PubKey *)jarg1; + result = cipher_PubKeyp_value(arg1); + { + cipher_PubKey * resultptr = (cipher_PubKey *) malloc(sizeof(cipher_PubKey)); + memmove(resultptr, &result, sizeof(cipher_PubKey)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_f(void * jarg1) { + void * jresult ; + cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; + cipher_PubKey temp1 ; + cipher_PubKey *result = 0 ; + + { + //Typemap in *cipher_PubKey + arg1 = &temp1; + } + result = (cipher_PubKey *)f(arg1); + jresult = (void *)result; + { + //Typemap freearg *cipher_PubKey + free(arg1); + } + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_PubKey_isEqual(void * jarg1, void * jarg2) { + int jresult ; + cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; + cipher_PubKey *arg2 = (cipher_PubKey *) 0 ; + cipher_PubKey temp1 ; + cipher_PubKey temp2 ; + int result; + + { + //Typemap in *cipher_PubKey + arg1 = &temp1; + } + { + //Typemap in *cipher_PubKey + arg2 = &temp2; + } + result = (int)cipher_PubKey_isEqual(arg1,arg2); + jresult = result; + { + //Typemap freearg *cipher_PubKey + free(arg1); + } + { + //Typemap freearg *cipher_PubKey + free(arg2); + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKey_assignFrom(void * jarg1, void * jarg2) { + cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; + void *arg2 = (void *) 0 ; + cipher_PubKey temp1 ; + + { + //Typemap in *cipher_PubKey + arg1 = &temp1; + } + arg2 = (void *)jarg2; + cipher_PubKey_assignFrom(arg1,arg2); + { + //Typemap freearg *cipher_PubKey + free(arg1); + } +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKey_assignTo(void * jarg1, void * jarg2) { + cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; + void *arg2 = (void *) 0 ; + cipher_PubKey temp1 ; + + { + //Typemap in *cipher_PubKey + arg1 = &temp1; + } + arg2 = (void *)jarg2; + cipher_PubKey_assignTo(arg1,arg2); + { + //Typemap freearg *cipher_PubKey + free(arg1); + } +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher_PubKey_data(void * jarg1, void * jarg2) { + cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; + GoUint8 *arg2 ; + cipher_PubKey temp1 ; + + { + //Typemap in *cipher_PubKey + arg1 = &temp1; + } + arg2 = (GoUint8 *)jarg2; + { + size_t ii; + GoUint8 *b = (GoUint8 *) arg1->data; + for (ii = 0; ii < (size_t)33; ii++) b[ii] = *((GoUint8 *) arg2 + ii); + } + { + //Typemap freearg *cipher_PubKey + free(arg1); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_cipher_PubKey_data(void * jarg1) { + void * jresult ; + cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; + cipher_PubKey temp1 ; + GoUint8 *result = 0 ; + + { + //Typemap in *cipher_PubKey + arg1 = &temp1; + } + result = (GoUint8 *)(GoUint8 *) ((arg1)->data); + jresult = result; + { + //Typemap freearg *cipher_PubKey + free(arg1); + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_PubKey() { + void * jresult ; + cipher_PubKey *result = 0 ; + + result = (cipher_PubKey *)calloc(1, sizeof(cipher_PubKey)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_PubKey(void * jarg1) { + cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; + cipher_PubKey temp1 ; + + { + //Typemap in *cipher_PubKey + arg1 = &temp1; + } + free((char *) arg1); + { + //Typemap freearg *cipher_PubKey + free(arg1); + } +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_SecKey_isEqual(void * jarg1, void * jarg2) { + int jresult ; + cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; + cipher_SecKey *arg2 = (cipher_SecKey *) 0 ; + int result; + + arg1 = (cipher_SecKey *)jarg1; + arg2 = (cipher_SecKey *)jarg2; + result = (int)cipher_SecKey_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SecKey_assignFrom(void * jarg1, void * jarg2) { + cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (cipher_SecKey *)jarg1; + arg2 = (void *)jarg2; + cipher_SecKey_assignFrom(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SecKey_assignTo(void * jarg1, void * jarg2) { + cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (cipher_SecKey *)jarg1; + arg2 = (void *)jarg2; + cipher_SecKey_assignTo(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher_SecKey_data(void * jarg1, void * jarg2) { + cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; + GoUint8 *arg2 ; + + arg1 = (cipher_SecKey *)jarg1; + arg2 = (GoUint8 *)jarg2; + { + size_t ii; + GoUint8 *b = (GoUint8 *) arg1->data; + for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8 *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_cipher_SecKey_data(void * jarg1) { + void * jresult ; + cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; + GoUint8 *result = 0 ; + + arg1 = (cipher_SecKey *)jarg1; + result = (GoUint8 *)(GoUint8 *) ((arg1)->data); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_SecKey() { + void * jresult ; + cipher_SecKey *result = 0 ; + + result = (cipher_SecKey *)calloc(1, sizeof(cipher_SecKey)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_SecKey(void * jarg1) { + cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; + + arg1 = (cipher_SecKey *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_Ripemd160_isEqual(void * jarg1, void * jarg2) { + int jresult ; + cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; + cipher_Ripemd160 *arg2 = (cipher_Ripemd160 *) 0 ; + int result; + + arg1 = (cipher_Ripemd160 *)jarg1; + arg2 = (cipher_Ripemd160 *)jarg2; + result = (int)cipher_Ripemd160_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Ripemd160_assignFrom(void * jarg1, void * jarg2) { + cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (cipher_Ripemd160 *)jarg1; + arg2 = (void *)jarg2; + cipher_Ripemd160_assignFrom(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Ripemd160_assignTo(void * jarg1, void * jarg2) { + cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (cipher_Ripemd160 *)jarg1; + arg2 = (void *)jarg2; + cipher_Ripemd160_assignTo(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher_Ripemd160_data(void * jarg1, void * jarg2) { + cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; + GoUint8 *arg2 ; + + arg1 = (cipher_Ripemd160 *)jarg1; + arg2 = (GoUint8 *)jarg2; + { + size_t ii; + GoUint8 *b = (GoUint8 *) arg1->data; + for (ii = 0; ii < (size_t)20; ii++) b[ii] = *((GoUint8 *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_cipher_Ripemd160_data(void * jarg1) { + void * jresult ; + cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; + GoUint8 *result = 0 ; + + arg1 = (cipher_Ripemd160 *)jarg1; + result = (GoUint8 *)(GoUint8 *) ((arg1)->data); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_Ripemd160() { + void * jresult ; + cipher_Ripemd160 *result = 0 ; + + result = (cipher_Ripemd160 *)calloc(1, sizeof(cipher_Ripemd160)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_Ripemd160(void * jarg1) { + cipher_Ripemd160 *arg1 = (cipher_Ripemd160 *) 0 ; + + arg1 = (cipher_Ripemd160 *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_Sig_isEqual(void * jarg1, void * jarg2) { + int jresult ; + cipher_Sig *arg1 = (cipher_Sig *) 0 ; + cipher_Sig *arg2 = (cipher_Sig *) 0 ; + int result; + + arg1 = (cipher_Sig *)jarg1; + arg2 = (cipher_Sig *)jarg2; + result = (int)cipher_Sig_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Sig_assignFrom(void * jarg1, void * jarg2) { + cipher_Sig *arg1 = (cipher_Sig *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (cipher_Sig *)jarg1; + arg2 = (void *)jarg2; + cipher_Sig_assignFrom(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Sig_assignTo(void * jarg1, void * jarg2) { + cipher_Sig *arg1 = (cipher_Sig *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (cipher_Sig *)jarg1; + arg2 = (void *)jarg2; + cipher_Sig_assignTo(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher_Sig_data(void * jarg1, void * jarg2) { + cipher_Sig *arg1 = (cipher_Sig *) 0 ; + GoUint8 *arg2 ; + + arg1 = (cipher_Sig *)jarg1; + arg2 = (GoUint8 *)jarg2; + { + size_t ii; + GoUint8 *b = (GoUint8 *) arg1->data; + for (ii = 0; ii < (size_t)65; ii++) b[ii] = *((GoUint8 *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_cipher_Sig_data(void * jarg1) { + void * jresult ; + cipher_Sig *arg1 = (cipher_Sig *) 0 ; + GoUint8 *result = 0 ; + + arg1 = (cipher_Sig *)jarg1; + result = (GoUint8 *)(GoUint8 *) ((arg1)->data); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_Sig() { + void * jresult ; + cipher_Sig *result = 0 ; + + result = (cipher_Sig *)calloc(1, sizeof(cipher_Sig)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_Sig(void * jarg1) { + cipher_Sig *arg1 = (cipher_Sig *) 0 ; + + arg1 = (cipher_Sig *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_SHA256_isEqual(void * jarg1, void * jarg2) { + int jresult ; + cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; + cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; + int result; + + arg1 = (cipher_SHA256 *)jarg1; + arg2 = (cipher_SHA256 *)jarg2; + result = (int)cipher_SHA256_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SHA256_assignFrom(void * jarg1, void * jarg2) { + cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (cipher_SHA256 *)jarg1; + arg2 = (void *)jarg2; + cipher_SHA256_assignFrom(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SHA256_assignTo(void * jarg1, void * jarg2) { + cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (cipher_SHA256 *)jarg1; + arg2 = (void *)jarg2; + cipher_SHA256_assignTo(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher_SHA256_data(void * jarg1, void * jarg2) { + cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; + GoUint8 *arg2 ; + + arg1 = (cipher_SHA256 *)jarg1; + arg2 = (GoUint8 *)jarg2; + { + size_t ii; + GoUint8 *b = (GoUint8 *) arg1->data; + for (ii = 0; ii < (size_t)32; ii++) b[ii] = *((GoUint8 *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_cipher_SHA256_data(void * jarg1) { + void * jresult ; + cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; + GoUint8 *result = 0 ; + + arg1 = (cipher_SHA256 *)jarg1; + result = (GoUint8 *)(GoUint8 *) ((arg1)->data); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_SHA256() { + void * jresult ; + cipher_SHA256 *result = 0 ; + + result = (cipher_SHA256 *)calloc(1, sizeof(cipher_SHA256)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_SHA256(void * jarg1) { + cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; + + arg1 = (cipher_SHA256 *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_Checksum_isEqual(void * jarg1, void * jarg2) { + int jresult ; + cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; + cipher_Checksum *arg2 = (cipher_Checksum *) 0 ; + int result; + + arg1 = (cipher_Checksum *)jarg1; + arg2 = (cipher_Checksum *)jarg2; + result = (int)cipher_Checksum_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Checksum_assignFrom(void * jarg1, void * jarg2) { + cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (cipher_Checksum *)jarg1; + arg2 = (void *)jarg2; + cipher_Checksum_assignFrom(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Checksum_assignTo(void * jarg1, void * jarg2) { + cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (cipher_Checksum *)jarg1; + arg2 = (void *)jarg2; + cipher_Checksum_assignTo(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher_Checksum_data(void * jarg1, void * jarg2) { + cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; + GoUint8 *arg2 ; + + arg1 = (cipher_Checksum *)jarg1; + arg2 = (GoUint8 *)jarg2; + { + size_t ii; + GoUint8 *b = (GoUint8 *) arg1->data; + for (ii = 0; ii < (size_t)4; ii++) b[ii] = *((GoUint8 *) arg2 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_cipher_Checksum_data(void * jarg1) { + void * jresult ; + cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; + GoUint8 *result = 0 ; + + arg1 = (cipher_Checksum *)jarg1; + result = (GoUint8 *)(GoUint8 *) ((arg1)->data); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_Checksum() { + void * jresult ; + cipher_Checksum *result = 0 ; + + result = (cipher_Checksum *)calloc(1, sizeof(cipher_Checksum)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_Checksum(void * jarg1) { + cipher_Checksum *arg1 = (cipher_Checksum *) 0 ; + + arg1 = (cipher_Checksum *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_SecKeys_getAt(void * jarg1, int jarg2) { + void * jresult ; + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + int arg2 ; + cipher_SecKey *result = 0 ; + + arg1 = (cipher_SecKeys *)jarg1; + arg2 = (int)jarg2; + result = (cipher_SecKey *)cipher_SecKeys_getAt(arg1,arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_SecKeys_setAt(void * jarg1, int jarg2, void * jarg3) { + int jresult ; + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + int arg2 ; + cipher_SecKey *arg3 = (cipher_SecKey *) 0 ; + int result; + + arg1 = (cipher_SecKeys *)jarg1; + arg2 = (int)jarg2; + arg3 = (cipher_SecKey *)jarg3; + result = (int)cipher_SecKeys_setAt(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_SecKeys_isEqual(void * jarg1, void * jarg2) { + int jresult ; + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + cipher_SecKeys *arg2 = (cipher_SecKeys *) 0 ; + int result; + + arg1 = (cipher_SecKeys *)jarg1; + arg2 = (cipher_SecKeys *)jarg2; + result = (int)cipher_SecKeys_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SecKeys_allocate(void * jarg1, int jarg2) { + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + int arg2 ; + + arg1 = (cipher_SecKeys *)jarg1; + arg2 = (int)jarg2; + cipher_SecKeys_allocate(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SecKeys_release(void * jarg1) { + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + + arg1 = (cipher_SecKeys *)jarg1; + cipher_SecKeys_release(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher_SecKeys_data(void * jarg1, void * jarg2) { + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + cipher_SecKey *arg2 = (cipher_SecKey *) 0 ; + + arg1 = (cipher_SecKeys *)jarg1; + arg2 = (cipher_SecKey *)jarg2; + if (arg1) (arg1)->data = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_cipher_SecKeys_data(void * jarg1) { + void * jresult ; + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + cipher_SecKey *result = 0 ; + + arg1 = (cipher_SecKeys *)jarg1; + result = (cipher_SecKey *) ((arg1)->data); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher_SecKeys_count(void * jarg1, int jarg2) { + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + int arg2 ; + + arg1 = (cipher_SecKeys *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->count = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_cipher_SecKeys_count(void * jarg1) { + int jresult ; + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + int result; + + arg1 = (cipher_SecKeys *)jarg1; + result = (int) ((arg1)->count); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_SecKeys() { + void * jresult ; + cipher_SecKeys *result = 0 ; + + result = (cipher_SecKeys *)calloc(1, sizeof(cipher_SecKeys)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_SecKeys(void * jarg1) { + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + + arg1 = (cipher_SecKeys *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_getAt(void * jarg1, int jarg2) { + void * jresult ; + cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; + int arg2 ; + cipher_PubKey *result = 0 ; + + arg1 = (cipher_PubKeys *)jarg1; + arg2 = (int)jarg2; + result = (cipher_PubKey *)cipher_PubKeys_getAt(arg1,arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_setAt(void * jarg1, int jarg2, void * jarg3) { + int jresult ; + cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; + int arg2 ; + cipher_PubKey *arg3 = (cipher_PubKey *) 0 ; + cipher_PubKey temp3 ; + int result; + + arg1 = (cipher_PubKeys *)jarg1; + arg2 = (int)jarg2; + { + //Typemap in *cipher_PubKey + arg3 = &temp3; + } + result = (int)cipher_PubKeys_setAt(arg1,arg2,arg3); + jresult = result; + { + //Typemap freearg *cipher_PubKey + free(arg3); + } + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_isEqual(void * jarg1, void * jarg2) { + int jresult ; + cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; + cipher_PubKeys *arg2 = (cipher_PubKeys *) 0 ; + int result; + + arg1 = (cipher_PubKeys *)jarg1; + arg2 = (cipher_PubKeys *)jarg2; + result = (int)cipher_PubKeys_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_allocate(void * jarg1, int jarg2) { + cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; + int arg2 ; + + arg1 = (cipher_PubKeys *)jarg1; + arg2 = (int)jarg2; + cipher_PubKeys_allocate(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_release(void * jarg1) { + cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; + + arg1 = (cipher_PubKeys *)jarg1; + cipher_PubKeys_release(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher_PubKeys_data(void * jarg1, void * jarg2) { + cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; + cipher_PubKey *arg2 = (cipher_PubKey *) 0 ; + cipher_PubKey temp2 ; + + arg1 = (cipher_PubKeys *)jarg1; + { + //Typemap in *cipher_PubKey + arg2 = &temp2; + } + if (arg1) (arg1)->data = arg2; + { + //Typemap freearg *cipher_PubKey + free(arg2); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_cipher_PubKeys_data(void * jarg1) { + void * jresult ; + cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; + cipher_PubKey *result = 0 ; + + arg1 = (cipher_PubKeys *)jarg1; + result = (cipher_PubKey *) ((arg1)->data); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher_PubKeys_count(void * jarg1, int jarg2) { + cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; + int arg2 ; + + arg1 = (cipher_PubKeys *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->count = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_cipher_PubKeys_count(void * jarg1) { + int jresult ; + cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; + int result; + + arg1 = (cipher_PubKeys *)jarg1; + result = (int) ((arg1)->count); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_PubKeys() { + void * jresult ; + cipher_PubKeys *result = 0 ; + + result = (cipher_PubKeys *)calloc(1, sizeof(cipher_PubKeys)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_PubKeys(void * jarg1) { + cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; + + arg1 = (cipher_PubKeys *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_SHA256s_getAt(void * jarg1, int jarg2) { + void * jresult ; + cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; + int arg2 ; + cipher_SHA256 *result = 0 ; + + arg1 = (cipher_SHA256s *)jarg1; + arg2 = (int)jarg2; + result = (cipher_SHA256 *)cipher_SHA256s_getAt(arg1,arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_SHA256s_setAt(void * jarg1, int jarg2, void * jarg3) { + int jresult ; + cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; + int arg2 ; + cipher_SHA256 *arg3 = (cipher_SHA256 *) 0 ; + int result; + + arg1 = (cipher_SHA256s *)jarg1; + arg2 = (int)jarg2; + arg3 = (cipher_SHA256 *)jarg3; + result = (int)cipher_SHA256s_setAt(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_SHA256s_isEqual(void * jarg1, void * jarg2) { + int jresult ; + cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; + cipher_SHA256s *arg2 = (cipher_SHA256s *) 0 ; + int result; + + arg1 = (cipher_SHA256s *)jarg1; + arg2 = (cipher_SHA256s *)jarg2; + result = (int)cipher_SHA256s_isEqual(arg1,arg2); + jresult = result; + return jresult; +} -typedef Handle BalanceResult_Handle; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SHA256s_allocate(void * jarg1, int jarg2) { + cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; + int arg2 ; + + arg1 = (cipher_SHA256s *)jarg1; + arg2 = (int)jarg2; + cipher_SHA256s_allocate(arg1,arg2); +} -/** - * Memory handle to access to api.SpendResult - */ -typedef Handle SpendResult_Handle; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SHA256s_release(void * jarg1) { + cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; + + arg1 = (cipher_SHA256s *)jarg1; + cipher_SHA256s_release(arg1); +} -/** - * Memory handle to access to coin.Transactions - */ -typedef Handle TransactionResult_Handle; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher_SHA256s_data(void * jarg1, void * jarg2) { + cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; + cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; + + arg1 = (cipher_SHA256s *)jarg1; + arg2 = (cipher_SHA256 *)jarg2; + if (arg1) (arg1)->data = arg2; +} -/** - * Memory handle to access to coin.SortableTransactions - */ -typedef Handle SortableTransactionResult_Handle; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_cipher_SHA256s_data(void * jarg1) { + void * jresult ; + cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; + cipher_SHA256 *result = 0 ; + + arg1 = (cipher_SHA256s *)jarg1; + result = (cipher_SHA256 *) ((arg1)->data); + jresult = (void *)result; + return jresult; +} -/** - * Memory handle to access to wallet.Notes - */ +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher_SHA256s_count(void * jarg1, int jarg2) { + cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; + int arg2 ; + + arg1 = (cipher_SHA256s *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->count = arg2; +} -/** - * Memory handle to access to wallet.ReadableNotes - */ -typedef Handle WalletReadableNotes_Handle; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_cipher_SHA256s_count(void * jarg1) { + int jresult ; + cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; + int result; + + arg1 = (cipher_SHA256s *)jarg1; + result = (int) ((arg1)->count); + jresult = result; + return jresult; +} -/** - * Memory handle to access to webrpc.OutputsResult - */ -typedef Handle OutputsResult_Handle; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_SHA256s() { + void * jresult ; + cipher_SHA256s *result = 0 ; + + result = (cipher_SHA256s *)calloc(1, sizeof(cipher_SHA256s)); + jresult = (void *)result; + return jresult; +} -/** - * Memory handle to access to webrpc.StatusResult - */ -typedef Handle StatusResult_Handle; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_SHA256s(void * jarg1) { + cipher_SHA256s *arg1 = (cipher_SHA256s *) 0 ; + + arg1 = (cipher_SHA256s *)jarg1; + free((char *) arg1); +} -/** - * Memory handle to access to coin.AddressUxOuts - */ -typedef Handle AddressUxOuts_Handle; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_getAt(void * jarg1, int jarg2) { + void * jresult ; + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + int arg2 ; + coin__UxOut *result = 0 ; + + arg1 = (coin_UxOutArray *)jarg1; + arg2 = (int)jarg2; + result = (coin__UxOut *)coin_UxOutArray_getAt(arg1,arg2); + jresult = (void *)result; + return jresult; +} -/** - * Memory handle to access to visor.BuildInfo (BuildInfo) - */ -typedef Handle BuildInfo_Handle; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_setAt(void * jarg1, int jarg2, void * jarg3) { + int jresult ; + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + int arg2 ; + coin__UxOut *arg3 = (coin__UxOut *) 0 ; + int result; + + arg1 = (coin_UxOutArray *)jarg1; + arg2 = (int)jarg2; + arg3 = (coin__UxOut *)jarg3; + result = (int)coin_UxOutArray_setAt(arg1,arg2,arg3); + jresult = result; + return jresult; +} -/** - * Memory handle for hash (ripemd160.digest) - */ -typedef Handle Hash_Handle; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_isEqual(void * jarg1, void * jarg2) { + int jresult ; + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + coin_UxOutArray *arg2 = (coin_UxOutArray *) 0 ; + int result; + + arg1 = (coin_UxOutArray *)jarg1; + arg2 = (coin_UxOutArray *)jarg2; + result = (int)coin_UxOutArray_isEqual(arg1,arg2); + jresult = result; + return jresult; +} -/** -* Handle for Number type -*/ -typedef Handle Number_Handle; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_allocate(void * jarg1, int jarg2) { + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + int arg2 ; + + arg1 = (coin_UxOutArray *)jarg1; + arg2 = (int)jarg2; + coin_UxOutArray_allocate(arg1,arg2); +} -/** -* Handle for Signature type -*/ -typedef Handle Signature_Handle; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_release(void * jarg1) { + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + + arg1 = (coin_UxOutArray *)jarg1; + coin_UxOutArray_release(arg1); +} -SWIGINTERN int cipher__Address_isEqual(cipher__Address *self,cipher__Address *a){ - if( self->Version == a->Version ){ - return memcmp(self->Key, a->Key, sizeof(a->Key)) == 0; - } - return 0; - } -SWIGINTERN int coin__Transaction_isEqual(coin__Transaction *self,coin__Transaction *t){ - return equalTransactions(self, t); - } -SWIGINTERN int coin__TransactionOutput_isEqual(coin__TransactionOutput *self,coin__TransactionOutput *t){ - if( self->Coins != t->Coins || - self->Hours != t->Hours ){ - return 0; - } +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin_UxOutArray_data(void * jarg1, void * jarg2) { + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + coin__UxOut *arg2 = (coin__UxOut *) 0 ; + + arg1 = (coin_UxOutArray *)jarg1; + arg2 = (coin__UxOut *)jarg2; + if (arg1) (arg1)->data = arg2; +} - if(memcmp(&self->Address, &t->Address, sizeof(cipher__Address)) != 0) - return 0; - return 1; - } -SWIGINTERN int coin__BlockHeader_isEqual(coin__BlockHeader *self,coin__BlockHeader *bh){ - return equalBlockHeaders(self, bh); - } -SWIGINTERN int coin__BlockBody_isEqual(coin__BlockBody *self,coin__BlockBody *b){ - return equalTransactionsArrays(&self->Transactions, &b->Transactions); - } -SWIGINTERN int coin__UxOut_isEqual(coin__UxOut *self,coin__UxOut *u){ - return memcmp(&self, u, sizeof(coin__UxOut)) == 0; - } -#ifdef __cplusplus -extern "C" { -#endif +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin_UxOutArray_data(void * jarg1) { + void * jresult ; + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + coin__UxOut *result = 0 ; + + arg1 = (coin_UxOutArray *)jarg1; + result = (coin__UxOut *) ((arg1)->data); + jresult = (void *)result; + return jresult; +} -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_destroy_cipher_SecKeys(void * jarg1) { - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin_UxOutArray_count(void * jarg1, int jarg2) { + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + int arg2 ; - arg1 = (cipher_SecKeys *)jarg1; - destroy_cipher_SecKeys(arg1); + arg1 = (coin_UxOutArray *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->count = arg2; } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalSlices(void * jarg1, void * jarg2, int jarg3) { +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_coin_UxOutArray_count(void * jarg1) { int jresult ; - GoSlice *arg1 = (GoSlice *) 0 ; - GoSlice *arg2 = (GoSlice *) 0 ; - int arg3 ; + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; int result; - arg1 = (GoSlice *)jarg1; - arg2 = (GoSlice *)jarg2; - arg3 = (int)jarg3; - result = (int)equalSlices(arg1,arg2,arg3); + arg1 = (coin_UxOutArray *)jarg1; + result = (int) ((arg1)->count); jresult = result; return jresult; } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalTransactions(void * jarg1, void * jarg2) { - int jresult ; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - coin__Transaction *arg2 = (coin__Transaction *) 0 ; - int result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin_UxOutArray() { + void * jresult ; + coin_UxOutArray *result = 0 ; - arg1 = (coin__Transaction *)jarg1; - arg2 = (coin__Transaction *)jarg2; - result = (int)equalTransactions(arg1,arg2); - jresult = result; + result = (coin_UxOutArray *)calloc(1, sizeof(coin_UxOutArray)); + jresult = (void *)result; return jresult; } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalTransactionsArrays(void * jarg1, void * jarg2) { - int jresult ; - coin__Transactions *arg1 = (coin__Transactions *) 0 ; - coin__Transactions *arg2 = (coin__Transactions *) 0 ; - int result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin_UxOutArray(void * jarg1) { + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; - arg1 = (coin__Transactions *)jarg1; - arg2 = (coin__Transactions *)jarg2; - result = (int)equalTransactionsArrays(arg1,arg2); - jresult = result; + arg1 = (coin_UxOutArray *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher_Addresses_data(void * jarg1, void * jarg2) { + cipher_Addresses *arg1 = (cipher_Addresses *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + + arg1 = (cipher_Addresses *)jarg1; + arg2 = (cipher__Address *)jarg2; + if (arg1) (arg1)->data = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_cipher_Addresses_data(void * jarg1) { + void * jresult ; + cipher_Addresses *arg1 = (cipher_Addresses *) 0 ; + cipher__Address *result = 0 ; + + arg1 = (cipher_Addresses *)jarg1; + result = (cipher__Address *) ((arg1)->data); + jresult = (void *)result; return jresult; } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalBlockHeaders(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher_Addresses_count(void * jarg1, int jarg2) { + cipher_Addresses *arg1 = (cipher_Addresses *) 0 ; + int arg2 ; + + arg1 = (cipher_Addresses *)jarg1; + arg2 = (int)jarg2; + if (arg1) (arg1)->count = arg2; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_cipher_Addresses_count(void * jarg1) { int jresult ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - coin__BlockHeader *arg2 = (coin__BlockHeader *) 0 ; + cipher_Addresses *arg1 = (cipher_Addresses *) 0 ; int result; - arg1 = (coin__BlockHeader *)jarg1; - arg2 = (coin__BlockHeader *)jarg2; - result = (int)equalBlockHeaders(arg1,arg2); + arg1 = (cipher_Addresses *)jarg1; + result = (int) ((arg1)->count); jresult = result; return jresult; } +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_Addresses() { + void * jresult ; + cipher_Addresses *result = 0 ; + + result = (cipher_Addresses *)calloc(1, sizeof(cipher_Addresses)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_Addresses(void * jarg1) { + cipher_Addresses *arg1 = (cipher_Addresses *) 0 ; + + arg1 = (cipher_Addresses *)jarg1; + free((char *) arg1); +} + + SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set__GoString__p(void * jarg1, char * jarg2) { _GoString_ *arg1 = (_GoString_ *) 0 ; char *arg2 = (char *) 0 ; @@ -835,14 +2205,18 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock(void * jarg } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SignedBlock_VerifySignature(void * jarg1, cipher_PubKey* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SignedBlock_VerifySignature(void * jarg1, void * jarg2) { unsigned int jresult ; coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + cipher_PubKey temp2 ; GoUint32 result; arg1 = (coin__SignedBlock *)jarg1; - arg2 = (cipher_PubKey*)jarg2; + { + //Typemap in *GoUint8_ (*)[33] is cipher_PubKey + arg2 = (cipher_PubKey*)&temp2; + } result = (GoUint32)SKY_coin_SignedBlock_VerifySignature(arg1,(GoUint8_ (*)[33])arg2); jresult = result; { @@ -4364,11 +5738,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_RandByte(long long } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewPubKey(void * jarg1, cipher_PubKey* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewPubKey(void * jarg1, void * jarg2) { unsigned int jresult ; GoSlice arg1 ; cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; GoSlice *argp1 ; + cipher_PubKey temp2 ; GoUint32 result; argp1 = (GoSlice *)jarg1; @@ -4377,7 +5752,10 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewPubKey(void * j return 0; } arg1 = *argp1; - arg2 = (cipher_PubKey*)jarg2; + { + //Typemap in *GoUint8_ (*)[33] is cipher_PubKey + arg2 = (cipher_PubKey*)&temp2; + } result = (GoUint32)SKY_cipher_NewPubKey(arg1,(GoUint8_ (*)[33])arg2); jresult = result; { @@ -4388,11 +5766,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewPubKey(void * j } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromHex(void * jarg1, cipher_PubKey* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromHex(void * jarg1, void * jarg2) { unsigned int jresult ; GoString arg1 ; cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; GoString *argp1 ; + cipher_PubKey temp2 ; GoUint32 result; argp1 = (GoString *)jarg1; @@ -4401,7 +5780,10 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromHex(void return 0; } arg1 = *argp1; - arg2 = (cipher_PubKey*)jarg2; + { + //Typemap in *GoUint8_ (*)[33] is cipher_PubKey + arg2 = (cipher_PubKey*)&temp2; + } result = (GoUint32)SKY_cipher_PubKeyFromHex(arg1,(GoUint8_ (*)[33])arg2); jresult = result; { @@ -4412,14 +5794,18 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromHex(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSecKey(void * jarg1, cipher_PubKey* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSecKey(void * jarg1, void * jarg2) { unsigned int jresult ; cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + cipher_PubKey temp2 ; GoUint32 result; arg1 = (cipher__SecKey *)jarg1; - arg2 = (cipher_PubKey*)jarg2; + { + //Typemap in *GoUint8_ (*)[33] is cipher_PubKey + arg2 = (cipher_PubKey*)&temp2; + } result = (GoUint32)SKY_cipher_PubKeyFromSecKey((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[33])arg2); jresult = result; { @@ -4430,16 +5816,20 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSecKey(v } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSig(void * jarg1, void * jarg2, cipher_PubKey* jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSig(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; cipher__Sig *arg1 = (cipher__Sig *) 0 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; cipher__PubKey *arg3 = (cipher__PubKey *) 0 ; + cipher_PubKey temp3 ; GoUint32 result; arg1 = (cipher__Sig *)jarg1; arg2 = (cipher__SHA256 *)jarg2; - arg3 = (cipher_PubKey*)jarg3; + { + //Typemap in *GoUint8_ (*)[33] is cipher_PubKey + arg3 = (cipher_PubKey*)&temp3; + } result = (GoUint32)SKY_cipher_PubKeyFromSig((GoUint8_ (*)[65])arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[33])arg3); jresult = result; { @@ -4450,12 +5840,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSig(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_Verify(cipher_PubKey* jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_Verify(void * jarg1) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher_PubKey temp1 ; GoUint32 result; - arg1 = (cipher_PubKey*)jarg1; + { + //Typemap in *GoUint8_ (*)[33] is cipher_PubKey + arg1 = (cipher_PubKey*)&temp1; + } result = (GoUint32)SKY_cipher_PubKey_Verify((GoUint8_ (*)[33])arg1); jresult = result; { @@ -4466,13 +5860,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_Verify(ciph } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_Hex(cipher_PubKey* jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_Hex(void * jarg1, void * jarg2) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; GoString_ *arg2 = (GoString_ *) 0 ; + cipher_PubKey temp1 ; GoUint32 result; - arg1 = (cipher_PubKey*)jarg1; + { + //Typemap in *GoUint8_ (*)[33] is cipher_PubKey + arg1 = (cipher_PubKey*)&temp1; + } arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_cipher_PubKey_Hex((GoUint8_ (*)[33])arg1,arg2); jresult = result; @@ -4484,13 +5882,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_Hex(cipher_ } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_ToAddressHash(cipher_PubKey* jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_ToAddressHash(void * jarg1, void * jarg2) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; cipher__Ripemd160 *arg2 = (cipher__Ripemd160 *) 0 ; + cipher_PubKey temp1 ; GoUint32 result; - arg1 = (cipher_PubKey*)jarg1; + { + //Typemap in *GoUint8_ (*)[33] is cipher_PubKey + arg1 = (cipher_PubKey*)&temp1; + } arg2 = (cipher__Ripemd160 *)jarg2; result = (GoUint32)SKY_cipher_PubKey_ToAddressHash((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[20])arg2); jresult = result; @@ -4568,14 +5970,18 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKey_Hex(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_ECDH(cipher_PubKey* jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_ECDH(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; coin__UxArray *arg3 = (coin__UxArray *) 0 ; + cipher_PubKey temp1 ; GoUint32 result; - arg1 = (cipher_PubKey*)jarg1; + { + //Typemap in *GoUint8_ (*)[33] is cipher_PubKey + arg1 = (cipher_PubKey*)&temp1; + } arg2 = (cipher__SecKey *)jarg2; arg3 = (coin__UxArray *)jarg3; result = (GoUint32)SKY_cipher_ECDH((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2,arg3); @@ -4688,14 +6094,18 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignedHash(v } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignature(cipher_PubKey* jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignature(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; cipher__Sig *arg2 = (cipher__Sig *) 0 ; cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + cipher_PubKey temp1 ; GoUint32 result; - arg1 = (cipher_PubKey*)jarg1; + { + //Typemap in *GoUint8_ (*)[33] is cipher_PubKey + arg1 = (cipher_PubKey*)&temp1; + } arg2 = (cipher__Sig *)jarg2; arg3 = (cipher__SHA256 *)jarg3; result = (GoUint32)SKY_cipher_VerifySignature((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[65])arg2,(GoUint8_ (*)[32])arg3); @@ -4708,12 +6118,13 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignature(ci } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPair(void * jarg1, cipher_PubKey* jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPair(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; GoSlice arg1 ; cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; cipher__SecKey *arg3 = (cipher__SecKey *) 0 ; GoSlice *argp1 ; + cipher_PubKey temp2 ; GoUint32 result; argp1 = (GoSlice *)jarg1; @@ -4722,7 +6133,10 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterminis return 0; } arg1 = *argp1; - arg2 = (cipher_PubKey*)jarg2; + { + //Typemap in *GoUint8_ (*)[33] is cipher_PubKey + arg2 = (cipher_PubKey*)&temp2; + } arg3 = (cipher__SecKey *)jarg3; result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPair(arg1,(GoUint8_ (*)[33])arg2,(GoUint8_ (*)[32])arg3); jresult = result; @@ -4734,13 +6148,14 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterminis } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DeterministicKeyPairIterator(void * jarg1, void * jarg2, cipher_PubKey* jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DeterministicKeyPairIterator(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; GoSlice arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; cipher__PubKey *arg3 = (cipher__PubKey *) 0 ; cipher__SecKey *arg4 = (cipher__SecKey *) 0 ; GoSlice *argp1 ; + cipher_PubKey temp3 ; GoUint32 result; argp1 = (GoSlice *)jarg1; @@ -4750,7 +6165,10 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DeterministicKeyPa } arg1 = *argp1; arg2 = (coin__UxArray *)jarg2; - arg3 = (cipher_PubKey*)jarg3; + { + //Typemap in *GoUint8_ (*)[33] is cipher_PubKey + arg3 = (cipher_PubKey*)&temp3; + } arg4 = (cipher__SecKey *)jarg4; result = (GoUint32)SKY_cipher_DeterministicKeyPairIterator(arg1,arg2,(GoUint8_ (*)[33])arg3,(GoUint8_ (*)[32])arg4); jresult = result; @@ -4834,13 +6252,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_TestSecKeyHash(voi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateKeyPair(cipher_PubKey* jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateKeyPair(void * jarg1, void * jarg2) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + cipher_PubKey temp1 ; GoUint32 result; - arg1 = (cipher_PubKey*)jarg1; + { + //Typemap in *GoUint8_ (*)[33] is cipher_PubKey + arg1 = (cipher_PubKey*)&temp1; + } arg2 = (cipher__SecKey *)jarg2; result = (GoUint32)SKY_cipher_GenerateKeyPair((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2); jresult = result; @@ -5476,14 +6898,18 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateAddresses(vo } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_GetSkycoinWalletEntry(cipher_PubKey* jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_GetSkycoinWalletEntry(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; ReadableEntry__Handle *arg3 = (ReadableEntry__Handle *) 0 ; + cipher_PubKey temp1 ; GoUint32 result; - arg1 = (cipher_PubKey*)jarg1; + { + //Typemap in *GoUint8_ (*)[33] is cipher_PubKey + arg1 = (cipher_PubKey*)&temp1; + } arg2 = (cipher__SecKey *)jarg2; arg3 = (ReadableEntry__Handle *)jarg3; result = (GoUint32)SKY_wallet_GetSkycoinWalletEntry((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2,arg3); @@ -5496,14 +6922,18 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_GetSkycoinWalletEn } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_GetBitcoinWalletEntry(cipher_PubKey* jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_GetBitcoinWalletEntry(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; ReadableEntry__Handle *arg3 = (ReadableEntry__Handle *) 0 ; + cipher_PubKey temp1 ; GoUint32 result; - arg1 = (cipher_PubKey*)jarg1; + { + //Typemap in *GoUint8_ (*)[33] is cipher_PubKey + arg1 = (cipher_PubKey*)&temp1; + } arg2 = (cipher__SecKey *)jarg2; arg3 = (ReadableEntry__Handle *)jarg3; result = (GoUint32)SKY_wallet_GetBitcoinWalletEntry((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2,arg3); @@ -5967,13 +7397,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddressFromBytes(v } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddressFromPubKey(cipher_PubKey* jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddressFromPubKey(void * jarg1, void * jarg2) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; cipher__Address *arg2 = (cipher__Address *) 0 ; + cipher_PubKey temp1 ; GoUint32 result; - arg1 = (cipher_PubKey*)jarg1; + { + //Typemap in *GoUint8_ (*)[33] is cipher_PubKey + arg1 = (cipher_PubKey*)&temp1; + } arg2 = (cipher__Address *)jarg2; result = (GoUint32)SKY_cipher_AddressFromPubKey((GoUint8_ (*)[33])arg1,arg2); jresult = result; @@ -6061,14 +7495,18 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_BitcoinByt } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Verify(void * jarg1, cipher_PubKey* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Verify(void * jarg1, void * jarg2) { unsigned int jresult ; cipher__Address *arg1 = (cipher__Address *) 0 ; cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + cipher_PubKey temp2 ; GoUint32 result; arg1 = (cipher__Address *)jarg1; - arg2 = (cipher_PubKey*)jarg2; + { + //Typemap in *GoUint8_ (*)[33] is cipher_PubKey + arg2 = (cipher_PubKey*)&temp2; + } result = (GoUint32)SKY_cipher_Address_Verify(arg1,(GoUint8_ (*)[33])arg2); jresult = result; { @@ -6135,13 +7573,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_BitcoinChe } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddressFromPubkey(cipher_PubKey* jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddressFromPubkey(void * jarg1, void * jarg2) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; GoString_ *arg2 = (GoString_ *) 0 ; + cipher_PubKey temp1 ; GoUint32 result; - arg1 = (cipher_PubKey*)jarg1; + { + //Typemap in *GoUint8_ (*)[33] is cipher_PubKey + arg1 = (cipher_PubKey*)&temp1; + } arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_cipher_BitcoinAddressFromPubkey((GoUint8_ (*)[33])arg1,arg2); jresult = result; @@ -6504,12 +7946,13 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWall } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletGetEntry(void * jarg1, unsigned int jarg2, void * jarg3, cipher_PubKey* jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletGetEntry(void * jarg1, unsigned int jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; Wallet__Handle arg1 ; GoUint32 arg2 ; cipher__Address *arg3 = (cipher__Address *) 0 ; cipher__PubKey *arg4 = (cipher__PubKey *) 0 ; + cipher_PubKey temp4 ; GoUint32 result; { @@ -6517,7 +7960,10 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletGetEntry } arg2 = (GoUint32)jarg2; arg3 = (cipher__Address *)jarg3; - arg4 = (cipher_PubKey*)jarg4; + { + //Typemap in *GoUint8_ (*)[33] is cipher_PubKey + arg4 = (cipher_PubKey*)&temp4; + } result = (GoUint32)SKY_api_Handle_WalletGetEntry(arg1,arg2,arg3,(GoUint8_ (*)[33])arg4); jresult = result; { diff --git a/LibskycoinNet/skycoin/wallet__Wallet.cs b/LibskycoinNet/skycoin/wallet__Wallet.cs deleted file mode 100644 index 49694871..00000000 --- a/LibskycoinNet/skycoin/wallet__Wallet.cs +++ /dev/null @@ -1,72 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class wallet__Wallet : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal wallet__Wallet(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(wallet__Wallet obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~wallet__Wallet() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_wallet__Wallet(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_GoMap_ Meta { - set { - skycoinPINVOKE.set_wallet__Wallet_Meta(swigCPtr, SWIGTYPE_p_GoMap_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoMap_ ret = new SWIGTYPE_p_GoMap_(skycoinPINVOKE.get_wallet__Wallet_Meta(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_GoSlice_ Entries { - set { - skycoinPINVOKE.set_wallet__Wallet_Entries(swigCPtr, SWIGTYPE_p_GoSlice_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoSlice_ ret = new SWIGTYPE_p_GoSlice_(skycoinPINVOKE.get_wallet__Wallet_Entries(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public wallet__Wallet() : this(skycoinPINVOKE.new_wallet__Wallet(), true) { - } - -} - -} diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index 6e6dfc5f..fe0a28da 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit 6e6dfc5f04ab953f9b250e74832fe6f788e53609 +Subproject commit fe0a28da3a0ab16256a4689a32385be89f5ff494 From f15ea13e14dd447e47fc09aa33542be9f97ab9cc Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Wed, 12 Sep 2018 13:08:08 -0400 Subject: [PATCH 18/73] Update supmodule and correct test --- LibskycoinNet/LibskycoinNet.csproj | 2 - .../skycoin/SWIGTYPE_p_a_32__GoUint8_.cs | 29 - .../skycoin/SWIGTYPE_p_a_33__GoUint8_.cs | 29 - LibskycoinNet/skycoin/skycoin.cs | 793 ++++++++++++------ LibskycoinNet/skycoin/skycoinPINVOKE.cs | 134 +-- LibskycoinNet/skycoin/skycoinnet_wrap.c | 489 ++++------- LibskycoinNetTest/check_cipher_address.cs | 15 +- gopath/src/github.com/skycoin/skycoin | 2 +- 8 files changed, 808 insertions(+), 685 deletions(-) delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_a_32__GoUint8_.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_a_33__GoUint8_.cs diff --git a/LibskycoinNet/LibskycoinNet.csproj b/LibskycoinNet/LibskycoinNet.csproj index 5ac45615..65e61d60 100644 --- a/LibskycoinNet/LibskycoinNet.csproj +++ b/LibskycoinNet/LibskycoinNet.csproj @@ -78,8 +78,6 @@ - - diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_a_32__GoUint8_.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_a_32__GoUint8_.cs deleted file mode 100644 index 31785e54..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_a_32__GoUint8_.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_a_32__GoUint8_ { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_a_32__GoUint8_(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_a_32__GoUint8_() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_a_32__GoUint8_ obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_a_33__GoUint8_.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_a_33__GoUint8_.cs deleted file mode 100644 index 53b8410d..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_a_33__GoUint8_.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_a_33__GoUint8_ { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_a_33__GoUint8_(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_a_33__GoUint8_() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_a_33__GoUint8_ obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs index df7f49ee..acb0dbb9 100644 --- a/LibskycoinNet/skycoin/skycoin.cs +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -62,35 +62,74 @@ public static cipher_PubKey cipher_PubKeyp_value(cipher_PubKey obj) { return ret; } - public static cipher_PubKey f(cipher_PubKey v) { - global::System.IntPtr cPtr = skycoinPINVOKE.f(cipher_PubKey.getCPtr(v)); - cipher_PubKey ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher_PubKey(cPtr, false); + public static cipher_SecKey new_cipher_SecKeyp() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_cipher_SecKeyp(); + cipher_SecKey ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher_SecKey(cPtr, false); return ret; } - public static uint SKY_coin_NewBlock(SWIGTYPE_p_GoInt64_ p0, ulong p1, SWIGTYPE_p_a_32__GoUint8_ p2, SWIGTYPE_p_GoInt64_ p3, SWIGTYPE_p_FeeCalculator p4) { - uint ret = skycoinPINVOKE.SKY_coin_NewBlock(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1, SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2), SWIGTYPE_p_GoInt64_.getCPtr(p3), SWIGTYPE_p_FeeCalculator.getCPtr(p4)); + public static cipher_SecKey copy_cipher_SecKeyp(cipher_SecKey value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_cipher_SecKeyp(cipher_SecKey.getCPtr(value)); + cipher_SecKey ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher_SecKey(cPtr, false); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_SignedBlock_VerifySignature(coin__SignedBlock p0, SWIGTYPE_p_a_33__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_SignedBlock_VerifySignature(coin__SignedBlock.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); + public static void delete_cipher_SecKeyp(cipher_SecKey obj) { + skycoinPINVOKE.delete_cipher_SecKeyp(cipher_SecKey.getCPtr(obj)); + } + + public static void cipher_SecKeyp_assign(cipher_SecKey obj, cipher_SecKey value) { + skycoinPINVOKE.cipher_SecKeyp_assign(cipher_SecKey.getCPtr(obj), cipher_SecKey.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + + public static cipher_SecKey cipher_SecKeyp_value(cipher_SecKey obj) { + cipher_SecKey ret = new cipher_SecKey(skycoinPINVOKE.cipher_SecKeyp_value(cipher_SecKey.getCPtr(obj)), true); return ret; } + public static uint SKY_coin_NewBlock(SWIGTYPE_p_GoInt64_ p0, ulong p1, cipher_SecKey p2, SWIGTYPE_p_GoInt64_ p3, SWIGTYPE_p_FeeCalculator p4) { +cipher_SecKey tmpp2 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_coin_NewBlock(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1, tmpp2, SWIGTYPE_p_GoInt64_.getCPtr(p3), SWIGTYPE_p_FeeCalculator.getCPtr(p4)); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp2); + } + } + + public static uint SKY_coin_SignedBlock_VerifySignature(coin__SignedBlock p0, cipher_PubKey p1) { +cipher_PubKey tmpp1 = new_cipher_PubKeyp(); + { + uint ret = skycoinPINVOKE.SKY_coin_SignedBlock_VerifySignature(coin__SignedBlock.getCPtr(p0), tmpp1); + return ret; + } + } + public static uint SKY_coin_NewGenesisBlock(cipher__Address p0, ulong p1, ulong p2) { uint ret = skycoinPINVOKE.SKY_coin_NewGenesisBlock(cipher__Address.getCPtr(p0), p1, p2); return ret; } - public static uint SKY_coin_Block_HashHeader(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Block_HashHeader(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - return ret; + public static uint SKY_coin_Block_HashHeader(SWIGTYPE_p_GoInt64_ p0, cipher_SecKey p1) { +cipher_SecKey tmpp1 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_coin_Block_HashHeader(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp1); + } } - public static uint SKY_coin_Block_PreHashHeader(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Block_PreHashHeader(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - return ret; + public static uint SKY_coin_Block_PreHashHeader(SWIGTYPE_p_GoInt64_ p0, cipher_SecKey p1) { +cipher_SecKey tmpp1 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_coin_Block_PreHashHeader(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp1); + } } public static uint SKY_coin_Block_Time(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_unsigned_long_long p1) { @@ -103,9 +142,14 @@ public static uint SKY_coin_Block_Seq(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_unsigne return ret; } - public static uint SKY_coin_Block_HashBody(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Block_HashBody(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - return ret; + public static uint SKY_coin_Block_HashBody(SWIGTYPE_p_GoInt64_ p0, cipher_SecKey p1) { +cipher_SecKey tmpp1 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_coin_Block_HashBody(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp1); + } } public static uint SKY_coin_Block_Size(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_long_long p1) { @@ -118,19 +162,34 @@ public static uint SKY_coin_Block_String(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoSt return ret; } - public static uint SKY_coin_Block_GetTransaction(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_unsigned_char p3) { - uint ret = skycoinPINVOKE.SKY_coin_Block_GetTransaction(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p3)); - return ret; + public static uint SKY_coin_Block_GetTransaction(SWIGTYPE_p_GoInt64_ p0, cipher_SecKey p1, SWIGTYPE_p_unsigned_char p3) { +cipher_SecKey tmpp1 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_coin_Block_GetTransaction(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1, SWIGTYPE_p_unsigned_char.getCPtr(p3)); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp1); + } } - public static uint SKY_coin_NewBlockHeader(coin__BlockHeader p0, SWIGTYPE_p_a_32__GoUint8_ p1, ulong p2, ulong p3, SWIGTYPE_p_GoInt64_ p4, coin__BlockHeader p5) { - uint ret = skycoinPINVOKE.SKY_coin_NewBlockHeader(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), p2, p3, SWIGTYPE_p_GoInt64_.getCPtr(p4), coin__BlockHeader.getCPtr(p5)); - return ret; + public static uint SKY_coin_NewBlockHeader(coin__BlockHeader p0, cipher_SecKey p1, ulong p2, ulong p3, SWIGTYPE_p_GoInt64_ p4, coin__BlockHeader p5) { +cipher_SecKey tmpp1 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_coin_NewBlockHeader(coin__BlockHeader.getCPtr(p0), tmpp1, p2, p3, SWIGTYPE_p_GoInt64_.getCPtr(p4), coin__BlockHeader.getCPtr(p5)); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp1); + } } - public static uint SKY_coin_BlockHeader_Hash(coin__BlockHeader p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_BlockHeader_Hash(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - return ret; + public static uint SKY_coin_BlockHeader_Hash(coin__BlockHeader p0, cipher_SecKey p1) { +cipher_SecKey tmpp1 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_coin_BlockHeader_Hash(coin__BlockHeader.getCPtr(p0), tmpp1); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp1); + } } public static uint SKY_coin_BlockHeader_Bytes(coin__BlockHeader p0, SWIGTYPE_p_GoSlice_ p1) { @@ -143,9 +202,14 @@ public static uint SKY_coin_BlockHeader_String(coin__BlockHeader p0, SWIGTYPE_p_ return ret; } - public static uint SKY_coin_BlockBody_Hash(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Hash(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - return ret; + public static uint SKY_coin_BlockBody_Hash(SWIGTYPE_p_GoInt64_ p0, cipher_SecKey p1) { +cipher_SecKey tmpp1 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Hash(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp1); + } } public static uint SKY_coin_BlockBody_Size(SWIGTYPE_p_long_long p1) { @@ -555,9 +619,14 @@ public static uint SKY_api_CreatedTransaction_ToTransaction(SWIGTYPE_p_GoInt64_ return ret; } - public static uint SKY_api_NewCreatedTransactionOutput(coin__TransactionOutput p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_api_NewCreatedTransactionOutput(coin__TransactionOutput.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - return ret; + public static uint SKY_api_NewCreatedTransactionOutput(coin__TransactionOutput p0, cipher_SecKey p1) { +cipher_SecKey tmpp1 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_api_NewCreatedTransactionOutput(coin__TransactionOutput.getCPtr(p0), tmpp1); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp1); + } } public static uint SKY_api_NewCreatedTransactionInput(wallet__UxBalance p0) { @@ -1013,68 +1082,121 @@ public static uint SKY_cipher_RandByte(long p0, SWIGTYPE_p_GoSlice_ p1) { return ret; } - public static uint SKY_cipher_NewPubKey(GoSlice p0, SWIGTYPE_p_a_33__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_NewPubKey(GoSlice.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cipher_PubKeyFromHex(_GoString_ p0, SWIGTYPE_p_a_33__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_PubKeyFromHex(_GoString_.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cipher_PubKeyFromSecKey(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_a_33__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_PubKeyFromSecKey(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); - return ret; - } - - public static uint SKY_cipher_PubKeyFromSig(SWIGTYPE_p_a_65__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_a_33__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_cipher_PubKeyFromSig(SWIGTYPE_p_a_65__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p2)); - return ret; - } - - public static uint SKY_cipher_PubKey_Verify(SWIGTYPE_p_a_33__GoUint8_ p0) { - uint ret = skycoinPINVOKE.SKY_cipher_PubKey_Verify(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0)); - return ret; - } - - public static uint SKY_cipher_PubKey_Hex(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_PubKey_Hex(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; - } - - public static uint SKY_cipher_PubKey_ToAddressHash(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_20__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_PubKey_ToAddressHash(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_20__GoUint8_.getCPtr(p1)); - return ret; - } - - public static uint SKY_cipher_NewSecKey(GoSlice p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_NewSecKey(GoSlice.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cipher_SecKeyFromHex(_GoString_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_SecKeyFromHex(_GoString_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cipher_SecKey_Verify(SWIGTYPE_p_a_32__GoUint8_ p0) { - uint ret = skycoinPINVOKE.SKY_cipher_SecKey_Verify(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0)); - return ret; - } - - public static uint SKY_cipher_SecKey_Hex(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_SecKey_Hex(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; - } - - public static uint SKY_cipher_ECDH(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_cipher_ECDH(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - return ret; + public static uint SKY_cipher_NewPubKey(GoSlice p0, cipher_PubKey p1) { +cipher_PubKey tmpp1 = new_cipher_PubKeyp(); + { + uint ret = skycoinPINVOKE.SKY_cipher_NewPubKey(GoSlice.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public static uint SKY_cipher_PubKeyFromHex(_GoString_ p0, cipher_PubKey p1) { +cipher_PubKey tmpp1 = new_cipher_PubKeyp(); + { + uint ret = skycoinPINVOKE.SKY_cipher_PubKeyFromHex(_GoString_.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public static uint SKY_cipher_PubKeyFromSecKey(cipher_SecKey p0, cipher_PubKey p1) { +cipher_SecKey tmpp0 = new_cipher_SecKeyp(); +cipher_PubKey tmpp1 = new_cipher_PubKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_cipher_PubKeyFromSecKey(tmpp0, tmpp1); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp0); + } + } + + public static uint SKY_cipher_PubKeyFromSig(SWIGTYPE_p_a_65__GoUint8_ p0, cipher_SecKey p1, cipher_PubKey p2) { +cipher_SecKey tmpp1 = new_cipher_SecKeyp(); +cipher_PubKey tmpp2 = new_cipher_PubKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_cipher_PubKeyFromSig(SWIGTYPE_p_a_65__GoUint8_.getCPtr(p0), tmpp1, tmpp2); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp1); + } + } + + public static uint SKY_cipher_PubKey_Verify(cipher_PubKey p0) { +cipher_PubKey tmpp0 = new_cipher_PubKeyp(); + { + uint ret = skycoinPINVOKE.SKY_cipher_PubKey_Verify(tmpp0); + return ret; + } + } + + public static uint SKY_cipher_PubKey_Hex(cipher_PubKey p0, SWIGTYPE_p_GoString_ p1) { +cipher_PubKey tmpp0 = new_cipher_PubKeyp(); + { + uint ret = skycoinPINVOKE.SKY_cipher_PubKey_Hex(tmpp0, SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } + } + + public static uint SKY_cipher_PubKey_ToAddressHash(cipher_PubKey p0, SWIGTYPE_p_a_20__GoUint8_ p1) { +cipher_PubKey tmpp0 = new_cipher_PubKeyp(); + { + uint ret = skycoinPINVOKE.SKY_cipher_PubKey_ToAddressHash(tmpp0, SWIGTYPE_p_a_20__GoUint8_.getCPtr(p1)); + return ret; + } + } + + public static uint SKY_cipher_NewSecKey(GoSlice p0, cipher_SecKey p1) { +cipher_SecKey tmpp1 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_cipher_NewSecKey(GoSlice.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp1); + } + } + + public static uint SKY_cipher_SecKeyFromHex(_GoString_ p0, cipher_SecKey p1) { +cipher_SecKey tmpp1 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_cipher_SecKeyFromHex(_GoString_.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp1); + } + } + + public static uint SKY_cipher_SecKey_Verify(cipher_SecKey p0) { +cipher_SecKey tmpp0 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_cipher_SecKey_Verify(tmpp0); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp0); + } + } + + public static uint SKY_cipher_SecKey_Hex(cipher_SecKey p0, SWIGTYPE_p_GoString_ p1) { +cipher_SecKey tmpp0 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_cipher_SecKey_Hex(tmpp0, SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp0); + } + } + + public static uint SKY_cipher_ECDH(cipher_PubKey p0, cipher_SecKey p1, SWIGTYPE_p_GoSlice_ p2) { +cipher_PubKey tmpp0 = new_cipher_PubKeyp(); +cipher_SecKey tmpp1 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_cipher_ECDH(tmpp0, tmpp1, SWIGTYPE_p_GoSlice_.getCPtr(p2)); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp1); + } } public static uint SKY_cipher_NewSig(GoSlice p0, SWIGTYPE_p_a_65__GoUint8_ p1) { @@ -1094,36 +1216,71 @@ public static uint SKY_cipher_Sig_Hex(SWIGTYPE_p_a_65__GoUint8_ p0, SWIGTYPE_p_G return ret; } - public static uint SKY_cipher_SignHash(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_a_65__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_cipher_SignHash(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); - return ret; - } - - public static uint SKY_cipher_ChkSig(cipher__Address p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_a_65__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_cipher_ChkSig(cipher__Address.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); - return ret; - } - - public static uint SKY_cipher_VerifySignedHash(SWIGTYPE_p_a_65__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_VerifySignedHash(SWIGTYPE_p_a_65__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - return ret; - } - - public static uint SKY_cipher_VerifySignature(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_65__GoUint8_ p1, SWIGTYPE_p_a_32__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_cipher_VerifySignature(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); - return ret; - } - - public static uint SKY_cipher_GenerateDeterministicKeyPair(GoSlice p0, SWIGTYPE_p_a_33__GoUint8_ p1, SWIGTYPE_p_a_32__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_cipher_GenerateDeterministicKeyPair(GoSlice.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cipher_DeterministicKeyPairIterator(GoSlice p0, SWIGTYPE_p_GoSlice_ p1, SWIGTYPE_p_a_33__GoUint8_ p2, SWIGTYPE_p_a_32__GoUint8_ p3) { - uint ret = skycoinPINVOKE.SKY_cipher_DeterministicKeyPairIterator(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p2), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_cipher_SignHash(cipher_SecKey p0, cipher_SecKey p1, SWIGTYPE_p_a_65__GoUint8_ p2) { +cipher_SecKey tmpp0 = new_cipher_SecKeyp(); +cipher_SecKey tmpp1 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_cipher_SignHash(tmpp0, tmpp1, SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp0); +delete_cipher_SecKeyp(tmpp1); + } + } + + public static uint SKY_cipher_ChkSig(cipher__Address p0, cipher_SecKey p1, SWIGTYPE_p_a_65__GoUint8_ p2) { +cipher_SecKey tmpp1 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_cipher_ChkSig(cipher__Address.getCPtr(p0), tmpp1, SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp1); + } + } + + public static uint SKY_cipher_VerifySignedHash(SWIGTYPE_p_a_65__GoUint8_ p0, cipher_SecKey p1) { +cipher_SecKey tmpp1 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_cipher_VerifySignedHash(SWIGTYPE_p_a_65__GoUint8_.getCPtr(p0), tmpp1); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp1); + } + } + + public static uint SKY_cipher_VerifySignature(cipher_PubKey p0, SWIGTYPE_p_a_65__GoUint8_ p1, cipher_SecKey p2) { +cipher_PubKey tmpp0 = new_cipher_PubKeyp(); +cipher_SecKey tmpp2 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_cipher_VerifySignature(tmpp0, SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1), tmpp2); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp2); + } + } + + public static uint SKY_cipher_GenerateDeterministicKeyPair(GoSlice p0, cipher_PubKey p1, cipher_SecKey p2) { +cipher_PubKey tmpp1 = new_cipher_PubKeyp(); +cipher_SecKey tmpp2 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_cipher_GenerateDeterministicKeyPair(GoSlice.getCPtr(p0), tmpp1, tmpp2); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp2); + } + } + + public static uint SKY_cipher_DeterministicKeyPairIterator(GoSlice p0, SWIGTYPE_p_GoSlice_ p1, cipher_PubKey p2, cipher_SecKey p3) { +cipher_PubKey tmpp2 = new_cipher_PubKeyp(); +cipher_SecKey tmpp3 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_cipher_DeterministicKeyPairIterator(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1), tmpp2, tmpp3); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp3); + } } public static uint SKY_cipher_GenerateDeterministicKeyPairs(GoSlice p0, long p1, SWIGTYPE_p_GoSlice_ p2) { @@ -1138,19 +1295,37 @@ public static uint SKY_cipher_GenerateDeterministicKeyPairsSeed(GoSlice p0, long return ret; } - public static uint SKY_cipher_TestSecKey(SWIGTYPE_p_a_32__GoUint8_ p0) { - uint ret = skycoinPINVOKE.SKY_cipher_TestSecKey(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0)); - return ret; + public static uint SKY_cipher_TestSecKey(cipher_SecKey p0) { +cipher_SecKey tmpp0 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_cipher_TestSecKey(tmpp0); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp0); + } } - public static uint SKY_cipher_TestSecKeyHash(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_TestSecKeyHash(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - return ret; + public static uint SKY_cipher_TestSecKeyHash(cipher_SecKey p0, cipher_SecKey p1) { +cipher_SecKey tmpp0 = new_cipher_SecKeyp(); +cipher_SecKey tmpp1 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_cipher_TestSecKeyHash(tmpp0, tmpp1); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp0); +delete_cipher_SecKeyp(tmpp1); + } } - public static uint SKY_cipher_GenerateKeyPair(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_GenerateKeyPair(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - return ret; + public static uint SKY_cipher_GenerateKeyPair(cipher_PubKey p0, cipher_SecKey p1) { +cipher_PubKey tmpp0 = new_cipher_PubKeyp(); +cipher_SecKey tmpp1 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_cipher_GenerateKeyPair(tmpp0, tmpp1); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp1); + } } public static uint SKY_secp256k1go_Signature_Create() { @@ -1333,14 +1508,26 @@ public static uint SKY_wallet_CreateAddresses(_GoString_ p0, _GoString_ p1, long return ret; } - public static uint SKY_wallet_GetSkycoinWalletEntry(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_ReadableEntry__Handle p2) { - uint ret = skycoinPINVOKE.SKY_wallet_GetSkycoinWalletEntry(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p2)); - return ret; + public static uint SKY_wallet_GetSkycoinWalletEntry(cipher_PubKey p0, cipher_SecKey p1, SWIGTYPE_p_ReadableEntry__Handle p2) { +cipher_PubKey tmpp0 = new_cipher_PubKeyp(); +cipher_SecKey tmpp1 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_wallet_GetSkycoinWalletEntry(tmpp0, tmpp1, SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p2)); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp1); + } } - public static uint SKY_wallet_GetBitcoinWalletEntry(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_ReadableEntry__Handle p2) { - uint ret = skycoinPINVOKE.SKY_wallet_GetBitcoinWalletEntry(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p2)); - return ret; + public static uint SKY_wallet_GetBitcoinWalletEntry(cipher_PubKey p0, cipher_SecKey p1, SWIGTYPE_p_ReadableEntry__Handle p2) { +cipher_PubKey tmpp0 = new_cipher_PubKeyp(); +cipher_SecKey tmpp1 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_wallet_GetBitcoinWalletEntry(tmpp0, tmpp1, SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p2)); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp1); + } } public static uint SKY_secp256k1go_XYZ_Print(secp256k1go__XYZ p0, _GoString_ p1) { @@ -1486,14 +1673,22 @@ public static uint SKY_cipher_AddressFromBytes(GoSlice p0, cipher__Address p1) { return ret; } - public static uint SKY_cipher_AddressFromPubKey(SWIGTYPE_p_a_33__GoUint8_ p0, cipher__Address p1) { - uint ret = skycoinPINVOKE.SKY_cipher_AddressFromPubKey(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), cipher__Address.getCPtr(p1)); - return ret; + public static uint SKY_cipher_AddressFromPubKey(cipher_PubKey p0, cipher__Address p1) { +cipher_PubKey tmpp0 = new_cipher_PubKeyp(); + { + uint ret = skycoinPINVOKE.SKY_cipher_AddressFromPubKey(tmpp0, cipher__Address.getCPtr(p1)); + return ret; + } } - public static uint SKY_cipher_AddressFromSecKey(SWIGTYPE_p_a_32__GoUint8_ p0, cipher__Address p1) { - uint ret = skycoinPINVOKE.SKY_cipher_AddressFromSecKey(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), cipher__Address.getCPtr(p1)); - return ret; + public static uint SKY_cipher_AddressFromSecKey(cipher_SecKey p0, cipher__Address p1) { +cipher_SecKey tmpp0 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_cipher_AddressFromSecKey(tmpp0, cipher__Address.getCPtr(p1)); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp0); + } } public static uint SKY_cipher_BitcoinDecodeBase58Address(_GoString_ p0, cipher__Address p1) { @@ -1517,9 +1712,12 @@ public static uint SKY_cipher_Address_BitcoinBytes(cipher__Address p0, SWIGTYPE_ return ret; } - public static uint SKY_cipher_Address_Verify(cipher__Address p0, SWIGTYPE_p_a_33__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_Address_Verify(cipher__Address.getCPtr(p0), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p1)); - return ret; + public static uint SKY_cipher_Address_Verify(cipher__Address p0, cipher_PubKey p1) { +cipher_PubKey tmpp1 = new_cipher_PubKeyp(); + { + uint ret = skycoinPINVOKE.SKY_cipher_Address_Verify(cipher__Address.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_cipher_Address_String(cipher__Address p0, SWIGTYPE_p_GoString_ p1) { @@ -1542,14 +1740,22 @@ public static uint SKY_cipher_Address_BitcoinChecksum(cipher__Address p0, SWIGTY return ret; } - public static uint SKY_cipher_BitcoinAddressFromPubkey(SWIGTYPE_p_a_33__GoUint8_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_BitcoinAddressFromPubkey(SWIGTYPE_p_a_33__GoUint8_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; + public static uint SKY_cipher_BitcoinAddressFromPubkey(cipher_PubKey p0, SWIGTYPE_p_GoString_ p1) { +cipher_PubKey tmpp0 = new_cipher_PubKeyp(); + { + uint ret = skycoinPINVOKE.SKY_cipher_BitcoinAddressFromPubkey(tmpp0, SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } } - public static uint SKY_cipher_BitcoinWalletImportFormatFromSeckey(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_BitcoinWalletImportFormatFromSeckey(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; + public static uint SKY_cipher_BitcoinWalletImportFormatFromSeckey(cipher_SecKey p0, SWIGTYPE_p_GoString_ p1) { +cipher_SecKey tmpp0 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_cipher_BitcoinWalletImportFormatFromSeckey(tmpp0, SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp0); + } } public static uint SKY_cipher_BitcoinAddressFromBytes(GoSlice p0, cipher__Address p1) { @@ -1558,10 +1764,15 @@ public static uint SKY_cipher_BitcoinAddressFromBytes(GoSlice p0, cipher__Addres return ret; } - public static uint SKY_cipher_SecKeyFromWalletImportFormat(_GoString_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_SecKeyFromWalletImportFormat(_GoString_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_cipher_SecKeyFromWalletImportFormat(_GoString_ p0, cipher_SecKey p1) { +cipher_SecKey tmpp1 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_cipher_SecKeyFromWalletImportFormat(_GoString_.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp1); + } } public static uint SKY_JsonEncode_Handle(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoString_ p1) { @@ -1654,9 +1865,12 @@ public static uint SKY_api_Handle_Client_GetWalletResponseEntriesCount(SWIGTYPE_ return ret; } - public static uint SKY_api_Handle_WalletGetEntry(SWIGTYPE_p_GoInt64_ p0, uint p1, cipher__Address p2, SWIGTYPE_p_a_33__GoUint8_ p3) { - uint ret = skycoinPINVOKE.SKY_api_Handle_WalletGetEntry(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1, cipher__Address.getCPtr(p2), SWIGTYPE_p_a_33__GoUint8_.getCPtr(p3)); - return ret; + public static uint SKY_api_Handle_WalletGetEntry(SWIGTYPE_p_GoInt64_ p0, uint p1, cipher__Address p2, cipher_PubKey p3) { +cipher_PubKey tmpp3 = new_cipher_PubKeyp(); + { + uint ret = skycoinPINVOKE.SKY_api_Handle_WalletGetEntry(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1, cipher__Address.getCPtr(p2), tmpp3); + return ret; + } } public static uint SKY_api_Handle_WalletResponseGetEntry(SWIGTYPE_p_WalletResponse__Handle p0, uint p1, SWIGTYPE_p_GoString_ p2, SWIGTYPE_p_GoString_ p3) { @@ -1748,19 +1962,34 @@ public static uint SKY_secp256k1go_Number_IsEqual(SWIGTYPE_p_GoInt64_ p0, SWIGTY return ret; } - public static uint SKY_coin_UxOut_Hash(coin__UxOut p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_UxOut_Hash(coin__UxOut.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - return ret; + public static uint SKY_coin_UxOut_Hash(coin__UxOut p0, cipher_SecKey p1) { +cipher_SecKey tmpp1 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_coin_UxOut_Hash(coin__UxOut.getCPtr(p0), tmpp1); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp1); + } } - public static uint SKY_coin_UxOut_SnapshotHash(coin__UxOut p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_UxOut_SnapshotHash(coin__UxOut.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - return ret; + public static uint SKY_coin_UxOut_SnapshotHash(coin__UxOut p0, cipher_SecKey p1) { +cipher_SecKey tmpp1 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_coin_UxOut_SnapshotHash(coin__UxOut.getCPtr(p0), tmpp1); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp1); + } } - public static uint SKY_coin_UxBody_Hash(coin__UxBody p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_UxBody_Hash(coin__UxBody.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - return ret; + public static uint SKY_coin_UxBody_Hash(coin__UxBody p0, cipher_SecKey p1) { +cipher_SecKey tmpp1 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_coin_UxBody_Hash(coin__UxBody.getCPtr(p0), tmpp1); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp1); + } } public static uint SKY_coin_UxOut_CoinHours(coin__UxOut p0, ulong p1, SWIGTYPE_p_unsigned_long_long p2) { @@ -2260,53 +2489,106 @@ public static uint SKY_cipher_HashRipemd160(GoSlice p0, SWIGTYPE_p_a_20__GoUint8 return ret; } - public static uint SKY_cipher_SHA256_Set(SWIGTYPE_p_a_32__GoUint8_ p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Set(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), GoSlice.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cipher_SHA256_Hex(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Hex(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; - } - - public static uint SKY_cipher_SHA256_Xor(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_a_32__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Xor(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); - return ret; - } - - public static uint SKY_cipher_SumSHA256(GoSlice p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_SumSHA256(GoSlice.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cipher_SHA256FromHex(_GoString_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_SHA256FromHex(_GoString_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cipher_DoubleSHA256(GoSlice p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_DoubleSHA256(GoSlice.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cipher_AddSHA256(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_a_32__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_cipher_AddSHA256(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); - return ret; - } - - public static uint SKY_cipher_Merkle(GoSlice p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_Merkle(GoSlice.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - return ret; - } - - public static uint SKY_cipher_SHA256_Null(SWIGTYPE_p_a_32__GoUint8_ p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Null(SWIGTYPE_p_a_32__GoUint8_.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); - return ret; + public static uint SKY_cipher_SHA256_Set(cipher_SecKey p0, GoSlice p1) { +cipher_SecKey tmpp0 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Set(tmpp0, GoSlice.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp0); + } + } + + public static uint SKY_cipher_SHA256_Hex(cipher_SecKey p0, SWIGTYPE_p_GoString_ p1) { +cipher_SecKey tmpp0 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Hex(tmpp0, SWIGTYPE_p_GoString_.getCPtr(p1)); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp0); + } + } + + public static uint SKY_cipher_SHA256_Xor(cipher_SecKey p0, cipher_SecKey p1, cipher_SecKey p2) { +cipher_SecKey tmpp0 = new_cipher_SecKeyp(); +cipher_SecKey tmpp1 = new_cipher_SecKeyp(); +cipher_SecKey tmpp2 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Xor(tmpp0, tmpp1, tmpp2); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp0); +delete_cipher_SecKeyp(tmpp1); +delete_cipher_SecKeyp(tmpp2); + } + } + + public static uint SKY_cipher_SumSHA256(GoSlice p0, cipher_SecKey p1) { +cipher_SecKey tmpp1 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_cipher_SumSHA256(GoSlice.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp1); + } + } + + public static uint SKY_cipher_SHA256FromHex(_GoString_ p0, cipher_SecKey p1) { +cipher_SecKey tmpp1 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_cipher_SHA256FromHex(_GoString_.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp1); + } + } + + public static uint SKY_cipher_DoubleSHA256(GoSlice p0, cipher_SecKey p1) { +cipher_SecKey tmpp1 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_cipher_DoubleSHA256(GoSlice.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp1); + } + } + + public static uint SKY_cipher_AddSHA256(cipher_SecKey p0, cipher_SecKey p1, cipher_SecKey p2) { +cipher_SecKey tmpp0 = new_cipher_SecKeyp(); +cipher_SecKey tmpp1 = new_cipher_SecKeyp(); +cipher_SecKey tmpp2 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_cipher_AddSHA256(tmpp0, tmpp1, tmpp2); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp0); +delete_cipher_SecKeyp(tmpp1); +delete_cipher_SecKeyp(tmpp2); + } + } + + public static uint SKY_cipher_Merkle(GoSlice p0, cipher_SecKey p1) { +cipher_SecKey tmpp1 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_cipher_Merkle(GoSlice.getCPtr(p0), tmpp1); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp1); + } + } + + public static uint SKY_cipher_SHA256_Null(cipher_SecKey p0, SWIGTYPE_p_unsigned_char p1) { +cipher_SecKey tmpp0 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Null(tmpp0, SWIGTYPE_p_unsigned_char.getCPtr(p1)); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp0); + } } public static uint SKY_coin_Create_Transaction() { @@ -2334,14 +2616,24 @@ public static uint SKY_coin_Transaction_GetInputsCount(SWIGTYPE_p_GoInt64_ p0, S return ret; } - public static uint SKY_coin_Transaction_GetInputAt(SWIGTYPE_p_GoInt64_ p0, long p1, SWIGTYPE_p_a_32__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetInputAt(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1, SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); - return ret; + public static uint SKY_coin_Transaction_GetInputAt(SWIGTYPE_p_GoInt64_ p0, long p1, cipher_SecKey p2) { +cipher_SecKey tmpp2 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetInputAt(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1, tmpp2); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp2); + } } - public static uint SKY_coin_Transaction_SetInputAt(SWIGTYPE_p_GoInt64_ p0, long p1, SWIGTYPE_p_a_32__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetInputAt(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1, SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); - return ret; + public static uint SKY_coin_Transaction_SetInputAt(SWIGTYPE_p_GoInt64_ p0, long p1, cipher_SecKey p2) { +cipher_SecKey tmpp2 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetInputAt(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1, tmpp2); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp2); + } } public static uint SKY_coin_Transaction_GetOutputsCount(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_long_long p1) { @@ -2399,14 +2691,26 @@ public static uint SKY_coin_Transaction_VerifyInput(SWIGTYPE_p_GoInt64_ p0, SWIG return ret; } - public static uint SKY_coin_Transaction_PushInput(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_unsigned_short p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushInput(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_unsigned_short.getCPtr(p2)); - return ret; + public static uint SKY_coin_Transaction_PushInput(SWIGTYPE_p_GoInt64_ p0, cipher_SecKey p1, SWIGTYPE_p_unsigned_short p2) { +cipher_SecKey tmpp1 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushInput(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1, SWIGTYPE_p_unsigned_short.getCPtr(p2)); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp1); + } } - public static uint SKY_coin_TransactionOutput_UxID(coin__TransactionOutput p0, SWIGTYPE_p_a_32__GoUint8_ p1, SWIGTYPE_p_a_32__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_TransactionOutput_UxID(coin__TransactionOutput.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); - return ret; + public static uint SKY_coin_TransactionOutput_UxID(coin__TransactionOutput p0, cipher_SecKey p1, cipher_SecKey p2) { +cipher_SecKey tmpp1 = new_cipher_SecKeyp(); +cipher_SecKey tmpp2 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_coin_TransactionOutput_UxID(coin__TransactionOutput.getCPtr(p0), tmpp1, tmpp2); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp1); +delete_cipher_SecKeyp(tmpp2); + } } public static uint SKY_coin_Transaction_PushOutput(SWIGTYPE_p_GoInt64_ p0, cipher__Address p1, ulong p2, ulong p3) { @@ -2425,14 +2729,24 @@ public static uint SKY_coin_Transaction_Size(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_ return ret; } - public static uint SKY_coin_Transaction_Hash(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_Hash(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - return ret; + public static uint SKY_coin_Transaction_Hash(SWIGTYPE_p_GoInt64_ p0, cipher_SecKey p1) { +cipher_SecKey tmpp1 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_Hash(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp1); + } } - public static uint SKY_coin_Transaction_SizeHash(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_long_long p1, SWIGTYPE_p_a_32__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_SizeHash(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p2)); - return ret; + public static uint SKY_coin_Transaction_SizeHash(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_long_long p1, cipher_SecKey p2) { +cipher_SecKey tmpp2 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_SizeHash(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1), tmpp2); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp2); + } } public static uint SKY_coin_Transaction_TxID(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoSlice_ p1) { @@ -2450,9 +2764,14 @@ public static uint SKY_coin_Transaction_UpdateHeader(SWIGTYPE_p_GoInt64_ p0) { return ret; } - public static uint SKY_coin_Transaction_HashInner(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_a_32__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_HashInner(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_a_32__GoUint8_.getCPtr(p1)); - return ret; + public static uint SKY_coin_Transaction_HashInner(SWIGTYPE_p_GoInt64_ p0, cipher_SecKey p1) { +cipher_SecKey tmpp1 = new_cipher_SecKeyp(); + try { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_HashInner(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + return ret; + } finally { +delete_cipher_SecKeyp(tmpp1); + } } public static uint SKY_coin_Transaction_Serialize(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoSlice_ p1) { diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index f00332a0..9623d0d8 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -218,8 +218,20 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeyp_value")] public static extern global::System.IntPtr cipher_PubKeyp_value(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_f")] - public static extern global::System.IntPtr f(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_SecKeyp")] + public static extern global::System.IntPtr new_cipher_SecKeyp(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_cipher_SecKeyp")] + public static extern global::System.IntPtr copy_cipher_SecKeyp(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_SecKeyp")] + public static extern void delete_cipher_SecKeyp(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeyp_assign")] + public static extern void cipher_SecKeyp_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeyp_value")] + public static extern global::System.IntPtr cipher_SecKeyp_value(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKey_isEqual")] public static extern int cipher_PubKey_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -558,19 +570,19 @@ static skycoinPINVOKE() { public static extern void delete_GoSlice(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewBlock")] - public static extern uint SKY_coin_NewBlock(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); + public static extern uint SKY_coin_NewBlock(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, cipher_SecKey jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SignedBlock_VerifySignature")] - public static extern uint SKY_coin_SignedBlock_VerifySignature(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_coin_SignedBlock_VerifySignature(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_PubKey jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewGenesisBlock")] public static extern uint SKY_coin_NewGenesisBlock(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_HashHeader")] - public static extern uint SKY_coin_Block_HashHeader(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_coin_Block_HashHeader(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_PreHashHeader")] - public static extern uint SKY_coin_Block_PreHashHeader(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_coin_Block_PreHashHeader(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_Time")] public static extern uint SKY_coin_Block_Time(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -579,7 +591,7 @@ static skycoinPINVOKE() { public static extern uint SKY_coin_Block_Seq(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_HashBody")] - public static extern uint SKY_coin_Block_HashBody(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_coin_Block_HashBody(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_Size")] public static extern uint SKY_coin_Block_Size(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -588,13 +600,13 @@ static skycoinPINVOKE() { public static extern uint SKY_coin_Block_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_GetTransaction")] - public static extern uint SKY_coin_Block_GetTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg4); + public static extern uint SKY_coin_Block_GetTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2, global::System.Runtime.InteropServices.HandleRef jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewBlockHeader")] - public static extern uint SKY_coin_NewBlockHeader(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, ulong jarg3, ulong jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); + public static extern uint SKY_coin_NewBlockHeader(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2, ulong jarg3, ulong jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockHeader_Hash")] - public static extern uint SKY_coin_BlockHeader_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_coin_BlockHeader_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockHeader_Bytes")] public static extern uint SKY_coin_BlockHeader_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -603,7 +615,7 @@ static skycoinPINVOKE() { public static extern uint SKY_coin_BlockHeader_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockBody_Hash")] - public static extern uint SKY_coin_BlockBody_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_coin_BlockBody_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockBody_Size")] public static extern uint SKY_coin_BlockBody_Size(global::System.Runtime.InteropServices.HandleRef jarg2); @@ -831,7 +843,7 @@ static skycoinPINVOKE() { public static extern uint SKY_api_CreatedTransaction_ToTransaction(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewCreatedTransactionOutput")] - public static extern uint SKY_api_NewCreatedTransactionOutput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_api_NewCreatedTransactionOutput(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewCreatedTransactionInput")] public static extern uint SKY_api_NewCreatedTransactionInput(global::System.Runtime.InteropServices.HandleRef jarg1); @@ -1077,40 +1089,40 @@ static skycoinPINVOKE() { public static extern uint SKY_cipher_RandByte(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_NewPubKey")] - public static extern uint SKY_cipher_NewPubKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_NewPubKey(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_PubKey jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromHex")] - public static extern uint SKY_cipher_PubKeyFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_PubKeyFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_PubKey jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromSecKey")] - public static extern uint SKY_cipher_PubKeyFromSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_PubKeyFromSecKey(cipher_SecKey jarg1, cipher_PubKey jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromSig")] - public static extern uint SKY_cipher_PubKeyFromSig(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_cipher_PubKeyFromSig(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2, cipher_PubKey jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKey_Verify")] - public static extern uint SKY_cipher_PubKey_Verify(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint SKY_cipher_PubKey_Verify(cipher_PubKey jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKey_Hex")] - public static extern uint SKY_cipher_PubKey_Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_PubKey_Hex(cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKey_ToAddressHash")] - public static extern uint SKY_cipher_PubKey_ToAddressHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_PubKey_ToAddressHash(cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_NewSecKey")] - public static extern uint SKY_cipher_NewSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_NewSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKeyFromHex")] - public static extern uint SKY_cipher_SecKeyFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_SecKeyFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKey_Verify")] - public static extern uint SKY_cipher_SecKey_Verify(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint SKY_cipher_SecKey_Verify(cipher_SecKey jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKey_Hex")] - public static extern uint SKY_cipher_SecKey_Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_SecKey_Hex(cipher_SecKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_ECDH")] - public static extern uint SKY_cipher_ECDH(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_cipher_ECDH(cipher_PubKey jarg1, cipher_SecKey jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_NewSig")] public static extern uint SKY_cipher_NewSig(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1122,22 +1134,22 @@ static skycoinPINVOKE() { public static extern uint SKY_cipher_Sig_Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SignHash")] - public static extern uint SKY_cipher_SignHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_cipher_SignHash(cipher_SecKey jarg1, cipher_SecKey jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_ChkSig")] - public static extern uint SKY_cipher_ChkSig(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_cipher_ChkSig(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_VerifySignedHash")] - public static extern uint SKY_cipher_VerifySignedHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_VerifySignedHash(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_VerifySignature")] - public static extern uint SKY_cipher_VerifySignature(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_cipher_VerifySignature(cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, cipher_SecKey jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPair")] - public static extern uint SKY_cipher_GenerateDeterministicKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_cipher_GenerateDeterministicKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_PubKey jarg2, cipher_SecKey jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_DeterministicKeyPairIterator")] - public static extern uint SKY_cipher_DeterministicKeyPairIterator(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + public static extern uint SKY_cipher_DeterministicKeyPairIterator(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, cipher_PubKey jarg3, cipher_SecKey jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairs")] public static extern uint SKY_cipher_GenerateDeterministicKeyPairs(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -1146,13 +1158,13 @@ static skycoinPINVOKE() { public static extern uint SKY_cipher_GenerateDeterministicKeyPairsSeed(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_TestSecKey")] - public static extern uint SKY_cipher_TestSecKey(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint SKY_cipher_TestSecKey(cipher_SecKey jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_TestSecKeyHash")] - public static extern uint SKY_cipher_TestSecKeyHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_TestSecKeyHash(cipher_SecKey jarg1, cipher_SecKey jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateKeyPair")] - public static extern uint SKY_cipher_GenerateKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_GenerateKeyPair(cipher_PubKey jarg1, cipher_SecKey jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Create")] public static extern uint SKY_secp256k1go_Signature_Create(); @@ -1257,10 +1269,10 @@ static skycoinPINVOKE() { public static extern uint SKY_wallet_CreateAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, byte jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_GetSkycoinWalletEntry")] - public static extern uint SKY_wallet_GetSkycoinWalletEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_wallet_GetSkycoinWalletEntry(cipher_PubKey jarg1, cipher_SecKey jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_GetBitcoinWalletEntry")] - public static extern uint SKY_wallet_GetBitcoinWalletEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_wallet_GetBitcoinWalletEntry(cipher_PubKey jarg1, cipher_SecKey jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Print")] public static extern uint SKY_secp256k1go_XYZ_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1344,10 +1356,10 @@ static skycoinPINVOKE() { public static extern uint SKY_cipher_AddressFromBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddressFromPubKey")] - public static extern uint SKY_cipher_AddressFromPubKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_AddressFromPubKey(cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddressFromSecKey")] - public static extern uint SKY_cipher_AddressFromSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_AddressFromSecKey(cipher_SecKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinDecodeBase58Address")] public static extern uint SKY_cipher_BitcoinDecodeBase58Address(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1362,7 +1374,7 @@ static skycoinPINVOKE() { public static extern uint SKY_cipher_Address_BitcoinBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_Verify")] - public static extern uint SKY_cipher_Address_Verify(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_Address_Verify(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_PubKey jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_String")] public static extern uint SKY_cipher_Address_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1377,16 +1389,16 @@ static skycoinPINVOKE() { public static extern uint SKY_cipher_Address_BitcoinChecksum(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinAddressFromPubkey")] - public static extern uint SKY_cipher_BitcoinAddressFromPubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_BitcoinAddressFromPubkey(cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinWalletImportFormatFromSeckey")] - public static extern uint SKY_cipher_BitcoinWalletImportFormatFromSeckey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_BitcoinWalletImportFormatFromSeckey(cipher_SecKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinAddressFromBytes")] public static extern uint SKY_cipher_BitcoinAddressFromBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKeyFromWalletImportFormat")] - public static extern uint SKY_cipher_SecKeyFromWalletImportFormat(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_SecKeyFromWalletImportFormat(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_JsonEncode_Handle")] public static extern uint SKY_JsonEncode_Handle(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1443,7 +1455,7 @@ static skycoinPINVOKE() { public static extern uint SKY_api_Handle_Client_GetWalletResponseEntriesCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletGetEntry")] - public static extern uint SKY_api_Handle_WalletGetEntry(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + public static extern uint SKY_api_Handle_WalletGetEntry(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, cipher_PubKey jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletResponseGetEntry")] public static extern uint SKY_api_Handle_WalletResponseGetEntry(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); @@ -1497,13 +1509,13 @@ static skycoinPINVOKE() { public static extern uint SKY_secp256k1go_Number_IsEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxOut_Hash")] - public static extern uint SKY_coin_UxOut_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_coin_UxOut_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxOut_SnapshotHash")] - public static extern uint SKY_coin_UxOut_SnapshotHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_coin_UxOut_SnapshotHash(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxBody_Hash")] - public static extern uint SKY_coin_UxBody_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_coin_UxBody_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxOut_CoinHours")] public static extern uint SKY_coin_UxOut_CoinHours(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -1782,31 +1794,31 @@ static skycoinPINVOKE() { public static extern uint SKY_cipher_HashRipemd160(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Set")] - public static extern uint SKY_cipher_SHA256_Set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_SHA256_Set(cipher_SecKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Hex")] - public static extern uint SKY_cipher_SHA256_Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_SHA256_Hex(cipher_SecKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Xor")] - public static extern uint SKY_cipher_SHA256_Xor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_cipher_SHA256_Xor(cipher_SecKey jarg1, cipher_SecKey jarg2, cipher_SecKey jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SumSHA256")] - public static extern uint SKY_cipher_SumSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_SumSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256FromHex")] - public static extern uint SKY_cipher_SHA256FromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_SHA256FromHex(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_DoubleSHA256")] - public static extern uint SKY_cipher_DoubleSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_DoubleSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddSHA256")] - public static extern uint SKY_cipher_AddSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_cipher_AddSHA256(cipher_SecKey jarg1, cipher_SecKey jarg2, cipher_SecKey jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Merkle")] - public static extern uint SKY_cipher_Merkle(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_Merkle(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Null")] - public static extern uint SKY_cipher_SHA256_Null(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_SHA256_Null(cipher_SecKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Create_Transaction")] public static extern uint SKY_coin_Create_Transaction(); @@ -1824,10 +1836,10 @@ static skycoinPINVOKE() { public static extern uint SKY_coin_Transaction_GetInputsCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetInputAt")] - public static extern uint SKY_coin_Transaction_GetInputAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_coin_Transaction_GetInputAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, cipher_SecKey jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SetInputAt")] - public static extern uint SKY_coin_Transaction_SetInputAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_coin_Transaction_SetInputAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, cipher_SecKey jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetOutputsCount")] public static extern uint SKY_coin_Transaction_GetOutputsCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1863,10 +1875,10 @@ static skycoinPINVOKE() { public static extern uint SKY_coin_Transaction_VerifyInput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_PushInput")] - public static extern uint SKY_coin_Transaction_PushInput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_coin_Transaction_PushInput(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_TransactionOutput_UxID")] - public static extern uint SKY_coin_TransactionOutput_UxID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_coin_TransactionOutput_UxID(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2, cipher_SecKey jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_PushOutput")] public static extern uint SKY_coin_Transaction_PushOutput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, ulong jarg3, ulong jarg4); @@ -1878,10 +1890,10 @@ static skycoinPINVOKE() { public static extern uint SKY_coin_Transaction_Size(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Hash")] - public static extern uint SKY_coin_Transaction_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_coin_Transaction_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SizeHash")] - public static extern uint SKY_coin_Transaction_SizeHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_coin_Transaction_SizeHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, cipher_SecKey jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_TxID")] public static extern uint SKY_coin_Transaction_TxID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1893,7 +1905,7 @@ static skycoinPINVOKE() { public static extern uint SKY_coin_Transaction_UpdateHeader(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_HashInner")] - public static extern uint SKY_coin_Transaction_HashInner(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_coin_Transaction_HashInner(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Serialize")] public static extern uint SKY_coin_Transaction_Serialize(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index 0ae84276..bcde0fca 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -359,6 +359,29 @@ static cipher_PubKey cipher_PubKeyp_value(cipher_PubKey *obj) { } +static cipher_SecKey *new_cipher_SecKeyp() { + return (cipher_SecKey *) calloc(1,sizeof(cipher_SecKey)); +} + +static cipher_SecKey *copy_cipher_SecKeyp(cipher_SecKey value) { + cipher_SecKey *obj = (cipher_SecKey *) calloc(1,sizeof(cipher_SecKey)); + *obj = value; + return obj; +} + +static void delete_cipher_SecKeyp(cipher_SecKey *obj) { + if (obj) free(obj); +} + +static void cipher_SecKeyp_assign(cipher_SecKey *obj, cipher_SecKey value) { + *obj = value; +} + +static cipher_SecKey cipher_SecKeyp_value(cipher_SecKey *obj) { + return *obj; +} + + typedef GoInt64_ Handle; /** * Memory handle for internal object retrieving password to read @@ -833,21 +856,69 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_PubKeyp_value(void * jarg1) } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_f(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_SecKeyp() { void * jresult ; - cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; - cipher_PubKey temp1 ; - cipher_PubKey *result = 0 ; + cipher_SecKey *result = 0 ; - { - //Typemap in *cipher_PubKey - arg1 = &temp1; + result = (cipher_SecKey *)new_cipher_SecKeyp(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_cipher_SecKeyp(void * jarg1) { + void * jresult ; + cipher_SecKey arg1 ; + cipher_SecKey *argp1 ; + cipher_SecKey *result = 0 ; + + argp1 = (cipher_SecKey *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null cipher_SecKey", 0); + return 0; } - result = (cipher_PubKey *)f(arg1); + arg1 = *argp1; + result = (cipher_SecKey *)copy_cipher_SecKeyp(arg1); jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_SecKeyp(void * jarg1) { + cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; + + arg1 = (cipher_SecKey *)jarg1; + delete_cipher_SecKeyp(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SecKeyp_assign(void * jarg1, void * jarg2) { + cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; + cipher_SecKey arg2 ; + cipher_SecKey *argp2 ; + + arg1 = (cipher_SecKey *)jarg1; + argp2 = (cipher_SecKey *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null cipher_SecKey", 0); + return ; + } + arg2 = *argp2; + cipher_SecKeyp_assign(arg1,arg2); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_SecKeyp_value(void * jarg1) { + void * jresult ; + cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; + cipher_SecKey result; + + arg1 = (cipher_SecKey *)jarg1; + result = cipher_SecKeyp_value(arg1); { - //Typemap freearg *cipher_PubKey - free(arg1); + cipher_SecKey * resultptr = (cipher_SecKey *) malloc(sizeof(cipher_SecKey)); + memmove(resultptr, &result, sizeof(cipher_SecKey)); + jresult = resultptr; } return jresult; } @@ -857,28 +928,12 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_PubKey_isEqual(void * jarg1, vo int jresult ; cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; cipher_PubKey *arg2 = (cipher_PubKey *) 0 ; - cipher_PubKey temp1 ; - cipher_PubKey temp2 ; int result; - { - //Typemap in *cipher_PubKey - arg1 = &temp1; - } - { - //Typemap in *cipher_PubKey - arg2 = &temp2; - } + arg1 = (cipher_PubKey *)jarg1; + arg2 = (cipher_PubKey *)jarg2; result = (int)cipher_PubKey_isEqual(arg1,arg2); jresult = result; - { - //Typemap freearg *cipher_PubKey - free(arg1); - } - { - //Typemap freearg *cipher_PubKey - free(arg2); - } return jresult; } @@ -886,77 +941,45 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_PubKey_isEqual(void * jarg1, vo SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKey_assignFrom(void * jarg1, void * jarg2) { cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; void *arg2 = (void *) 0 ; - cipher_PubKey temp1 ; - { - //Typemap in *cipher_PubKey - arg1 = &temp1; - } + arg1 = (cipher_PubKey *)jarg1; arg2 = (void *)jarg2; cipher_PubKey_assignFrom(arg1,arg2); - { - //Typemap freearg *cipher_PubKey - free(arg1); - } } SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKey_assignTo(void * jarg1, void * jarg2) { cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; void *arg2 = (void *) 0 ; - cipher_PubKey temp1 ; - { - //Typemap in *cipher_PubKey - arg1 = &temp1; - } + arg1 = (cipher_PubKey *)jarg1; arg2 = (void *)jarg2; cipher_PubKey_assignTo(arg1,arg2); - { - //Typemap freearg *cipher_PubKey - free(arg1); - } } SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher_PubKey_data(void * jarg1, void * jarg2) { cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; GoUint8 *arg2 ; - cipher_PubKey temp1 ; - { - //Typemap in *cipher_PubKey - arg1 = &temp1; - } + arg1 = (cipher_PubKey *)jarg1; arg2 = (GoUint8 *)jarg2; { size_t ii; GoUint8 *b = (GoUint8 *) arg1->data; for (ii = 0; ii < (size_t)33; ii++) b[ii] = *((GoUint8 *) arg2 + ii); } - { - //Typemap freearg *cipher_PubKey - free(arg1); - } } SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_cipher_PubKey_data(void * jarg1) { void * jresult ; cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; - cipher_PubKey temp1 ; GoUint8 *result = 0 ; - { - //Typemap in *cipher_PubKey - arg1 = &temp1; - } + arg1 = (cipher_PubKey *)jarg1; result = (GoUint8 *)(GoUint8 *) ((arg1)->data); jresult = result; - { - //Typemap freearg *cipher_PubKey - free(arg1); - } return jresult; } @@ -973,17 +996,9 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_PubKey() { SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_PubKey(void * jarg1) { cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; - cipher_PubKey temp1 ; - { - //Typemap in *cipher_PubKey - arg1 = &temp1; - } + arg1 = (cipher_PubKey *)jarg1; free((char *) arg1); - { - //Typemap freearg *cipher_PubKey - free(arg1); - } } @@ -1520,21 +1535,13 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_setAt(void * jarg1, int cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; int arg2 ; cipher_PubKey *arg3 = (cipher_PubKey *) 0 ; - cipher_PubKey temp3 ; int result; arg1 = (cipher_PubKeys *)jarg1; arg2 = (int)jarg2; - { - //Typemap in *cipher_PubKey - arg3 = &temp3; - } + arg3 = (cipher_PubKey *)jarg3; result = (int)cipher_PubKeys_setAt(arg1,arg2,arg3); jresult = result; - { - //Typemap freearg *cipher_PubKey - free(arg3); - } return jresult; } @@ -1574,18 +1581,10 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKeys_release(void * jarg1) SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher_PubKeys_data(void * jarg1, void * jarg2) { cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; cipher_PubKey *arg2 = (cipher_PubKey *) 0 ; - cipher_PubKey temp2 ; arg1 = (cipher_PubKeys *)jarg1; - { - //Typemap in *cipher_PubKey - arg2 = &temp2; - } + arg2 = (cipher_PubKey *)jarg2; if (arg1) (arg1)->data = arg2; - { - //Typemap freearg *cipher_PubKey - free(arg2); - } } @@ -2176,7 +2175,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_GoSlice(void * jarg1) { } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock(void * jarg1, unsigned long long jarg2, void * jarg3, void * jarg4, void * jarg5) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock(void * jarg1, unsigned long long jarg2, cipher_SecKey* jarg3, void * jarg4, void * jarg5) { unsigned int jresult ; Block__Handle arg1 ; GoUint64 arg2 ; @@ -2205,24 +2204,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock(void * jarg } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SignedBlock_VerifySignature(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SignedBlock_VerifySignature(void * jarg1, cipher_PubKey* jarg2) { unsigned int jresult ; coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; - cipher_PubKey temp2 ; GoUint32 result; arg1 = (coin__SignedBlock *)jarg1; - { - //Typemap in *GoUint8_ (*)[33] is cipher_PubKey - arg2 = (cipher_PubKey*)&temp2; - } + arg2 = (cipher__PubKey *)jarg2; result = (GoUint32)SKY_coin_SignedBlock_VerifySignature(arg1,(GoUint8_ (*)[33])arg2); jresult = result; - { - //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey - free(arg2); - } return jresult; } @@ -2248,7 +2239,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewGenesisBlock(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_HashHeader(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_HashHeader(void * jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; Block__Handle arg1 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; @@ -2264,7 +2255,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_HashHeader(voi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_PreHashHeader(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_PreHashHeader(void * jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; Block__Handle arg1 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; @@ -2312,7 +2303,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_Seq(void * jar } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_HashBody(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_HashBody(void * jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; Block__Handle arg1 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; @@ -2360,7 +2351,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_String(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_GetTransaction(void * jarg1, void * jarg2, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_GetTransaction(void * jarg1, cipher_SecKey* jarg2, void * jarg4) { unsigned int jresult ; Block__Handle arg1 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; @@ -2383,7 +2374,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_GetTransaction } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlockHeader(void * jarg1, void * jarg2, unsigned long long jarg3, unsigned long long jarg4, void * jarg5, void * jarg6) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlockHeader(void * jarg1, cipher_SecKey* jarg2, unsigned long long jarg3, unsigned long long jarg4, void * jarg5, void * jarg6) { unsigned int jresult ; coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; @@ -2407,7 +2398,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlockHeader(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockHeader_Hash(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockHeader_Hash(void * jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; @@ -2449,7 +2440,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockHeader_String(v } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Hash(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Hash(void * jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; BlockBody__Handle arg1 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; @@ -4096,7 +4087,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_CreatedTransaction_To } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreatedTransactionOutput(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreatedTransactionOutput(void * jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; @@ -5738,12 +5729,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_RandByte(long long } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewPubKey(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewPubKey(void * jarg1, cipher_PubKey* jarg2) { unsigned int jresult ; GoSlice arg1 ; cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; GoSlice *argp1 ; - cipher_PubKey temp2 ; GoUint32 result; argp1 = (GoSlice *)jarg1; @@ -5752,26 +5742,18 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewPubKey(void * j return 0; } arg1 = *argp1; - { - //Typemap in *GoUint8_ (*)[33] is cipher_PubKey - arg2 = (cipher_PubKey*)&temp2; - } + arg2 = (cipher__PubKey *)jarg2; result = (GoUint32)SKY_cipher_NewPubKey(arg1,(GoUint8_ (*)[33])arg2); jresult = result; - { - //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey - free(arg2); - } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromHex(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromHex(void * jarg1, cipher_PubKey* jarg2) { unsigned int jresult ; GoString arg1 ; cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; GoString *argp1 ; - cipher_PubKey temp2 ; GoUint32 result; argp1 = (GoString *)jarg1; @@ -5780,131 +5762,84 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromHex(void return 0; } arg1 = *argp1; - { - //Typemap in *GoUint8_ (*)[33] is cipher_PubKey - arg2 = (cipher_PubKey*)&temp2; - } + arg2 = (cipher__PubKey *)jarg2; result = (GoUint32)SKY_cipher_PubKeyFromHex(arg1,(GoUint8_ (*)[33])arg2); jresult = result; - { - //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey - free(arg2); - } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSecKey(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSecKey(cipher_SecKey* jarg1, cipher_PubKey* jarg2) { unsigned int jresult ; cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; - cipher_PubKey temp2 ; GoUint32 result; arg1 = (cipher__SecKey *)jarg1; - { - //Typemap in *GoUint8_ (*)[33] is cipher_PubKey - arg2 = (cipher_PubKey*)&temp2; - } + arg2 = (cipher__PubKey *)jarg2; result = (GoUint32)SKY_cipher_PubKeyFromSecKey((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[33])arg2); jresult = result; - { - //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey - free(arg2); - } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSig(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSig(void * jarg1, cipher_SecKey* jarg2, cipher_PubKey* jarg3) { unsigned int jresult ; cipher__Sig *arg1 = (cipher__Sig *) 0 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; cipher__PubKey *arg3 = (cipher__PubKey *) 0 ; - cipher_PubKey temp3 ; GoUint32 result; arg1 = (cipher__Sig *)jarg1; arg2 = (cipher__SHA256 *)jarg2; - { - //Typemap in *GoUint8_ (*)[33] is cipher_PubKey - arg3 = (cipher_PubKey*)&temp3; - } + arg3 = (cipher__PubKey *)jarg3; result = (GoUint32)SKY_cipher_PubKeyFromSig((GoUint8_ (*)[65])arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[33])arg3); jresult = result; - { - //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey - free(arg3); - } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_Verify(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_Verify(cipher_PubKey* jarg1) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher_PubKey temp1 ; GoUint32 result; - { - //Typemap in *GoUint8_ (*)[33] is cipher_PubKey - arg1 = (cipher_PubKey*)&temp1; - } + arg1 = (cipher__PubKey *)jarg1; result = (GoUint32)SKY_cipher_PubKey_Verify((GoUint8_ (*)[33])arg1); jresult = result; - { - //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey - free(arg1); - } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_Hex(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_Hex(cipher_PubKey* jarg1, void * jarg2) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; GoString_ *arg2 = (GoString_ *) 0 ; - cipher_PubKey temp1 ; GoUint32 result; - { - //Typemap in *GoUint8_ (*)[33] is cipher_PubKey - arg1 = (cipher_PubKey*)&temp1; - } + arg1 = (cipher__PubKey *)jarg1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_cipher_PubKey_Hex((GoUint8_ (*)[33])arg1,arg2); jresult = result; - { - //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey - free(arg1); - } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_ToAddressHash(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_ToAddressHash(cipher_PubKey* jarg1, void * jarg2) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; cipher__Ripemd160 *arg2 = (cipher__Ripemd160 *) 0 ; - cipher_PubKey temp1 ; GoUint32 result; - { - //Typemap in *GoUint8_ (*)[33] is cipher_PubKey - arg1 = (cipher_PubKey*)&temp1; - } + arg1 = (cipher__PubKey *)jarg1; arg2 = (cipher__Ripemd160 *)jarg2; result = (GoUint32)SKY_cipher_PubKey_ToAddressHash((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[20])arg2); jresult = result; - { - //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey - free(arg1); - } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewSecKey(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewSecKey(void * jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; GoSlice arg1 ; cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; @@ -5924,7 +5859,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewSecKey(void * j } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKeyFromHex(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKeyFromHex(void * jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; GoString arg1 ; cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; @@ -5944,7 +5879,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKeyFromHex(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKey_Verify(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKey_Verify(cipher_SecKey* jarg1) { unsigned int jresult ; cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; GoUint32 result; @@ -5956,7 +5891,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKey_Verify(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKey_Hex(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKey_Hex(cipher_SecKey* jarg1, void * jarg2) { unsigned int jresult ; cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -5970,26 +5905,18 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKey_Hex(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_ECDH(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_ECDH(cipher_PubKey* jarg1, cipher_SecKey* jarg2, void * jarg3) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; coin__UxArray *arg3 = (coin__UxArray *) 0 ; - cipher_PubKey temp1 ; GoUint32 result; - { - //Typemap in *GoUint8_ (*)[33] is cipher_PubKey - arg1 = (cipher_PubKey*)&temp1; - } + arg1 = (cipher__PubKey *)jarg1; arg2 = (cipher__SecKey *)jarg2; arg3 = (coin__UxArray *)jarg3; result = (GoUint32)SKY_cipher_ECDH((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2,arg3); jresult = result; - { - //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey - free(arg1); - } return jresult; } @@ -6048,7 +5975,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Sig_Hex(void * jar } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SignHash(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SignHash(cipher_SecKey* jarg1, cipher_SecKey* jarg2, void * jarg3) { unsigned int jresult ; cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; @@ -6064,7 +5991,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SignHash(void * ja } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_ChkSig(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_ChkSig(void * jarg1, cipher_SecKey* jarg2, void * jarg3) { unsigned int jresult ; cipher__Address *arg1 = (cipher__Address *) 0 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; @@ -6080,7 +6007,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_ChkSig(void * jarg } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignedHash(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignedHash(void * jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; cipher__Sig *arg1 = (cipher__Sig *) 0 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; @@ -6094,37 +6021,28 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignedHash(v } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignature(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignature(cipher_PubKey* jarg1, void * jarg2, cipher_SecKey* jarg3) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; cipher__Sig *arg2 = (cipher__Sig *) 0 ; cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - cipher_PubKey temp1 ; GoUint32 result; - { - //Typemap in *GoUint8_ (*)[33] is cipher_PubKey - arg1 = (cipher_PubKey*)&temp1; - } + arg1 = (cipher__PubKey *)jarg1; arg2 = (cipher__Sig *)jarg2; arg3 = (cipher__SHA256 *)jarg3; result = (GoUint32)SKY_cipher_VerifySignature((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[65])arg2,(GoUint8_ (*)[32])arg3); jresult = result; - { - //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey - free(arg1); - } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPair(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPair(void * jarg1, cipher_PubKey* jarg2, cipher_SecKey* jarg3) { unsigned int jresult ; GoSlice arg1 ; cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; cipher__SecKey *arg3 = (cipher__SecKey *) 0 ; GoSlice *argp1 ; - cipher_PubKey temp2 ; GoUint32 result; argp1 = (GoSlice *)jarg1; @@ -6133,29 +6051,21 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterminis return 0; } arg1 = *argp1; - { - //Typemap in *GoUint8_ (*)[33] is cipher_PubKey - arg2 = (cipher_PubKey*)&temp2; - } + arg2 = (cipher__PubKey *)jarg2; arg3 = (cipher__SecKey *)jarg3; result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPair(arg1,(GoUint8_ (*)[33])arg2,(GoUint8_ (*)[32])arg3); jresult = result; - { - //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey - free(arg2); - } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DeterministicKeyPairIterator(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DeterministicKeyPairIterator(void * jarg1, void * jarg2, cipher_PubKey* jarg3, cipher_SecKey* jarg4) { unsigned int jresult ; GoSlice arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; cipher__PubKey *arg3 = (cipher__PubKey *) 0 ; cipher__SecKey *arg4 = (cipher__SecKey *) 0 ; GoSlice *argp1 ; - cipher_PubKey temp3 ; GoUint32 result; argp1 = (GoSlice *)jarg1; @@ -6165,17 +6075,10 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DeterministicKeyPa } arg1 = *argp1; arg2 = (coin__UxArray *)jarg2; - { - //Typemap in *GoUint8_ (*)[33] is cipher_PubKey - arg3 = (cipher_PubKey*)&temp3; - } + arg3 = (cipher__PubKey *)jarg3; arg4 = (cipher__SecKey *)jarg4; result = (GoUint32)SKY_cipher_DeterministicKeyPairIterator(arg1,arg2,(GoUint8_ (*)[33])arg3,(GoUint8_ (*)[32])arg4); jresult = result; - { - //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey - free(arg3); - } return jresult; } @@ -6226,7 +6129,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterminis } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_TestSecKey(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_TestSecKey(cipher_SecKey* jarg1) { unsigned int jresult ; cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; GoUint32 result; @@ -6238,7 +6141,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_TestSecKey(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_TestSecKeyHash(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_TestSecKeyHash(cipher_SecKey* jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; @@ -6252,24 +6155,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_TestSecKeyHash(voi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateKeyPair(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateKeyPair(cipher_PubKey* jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - cipher_PubKey temp1 ; GoUint32 result; - { - //Typemap in *GoUint8_ (*)[33] is cipher_PubKey - arg1 = (cipher_PubKey*)&temp1; - } + arg1 = (cipher__PubKey *)jarg1; arg2 = (cipher__SecKey *)jarg2; result = (GoUint32)SKY_cipher_GenerateKeyPair((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2); jresult = result; - { - //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey - free(arg1); - } return jresult; } @@ -6898,50 +6793,34 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateAddresses(vo } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_GetSkycoinWalletEntry(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_GetSkycoinWalletEntry(cipher_PubKey* jarg1, cipher_SecKey* jarg2, void * jarg3) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; ReadableEntry__Handle *arg3 = (ReadableEntry__Handle *) 0 ; - cipher_PubKey temp1 ; GoUint32 result; - { - //Typemap in *GoUint8_ (*)[33] is cipher_PubKey - arg1 = (cipher_PubKey*)&temp1; - } + arg1 = (cipher__PubKey *)jarg1; arg2 = (cipher__SecKey *)jarg2; arg3 = (ReadableEntry__Handle *)jarg3; result = (GoUint32)SKY_wallet_GetSkycoinWalletEntry((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2,arg3); jresult = result; - { - //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey - free(arg1); - } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_GetBitcoinWalletEntry(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_GetBitcoinWalletEntry(cipher_PubKey* jarg1, cipher_SecKey* jarg2, void * jarg3) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; ReadableEntry__Handle *arg3 = (ReadableEntry__Handle *) 0 ; - cipher_PubKey temp1 ; GoUint32 result; - { - //Typemap in *GoUint8_ (*)[33] is cipher_PubKey - arg1 = (cipher_PubKey*)&temp1; - } + arg1 = (cipher__PubKey *)jarg1; arg2 = (cipher__SecKey *)jarg2; arg3 = (ReadableEntry__Handle *)jarg3; result = (GoUint32)SKY_wallet_GetBitcoinWalletEntry((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2,arg3); jresult = result; - { - //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey - free(arg1); - } return jresult; } @@ -7397,29 +7276,21 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddressFromBytes(v } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddressFromPubKey(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddressFromPubKey(cipher_PubKey* jarg1, void * jarg2) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; cipher__Address *arg2 = (cipher__Address *) 0 ; - cipher_PubKey temp1 ; GoUint32 result; - { - //Typemap in *GoUint8_ (*)[33] is cipher_PubKey - arg1 = (cipher_PubKey*)&temp1; - } + arg1 = (cipher__PubKey *)jarg1; arg2 = (cipher__Address *)jarg2; result = (GoUint32)SKY_cipher_AddressFromPubKey((GoUint8_ (*)[33])arg1,arg2); jresult = result; - { - //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey - free(arg1); - } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddressFromSecKey(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddressFromSecKey(cipher_SecKey* jarg1, void * jarg2) { unsigned int jresult ; cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; cipher__Address *arg2 = (cipher__Address *) 0 ; @@ -7495,24 +7366,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_BitcoinByt } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Verify(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Verify(void * jarg1, cipher_PubKey* jarg2) { unsigned int jresult ; cipher__Address *arg1 = (cipher__Address *) 0 ; cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; - cipher_PubKey temp2 ; GoUint32 result; arg1 = (cipher__Address *)jarg1; - { - //Typemap in *GoUint8_ (*)[33] is cipher_PubKey - arg2 = (cipher_PubKey*)&temp2; - } + arg2 = (cipher__PubKey *)jarg2; result = (GoUint32)SKY_cipher_Address_Verify(arg1,(GoUint8_ (*)[33])arg2); jresult = result; - { - //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey - free(arg2); - } return jresult; } @@ -7573,29 +7436,21 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_BitcoinChe } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddressFromPubkey(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddressFromPubkey(cipher_PubKey* jarg1, void * jarg2) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; GoString_ *arg2 = (GoString_ *) 0 ; - cipher_PubKey temp1 ; GoUint32 result; - { - //Typemap in *GoUint8_ (*)[33] is cipher_PubKey - arg1 = (cipher_PubKey*)&temp1; - } + arg1 = (cipher__PubKey *)jarg1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_cipher_BitcoinAddressFromPubkey((GoUint8_ (*)[33])arg1,arg2); jresult = result; - { - //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey - free(arg1); - } return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinWalletImportFormatFromSeckey(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinWalletImportFormatFromSeckey(cipher_SecKey* jarg1, void * jarg2) { unsigned int jresult ; cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -7629,7 +7484,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddressFrom } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKeyFromWalletImportFormat(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKeyFromWalletImportFormat(void * jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; GoString arg1 ; cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; @@ -7946,13 +7801,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWall } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletGetEntry(void * jarg1, unsigned int jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletGetEntry(void * jarg1, unsigned int jarg2, void * jarg3, cipher_PubKey* jarg4) { unsigned int jresult ; Wallet__Handle arg1 ; GoUint32 arg2 ; cipher__Address *arg3 = (cipher__Address *) 0 ; cipher__PubKey *arg4 = (cipher__PubKey *) 0 ; - cipher_PubKey temp4 ; GoUint32 result; { @@ -7960,16 +7814,9 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletGetEntry } arg2 = (GoUint32)jarg2; arg3 = (cipher__Address *)jarg3; - { - //Typemap in *GoUint8_ (*)[33] is cipher_PubKey - arg4 = (cipher_PubKey*)&temp4; - } + arg4 = (cipher__PubKey *)jarg4; result = (GoUint32)SKY_api_Handle_WalletGetEntry(arg1,arg2,arg3,(GoUint8_ (*)[33])arg4); jresult = result; - { - //Typemap freearg *GoUint8_ (*)[33] is cipher_PubKey - free(arg4); - } return jresult; } @@ -8286,7 +8133,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_IsEqua } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_Hash(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_Hash(void * jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; coin__UxOut *arg1 = (coin__UxOut *) 0 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; @@ -8300,7 +8147,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_Hash(void * ja } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_SnapshotHash(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_SnapshotHash(void * jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; coin__UxOut *arg1 = (coin__UxOut *) 0 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; @@ -8314,7 +8161,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_SnapshotHash(v } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxBody_Hash(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxBody_Hash(void * jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; coin__UxBody *arg1 = (coin__UxBody *) 0 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; @@ -10234,7 +10081,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_HashRipemd160(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Set(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Set(cipher_SecKey* jarg1, void * jarg2) { unsigned int jresult ; cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; GoSlice arg2 ; @@ -10254,7 +10101,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Set(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Hex(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Hex(cipher_SecKey* jarg1, void * jarg2) { unsigned int jresult ; cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -10268,7 +10115,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Hex(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Xor(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Xor(cipher_SecKey* jarg1, cipher_SecKey* jarg2, cipher_SecKey* jarg3) { unsigned int jresult ; cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; @@ -10284,7 +10131,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Xor(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SumSHA256(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SumSHA256(void * jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; GoSlice arg1 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; @@ -10304,7 +10151,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SumSHA256(void * j } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256FromHex(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256FromHex(void * jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; GoString arg1 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; @@ -10324,7 +10171,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256FromHex(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DoubleSHA256(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DoubleSHA256(void * jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; GoSlice arg1 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; @@ -10344,7 +10191,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DoubleSHA256(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddSHA256(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddSHA256(cipher_SecKey* jarg1, cipher_SecKey* jarg2, cipher_SecKey* jarg3) { unsigned int jresult ; cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; @@ -10360,7 +10207,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddSHA256(void * j } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Merkle(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Merkle(void * jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; GoSlice *arg1 = (GoSlice *) 0 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; @@ -10374,7 +10221,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Merkle(void * jarg } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Null(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Null(cipher_SecKey* jarg1, void * jarg2) { unsigned int jresult ; cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; GoUint8 *arg2 = (GoUint8 *) 0 ; @@ -10470,7 +10317,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetInput } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetInputAt(void * jarg1, long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetInputAt(void * jarg1, long long jarg2, cipher_SecKey* jarg3) { unsigned int jresult ; Transaction__Handle arg1 ; GoInt arg2 ; @@ -10488,7 +10335,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetInput } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SetInputAt(void * jarg1, long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SetInputAt(void * jarg1, long long jarg2, cipher_SecKey* jarg3) { unsigned int jresult ; Transaction__Handle arg1 ; GoInt arg2 ; @@ -10688,7 +10535,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_VerifyIn } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_PushInput(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_PushInput(void * jarg1, cipher_SecKey* jarg2, void * jarg3) { unsigned int jresult ; Transaction__Handle arg1 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; @@ -10706,7 +10553,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_PushInpu } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_TransactionOutput_UxID(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_TransactionOutput_UxID(void * jarg1, cipher_SecKey* jarg2, cipher_SecKey* jarg3) { unsigned int jresult ; coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; @@ -10780,7 +10627,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Size(voi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Hash(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Hash(void * jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; Transaction__Handle arg1 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; @@ -10796,7 +10643,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Hash(voi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SizeHash(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SizeHash(void * jarg1, void * jarg2, cipher_SecKey* jarg3) { unsigned int jresult ; Transaction__Handle arg1 ; GoInt *arg2 = (GoInt *) 0 ; @@ -10860,7 +10707,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_UpdateHe } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_HashInner(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_HashInner(void * jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; Transaction__Handle arg1 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; diff --git a/LibskycoinNetTest/check_cipher_address.cs b/LibskycoinNetTest/check_cipher_address.cs index c54de4a9..892ecc90 100644 --- a/LibskycoinNetTest/check_cipher_address.cs +++ b/LibskycoinNetTest/check_cipher_address.cs @@ -6,11 +6,16 @@ namespace LibskycoinNetTest { public class check_cipher_address { [Test ()] public void TestDecodeBase58Address () { - // var s = new skycoin.cipher_SecKey (); - // SWIGTYPE_p_a_33__GoUint8_ p = skycoin.skycoin.new_cipher_PubKeyp (); - // uint err = 0; - // Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - // err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); + uint err = 0; + cipher_SecKey s = new cipher_SecKey(); + err = skycoin.skycoin.SKY_cipher_SecKey_Verify (s); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK, "Faild SKY_cipher_SecKey_Verify "); + cipher_PubKey p = new skycoin.cipher_PubKey (); + err = skycoin.skycoin.SKY_cipher_PubKey_Verify (p); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK, "Faild SKY_cipher_PubKey_Verify"); + + err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK, "Faild SKY_cipher_GenerateKeyPair"); } } diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index fe0a28da..1c0b4de6 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit fe0a28da3a0ab16256a4689a32385be89f5ff494 +Subproject commit 1c0b4de6c23d26211e5567337e462544f5c9303c From 939da37e2f6fb4726fa3ab1f3373cec0e1b5ad37 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Wed, 12 Sep 2018 17:21:43 -0400 Subject: [PATCH 19/73] [swig][libdotnet] Update submodule and init test --- LibskycoinNet/skycoin/skycoin.cs | 353 ++++++---------- LibskycoinNet/skycoin/skycoinPINVOKE.cs | 118 +++--- LibskycoinNet/skycoin/skycoinnet_wrap.c | 460 ++++++++++----------- LibskycoinNetTest/LibskycoinNetTest.csproj | 2 +- LibskycoinNetTest/check_cipher_address.cs | 14 +- gopath/src/github.com/skycoin/skycoin | 2 +- 6 files changed, 424 insertions(+), 525 deletions(-) diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs index acb0dbb9..cc129f15 100644 --- a/LibskycoinNet/skycoin/skycoin.cs +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -90,17 +90,15 @@ public static cipher_SecKey cipher_SecKeyp_value(cipher_SecKey obj) { } public static uint SKY_coin_NewBlock(SWIGTYPE_p_GoInt64_ p0, ulong p1, cipher_SecKey p2, SWIGTYPE_p_GoInt64_ p3, SWIGTYPE_p_FeeCalculator p4) { -cipher_SecKey tmpp2 = new_cipher_SecKeyp(); - try { +var tmpp2 = cipher_SecKey.getCPtr (p2); + { uint ret = skycoinPINVOKE.SKY_coin_NewBlock(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1, tmpp2, SWIGTYPE_p_GoInt64_.getCPtr(p3), SWIGTYPE_p_FeeCalculator.getCPtr(p4)); return ret; - } finally { -delete_cipher_SecKeyp(tmpp2); } } public static uint SKY_coin_SignedBlock_VerifySignature(coin__SignedBlock p0, cipher_PubKey p1) { -cipher_PubKey tmpp1 = new_cipher_PubKeyp(); +var tmpp1 = cipher_PubKey.getCPtr (p1); { uint ret = skycoinPINVOKE.SKY_coin_SignedBlock_VerifySignature(coin__SignedBlock.getCPtr(p0), tmpp1); return ret; @@ -113,22 +111,18 @@ public static uint SKY_coin_NewGenesisBlock(cipher__Address p0, ulong p1, ulong } public static uint SKY_coin_Block_HashHeader(SWIGTYPE_p_GoInt64_ p0, cipher_SecKey p1) { -cipher_SecKey tmpp1 = new_cipher_SecKeyp(); - try { +var tmpp1 = cipher_SecKey.getCPtr (p1); + { uint ret = skycoinPINVOKE.SKY_coin_Block_HashHeader(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); return ret; - } finally { -delete_cipher_SecKeyp(tmpp1); } } public static uint SKY_coin_Block_PreHashHeader(SWIGTYPE_p_GoInt64_ p0, cipher_SecKey p1) { -cipher_SecKey tmpp1 = new_cipher_SecKeyp(); - try { +var tmpp1 = cipher_SecKey.getCPtr (p1); + { uint ret = skycoinPINVOKE.SKY_coin_Block_PreHashHeader(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); return ret; - } finally { -delete_cipher_SecKeyp(tmpp1); } } @@ -143,12 +137,10 @@ public static uint SKY_coin_Block_Seq(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_unsigne } public static uint SKY_coin_Block_HashBody(SWIGTYPE_p_GoInt64_ p0, cipher_SecKey p1) { -cipher_SecKey tmpp1 = new_cipher_SecKeyp(); - try { +var tmpp1 = cipher_SecKey.getCPtr (p1); + { uint ret = skycoinPINVOKE.SKY_coin_Block_HashBody(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); return ret; - } finally { -delete_cipher_SecKeyp(tmpp1); } } @@ -163,32 +155,26 @@ public static uint SKY_coin_Block_String(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoSt } public static uint SKY_coin_Block_GetTransaction(SWIGTYPE_p_GoInt64_ p0, cipher_SecKey p1, SWIGTYPE_p_unsigned_char p3) { -cipher_SecKey tmpp1 = new_cipher_SecKeyp(); - try { +var tmpp1 = cipher_SecKey.getCPtr (p1); + { uint ret = skycoinPINVOKE.SKY_coin_Block_GetTransaction(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1, SWIGTYPE_p_unsigned_char.getCPtr(p3)); return ret; - } finally { -delete_cipher_SecKeyp(tmpp1); } } public static uint SKY_coin_NewBlockHeader(coin__BlockHeader p0, cipher_SecKey p1, ulong p2, ulong p3, SWIGTYPE_p_GoInt64_ p4, coin__BlockHeader p5) { -cipher_SecKey tmpp1 = new_cipher_SecKeyp(); - try { +var tmpp1 = cipher_SecKey.getCPtr (p1); + { uint ret = skycoinPINVOKE.SKY_coin_NewBlockHeader(coin__BlockHeader.getCPtr(p0), tmpp1, p2, p3, SWIGTYPE_p_GoInt64_.getCPtr(p4), coin__BlockHeader.getCPtr(p5)); return ret; - } finally { -delete_cipher_SecKeyp(tmpp1); } } public static uint SKY_coin_BlockHeader_Hash(coin__BlockHeader p0, cipher_SecKey p1) { -cipher_SecKey tmpp1 = new_cipher_SecKeyp(); - try { +var tmpp1 = cipher_SecKey.getCPtr (p1); + { uint ret = skycoinPINVOKE.SKY_coin_BlockHeader_Hash(coin__BlockHeader.getCPtr(p0), tmpp1); return ret; - } finally { -delete_cipher_SecKeyp(tmpp1); } } @@ -203,12 +189,10 @@ public static uint SKY_coin_BlockHeader_String(coin__BlockHeader p0, SWIGTYPE_p_ } public static uint SKY_coin_BlockBody_Hash(SWIGTYPE_p_GoInt64_ p0, cipher_SecKey p1) { -cipher_SecKey tmpp1 = new_cipher_SecKeyp(); - try { +var tmpp1 = cipher_SecKey.getCPtr (p1); + { uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Hash(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); return ret; - } finally { -delete_cipher_SecKeyp(tmpp1); } } @@ -620,12 +604,10 @@ public static uint SKY_api_CreatedTransaction_ToTransaction(SWIGTYPE_p_GoInt64_ } public static uint SKY_api_NewCreatedTransactionOutput(coin__TransactionOutput p0, cipher_SecKey p1) { -cipher_SecKey tmpp1 = new_cipher_SecKeyp(); - try { +var tmpp1 = cipher_SecKey.getCPtr (p1); + { uint ret = skycoinPINVOKE.SKY_api_NewCreatedTransactionOutput(coin__TransactionOutput.getCPtr(p0), tmpp1); return ret; - } finally { -delete_cipher_SecKeyp(tmpp1); } } @@ -1083,7 +1065,7 @@ public static uint SKY_cipher_RandByte(long p0, SWIGTYPE_p_GoSlice_ p1) { } public static uint SKY_cipher_NewPubKey(GoSlice p0, cipher_PubKey p1) { -cipher_PubKey tmpp1 = new_cipher_PubKeyp(); +var tmpp1 = cipher_PubKey.getCPtr (p1); { uint ret = skycoinPINVOKE.SKY_cipher_NewPubKey(GoSlice.getCPtr(p0), tmpp1); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); @@ -1092,7 +1074,7 @@ public static uint SKY_cipher_NewPubKey(GoSlice p0, cipher_PubKey p1) { } public static uint SKY_cipher_PubKeyFromHex(_GoString_ p0, cipher_PubKey p1) { -cipher_PubKey tmpp1 = new_cipher_PubKeyp(); +var tmpp1 = cipher_PubKey.getCPtr (p1); { uint ret = skycoinPINVOKE.SKY_cipher_PubKeyFromHex(_GoString_.getCPtr(p0), tmpp1); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); @@ -1101,29 +1083,25 @@ public static uint SKY_cipher_PubKeyFromHex(_GoString_ p0, cipher_PubKey p1) { } public static uint SKY_cipher_PubKeyFromSecKey(cipher_SecKey p0, cipher_PubKey p1) { -cipher_SecKey tmpp0 = new_cipher_SecKeyp(); -cipher_PubKey tmpp1 = new_cipher_PubKeyp(); - try { +var tmpp0 = cipher_SecKey.getCPtr (p0); +var tmpp1 = cipher_PubKey.getCPtr (p1); + { uint ret = skycoinPINVOKE.SKY_cipher_PubKeyFromSecKey(tmpp0, tmpp1); return ret; - } finally { -delete_cipher_SecKeyp(tmpp0); } } public static uint SKY_cipher_PubKeyFromSig(SWIGTYPE_p_a_65__GoUint8_ p0, cipher_SecKey p1, cipher_PubKey p2) { -cipher_SecKey tmpp1 = new_cipher_SecKeyp(); -cipher_PubKey tmpp2 = new_cipher_PubKeyp(); - try { +var tmpp1 = cipher_SecKey.getCPtr (p1); +var tmpp2 = cipher_PubKey.getCPtr (p2); + { uint ret = skycoinPINVOKE.SKY_cipher_PubKeyFromSig(SWIGTYPE_p_a_65__GoUint8_.getCPtr(p0), tmpp1, tmpp2); return ret; - } finally { -delete_cipher_SecKeyp(tmpp1); } } public static uint SKY_cipher_PubKey_Verify(cipher_PubKey p0) { -cipher_PubKey tmpp0 = new_cipher_PubKeyp(); +var tmpp0 = cipher_PubKey.getCPtr (p0); { uint ret = skycoinPINVOKE.SKY_cipher_PubKey_Verify(tmpp0); return ret; @@ -1131,7 +1109,7 @@ public static uint SKY_cipher_PubKey_Verify(cipher_PubKey p0) { } public static uint SKY_cipher_PubKey_Hex(cipher_PubKey p0, SWIGTYPE_p_GoString_ p1) { -cipher_PubKey tmpp0 = new_cipher_PubKeyp(); +var tmpp0 = cipher_PubKey.getCPtr (p0); { uint ret = skycoinPINVOKE.SKY_cipher_PubKey_Hex(tmpp0, SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; @@ -1139,7 +1117,7 @@ public static uint SKY_cipher_PubKey_Hex(cipher_PubKey p0, SWIGTYPE_p_GoString_ } public static uint SKY_cipher_PubKey_ToAddressHash(cipher_PubKey p0, SWIGTYPE_p_a_20__GoUint8_ p1) { -cipher_PubKey tmpp0 = new_cipher_PubKeyp(); +var tmpp0 = cipher_PubKey.getCPtr (p0); { uint ret = skycoinPINVOKE.SKY_cipher_PubKey_ToAddressHash(tmpp0, SWIGTYPE_p_a_20__GoUint8_.getCPtr(p1)); return ret; @@ -1147,55 +1125,45 @@ public static uint SKY_cipher_PubKey_ToAddressHash(cipher_PubKey p0, SWIGTYPE_p_ } public static uint SKY_cipher_NewSecKey(GoSlice p0, cipher_SecKey p1) { -cipher_SecKey tmpp1 = new_cipher_SecKeyp(); - try { +var tmpp1 = cipher_SecKey.getCPtr (p1); + { uint ret = skycoinPINVOKE.SKY_cipher_NewSecKey(GoSlice.getCPtr(p0), tmpp1); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; - } finally { -delete_cipher_SecKeyp(tmpp1); } } public static uint SKY_cipher_SecKeyFromHex(_GoString_ p0, cipher_SecKey p1) { -cipher_SecKey tmpp1 = new_cipher_SecKeyp(); - try { +var tmpp1 = cipher_SecKey.getCPtr (p1); + { uint ret = skycoinPINVOKE.SKY_cipher_SecKeyFromHex(_GoString_.getCPtr(p0), tmpp1); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; - } finally { -delete_cipher_SecKeyp(tmpp1); } } public static uint SKY_cipher_SecKey_Verify(cipher_SecKey p0) { -cipher_SecKey tmpp0 = new_cipher_SecKeyp(); - try { +var tmpp0 = cipher_SecKey.getCPtr (p0); + { uint ret = skycoinPINVOKE.SKY_cipher_SecKey_Verify(tmpp0); return ret; - } finally { -delete_cipher_SecKeyp(tmpp0); } } public static uint SKY_cipher_SecKey_Hex(cipher_SecKey p0, SWIGTYPE_p_GoString_ p1) { -cipher_SecKey tmpp0 = new_cipher_SecKeyp(); - try { +var tmpp0 = cipher_SecKey.getCPtr (p0); + { uint ret = skycoinPINVOKE.SKY_cipher_SecKey_Hex(tmpp0, SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; - } finally { -delete_cipher_SecKeyp(tmpp0); } } public static uint SKY_cipher_ECDH(cipher_PubKey p0, cipher_SecKey p1, SWIGTYPE_p_GoSlice_ p2) { -cipher_PubKey tmpp0 = new_cipher_PubKeyp(); -cipher_SecKey tmpp1 = new_cipher_SecKeyp(); - try { +var tmpp0 = cipher_PubKey.getCPtr (p0); +var tmpp1 = cipher_SecKey.getCPtr (p1); + { uint ret = skycoinPINVOKE.SKY_cipher_ECDH(tmpp0, tmpp1, SWIGTYPE_p_GoSlice_.getCPtr(p2)); return ret; - } finally { -delete_cipher_SecKeyp(tmpp1); } } @@ -1217,69 +1185,56 @@ public static uint SKY_cipher_Sig_Hex(SWIGTYPE_p_a_65__GoUint8_ p0, SWIGTYPE_p_G } public static uint SKY_cipher_SignHash(cipher_SecKey p0, cipher_SecKey p1, SWIGTYPE_p_a_65__GoUint8_ p2) { -cipher_SecKey tmpp0 = new_cipher_SecKeyp(); -cipher_SecKey tmpp1 = new_cipher_SecKeyp(); - try { +var tmpp0 = cipher_SecKey.getCPtr (p0); +var tmpp1 = cipher_SecKey.getCPtr (p1); + { uint ret = skycoinPINVOKE.SKY_cipher_SignHash(tmpp0, tmpp1, SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); return ret; - } finally { -delete_cipher_SecKeyp(tmpp0); -delete_cipher_SecKeyp(tmpp1); } } public static uint SKY_cipher_ChkSig(cipher__Address p0, cipher_SecKey p1, SWIGTYPE_p_a_65__GoUint8_ p2) { -cipher_SecKey tmpp1 = new_cipher_SecKeyp(); - try { +var tmpp1 = cipher_SecKey.getCPtr (p1); + { uint ret = skycoinPINVOKE.SKY_cipher_ChkSig(cipher__Address.getCPtr(p0), tmpp1, SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); return ret; - } finally { -delete_cipher_SecKeyp(tmpp1); } } public static uint SKY_cipher_VerifySignedHash(SWIGTYPE_p_a_65__GoUint8_ p0, cipher_SecKey p1) { -cipher_SecKey tmpp1 = new_cipher_SecKeyp(); - try { +var tmpp1 = cipher_SecKey.getCPtr (p1); + { uint ret = skycoinPINVOKE.SKY_cipher_VerifySignedHash(SWIGTYPE_p_a_65__GoUint8_.getCPtr(p0), tmpp1); return ret; - } finally { -delete_cipher_SecKeyp(tmpp1); } } public static uint SKY_cipher_VerifySignature(cipher_PubKey p0, SWIGTYPE_p_a_65__GoUint8_ p1, cipher_SecKey p2) { -cipher_PubKey tmpp0 = new_cipher_PubKeyp(); -cipher_SecKey tmpp2 = new_cipher_SecKeyp(); - try { +var tmpp0 = cipher_PubKey.getCPtr (p0); +var tmpp2 = cipher_SecKey.getCPtr (p2); + { uint ret = skycoinPINVOKE.SKY_cipher_VerifySignature(tmpp0, SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1), tmpp2); return ret; - } finally { -delete_cipher_SecKeyp(tmpp2); } } public static uint SKY_cipher_GenerateDeterministicKeyPair(GoSlice p0, cipher_PubKey p1, cipher_SecKey p2) { -cipher_PubKey tmpp1 = new_cipher_PubKeyp(); -cipher_SecKey tmpp2 = new_cipher_SecKeyp(); - try { +var tmpp1 = cipher_PubKey.getCPtr (p1); +var tmpp2 = cipher_SecKey.getCPtr (p2); + { uint ret = skycoinPINVOKE.SKY_cipher_GenerateDeterministicKeyPair(GoSlice.getCPtr(p0), tmpp1, tmpp2); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; - } finally { -delete_cipher_SecKeyp(tmpp2); } } public static uint SKY_cipher_DeterministicKeyPairIterator(GoSlice p0, SWIGTYPE_p_GoSlice_ p1, cipher_PubKey p2, cipher_SecKey p3) { -cipher_PubKey tmpp2 = new_cipher_PubKeyp(); -cipher_SecKey tmpp3 = new_cipher_SecKeyp(); - try { +var tmpp2 = cipher_PubKey.getCPtr (p2); +var tmpp3 = cipher_SecKey.getCPtr (p3); + { uint ret = skycoinPINVOKE.SKY_cipher_DeterministicKeyPairIterator(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1), tmpp2, tmpp3); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; - } finally { -delete_cipher_SecKeyp(tmpp3); } } @@ -1296,35 +1251,28 @@ public static uint SKY_cipher_GenerateDeterministicKeyPairsSeed(GoSlice p0, long } public static uint SKY_cipher_TestSecKey(cipher_SecKey p0) { -cipher_SecKey tmpp0 = new_cipher_SecKeyp(); - try { +var tmpp0 = cipher_SecKey.getCPtr (p0); + { uint ret = skycoinPINVOKE.SKY_cipher_TestSecKey(tmpp0); return ret; - } finally { -delete_cipher_SecKeyp(tmpp0); } } public static uint SKY_cipher_TestSecKeyHash(cipher_SecKey p0, cipher_SecKey p1) { -cipher_SecKey tmpp0 = new_cipher_SecKeyp(); -cipher_SecKey tmpp1 = new_cipher_SecKeyp(); - try { +var tmpp0 = cipher_SecKey.getCPtr (p0); +var tmpp1 = cipher_SecKey.getCPtr (p1); + { uint ret = skycoinPINVOKE.SKY_cipher_TestSecKeyHash(tmpp0, tmpp1); return ret; - } finally { -delete_cipher_SecKeyp(tmpp0); -delete_cipher_SecKeyp(tmpp1); } } public static uint SKY_cipher_GenerateKeyPair(cipher_PubKey p0, cipher_SecKey p1) { -cipher_PubKey tmpp0 = new_cipher_PubKeyp(); -cipher_SecKey tmpp1 = new_cipher_SecKeyp(); - try { +var tmpp0 = cipher_PubKey.getCPtr (p0); +var tmpp1 = cipher_SecKey.getCPtr (p1); + { uint ret = skycoinPINVOKE.SKY_cipher_GenerateKeyPair(tmpp0, tmpp1); return ret; - } finally { -delete_cipher_SecKeyp(tmpp1); } } @@ -1509,24 +1457,20 @@ public static uint SKY_wallet_CreateAddresses(_GoString_ p0, _GoString_ p1, long } public static uint SKY_wallet_GetSkycoinWalletEntry(cipher_PubKey p0, cipher_SecKey p1, SWIGTYPE_p_ReadableEntry__Handle p2) { -cipher_PubKey tmpp0 = new_cipher_PubKeyp(); -cipher_SecKey tmpp1 = new_cipher_SecKeyp(); - try { +var tmpp0 = cipher_PubKey.getCPtr (p0); +var tmpp1 = cipher_SecKey.getCPtr (p1); + { uint ret = skycoinPINVOKE.SKY_wallet_GetSkycoinWalletEntry(tmpp0, tmpp1, SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p2)); return ret; - } finally { -delete_cipher_SecKeyp(tmpp1); } } public static uint SKY_wallet_GetBitcoinWalletEntry(cipher_PubKey p0, cipher_SecKey p1, SWIGTYPE_p_ReadableEntry__Handle p2) { -cipher_PubKey tmpp0 = new_cipher_PubKeyp(); -cipher_SecKey tmpp1 = new_cipher_SecKeyp(); - try { +var tmpp0 = cipher_PubKey.getCPtr (p0); +var tmpp1 = cipher_SecKey.getCPtr (p1); + { uint ret = skycoinPINVOKE.SKY_wallet_GetBitcoinWalletEntry(tmpp0, tmpp1, SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p2)); return ret; - } finally { -delete_cipher_SecKeyp(tmpp1); } } @@ -1674,7 +1618,7 @@ public static uint SKY_cipher_AddressFromBytes(GoSlice p0, cipher__Address p1) { } public static uint SKY_cipher_AddressFromPubKey(cipher_PubKey p0, cipher__Address p1) { -cipher_PubKey tmpp0 = new_cipher_PubKeyp(); +var tmpp0 = cipher_PubKey.getCPtr (p0); { uint ret = skycoinPINVOKE.SKY_cipher_AddressFromPubKey(tmpp0, cipher__Address.getCPtr(p1)); return ret; @@ -1682,12 +1626,10 @@ public static uint SKY_cipher_AddressFromPubKey(cipher_PubKey p0, cipher__Addres } public static uint SKY_cipher_AddressFromSecKey(cipher_SecKey p0, cipher__Address p1) { -cipher_SecKey tmpp0 = new_cipher_SecKeyp(); - try { +var tmpp0 = cipher_SecKey.getCPtr (p0); + { uint ret = skycoinPINVOKE.SKY_cipher_AddressFromSecKey(tmpp0, cipher__Address.getCPtr(p1)); return ret; - } finally { -delete_cipher_SecKeyp(tmpp0); } } @@ -1713,7 +1655,7 @@ public static uint SKY_cipher_Address_BitcoinBytes(cipher__Address p0, SWIGTYPE_ } public static uint SKY_cipher_Address_Verify(cipher__Address p0, cipher_PubKey p1) { -cipher_PubKey tmpp1 = new_cipher_PubKeyp(); +var tmpp1 = cipher_PubKey.getCPtr (p1); { uint ret = skycoinPINVOKE.SKY_cipher_Address_Verify(cipher__Address.getCPtr(p0), tmpp1); return ret; @@ -1741,7 +1683,7 @@ public static uint SKY_cipher_Address_BitcoinChecksum(cipher__Address p0, SWIGTY } public static uint SKY_cipher_BitcoinAddressFromPubkey(cipher_PubKey p0, SWIGTYPE_p_GoString_ p1) { -cipher_PubKey tmpp0 = new_cipher_PubKeyp(); +var tmpp0 = cipher_PubKey.getCPtr (p0); { uint ret = skycoinPINVOKE.SKY_cipher_BitcoinAddressFromPubkey(tmpp0, SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; @@ -1749,12 +1691,10 @@ public static uint SKY_cipher_BitcoinAddressFromPubkey(cipher_PubKey p0, SWIGTYP } public static uint SKY_cipher_BitcoinWalletImportFormatFromSeckey(cipher_SecKey p0, SWIGTYPE_p_GoString_ p1) { -cipher_SecKey tmpp0 = new_cipher_SecKeyp(); - try { +var tmpp0 = cipher_SecKey.getCPtr (p0); + { uint ret = skycoinPINVOKE.SKY_cipher_BitcoinWalletImportFormatFromSeckey(tmpp0, SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; - } finally { -delete_cipher_SecKeyp(tmpp0); } } @@ -1765,13 +1705,11 @@ public static uint SKY_cipher_BitcoinAddressFromBytes(GoSlice p0, cipher__Addres } public static uint SKY_cipher_SecKeyFromWalletImportFormat(_GoString_ p0, cipher_SecKey p1) { -cipher_SecKey tmpp1 = new_cipher_SecKeyp(); - try { +var tmpp1 = cipher_SecKey.getCPtr (p1); + { uint ret = skycoinPINVOKE.SKY_cipher_SecKeyFromWalletImportFormat(_GoString_.getCPtr(p0), tmpp1); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; - } finally { -delete_cipher_SecKeyp(tmpp1); } } @@ -1866,7 +1804,7 @@ public static uint SKY_api_Handle_Client_GetWalletResponseEntriesCount(SWIGTYPE_ } public static uint SKY_api_Handle_WalletGetEntry(SWIGTYPE_p_GoInt64_ p0, uint p1, cipher__Address p2, cipher_PubKey p3) { -cipher_PubKey tmpp3 = new_cipher_PubKeyp(); +var tmpp3 = cipher_PubKey.getCPtr (p3); { uint ret = skycoinPINVOKE.SKY_api_Handle_WalletGetEntry(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1, cipher__Address.getCPtr(p2), tmpp3); return ret; @@ -1963,32 +1901,26 @@ public static uint SKY_secp256k1go_Number_IsEqual(SWIGTYPE_p_GoInt64_ p0, SWIGTY } public static uint SKY_coin_UxOut_Hash(coin__UxOut p0, cipher_SecKey p1) { -cipher_SecKey tmpp1 = new_cipher_SecKeyp(); - try { +var tmpp1 = cipher_SecKey.getCPtr (p1); + { uint ret = skycoinPINVOKE.SKY_coin_UxOut_Hash(coin__UxOut.getCPtr(p0), tmpp1); return ret; - } finally { -delete_cipher_SecKeyp(tmpp1); } } public static uint SKY_coin_UxOut_SnapshotHash(coin__UxOut p0, cipher_SecKey p1) { -cipher_SecKey tmpp1 = new_cipher_SecKeyp(); - try { +var tmpp1 = cipher_SecKey.getCPtr (p1); + { uint ret = skycoinPINVOKE.SKY_coin_UxOut_SnapshotHash(coin__UxOut.getCPtr(p0), tmpp1); return ret; - } finally { -delete_cipher_SecKeyp(tmpp1); } } public static uint SKY_coin_UxBody_Hash(coin__UxBody p0, cipher_SecKey p1) { -cipher_SecKey tmpp1 = new_cipher_SecKeyp(); - try { +var tmpp1 = cipher_SecKey.getCPtr (p1); + { uint ret = skycoinPINVOKE.SKY_coin_UxBody_Hash(coin__UxBody.getCPtr(p0), tmpp1); return ret; - } finally { -delete_cipher_SecKeyp(tmpp1); } } @@ -2490,104 +2422,82 @@ public static uint SKY_cipher_HashRipemd160(GoSlice p0, SWIGTYPE_p_a_20__GoUint8 } public static uint SKY_cipher_SHA256_Set(cipher_SecKey p0, GoSlice p1) { -cipher_SecKey tmpp0 = new_cipher_SecKeyp(); - try { +var tmpp0 = cipher_SecKey.getCPtr (p0); + { uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Set(tmpp0, GoSlice.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; - } finally { -delete_cipher_SecKeyp(tmpp0); } } public static uint SKY_cipher_SHA256_Hex(cipher_SecKey p0, SWIGTYPE_p_GoString_ p1) { -cipher_SecKey tmpp0 = new_cipher_SecKeyp(); - try { +var tmpp0 = cipher_SecKey.getCPtr (p0); + { uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Hex(tmpp0, SWIGTYPE_p_GoString_.getCPtr(p1)); return ret; - } finally { -delete_cipher_SecKeyp(tmpp0); } } public static uint SKY_cipher_SHA256_Xor(cipher_SecKey p0, cipher_SecKey p1, cipher_SecKey p2) { -cipher_SecKey tmpp0 = new_cipher_SecKeyp(); -cipher_SecKey tmpp1 = new_cipher_SecKeyp(); -cipher_SecKey tmpp2 = new_cipher_SecKeyp(); - try { +var tmpp0 = cipher_SecKey.getCPtr (p0); +var tmpp1 = cipher_SecKey.getCPtr (p1); +var tmpp2 = cipher_SecKey.getCPtr (p2); + { uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Xor(tmpp0, tmpp1, tmpp2); return ret; - } finally { -delete_cipher_SecKeyp(tmpp0); -delete_cipher_SecKeyp(tmpp1); -delete_cipher_SecKeyp(tmpp2); } } public static uint SKY_cipher_SumSHA256(GoSlice p0, cipher_SecKey p1) { -cipher_SecKey tmpp1 = new_cipher_SecKeyp(); - try { +var tmpp1 = cipher_SecKey.getCPtr (p1); + { uint ret = skycoinPINVOKE.SKY_cipher_SumSHA256(GoSlice.getCPtr(p0), tmpp1); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; - } finally { -delete_cipher_SecKeyp(tmpp1); } } public static uint SKY_cipher_SHA256FromHex(_GoString_ p0, cipher_SecKey p1) { -cipher_SecKey tmpp1 = new_cipher_SecKeyp(); - try { +var tmpp1 = cipher_SecKey.getCPtr (p1); + { uint ret = skycoinPINVOKE.SKY_cipher_SHA256FromHex(_GoString_.getCPtr(p0), tmpp1); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; - } finally { -delete_cipher_SecKeyp(tmpp1); } } public static uint SKY_cipher_DoubleSHA256(GoSlice p0, cipher_SecKey p1) { -cipher_SecKey tmpp1 = new_cipher_SecKeyp(); - try { +var tmpp1 = cipher_SecKey.getCPtr (p1); + { uint ret = skycoinPINVOKE.SKY_cipher_DoubleSHA256(GoSlice.getCPtr(p0), tmpp1); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; - } finally { -delete_cipher_SecKeyp(tmpp1); } } public static uint SKY_cipher_AddSHA256(cipher_SecKey p0, cipher_SecKey p1, cipher_SecKey p2) { -cipher_SecKey tmpp0 = new_cipher_SecKeyp(); -cipher_SecKey tmpp1 = new_cipher_SecKeyp(); -cipher_SecKey tmpp2 = new_cipher_SecKeyp(); - try { +var tmpp0 = cipher_SecKey.getCPtr (p0); +var tmpp1 = cipher_SecKey.getCPtr (p1); +var tmpp2 = cipher_SecKey.getCPtr (p2); + { uint ret = skycoinPINVOKE.SKY_cipher_AddSHA256(tmpp0, tmpp1, tmpp2); return ret; - } finally { -delete_cipher_SecKeyp(tmpp0); -delete_cipher_SecKeyp(tmpp1); -delete_cipher_SecKeyp(tmpp2); } } public static uint SKY_cipher_Merkle(GoSlice p0, cipher_SecKey p1) { -cipher_SecKey tmpp1 = new_cipher_SecKeyp(); - try { +var tmpp1 = cipher_SecKey.getCPtr (p1); + { uint ret = skycoinPINVOKE.SKY_cipher_Merkle(GoSlice.getCPtr(p0), tmpp1); return ret; - } finally { -delete_cipher_SecKeyp(tmpp1); } } public static uint SKY_cipher_SHA256_Null(cipher_SecKey p0, SWIGTYPE_p_unsigned_char p1) { -cipher_SecKey tmpp0 = new_cipher_SecKeyp(); - try { +var tmpp0 = cipher_SecKey.getCPtr (p0); + { uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Null(tmpp0, SWIGTYPE_p_unsigned_char.getCPtr(p1)); return ret; - } finally { -delete_cipher_SecKeyp(tmpp0); } } @@ -2617,22 +2527,18 @@ public static uint SKY_coin_Transaction_GetInputsCount(SWIGTYPE_p_GoInt64_ p0, S } public static uint SKY_coin_Transaction_GetInputAt(SWIGTYPE_p_GoInt64_ p0, long p1, cipher_SecKey p2) { -cipher_SecKey tmpp2 = new_cipher_SecKeyp(); - try { +var tmpp2 = cipher_SecKey.getCPtr (p2); + { uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetInputAt(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1, tmpp2); return ret; - } finally { -delete_cipher_SecKeyp(tmpp2); } } public static uint SKY_coin_Transaction_SetInputAt(SWIGTYPE_p_GoInt64_ p0, long p1, cipher_SecKey p2) { -cipher_SecKey tmpp2 = new_cipher_SecKeyp(); - try { +var tmpp2 = cipher_SecKey.getCPtr (p2); + { uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetInputAt(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1, tmpp2); return ret; - } finally { -delete_cipher_SecKeyp(tmpp2); } } @@ -2692,24 +2598,19 @@ public static uint SKY_coin_Transaction_VerifyInput(SWIGTYPE_p_GoInt64_ p0, SWIG } public static uint SKY_coin_Transaction_PushInput(SWIGTYPE_p_GoInt64_ p0, cipher_SecKey p1, SWIGTYPE_p_unsigned_short p2) { -cipher_SecKey tmpp1 = new_cipher_SecKeyp(); - try { +var tmpp1 = cipher_SecKey.getCPtr (p1); + { uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushInput(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1, SWIGTYPE_p_unsigned_short.getCPtr(p2)); return ret; - } finally { -delete_cipher_SecKeyp(tmpp1); } } public static uint SKY_coin_TransactionOutput_UxID(coin__TransactionOutput p0, cipher_SecKey p1, cipher_SecKey p2) { -cipher_SecKey tmpp1 = new_cipher_SecKeyp(); -cipher_SecKey tmpp2 = new_cipher_SecKeyp(); - try { +var tmpp1 = cipher_SecKey.getCPtr (p1); +var tmpp2 = cipher_SecKey.getCPtr (p2); + { uint ret = skycoinPINVOKE.SKY_coin_TransactionOutput_UxID(coin__TransactionOutput.getCPtr(p0), tmpp1, tmpp2); return ret; - } finally { -delete_cipher_SecKeyp(tmpp1); -delete_cipher_SecKeyp(tmpp2); } } @@ -2730,22 +2631,18 @@ public static uint SKY_coin_Transaction_Size(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_ } public static uint SKY_coin_Transaction_Hash(SWIGTYPE_p_GoInt64_ p0, cipher_SecKey p1) { -cipher_SecKey tmpp1 = new_cipher_SecKeyp(); - try { +var tmpp1 = cipher_SecKey.getCPtr (p1); + { uint ret = skycoinPINVOKE.SKY_coin_Transaction_Hash(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); return ret; - } finally { -delete_cipher_SecKeyp(tmpp1); } } public static uint SKY_coin_Transaction_SizeHash(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_long_long p1, cipher_SecKey p2) { -cipher_SecKey tmpp2 = new_cipher_SecKeyp(); - try { +var tmpp2 = cipher_SecKey.getCPtr (p2); + { uint ret = skycoinPINVOKE.SKY_coin_Transaction_SizeHash(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1), tmpp2); return ret; - } finally { -delete_cipher_SecKeyp(tmpp2); } } @@ -2765,12 +2662,10 @@ public static uint SKY_coin_Transaction_UpdateHeader(SWIGTYPE_p_GoInt64_ p0) { } public static uint SKY_coin_Transaction_HashInner(SWIGTYPE_p_GoInt64_ p0, cipher_SecKey p1) { -cipher_SecKey tmpp1 = new_cipher_SecKeyp(); - try { +var tmpp1 = cipher_SecKey.getCPtr (p1); + { uint ret = skycoinPINVOKE.SKY_coin_Transaction_HashInner(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); return ret; - } finally { -delete_cipher_SecKeyp(tmpp1); } } diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index 9623d0d8..df409af4 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -570,19 +570,19 @@ static skycoinPINVOKE() { public static extern void delete_GoSlice(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewBlock")] - public static extern uint SKY_coin_NewBlock(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, cipher_SecKey jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); + public static extern uint SKY_coin_NewBlock(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SignedBlock_VerifySignature")] - public static extern uint SKY_coin_SignedBlock_VerifySignature(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_PubKey jarg2); + public static extern uint SKY_coin_SignedBlock_VerifySignature(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewGenesisBlock")] public static extern uint SKY_coin_NewGenesisBlock(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_HashHeader")] - public static extern uint SKY_coin_Block_HashHeader(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2); + public static extern uint SKY_coin_Block_HashHeader(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_PreHashHeader")] - public static extern uint SKY_coin_Block_PreHashHeader(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2); + public static extern uint SKY_coin_Block_PreHashHeader(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_Time")] public static extern uint SKY_coin_Block_Time(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -591,7 +591,7 @@ static skycoinPINVOKE() { public static extern uint SKY_coin_Block_Seq(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_HashBody")] - public static extern uint SKY_coin_Block_HashBody(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2); + public static extern uint SKY_coin_Block_HashBody(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_Size")] public static extern uint SKY_coin_Block_Size(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -600,13 +600,13 @@ static skycoinPINVOKE() { public static extern uint SKY_coin_Block_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_GetTransaction")] - public static extern uint SKY_coin_Block_GetTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2, global::System.Runtime.InteropServices.HandleRef jarg4); + public static extern uint SKY_coin_Block_GetTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewBlockHeader")] - public static extern uint SKY_coin_NewBlockHeader(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2, ulong jarg3, ulong jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); + public static extern uint SKY_coin_NewBlockHeader(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, ulong jarg3, ulong jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockHeader_Hash")] - public static extern uint SKY_coin_BlockHeader_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2); + public static extern uint SKY_coin_BlockHeader_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockHeader_Bytes")] public static extern uint SKY_coin_BlockHeader_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -615,7 +615,7 @@ static skycoinPINVOKE() { public static extern uint SKY_coin_BlockHeader_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockBody_Hash")] - public static extern uint SKY_coin_BlockBody_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2); + public static extern uint SKY_coin_BlockBody_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockBody_Size")] public static extern uint SKY_coin_BlockBody_Size(global::System.Runtime.InteropServices.HandleRef jarg2); @@ -843,7 +843,7 @@ static skycoinPINVOKE() { public static extern uint SKY_api_CreatedTransaction_ToTransaction(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewCreatedTransactionOutput")] - public static extern uint SKY_api_NewCreatedTransactionOutput(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2); + public static extern uint SKY_api_NewCreatedTransactionOutput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewCreatedTransactionInput")] public static extern uint SKY_api_NewCreatedTransactionInput(global::System.Runtime.InteropServices.HandleRef jarg1); @@ -1089,40 +1089,40 @@ static skycoinPINVOKE() { public static extern uint SKY_cipher_RandByte(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_NewPubKey")] - public static extern uint SKY_cipher_NewPubKey(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_PubKey jarg2); + public static extern uint SKY_cipher_NewPubKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromHex")] - public static extern uint SKY_cipher_PubKeyFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_PubKey jarg2); + public static extern uint SKY_cipher_PubKeyFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromSecKey")] - public static extern uint SKY_cipher_PubKeyFromSecKey(cipher_SecKey jarg1, cipher_PubKey jarg2); + public static extern uint SKY_cipher_PubKeyFromSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromSig")] - public static extern uint SKY_cipher_PubKeyFromSig(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2, cipher_PubKey jarg3); + public static extern uint SKY_cipher_PubKeyFromSig(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKey_Verify")] - public static extern uint SKY_cipher_PubKey_Verify(cipher_PubKey jarg1); + public static extern uint SKY_cipher_PubKey_Verify(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKey_Hex")] - public static extern uint SKY_cipher_PubKey_Hex(cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_PubKey_Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKey_ToAddressHash")] - public static extern uint SKY_cipher_PubKey_ToAddressHash(cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_PubKey_ToAddressHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_NewSecKey")] - public static extern uint SKY_cipher_NewSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2); + public static extern uint SKY_cipher_NewSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKeyFromHex")] - public static extern uint SKY_cipher_SecKeyFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2); + public static extern uint SKY_cipher_SecKeyFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKey_Verify")] - public static extern uint SKY_cipher_SecKey_Verify(cipher_SecKey jarg1); + public static extern uint SKY_cipher_SecKey_Verify(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKey_Hex")] - public static extern uint SKY_cipher_SecKey_Hex(cipher_SecKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_SecKey_Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_ECDH")] - public static extern uint SKY_cipher_ECDH(cipher_PubKey jarg1, cipher_SecKey jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_cipher_ECDH(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_NewSig")] public static extern uint SKY_cipher_NewSig(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1134,22 +1134,22 @@ static skycoinPINVOKE() { public static extern uint SKY_cipher_Sig_Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SignHash")] - public static extern uint SKY_cipher_SignHash(cipher_SecKey jarg1, cipher_SecKey jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_cipher_SignHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_ChkSig")] - public static extern uint SKY_cipher_ChkSig(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_cipher_ChkSig(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_VerifySignedHash")] - public static extern uint SKY_cipher_VerifySignedHash(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2); + public static extern uint SKY_cipher_VerifySignedHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_VerifySignature")] - public static extern uint SKY_cipher_VerifySignature(cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, cipher_SecKey jarg3); + public static extern uint SKY_cipher_VerifySignature(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPair")] - public static extern uint SKY_cipher_GenerateDeterministicKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_PubKey jarg2, cipher_SecKey jarg3); + public static extern uint SKY_cipher_GenerateDeterministicKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_DeterministicKeyPairIterator")] - public static extern uint SKY_cipher_DeterministicKeyPairIterator(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, cipher_PubKey jarg3, cipher_SecKey jarg4); + public static extern uint SKY_cipher_DeterministicKeyPairIterator(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairs")] public static extern uint SKY_cipher_GenerateDeterministicKeyPairs(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -1158,13 +1158,13 @@ static skycoinPINVOKE() { public static extern uint SKY_cipher_GenerateDeterministicKeyPairsSeed(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_TestSecKey")] - public static extern uint SKY_cipher_TestSecKey(cipher_SecKey jarg1); + public static extern uint SKY_cipher_TestSecKey(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_TestSecKeyHash")] - public static extern uint SKY_cipher_TestSecKeyHash(cipher_SecKey jarg1, cipher_SecKey jarg2); + public static extern uint SKY_cipher_TestSecKeyHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateKeyPair")] - public static extern uint SKY_cipher_GenerateKeyPair(cipher_PubKey jarg1, cipher_SecKey jarg2); + public static extern uint SKY_cipher_GenerateKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Create")] public static extern uint SKY_secp256k1go_Signature_Create(); @@ -1269,10 +1269,10 @@ static skycoinPINVOKE() { public static extern uint SKY_wallet_CreateAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, byte jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_GetSkycoinWalletEntry")] - public static extern uint SKY_wallet_GetSkycoinWalletEntry(cipher_PubKey jarg1, cipher_SecKey jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_wallet_GetSkycoinWalletEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_GetBitcoinWalletEntry")] - public static extern uint SKY_wallet_GetBitcoinWalletEntry(cipher_PubKey jarg1, cipher_SecKey jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_wallet_GetBitcoinWalletEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Print")] public static extern uint SKY_secp256k1go_XYZ_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1356,10 +1356,10 @@ static skycoinPINVOKE() { public static extern uint SKY_cipher_AddressFromBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddressFromPubKey")] - public static extern uint SKY_cipher_AddressFromPubKey(cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_AddressFromPubKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddressFromSecKey")] - public static extern uint SKY_cipher_AddressFromSecKey(cipher_SecKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_AddressFromSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinDecodeBase58Address")] public static extern uint SKY_cipher_BitcoinDecodeBase58Address(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1374,7 +1374,7 @@ static skycoinPINVOKE() { public static extern uint SKY_cipher_Address_BitcoinBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_Verify")] - public static extern uint SKY_cipher_Address_Verify(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_PubKey jarg2); + public static extern uint SKY_cipher_Address_Verify(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_String")] public static extern uint SKY_cipher_Address_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1389,16 +1389,16 @@ static skycoinPINVOKE() { public static extern uint SKY_cipher_Address_BitcoinChecksum(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinAddressFromPubkey")] - public static extern uint SKY_cipher_BitcoinAddressFromPubkey(cipher_PubKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_BitcoinAddressFromPubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinWalletImportFormatFromSeckey")] - public static extern uint SKY_cipher_BitcoinWalletImportFormatFromSeckey(cipher_SecKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_BitcoinWalletImportFormatFromSeckey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinAddressFromBytes")] public static extern uint SKY_cipher_BitcoinAddressFromBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKeyFromWalletImportFormat")] - public static extern uint SKY_cipher_SecKeyFromWalletImportFormat(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2); + public static extern uint SKY_cipher_SecKeyFromWalletImportFormat(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_JsonEncode_Handle")] public static extern uint SKY_JsonEncode_Handle(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1455,7 +1455,7 @@ static skycoinPINVOKE() { public static extern uint SKY_api_Handle_Client_GetWalletResponseEntriesCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletGetEntry")] - public static extern uint SKY_api_Handle_WalletGetEntry(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, cipher_PubKey jarg4); + public static extern uint SKY_api_Handle_WalletGetEntry(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_WalletResponseGetEntry")] public static extern uint SKY_api_Handle_WalletResponseGetEntry(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); @@ -1509,13 +1509,13 @@ static skycoinPINVOKE() { public static extern uint SKY_secp256k1go_Number_IsEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxOut_Hash")] - public static extern uint SKY_coin_UxOut_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2); + public static extern uint SKY_coin_UxOut_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxOut_SnapshotHash")] - public static extern uint SKY_coin_UxOut_SnapshotHash(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2); + public static extern uint SKY_coin_UxOut_SnapshotHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxBody_Hash")] - public static extern uint SKY_coin_UxBody_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2); + public static extern uint SKY_coin_UxBody_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxOut_CoinHours")] public static extern uint SKY_coin_UxOut_CoinHours(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -1794,31 +1794,31 @@ static skycoinPINVOKE() { public static extern uint SKY_cipher_HashRipemd160(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Set")] - public static extern uint SKY_cipher_SHA256_Set(cipher_SecKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_SHA256_Set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Hex")] - public static extern uint SKY_cipher_SHA256_Hex(cipher_SecKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_SHA256_Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Xor")] - public static extern uint SKY_cipher_SHA256_Xor(cipher_SecKey jarg1, cipher_SecKey jarg2, cipher_SecKey jarg3); + public static extern uint SKY_cipher_SHA256_Xor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SumSHA256")] - public static extern uint SKY_cipher_SumSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2); + public static extern uint SKY_cipher_SumSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256FromHex")] - public static extern uint SKY_cipher_SHA256FromHex(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2); + public static extern uint SKY_cipher_SHA256FromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_DoubleSHA256")] - public static extern uint SKY_cipher_DoubleSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2); + public static extern uint SKY_cipher_DoubleSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddSHA256")] - public static extern uint SKY_cipher_AddSHA256(cipher_SecKey jarg1, cipher_SecKey jarg2, cipher_SecKey jarg3); + public static extern uint SKY_cipher_AddSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Merkle")] - public static extern uint SKY_cipher_Merkle(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2); + public static extern uint SKY_cipher_Merkle(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Null")] - public static extern uint SKY_cipher_SHA256_Null(cipher_SecKey jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_SHA256_Null(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Create_Transaction")] public static extern uint SKY_coin_Create_Transaction(); @@ -1836,10 +1836,10 @@ static skycoinPINVOKE() { public static extern uint SKY_coin_Transaction_GetInputsCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetInputAt")] - public static extern uint SKY_coin_Transaction_GetInputAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, cipher_SecKey jarg3); + public static extern uint SKY_coin_Transaction_GetInputAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SetInputAt")] - public static extern uint SKY_coin_Transaction_SetInputAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, cipher_SecKey jarg3); + public static extern uint SKY_coin_Transaction_SetInputAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetOutputsCount")] public static extern uint SKY_coin_Transaction_GetOutputsCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1875,10 +1875,10 @@ static skycoinPINVOKE() { public static extern uint SKY_coin_Transaction_VerifyInput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_PushInput")] - public static extern uint SKY_coin_Transaction_PushInput(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_coin_Transaction_PushInput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_TransactionOutput_UxID")] - public static extern uint SKY_coin_TransactionOutput_UxID(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2, cipher_SecKey jarg3); + public static extern uint SKY_coin_TransactionOutput_UxID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_PushOutput")] public static extern uint SKY_coin_Transaction_PushOutput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, ulong jarg3, ulong jarg4); @@ -1890,10 +1890,10 @@ static skycoinPINVOKE() { public static extern uint SKY_coin_Transaction_Size(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Hash")] - public static extern uint SKY_coin_Transaction_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2); + public static extern uint SKY_coin_Transaction_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SizeHash")] - public static extern uint SKY_coin_Transaction_SizeHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, cipher_SecKey jarg3); + public static extern uint SKY_coin_Transaction_SizeHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_TxID")] public static extern uint SKY_coin_Transaction_TxID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1905,7 +1905,7 @@ static skycoinPINVOKE() { public static extern uint SKY_coin_Transaction_UpdateHeader(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_HashInner")] - public static extern uint SKY_coin_Transaction_HashInner(global::System.Runtime.InteropServices.HandleRef jarg1, cipher_SecKey jarg2); + public static extern uint SKY_coin_Transaction_HashInner(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Serialize")] public static extern uint SKY_coin_Transaction_Serialize(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index bcde0fca..a2d25feb 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -2190,12 +2190,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock(void * jarg arg6 = &temp6; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoUint64)jarg2; arg3 = (cipher__SHA256 *)jarg3; { - SWIG_AsVal_long(jarg4, (long*)&arg4); + jarg4 = (long*)&arg4; } arg5 = (FeeCalculator *)jarg5; result = (GoUint32)SKY_coin_NewBlock(arg1,arg2,(GoUint8_ (*)[32])arg3,arg4,arg5,arg6); @@ -2246,7 +2246,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_HashHeader(voi GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (cipher__SHA256 *)jarg2; result = (GoUint32)SKY_coin_Block_HashHeader(arg1,(GoUint8_ (*)[32])arg2); @@ -2262,7 +2262,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_PreHashHeader( GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (cipher__SHA256 *)jarg2; result = (GoUint32)SKY_coin_Block_PreHashHeader(arg1,(GoUint8_ (*)[32])arg2); @@ -2278,7 +2278,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_Time(void * ja GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoUint64 *)jarg2; result = (GoUint32)SKY_coin_Block_Time(arg1,arg2); @@ -2294,7 +2294,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_Seq(void * jar GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoUint64 *)jarg2; result = (GoUint32)SKY_coin_Block_Seq(arg1,arg2); @@ -2310,7 +2310,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_HashBody(void GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (cipher__SHA256 *)jarg2; result = (GoUint32)SKY_coin_Block_HashBody(arg1,(GoUint8_ (*)[32])arg2); @@ -2326,7 +2326,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_Size(void * ja GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoInt *)jarg2; result = (GoUint32)SKY_coin_Block_Size(arg1,arg2); @@ -2342,7 +2342,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_String(void * GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_coin_Block_String(arg1,arg2); @@ -2364,7 +2364,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_GetTransaction arg3 = &temp3; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (cipher__SHA256 *)jarg2; arg4 = (GoUint8 *)jarg4; @@ -2389,7 +2389,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlockHeader(void arg3 = (GoUint64)jarg3; arg4 = (GoUint64)jarg4; { - SWIG_AsVal_long(jarg5, (long*)&arg5); + jarg5 = (long*)&arg5; } arg6 = (coin__BlockHeader *)jarg6; result = (GoUint32)SKY_coin_NewBlockHeader(arg1,(GoUint8_ (*)[32])arg2,arg3,arg4,arg5,arg6); @@ -2447,7 +2447,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Hash(void GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (cipher__SHA256 *)jarg2; result = (GoUint32)SKY_coin_BlockBody_Hash(arg1,(GoUint8_ (*)[32])arg2); @@ -2480,7 +2480,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Bytes(void GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (coin__UxArray *)jarg2; result = (GoUint32)SKY_coin_BlockBody_Bytes(arg1,arg2); @@ -2498,7 +2498,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_CreateUnspents(void arg1 = (coin__BlockHeader *)jarg1; { - SWIG_AsVal_long(jarg2, (long*)&arg2); + jarg2 = (long*)&arg2; } arg3 = (coin__UxArray *)jarg3; result = (GoUint32)SKY_coin_CreateUnspents(arg1,arg2,arg3); @@ -2517,7 +2517,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_CreateUnspent(void * arg1 = (coin__BlockHeader *)jarg1; { - SWIG_AsVal_long(jarg2, (long*)&arg2); + jarg2 = (long*)&arg2; } arg3 = (GoInt)jarg3; arg4 = (coin__UxOut *)jarg4; @@ -2534,7 +2534,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetBlockObject(void GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (coin__Block **)jarg2; result = (GoUint32)SKY_coin_GetBlockObject(arg1,arg2); @@ -2554,7 +2554,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetBlockBody(void * arg2 = &temp2; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } result = (GoUint32)SKY_coin_GetBlockBody(arg1,arg2); jresult = result; @@ -2573,7 +2573,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewEmptyBlock(void * arg2 = &temp2; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } result = (GoUint32)SKY_coin_NewEmptyBlock(arg1,arg2); jresult = result; @@ -2694,7 +2694,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CSRF(void * ja GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_api_Client_CSRF(arg1,arg2); @@ -2714,7 +2714,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Version(void * arg2 = &temp2; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } result = (GoUint32)SKY_api_Client_Version(arg1,arg2); jresult = result; @@ -2733,7 +2733,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Outputs(void * arg2 = &temp2; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } result = (GoUint32)SKY_api_Client_Outputs(arg1,arg2); jresult = result; @@ -2754,7 +2754,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_OutputsForAddr arg3 = &temp3; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoSlice *)jarg2; if (!argp2) { @@ -2781,7 +2781,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_OutputsForHash arg3 = &temp3; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoSlice *)jarg2; if (!argp2) { @@ -2806,7 +2806,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CoinSupply(voi arg2 = &temp2; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } result = (GoUint32)SKY_api_Client_CoinSupply(arg1,arg2); jresult = result; @@ -2827,7 +2827,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockByHash(vo arg3 = &temp3; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoString *)jarg2; if (!argp2) { @@ -2853,7 +2853,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockBySeq(voi arg3 = &temp3; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoUint64)jarg2; result = (GoUint32)SKY_api_Client_BlockBySeq(arg1,arg2,arg3); @@ -2875,7 +2875,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Blocks(void * arg4 = &temp4; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoUint64)jarg2; arg3 = (GoUint64)jarg3; @@ -2897,7 +2897,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_LastBlocks(voi arg3 = &temp3; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoUint64)jarg2; result = (GoUint32)SKY_api_Client_LastBlocks(arg1,arg2,arg3); @@ -2917,7 +2917,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockchainMeta arg2 = &temp2; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } result = (GoUint32)SKY_api_Client_BlockchainMetadata(arg1,arg2); jresult = result; @@ -2936,7 +2936,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockchainProg arg2 = &temp2; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } result = (GoUint32)SKY_api_Client_BlockchainProgress(arg1,arg2); jresult = result; @@ -2953,7 +2953,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Balance(void * GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoSlice *)jarg2; if (!argp2) { @@ -2981,7 +2981,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UxOut(void * j arg3 = &temp3; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoString *)jarg2; if (!argp2) { @@ -3008,7 +3008,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressUxOuts( arg3 = &temp3; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoString *)jarg2; if (!argp2) { @@ -3031,7 +3031,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Wallet(void * GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoString *)jarg2; if (!argp2) { @@ -3053,7 +3053,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Wallets(void * GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (Wallets__Handle *)jarg2; result = (GoUint32)SKY_api_Client_Wallets(arg1,arg2); @@ -3074,7 +3074,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateUnencryp GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoString *)jarg2; if (!argp2) { @@ -3110,7 +3110,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateEncrypte GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoString *)jarg2; if (!argp2) { @@ -3150,7 +3150,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NewWalletAddre GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoString *)jarg2; if (!argp2) { @@ -3181,7 +3181,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_WalletBalance( GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoString *)jarg2; if (!argp2) { @@ -3214,7 +3214,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Spend(void * j arg6 = &temp6; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoString *)jarg2; if (!argp2) { @@ -3257,7 +3257,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateTransact arg3 = &temp3; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } result = (GoUint32)SKY_api_Client_CreateTransaction(arg1,arg2,arg3); jresult = result; @@ -3275,7 +3275,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UpdateWallet(v GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoString *)jarg2; if (!argp2) { @@ -3306,7 +3306,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_WalletFolderNa arg2 = &temp2; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } result = (GoUint32)SKY_api_Client_WalletFolderName(arg1,arg2); jresult = result; @@ -3322,7 +3322,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NewSeed(void * GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoInt)jarg2; arg3 = (GoString_ *)jarg3; @@ -3343,7 +3343,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_GetWalletSeed( GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoString *)jarg2; if (!argp2) { @@ -3377,7 +3377,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkConnect arg3 = &temp3; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoString *)jarg2; if (!argp2) { @@ -3402,7 +3402,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkConnect arg2 = &temp2; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } result = (GoUint32)SKY_api_Client_NetworkConnections(arg1,arg2); jresult = result; @@ -3421,7 +3421,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkDefault arg2 = &temp2; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } result = (GoUint32)SKY_api_Client_NetworkDefaultConnections(arg1,arg2); jresult = result; @@ -3440,7 +3440,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkTrusted arg2 = &temp2; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } result = (GoUint32)SKY_api_Client_NetworkTrustedConnections(arg1,arg2); jresult = result; @@ -3459,7 +3459,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkExchang arg2 = &temp2; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } result = (GoUint32)SKY_api_Client_NetworkExchangeableConnections(arg1,arg2); jresult = result; @@ -3478,7 +3478,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_PendingTransac arg2 = &temp2; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } result = (GoUint32)SKY_api_Client_PendingTransactions(arg1,arg2); jresult = result; @@ -3499,7 +3499,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Transaction(vo arg3 = &temp3; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoString *)jarg2; if (!argp2) { @@ -3526,7 +3526,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Transactions(v arg3 = &temp3; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoSlice *)jarg2; if (!argp2) { @@ -3553,7 +3553,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_ConfirmedTrans arg3 = &temp3; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoSlice *)jarg2; if (!argp2) { @@ -3580,7 +3580,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UnconfirmedTra arg3 = &temp3; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoSlice *)jarg2; if (!argp2) { @@ -3602,10 +3602,10 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_InjectTransact GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } { - SWIG_AsVal_long(jarg2, (long*)&arg2); + jarg2 = (long*)&arg2; } arg3 = (GoString_ *)jarg3; result = (GoUint32)SKY_api_Client_InjectTransaction(arg1,arg2,arg3); @@ -3625,7 +3625,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_ResendUnconfir arg2 = &temp2; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } result = (GoUint32)SKY_api_Client_ResendUnconfirmedTransactions(arg1,arg2); jresult = result; @@ -3642,7 +3642,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_RawTransaction GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoString *)jarg2; if (!argp2) { @@ -3670,7 +3670,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressTransac arg3 = &temp3; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoString *)jarg2; if (!argp2) { @@ -3696,7 +3696,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Richlist(void arg3 = &temp3; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (api__RichlistParams *)jarg2; result = (GoUint32)SKY_api_Client_Richlist(arg1,arg2,arg3); @@ -3712,7 +3712,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressCount(v GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoUint64 *)jarg2; result = (GoUint32)SKY_api_Client_AddressCount(arg1,arg2); @@ -3729,7 +3729,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UnloadWallet(v GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoString *)jarg2; if (!argp2) { @@ -3754,7 +3754,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Health(void * arg2 = &temp2; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } result = (GoUint32)SKY_api_Client_Health(arg1,arg2); jresult = result; @@ -3773,7 +3773,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_EncryptWallet( GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoString *)jarg2; if (!argp2) { @@ -3805,7 +3805,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_DecryptWallet( GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoString *)jarg2; if (!argp2) { @@ -4005,7 +4005,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewWalletResponse(voi GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (WalletResponse__Handle *)jarg2; result = (GoUint32)SKY_api_NewWalletResponse(arg1,arg2); @@ -4027,7 +4027,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreateTransactionR arg3 = &temp3; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoSlice *)jarg2; if (!argp2) { @@ -4054,7 +4054,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreatedTransaction arg3 = &temp3; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoSlice *)jarg2; if (!argp2) { @@ -4079,7 +4079,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_CreatedTransaction_To arg2 = &temp2; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } result = (GoUint32)SKY_api_CreatedTransaction_ToTransaction(arg1,arg2); jresult = result; @@ -4160,7 +4160,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewWallet(void * j } arg1 = *argp1; { - SWIG_AsVal_long(jarg2, (long*)&arg2); + jarg2 = (long*)&arg2; } result = (GoUint32)SKY_wallet_NewWallet(arg1,arg2,arg3); jresult = result; @@ -4178,7 +4178,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Lock(void * GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoSlice *)jarg2; if (!argp2) { @@ -4211,7 +4211,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Unlock(void arg3 = &temp3; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoSlice *)jarg2; if (!argp2) { @@ -4256,7 +4256,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Save(void * GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoString *)jarg2; if (!argp2) { @@ -4276,7 +4276,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Validate(vo GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } result = (GoUint32)SKY_wallet_Wallet_Validate(arg1); jresult = result; @@ -4291,7 +4291,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Type(void * GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_wallet_Wallet_Type(arg1,arg2); @@ -4307,7 +4307,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Version(voi GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_wallet_Wallet_Version(arg1,arg2); @@ -4323,7 +4323,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Filename(vo GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_wallet_Wallet_Filename(arg1,arg2); @@ -4339,7 +4339,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Label(void GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_wallet_Wallet_Label(arg1,arg2); @@ -4355,7 +4355,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_IsEncrypted GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoUint8 *)jarg2; result = (GoUint32)SKY_wallet_Wallet_IsEncrypted(arg1,arg2); @@ -4372,7 +4372,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_GenerateAdd GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoUint64)jarg2; arg3 = (coin__UxArray *)jarg3; @@ -4389,7 +4389,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_GetAddresse GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (coin__UxArray *)jarg2; result = (GoUint32)SKY_wallet_Wallet_GetAddresses(arg1,arg2); @@ -4407,7 +4407,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_GetEntry(vo GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (cipher__Address *)jarg2; arg3 = (wallet__Entry *)jarg3; @@ -4425,7 +4425,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_AddEntry(vo GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (wallet__Entry *)jarg2; result = (GoUint32)SKY_wallet_Wallet_AddEntry(arg1,arg2); @@ -4571,7 +4571,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CheckWalletBalance(vo arg3 = &temp3; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoString *)jarg2; if (!argp2) { @@ -4598,7 +4598,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetBalanceOfAddresses arg3 = &temp3; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoSlice *)jarg2; if (!argp2) { @@ -4674,7 +4674,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableEntry_Save GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoString *)jarg2; if (!argp2) { @@ -4716,7 +4716,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableWallet_Sav GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoString *)jarg2; if (!argp2) { @@ -4738,7 +4738,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableWallet_Loa GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoString *)jarg2; if (!argp2) { @@ -4758,7 +4758,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableWallet_Era GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } result = (GoUint32)SKY_wallet_ReadableWallet_Erase(arg1); jresult = result; @@ -5228,7 +5228,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_CSRF(void * GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_webrpc_Client_CSRF(arg1,arg2); @@ -5245,10 +5245,10 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_InjectTrans GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } { - SWIG_AsVal_long(jarg2, (long*)&arg2); + jarg2 = (long*)&arg2; } arg3 = (GoString_ *)jarg3; result = (GoUint32)SKY_webrpc_Client_InjectTransaction(arg1,arg2,arg3); @@ -5268,7 +5268,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetStatus(v arg2 = &temp2; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } result = (GoUint32)SKY_webrpc_Client_GetStatus(arg1,arg2); jresult = result; @@ -5289,7 +5289,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetTransact arg3 = &temp3; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoString *)jarg2; if (!argp2) { @@ -5312,7 +5312,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetAddressU GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoSlice *)jarg2; if (!argp2) { @@ -5336,7 +5336,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetBlocks(v GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoUint64)jarg2; arg3 = (GoUint64)jarg3; @@ -5356,7 +5356,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetBlocksBy GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoSlice *)jarg2; if (!argp2) { @@ -5379,7 +5379,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetLastBloc GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoUint64)jarg2; arg3 = (coin__UxArray *)jarg3; @@ -5554,7 +5554,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GenerateAddressesInFi arg1 = *argp1; arg2 = (GoUint64)jarg2; { - SWIG_AsVal_long(jarg3, (long*)&arg3); + jarg3 = (long*)&arg3; } arg4 = (coin__UxArray *)jarg4; result = (GoUint32)SKY_cli_GenerateAddressesInFile(arg1,arg2,arg3,arg4); @@ -6195,7 +6195,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Get arg2 = &temp2; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } result = (GoUint32)SKY_secp256k1go_Signature_GetR(arg1,arg2); jresult = result; @@ -6214,7 +6214,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Get arg2 = &temp2; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } result = (GoUint32)SKY_secp256k1go_Signature_GetS(arg1,arg2); jresult = result; @@ -6230,7 +6230,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Pri GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoString *)jarg2; if (!argp2) { @@ -6253,11 +6253,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Ver GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (secp256k1go__XY *)jarg2; { - SWIG_AsVal_long(jarg3, (long*)&arg3); + jarg3 = (long*)&arg3; } arg4 = (GoUint8 *)jarg4; result = (GoUint32)SKY_secp256k1go_Signature_Verify(arg1,arg2,arg3,arg4); @@ -6276,11 +6276,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Rec GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (secp256k1go__XY *)jarg2; { - SWIG_AsVal_long(jarg3, (long*)&arg3); + jarg3 = (long*)&arg3; } arg4 = (GoInt)jarg4; arg5 = (GoUint8 *)jarg5; @@ -6301,16 +6301,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Sig GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } { - SWIG_AsVal_long(jarg2, (long*)&arg2); + jarg2 = (long*)&arg2; } { - SWIG_AsVal_long(jarg3, (long*)&arg3); + jarg3 = (long*)&arg3; } { - SWIG_AsVal_long(jarg4, (long*)&arg4); + jarg4 = (long*)&arg4; } arg5 = (GoInt *)jarg5; arg6 = (GoInt *)jarg6; @@ -6328,7 +6328,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Par GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoSlice *)jarg2; if (!argp2) { @@ -6349,7 +6349,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Byt GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (coin__UxArray *)jarg2; result = (GoUint32)SKY_secp256k1go_Signature_Bytes(arg1,arg2); @@ -6366,7 +6366,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_App_Run(void * jarg1, GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoString *)jarg2; if (!argp2) { @@ -6387,7 +6387,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_GetCoin(void * GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_cli_Config_GetCoin(arg1,arg2); @@ -6403,7 +6403,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_GetRPCAddress( GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_cli_Config_GetRPCAddress(arg1,arg2); @@ -6423,7 +6423,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_RPCClientFromApp(void arg2 = &temp2; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } result = (GoUint32)SKY_cli_RPCClientFromApp(arg1,arg2); jresult = result; @@ -6926,10 +6926,10 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_ECmult(vo arg1 = (secp256k1go__XYZ *)jarg1; arg2 = (secp256k1go__XYZ *)jarg2; { - SWIG_AsVal_long(jarg3, (long*)&arg3); + jarg3 = (long*)&arg3; } { - SWIG_AsVal_long(jarg4, (long*)&arg4); + jarg4 = (long*)&arg4; } result = (GoUint32)SKY_secp256k1go_XYZ_ECmult(arg1,arg2,arg3,arg4); jresult = result; @@ -7005,7 +7005,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_ECmultGen(voi arg1 = (secp256k1go__XYZ *)jarg1; { - SWIG_AsVal_long(jarg2, (long*)&arg2); + jarg2 = (long*)&arg2; } result = (GoUint32)SKY_secp256k1go_ECmultGen(arg1,arg2); jresult = result; @@ -7127,7 +7127,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_handle_close(void * jarg1) { Handle arg1 ; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } SKY_handle_close(arg1); } @@ -7144,7 +7144,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_handle_copy(void * jarg1) arg2 = &temp2; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } result = (GoUint32)SKY_handle_copy(arg1,arg2); jresult = result; @@ -7511,7 +7511,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_JsonEncode_Handle(void * GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_JsonEncode_Handle(arg1,arg2); @@ -7527,7 +7527,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Progress_GetCurren GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoUint64 *)jarg2; result = (GoUint32)SKY_Handle_Progress_GetCurrent(arg1,arg2); @@ -7543,7 +7543,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Block_GetHeadSeq(v GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoUint64 *)jarg2; result = (GoUint32)SKY_Handle_Block_GetHeadSeq(arg1,arg2); @@ -7559,7 +7559,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Block_GetHeadHash( GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_Handle_Block_GetHeadHash(arg1,arg2); @@ -7575,7 +7575,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Block_GetPreviousB GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_Handle_Block_GetPreviousBlockHash(arg1,arg2); @@ -7596,7 +7596,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Blocks_GetAt(void arg3 = &temp3; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoUint64)jarg2; result = (GoUint32)SKY_Handle_Blocks_GetAt(arg1,arg2,arg3); @@ -7612,7 +7612,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Blocks_GetCount(vo GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoUint64 *)jarg2; result = (GoUint32)SKY_Handle_Blocks_GetCount(arg1,arg2); @@ -7628,7 +7628,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Connections_GetCou GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoUint64 *)jarg2; result = (GoUint32)SKY_Handle_Connections_GetCount(arg1,arg2); @@ -7644,7 +7644,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Strings_GetCount(v GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoUint32 *)jarg2; result = (GoUint32)SKY_Handle_Strings_GetCount(arg1,arg2); @@ -7659,7 +7659,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Strings_Sort(void GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } result = (GoUint32)SKY_Handle_Strings_Sort(arg1); jresult = result; @@ -7675,7 +7675,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Strings_GetAt(void GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoInt)jarg2; arg3 = (GoString_ *)jarg3; @@ -7692,7 +7692,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWall GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_api_Handle_Client_GetWalletDir(arg1,arg2); @@ -7708,7 +7708,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWall GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_api_Handle_Client_GetWalletFileName(arg1,arg2); @@ -7724,7 +7724,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWall GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_api_Handle_Client_GetWalletLabel(arg1,arg2); @@ -7741,10 +7741,10 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWall GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } { - SWIG_AsVal_long(jarg2, (long*)&arg2); + jarg2 = (long*)&arg2; } arg3 = (GoString_ *)jarg3; result = (GoUint32)SKY_api_Handle_Client_GetWalletFullPath(arg1,arg2,arg3); @@ -7760,7 +7760,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletMeta( GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoStringMap_ *)jarg2; result = (GoUint32)SKY_api_Handle_GetWalletMeta(arg1,arg2); @@ -7776,7 +7776,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletEntri GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoUint32 *)jarg2; result = (GoUint32)SKY_api_Handle_GetWalletEntriesCount(arg1,arg2); @@ -7792,7 +7792,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWall GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoUint32 *)jarg2; result = (GoUint32)SKY_api_Handle_Client_GetWalletResponseEntriesCount(arg1,arg2); @@ -7810,7 +7810,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletGetEntry GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoUint32)jarg2; arg3 = (cipher__Address *)jarg3; @@ -7830,7 +7830,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletResponse GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoUint32)jarg2; arg3 = (GoString_ *)jarg3; @@ -7848,7 +7848,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletResponse GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoUint8 *)jarg2; result = (GoUint32)SKY_api_Handle_WalletResponseIsEncrypted(arg1,arg2); @@ -7864,7 +7864,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletResponse GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_api_Handle_WalletResponseGetCryptoType(arg1,arg2); @@ -7880,7 +7880,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletsRespons GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoUint32 *)jarg2; result = (GoUint32)SKY_api_Handle_WalletsResponseGetCount(arg1,arg2); @@ -7897,7 +7897,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletsRespons GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoUint32)jarg2; arg3 = (WalletResponse__Handle *)jarg3; @@ -7914,7 +7914,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletFolde GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_api_Handle_GetWalletFolderAddress(arg1,arg2); @@ -7930,7 +7930,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletSeed( GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_api_Handle_GetWalletSeed(arg1,arg2); @@ -7946,7 +7946,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletLastS GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_api_Handle_GetWalletLastSeed(arg1,arg2); @@ -7964,7 +7964,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetBuildInfoDa GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoString_ *)jarg2; arg3 = (GoString_ *)jarg3; @@ -7999,7 +7999,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_ripemd160_Write(void * ja GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoSlice *)jarg2; if (!argp2) { @@ -8023,7 +8023,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_ripemd160_Sum(void * jarg GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoSlice *)jarg2; if (!argp2) { @@ -8061,7 +8061,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_Print( GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoString *)jarg2; if (!argp2) { @@ -8083,7 +8083,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_SetHex GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoString *)jarg2; if (!argp2) { @@ -8104,7 +8104,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_IsOdd( GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoUint8 *)jarg2; result = (GoUint32)SKY_secp256k1go_Number_IsOdd(arg1,arg2); @@ -8121,10 +8121,10 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_IsEqua GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } { - SWIG_AsVal_long(jarg2, (long*)&arg2); + jarg2 = (long*)&arg2; } arg3 = (GoUint8 *)jarg3; result = (GoUint32)SKY_secp256k1go_Number_IsEqual(arg1,arg2,arg3); @@ -8365,7 +8365,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Keys(v GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (coin__UxArray *)jarg2; result = (GoUint32)SKY_coin_AddressUxOuts_Keys(arg1,arg2); @@ -8381,7 +8381,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Flatte GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (coin__UxArray *)jarg2; result = (GoUint32)SKY_coin_AddressUxOuts_Flatten(arg1,arg2); @@ -8402,10 +8402,10 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Sub(vo arg3 = &temp3; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } { - SWIG_AsVal_long(jarg2, (long*)&arg2); + jarg2 = (long*)&arg2; } result = (GoUint32)SKY_coin_AddressUxOuts_Sub(arg1,arg2,arg3); jresult = result; @@ -8425,10 +8425,10 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Add(vo arg3 = &temp3; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } { - SWIG_AsVal_long(jarg2, (long*)&arg2); + jarg2 = (long*)&arg2; } result = (GoUint32)SKY_coin_AddressUxOuts_Add(arg1,arg2,arg3); jresult = result; @@ -8444,7 +8444,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Get(vo GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (cipher__Address *)jarg2; arg3 = (coin__UxArray *)jarg3; @@ -8462,7 +8462,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_HasKey GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (cipher__Address *)jarg2; arg3 = (GoUint8 *)jarg3; @@ -8480,7 +8480,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_GetOut GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (cipher__Address *)jarg2; arg3 = (GoInt *)jarg3; @@ -8497,7 +8497,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Length GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoInt *)jarg2; result = (GoUint32)SKY_coin_AddressUxOuts_Length(arg1,arg2); @@ -8514,7 +8514,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Set(vo GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (cipher__Address *)jarg2; arg3 = (coin__UxArray *)jarg3; @@ -8651,7 +8651,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_AddPrivateKey(void * GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoString *)jarg2; if (!argp2) { @@ -8687,7 +8687,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_AddPrivateKeyToFile(v } arg2 = *argp2; { - SWIG_AsVal_long(jarg3, (long*)&arg3); + jarg3 = (long*)&arg3; } result = (GoUint32)SKY_cli_AddPrivateKeyToFile(arg1,arg2,arg3); jresult = result; @@ -9166,7 +9166,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_VerifyTransactionFee( GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoUint64)jarg2; result = (GoUint32)SKY_fee_VerifyTransactionFee(arg1,arg2); @@ -9226,7 +9226,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_TransactionFee(void * GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoUint64)jarg2; arg3 = (coin__UxArray *)jarg3; @@ -9259,7 +9259,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_FullWalletPath GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_cli_Config_FullWalletPath(arg1,arg2); @@ -9275,7 +9275,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_FullDBPath(voi GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_cli_Config_FullDBPath(arg1,arg2); @@ -9291,7 +9291,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_NewApp(void * jarg1, GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (App__Handle *)jarg2; result = (GoUint32)SKY_cli_NewApp(arg1,arg2); @@ -9311,7 +9311,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_RPCClientFromContext( arg2 = &temp2; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } result = (GoUint32)SKY_cli_RPCClientFromContext(arg1,arg2); jresult = result; @@ -9330,7 +9330,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_ConfigFromContext(voi arg2 = &temp2; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } result = (GoUint32)SKY_cli_ConfigFromContext(arg1,arg2); jresult = result; @@ -9382,7 +9382,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromWallet arg6 = &temp6; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoString *)jarg2; if (!argp2) { @@ -9403,7 +9403,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromWallet } arg4 = *argp4; { - SWIG_AsVal_long(jarg5, (long*)&arg5); + jarg5 = (long*)&arg5; } result = (GoUint32)SKY_cli_CreateRawTxFromWallet(arg1,arg2,arg3,arg4,arg5,arg6); jresult = result; @@ -9431,7 +9431,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromAddres arg7 = &temp7; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoString *)jarg2; if (!argp2) { @@ -9458,7 +9458,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromAddres } arg5 = *argp5; { - SWIG_AsVal_long(jarg6, (long*)&arg6); + jarg6 = (long*)&arg6; } result = (GoUint32)SKY_cli_CreateRawTxFromAddress(arg1,arg2,arg3,arg4,arg5,arg6,arg7); jresult = result; @@ -9486,10 +9486,10 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTx(void * ja arg7 = &temp7; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } { - SWIG_AsVal_long(jarg2, (long*)&arg2); + jarg2 = (long*)&arg2; } argp3 = (GoSlice *)jarg3; if (!argp3) { @@ -9657,7 +9657,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetWalletOutputsFromF GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoString *)jarg2; if (!argp2) { @@ -9684,7 +9684,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetWalletOutputs(void arg2 = &temp2; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg3 = (ReadableOutputSet_Handle *)jarg3; result = (GoUint32)SKY_cli_GetWalletOutputs(arg1,arg2,arg3); @@ -10261,7 +10261,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Copy(voi arg2 = &temp2; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } result = (GoUint32)SKY_coin_Transaction_Copy(arg1,arg2); jresult = result; @@ -10276,7 +10276,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetTransactionObject GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (coin__Transaction **)jarg2; result = (GoUint32)SKY_coin_GetTransactionObject(arg1,arg2); @@ -10292,7 +10292,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_ResetInp GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoInt)jarg2; result = (GoUint32)SKY_coin_Transaction_ResetInputs(arg1,arg2); @@ -10308,7 +10308,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetInput GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoInt *)jarg2; result = (GoUint32)SKY_coin_Transaction_GetInputsCount(arg1,arg2); @@ -10325,7 +10325,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetInput GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoInt)jarg2; arg3 = (cipher__SHA256 *)jarg3; @@ -10343,7 +10343,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SetInput GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoInt)jarg2; arg3 = (cipher__SHA256 *)jarg3; @@ -10360,7 +10360,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetOutpu GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoInt *)jarg2; result = (GoUint32)SKY_coin_Transaction_GetOutputsCount(arg1,arg2); @@ -10377,7 +10377,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetOutpu GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoInt)jarg2; arg3 = (coin__TransactionOutput *)jarg3; @@ -10395,7 +10395,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SetOutpu GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoInt)jarg2; arg3 = (coin__TransactionOutput *)jarg3; @@ -10412,7 +10412,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetSigna GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoInt *)jarg2; result = (GoUint32)SKY_coin_Transaction_GetSignaturesCount(arg1,arg2); @@ -10429,7 +10429,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetSigna GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoInt)jarg2; arg3 = (cipher__Sig *)jarg3; @@ -10447,7 +10447,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SetSigna GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoInt)jarg2; arg3 = (cipher__Sig *)jarg3; @@ -10464,7 +10464,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_PushSign GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (cipher__Sig *)jarg2; result = (GoUint32)SKY_coin_Transaction_PushSignature(arg1,(GoUint8_ (*)[65])arg2); @@ -10480,7 +10480,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_ResetOut GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoInt)jarg2; result = (GoUint32)SKY_coin_Transaction_ResetOutputs(arg1,arg2); @@ -10496,7 +10496,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_ResetSig GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoInt)jarg2; result = (GoUint32)SKY_coin_Transaction_ResetSignatures(arg1,arg2); @@ -10511,7 +10511,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Verify(v GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } result = (GoUint32)SKY_coin_Transaction_Verify(arg1); jresult = result; @@ -10526,7 +10526,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_VerifyIn GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (coin__UxArray *)jarg2; result = (GoUint32)SKY_coin_Transaction_VerifyInput(arg1,arg2); @@ -10543,7 +10543,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_PushInpu GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (cipher__SHA256 *)jarg2; arg3 = (GoUint16 *)jarg3; @@ -10578,7 +10578,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_PushOutp GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (cipher__Address *)jarg2; arg3 = (GoUint64)jarg3; @@ -10597,7 +10597,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SignInpu GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } argp2 = (GoSlice *)jarg2; if (!argp2) { @@ -10618,7 +10618,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Size(voi GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoInt *)jarg2; result = (GoUint32)SKY_coin_Transaction_Size(arg1,arg2); @@ -10634,7 +10634,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Hash(voi GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (cipher__SHA256 *)jarg2; result = (GoUint32)SKY_coin_Transaction_Hash(arg1,(GoUint8_ (*)[32])arg2); @@ -10651,7 +10651,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SizeHash GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoInt *)jarg2; arg3 = (cipher__SHA256 *)jarg3; @@ -10668,7 +10668,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_TxID(voi GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (coin__UxArray *)jarg2; result = (GoUint32)SKY_coin_Transaction_TxID(arg1,arg2); @@ -10684,7 +10684,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_TxIDHex( GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_coin_Transaction_TxIDHex(arg1,arg2); @@ -10699,7 +10699,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_UpdateHe GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } result = (GoUint32)SKY_coin_Transaction_UpdateHeader(arg1); jresult = result; @@ -10714,7 +10714,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_HashInne GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (cipher__SHA256 *)jarg2; result = (GoUint32)SKY_coin_Transaction_HashInner(arg1,(GoUint8_ (*)[32])arg2); @@ -10730,7 +10730,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Serializ GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (coin__UxArray *)jarg2; result = (GoUint32)SKY_coin_Transaction_Serialize(arg1,arg2); @@ -10769,7 +10769,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_OutputHo GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoUint64 *)jarg2; result = (GoUint32)SKY_coin_Transaction_OutputHours(arg1,arg2); @@ -10800,7 +10800,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetTransactionsObjec GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (coin__UxArray **)jarg2; result = (GoUint32)SKY_coin_GetTransactionsObject(arg1,arg2); @@ -10816,7 +10816,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Length( GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoInt *)jarg2; result = (GoUint32)SKY_coin_Transactions_Length(arg1,arg2); @@ -10832,10 +10832,10 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Add(voi GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } { - SWIG_AsVal_long(jarg2, (long*)&arg2); + jarg2 = (long*)&arg2; } result = (GoUint32)SKY_coin_Transactions_Add(arg1,arg2); jresult = result; @@ -10851,7 +10851,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Fees(vo GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (FeeCalculator *)jarg2; arg3 = (GoUint64 *)jarg3; @@ -10873,7 +10873,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_GetAt(v arg3 = &temp3; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoInt)jarg2; result = (GoUint32)SKY_coin_Transactions_GetAt(arg1,arg2,arg3); @@ -10889,7 +10889,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Hashes( GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (coin__UxArray *)jarg2; result = (GoUint32)SKY_coin_Transactions_Hashes(arg1,arg2); @@ -10905,7 +10905,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Size(vo GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoInt *)jarg2; result = (GoUint32)SKY_coin_Transactions_Size(arg1,arg2); @@ -10926,7 +10926,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Truncat arg3 = &temp3; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoInt)jarg2; result = (GoUint32)SKY_coin_Transactions_TruncateBytesTo(arg1,arg2,arg3); @@ -10947,7 +10947,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortTransactions(voi arg3 = &temp3; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (FeeCalculator *)jarg2; result = (GoUint32)SKY_coin_SortTransactions(arg1,arg2,arg3); @@ -10968,7 +10968,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewSortableTransacti arg3 = &temp3; } { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (FeeCalculator *)jarg2; result = (GoUint32)SKY_coin_NewSortableTransactions(arg1,arg2,arg3); @@ -10983,7 +10983,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortableTransactions GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } result = (GoUint32)SKY_coin_SortableTransactions_Sort(arg1); jresult = result; @@ -10998,7 +10998,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortableTransactions GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoInt *)jarg2; result = (GoUint32)SKY_coin_SortableTransactions_Len(arg1,arg2); @@ -11016,7 +11016,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortableTransactions GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoInt)jarg2; arg3 = (GoInt)jarg3; @@ -11035,7 +11035,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortableTransactions GoUint32 result; { - SWIG_AsVal_long(jarg1, (long*)&arg1); + jarg1 = (long*)&arg1; } arg2 = (GoInt)jarg2; arg3 = (GoInt)jarg3; diff --git a/LibskycoinNetTest/LibskycoinNetTest.csproj b/LibskycoinNetTest/LibskycoinNetTest.csproj index 797c17e5..cf867fb0 100644 --- a/LibskycoinNetTest/LibskycoinNetTest.csproj +++ b/LibskycoinNetTest/LibskycoinNetTest.csproj @@ -7,7 +7,7 @@ Library LibskycoinNetTest LibskycoinNetTest - v4.7 + true diff --git a/LibskycoinNetTest/check_cipher_address.cs b/LibskycoinNetTest/check_cipher_address.cs index 892ecc90..5d4fce4b 100644 --- a/LibskycoinNetTest/check_cipher_address.cs +++ b/LibskycoinNetTest/check_cipher_address.cs @@ -7,15 +7,19 @@ public class check_cipher_address { [Test ()] public void TestDecodeBase58Address () { uint err = 0; - cipher_SecKey s = new cipher_SecKey(); + var s = new skycoin.cipher_SecKey (); + var p = new skycoin.cipher_PubKey (); + err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK, "Faild SKY_cipher_GenerateKeyPair"); err = skycoin.skycoin.SKY_cipher_SecKey_Verify (s); Assert.AreEqual (err, skycoin.skycoin.SKY_OK, "Faild SKY_cipher_SecKey_Verify "); - cipher_PubKey p = new skycoin.cipher_PubKey (); err = skycoin.skycoin.SKY_cipher_PubKey_Verify (p); Assert.AreEqual (err, skycoin.skycoin.SKY_OK, "Faild SKY_cipher_PubKey_Verify"); - - err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK, "Faild SKY_cipher_GenerateKeyPair"); + var a = new skycoin.cipher__Address (); + err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, a); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK, "Faild SKY_cipher_AddressFromPubKey"); + err = skycoin.skycoin.SKY_cipher_Address_Verify (a, p); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK, " Failed SKY_cipher_Address_Verify"); } } diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index 1c0b4de6..f5ffdd89 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit 1c0b4de6c23d26211e5567337e462544f5c9303c +Subproject commit f5ffdd89c6ab1ab14c92e6bb67670a537aad05da From e8466026fe52864021951e943f697cd68c2e5f30 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Wed, 12 Sep 2018 23:58:12 -0400 Subject: [PATCH 20/73] [swig] Purge test --- LibskycoinNet/skycoin/skycoin.cs | 1276 +++++++++++++------- LibskycoinNet/skycoin/skycoinPINVOKE.cs | 156 +-- LibskycoinNet/skycoin/skycoinnet_wrap.c | 1086 ++++------------- LibskycoinNetTest/LibskycoinNetTest.cs | 20 - LibskycoinNetTest/LibskycoinNetTest.csproj | 1 - LibskycoinNetTest/check_cipher_address.cs | 19 +- gopath/src/github.com/skycoin/skycoin | 2 +- 7 files changed, 1134 insertions(+), 1426 deletions(-) delete mode 100644 LibskycoinNetTest/LibskycoinNetTest.cs diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs index cc129f15..af25ba08 100644 --- a/LibskycoinNet/skycoin/skycoin.cs +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -149,9 +149,12 @@ public static uint SKY_coin_Block_Size(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_long_l return ret; } - public static uint SKY_coin_Block_String(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Block_String(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; + public static uint SKY_coin_Block_String(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { +var tmpp1 = _GoString_.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_coin_Block_String(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_coin_Block_GetTransaction(SWIGTYPE_p_GoInt64_ p0, cipher_SecKey p1, SWIGTYPE_p_unsigned_char p3) { @@ -183,9 +186,12 @@ public static uint SKY_coin_BlockHeader_Bytes(coin__BlockHeader p0, SWIGTYPE_p_G return ret; } - public static uint SKY_coin_BlockHeader_String(coin__BlockHeader p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_BlockHeader_String(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; + public static uint SKY_coin_BlockHeader_String(coin__BlockHeader p0, _GoString_ p1) { +var tmpp1 = _GoString_.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_coin_BlockHeader_String(coin__BlockHeader.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_coin_BlockBody_Hash(SWIGTYPE_p_GoInt64_ p0, cipher_SecKey p1) { @@ -231,9 +237,12 @@ public static uint SKY_coin_NewEmptyBlock(SWIGTYPE_p_GoInt64_ p0) { return ret; } - public static uint SKY_bip39_NewDefaultMnemomic(SWIGTYPE_p_GoString_ p0) { - uint ret = skycoinPINVOKE.SKY_bip39_NewDefaultMnemomic(SWIGTYPE_p_GoString_.getCPtr(p0)); - return ret; + public static uint SKY_bip39_NewDefaultMnemomic(_GoString_ p0) { +var tmpp0 = _GoString_.getCPtr (p0); + { + uint ret = skycoinPINVOKE.SKY_bip39_NewDefaultMnemomic(tmpp0); + return ret; + } } public static uint SKY_bip39_NewEntropy(long p0, SWIGTYPE_p_GoSlice_ p1) { @@ -241,33 +250,45 @@ public static uint SKY_bip39_NewEntropy(long p0, SWIGTYPE_p_GoSlice_ p1) { return ret; } - public static uint SKY_bip39_NewMnemonic(GoSlice p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_bip39_NewMnemonic(GoSlice.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_bip39_NewMnemonic(GoSlice p0, _GoString_ p1) { +var tmpp1 = _GoString_.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_bip39_NewMnemonic(GoSlice.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } - public static uint SKY_bip39_MnemonicToByteArray(_GoString_ p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_bip39_MnemonicToByteArray(_GoString_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_bip39_MnemonicToByteArray(string p0, SWIGTYPE_p_GoSlice_ p1) { +var tmpp0 = p0; + { + uint ret = skycoinPINVOKE.SKY_bip39_MnemonicToByteArray(tmpp0, SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } } - public static uint SKY_bip39_IsMnemonicValid(_GoString_ p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_bip39_IsMnemonicValid(_GoString_.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_bip39_IsMnemonicValid(string p0, SWIGTYPE_p_unsigned_char p1) { +var tmpp0 = p0; + { + uint ret = skycoinPINVOKE.SKY_bip39_IsMnemonicValid(tmpp0, SWIGTYPE_p_unsigned_char.getCPtr(p1)); + return ret; + } } - public static uint SKY_api_NewClient(_GoString_ p0, SWIGTYPE_p_Client__Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_NewClient(_GoString_.getCPtr(p0), SWIGTYPE_p_Client__Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_api_NewClient(string p0, SWIGTYPE_p_Client__Handle p1) { +var tmpp0 = p0; + { + uint ret = skycoinPINVOKE.SKY_api_NewClient(tmpp0, SWIGTYPE_p_Client__Handle.getCPtr(p1)); + return ret; + } } - public static uint SKY_api_Client_CSRF(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_CSRF(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; + public static uint SKY_api_Client_CSRF(SWIGTYPE_p_Client__Handle p0, _GoString_ p1) { +var tmpp1 = _GoString_.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_api_Client_CSRF(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_api_Client_Version(SWIGTYPE_p_Client__Handle p0) { @@ -297,10 +318,12 @@ public static uint SKY_api_Client_CoinSupply(SWIGTYPE_p_Client__Handle p0) { return ret; } - public static uint SKY_api_Client_BlockByHash(SWIGTYPE_p_Client__Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_BlockByHash(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_api_Client_BlockByHash(SWIGTYPE_p_Client__Handle p0, string p1) { +var tmpp1 = p1; + { + uint ret = skycoinPINVOKE.SKY_api_Client_BlockByHash(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_api_Client_BlockBySeq(SWIGTYPE_p_Client__Handle p0, ulong p1) { @@ -334,22 +357,28 @@ public static uint SKY_api_Client_Balance(SWIGTYPE_p_Client__Handle p0, GoSlice return ret; } - public static uint SKY_api_Client_UxOut(SWIGTYPE_p_Client__Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_UxOut(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_api_Client_UxOut(SWIGTYPE_p_Client__Handle p0, string p1) { +var tmpp1 = p1; + { + uint ret = skycoinPINVOKE.SKY_api_Client_UxOut(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1); + return ret; + } } - public static uint SKY_api_Client_AddressUxOuts(SWIGTYPE_p_Client__Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_AddressUxOuts(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_api_Client_AddressUxOuts(SWIGTYPE_p_Client__Handle p0, string p1) { +var tmpp1 = p1; + { + uint ret = skycoinPINVOKE.SKY_api_Client_AddressUxOuts(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1); + return ret; + } } - public static uint SKY_api_Client_Wallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_WalletResponse__Handle p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_Wallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_api_Client_Wallet(SWIGTYPE_p_Client__Handle p0, string p1, SWIGTYPE_p_WalletResponse__Handle p2) { +var tmpp1 = p1; + { + uint ret = skycoinPINVOKE.SKY_api_Client_Wallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1, SWIGTYPE_p_WalletResponse__Handle.getCPtr(p2)); + return ret; + } } public static uint SKY_api_Client_Wallets(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Wallets__Handle p1) { @@ -357,34 +386,50 @@ public static uint SKY_api_Client_Wallets(SWIGTYPE_p_Client__Handle p0, SWIGTYPE return ret; } - public static uint SKY_api_Client_CreateUnencryptedWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, long p3, SWIGTYPE_p_WalletResponse__Handle p4) { - uint ret = skycoinPINVOKE.SKY_api_Client_CreateUnencryptedWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), p3, SWIGTYPE_p_WalletResponse__Handle.getCPtr(p4)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_api_Client_CreateUnencryptedWallet(SWIGTYPE_p_Client__Handle p0, string p1, string p2, long p3, SWIGTYPE_p_WalletResponse__Handle p4) { +var tmpp1 = p1; +var tmpp2 = p2; + { + uint ret = skycoinPINVOKE.SKY_api_Client_CreateUnencryptedWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1, tmpp2, p3, SWIGTYPE_p_WalletResponse__Handle.getCPtr(p4)); + return ret; + } } - public static uint SKY_api_Client_CreateEncryptedWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, _GoString_ p3, long p4, SWIGTYPE_p_WalletResponse__Handle p5) { - uint ret = skycoinPINVOKE.SKY_api_Client_CreateEncryptedWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), _GoString_.getCPtr(p3), p4, SWIGTYPE_p_WalletResponse__Handle.getCPtr(p5)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_api_Client_CreateEncryptedWallet(SWIGTYPE_p_Client__Handle p0, string p1, string p2, string p3, long p4, SWIGTYPE_p_WalletResponse__Handle p5) { +var tmpp1 = p1; +var tmpp2 = p2; +var tmpp3 = p3; + { + uint ret = skycoinPINVOKE.SKY_api_Client_CreateEncryptedWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1, tmpp2, tmpp3, p4, SWIGTYPE_p_WalletResponse__Handle.getCPtr(p5)); + return ret; + } } - public static uint SKY_api_Client_NewWalletAddress(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, long p2, _GoString_ p3, SWIGTYPE_p_Strings__Handle p4) { - uint ret = skycoinPINVOKE.SKY_api_Client_NewWalletAddress(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p2, _GoString_.getCPtr(p3), SWIGTYPE_p_Strings__Handle.getCPtr(p4)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_api_Client_NewWalletAddress(SWIGTYPE_p_Client__Handle p0, string p1, long p2, string p3, SWIGTYPE_p_Strings__Handle p4) { +var tmpp1 = p1; +var tmpp3 = p3; + { + uint ret = skycoinPINVOKE.SKY_api_Client_NewWalletAddress(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1, p2, tmpp3, SWIGTYPE_p_Strings__Handle.getCPtr(p4)); + return ret; + } } - public static uint SKY_api_Client_WalletBalance(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, wallet__BalancePair p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_WalletBalance(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), wallet__BalancePair.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_api_Client_WalletBalance(SWIGTYPE_p_Client__Handle p0, string p1, wallet__BalancePair p2) { +var tmpp1 = p1; + { + uint ret = skycoinPINVOKE.SKY_api_Client_WalletBalance(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1, wallet__BalancePair.getCPtr(p2)); + return ret; + } } - public static uint SKY_api_Client_Spend(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, ulong p3, _GoString_ p4) { - uint ret = skycoinPINVOKE.SKY_api_Client_Spend(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), p3, _GoString_.getCPtr(p4)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_api_Client_Spend(SWIGTYPE_p_Client__Handle p0, string p1, string p2, ulong p3, string p4) { +var tmpp1 = p1; +var tmpp2 = p2; +var tmpp4 = p4; + { + uint ret = skycoinPINVOKE.SKY_api_Client_Spend(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1, tmpp2, p3, tmpp4); + return ret; + } } public static uint SKY_api_Client_CreateTransaction(SWIGTYPE_p_Client__Handle p0) { @@ -392,10 +437,13 @@ public static uint SKY_api_Client_CreateTransaction(SWIGTYPE_p_Client__Handle p0 return ret; } - public static uint SKY_api_Client_UpdateWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_UpdateWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_api_Client_UpdateWallet(SWIGTYPE_p_Client__Handle p0, string p1, string p2) { +var tmpp1 = p1; +var tmpp2 = p2; + { + uint ret = skycoinPINVOKE.SKY_api_Client_UpdateWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1, tmpp2); + return ret; + } } public static uint SKY_api_Client_WalletFolderName(SWIGTYPE_p_Client__Handle p0) { @@ -403,21 +451,30 @@ public static uint SKY_api_Client_WalletFolderName(SWIGTYPE_p_Client__Handle p0) return ret; } - public static uint SKY_api_Client_NewSeed(SWIGTYPE_p_Client__Handle p0, long p1, SWIGTYPE_p_GoString_ p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_NewSeed(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoString_.getCPtr(p2)); - return ret; + public static uint SKY_api_Client_NewSeed(SWIGTYPE_p_Client__Handle p0, long p1, _GoString_ p2) { +var tmpp2 = _GoString_.getCPtr (p2); + { + uint ret = skycoinPINVOKE.SKY_api_Client_NewSeed(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1, tmpp2); + return ret; + } } - public static uint SKY_api_Client_GetWalletSeed(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, SWIGTYPE_p_GoString_ p3) { - uint ret = skycoinPINVOKE.SKY_api_Client_GetWalletSeed(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), SWIGTYPE_p_GoString_.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_api_Client_GetWalletSeed(SWIGTYPE_p_Client__Handle p0, string p1, string p2, _GoString_ p3) { +var tmpp1 = p1; +var tmpp2 = p2; +var tmpp3 = _GoString_.getCPtr (p3); + { + uint ret = skycoinPINVOKE.SKY_api_Client_GetWalletSeed(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1, tmpp2, tmpp3); + return ret; + } } - public static uint SKY_api_Client_NetworkConnection(SWIGTYPE_p_Client__Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_NetworkConnection(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_api_Client_NetworkConnection(SWIGTYPE_p_Client__Handle p0, string p1) { +var tmpp1 = p1; + { + uint ret = skycoinPINVOKE.SKY_api_Client_NetworkConnection(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_api_Client_NetworkConnections(SWIGTYPE_p_Client__Handle p0) { @@ -445,10 +502,12 @@ public static uint SKY_api_Client_PendingTransactions(SWIGTYPE_p_Client__Handle return ret; } - public static uint SKY_api_Client_Transaction(SWIGTYPE_p_Client__Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_Transaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_api_Client_Transaction(SWIGTYPE_p_Client__Handle p0, string p1) { +var tmpp1 = p1; + { + uint ret = skycoinPINVOKE.SKY_api_Client_Transaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_api_Client_Transactions(SWIGTYPE_p_Client__Handle p0, GoSlice p1) { @@ -469,9 +528,12 @@ public static uint SKY_api_Client_UnconfirmedTransactions(SWIGTYPE_p_Client__Han return ret; } - public static uint SKY_api_Client_InjectTransaction(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_GoInt64_ p1, SWIGTYPE_p_GoString_ p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_InjectTransaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_GoInt64_.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); - return ret; + public static uint SKY_api_Client_InjectTransaction(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_GoInt64_ p1, _GoString_ p2) { +var tmpp2 = _GoString_.getCPtr (p2); + { + uint ret = skycoinPINVOKE.SKY_api_Client_InjectTransaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_GoInt64_.getCPtr(p1), tmpp2); + return ret; + } } public static uint SKY_api_Client_ResendUnconfirmedTransactions(SWIGTYPE_p_Client__Handle p0) { @@ -479,16 +541,21 @@ public static uint SKY_api_Client_ResendUnconfirmedTransactions(SWIGTYPE_p_Clien return ret; } - public static uint SKY_api_Client_RawTransaction(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_GoString_ p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_RawTransaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_api_Client_RawTransaction(SWIGTYPE_p_Client__Handle p0, string p1, _GoString_ p2) { +var tmpp1 = p1; +var tmpp2 = _GoString_.getCPtr (p2); + { + uint ret = skycoinPINVOKE.SKY_api_Client_RawTransaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1, tmpp2); + return ret; + } } - public static uint SKY_api_Client_AddressTransactions(SWIGTYPE_p_Client__Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_AddressTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_api_Client_AddressTransactions(SWIGTYPE_p_Client__Handle p0, string p1) { +var tmpp1 = p1; + { + uint ret = skycoinPINVOKE.SKY_api_Client_AddressTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_api_Client_Richlist(SWIGTYPE_p_Client__Handle p0, api__RichlistParams p1) { @@ -501,10 +568,12 @@ public static uint SKY_api_Client_AddressCount(SWIGTYPE_p_Client__Handle p0, SWI return ret; } - public static uint SKY_api_Client_UnloadWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_UnloadWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_api_Client_UnloadWallet(SWIGTYPE_p_Client__Handle p0, string p1) { +var tmpp1 = p1; + { + uint ret = skycoinPINVOKE.SKY_api_Client_UnloadWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_api_Client_Health(SWIGTYPE_p_Client__Handle p0) { @@ -512,22 +581,30 @@ public static uint SKY_api_Client_Health(SWIGTYPE_p_Client__Handle p0) { return ret; } - public static uint SKY_api_Client_EncryptWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, SWIGTYPE_p_WalletResponse__Handle p3) { - uint ret = skycoinPINVOKE.SKY_api_Client_EncryptWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_api_Client_EncryptWallet(SWIGTYPE_p_Client__Handle p0, string p1, string p2, SWIGTYPE_p_WalletResponse__Handle p3) { +var tmpp1 = p1; +var tmpp2 = p2; + { + uint ret = skycoinPINVOKE.SKY_api_Client_EncryptWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1, tmpp2, SWIGTYPE_p_WalletResponse__Handle.getCPtr(p3)); + return ret; + } } - public static uint SKY_api_Client_DecryptWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, SWIGTYPE_p_WalletResponse__Handle p3) { - uint ret = skycoinPINVOKE.SKY_api_Client_DecryptWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_api_Client_DecryptWallet(SWIGTYPE_p_Client__Handle p0, string p1, string p2, SWIGTYPE_p_WalletResponse__Handle p3) { +var tmpp1 = p1; +var tmpp2 = p2; + { + uint ret = skycoinPINVOKE.SKY_api_Client_DecryptWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1, tmpp2, SWIGTYPE_p_WalletResponse__Handle.getCPtr(p3)); + return ret; + } } - public static uint SKY_secp256k1go_XY_Print(secp256k1go__XY p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_Print(secp256k1go__XY.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_secp256k1go_XY_Print(secp256k1go__XY p0, string p1) { +var tmpp1 = p1; + { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_Print(secp256k1go__XY.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_secp256k1go_XY_ParsePubkey(secp256k1go__XY p0, GoSlice p1, SWIGTYPE_p_unsigned_char p2) { @@ -622,16 +699,21 @@ public static uint SKY_wallet_NewError(GoInterface p0) { return ret; } - public static uint SKY_wallet_NewWallet(_GoString_ p0, SWIGTYPE_p_GoInt64_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_NewWallet(_GoString_.getCPtr(p0), SWIGTYPE_p_GoInt64_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_wallet_NewWallet(string p0, SWIGTYPE_p_GoInt64_ p1) { +var tmpp0 = p0; + { + uint ret = skycoinPINVOKE.SKY_wallet_NewWallet(tmpp0, SWIGTYPE_p_GoInt64_.getCPtr(p1)); + return ret; + } } - public static uint SKY_wallet_Wallet_Lock(SWIGTYPE_p_GoInt64_ p0, GoSlice p1, _GoString_ p2) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Lock(SWIGTYPE_p_GoInt64_.getCPtr(p0), GoSlice.getCPtr(p1), _GoString_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_wallet_Wallet_Lock(SWIGTYPE_p_GoInt64_ p0, GoSlice p1, string p2) { +var tmpp2 = p2; + { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Lock(SWIGTYPE_p_GoInt64_.getCPtr(p0), GoSlice.getCPtr(p1), tmpp2); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } public static uint SKY_wallet_Wallet_Unlock(SWIGTYPE_p_GoInt64_ p0, GoSlice p1) { @@ -640,16 +722,20 @@ public static uint SKY_wallet_Wallet_Unlock(SWIGTYPE_p_GoInt64_ p0, GoSlice p1) return ret; } - public static uint SKY_wallet_Load(_GoString_ p0) { - uint ret = skycoinPINVOKE.SKY_wallet_Load(_GoString_.getCPtr(p0)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_wallet_Load(string p0) { +var tmpp0 = p0; + { + uint ret = skycoinPINVOKE.SKY_wallet_Load(tmpp0); + return ret; + } } - public static uint SKY_wallet_Wallet_Save(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Save(SWIGTYPE_p_GoInt64_.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_wallet_Wallet_Save(SWIGTYPE_p_GoInt64_ p0, string p1) { +var tmpp1 = p1; + { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Save(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_wallet_Wallet_Validate(SWIGTYPE_p_GoInt64_ p0) { @@ -657,24 +743,36 @@ public static uint SKY_wallet_Wallet_Validate(SWIGTYPE_p_GoInt64_ p0) { return ret; } - public static uint SKY_wallet_Wallet_Type(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Type(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; + public static uint SKY_wallet_Wallet_Type(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { +var tmpp1 = _GoString_.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Type(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + return ret; + } } - public static uint SKY_wallet_Wallet_Version(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Version(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; + public static uint SKY_wallet_Wallet_Version(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { +var tmpp1 = _GoString_.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Version(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + return ret; + } } - public static uint SKY_wallet_Wallet_Filename(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Filename(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; + public static uint SKY_wallet_Wallet_Filename(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { +var tmpp1 = _GoString_.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Filename(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + return ret; + } } - public static uint SKY_wallet_Wallet_Label(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Label(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; + public static uint SKY_wallet_Wallet_Label(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { +var tmpp1 = _GoString_.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Label(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_wallet_Wallet_IsEncrypted(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_unsigned_char p1) { @@ -735,10 +833,12 @@ public static uint SKY_wallet_ChooseSpendsMaximizeUxOuts(GoSlice p0, ulong p1, u return ret; } - public static uint SKY_cli_CheckWalletBalance(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_CheckWalletBalance(SWIGTYPE_p_GoInt64_.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_cli_CheckWalletBalance(SWIGTYPE_p_GoInt64_ p0, string p1) { +var tmpp1 = p1; + { + uint ret = skycoinPINVOKE.SKY_cli_CheckWalletBalance(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_cli_GetBalanceOfAddresses(SWIGTYPE_p_GoInt64_ p0, GoSlice p1) { @@ -752,40 +852,52 @@ public static uint SKY_wallet_NewReadableEntry(wallet__Entry p0, SWIGTYPE_p_Read return ret; } - public static uint SKY_wallet_LoadReadableEntry(_GoString_ p0, SWIGTYPE_p_ReadableEntry__Handle p1) { - uint ret = skycoinPINVOKE.SKY_wallet_LoadReadableEntry(_GoString_.getCPtr(p0), SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_wallet_LoadReadableEntry(string p0, SWIGTYPE_p_ReadableEntry__Handle p1) { +var tmpp0 = p0; + { + uint ret = skycoinPINVOKE.SKY_wallet_LoadReadableEntry(tmpp0, SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p1)); + return ret; + } } - public static uint SKY_wallet_NewReadableEntryFromPubkey(_GoString_ p0, SWIGTYPE_p_ReadableEntry__Handle p1) { - uint ret = skycoinPINVOKE.SKY_wallet_NewReadableEntryFromPubkey(_GoString_.getCPtr(p0), SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_wallet_NewReadableEntryFromPubkey(string p0, SWIGTYPE_p_ReadableEntry__Handle p1) { +var tmpp0 = p0; + { + uint ret = skycoinPINVOKE.SKY_wallet_NewReadableEntryFromPubkey(tmpp0, SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p1)); + return ret; + } } - public static uint SKY_wallet_ReadableEntry_Save(SWIGTYPE_p_ReadableEntry__Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_ReadableEntry_Save(SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_wallet_ReadableEntry_Save(SWIGTYPE_p_ReadableEntry__Handle p0, string p1) { +var tmpp1 = p1; + { + uint ret = skycoinPINVOKE.SKY_wallet_ReadableEntry_Save(SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p0), tmpp1); + return ret; + } } - public static uint SKY_wallet_LoadReadableWallet(_GoString_ p0, SWIGTYPE_p_ReadableWallet__Handle p1) { - uint ret = skycoinPINVOKE.SKY_wallet_LoadReadableWallet(_GoString_.getCPtr(p0), SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_wallet_LoadReadableWallet(string p0, SWIGTYPE_p_ReadableWallet__Handle p1) { +var tmpp0 = p0; + { + uint ret = skycoinPINVOKE.SKY_wallet_LoadReadableWallet(tmpp0, SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p1)); + return ret; + } } - public static uint SKY_wallet_ReadableWallet_Save(SWIGTYPE_p_ReadableWallet__Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_ReadableWallet_Save(SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_wallet_ReadableWallet_Save(SWIGTYPE_p_ReadableWallet__Handle p0, string p1) { +var tmpp1 = p1; + { + uint ret = skycoinPINVOKE.SKY_wallet_ReadableWallet_Save(SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p0), tmpp1); + return ret; + } } - public static uint SKY_wallet_ReadableWallet_Load(SWIGTYPE_p_ReadableWallet__Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_ReadableWallet_Load(SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_wallet_ReadableWallet_Load(SWIGTYPE_p_ReadableWallet__Handle p0, string p1) { +var tmpp1 = p1; + { + uint ret = skycoinPINVOKE.SKY_wallet_ReadableWallet_Load(SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_wallet_ReadableWallet_Erase(SWIGTYPE_p_ReadableWallet__Handle p0) { @@ -841,90 +953,127 @@ public static uint SKY_secp256k1go_PubkeyIsValid(GoSlice p0, SWIGTYPE_p_long_lon return ret; } - public static uint SKY_base58_String2Hex(_GoString_ p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_base58_String2Hex(_GoString_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_base58_String2Hex(string p0, SWIGTYPE_p_GoSlice_ p1) { +var tmpp0 = p0; + { + uint ret = skycoinPINVOKE.SKY_base58_String2Hex(tmpp0, SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } } - public static uint SKY_base58_Base58_ToInt(_GoString_ p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_base58_Base58_ToInt(_GoString_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_base58_Base58_ToInt(string p0, SWIGTYPE_p_long_long p1) { +var tmpp0 = p0; + { + uint ret = skycoinPINVOKE.SKY_base58_Base58_ToInt(tmpp0, SWIGTYPE_p_long_long.getCPtr(p1)); + return ret; + } } - public static uint SKY_base58_Base58_ToHex(_GoString_ p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_base58_Base58_ToHex(_GoString_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_base58_Base58_ToHex(string p0, SWIGTYPE_p_GoSlice_ p1) { +var tmpp0 = p0; + { + uint ret = skycoinPINVOKE.SKY_base58_Base58_ToHex(tmpp0, SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } } - public static uint SKY_base58_Base58_Base582Int(_GoString_ p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_base58_Base58_Base582Int(_GoString_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_base58_Base58_Base582Int(string p0, SWIGTYPE_p_long_long p1) { +var tmpp0 = p0; + { + uint ret = skycoinPINVOKE.SKY_base58_Base58_Base582Int(tmpp0, SWIGTYPE_p_long_long.getCPtr(p1)); + return ret; + } } - public static uint SKY_base58_Base582Hex(_GoString_ p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_base58_Base582Hex(_GoString_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_base58_Base582Hex(string p0, SWIGTYPE_p_GoSlice_ p1) { +var tmpp0 = p0; + { + uint ret = skycoinPINVOKE.SKY_base58_Base582Hex(tmpp0, SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } } - public static uint SKY_base58_Base58_BitHex(_GoString_ p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_base58_Base58_BitHex(_GoString_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_base58_Base58_BitHex(string p0, SWIGTYPE_p_GoSlice_ p1) { +var tmpp0 = p0; + { + uint ret = skycoinPINVOKE.SKY_base58_Base58_BitHex(tmpp0, SWIGTYPE_p_GoSlice_.getCPtr(p1)); + return ret; + } } - public static uint SKY_base58_Int2Base58(long p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_base58_Int2Base58(p0, SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; + public static uint SKY_base58_Int2Base58(long p0, _GoString_ p1) { +var tmpp1 = _GoString_.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_base58_Int2Base58(p0, tmpp1); + return ret; + } } - public static uint SKY_base58_Hex2Base58(GoSlice p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_base58_Hex2Base58(GoSlice.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_base58_Hex2Base58(GoSlice p0, _GoString_ p1) { +var tmpp1 = _GoString_.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_base58_Hex2Base58(GoSlice.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } - public static uint SKY_base58_Hex2Base58String(GoSlice p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_base58_Hex2Base58String(GoSlice.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_base58_Hex2Base58String(GoSlice p0, _GoString_ p1) { +var tmpp1 = _GoString_.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_base58_Hex2Base58String(GoSlice.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } - public static uint SKY_base58_Hex2Base58Str(GoSlice p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_base58_Hex2Base58Str(GoSlice.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_base58_Hex2Base58Str(GoSlice p0, _GoString_ p1) { +var tmpp1 = _GoString_.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_base58_Hex2Base58Str(GoSlice.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } - public static uint SKY_cli_GenerateWallet(_GoString_ p0, ulong p2) { - uint ret = skycoinPINVOKE.SKY_cli_GenerateWallet(_GoString_.getCPtr(p0), p2); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_cli_GenerateWallet(string p0, ulong p2) { +var tmpp0 = p0; + { + uint ret = skycoinPINVOKE.SKY_cli_GenerateWallet(tmpp0, p2); + return ret; + } } - public static uint SKY_cli_MakeAlphanumericSeed(SWIGTYPE_p_GoString_ p0) { - uint ret = skycoinPINVOKE.SKY_cli_MakeAlphanumericSeed(SWIGTYPE_p_GoString_.getCPtr(p0)); - return ret; + public static uint SKY_cli_MakeAlphanumericSeed(_GoString_ p0) { +var tmpp0 = _GoString_.getCPtr (p0); + { + uint ret = skycoinPINVOKE.SKY_cli_MakeAlphanumericSeed(tmpp0); + return ret; + } } - public static uint SKY_webrpc_NewClient(_GoString_ p0) { - uint ret = skycoinPINVOKE.SKY_webrpc_NewClient(_GoString_.getCPtr(p0)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_webrpc_NewClient(string p0) { +var tmpp0 = p0; + { + uint ret = skycoinPINVOKE.SKY_webrpc_NewClient(tmpp0); + return ret; + } } - public static uint SKY_webrpc_Client_CSRF(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_CSRF(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; + public static uint SKY_webrpc_Client_CSRF(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { +var tmpp1 = _GoString_.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_CSRF(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + return ret; + } } - public static uint SKY_webrpc_Client_InjectTransaction(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoInt64_ p1, SWIGTYPE_p_GoString_ p2) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_InjectTransaction(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoInt64_.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); - return ret; + public static uint SKY_webrpc_Client_InjectTransaction(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoInt64_ p1, _GoString_ p2) { +var tmpp2 = _GoString_.getCPtr (p2); + { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_InjectTransaction(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoInt64_.getCPtr(p1), tmpp2); + return ret; + } } public static uint SKY_webrpc_Client_GetStatus(SWIGTYPE_p_GoInt64_ p0) { @@ -932,10 +1081,12 @@ public static uint SKY_webrpc_Client_GetStatus(SWIGTYPE_p_GoInt64_ p0) { return ret; } - public static uint SKY_webrpc_Client_GetTransactionByID(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetTransactionByID(SWIGTYPE_p_GoInt64_.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_webrpc_Client_GetTransactionByID(SWIGTYPE_p_GoInt64_ p0, string p1) { +var tmpp1 = p1; + { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetTransactionByID(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_webrpc_Client_GetAddressUxOuts(SWIGTYPE_p_GoInt64_ p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { @@ -960,32 +1111,45 @@ public static uint SKY_webrpc_Client_GetLastBlocks(SWIGTYPE_p_GoInt64_ p0, ulong return ret; } - public static uint SKY_browser_Open(_GoString_ p0) { - uint ret = skycoinPINVOKE.SKY_browser_Open(_GoString_.getCPtr(p0)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_browser_Open(string p0) { +var tmpp0 = p0; + { + uint ret = skycoinPINVOKE.SKY_browser_Open(tmpp0); + return ret; + } } - public static uint SKY_iputil_LocalhostIP(SWIGTYPE_p_GoString_ p0) { - uint ret = skycoinPINVOKE.SKY_iputil_LocalhostIP(SWIGTYPE_p_GoString_.getCPtr(p0)); - return ret; + public static uint SKY_iputil_LocalhostIP(_GoString_ p0) { +var tmpp0 = _GoString_.getCPtr (p0); + { + uint ret = skycoinPINVOKE.SKY_iputil_LocalhostIP(tmpp0); + return ret; + } } - public static uint SKY_iputil_IsLocalhost(_GoString_ p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_iputil_IsLocalhost(_GoString_.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_iputil_IsLocalhost(string p0, SWIGTYPE_p_unsigned_char p1) { +var tmpp0 = p0; + { + uint ret = skycoinPINVOKE.SKY_iputil_IsLocalhost(tmpp0, SWIGTYPE_p_unsigned_char.getCPtr(p1)); + return ret; + } } - public static uint SKY_iputil_SplitAddr(_GoString_ p0, SWIGTYPE_p_GoString_ p1, SWIGTYPE_p_unsigned_short p2) { - uint ret = skycoinPINVOKE.SKY_iputil_SplitAddr(_GoString_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1), SWIGTYPE_p_unsigned_short.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_iputil_SplitAddr(string p0, _GoString_ p1, SWIGTYPE_p_unsigned_short p2) { +var tmpp0 = p0; +var tmpp1 = _GoString_.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_iputil_SplitAddr(tmpp0, tmpp1, SWIGTYPE_p_unsigned_short.getCPtr(p2)); + return ret; + } } - public static uint SKY_encoder_StructField_String(encoder__StructField p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_encoder_StructField_String(encoder__StructField.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; + public static uint SKY_encoder_StructField_String(encoder__StructField p0, _GoString_ p1) { +var tmpp1 = _GoString_.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_encoder_StructField_String(encoder__StructField.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_encoder_ParseFields(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoStringMap_ p2) { @@ -1005,22 +1169,30 @@ public static uint SKY_secp256k1_RandByte(long p0, SWIGTYPE_p_GoSlice_ p1) { return ret; } - public static uint SKY_cli_GenerateAddressesInFile(_GoString_ p0, ulong p1, SWIGTYPE_p_GoInt64_ p2, SWIGTYPE_p_GoSlice_ p3) { - uint ret = skycoinPINVOKE.SKY_cli_GenerateAddressesInFile(_GoString_.getCPtr(p0), p1, SWIGTYPE_p_GoInt64_.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_cli_GenerateAddressesInFile(string p0, ulong p1, SWIGTYPE_p_GoInt64_ p2, SWIGTYPE_p_GoSlice_ p3) { +var tmpp0 = p0; + { + uint ret = skycoinPINVOKE.SKY_cli_GenerateAddressesInFile(tmpp0, p1, SWIGTYPE_p_GoInt64_.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); + return ret; + } } - public static uint SKY_cli_FormatAddressesAsJSON(GoSlice p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_FormatAddressesAsJSON(GoSlice.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_cli_FormatAddressesAsJSON(GoSlice p0, _GoString_ p1) { +var tmpp1 = _GoString_.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_cli_FormatAddressesAsJSON(GoSlice.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } - public static uint SKY_cli_FormatAddressesAsJoinedArray(GoSlice p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_FormatAddressesAsJoinedArray(GoSlice.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_cli_FormatAddressesAsJoinedArray(GoSlice p0, _GoString_ p1) { +var tmpp1 = _GoString_.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_cli_FormatAddressesAsJoinedArray(GoSlice.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } public static uint SKY_cli_AddressesToStrings(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { @@ -1073,11 +1245,11 @@ public static uint SKY_cipher_NewPubKey(GoSlice p0, cipher_PubKey p1) { } } - public static uint SKY_cipher_PubKeyFromHex(_GoString_ p0, cipher_PubKey p1) { + public static uint SKY_cipher_PubKeyFromHex(string p0, cipher_PubKey p1) { +var tmpp0 = p0; var tmpp1 = cipher_PubKey.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_cipher_PubKeyFromHex(_GoString_.getCPtr(p0), tmpp1); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + uint ret = skycoinPINVOKE.SKY_cipher_PubKeyFromHex(tmpp0, tmpp1); return ret; } } @@ -1108,10 +1280,11 @@ public static uint SKY_cipher_PubKey_Verify(cipher_PubKey p0) { } } - public static uint SKY_cipher_PubKey_Hex(cipher_PubKey p0, SWIGTYPE_p_GoString_ p1) { + public static uint SKY_cipher_PubKey_Hex(cipher_PubKey p0, _GoString_ p1) { var tmpp0 = cipher_PubKey.getCPtr (p0); +var tmpp1 = _GoString_.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_cipher_PubKey_Hex(tmpp0, SWIGTYPE_p_GoString_.getCPtr(p1)); + uint ret = skycoinPINVOKE.SKY_cipher_PubKey_Hex(tmpp0, tmpp1); return ret; } } @@ -1133,11 +1306,11 @@ public static uint SKY_cipher_NewSecKey(GoSlice p0, cipher_SecKey p1) { } } - public static uint SKY_cipher_SecKeyFromHex(_GoString_ p0, cipher_SecKey p1) { + public static uint SKY_cipher_SecKeyFromHex(string p0, cipher_SecKey p1) { +var tmpp0 = p0; var tmpp1 = cipher_SecKey.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_cipher_SecKeyFromHex(_GoString_.getCPtr(p0), tmpp1); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + uint ret = skycoinPINVOKE.SKY_cipher_SecKeyFromHex(tmpp0, tmpp1); return ret; } } @@ -1150,10 +1323,11 @@ public static uint SKY_cipher_SecKey_Verify(cipher_SecKey p0) { } } - public static uint SKY_cipher_SecKey_Hex(cipher_SecKey p0, SWIGTYPE_p_GoString_ p1) { + public static uint SKY_cipher_SecKey_Hex(cipher_SecKey p0, _GoString_ p1) { var tmpp0 = cipher_SecKey.getCPtr (p0); +var tmpp1 = _GoString_.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_cipher_SecKey_Hex(tmpp0, SWIGTYPE_p_GoString_.getCPtr(p1)); + uint ret = skycoinPINVOKE.SKY_cipher_SecKey_Hex(tmpp0, tmpp1); return ret; } } @@ -1173,15 +1347,20 @@ public static uint SKY_cipher_NewSig(GoSlice p0, SWIGTYPE_p_a_65__GoUint8_ p1) { return ret; } - public static uint SKY_cipher_SigFromHex(_GoString_ p0, SWIGTYPE_p_a_65__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_SigFromHex(_GoString_.getCPtr(p0), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_cipher_SigFromHex(string p0, SWIGTYPE_p_a_65__GoUint8_ p1) { +var tmpp0 = p0; + { + uint ret = skycoinPINVOKE.SKY_cipher_SigFromHex(tmpp0, SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1)); + return ret; + } } - public static uint SKY_cipher_Sig_Hex(SWIGTYPE_p_a_65__GoUint8_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_Sig_Hex(SWIGTYPE_p_a_65__GoUint8_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; + public static uint SKY_cipher_Sig_Hex(SWIGTYPE_p_a_65__GoUint8_ p0, _GoString_ p1) { +var tmpp1 = _GoString_.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_cipher_Sig_Hex(SWIGTYPE_p_a_65__GoUint8_.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_cipher_SignHash(cipher_SecKey p0, cipher_SecKey p1, SWIGTYPE_p_a_65__GoUint8_ p2) { @@ -1291,10 +1470,12 @@ public static uint SKY_secp256k1go_Signature_GetS(SWIGTYPE_p_GoInt64_ p0) { return ret; } - public static uint SKY_secp256k1go_Signature_Print(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Print(SWIGTYPE_p_GoInt64_.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_secp256k1go_Signature_Print(SWIGTYPE_p_GoInt64_ p0, string p1) { +var tmpp1 = p1; + { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Print(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_secp256k1go_Signature_Verify(SWIGTYPE_p_GoInt64_ p0, secp256k1go__XY p1, SWIGTYPE_p_GoInt64_ p2, SWIGTYPE_p_unsigned_char p3) { @@ -1323,20 +1504,28 @@ public static uint SKY_secp256k1go_Signature_Bytes(SWIGTYPE_p_GoInt64_ p0, SWIGT return ret; } - public static uint SKY_cli_App_Run(SWIGTYPE_p_App__Handle p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_App_Run(SWIGTYPE_p_App__Handle.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_cli_App_Run(SWIGTYPE_p_App__Handle p0, string p1) { +var tmpp1 = p1; + { + uint ret = skycoinPINVOKE.SKY_cli_App_Run(SWIGTYPE_p_App__Handle.getCPtr(p0), tmpp1); + return ret; + } } - public static uint SKY_cli_Config_GetCoin(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_Config_GetCoin(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; + public static uint SKY_cli_Config_GetCoin(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { +var tmpp1 = _GoString_.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_cli_Config_GetCoin(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + return ret; + } } - public static uint SKY_cli_Config_GetRPCAddress(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_Config_GetRPCAddress(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; + public static uint SKY_cli_Config_GetRPCAddress(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { +var tmpp1 = _GoString_.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_cli_Config_GetRPCAddress(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_cli_RPCClientFromApp(SWIGTYPE_p_App__Handle p0) { @@ -1344,16 +1533,22 @@ public static uint SKY_cli_RPCClientFromApp(SWIGTYPE_p_App__Handle p0) { return ret; } - public static uint SKY_cli_Getenv(_GoString_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_Getenv(_GoString_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_cli_Getenv(string p0, _GoString_ p1) { +var tmpp0 = p0; +var tmpp1 = _GoString_.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_cli_Getenv(tmpp0, tmpp1); + return ret; + } } - public static uint SKY_cli_Setenv(_GoString_ p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_Setenv(_GoString_.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_cli_Setenv(string p0, string p1) { +var tmpp0 = p0; +var tmpp1 = p1; + { + uint ret = skycoinPINVOKE.SKY_cli_Setenv(tmpp0, tmpp1); + return ret; + } } public static uint SKY_poly1305_Verify(SWIGTYPE_p_GoSlice_ p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2, SWIGTYPE_p_unsigned_char p3) { @@ -1450,10 +1645,13 @@ public static uint SKY_wallet_Entry_VerifyPublic(wallet__Entry p0) { return ret; } - public static uint SKY_wallet_CreateAddresses(_GoString_ p0, _GoString_ p1, long p2, byte p3, SWIGTYPE_p_ReadableWallet__Handle p4) { - uint ret = skycoinPINVOKE.SKY_wallet_CreateAddresses(_GoString_.getCPtr(p0), _GoString_.getCPtr(p1), p2, p3, SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p4)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_wallet_CreateAddresses(string p0, string p1, long p2, byte p3, SWIGTYPE_p_ReadableWallet__Handle p4) { +var tmpp0 = p0; +var tmpp1 = p1; + { + uint ret = skycoinPINVOKE.SKY_wallet_CreateAddresses(tmpp0, tmpp1, p2, p3, SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p4)); + return ret; + } } public static uint SKY_wallet_GetSkycoinWalletEntry(cipher_PubKey p0, cipher_SecKey p1, SWIGTYPE_p_ReadableEntry__Handle p2) { @@ -1474,10 +1672,12 @@ public static uint SKY_wallet_GetBitcoinWalletEntry(cipher_PubKey p0, cipher_Sec } } - public static uint SKY_secp256k1go_XYZ_Print(secp256k1go__XYZ p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_Print(secp256k1go__XYZ.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_secp256k1go_XYZ_Print(secp256k1go__XYZ p0, string p1) { +var tmpp1 = p1; + { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_Print(secp256k1go__XYZ.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_secp256k1go_XYZ_SetXY(secp256k1go__XYZ p0, secp256k1go__XY p1) { @@ -1547,21 +1747,29 @@ public static uint SKY_encrypt_Sha256Xor_Decrypt(GoSlice p0, GoSlice p1, SWIGTYP return ret; } - public static uint SKY_droplet_FromString(_GoString_ p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_droplet_FromString(_GoString_.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_droplet_FromString(string p0, SWIGTYPE_p_unsigned_long_long p1) { +var tmpp0 = p0; + { + uint ret = skycoinPINVOKE.SKY_droplet_FromString(tmpp0, SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + return ret; + } } - public static uint SKY_droplet_ToString(ulong p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_droplet_ToString(p0, SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; + public static uint SKY_droplet_ToString(ulong p0, _GoString_ p1) { +var tmpp1 = _GoString_.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_droplet_ToString(p0, tmpp1); + return ret; + } } - public static uint SKY_wallet_CryptoTypeFromString(_GoString_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_CryptoTypeFromString(_GoString_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_wallet_CryptoTypeFromString(string p0, _GoString_ p1) { +var tmpp0 = p0; +var tmpp1 = _GoString_.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_wallet_CryptoTypeFromString(tmpp0, tmpp1); + return ret; + } } public static void SKY_handle_close(SWIGTYPE_p_GoInt64_ p0) { @@ -1588,16 +1796,21 @@ public static uint SKY_logging_Disable() { return ret; } - public static uint SKY_map_Get(SWIGTYPE_p_GoStringMap_ p0, _GoString_ p1, SWIGTYPE_p_GoString_ p2) { - uint ret = skycoinPINVOKE.SKY_map_Get(SWIGTYPE_p_GoStringMap_.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_map_Get(SWIGTYPE_p_GoStringMap_ p0, string p1, _GoString_ p2) { +var tmpp1 = p1; +var tmpp2 = _GoString_.getCPtr (p2); + { + uint ret = skycoinPINVOKE.SKY_map_Get(SWIGTYPE_p_GoStringMap_.getCPtr(p0), tmpp1, tmpp2); + return ret; + } } - public static byte SKY_map_HasKey(SWIGTYPE_p_GoStringMap_ p0, _GoString_ p1) { - byte ret = skycoinPINVOKE.SKY_map_HasKey(SWIGTYPE_p_GoStringMap_.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static byte SKY_map_HasKey(SWIGTYPE_p_GoStringMap_ p0, string p1) { +var tmpp1 = p1; + { + byte ret = skycoinPINVOKE.SKY_map_HasKey(SWIGTYPE_p_GoStringMap_.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_map_Close(SWIGTYPE_p_GoStringMap_ p0) { @@ -1605,10 +1818,12 @@ public static uint SKY_map_Close(SWIGTYPE_p_GoStringMap_ p0) { return ret; } - public static uint SKY_cipher_DecodeBase58Address(_GoString_ p0, cipher__Address p1) { - uint ret = skycoinPINVOKE.SKY_cipher_DecodeBase58Address(_GoString_.getCPtr(p0), cipher__Address.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_cipher_DecodeBase58Address(string p0, cipher__Address p1) { +var tmpp0 = p0; + { + uint ret = skycoinPINVOKE.SKY_cipher_DecodeBase58Address(tmpp0, cipher__Address.getCPtr(p1)); + return ret; + } } public static uint SKY_cipher_AddressFromBytes(GoSlice p0, cipher__Address p1) { @@ -1633,10 +1848,12 @@ public static uint SKY_cipher_AddressFromSecKey(cipher_SecKey p0, cipher__Addres } } - public static uint SKY_cipher_BitcoinDecodeBase58Address(_GoString_ p0, cipher__Address p1) { - uint ret = skycoinPINVOKE.SKY_cipher_BitcoinDecodeBase58Address(_GoString_.getCPtr(p0), cipher__Address.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_cipher_BitcoinDecodeBase58Address(string p0, cipher__Address p1) { +var tmpp0 = p0; + { + uint ret = skycoinPINVOKE.SKY_cipher_BitcoinDecodeBase58Address(tmpp0, cipher__Address.getCPtr(p1)); + return ret; + } } public static uint SKY_cipher_Address_Null(cipher__Address p0, SWIGTYPE_p_unsigned_char p1) { @@ -1662,14 +1879,20 @@ public static uint SKY_cipher_Address_Verify(cipher__Address p0, cipher_PubKey p } } - public static uint SKY_cipher_Address_String(cipher__Address p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_Address_String(cipher__Address.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; + public static uint SKY_cipher_Address_String(cipher__Address p0, _GoString_ p1) { +var tmpp1 = _GoString_.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_cipher_Address_String(cipher__Address.getCPtr(p0), tmpp1); + return ret; + } } - public static uint SKY_cipher_Address_BitcoinString(cipher__Address p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_Address_BitcoinString(cipher__Address.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; + public static uint SKY_cipher_Address_BitcoinString(cipher__Address p0, _GoString_ p1) { +var tmpp1 = _GoString_.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_cipher_Address_BitcoinString(cipher__Address.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_cipher_Address_Checksum(cipher__Address p0, SWIGTYPE_p_a_4__GoUint8_ p1) { @@ -1682,18 +1905,20 @@ public static uint SKY_cipher_Address_BitcoinChecksum(cipher__Address p0, SWIGTY return ret; } - public static uint SKY_cipher_BitcoinAddressFromPubkey(cipher_PubKey p0, SWIGTYPE_p_GoString_ p1) { + public static uint SKY_cipher_BitcoinAddressFromPubkey(cipher_PubKey p0, _GoString_ p1) { var tmpp0 = cipher_PubKey.getCPtr (p0); +var tmpp1 = _GoString_.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_cipher_BitcoinAddressFromPubkey(tmpp0, SWIGTYPE_p_GoString_.getCPtr(p1)); + uint ret = skycoinPINVOKE.SKY_cipher_BitcoinAddressFromPubkey(tmpp0, tmpp1); return ret; } } - public static uint SKY_cipher_BitcoinWalletImportFormatFromSeckey(cipher_SecKey p0, SWIGTYPE_p_GoString_ p1) { + public static uint SKY_cipher_BitcoinWalletImportFormatFromSeckey(cipher_SecKey p0, _GoString_ p1) { var tmpp0 = cipher_SecKey.getCPtr (p0); +var tmpp1 = _GoString_.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_cipher_BitcoinWalletImportFormatFromSeckey(tmpp0, SWIGTYPE_p_GoString_.getCPtr(p1)); + uint ret = skycoinPINVOKE.SKY_cipher_BitcoinWalletImportFormatFromSeckey(tmpp0, tmpp1); return ret; } } @@ -1704,18 +1929,21 @@ public static uint SKY_cipher_BitcoinAddressFromBytes(GoSlice p0, cipher__Addres return ret; } - public static uint SKY_cipher_SecKeyFromWalletImportFormat(_GoString_ p0, cipher_SecKey p1) { + public static uint SKY_cipher_SecKeyFromWalletImportFormat(string p0, cipher_SecKey p1) { +var tmpp0 = p0; var tmpp1 = cipher_SecKey.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_cipher_SecKeyFromWalletImportFormat(_GoString_.getCPtr(p0), tmpp1); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + uint ret = skycoinPINVOKE.SKY_cipher_SecKeyFromWalletImportFormat(tmpp0, tmpp1); return ret; } } - public static uint SKY_JsonEncode_Handle(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_JsonEncode_Handle(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; + public static uint SKY_JsonEncode_Handle(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { +var tmpp1 = _GoString_.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_JsonEncode_Handle(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_Handle_Progress_GetCurrent(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_unsigned_long_long p1) { @@ -1728,14 +1956,20 @@ public static uint SKY_Handle_Block_GetHeadSeq(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_ return ret; } - public static uint SKY_Handle_Block_GetHeadHash(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_Handle_Block_GetHeadHash(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; + public static uint SKY_Handle_Block_GetHeadHash(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { +var tmpp1 = _GoString_.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_Handle_Block_GetHeadHash(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + return ret; + } } - public static uint SKY_Handle_Block_GetPreviousBlockHash(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_Handle_Block_GetPreviousBlockHash(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; + public static uint SKY_Handle_Block_GetPreviousBlockHash(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { +var tmpp1 = _GoString_.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_Handle_Block_GetPreviousBlockHash(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_Handle_Blocks_GetAt(SWIGTYPE_p_GoInt64_ p0, ulong p1) { @@ -1763,29 +1997,44 @@ public static uint SKY_Handle_Strings_Sort(SWIGTYPE_p_Strings__Handle p0) { return ret; } - public static uint SKY_Handle_Strings_GetAt(SWIGTYPE_p_Strings__Handle p0, long p1, SWIGTYPE_p_GoString_ p2) { - uint ret = skycoinPINVOKE.SKY_Handle_Strings_GetAt(SWIGTYPE_p_Strings__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoString_.getCPtr(p2)); - return ret; + public static uint SKY_Handle_Strings_GetAt(SWIGTYPE_p_Strings__Handle p0, long p1, _GoString_ p2) { +var tmpp2 = _GoString_.getCPtr (p2); + { + uint ret = skycoinPINVOKE.SKY_Handle_Strings_GetAt(SWIGTYPE_p_Strings__Handle.getCPtr(p0), p1, tmpp2); + return ret; + } } - public static uint SKY_api_Handle_Client_GetWalletDir(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletDir(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; + public static uint SKY_api_Handle_Client_GetWalletDir(SWIGTYPE_p_Client__Handle p0, _GoString_ p1) { +var tmpp1 = _GoString_.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletDir(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1); + return ret; + } } - public static uint SKY_api_Handle_Client_GetWalletFileName(SWIGTYPE_p_WalletResponse__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletFileName(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; + public static uint SKY_api_Handle_Client_GetWalletFileName(SWIGTYPE_p_WalletResponse__Handle p0, _GoString_ p1) { +var tmpp1 = _GoString_.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletFileName(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), tmpp1); + return ret; + } } - public static uint SKY_api_Handle_Client_GetWalletLabel(SWIGTYPE_p_WalletResponse__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletLabel(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; + public static uint SKY_api_Handle_Client_GetWalletLabel(SWIGTYPE_p_WalletResponse__Handle p0, _GoString_ p1) { +var tmpp1 = _GoString_.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletLabel(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), tmpp1); + return ret; + } } - public static uint SKY_api_Handle_Client_GetWalletFullPath(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_WalletResponse__Handle p1, SWIGTYPE_p_GoString_ p2) { - uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletFullPath(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2)); - return ret; + public static uint SKY_api_Handle_Client_GetWalletFullPath(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_WalletResponse__Handle p1, _GoString_ p2) { +var tmpp2 = _GoString_.getCPtr (p2); + { + uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletFullPath(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p1), tmpp2); + return ret; + } } public static uint SKY_api_Handle_GetWalletMeta(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoStringMap_ p1) { @@ -1811,9 +2060,13 @@ public static uint SKY_api_Handle_WalletGetEntry(SWIGTYPE_p_GoInt64_ p0, uint p1 } } - public static uint SKY_api_Handle_WalletResponseGetEntry(SWIGTYPE_p_WalletResponse__Handle p0, uint p1, SWIGTYPE_p_GoString_ p2, SWIGTYPE_p_GoString_ p3) { - uint ret = skycoinPINVOKE.SKY_api_Handle_WalletResponseGetEntry(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoString_.getCPtr(p2), SWIGTYPE_p_GoString_.getCPtr(p3)); - return ret; + public static uint SKY_api_Handle_WalletResponseGetEntry(SWIGTYPE_p_WalletResponse__Handle p0, uint p1, _GoString_ p2, _GoString_ p3) { +var tmpp2 = _GoString_.getCPtr (p2); +var tmpp3 = _GoString_.getCPtr (p3); + { + uint ret = skycoinPINVOKE.SKY_api_Handle_WalletResponseGetEntry(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), p1, tmpp2, tmpp3); + return ret; + } } public static uint SKY_api_Handle_WalletResponseIsEncrypted(SWIGTYPE_p_WalletResponse__Handle p0, SWIGTYPE_p_unsigned_char p1) { @@ -1821,9 +2074,12 @@ public static uint SKY_api_Handle_WalletResponseIsEncrypted(SWIGTYPE_p_WalletRes return ret; } - public static uint SKY_api_Handle_WalletResponseGetCryptoType(SWIGTYPE_p_WalletResponse__Handle p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Handle_WalletResponseGetCryptoType(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; + public static uint SKY_api_Handle_WalletResponseGetCryptoType(SWIGTYPE_p_WalletResponse__Handle p0, _GoString_ p1) { +var tmpp1 = _GoString_.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_api_Handle_WalletResponseGetCryptoType(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_api_Handle_WalletsResponseGetCount(SWIGTYPE_p_Wallets__Handle p0, SWIGTYPE_p_unsigned_int p1) { @@ -1836,24 +2092,38 @@ public static uint SKY_api_Handle_WalletsResponseGetAt(SWIGTYPE_p_Wallets__Handl return ret; } - public static uint SKY_api_Handle_GetWalletFolderAddress(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletFolderAddress(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; + public static uint SKY_api_Handle_GetWalletFolderAddress(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { +var tmpp1 = _GoString_.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletFolderAddress(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + return ret; + } } - public static uint SKY_api_Handle_GetWalletSeed(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletSeed(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; + public static uint SKY_api_Handle_GetWalletSeed(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { +var tmpp1 = _GoString_.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletSeed(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + return ret; + } } - public static uint SKY_api_Handle_GetWalletLastSeed(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletLastSeed(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; + public static uint SKY_api_Handle_GetWalletLastSeed(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { +var tmpp1 = _GoString_.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletLastSeed(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + return ret; + } } - public static uint SKY_api_Handle_GetBuildInfoData(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoString_ p1, SWIGTYPE_p_GoString_ p2, SWIGTYPE_p_GoString_ p3) { - uint ret = skycoinPINVOKE.SKY_api_Handle_GetBuildInfoData(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1), SWIGTYPE_p_GoString_.getCPtr(p2), SWIGTYPE_p_GoString_.getCPtr(p3)); - return ret; + public static uint SKY_api_Handle_GetBuildInfoData(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1, _GoString_ p2, _GoString_ p3) { +var tmpp1 = _GoString_.getCPtr (p1); +var tmpp2 = _GoString_.getCPtr (p2); +var tmpp3 = _GoString_.getCPtr (p3); + { + uint ret = skycoinPINVOKE.SKY_api_Handle_GetBuildInfoData(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1, tmpp2, tmpp3); + return ret; + } } public static uint SKY_ripemd160_New() { @@ -1878,16 +2148,20 @@ public static uint SKY_secp256k1go_Number_Create() { return ret; } - public static uint SKY_secp256k1go_Number_Print(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_Print(SWIGTYPE_p_GoInt64_.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_secp256k1go_Number_Print(SWIGTYPE_p_GoInt64_ p0, string p1) { +var tmpp1 = p1; + { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_Print(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + return ret; + } } - public static uint SKY_secp256k1go_Number_SetHex(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_SetHex(SWIGTYPE_p_GoInt64_.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_secp256k1go_Number_SetHex(SWIGTYPE_p_GoInt64_ p0, string p1) { +var tmpp1 = p1; + { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_SetHex(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_secp256k1go_Number_IsOdd(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_unsigned_char p1) { @@ -2041,22 +2315,33 @@ public static uint SKY_encrypt_ScryptChacha20poly1305_Decrypt(encrypt__ScryptCha return ret; } - public static uint SKY_wallet_CreateOptionsHandle(_GoString_ p0, _GoString_ p1, _GoString_ p2, byte p3, _GoString_ p4, _GoString_ p5, ulong p6) { - uint ret = skycoinPINVOKE.SKY_wallet_CreateOptionsHandle(_GoString_.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), p3, _GoString_.getCPtr(p4), _GoString_.getCPtr(p5), p6); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_wallet_CreateOptionsHandle(string p0, string p1, string p2, byte p3, string p4, string p5, ulong p6) { +var tmpp0 = p0; +var tmpp1 = p1; +var tmpp2 = p2; +var tmpp4 = p4; +var tmpp5 = p5; + { + uint ret = skycoinPINVOKE.SKY_wallet_CreateOptionsHandle(tmpp0, tmpp1, tmpp2, p3, tmpp4, tmpp5, p6); + return ret; + } } - public static uint SKY_cli_AddPrivateKey(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_AddPrivateKey(SWIGTYPE_p_GoInt64_.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_cli_AddPrivateKey(SWIGTYPE_p_GoInt64_ p0, string p1) { +var tmpp1 = p1; + { + uint ret = skycoinPINVOKE.SKY_cli_AddPrivateKey(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + return ret; + } } - public static uint SKY_cli_AddPrivateKeyToFile(_GoString_ p0, _GoString_ p1, SWIGTYPE_p_GoInt64_ p2) { - uint ret = skycoinPINVOKE.SKY_cli_AddPrivateKeyToFile(_GoString_.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_GoInt64_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_cli_AddPrivateKeyToFile(string p0, string p1, SWIGTYPE_p_GoInt64_ p2) { +var tmpp0 = p0; +var tmpp1 = p1; + { + uint ret = skycoinPINVOKE.SKY_cli_AddPrivateKeyToFile(tmpp0, tmpp1, SWIGTYPE_p_GoInt64_.getCPtr(p2)); + return ret; + } } public static uint SKY_secp256k1_GenerateKeyPair(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_GoSlice_ p1) { @@ -2136,10 +2421,13 @@ public static uint SKY_secp256k1_VerifySignature(GoSlice p0, GoSlice p1, GoSlice return ret; } - public static uint SKY_secp256k1_SignatureErrorString(GoSlice p0, GoSlice p1, GoSlice p2, SWIGTYPE_p_GoString_ p3) { - uint ret = skycoinPINVOKE.SKY_secp256k1_SignatureErrorString(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), SWIGTYPE_p_GoString_.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_secp256k1_SignatureErrorString(GoSlice p0, GoSlice p1, GoSlice p2, _GoString_ p3) { +var tmpp3 = _GoString_.getCPtr (p3); + { + uint ret = skycoinPINVOKE.SKY_secp256k1_SignatureErrorString(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), tmpp3); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } public static uint SKY_secp256k1_RecoverPubkey(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { @@ -2169,10 +2457,15 @@ public static uint SKY_apputil_PrintProgramStatus() { return ret; } - public static uint SKY_cert_CreateCertIfNotExists(_GoString_ p0, _GoString_ p1, _GoString_ p2, _GoString_ p3) { - uint ret = skycoinPINVOKE.SKY_cert_CreateCertIfNotExists(_GoString_.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), _GoString_.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_cert_CreateCertIfNotExists(string p0, string p1, string p2, string p3) { +var tmpp0 = p0; +var tmpp1 = p1; +var tmpp2 = p2; +var tmpp3 = p3; + { + uint ret = skycoinPINVOKE.SKY_cert_CreateCertIfNotExists(tmpp0, tmpp1, tmpp2, tmpp3); + return ret; + } } public static uint SKY_fee_VerifyTransactionFee(SWIGTYPE_p_GoInt64_ p0, ulong p1) { @@ -2205,14 +2498,20 @@ public static uint SKY_cli_LoadConfig() { return ret; } - public static uint SKY_cli_Config_FullWalletPath(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_Config_FullWalletPath(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; + public static uint SKY_cli_Config_FullWalletPath(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { +var tmpp1 = _GoString_.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_cli_Config_FullWalletPath(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + return ret; + } } - public static uint SKY_cli_Config_FullDBPath(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_Config_FullDBPath(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; + public static uint SKY_cli_Config_FullDBPath(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { +var tmpp1 = _GoString_.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_cli_Config_FullDBPath(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_cli_NewApp(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_App__Handle p1) { @@ -2240,22 +2539,34 @@ public static uint SKY_cli_PasswordFromTerm_Password(SWIGTYPE_p_GoSlice_ p0) { return ret; } - public static uint SKY_cli_CreateRawTxFromWallet(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1, _GoString_ p2, GoSlice p3, SWIGTYPE_p_GoInt64_ p4) { - uint ret = skycoinPINVOKE.SKY_cli_CreateRawTxFromWallet(SWIGTYPE_p_GoInt64_.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), GoSlice.getCPtr(p3), SWIGTYPE_p_GoInt64_.getCPtr(p4)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_cli_CreateRawTxFromWallet(SWIGTYPE_p_GoInt64_ p0, string p1, string p2, GoSlice p3, SWIGTYPE_p_GoInt64_ p4) { +var tmpp1 = p1; +var tmpp2 = p2; + { + uint ret = skycoinPINVOKE.SKY_cli_CreateRawTxFromWallet(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1, tmpp2, GoSlice.getCPtr(p3), SWIGTYPE_p_GoInt64_.getCPtr(p4)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } - public static uint SKY_cli_CreateRawTxFromAddress(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1, _GoString_ p2, _GoString_ p3, GoSlice p4, SWIGTYPE_p_GoInt64_ p5) { - uint ret = skycoinPINVOKE.SKY_cli_CreateRawTxFromAddress(SWIGTYPE_p_GoInt64_.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), _GoString_.getCPtr(p3), GoSlice.getCPtr(p4), SWIGTYPE_p_GoInt64_.getCPtr(p5)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_cli_CreateRawTxFromAddress(SWIGTYPE_p_GoInt64_ p0, string p1, string p2, string p3, GoSlice p4, SWIGTYPE_p_GoInt64_ p5) { +var tmpp1 = p1; +var tmpp2 = p2; +var tmpp3 = p3; + { + uint ret = skycoinPINVOKE.SKY_cli_CreateRawTxFromAddress(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1, tmpp2, tmpp3, GoSlice.getCPtr(p4), SWIGTYPE_p_GoInt64_.getCPtr(p5)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } - public static uint SKY_cli_CreateRawTx(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoInt64_ p1, GoSlice p2, _GoString_ p3, GoSlice p4, GoSlice p5) { - uint ret = skycoinPINVOKE.SKY_cli_CreateRawTx(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoInt64_.getCPtr(p1), GoSlice.getCPtr(p2), _GoString_.getCPtr(p3), GoSlice.getCPtr(p4), GoSlice.getCPtr(p5)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_cli_CreateRawTx(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoInt64_ p1, GoSlice p2, string p3, GoSlice p4, GoSlice p5) { +var tmpp3 = p3; + { + uint ret = skycoinPINVOKE.SKY_cli_CreateRawTx(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoInt64_.getCPtr(p1), GoSlice.getCPtr(p2), tmpp3, GoSlice.getCPtr(p4), GoSlice.getCPtr(p5)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } public static uint SKY_cli_NewTransaction(GoSlice p0, GoSlice p1, GoSlice p2) { @@ -2264,33 +2575,49 @@ public static uint SKY_cli_NewTransaction(GoSlice p0, GoSlice p1, GoSlice p2) { return ret; } - public static uint SKY_file_InitDataDir(_GoString_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_file_InitDataDir(_GoString_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_file_InitDataDir(string p0, _GoString_ p1) { +var tmpp0 = p0; +var tmpp1 = _GoString_.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_file_InitDataDir(tmpp0, tmpp1); + return ret; + } } - public static uint SKY_file_UserHome(SWIGTYPE_p_GoString_ p0) { - uint ret = skycoinPINVOKE.SKY_file_UserHome(SWIGTYPE_p_GoString_.getCPtr(p0)); - return ret; + public static uint SKY_file_UserHome(_GoString_ p0) { +var tmpp0 = _GoString_.getCPtr (p0); + { + uint ret = skycoinPINVOKE.SKY_file_UserHome(tmpp0); + return ret; + } } - public static uint SKY_file_ResolveResourceDirectory(_GoString_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_file_ResolveResourceDirectory(_GoString_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_file_ResolveResourceDirectory(string p0, _GoString_ p1) { +var tmpp0 = p0; +var tmpp1 = _GoString_.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_file_ResolveResourceDirectory(tmpp0, tmpp1); + return ret; + } } - public static uint SKY_file_DetermineResourcePath(_GoString_ p0, _GoString_ p1, _GoString_ p2, SWIGTYPE_p_GoString_ p3) { - uint ret = skycoinPINVOKE.SKY_file_DetermineResourcePath(_GoString_.getCPtr(p0), _GoString_.getCPtr(p1), _GoString_.getCPtr(p2), SWIGTYPE_p_GoString_.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_file_DetermineResourcePath(string p0, string p1, string p2, _GoString_ p3) { +var tmpp0 = p0; +var tmpp1 = p1; +var tmpp2 = p2; +var tmpp3 = _GoString_.getCPtr (p3); + { + uint ret = skycoinPINVOKE.SKY_file_DetermineResourcePath(tmpp0, tmpp1, tmpp2, tmpp3); + return ret; + } } - public static uint SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1, SWIGTYPE_p_ReadableOutputSet_Handle p2) { - uint ret = skycoinPINVOKE.SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_GoInt64_.getCPtr(p0), _GoString_.getCPtr(p1), SWIGTYPE_p_ReadableOutputSet_Handle.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_GoInt64_ p0, string p1, SWIGTYPE_p_ReadableOutputSet_Handle p2) { +var tmpp1 = p1; + { + uint ret = skycoinPINVOKE.SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1, SWIGTYPE_p_ReadableOutputSet_Handle.getCPtr(p2)); + return ret; + } } public static uint SKY_cli_GetWalletOutputs(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_ReadableOutputSet_Handle p2) { @@ -2303,15 +2630,20 @@ public static uint SKY_testutil_MakeAddress(cipher__Address p0) { return ret; } - public static uint SKY_secp256k1go_Field_String(secp256k1go__Field p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_String(secp256k1go__Field.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; + public static uint SKY_secp256k1go_Field_String(secp256k1go__Field p0, _GoString_ p1) { +var tmpp1 = _GoString_.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_String(secp256k1go__Field.getCPtr(p0), tmpp1); + return ret; + } } - public static uint SKY_secp256k1go_Field_Print(secp256k1go__Field p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Print(secp256k1go__Field.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_secp256k1go_Field_Print(secp256k1go__Field p0, string p1) { +var tmpp1 = p1; + { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Print(secp256k1go__Field.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_secp256k1go_Field_SetB32(secp256k1go__Field p0, GoSlice p1) { @@ -2326,10 +2658,12 @@ public static uint SKY_secp256k1go_Field_SetBytes(secp256k1go__Field p0, GoSlice return ret; } - public static uint SKY_secp256k1go_Field_SetHex(secp256k1go__Field p0, _GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_SetHex(secp256k1go__Field.getCPtr(p0), _GoString_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_secp256k1go_Field_SetHex(secp256k1go__Field p0, string p1) { +var tmpp1 = p1; + { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_SetHex(secp256k1go__Field.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_secp256k1go_Field_IsOdd(secp256k1go__Field p0, SWIGTYPE_p_unsigned_char p1) { @@ -2430,10 +2764,11 @@ public static uint SKY_cipher_SHA256_Set(cipher_SecKey p0, GoSlice p1) { } } - public static uint SKY_cipher_SHA256_Hex(cipher_SecKey p0, SWIGTYPE_p_GoString_ p1) { + public static uint SKY_cipher_SHA256_Hex(cipher_SecKey p0, _GoString_ p1) { var tmpp0 = cipher_SecKey.getCPtr (p0); +var tmpp1 = _GoString_.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Hex(tmpp0, SWIGTYPE_p_GoString_.getCPtr(p1)); + uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Hex(tmpp0, tmpp1); return ret; } } @@ -2457,11 +2792,11 @@ public static uint SKY_cipher_SumSHA256(GoSlice p0, cipher_SecKey p1) { } } - public static uint SKY_cipher_SHA256FromHex(_GoString_ p0, cipher_SecKey p1) { + public static uint SKY_cipher_SHA256FromHex(string p0, cipher_SecKey p1) { +var tmpp0 = p0; var tmpp1 = cipher_SecKey.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_cipher_SHA256FromHex(_GoString_.getCPtr(p0), tmpp1); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + uint ret = skycoinPINVOKE.SKY_cipher_SHA256FromHex(tmpp0, tmpp1); return ret; } } @@ -2651,9 +2986,12 @@ public static uint SKY_coin_Transaction_TxID(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_ return ret; } - public static uint SKY_coin_Transaction_TxIDHex(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoString_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_TxIDHex(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoString_.getCPtr(p1)); - return ret; + public static uint SKY_coin_Transaction_TxIDHex(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { +var tmpp1 = _GoString_.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_TxIDHex(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_coin_Transaction_UpdateHeader(SWIGTYPE_p_GoInt64_ p0) { diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index df409af4..582a1ef8 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -648,13 +648,13 @@ static skycoinPINVOKE() { public static extern uint SKY_bip39_NewMnemonic(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_bip39_MnemonicToByteArray")] - public static extern uint SKY_bip39_MnemonicToByteArray(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_bip39_MnemonicToByteArray(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_bip39_IsMnemonicValid")] - public static extern uint SKY_bip39_IsMnemonicValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_bip39_IsMnemonicValid(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewClient")] - public static extern uint SKY_api_NewClient(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_api_NewClient(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CSRF")] public static extern uint SKY_api_Client_CSRF(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -675,7 +675,7 @@ static skycoinPINVOKE() { public static extern uint SKY_api_Client_CoinSupply(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_BlockByHash")] - public static extern uint SKY_api_Client_BlockByHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_api_Client_BlockByHash(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_BlockBySeq")] public static extern uint SKY_api_Client_BlockBySeq(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); @@ -696,37 +696,37 @@ static skycoinPINVOKE() { public static extern uint SKY_api_Client_Balance(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_UxOut")] - public static extern uint SKY_api_Client_UxOut(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_api_Client_UxOut(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_AddressUxOuts")] - public static extern uint SKY_api_Client_AddressUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_api_Client_AddressUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Wallet")] - public static extern uint SKY_api_Client_Wallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_api_Client_Wallet(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Wallets")] public static extern uint SKY_api_Client_Wallets(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CreateUnencryptedWallet")] - public static extern uint SKY_api_Client_CreateUnencryptedWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, long jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); + public static extern uint SKY_api_Client_CreateUnencryptedWallet(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3, long jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CreateEncryptedWallet")] - public static extern uint SKY_api_Client_CreateEncryptedWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, long jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); + public static extern uint SKY_api_Client_CreateEncryptedWallet(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3, string jarg4, long jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NewWalletAddress")] - public static extern uint SKY_api_Client_NewWalletAddress(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); + public static extern uint SKY_api_Client_NewWalletAddress(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, long jarg3, string jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_WalletBalance")] - public static extern uint SKY_api_Client_WalletBalance(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_api_Client_WalletBalance(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Spend")] - public static extern uint SKY_api_Client_Spend(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, ulong jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); + public static extern uint SKY_api_Client_Spend(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3, ulong jarg4, string jarg5); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CreateTransaction")] public static extern uint SKY_api_Client_CreateTransaction(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_UpdateWallet")] - public static extern uint SKY_api_Client_UpdateWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_api_Client_UpdateWallet(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_WalletFolderName")] public static extern uint SKY_api_Client_WalletFolderName(global::System.Runtime.InteropServices.HandleRef jarg1); @@ -735,10 +735,10 @@ static skycoinPINVOKE() { public static extern uint SKY_api_Client_NewSeed(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_GetWalletSeed")] - public static extern uint SKY_api_Client_GetWalletSeed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + public static extern uint SKY_api_Client_GetWalletSeed(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkConnection")] - public static extern uint SKY_api_Client_NetworkConnection(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_api_Client_NetworkConnection(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkConnections")] public static extern uint SKY_api_Client_NetworkConnections(global::System.Runtime.InteropServices.HandleRef jarg1); @@ -756,7 +756,7 @@ static skycoinPINVOKE() { public static extern uint SKY_api_Client_PendingTransactions(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Transaction")] - public static extern uint SKY_api_Client_Transaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_api_Client_Transaction(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Transactions")] public static extern uint SKY_api_Client_Transactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -774,10 +774,10 @@ static skycoinPINVOKE() { public static extern uint SKY_api_Client_ResendUnconfirmedTransactions(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_RawTransaction")] - public static extern uint SKY_api_Client_RawTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_api_Client_RawTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_AddressTransactions")] - public static extern uint SKY_api_Client_AddressTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_api_Client_AddressTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Richlist")] public static extern uint SKY_api_Client_Richlist(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -786,19 +786,19 @@ static skycoinPINVOKE() { public static extern uint SKY_api_Client_AddressCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_UnloadWallet")] - public static extern uint SKY_api_Client_UnloadWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_api_Client_UnloadWallet(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Health")] public static extern uint SKY_api_Client_Health(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_EncryptWallet")] - public static extern uint SKY_api_Client_EncryptWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + public static extern uint SKY_api_Client_EncryptWallet(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_DecryptWallet")] - public static extern uint SKY_api_Client_DecryptWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + public static extern uint SKY_api_Client_DecryptWallet(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_Print")] - public static extern uint SKY_secp256k1go_XY_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_secp256k1go_XY_Print(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_ParsePubkey")] public static extern uint SKY_secp256k1go_XY_ParsePubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -852,19 +852,19 @@ static skycoinPINVOKE() { public static extern uint SKY_wallet_NewError(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewWallet")] - public static extern uint SKY_wallet_NewWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_wallet_NewWallet(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Lock")] - public static extern uint SKY_wallet_Wallet_Lock(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_wallet_Wallet_Lock(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, string jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Unlock")] public static extern uint SKY_wallet_Wallet_Unlock(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Load")] - public static extern uint SKY_wallet_Load(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint SKY_wallet_Load(string jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Save")] - public static extern uint SKY_wallet_Wallet_Save(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_wallet_Wallet_Save(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Validate")] public static extern uint SKY_wallet_Wallet_Validate(global::System.Runtime.InteropServices.HandleRef jarg1); @@ -915,7 +915,7 @@ static skycoinPINVOKE() { public static extern uint SKY_wallet_ChooseSpendsMaximizeUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_CheckWalletBalance")] - public static extern uint SKY_cli_CheckWalletBalance(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cli_CheckWalletBalance(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GetBalanceOfAddresses")] public static extern uint SKY_cli_GetBalanceOfAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -924,22 +924,22 @@ static skycoinPINVOKE() { public static extern uint SKY_wallet_NewReadableEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_LoadReadableEntry")] - public static extern uint SKY_wallet_LoadReadableEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_wallet_LoadReadableEntry(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewReadableEntryFromPubkey")] - public static extern uint SKY_wallet_NewReadableEntryFromPubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_wallet_NewReadableEntryFromPubkey(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableEntry_Save")] - public static extern uint SKY_wallet_ReadableEntry_Save(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_wallet_ReadableEntry_Save(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_LoadReadableWallet")] - public static extern uint SKY_wallet_LoadReadableWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_wallet_LoadReadableWallet(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableWallet_Save")] - public static extern uint SKY_wallet_ReadableWallet_Save(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_wallet_ReadableWallet_Save(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableWallet_Load")] - public static extern uint SKY_wallet_ReadableWallet_Load(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_wallet_ReadableWallet_Load(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableWallet_Erase")] public static extern uint SKY_wallet_ReadableWallet_Erase(global::System.Runtime.InteropServices.HandleRef jarg1); @@ -969,22 +969,22 @@ static skycoinPINVOKE() { public static extern uint SKY_secp256k1go_PubkeyIsValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_String2Hex")] - public static extern uint SKY_base58_String2Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_base58_String2Hex(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Base58_ToInt")] - public static extern uint SKY_base58_Base58_ToInt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_base58_Base58_ToInt(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Base58_ToHex")] - public static extern uint SKY_base58_Base58_ToHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_base58_Base58_ToHex(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Base58_Base582Int")] - public static extern uint SKY_base58_Base58_Base582Int(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_base58_Base58_Base582Int(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Base582Hex")] - public static extern uint SKY_base58_Base582Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_base58_Base582Hex(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Base58_BitHex")] - public static extern uint SKY_base58_Base58_BitHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_base58_Base58_BitHex(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_Int2Base58")] public static extern uint SKY_base58_Int2Base58(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -999,13 +999,13 @@ static skycoinPINVOKE() { public static extern uint SKY_base58_Hex2Base58Str(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GenerateWallet")] - public static extern uint SKY_cli_GenerateWallet(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg3); + public static extern uint SKY_cli_GenerateWallet(string jarg1, ulong jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_MakeAlphanumericSeed")] public static extern uint SKY_cli_MakeAlphanumericSeed(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_NewClient")] - public static extern uint SKY_webrpc_NewClient(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint SKY_webrpc_NewClient(string jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_CSRF")] public static extern uint SKY_webrpc_Client_CSRF(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1017,7 +1017,7 @@ static skycoinPINVOKE() { public static extern uint SKY_webrpc_Client_GetStatus(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetTransactionByID")] - public static extern uint SKY_webrpc_Client_GetTransactionByID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_webrpc_Client_GetTransactionByID(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetAddressUxOuts")] public static extern uint SKY_webrpc_Client_GetAddressUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -1032,16 +1032,16 @@ static skycoinPINVOKE() { public static extern uint SKY_webrpc_Client_GetLastBlocks(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_browser_Open")] - public static extern uint SKY_browser_Open(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint SKY_browser_Open(string jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_iputil_LocalhostIP")] public static extern uint SKY_iputil_LocalhostIP(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_iputil_IsLocalhost")] - public static extern uint SKY_iputil_IsLocalhost(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_iputil_IsLocalhost(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_iputil_SplitAddr")] - public static extern uint SKY_iputil_SplitAddr(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_iputil_SplitAddr(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encoder_StructField_String")] public static extern uint SKY_encoder_StructField_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1056,7 +1056,7 @@ static skycoinPINVOKE() { public static extern uint SKY_secp256k1_RandByte(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GenerateAddressesInFile")] - public static extern uint SKY_cli_GenerateAddressesInFile(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + public static extern uint SKY_cli_GenerateAddressesInFile(string jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_FormatAddressesAsJSON")] public static extern uint SKY_cli_FormatAddressesAsJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1092,7 +1092,7 @@ static skycoinPINVOKE() { public static extern uint SKY_cipher_NewPubKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromHex")] - public static extern uint SKY_cipher_PubKeyFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_PubKeyFromHex(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromSecKey")] public static extern uint SKY_cipher_PubKeyFromSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1113,7 +1113,7 @@ static skycoinPINVOKE() { public static extern uint SKY_cipher_NewSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKeyFromHex")] - public static extern uint SKY_cipher_SecKeyFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_SecKeyFromHex(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKey_Verify")] public static extern uint SKY_cipher_SecKey_Verify(global::System.Runtime.InteropServices.HandleRef jarg1); @@ -1128,7 +1128,7 @@ static skycoinPINVOKE() { public static extern uint SKY_cipher_NewSig(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SigFromHex")] - public static extern uint SKY_cipher_SigFromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_SigFromHex(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Sig_Hex")] public static extern uint SKY_cipher_Sig_Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1176,7 +1176,7 @@ static skycoinPINVOKE() { public static extern uint SKY_secp256k1go_Signature_GetS(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Print")] - public static extern uint SKY_secp256k1go_Signature_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_secp256k1go_Signature_Print(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Verify")] public static extern uint SKY_secp256k1go_Signature_Verify(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); @@ -1194,7 +1194,7 @@ static skycoinPINVOKE() { public static extern uint SKY_secp256k1go_Signature_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_App_Run")] - public static extern uint SKY_cli_App_Run(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cli_App_Run(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Config_GetCoin")] public static extern uint SKY_cli_Config_GetCoin(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1206,10 +1206,10 @@ static skycoinPINVOKE() { public static extern uint SKY_cli_RPCClientFromApp(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Getenv")] - public static extern uint SKY_cli_Getenv(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cli_Getenv(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Setenv")] - public static extern uint SKY_cli_Setenv(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cli_Setenv(string jarg1, string jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_poly1305_Verify")] public static extern uint SKY_poly1305_Verify(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); @@ -1266,7 +1266,7 @@ static skycoinPINVOKE() { public static extern uint SKY_wallet_Entry_VerifyPublic(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_CreateAddresses")] - public static extern uint SKY_wallet_CreateAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, byte jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); + public static extern uint SKY_wallet_CreateAddresses(string jarg1, string jarg2, long jarg3, byte jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_GetSkycoinWalletEntry")] public static extern uint SKY_wallet_GetSkycoinWalletEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -1275,7 +1275,7 @@ static skycoinPINVOKE() { public static extern uint SKY_wallet_GetBitcoinWalletEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Print")] - public static extern uint SKY_secp256k1go_XYZ_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_secp256k1go_XYZ_Print(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_SetXY")] public static extern uint SKY_secp256k1go_XYZ_SetXY(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1317,13 +1317,13 @@ static skycoinPINVOKE() { public static extern uint SKY_encrypt_Sha256Xor_Decrypt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_droplet_FromString")] - public static extern uint SKY_droplet_FromString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_droplet_FromString(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_droplet_ToString")] public static extern uint SKY_droplet_ToString(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_CryptoTypeFromString")] - public static extern uint SKY_wallet_CryptoTypeFromString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_wallet_CryptoTypeFromString(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_handle_close")] public static extern void SKY_handle_close(global::System.Runtime.InteropServices.HandleRef jarg1); @@ -1341,16 +1341,16 @@ static skycoinPINVOKE() { public static extern uint SKY_logging_Disable(); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_map_Get")] - public static extern uint SKY_map_Get(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_map_Get(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_map_HasKey")] - public static extern byte SKY_map_HasKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern byte SKY_map_HasKey(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_map_Close")] public static extern uint SKY_map_Close(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_DecodeBase58Address")] - public static extern uint SKY_cipher_DecodeBase58Address(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_DecodeBase58Address(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddressFromBytes")] public static extern uint SKY_cipher_AddressFromBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1362,7 +1362,7 @@ static skycoinPINVOKE() { public static extern uint SKY_cipher_AddressFromSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinDecodeBase58Address")] - public static extern uint SKY_cipher_BitcoinDecodeBase58Address(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_BitcoinDecodeBase58Address(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_Null")] public static extern uint SKY_cipher_Address_Null(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1398,7 +1398,7 @@ static skycoinPINVOKE() { public static extern uint SKY_cipher_BitcoinAddressFromBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKeyFromWalletImportFormat")] - public static extern uint SKY_cipher_SecKeyFromWalletImportFormat(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_SecKeyFromWalletImportFormat(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_JsonEncode_Handle")] public static extern uint SKY_JsonEncode_Handle(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1497,10 +1497,10 @@ static skycoinPINVOKE() { public static extern uint SKY_secp256k1go_Number_Create(); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_Print")] - public static extern uint SKY_secp256k1go_Number_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_secp256k1go_Number_Print(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_SetHex")] - public static extern uint SKY_secp256k1go_Number_SetHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_secp256k1go_Number_SetHex(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_IsOdd")] public static extern uint SKY_secp256k1go_Number_IsOdd(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1587,13 +1587,13 @@ static skycoinPINVOKE() { public static extern uint SKY_encrypt_ScryptChacha20poly1305_Decrypt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_CreateOptionsHandle")] - public static extern uint SKY_wallet_CreateOptionsHandle(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, byte jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, ulong jarg7); + public static extern uint SKY_wallet_CreateOptionsHandle(string jarg1, string jarg2, string jarg3, byte jarg4, string jarg5, string jarg6, ulong jarg7); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_AddPrivateKey")] - public static extern uint SKY_cli_AddPrivateKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cli_AddPrivateKey(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_AddPrivateKeyToFile")] - public static extern uint SKY_cli_AddPrivateKeyToFile(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_cli_AddPrivateKeyToFile(string jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_GenerateKeyPair")] public static extern uint SKY_secp256k1_GenerateKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1653,7 +1653,7 @@ static skycoinPINVOKE() { public static extern uint SKY_apputil_PrintProgramStatus(); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cert_CreateCertIfNotExists")] - public static extern uint SKY_cert_CreateCertIfNotExists(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + public static extern uint SKY_cert_CreateCertIfNotExists(string jarg1, string jarg2, string jarg3, string jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_VerifyTransactionFee")] public static extern uint SKY_fee_VerifyTransactionFee(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); @@ -1695,31 +1695,31 @@ static skycoinPINVOKE() { public static extern uint SKY_cli_PasswordFromTerm_Password(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_CreateRawTxFromWallet")] - public static extern uint SKY_cli_CreateRawTxFromWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); + public static extern uint SKY_cli_CreateRawTxFromWallet(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_CreateRawTxFromAddress")] - public static extern uint SKY_cli_CreateRawTxFromAddress(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); + public static extern uint SKY_cli_CreateRawTxFromAddress(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3, string jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_CreateRawTx")] - public static extern uint SKY_cli_CreateRawTx(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); + public static extern uint SKY_cli_CreateRawTx(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, string jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_NewTransaction")] public static extern uint SKY_cli_NewTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_file_InitDataDir")] - public static extern uint SKY_file_InitDataDir(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_file_InitDataDir(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_file_UserHome")] public static extern uint SKY_file_UserHome(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_file_ResolveResourceDirectory")] - public static extern uint SKY_file_ResolveResourceDirectory(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_file_ResolveResourceDirectory(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_file_DetermineResourcePath")] - public static extern uint SKY_file_DetermineResourcePath(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + public static extern uint SKY_file_DetermineResourcePath(string jarg1, string jarg2, string jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GetWalletOutputsFromFile")] - public static extern uint SKY_cli_GetWalletOutputsFromFile(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_cli_GetWalletOutputsFromFile(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GetWalletOutputs")] public static extern uint SKY_cli_GetWalletOutputs(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -1731,7 +1731,7 @@ static skycoinPINVOKE() { public static extern uint SKY_secp256k1go_Field_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Print")] - public static extern uint SKY_secp256k1go_Field_Print(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_secp256k1go_Field_Print(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_SetB32")] public static extern uint SKY_secp256k1go_Field_SetB32(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1740,7 +1740,7 @@ static skycoinPINVOKE() { public static extern uint SKY_secp256k1go_Field_SetBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_SetHex")] - public static extern uint SKY_secp256k1go_Field_SetHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_secp256k1go_Field_SetHex(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_IsOdd")] public static extern uint SKY_secp256k1go_Field_IsOdd(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1806,7 +1806,7 @@ static skycoinPINVOKE() { public static extern uint SKY_cipher_SumSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256FromHex")] - public static extern uint SKY_cipher_SHA256FromHex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cipher_SHA256FromHex(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_DoubleSHA256")] public static extern uint SKY_cipher_DoubleSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index a2d25feb..81af3049 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -2335,7 +2335,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_Size(void * ja } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_String(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_String(void * jarg1, GoString* jarg2) { unsigned int jresult ; Block__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -2426,7 +2426,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockHeader_Bytes(vo } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockHeader_String(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockHeader_String(void * jarg1, GoString* jarg2) { unsigned int jresult ; coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -2581,7 +2581,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewEmptyBlock(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_NewDefaultMnemomic(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_NewDefaultMnemomic(GoString* jarg1) { unsigned int jresult ; GoString_ *arg1 = (GoString_ *) 0 ; GoUint32 result; @@ -2607,7 +2607,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_NewEntropy(long lon } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_NewMnemonic(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_NewMnemonic(void * jarg1, GoString* jarg2) { unsigned int jresult ; GoSlice arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -2627,19 +2627,13 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_NewMnemonic(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_MnemonicToByteArray(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_MnemonicToByteArray(char* jarg1, void * jarg2) { unsigned int jresult ; GoString arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoString *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); arg2 = (coin__UxArray *)jarg2; result = (GoUint32)SKY_bip39_MnemonicToByteArray(arg1,arg2); jresult = result; @@ -2647,19 +2641,13 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_MnemonicToByteArray } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_IsMnemonicValid(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_IsMnemonicValid(char* jarg1, void * jarg2) { unsigned int jresult ; GoString arg1 ; GoUint8 *arg2 = (GoUint8 *) 0 ; - GoString *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); arg2 = (GoUint8 *)jarg2; result = (GoUint32)SKY_bip39_IsMnemonicValid(arg1,arg2); jresult = result; @@ -2667,19 +2655,13 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_IsMnemonicValid(voi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewClient(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewClient(char* jarg1, void * jarg2) { unsigned int jresult ; GoString arg1 ; Client__Handle *arg2 = (Client__Handle *) 0 ; - GoString *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); arg2 = (Client__Handle *)jarg2; result = (GoUint32)SKY_api_NewClient(arg1,arg2); jresult = result; @@ -2687,7 +2669,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewClient(void * jarg } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CSRF(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CSRF(void * jarg1, GoString* jarg2) { unsigned int jresult ; Client__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -2814,12 +2796,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CoinSupply(voi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockByHash(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockByHash(void * jarg1, char* jarg2) { unsigned int jresult ; Client__Handle arg1 ; GoString arg2 ; Handle *arg3 = (Handle *) 0 ; - GoString *argp2 ; Handle temp3 ; GoUint32 result; @@ -2829,12 +2810,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockByHash(vo { jarg1 = (long*)&arg1; } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); result = (GoUint32)SKY_api_Client_BlockByHash(arg1,arg2,arg3); jresult = result; return jresult; @@ -2968,12 +2944,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Balance(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UxOut(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UxOut(void * jarg1, char* jarg2) { unsigned int jresult ; Client__Handle arg1 ; GoString arg2 ; Handle *arg3 = (Handle *) 0 ; - GoString *argp2 ; Handle temp3 ; GoUint32 result; @@ -2983,24 +2958,18 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UxOut(void * j { jarg1 = (long*)&arg1; } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); result = (GoUint32)SKY_api_Client_UxOut(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressUxOuts(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressUxOuts(void * jarg1, char* jarg2) { unsigned int jresult ; Client__Handle arg1 ; GoString arg2 ; Handle *arg3 = (Handle *) 0 ; - GoString *argp2 ; Handle temp3 ; GoUint32 result; @@ -3010,35 +2979,24 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressUxOuts( { jarg1 = (long*)&arg1; } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); result = (GoUint32)SKY_api_Client_AddressUxOuts(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Wallet(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Wallet(void * jarg1, char* jarg2, void * jarg3) { unsigned int jresult ; Client__Handle arg1 ; GoString arg2 ; WalletResponse__Handle *arg3 = (WalletResponse__Handle *) 0 ; - GoString *argp2 ; GoUint32 result; { jarg1 = (long*)&arg1; } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); arg3 = (WalletResponse__Handle *)jarg3; result = (GoUint32)SKY_api_Client_Wallet(arg1,arg2,arg3); jresult = result; @@ -3062,32 +3020,20 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Wallets(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateUnencryptedWallet(void * jarg1, void * jarg2, void * jarg3, long long jarg4, void * jarg5) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateUnencryptedWallet(void * jarg1, char* jarg2, char* jarg3, long long jarg4, void * jarg5) { unsigned int jresult ; Client__Handle arg1 ; GoString arg2 ; GoString arg3 ; GoInt arg4 ; WalletResponse__Handle *arg5 = (WalletResponse__Handle *) 0 ; - GoString *argp2 ; - GoString *argp3 ; GoUint32 result; { jarg1 = (long*)&arg1; } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); + (&arg3)->p=jarg3;(&arg3)->n=strlen(jarg3); arg4 = (GoInt)jarg4; arg5 = (WalletResponse__Handle *)jarg5; result = (GoUint32)SKY_api_Client_CreateUnencryptedWallet(arg1,arg2,arg3,arg4,arg5); @@ -3096,7 +3042,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateUnencryp } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateEncryptedWallet(void * jarg1, void * jarg2, void * jarg3, void * jarg4, long long jarg5, void * jarg6) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateEncryptedWallet(void * jarg1, char* jarg2, char* jarg3, char* jarg4, long long jarg5, void * jarg6) { unsigned int jresult ; Client__Handle arg1 ; GoString arg2 ; @@ -3104,32 +3050,14 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateEncrypte GoString arg4 ; GoInt arg5 ; WalletResponse__Handle *arg6 = (WalletResponse__Handle *) 0 ; - GoString *argp2 ; - GoString *argp3 ; - GoString *argp4 ; GoUint32 result; { jarg1 = (long*)&arg1; } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; - argp4 = (GoString *)jarg4; - if (!argp4) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg4 = *argp4; + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); + (&arg3)->p=jarg3;(&arg3)->n=strlen(jarg3); + (&arg4)->p=jarg4;(&arg4)->n=strlen(jarg4); arg5 = (GoInt)jarg5; arg6 = (WalletResponse__Handle *)jarg6; result = (GoUint32)SKY_api_Client_CreateEncryptedWallet(arg1,arg2,arg3,arg4,arg5,arg6); @@ -3138,33 +3066,21 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateEncrypte } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NewWalletAddress(void * jarg1, void * jarg2, long long jarg3, void * jarg4, void * jarg5) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NewWalletAddress(void * jarg1, char* jarg2, long long jarg3, char* jarg4, void * jarg5) { unsigned int jresult ; Client__Handle arg1 ; GoString arg2 ; GoInt arg3 ; GoString arg4 ; Strings__Handle *arg5 = (Strings__Handle *) 0 ; - GoString *argp2 ; - GoString *argp4 ; GoUint32 result; { jarg1 = (long*)&arg1; } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); arg3 = (GoInt)jarg3; - argp4 = (GoString *)jarg4; - if (!argp4) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg4 = *argp4; + (&arg4)->p=jarg4;(&arg4)->n=strlen(jarg4); arg5 = (Strings__Handle *)jarg5; result = (GoUint32)SKY_api_Client_NewWalletAddress(arg1,arg2,arg3,arg4,arg5); jresult = result; @@ -3172,23 +3088,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NewWalletAddre } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_WalletBalance(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_WalletBalance(void * jarg1, char* jarg2, void * jarg3) { unsigned int jresult ; Client__Handle arg1 ; GoString arg2 ; wallet__BalancePair *arg3 = (wallet__BalancePair *) 0 ; - GoString *argp2 ; GoUint32 result; { jarg1 = (long*)&arg1; } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); arg3 = (wallet__BalancePair *)jarg3; result = (GoUint32)SKY_api_Client_WalletBalance(arg1,arg2,arg3); jresult = result; @@ -3196,7 +3106,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_WalletBalance( } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Spend(void * jarg1, void * jarg2, void * jarg3, unsigned long long jarg4, void * jarg5) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Spend(void * jarg1, char* jarg2, char* jarg3, unsigned long long jarg4, char* jarg5) { unsigned int jresult ; Client__Handle arg1 ; GoString arg2 ; @@ -3204,9 +3114,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Spend(void * j GoUint64 arg4 ; GoString arg5 ; SpendResult_Handle *arg6 = (SpendResult_Handle *) 0 ; - GoString *argp2 ; - GoString *argp3 ; - GoString *argp5 ; Handle temp6 ; GoUint32 result; @@ -3216,25 +3123,10 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Spend(void * j { jarg1 = (long*)&arg1; } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); + (&arg3)->p=jarg3;(&arg3)->n=strlen(jarg3); arg4 = (GoUint64)jarg4; - argp5 = (GoString *)jarg5; - if (!argp5) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg5 = *argp5; + (&arg5)->p=jarg5;(&arg5)->n=strlen(jarg5); result = (GoUint32)SKY_api_Client_Spend(arg1,arg2,arg3,arg4,arg5,arg6); jresult = result; return jresult; @@ -3265,30 +3157,18 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateTransact } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UpdateWallet(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UpdateWallet(void * jarg1, char* jarg2, char* jarg3) { unsigned int jresult ; Client__Handle arg1 ; GoString arg2 ; GoString arg3 ; - GoString *argp2 ; - GoString *argp3 ; GoUint32 result; { jarg1 = (long*)&arg1; } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); + (&arg3)->p=jarg3;(&arg3)->n=strlen(jarg3); result = (GoUint32)SKY_api_Client_UpdateWallet(arg1,arg2,arg3); jresult = result; return jresult; @@ -3314,7 +3194,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_WalletFolderNa } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NewSeed(void * jarg1, long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NewSeed(void * jarg1, long long jarg2, GoString* jarg3) { unsigned int jresult ; Client__Handle arg1 ; GoInt arg2 ; @@ -3332,31 +3212,19 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NewSeed(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_GetWalletSeed(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_GetWalletSeed(void * jarg1, char* jarg2, char* jarg3, GoString* jarg4) { unsigned int jresult ; Client__Handle arg1 ; GoString arg2 ; GoString arg3 ; GoString_ *arg4 = (GoString_ *) 0 ; - GoString *argp2 ; - GoString *argp3 ; GoUint32 result; { jarg1 = (long*)&arg1; } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); + (&arg3)->p=jarg3;(&arg3)->n=strlen(jarg3); arg4 = (GoString_ *)jarg4; result = (GoUint32)SKY_api_Client_GetWalletSeed(arg1,arg2,arg3,arg4); jresult = result; @@ -3364,12 +3232,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_GetWalletSeed( } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkConnection(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkConnection(void * jarg1, char* jarg2) { unsigned int jresult ; Client__Handle arg1 ; GoString arg2 ; Handle *arg3 = (Handle *) 0 ; - GoString *argp2 ; Handle temp3 ; GoUint32 result; @@ -3379,12 +3246,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkConnect { jarg1 = (long*)&arg1; } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); result = (GoUint32)SKY_api_Client_NetworkConnection(arg1,arg2,arg3); jresult = result; return jresult; @@ -3486,12 +3348,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_PendingTransac } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Transaction(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Transaction(void * jarg1, char* jarg2) { unsigned int jresult ; Client__Handle arg1 ; GoString arg2 ; Handle *arg3 = (Handle *) 0 ; - GoString *argp2 ; Handle temp3 ; GoUint32 result; @@ -3501,12 +3362,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Transaction(vo { jarg1 = (long*)&arg1; } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); result = (GoUint32)SKY_api_Client_Transaction(arg1,arg2,arg3); jresult = result; return jresult; @@ -3594,7 +3450,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UnconfirmedTra } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_InjectTransaction(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_InjectTransaction(void * jarg1, void * jarg2, GoString* jarg3) { unsigned int jresult ; Client__Handle arg1 ; Transaction__Handle arg2 ; @@ -3633,23 +3489,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_ResendUnconfir } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_RawTransaction(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_RawTransaction(void * jarg1, char* jarg2, GoString* jarg3) { unsigned int jresult ; Client__Handle arg1 ; GoString arg2 ; GoString_ *arg3 = (GoString_ *) 0 ; - GoString *argp2 ; GoUint32 result; { jarg1 = (long*)&arg1; } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); arg3 = (GoString_ *)jarg3; result = (GoUint32)SKY_api_Client_RawTransaction(arg1,arg2,arg3); jresult = result; @@ -3657,12 +3507,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_RawTransaction } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressTransactions(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressTransactions(void * jarg1, char* jarg2) { unsigned int jresult ; Client__Handle arg1 ; GoString arg2 ; Handle *arg3 = (Handle *) 0 ; - GoString *argp2 ; Handle temp3 ; GoUint32 result; @@ -3672,12 +3521,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressTransac { jarg1 = (long*)&arg1; } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); result = (GoUint32)SKY_api_Client_AddressTransactions(arg1,arg2,arg3); jresult = result; return jresult; @@ -3721,22 +3565,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressCount(v } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UnloadWallet(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UnloadWallet(void * jarg1, char* jarg2) { unsigned int jresult ; Client__Handle arg1 ; GoString arg2 ; - GoString *argp2 ; GoUint32 result; { jarg1 = (long*)&arg1; } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); result = (GoUint32)SKY_api_Client_UnloadWallet(arg1,arg2); jresult = result; return jresult; @@ -3762,31 +3600,19 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Health(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_EncryptWallet(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_EncryptWallet(void * jarg1, char* jarg2, char* jarg3, void * jarg4) { unsigned int jresult ; Client__Handle arg1 ; GoString arg2 ; GoString arg3 ; WalletResponse__Handle *arg4 = (WalletResponse__Handle *) 0 ; - GoString *argp2 ; - GoString *argp3 ; GoUint32 result; { jarg1 = (long*)&arg1; } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); + (&arg3)->p=jarg3;(&arg3)->n=strlen(jarg3); arg4 = (WalletResponse__Handle *)jarg4; result = (GoUint32)SKY_api_Client_EncryptWallet(arg1,arg2,arg3,arg4); jresult = result; @@ -3794,31 +3620,19 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_EncryptWallet( } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_DecryptWallet(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_DecryptWallet(void * jarg1, char* jarg2, char* jarg3, void * jarg4) { unsigned int jresult ; Client__Handle arg1 ; GoString arg2 ; GoString arg3 ; WalletResponse__Handle *arg4 = (WalletResponse__Handle *) 0 ; - GoString *argp2 ; - GoString *argp3 ; GoUint32 result; { jarg1 = (long*)&arg1; } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); + (&arg3)->p=jarg3;(&arg3)->n=strlen(jarg3); arg4 = (WalletResponse__Handle *)jarg4; result = (GoUint32)SKY_api_Client_DecryptWallet(arg1,arg2,arg3,arg4); jresult = result; @@ -3826,20 +3640,14 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_DecryptWallet( } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_Print(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_Print(void * jarg1, char* jarg2) { unsigned int jresult ; secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; GoString arg2 ; - GoString *argp2 ; GoUint32 result; arg1 = (secp256k1go__XY *)jarg1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); result = (GoUint32)SKY_secp256k1go_XY_Print(arg1,arg2); jresult = result; return jresult; @@ -4141,24 +3949,18 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewError(void * ja } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewWallet(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewWallet(char* jarg1, void * jarg2) { unsigned int jresult ; GoString arg1 ; Options__Handle arg2 ; Wallet__Handle *arg3 = (Wallet__Handle *) 0 ; - GoString *argp1 ; Handle temp3 ; GoUint32 result; { arg3 = &temp3; } - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); { jarg2 = (long*)&arg2; } @@ -4168,13 +3970,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewWallet(void * j } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Lock(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Lock(void * jarg1, void * jarg2, char* jarg3) { unsigned int jresult ; Wallet__Handle arg1 ; GoSlice arg2 ; GoString arg3 ; GoSlice *argp2 ; - GoString *argp3 ; GoUint32 result; { @@ -4186,12 +3987,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Lock(void * return 0; } arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; + (&arg3)->p=jarg3;(&arg3)->n=strlen(jarg3); result = (GoUint32)SKY_wallet_Wallet_Lock(arg1,arg2,arg3); jresult = result; return jresult; @@ -4225,45 +4021,33 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Unlock(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Load(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Load(char* jarg1) { unsigned int jresult ; GoString arg1 ; Wallet__Handle *arg2 = (Wallet__Handle *) 0 ; - GoString *argp1 ; Handle temp2 ; GoUint32 result; { arg2 = &temp2; } - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); result = (GoUint32)SKY_wallet_Load(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Save(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Save(void * jarg1, char* jarg2) { unsigned int jresult ; Wallet__Handle arg1 ; GoString arg2 ; - GoString *argp2 ; GoUint32 result; { jarg1 = (long*)&arg1; } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); result = (GoUint32)SKY_wallet_Wallet_Save(arg1,arg2); jresult = result; return jresult; @@ -4284,7 +4068,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Validate(vo } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Type(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Type(void * jarg1, GoString* jarg2) { unsigned int jresult ; Wallet__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -4300,7 +4084,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Type(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Version(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Version(void * jarg1, GoString* jarg2) { unsigned int jresult ; Wallet__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -4316,7 +4100,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Version(voi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Filename(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Filename(void * jarg1, GoString* jarg2) { unsigned int jresult ; Wallet__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -4332,7 +4116,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Filename(vo } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Label(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Label(void * jarg1, GoString* jarg2) { unsigned int jresult ; Wallet__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -4558,12 +4342,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ChooseSpendsMaximi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CheckWalletBalance(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CheckWalletBalance(void * jarg1, char* jarg2) { unsigned int jresult ; WebRpcClient__Handle arg1 ; GoString arg2 ; BalanceResult_Handle *arg3 = (BalanceResult_Handle *) 0 ; - GoString *argp2 ; Handle temp3 ; GoUint32 result; @@ -4573,12 +4356,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CheckWalletBalance(vo { jarg1 = (long*)&arg1; } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); result = (GoUint32)SKY_cli_CheckWalletBalance(arg1,arg2,arg3); jresult = result; return jresult; @@ -4626,19 +4404,13 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewReadableEntry(v } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_LoadReadableEntry(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_LoadReadableEntry(char* jarg1, void * jarg2) { unsigned int jresult ; GoString arg1 ; ReadableEntry__Handle *arg2 = (ReadableEntry__Handle *) 0 ; - GoString *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); arg2 = (ReadableEntry__Handle *)jarg2; result = (GoUint32)SKY_wallet_LoadReadableEntry(arg1,arg2); jresult = result; @@ -4646,19 +4418,13 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_LoadReadableEntry( } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewReadableEntryFromPubkey(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewReadableEntryFromPubkey(char* jarg1, void * jarg2) { unsigned int jresult ; GoString arg1 ; ReadableEntry__Handle *arg2 = (ReadableEntry__Handle *) 0 ; - GoString *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); arg2 = (ReadableEntry__Handle *)jarg2; result = (GoUint32)SKY_wallet_NewReadableEntryFromPubkey(arg1,arg2); jresult = result; @@ -4666,41 +4432,29 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewReadableEntryFr } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableEntry_Save(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableEntry_Save(void * jarg1, char* jarg2) { unsigned int jresult ; ReadableEntry__Handle arg1 ; GoString arg2 ; - GoString *argp2 ; GoUint32 result; { jarg1 = (long*)&arg1; } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); result = (GoUint32)SKY_wallet_ReadableEntry_Save(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_LoadReadableWallet(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_LoadReadableWallet(char* jarg1, void * jarg2) { unsigned int jresult ; GoString arg1 ; ReadableWallet__Handle *arg2 = (ReadableWallet__Handle *) 0 ; - GoString *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); arg2 = (ReadableWallet__Handle *)jarg2; result = (GoUint32)SKY_wallet_LoadReadableWallet(arg1,arg2); jresult = result; @@ -4708,44 +4462,32 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_LoadReadableWallet } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableWallet_Save(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableWallet_Save(void * jarg1, char* jarg2) { unsigned int jresult ; ReadableWallet__Handle arg1 ; GoString arg2 ; - GoString *argp2 ; GoUint32 result; { jarg1 = (long*)&arg1; } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); result = (GoUint32)SKY_wallet_ReadableWallet_Save(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableWallet_Load(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableWallet_Load(void * jarg1, char* jarg2) { unsigned int jresult ; ReadableWallet__Handle arg1 ; GoString arg2 ; - GoString *argp2 ; GoUint32 result; { jarg1 = (long*)&arg1; } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); result = (GoUint32)SKY_wallet_ReadableWallet_Load(arg1,arg2); jresult = result; return jresult; @@ -4962,19 +4704,13 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_PubkeyIsValid } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_String2Hex(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_String2Hex(char* jarg1, void * jarg2) { unsigned int jresult ; GoString arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoString *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); arg2 = (coin__UxArray *)jarg2; result = (GoUint32)SKY_base58_String2Hex(arg1,arg2); jresult = result; @@ -4982,19 +4718,13 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_String2Hex(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_ToInt(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_ToInt(char* jarg1, void * jarg2) { unsigned int jresult ; GoString arg1 ; GoInt *arg2 = (GoInt *) 0 ; - GoString *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); arg2 = (GoInt *)jarg2; result = (GoUint32)SKY_base58_Base58_ToInt(arg1,arg2); jresult = result; @@ -5002,19 +4732,13 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_ToInt(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_ToHex(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_ToHex(char* jarg1, void * jarg2) { unsigned int jresult ; GoString arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoString *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); arg2 = (coin__UxArray *)jarg2; result = (GoUint32)SKY_base58_Base58_ToHex(arg1,arg2); jresult = result; @@ -5022,19 +4746,13 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_ToHex(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_Base582Int(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_Base582Int(char* jarg1, void * jarg2) { unsigned int jresult ; GoString arg1 ; GoInt *arg2 = (GoInt *) 0 ; - GoString *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); arg2 = (GoInt *)jarg2; result = (GoUint32)SKY_base58_Base58_Base582Int(arg1,arg2); jresult = result; @@ -5042,19 +4760,13 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_Base582Int( } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base582Hex(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base582Hex(char* jarg1, void * jarg2) { unsigned int jresult ; GoString arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoString *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); arg2 = (coin__UxArray *)jarg2; result = (GoUint32)SKY_base58_Base582Hex(arg1,arg2); jresult = result; @@ -5062,19 +4774,13 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base582Hex(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_BitHex(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_BitHex(char* jarg1, void * jarg2) { unsigned int jresult ; GoString arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoString *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); arg2 = (coin__UxArray *)jarg2; result = (GoUint32)SKY_base58_Base58_BitHex(arg1,arg2); jresult = result; @@ -5082,7 +4788,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_BitHex(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Int2Base58(long long jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Int2Base58(long long jarg1, GoString* jarg2) { unsigned int jresult ; GoInt arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -5096,7 +4802,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Int2Base58(long lo } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Hex2Base58(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Hex2Base58(void * jarg1, GoString* jarg2) { unsigned int jresult ; GoSlice arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -5116,7 +4822,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Hex2Base58(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Hex2Base58String(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Hex2Base58String(void * jarg1, GoString* jarg2) { unsigned int jresult ; GoSlice arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -5136,7 +4842,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Hex2Base58String(v } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Hex2Base58Str(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Hex2Base58Str(void * jarg1, GoString* jarg2) { unsigned int jresult ; GoSlice arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -5156,13 +4862,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Hex2Base58Str(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GenerateWallet(void * jarg1, unsigned long long jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GenerateWallet(char* jarg1, unsigned long long jarg3) { unsigned int jresult ; GoString arg1 ; Options__Handle *arg2 = (Options__Handle *) 0 ; GoUint64 arg3 ; Wallet__Handle *arg4 = (Wallet__Handle *) 0 ; - GoString *argp1 ; Handle temp2 ; Handle temp4 ; GoUint32 result; @@ -5173,12 +4878,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GenerateWallet(void * { arg4 = &temp4; } - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); arg3 = (GoUint64)jarg3; result = (GoUint32)SKY_cli_GenerateWallet(arg1,arg2,arg3,arg4); jresult = result; @@ -5186,7 +4886,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GenerateWallet(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_MakeAlphanumericSeed(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_MakeAlphanumericSeed(GoString* jarg1) { unsigned int jresult ; GoString_ *arg1 = (GoString_ *) 0 ; GoUint32 result; @@ -5198,30 +4898,24 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_MakeAlphanumericSeed( } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_NewClient(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_NewClient(char* jarg1) { unsigned int jresult ; GoString arg1 ; WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; - GoString *argp1 ; Handle temp2 ; GoUint32 result; { arg2 = &temp2; } - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); result = (GoUint32)SKY_webrpc_NewClient(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_CSRF(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_CSRF(void * jarg1, GoString* jarg2) { unsigned int jresult ; WebRpcClient__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -5237,7 +4931,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_CSRF(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_InjectTransaction(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_InjectTransaction(void * jarg1, void * jarg2, GoString* jarg3) { unsigned int jresult ; WebRpcClient__Handle arg1 ; Transaction__Handle arg2 ; @@ -5276,12 +4970,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetStatus(v } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetTransactionByID(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetTransactionByID(void * jarg1, char* jarg2) { unsigned int jresult ; WebRpcClient__Handle arg1 ; GoString arg2 ; TransactionResult_Handle *arg3 = (TransactionResult_Handle *) 0 ; - GoString *argp2 ; Handle temp3 ; GoUint32 result; @@ -5291,12 +4984,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetTransact { jarg1 = (long*)&arg1; } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); result = (GoUint32)SKY_webrpc_Client_GetTransactionByID(arg1,arg2,arg3); jresult = result; return jresult; @@ -5389,25 +5077,19 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetLastBloc } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_browser_Open(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_browser_Open(char* jarg1) { unsigned int jresult ; GoString arg1 ; - GoString *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); result = (GoUint32)SKY_browser_Open(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_iputil_LocalhostIP(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_iputil_LocalhostIP(GoString* jarg1) { unsigned int jresult ; GoString_ *arg1 = (GoString_ *) 0 ; GoUint32 result; @@ -5419,19 +5101,13 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_iputil_LocalhostIP(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_iputil_IsLocalhost(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_iputil_IsLocalhost(char* jarg1, void * jarg2) { unsigned int jresult ; GoString arg1 ; GoUint8 *arg2 = (GoUint8 *) 0 ; - GoString *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); arg2 = (GoUint8 *)jarg2; result = (GoUint32)SKY_iputil_IsLocalhost(arg1,arg2); jresult = result; @@ -5439,20 +5115,14 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_iputil_IsLocalhost(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_iputil_SplitAddr(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_iputil_SplitAddr(char* jarg1, GoString* jarg2, void * jarg3) { unsigned int jresult ; GoString arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; GoUint16 *arg3 = (GoUint16 *) 0 ; - GoString *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); arg2 = (GoString_ *)jarg2; arg3 = (GoUint16 *)jarg3; result = (GoUint32)SKY_iputil_SplitAddr(arg1,arg2,arg3); @@ -5461,7 +5131,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_iputil_SplitAddr(void * j } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encoder_StructField_String(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encoder_StructField_String(void * jarg1, GoString* jarg2) { unsigned int jresult ; encoder__StructField *arg1 = (encoder__StructField *) 0 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -5537,21 +5207,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_RandByte(long l } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GenerateAddressesInFile(void * jarg1, unsigned long long jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GenerateAddressesInFile(char* jarg1, unsigned long long jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; GoString arg1 ; GoUint64 arg2 ; PasswordReader__Handle arg3 ; coin__UxArray *arg4 = (coin__UxArray *) 0 ; - GoString *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); arg2 = (GoUint64)jarg2; { jarg3 = (long*)&arg3; @@ -5563,7 +5227,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GenerateAddressesInFi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_FormatAddressesAsJSON(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_FormatAddressesAsJSON(void * jarg1, GoString* jarg2) { unsigned int jresult ; GoSlice arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -5583,7 +5247,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_FormatAddressesAsJSON } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_FormatAddressesAsJoinedArray(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_FormatAddressesAsJoinedArray(void * jarg1, GoString* jarg2) { unsigned int jresult ; GoSlice arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -5749,19 +5413,13 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewPubKey(void * j } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromHex(void * jarg1, cipher_PubKey* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromHex(char* jarg1, cipher_PubKey* jarg2) { unsigned int jresult ; GoString arg1 ; cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; - GoString *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); arg2 = (cipher__PubKey *)jarg2; result = (GoUint32)SKY_cipher_PubKeyFromHex(arg1,(GoUint8_ (*)[33])arg2); jresult = result; @@ -5811,7 +5469,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_Verify(ciph } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_Hex(cipher_PubKey* jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_Hex(cipher_PubKey* jarg1, GoString* jarg2) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -5859,19 +5517,13 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewSecKey(void * j } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKeyFromHex(void * jarg1, cipher_SecKey* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKeyFromHex(char* jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; GoString arg1 ; cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - GoString *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); arg2 = (cipher__SecKey *)jarg2; result = (GoUint32)SKY_cipher_SecKeyFromHex(arg1,(GoUint8_ (*)[32])arg2); jresult = result; @@ -5891,7 +5543,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKey_Verify(ciph } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKey_Hex(cipher_SecKey* jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKey_Hex(cipher_SecKey* jarg1, GoString* jarg2) { unsigned int jresult ; cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -5941,19 +5593,13 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewSig(void * jarg } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SigFromHex(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SigFromHex(char* jarg1, void * jarg2) { unsigned int jresult ; GoString arg1 ; cipher__Sig *arg2 = (cipher__Sig *) 0 ; - GoString *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); arg2 = (cipher__Sig *)jarg2; result = (GoUint32)SKY_cipher_SigFromHex(arg1,(GoUint8_ (*)[65])arg2); jresult = result; @@ -5961,7 +5607,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SigFromHex(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Sig_Hex(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Sig_Hex(void * jarg1, GoString* jarg2) { unsigned int jresult ; cipher__Sig *arg1 = (cipher__Sig *) 0 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -6222,22 +5868,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Get } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Print(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Print(void * jarg1, char* jarg2) { unsigned int jresult ; Signature_Handle arg1 ; GoString arg2 ; - GoString *argp2 ; GoUint32 result; { jarg1 = (long*)&arg1; } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); result = (GoUint32)SKY_secp256k1go_Signature_Print(arg1,arg2); jresult = result; return jresult; @@ -6358,29 +5998,23 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Byt } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_App_Run(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_App_Run(void * jarg1, char* jarg2) { unsigned int jresult ; App__Handle arg1 ; GoString arg2 ; - GoString *argp2 ; GoUint32 result; { jarg1 = (long*)&arg1; } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); result = (GoUint32)SKY_cli_App_Run(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_GetCoin(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_GetCoin(void * jarg1, GoString* jarg2) { unsigned int jresult ; Config__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -6396,7 +6030,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_GetCoin(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_GetRPCAddress(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_GetRPCAddress(void * jarg1, GoString* jarg2) { unsigned int jresult ; Config__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -6431,19 +6065,13 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_RPCClientFromApp(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Getenv(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Getenv(char* jarg1, GoString* jarg2) { unsigned int jresult ; GoString arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; - GoString *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_cli_Getenv(arg1,arg2); jresult = result; @@ -6451,26 +6079,14 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Getenv(void * jarg1, } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Setenv(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Setenv(char* jarg1, char* jarg2) { unsigned int jresult ; GoString arg1 ; GoString arg2 ; - GoString *argp1 ; - GoString *argp2 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); result = (GoUint32)SKY_cli_Setenv(arg1,arg2); jresult = result; return jresult; @@ -6761,29 +6377,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Entry_VerifyPublic } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateAddresses(void * jarg1, void * jarg2, long long jarg3, unsigned char jarg4, void * jarg5) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateAddresses(char* jarg1, char* jarg2, long long jarg3, unsigned char jarg4, void * jarg5) { unsigned int jresult ; GoString arg1 ; GoString arg2 ; GoInt arg3 ; GoUint8 arg4 ; ReadableWallet__Handle *arg5 = (ReadableWallet__Handle *) 0 ; - GoString *argp1 ; - GoString *argp2 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); arg3 = (GoInt)jarg3; arg4 = (GoUint8)jarg4; arg5 = (ReadableWallet__Handle *)jarg5; @@ -6825,20 +6429,14 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_GetBitcoinWalletEn } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Print(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Print(void * jarg1, char* jarg2) { unsigned int jresult ; secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; GoString arg2 ; - GoString *argp2 ; GoUint32 result; arg1 = (secp256k1go__XYZ *)jarg1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); result = (GoUint32)SKY_secp256k1go_XYZ_Print(arg1,arg2); jresult = result; return jresult; @@ -7069,19 +6667,13 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_Sha256Xor_Decrypt } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_droplet_FromString(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_droplet_FromString(char* jarg1, void * jarg2) { unsigned int jresult ; GoString arg1 ; GoUint64 *arg2 = (GoUint64 *) 0 ; - GoString *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); arg2 = (GoUint64 *)jarg2; result = (GoUint32)SKY_droplet_FromString(arg1,arg2); jresult = result; @@ -7089,7 +6681,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_droplet_FromString(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_droplet_ToString(unsigned long long jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_droplet_ToString(unsigned long long jarg1, GoString* jarg2) { unsigned int jresult ; GoUint64 arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -7103,19 +6695,13 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_droplet_ToString(unsigned } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CryptoTypeFromString(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CryptoTypeFromString(char* jarg1, GoString* jarg2) { unsigned int jresult ; GoString arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; - GoString *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_wallet_CryptoTypeFromString(arg1,arg2); jresult = result; @@ -7182,21 +6768,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_logging_Disable() { } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_map_Get(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_map_Get(void * jarg1, char* jarg2, GoString* jarg3) { unsigned int jresult ; GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; GoString arg2 ; GoString_ *arg3 = (GoString_ *) 0 ; - GoString *argp2 ; GoUint32 result; arg1 = (GoStringMap_ *)jarg1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); arg3 = (GoString_ *)jarg3; result = (GoUint32)SKY_map_Get(arg1,arg2,arg3); jresult = result; @@ -7204,20 +6784,14 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_map_Get(void * jarg1, voi } -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_skycoin_SKY_map_HasKey(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_skycoin_SKY_map_HasKey(void * jarg1, char* jarg2) { unsigned char jresult ; GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; GoString arg2 ; - GoString *argp2 ; GoUint8 result; arg1 = (GoStringMap_ *)jarg1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); result = (GoUint8)SKY_map_HasKey(arg1,arg2); jresult = result; return jresult; @@ -7236,19 +6810,13 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_map_Close(void * jarg1) { } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DecodeBase58Address(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DecodeBase58Address(char* jarg1, void * jarg2) { unsigned int jresult ; GoString arg1 ; cipher__Address *arg2 = (cipher__Address *) 0 ; - GoString *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); arg2 = (cipher__Address *)jarg2; result = (GoUint32)SKY_cipher_DecodeBase58Address(arg1,arg2); jresult = result; @@ -7304,19 +6872,13 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddressFromSecKey( } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinDecodeBase58Address(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinDecodeBase58Address(char* jarg1, void * jarg2) { unsigned int jresult ; GoString arg1 ; cipher__Address *arg2 = (cipher__Address *) 0 ; - GoString *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); arg2 = (cipher__Address *)jarg2; result = (GoUint32)SKY_cipher_BitcoinDecodeBase58Address(arg1,arg2); jresult = result; @@ -7380,7 +6942,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Verify(voi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_String(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_String(void * jarg1, GoString* jarg2) { unsigned int jresult ; cipher__Address *arg1 = (cipher__Address *) 0 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -7394,7 +6956,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_String(voi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_BitcoinString(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_BitcoinString(void * jarg1, GoString* jarg2) { unsigned int jresult ; cipher__Address *arg1 = (cipher__Address *) 0 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -7436,7 +6998,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_BitcoinChe } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddressFromPubkey(cipher_PubKey* jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddressFromPubkey(cipher_PubKey* jarg1, GoString* jarg2) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -7450,7 +7012,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddressFrom } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinWalletImportFormatFromSeckey(cipher_SecKey* jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinWalletImportFormatFromSeckey(cipher_SecKey* jarg1, GoString* jarg2) { unsigned int jresult ; cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -7484,19 +7046,13 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddressFrom } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKeyFromWalletImportFormat(void * jarg1, cipher_SecKey* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKeyFromWalletImportFormat(char* jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; GoString arg1 ; cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - GoString *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); arg2 = (cipher__SecKey *)jarg2; result = (GoUint32)SKY_cipher_SecKeyFromWalletImportFormat(arg1,(GoUint8_ (*)[32])arg2); jresult = result; @@ -7504,7 +7060,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKeyFromWalletIm } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_JsonEncode_Handle(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_JsonEncode_Handle(void * jarg1, GoString* jarg2) { unsigned int jresult ; Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -7552,7 +7108,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Block_GetHeadSeq(v } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Block_GetHeadHash(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Block_GetHeadHash(void * jarg1, GoString* jarg2) { unsigned int jresult ; Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -7568,7 +7124,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Block_GetHeadHash( } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Block_GetPreviousBlockHash(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Block_GetPreviousBlockHash(void * jarg1, GoString* jarg2) { unsigned int jresult ; Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -7667,7 +7223,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Strings_Sort(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Strings_GetAt(void * jarg1, long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Strings_GetAt(void * jarg1, long long jarg2, GoString* jarg3) { unsigned int jresult ; Strings__Handle arg1 ; GoInt arg2 ; @@ -7685,7 +7241,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Strings_GetAt(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletDir(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletDir(void * jarg1, GoString* jarg2) { unsigned int jresult ; Client__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -7701,7 +7257,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWall } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletFileName(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletFileName(void * jarg1, GoString* jarg2) { unsigned int jresult ; WalletResponse__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -7717,7 +7273,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWall } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletLabel(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletLabel(void * jarg1, GoString* jarg2) { unsigned int jresult ; WalletResponse__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -7733,7 +7289,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWall } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletFullPath(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWalletFullPath(void * jarg1, void * jarg2, GoString* jarg3) { unsigned int jresult ; Client__Handle arg1 ; WalletResponse__Handle arg2 ; @@ -7821,7 +7377,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletGetEntry } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletResponseGetEntry(void * jarg1, unsigned int jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletResponseGetEntry(void * jarg1, unsigned int jarg2, GoString* jarg3, GoString* jarg4) { unsigned int jresult ; WalletResponse__Handle arg1 ; GoUint32 arg2 ; @@ -7857,7 +7413,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletResponse } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletResponseGetCryptoType(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletResponseGetCryptoType(void * jarg1, GoString* jarg2) { unsigned int jresult ; WalletResponse__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -7907,7 +7463,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletsRespons } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletFolderAddress(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletFolderAddress(void * jarg1, GoString* jarg2) { unsigned int jresult ; Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -7923,7 +7479,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletFolde } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletSeed(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletSeed(void * jarg1, GoString* jarg2) { unsigned int jresult ; Wallet__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -7939,7 +7495,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletSeed( } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletLastSeed(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletLastSeed(void * jarg1, GoString* jarg2) { unsigned int jresult ; Wallet__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -7955,7 +7511,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletLastS } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetBuildInfoData(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetBuildInfoData(void * jarg1, GoString* jarg2, GoString* jarg3, GoString* jarg4) { unsigned int jresult ; BuildInfo_Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -8053,44 +7609,32 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_Create } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_Print(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_Print(void * jarg1, char* jarg2) { unsigned int jresult ; Number_Handle arg1 ; GoString arg2 ; - GoString *argp2 ; GoUint32 result; { jarg1 = (long*)&arg1; } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); result = (GoUint32)SKY_secp256k1go_Number_Print(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_SetHex(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_SetHex(void * jarg1, char* jarg2) { unsigned int jresult ; Number_Handle arg1 ; GoString arg2 ; - GoString *argp2 ; GoUint32 result; { jarg1 = (long*)&arg1; } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); result = (GoUint32)SKY_secp256k1go_Number_SetHex(arg1,arg2); jresult = result; return jresult; @@ -8584,7 +8128,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_ScryptChacha20pol } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateOptionsHandle(void * jarg1, void * jarg2, void * jarg3, unsigned char jarg4, void * jarg5, void * jarg6, unsigned long long jarg7) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateOptionsHandle(char* jarg1, char* jarg2, char* jarg3, unsigned char jarg4, char* jarg5, char* jarg6, unsigned long long jarg7) { unsigned int jresult ; GoString arg1 ; GoString arg2 ; @@ -8594,48 +8138,18 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateOptionsHandl GoString arg6 ; GoUint64 arg7 ; Options__Handle *arg8 = (Options__Handle *) 0 ; - GoString *argp1 ; - GoString *argp2 ; - GoString *argp3 ; - GoString *argp5 ; - GoString *argp6 ; Handle temp8 ; GoUint32 result; { arg8 = &temp8; } - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); + (&arg3)->p=jarg3;(&arg3)->n=strlen(jarg3); arg4 = (GoUint8)jarg4; - argp5 = (GoString *)jarg5; - if (!argp5) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg5 = *argp5; - argp6 = (GoString *)jarg6; - if (!argp6) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg6 = *argp6; + (&arg5)->p=jarg5;(&arg5)->n=strlen(jarg5); + (&arg6)->p=jarg6;(&arg6)->n=strlen(jarg6); arg7 = (GoUint64)jarg7; result = (GoUint32)SKY_wallet_CreateOptionsHandle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); jresult = result; @@ -8643,49 +8157,31 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateOptionsHandl } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_AddPrivateKey(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_AddPrivateKey(void * jarg1, char* jarg2) { unsigned int jresult ; Wallet__Handle arg1 ; GoString arg2 ; - GoString *argp2 ; GoUint32 result; { jarg1 = (long*)&arg1; } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); result = (GoUint32)SKY_cli_AddPrivateKey(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_AddPrivateKeyToFile(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_AddPrivateKeyToFile(char* jarg1, char* jarg2, void * jarg3) { unsigned int jresult ; GoString arg1 ; GoString arg2 ; PasswordReader__Handle arg3 ; - GoString *argp1 ; - GoString *argp2 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); { jarg3 = (long*)&arg3; } @@ -8995,7 +8491,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_VerifySignature } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_SignatureErrorString(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_SignatureErrorString(void * jarg1, void * jarg2, void * jarg3, GoString* jarg4) { unsigned int jresult ; GoSlice arg1 ; GoSlice arg2 ; @@ -9117,42 +8613,18 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_apputil_PrintProgramStatu } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cert_CreateCertIfNotExists(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cert_CreateCertIfNotExists(char* jarg1, char* jarg2, char* jarg3, char* jarg4) { unsigned int jresult ; GoString arg1 ; GoString arg2 ; GoString arg3 ; GoString arg4 ; - GoString *argp1 ; - GoString *argp2 ; - GoString *argp3 ; - GoString *argp4 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; - argp4 = (GoString *)jarg4; - if (!argp4) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg4 = *argp4; + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); + (&arg3)->p=jarg3;(&arg3)->n=strlen(jarg3); + (&arg4)->p=jarg4;(&arg4)->n=strlen(jarg4); result = (GoUint32)SKY_cert_CreateCertIfNotExists(arg1,arg2,arg3,arg4); jresult = result; return jresult; @@ -9252,7 +8724,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_LoadConfig() { } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_FullWalletPath(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_FullWalletPath(void * jarg1, GoString* jarg2) { unsigned int jresult ; Config__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -9268,7 +8740,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_FullWalletPath } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_FullDBPath(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_FullDBPath(void * jarg1, GoString* jarg2) { unsigned int jresult ; Config__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -9364,7 +8836,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_PasswordFromTerm_Pass } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromWallet(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromWallet(void * jarg1, char* jarg2, char* jarg3, void * jarg4, void * jarg5) { unsigned int jresult ; WebRpcClient__Handle arg1 ; GoString arg2 ; @@ -9372,8 +8844,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromWallet GoSlice arg4 ; PasswordReader__Handle arg5 ; Transaction__Handle *arg6 = (Transaction__Handle *) 0 ; - GoString *argp2 ; - GoString *argp3 ; GoSlice *argp4 ; Handle temp6 ; GoUint32 result; @@ -9384,18 +8854,8 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromWallet { jarg1 = (long*)&arg1; } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); + (&arg3)->p=jarg3;(&arg3)->n=strlen(jarg3); argp4 = (GoSlice *)jarg4; if (!argp4) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); @@ -9411,7 +8871,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromWallet } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromAddress(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromAddress(void * jarg1, char* jarg2, char* jarg3, char* jarg4, void * jarg5, void * jarg6) { unsigned int jresult ; WebRpcClient__Handle arg1 ; GoString arg2 ; @@ -9420,9 +8880,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromAddres GoSlice arg5 ; PasswordReader__Handle arg6 ; Transaction__Handle *arg7 = (Transaction__Handle *) 0 ; - GoString *argp2 ; - GoString *argp3 ; - GoString *argp4 ; GoSlice *argp5 ; Handle temp7 ; GoUint32 result; @@ -9433,24 +8890,9 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromAddres { jarg1 = (long*)&arg1; } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; - argp4 = (GoString *)jarg4; - if (!argp4) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg4 = *argp4; + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); + (&arg3)->p=jarg3;(&arg3)->n=strlen(jarg3); + (&arg4)->p=jarg4;(&arg4)->n=strlen(jarg4); argp5 = (GoSlice *)jarg5; if (!argp5) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); @@ -9466,7 +8908,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromAddres } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTx(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTx(void * jarg1, void * jarg2, void * jarg3, char* jarg4, void * jarg5, void * jarg6) { unsigned int jresult ; WebRpcClient__Handle arg1 ; Wallet__Handle arg2 ; @@ -9476,7 +8918,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTx(void * ja GoSlice arg6 ; Transaction__Handle *arg7 = (Transaction__Handle *) 0 ; GoSlice *argp3 ; - GoString *argp4 ; GoSlice *argp5 ; GoSlice *argp6 ; Handle temp7 ; @@ -9497,12 +8938,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTx(void * ja return 0; } arg3 = *argp3; - argp4 = (GoString *)jarg4; - if (!argp4) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg4 = *argp4; + (&arg4)->p=jarg4;(&arg4)->n=strlen(jarg4); argp5 = (GoSlice *)jarg5; if (!argp5) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); @@ -9560,19 +8996,13 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_NewTransaction(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_InitDataDir(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_InitDataDir(char* jarg1, GoString* jarg2) { unsigned int jresult ; GoString arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; - GoString *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_file_InitDataDir(arg1,arg2); jresult = result; @@ -9580,7 +9010,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_InitDataDir(void * j } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_UserHome(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_UserHome(GoString* jarg1) { unsigned int jresult ; GoString_ *arg1 = (GoString_ *) 0 ; GoUint32 result; @@ -9592,19 +9022,13 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_UserHome(void * jarg } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_ResolveResourceDirectory(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_ResolveResourceDirectory(char* jarg1, GoString* jarg2) { unsigned int jresult ; GoString arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; - GoString *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_file_ResolveResourceDirectory(arg1,arg2); jresult = result; @@ -9612,35 +9036,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_ResolveResourceDirec } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_DetermineResourcePath(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_DetermineResourcePath(char* jarg1, char* jarg2, char* jarg3, GoString* jarg4) { unsigned int jresult ; GoString arg1 ; GoString arg2 ; GoString arg3 ; GoString_ *arg4 = (GoString_ *) 0 ; - GoString *argp1 ; - GoString *argp2 ; - GoString *argp3 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoString *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg3 = *argp3; + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); + (&arg3)->p=jarg3;(&arg3)->n=strlen(jarg3); arg4 = (GoString_ *)jarg4; result = (GoUint32)SKY_file_DetermineResourcePath(arg1,arg2,arg3,arg4); jresult = result; @@ -9648,23 +9054,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_DetermineResourcePat } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetWalletOutputsFromFile(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetWalletOutputsFromFile(void * jarg1, char* jarg2, void * jarg3) { unsigned int jresult ; WebRpcClient__Handle arg1 ; GoString arg2 ; ReadableOutputSet_Handle *arg3 = (ReadableOutputSet_Handle *) 0 ; - GoString *argp2 ; GoUint32 result; { jarg1 = (long*)&arg1; } - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); arg3 = (ReadableOutputSet_Handle *)jarg3; result = (GoUint32)SKY_cli_GetWalletOutputsFromFile(arg1,arg2,arg3); jresult = result; @@ -9705,7 +9105,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_testutil_MakeAddress(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_String(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_String(void * jarg1, GoString* jarg2) { unsigned int jresult ; secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -9719,20 +9119,14 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_String( } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Print(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Print(void * jarg1, char* jarg2) { unsigned int jresult ; secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; GoString arg2 ; - GoString *argp2 ; GoUint32 result; arg1 = (secp256k1go__Field *)jarg1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); result = (GoUint32)SKY_secp256k1go_Field_Print(arg1,arg2); jresult = result; return jresult; @@ -9779,20 +9173,14 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetByte } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetHex(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetHex(void * jarg1, char* jarg2) { unsigned int jresult ; secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; GoString arg2 ; - GoString *argp2 ; GoUint32 result; arg1 = (secp256k1go__Field *)jarg1; - argp2 = (GoString *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg2 = *argp2; + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); result = (GoUint32)SKY_secp256k1go_Field_SetHex(arg1,arg2); jresult = result; return jresult; @@ -10101,7 +9489,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Set(cipher_ } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Hex(cipher_SecKey* jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Hex(cipher_SecKey* jarg1, GoString* jarg2) { unsigned int jresult ; cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -10151,19 +9539,13 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SumSHA256(void * j } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256FromHex(void * jarg1, cipher_SecKey* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256FromHex(char* jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; GoString arg1 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoString *argp1 ; GoUint32 result; - argp1 = (GoString *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString", 0); - return 0; - } - arg1 = *argp1; + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); arg2 = (cipher__SHA256 *)jarg2; result = (GoUint32)SKY_cipher_SHA256FromHex(arg1,(GoUint8_ (*)[32])arg2); jresult = result; @@ -10677,7 +10059,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_TxID(voi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_TxIDHex(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_TxIDHex(void * jarg1, GoString* jarg2) { unsigned int jresult ; Transaction__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; diff --git a/LibskycoinNetTest/LibskycoinNetTest.cs b/LibskycoinNetTest/LibskycoinNetTest.cs deleted file mode 100644 index 829c1b88..00000000 --- a/LibskycoinNetTest/LibskycoinNetTest.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using System.IO; -using NUnit.Framework; -using skycoin; - -namespace LibskycoinNetTest { - [TestFixture] - public class LibskycoinNetTest { - public LibskycoinNetTest () { } - - [Test] - public void SumTest () { - var xyz = new skycoin.secp256k1go__XYZ(); - var xy = new skycoin.secp256k1go__XY (); - uint error = skycoin.skycoin.SKY_secp256k1go_XYZ_SetXY (xyz, xy); - Assert.AreEqual (error, 0); - - } - } -} \ No newline at end of file diff --git a/LibskycoinNetTest/LibskycoinNetTest.csproj b/LibskycoinNetTest/LibskycoinNetTest.csproj index cf867fb0..d80799fe 100644 --- a/LibskycoinNetTest/LibskycoinNetTest.csproj +++ b/LibskycoinNetTest/LibskycoinNetTest.csproj @@ -34,7 +34,6 @@ - diff --git a/LibskycoinNetTest/check_cipher_address.cs b/LibskycoinNetTest/check_cipher_address.cs index 5d4fce4b..f1a59ba6 100644 --- a/LibskycoinNetTest/check_cipher_address.cs +++ b/LibskycoinNetTest/check_cipher_address.cs @@ -9,18 +9,27 @@ public void TestDecodeBase58Address () { uint err = 0; var s = new skycoin.cipher_SecKey (); var p = new skycoin.cipher_PubKey (); - err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK, "Faild SKY_cipher_GenerateKeyPair"); + Assert.AreEqual (skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s), skycoin.skycoin.SKY_OK, "Failed SKY_cipher_GenerateKeyPair"); err = skycoin.skycoin.SKY_cipher_SecKey_Verify (s); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK, "Faild SKY_cipher_SecKey_Verify "); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK, "Failed SKY_cipher_SecKey_Verify "); err = skycoin.skycoin.SKY_cipher_PubKey_Verify (p); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK, "Faild SKY_cipher_PubKey_Verify"); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK, "Failed SKY_cipher_PubKey_Verify"); var a = new skycoin.cipher__Address (); + var a1 = new skycoin.cipher__Address (); + var a2 = new skycoin.cipher__Address (); err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, a); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK, "Faild SKY_cipher_AddressFromPubKey"); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK, "Failed SKY_cipher_AddressFromPubKey"); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK, "Failed SKY_cipher_AddressFromPubKey"); err = skycoin.skycoin.SKY_cipher_Address_Verify (a, p); Assert.AreEqual (err, skycoin.skycoin.SKY_OK, " Failed SKY_cipher_Address_Verify"); + err = skycoin.skycoin.SKY_cipher_DecodeBase58Address ("", a1); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidBase58String, "Failed SKY_cipher_DecodeBase58Address 1"); + err = skycoin.skycoin.SKY_cipher_DecodeBase58Address ("asa", a1); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrAddressInvalidLength, "Failed SKY_cipher_DecodeBase58Address 2"); + var sa = new skycoin._GoString_ (); + err = skycoin.skycoin.SKY_cipher_Address_String (a, sa); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); } } } \ No newline at end of file diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index f5ffdd89..c04fecf5 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit f5ffdd89c6ab1ab14c92e6bb67670a537aad05da +Subproject commit c04fecf57ea92e0bf5015c7b1a51a40cb71734c5 From f9117b1f0f57370492c9b3bd86f586576affbf95 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Thu, 13 Sep 2018 00:31:18 -0400 Subject: [PATCH 21/73] [test][libdotnet] refs #8 Change in Makefile --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 0b91143f..d471599d 100644 --- a/Makefile +++ b/Makefile @@ -42,6 +42,7 @@ build-swig: sed -i 's/#/%/g' $(LIBSWIG_DIR)/structs.i ;\ fi \ } + rm -rf LibskycoinNet/skycoin mkdir -p ./LibskycoinNet/skycoin swig -csharp -oldvarnames -v -namespace skycoin -Iswig/include -I$(INCLUDE_DIR) -outdir LibskycoinNet/skycoin -o LibskycoinNet/skycoin/skycoinnet_wrap.c $(LIBSWIG_DIR)/skycoin.i From 1feb14ebbdc910f780033c3069da74e4a8720a39 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Thu, 13 Sep 2018 00:39:13 -0400 Subject: [PATCH 22/73] [test] refs #8 Repair string --- LibskycoinNet/skycoin/skycoin.cs | 799 ++++++++--------- LibskycoinNet/skycoin/skycoinPINVOKE.cs | 156 ++-- LibskycoinNet/skycoin/skycoinnet_wrap.c | 996 ++++++++++------------ LibskycoinNetTest/check_cipher_address.cs | 3 + 4 files changed, 920 insertions(+), 1034 deletions(-) diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs index af25ba08..9cbba2cf 100644 --- a/LibskycoinNet/skycoin/skycoin.cs +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -89,10 +89,10 @@ public static cipher_SecKey cipher_SecKeyp_value(cipher_SecKey obj) { return ret; } - public static uint SKY_coin_NewBlock(SWIGTYPE_p_GoInt64_ p0, ulong p1, cipher_SecKey p2, SWIGTYPE_p_GoInt64_ p3, SWIGTYPE_p_FeeCalculator p4) { + public static uint SKY_coin_NewBlock(SWIGTYPE_p_Block__Handle p0, ulong p1, cipher_SecKey p2, SWIGTYPE_p_Transactions__Handle p3, SWIGTYPE_p_FeeCalculator p4, SWIGTYPE_p_Block__Handle p5) { var tmpp2 = cipher_SecKey.getCPtr (p2); { - uint ret = skycoinPINVOKE.SKY_coin_NewBlock(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1, tmpp2, SWIGTYPE_p_GoInt64_.getCPtr(p3), SWIGTYPE_p_FeeCalculator.getCPtr(p4)); + uint ret = skycoinPINVOKE.SKY_coin_NewBlock(SWIGTYPE_p_Block__Handle.getCPtr(p0), p1, tmpp2, SWIGTYPE_p_Transactions__Handle.getCPtr(p3), SWIGTYPE_p_FeeCalculator.getCPtr(p4), SWIGTYPE_p_Block__Handle.getCPtr(p5)); return ret; } } @@ -105,70 +105,70 @@ public static uint SKY_coin_SignedBlock_VerifySignature(coin__SignedBlock p0, ci } } - public static uint SKY_coin_NewGenesisBlock(cipher__Address p0, ulong p1, ulong p2) { - uint ret = skycoinPINVOKE.SKY_coin_NewGenesisBlock(cipher__Address.getCPtr(p0), p1, p2); + public static uint SKY_coin_NewGenesisBlock(cipher__Address p0, ulong p1, ulong p2, SWIGTYPE_p_Block__Handle p3) { + uint ret = skycoinPINVOKE.SKY_coin_NewGenesisBlock(cipher__Address.getCPtr(p0), p1, p2, SWIGTYPE_p_Block__Handle.getCPtr(p3)); return ret; } - public static uint SKY_coin_Block_HashHeader(SWIGTYPE_p_GoInt64_ p0, cipher_SecKey p1) { + public static uint SKY_coin_Block_HashHeader(SWIGTYPE_p_Block__Handle p0, cipher_SecKey p1) { var tmpp1 = cipher_SecKey.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_coin_Block_HashHeader(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_coin_Block_HashHeader(SWIGTYPE_p_Block__Handle.getCPtr(p0), tmpp1); return ret; } } - public static uint SKY_coin_Block_PreHashHeader(SWIGTYPE_p_GoInt64_ p0, cipher_SecKey p1) { + public static uint SKY_coin_Block_PreHashHeader(SWIGTYPE_p_Block__Handle p0, cipher_SecKey p1) { var tmpp1 = cipher_SecKey.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_coin_Block_PreHashHeader(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_coin_Block_PreHashHeader(SWIGTYPE_p_Block__Handle.getCPtr(p0), tmpp1); return ret; } } - public static uint SKY_coin_Block_Time(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Block_Time(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static uint SKY_coin_Block_Time(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Block_Time(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); return ret; } - public static uint SKY_coin_Block_Seq(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Block_Seq(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static uint SKY_coin_Block_Seq(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Block_Seq(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); return ret; } - public static uint SKY_coin_Block_HashBody(SWIGTYPE_p_GoInt64_ p0, cipher_SecKey p1) { + public static uint SKY_coin_Block_HashBody(SWIGTYPE_p_Block__Handle p0, cipher_SecKey p1) { var tmpp1 = cipher_SecKey.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_coin_Block_HashBody(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_coin_Block_HashBody(SWIGTYPE_p_Block__Handle.getCPtr(p0), tmpp1); return ret; } } - public static uint SKY_coin_Block_Size(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Block_Size(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_coin_Block_Size(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Block_Size(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); return ret; } - public static uint SKY_coin_Block_String(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { + public static uint SKY_coin_Block_String(SWIGTYPE_p_Block__Handle p0, _GoString_ p1) { var tmpp1 = _GoString_.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_coin_Block_String(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_coin_Block_String(SWIGTYPE_p_Block__Handle.getCPtr(p0), tmpp1); return ret; } } - public static uint SKY_coin_Block_GetTransaction(SWIGTYPE_p_GoInt64_ p0, cipher_SecKey p1, SWIGTYPE_p_unsigned_char p3) { + public static uint SKY_coin_Block_GetTransaction(SWIGTYPE_p_Block__Handle p0, cipher_SecKey p1, SWIGTYPE_p_Transaction__Handle p2, SWIGTYPE_p_unsigned_char p3) { var tmpp1 = cipher_SecKey.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_coin_Block_GetTransaction(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1, SWIGTYPE_p_unsigned_char.getCPtr(p3)); + uint ret = skycoinPINVOKE.SKY_coin_Block_GetTransaction(SWIGTYPE_p_Block__Handle.getCPtr(p0), tmpp1, SWIGTYPE_p_Transaction__Handle.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); return ret; } } - public static uint SKY_coin_NewBlockHeader(coin__BlockHeader p0, cipher_SecKey p1, ulong p2, ulong p3, SWIGTYPE_p_GoInt64_ p4, coin__BlockHeader p5) { + public static uint SKY_coin_NewBlockHeader(coin__BlockHeader p0, cipher_SecKey p1, ulong p2, ulong p3, SWIGTYPE_p_BlockBody__Handle p4, coin__BlockHeader p5) { var tmpp1 = cipher_SecKey.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_coin_NewBlockHeader(coin__BlockHeader.getCPtr(p0), tmpp1, p2, p3, SWIGTYPE_p_GoInt64_.getCPtr(p4), coin__BlockHeader.getCPtr(p5)); + uint ret = skycoinPINVOKE.SKY_coin_NewBlockHeader(coin__BlockHeader.getCPtr(p0), tmpp1, p2, p3, SWIGTYPE_p_BlockBody__Handle.getCPtr(p4), coin__BlockHeader.getCPtr(p5)); return ret; } } @@ -194,46 +194,46 @@ public static uint SKY_coin_BlockHeader_String(coin__BlockHeader p0, _GoString_ } } - public static uint SKY_coin_BlockBody_Hash(SWIGTYPE_p_GoInt64_ p0, cipher_SecKey p1) { + public static uint SKY_coin_BlockBody_Hash(SWIGTYPE_p_BlockBody__Handle p0, cipher_SecKey p1) { var tmpp1 = cipher_SecKey.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Hash(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Hash(SWIGTYPE_p_BlockBody__Handle.getCPtr(p0), tmpp1); return ret; } } - public static uint SKY_coin_BlockBody_Size(SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Size(SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_coin_BlockBody_Size(SWIGTYPE_p_BlockBody__Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Size(SWIGTYPE_p_BlockBody__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); return ret; } - public static uint SKY_coin_BlockBody_Bytes(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Bytes(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_coin_BlockBody_Bytes(SWIGTYPE_p_BlockBody__Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Bytes(SWIGTYPE_p_BlockBody__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); return ret; } - public static uint SKY_coin_CreateUnspents(coin__BlockHeader p0, SWIGTYPE_p_GoInt64_ p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_CreateUnspents(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_GoInt64_.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + public static uint SKY_coin_CreateUnspents(coin__BlockHeader p0, SWIGTYPE_p_Transaction__Handle p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_CreateUnspents(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); return ret; } - public static uint SKY_coin_CreateUnspent(coin__BlockHeader p0, SWIGTYPE_p_GoInt64_ p1, long p2, coin__UxOut p3) { - uint ret = skycoinPINVOKE.SKY_coin_CreateUnspent(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_GoInt64_.getCPtr(p1), p2, coin__UxOut.getCPtr(p3)); + public static uint SKY_coin_CreateUnspent(coin__BlockHeader p0, SWIGTYPE_p_Transaction__Handle p1, long p2, coin__UxOut p3) { + uint ret = skycoinPINVOKE.SKY_coin_CreateUnspent(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), p2, coin__UxOut.getCPtr(p3)); return ret; } - public static uint SKY_coin_GetBlockObject(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_p_coin__Block p1) { - uint ret = skycoinPINVOKE.SKY_coin_GetBlockObject(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_p_coin__Block.getCPtr(p1)); + public static uint SKY_coin_GetBlockObject(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_p_coin__Block p1) { + uint ret = skycoinPINVOKE.SKY_coin_GetBlockObject(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_p_coin__Block.getCPtr(p1)); return ret; } - public static uint SKY_coin_GetBlockBody(SWIGTYPE_p_GoInt64_ p0) { - uint ret = skycoinPINVOKE.SKY_coin_GetBlockBody(SWIGTYPE_p_GoInt64_.getCPtr(p0)); + public static uint SKY_coin_GetBlockBody(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_BlockBody__Handle p1) { + uint ret = skycoinPINVOKE.SKY_coin_GetBlockBody(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_BlockBody__Handle.getCPtr(p1)); return ret; } - public static uint SKY_coin_NewEmptyBlock(SWIGTYPE_p_GoInt64_ p0) { - uint ret = skycoinPINVOKE.SKY_coin_NewEmptyBlock(SWIGTYPE_p_GoInt64_.getCPtr(p0)); + public static uint SKY_coin_NewEmptyBlock(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_Block__Handle p1) { + uint ret = skycoinPINVOKE.SKY_coin_NewEmptyBlock(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_Block__Handle.getCPtr(p1)); return ret; } @@ -291,63 +291,63 @@ public static uint SKY_api_Client_CSRF(SWIGTYPE_p_Client__Handle p0, _GoString_ } } - public static uint SKY_api_Client_Version(SWIGTYPE_p_Client__Handle p0) { - uint ret = skycoinPINVOKE.SKY_api_Client_Version(SWIGTYPE_p_Client__Handle.getCPtr(p0)); + public static uint SKY_api_Client_Version(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_Version(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); return ret; } - public static uint SKY_api_Client_Outputs(SWIGTYPE_p_Client__Handle p0) { - uint ret = skycoinPINVOKE.SKY_api_Client_Outputs(SWIGTYPE_p_Client__Handle.getCPtr(p0)); + public static uint SKY_api_Client_Outputs(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_Outputs(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); return ret; } - public static uint SKY_api_Client_OutputsForAddresses(SWIGTYPE_p_Client__Handle p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_OutputsForAddresses(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1)); + public static uint SKY_api_Client_OutputsForAddresses(SWIGTYPE_p_Client__Handle p0, GoSlice p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_OutputsForAddresses(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_OutputsForHashes(SWIGTYPE_p_Client__Handle p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_OutputsForHashes(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1)); + public static uint SKY_api_Client_OutputsForHashes(SWIGTYPE_p_Client__Handle p0, GoSlice p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_OutputsForHashes(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_CoinSupply(SWIGTYPE_p_Client__Handle p0) { - uint ret = skycoinPINVOKE.SKY_api_Client_CoinSupply(SWIGTYPE_p_Client__Handle.getCPtr(p0)); + public static uint SKY_api_Client_CoinSupply(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_CoinSupply(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); return ret; } - public static uint SKY_api_Client_BlockByHash(SWIGTYPE_p_Client__Handle p0, string p1) { + public static uint SKY_api_Client_BlockByHash(SWIGTYPE_p_Client__Handle p0, string p1, SWIGTYPE_p_Handle p2) { var tmpp1 = p1; { - uint ret = skycoinPINVOKE.SKY_api_Client_BlockByHash(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_api_Client_BlockByHash(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1, SWIGTYPE_p_Handle.getCPtr(p2)); return ret; } } - public static uint SKY_api_Client_BlockBySeq(SWIGTYPE_p_Client__Handle p0, ulong p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_BlockBySeq(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1); + public static uint SKY_api_Client_BlockBySeq(SWIGTYPE_p_Client__Handle p0, ulong p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_BlockBySeq(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1, SWIGTYPE_p_Handle.getCPtr(p2)); return ret; } - public static uint SKY_api_Client_Blocks(SWIGTYPE_p_Client__Handle p0, ulong p1, ulong p2) { - uint ret = skycoinPINVOKE.SKY_api_Client_Blocks(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1, p2); + public static uint SKY_api_Client_Blocks(SWIGTYPE_p_Client__Handle p0, ulong p1, ulong p2, SWIGTYPE_p_Handle p3) { + uint ret = skycoinPINVOKE.SKY_api_Client_Blocks(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1, p2, SWIGTYPE_p_Handle.getCPtr(p3)); return ret; } - public static uint SKY_api_Client_LastBlocks(SWIGTYPE_p_Client__Handle p0, ulong p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_LastBlocks(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1); + public static uint SKY_api_Client_LastBlocks(SWIGTYPE_p_Client__Handle p0, ulong p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_LastBlocks(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1, SWIGTYPE_p_Handle.getCPtr(p2)); return ret; } - public static uint SKY_api_Client_BlockchainMetadata(SWIGTYPE_p_Client__Handle p0) { - uint ret = skycoinPINVOKE.SKY_api_Client_BlockchainMetadata(SWIGTYPE_p_Client__Handle.getCPtr(p0)); + public static uint SKY_api_Client_BlockchainMetadata(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_BlockchainMetadata(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); return ret; } - public static uint SKY_api_Client_BlockchainProgress(SWIGTYPE_p_Client__Handle p0) { - uint ret = skycoinPINVOKE.SKY_api_Client_BlockchainProgress(SWIGTYPE_p_Client__Handle.getCPtr(p0)); + public static uint SKY_api_Client_BlockchainProgress(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_BlockchainProgress(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); return ret; } @@ -357,18 +357,18 @@ public static uint SKY_api_Client_Balance(SWIGTYPE_p_Client__Handle p0, GoSlice return ret; } - public static uint SKY_api_Client_UxOut(SWIGTYPE_p_Client__Handle p0, string p1) { + public static uint SKY_api_Client_UxOut(SWIGTYPE_p_Client__Handle p0, string p1, SWIGTYPE_p_Handle p2) { var tmpp1 = p1; { - uint ret = skycoinPINVOKE.SKY_api_Client_UxOut(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_api_Client_UxOut(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1, SWIGTYPE_p_Handle.getCPtr(p2)); return ret; } } - public static uint SKY_api_Client_AddressUxOuts(SWIGTYPE_p_Client__Handle p0, string p1) { + public static uint SKY_api_Client_AddressUxOuts(SWIGTYPE_p_Client__Handle p0, string p1, SWIGTYPE_p_Handle p2) { var tmpp1 = p1; { - uint ret = skycoinPINVOKE.SKY_api_Client_AddressUxOuts(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_api_Client_AddressUxOuts(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1, SWIGTYPE_p_Handle.getCPtr(p2)); return ret; } } @@ -422,18 +422,18 @@ public static uint SKY_api_Client_WalletBalance(SWIGTYPE_p_Client__Handle p0, st } } - public static uint SKY_api_Client_Spend(SWIGTYPE_p_Client__Handle p0, string p1, string p2, ulong p3, string p4) { + public static uint SKY_api_Client_Spend(SWIGTYPE_p_Client__Handle p0, string p1, string p2, ulong p3, string p4, SWIGTYPE_p_SpendResult_Handle p5) { var tmpp1 = p1; var tmpp2 = p2; var tmpp4 = p4; { - uint ret = skycoinPINVOKE.SKY_api_Client_Spend(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1, tmpp2, p3, tmpp4); + uint ret = skycoinPINVOKE.SKY_api_Client_Spend(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1, tmpp2, p3, tmpp4, SWIGTYPE_p_SpendResult_Handle.getCPtr(p5)); return ret; } } - public static uint SKY_api_Client_CreateTransaction(SWIGTYPE_p_Client__Handle p0) { - uint ret = skycoinPINVOKE.SKY_api_Client_CreateTransaction(SWIGTYPE_p_Client__Handle.getCPtr(p0)); + public static uint SKY_api_Client_CreateTransaction(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1, SWIGTYPE_p_CreateTransactionResponse__Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_CreateTransaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1), SWIGTYPE_p_CreateTransactionResponse__Handle.getCPtr(p2)); return ret; } @@ -446,8 +446,8 @@ public static uint SKY_api_Client_UpdateWallet(SWIGTYPE_p_Client__Handle p0, str } } - public static uint SKY_api_Client_WalletFolderName(SWIGTYPE_p_Client__Handle p0) { - uint ret = skycoinPINVOKE.SKY_api_Client_WalletFolderName(SWIGTYPE_p_Client__Handle.getCPtr(p0)); + public static uint SKY_api_Client_WalletFolderName(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_WalletFolderName(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); return ret; } @@ -469,75 +469,75 @@ public static uint SKY_api_Client_GetWalletSeed(SWIGTYPE_p_Client__Handle p0, st } } - public static uint SKY_api_Client_NetworkConnection(SWIGTYPE_p_Client__Handle p0, string p1) { + public static uint SKY_api_Client_NetworkConnection(SWIGTYPE_p_Client__Handle p0, string p1, SWIGTYPE_p_Handle p2) { var tmpp1 = p1; { - uint ret = skycoinPINVOKE.SKY_api_Client_NetworkConnection(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_api_Client_NetworkConnection(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1, SWIGTYPE_p_Handle.getCPtr(p2)); return ret; } } - public static uint SKY_api_Client_NetworkConnections(SWIGTYPE_p_Client__Handle p0) { - uint ret = skycoinPINVOKE.SKY_api_Client_NetworkConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0)); + public static uint SKY_api_Client_NetworkConnections(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_NetworkConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); return ret; } - public static uint SKY_api_Client_NetworkDefaultConnections(SWIGTYPE_p_Client__Handle p0) { - uint ret = skycoinPINVOKE.SKY_api_Client_NetworkDefaultConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0)); + public static uint SKY_api_Client_NetworkDefaultConnections(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_NetworkDefaultConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); return ret; } - public static uint SKY_api_Client_NetworkTrustedConnections(SWIGTYPE_p_Client__Handle p0) { - uint ret = skycoinPINVOKE.SKY_api_Client_NetworkTrustedConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0)); + public static uint SKY_api_Client_NetworkTrustedConnections(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_NetworkTrustedConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); return ret; } - public static uint SKY_api_Client_NetworkExchangeableConnections(SWIGTYPE_p_Client__Handle p0) { - uint ret = skycoinPINVOKE.SKY_api_Client_NetworkExchangeableConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0)); + public static uint SKY_api_Client_NetworkExchangeableConnections(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_NetworkExchangeableConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); return ret; } - public static uint SKY_api_Client_PendingTransactions(SWIGTYPE_p_Client__Handle p0) { - uint ret = skycoinPINVOKE.SKY_api_Client_PendingTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0)); + public static uint SKY_api_Client_PendingTransactions(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_PendingTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); return ret; } - public static uint SKY_api_Client_Transaction(SWIGTYPE_p_Client__Handle p0, string p1) { + public static uint SKY_api_Client_Transaction(SWIGTYPE_p_Client__Handle p0, string p1, SWIGTYPE_p_Handle p2) { var tmpp1 = p1; { - uint ret = skycoinPINVOKE.SKY_api_Client_Transaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_api_Client_Transaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1, SWIGTYPE_p_Handle.getCPtr(p2)); return ret; } } - public static uint SKY_api_Client_Transactions(SWIGTYPE_p_Client__Handle p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_Transactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1)); + public static uint SKY_api_Client_Transactions(SWIGTYPE_p_Client__Handle p0, GoSlice p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_Transactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_ConfirmedTransactions(SWIGTYPE_p_Client__Handle p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_ConfirmedTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1)); + public static uint SKY_api_Client_ConfirmedTransactions(SWIGTYPE_p_Client__Handle p0, GoSlice p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_ConfirmedTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_UnconfirmedTransactions(SWIGTYPE_p_Client__Handle p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_UnconfirmedTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1)); + public static uint SKY_api_Client_UnconfirmedTransactions(SWIGTYPE_p_Client__Handle p0, GoSlice p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_UnconfirmedTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_InjectTransaction(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_GoInt64_ p1, _GoString_ p2) { + public static uint SKY_api_Client_InjectTransaction(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Transaction__Handle p1, _GoString_ p2) { var tmpp2 = _GoString_.getCPtr (p2); { - uint ret = skycoinPINVOKE.SKY_api_Client_InjectTransaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_GoInt64_.getCPtr(p1), tmpp2); + uint ret = skycoinPINVOKE.SKY_api_Client_InjectTransaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), tmpp2); return ret; } } - public static uint SKY_api_Client_ResendUnconfirmedTransactions(SWIGTYPE_p_Client__Handle p0) { - uint ret = skycoinPINVOKE.SKY_api_Client_ResendUnconfirmedTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0)); + public static uint SKY_api_Client_ResendUnconfirmedTransactions(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_ResendUnconfirmedTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); return ret; } @@ -550,16 +550,16 @@ public static uint SKY_api_Client_RawTransaction(SWIGTYPE_p_Client__Handle p0, s } } - public static uint SKY_api_Client_AddressTransactions(SWIGTYPE_p_Client__Handle p0, string p1) { + public static uint SKY_api_Client_AddressTransactions(SWIGTYPE_p_Client__Handle p0, string p1, SWIGTYPE_p_Handle p2) { var tmpp1 = p1; { - uint ret = skycoinPINVOKE.SKY_api_Client_AddressTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_api_Client_AddressTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1, SWIGTYPE_p_Handle.getCPtr(p2)); return ret; } } - public static uint SKY_api_Client_Richlist(SWIGTYPE_p_Client__Handle p0, api__RichlistParams p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_Richlist(SWIGTYPE_p_Client__Handle.getCPtr(p0), api__RichlistParams.getCPtr(p1)); + public static uint SKY_api_Client_Richlist(SWIGTYPE_p_Client__Handle p0, api__RichlistParams p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_Richlist(SWIGTYPE_p_Client__Handle.getCPtr(p0), api__RichlistParams.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); return ret; } @@ -576,8 +576,8 @@ public static uint SKY_api_Client_UnloadWallet(SWIGTYPE_p_Client__Handle p0, str } } - public static uint SKY_api_Client_Health(SWIGTYPE_p_Client__Handle p0) { - uint ret = skycoinPINVOKE.SKY_api_Client_Health(SWIGTYPE_p_Client__Handle.getCPtr(p0)); + public static uint SKY_api_Client_Health(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_Health(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); return ret; } @@ -658,38 +658,38 @@ public static uint SKY_secp256k1go_XY_GetPublicKey(secp256k1go__XY p0, SWIGTYPE_ return ret; } - public static uint SKY_api_NewWalletResponse(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_WalletResponse__Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_NewWalletResponse(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p1)); + public static uint SKY_api_NewWalletResponse(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_WalletResponse__Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_NewWalletResponse(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p1)); return ret; } - public static uint SKY_api_NewCreateTransactionResponse(SWIGTYPE_p_GoInt64_ p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_api_NewCreateTransactionResponse(SWIGTYPE_p_GoInt64_.getCPtr(p0), GoSlice.getCPtr(p1)); + public static uint SKY_api_NewCreateTransactionResponse(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1, SWIGTYPE_p_CreateTransactionResponse__Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_NewCreateTransactionResponse(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_CreateTransactionResponse__Handle.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_NewCreatedTransaction(SWIGTYPE_p_GoInt64_ p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_api_NewCreatedTransaction(SWIGTYPE_p_GoInt64_.getCPtr(p0), GoSlice.getCPtr(p1)); + public static uint SKY_api_NewCreatedTransaction(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1, SWIGTYPE_p_CreatedTransaction__Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_NewCreatedTransaction(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_CreatedTransaction__Handle.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_CreatedTransaction_ToTransaction(SWIGTYPE_p_GoInt64_ p0) { - uint ret = skycoinPINVOKE.SKY_api_CreatedTransaction_ToTransaction(SWIGTYPE_p_GoInt64_.getCPtr(p0)); + public static uint SKY_api_CreatedTransaction_ToTransaction(SWIGTYPE_p_CreatedTransaction__Handle p0, SWIGTYPE_p_Transaction__Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_CreatedTransaction_ToTransaction(SWIGTYPE_p_CreatedTransaction__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); return ret; } - public static uint SKY_api_NewCreatedTransactionOutput(coin__TransactionOutput p0, cipher_SecKey p1) { + public static uint SKY_api_NewCreatedTransactionOutput(coin__TransactionOutput p0, cipher_SecKey p1, SWIGTYPE_p_CreatedTransactionOutput__Handle p2) { var tmpp1 = cipher_SecKey.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_api_NewCreatedTransactionOutput(coin__TransactionOutput.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_api_NewCreatedTransactionOutput(coin__TransactionOutput.getCPtr(p0), tmpp1, SWIGTYPE_p_CreatedTransactionOutput__Handle.getCPtr(p2)); return ret; } } - public static uint SKY_api_NewCreatedTransactionInput(wallet__UxBalance p0) { - uint ret = skycoinPINVOKE.SKY_api_NewCreatedTransactionInput(wallet__UxBalance.getCPtr(p0)); + public static uint SKY_api_NewCreatedTransactionInput(wallet__UxBalance p0, SWIGTYPE_p_CreatedTransactionInput__Handle p1) { + uint ret = skycoinPINVOKE.SKY_api_NewCreatedTransactionInput(wallet__UxBalance.getCPtr(p0), SWIGTYPE_p_CreatedTransactionInput__Handle.getCPtr(p1)); return ret; } @@ -699,104 +699,104 @@ public static uint SKY_wallet_NewError(GoInterface p0) { return ret; } - public static uint SKY_wallet_NewWallet(string p0, SWIGTYPE_p_GoInt64_ p1) { + public static uint SKY_wallet_NewWallet(string p0, SWIGTYPE_p_Options__Handle p1, SWIGTYPE_p_Wallet__Handle p2) { var tmpp0 = p0; { - uint ret = skycoinPINVOKE.SKY_wallet_NewWallet(tmpp0, SWIGTYPE_p_GoInt64_.getCPtr(p1)); + uint ret = skycoinPINVOKE.SKY_wallet_NewWallet(tmpp0, SWIGTYPE_p_Options__Handle.getCPtr(p1), SWIGTYPE_p_Wallet__Handle.getCPtr(p2)); return ret; } } - public static uint SKY_wallet_Wallet_Lock(SWIGTYPE_p_GoInt64_ p0, GoSlice p1, string p2) { + public static uint SKY_wallet_Wallet_Lock(SWIGTYPE_p_Wallet__Handle p0, GoSlice p1, string p2) { var tmpp2 = p2; { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Lock(SWIGTYPE_p_GoInt64_.getCPtr(p0), GoSlice.getCPtr(p1), tmpp2); + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Lock(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), GoSlice.getCPtr(p1), tmpp2); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } - public static uint SKY_wallet_Wallet_Unlock(SWIGTYPE_p_GoInt64_ p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Unlock(SWIGTYPE_p_GoInt64_.getCPtr(p0), GoSlice.getCPtr(p1)); + public static uint SKY_wallet_Wallet_Unlock(SWIGTYPE_p_Wallet__Handle p0, GoSlice p1, SWIGTYPE_p_Wallet__Handle p2) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Unlock(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_Wallet__Handle.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_wallet_Load(string p0) { + public static uint SKY_wallet_Load(string p0, SWIGTYPE_p_Wallet__Handle p1) { var tmpp0 = p0; { - uint ret = skycoinPINVOKE.SKY_wallet_Load(tmpp0); + uint ret = skycoinPINVOKE.SKY_wallet_Load(tmpp0, SWIGTYPE_p_Wallet__Handle.getCPtr(p1)); return ret; } } - public static uint SKY_wallet_Wallet_Save(SWIGTYPE_p_GoInt64_ p0, string p1) { + public static uint SKY_wallet_Wallet_Save(SWIGTYPE_p_Wallet__Handle p0, string p1) { var tmpp1 = p1; { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Save(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Save(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), tmpp1); return ret; } } - public static uint SKY_wallet_Wallet_Validate(SWIGTYPE_p_GoInt64_ p0) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Validate(SWIGTYPE_p_GoInt64_.getCPtr(p0)); + public static uint SKY_wallet_Wallet_Validate(SWIGTYPE_p_Wallet__Handle p0) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Validate(SWIGTYPE_p_Wallet__Handle.getCPtr(p0)); return ret; } - public static uint SKY_wallet_Wallet_Type(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { + public static uint SKY_wallet_Wallet_Type(SWIGTYPE_p_Wallet__Handle p0, _GoString_ p1) { var tmpp1 = _GoString_.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Type(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Type(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), tmpp1); return ret; } } - public static uint SKY_wallet_Wallet_Version(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { + public static uint SKY_wallet_Wallet_Version(SWIGTYPE_p_Wallet__Handle p0, _GoString_ p1) { var tmpp1 = _GoString_.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Version(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Version(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), tmpp1); return ret; } } - public static uint SKY_wallet_Wallet_Filename(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { + public static uint SKY_wallet_Wallet_Filename(SWIGTYPE_p_Wallet__Handle p0, _GoString_ p1) { var tmpp1 = _GoString_.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Filename(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Filename(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), tmpp1); return ret; } } - public static uint SKY_wallet_Wallet_Label(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { + public static uint SKY_wallet_Wallet_Label(SWIGTYPE_p_Wallet__Handle p0, _GoString_ p1) { var tmpp1 = _GoString_.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Label(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Label(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), tmpp1); return ret; } } - public static uint SKY_wallet_Wallet_IsEncrypted(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_IsEncrypted(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + public static uint SKY_wallet_Wallet_IsEncrypted(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_IsEncrypted(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); return ret; } - public static uint SKY_wallet_Wallet_GenerateAddresses(SWIGTYPE_p_GoInt64_ p0, ulong p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GenerateAddresses(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2)); + public static uint SKY_wallet_Wallet_GenerateAddresses(SWIGTYPE_p_Wallet__Handle p0, ulong p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GenerateAddresses(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2)); return ret; } - public static uint SKY_wallet_Wallet_GetAddresses(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GetAddresses(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_wallet_Wallet_GetAddresses(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GetAddresses(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); return ret; } - public static uint SKY_wallet_Wallet_GetEntry(SWIGTYPE_p_GoInt64_ p0, cipher__Address p1, wallet__Entry p2, SWIGTYPE_p_unsigned_char p3) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GetEntry(SWIGTYPE_p_GoInt64_.getCPtr(p0), cipher__Address.getCPtr(p1), wallet__Entry.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); + public static uint SKY_wallet_Wallet_GetEntry(SWIGTYPE_p_Wallet__Handle p0, cipher__Address p1, wallet__Entry p2, SWIGTYPE_p_unsigned_char p3) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GetEntry(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), cipher__Address.getCPtr(p1), wallet__Entry.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); return ret; } - public static uint SKY_wallet_Wallet_AddEntry(SWIGTYPE_p_GoInt64_ p0, wallet__Entry p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_AddEntry(SWIGTYPE_p_GoInt64_.getCPtr(p0), wallet__Entry.getCPtr(p1)); + public static uint SKY_wallet_Wallet_AddEntry(SWIGTYPE_p_Wallet__Handle p0, wallet__Entry p1) { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_AddEntry(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), wallet__Entry.getCPtr(p1)); return ret; } @@ -833,16 +833,16 @@ public static uint SKY_wallet_ChooseSpendsMaximizeUxOuts(GoSlice p0, ulong p1, u return ret; } - public static uint SKY_cli_CheckWalletBalance(SWIGTYPE_p_GoInt64_ p0, string p1) { + public static uint SKY_cli_CheckWalletBalance(SWIGTYPE_p_WebRpcClient__Handle p0, string p1, SWIGTYPE_p_BalanceResult_Handle p2) { var tmpp1 = p1; { - uint ret = skycoinPINVOKE.SKY_cli_CheckWalletBalance(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_cli_CheckWalletBalance(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), tmpp1, SWIGTYPE_p_BalanceResult_Handle.getCPtr(p2)); return ret; } } - public static uint SKY_cli_GetBalanceOfAddresses(SWIGTYPE_p_GoInt64_ p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_cli_GetBalanceOfAddresses(SWIGTYPE_p_GoInt64_.getCPtr(p0), GoSlice.getCPtr(p1)); + public static uint SKY_cli_GetBalanceOfAddresses(SWIGTYPE_p_WebRpcClient__Handle p0, GoSlice p1, SWIGTYPE_p_BalanceResult_Handle p2) { + uint ret = skycoinPINVOKE.SKY_cli_GetBalanceOfAddresses(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_BalanceResult_Handle.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -1036,10 +1036,10 @@ public static uint SKY_base58_Hex2Base58Str(GoSlice p0, _GoString_ p1) { } } - public static uint SKY_cli_GenerateWallet(string p0, ulong p2) { + public static uint SKY_cli_GenerateWallet(string p0, SWIGTYPE_p_Options__Handle p1, ulong p2, SWIGTYPE_p_Wallet__Handle p3) { var tmpp0 = p0; { - uint ret = skycoinPINVOKE.SKY_cli_GenerateWallet(tmpp0, p2); + uint ret = skycoinPINVOKE.SKY_cli_GenerateWallet(tmpp0, SWIGTYPE_p_Options__Handle.getCPtr(p1), p2, SWIGTYPE_p_Wallet__Handle.getCPtr(p3)); return ret; } } @@ -1052,62 +1052,62 @@ public static uint SKY_cli_MakeAlphanumericSeed(_GoString_ p0) { } } - public static uint SKY_webrpc_NewClient(string p0) { + public static uint SKY_webrpc_NewClient(string p0, SWIGTYPE_p_WebRpcClient__Handle p1) { var tmpp0 = p0; { - uint ret = skycoinPINVOKE.SKY_webrpc_NewClient(tmpp0); + uint ret = skycoinPINVOKE.SKY_webrpc_NewClient(tmpp0, SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p1)); return ret; } } - public static uint SKY_webrpc_Client_CSRF(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { + public static uint SKY_webrpc_Client_CSRF(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1) { var tmpp1 = _GoString_.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_CSRF(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_webrpc_Client_CSRF(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), tmpp1); return ret; } } - public static uint SKY_webrpc_Client_InjectTransaction(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoInt64_ p1, _GoString_ p2) { + public static uint SKY_webrpc_Client_InjectTransaction(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_Transaction__Handle p1, _GoString_ p2) { var tmpp2 = _GoString_.getCPtr (p2); { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_InjectTransaction(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoInt64_.getCPtr(p1), tmpp2); + uint ret = skycoinPINVOKE.SKY_webrpc_Client_InjectTransaction(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), tmpp2); return ret; } } - public static uint SKY_webrpc_Client_GetStatus(SWIGTYPE_p_GoInt64_ p0) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetStatus(SWIGTYPE_p_GoInt64_.getCPtr(p0)); + public static uint SKY_webrpc_Client_GetStatus(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_StatusResult_Handle p1) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetStatus(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_StatusResult_Handle.getCPtr(p1)); return ret; } - public static uint SKY_webrpc_Client_GetTransactionByID(SWIGTYPE_p_GoInt64_ p0, string p1) { + public static uint SKY_webrpc_Client_GetTransactionByID(SWIGTYPE_p_WebRpcClient__Handle p0, string p1, SWIGTYPE_p_TransactionResult_Handle p2) { var tmpp1 = p1; { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetTransactionByID(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetTransactionByID(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), tmpp1, SWIGTYPE_p_TransactionResult_Handle.getCPtr(p2)); return ret; } } - public static uint SKY_webrpc_Client_GetAddressUxOuts(SWIGTYPE_p_GoInt64_ p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetAddressUxOuts(SWIGTYPE_p_GoInt64_.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + public static uint SKY_webrpc_Client_GetAddressUxOuts(SWIGTYPE_p_WebRpcClient__Handle p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetAddressUxOuts(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_webrpc_Client_GetBlocks(SWIGTYPE_p_GoInt64_ p0, ulong p1, ulong p2, SWIGTYPE_p_GoSlice_ p3) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetBlocks(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1, p2, SWIGTYPE_p_GoSlice_.getCPtr(p3)); + public static uint SKY_webrpc_Client_GetBlocks(SWIGTYPE_p_WebRpcClient__Handle p0, ulong p1, ulong p2, SWIGTYPE_p_GoSlice_ p3) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetBlocks(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), p1, p2, SWIGTYPE_p_GoSlice_.getCPtr(p3)); return ret; } - public static uint SKY_webrpc_Client_GetBlocksBySeq(SWIGTYPE_p_GoInt64_ p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetBlocksBySeq(SWIGTYPE_p_GoInt64_.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + public static uint SKY_webrpc_Client_GetBlocksBySeq(SWIGTYPE_p_WebRpcClient__Handle p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetBlocksBySeq(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_webrpc_Client_GetLastBlocks(SWIGTYPE_p_GoInt64_ p0, ulong p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetLastBlocks(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2)); + public static uint SKY_webrpc_Client_GetLastBlocks(SWIGTYPE_p_WebRpcClient__Handle p0, ulong p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetLastBlocks(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2)); return ret; } @@ -1169,10 +1169,11 @@ public static uint SKY_secp256k1_RandByte(long p0, SWIGTYPE_p_GoSlice_ p1) { return ret; } - public static uint SKY_cli_GenerateAddressesInFile(string p0, ulong p1, SWIGTYPE_p_GoInt64_ p2, SWIGTYPE_p_GoSlice_ p3) { + public static uint SKY_cli_GenerateAddressesInFile(string p0, ulong p1, SWIGTYPE_p_PasswordReader__Handle p2, SWIGTYPE_p_GoSlice_ p3) { var tmpp0 = p0; { - uint ret = skycoinPINVOKE.SKY_cli_GenerateAddressesInFile(tmpp0, p1, SWIGTYPE_p_GoInt64_.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); + uint ret = skycoinPINVOKE.SKY_cli_GenerateAddressesInFile(tmpp0, p1, SWIGTYPE_p_PasswordReader__Handle.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -1455,52 +1456,52 @@ public static uint SKY_cipher_GenerateKeyPair(cipher_PubKey p0, cipher_SecKey p1 } } - public static uint SKY_secp256k1go_Signature_Create() { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Create(); + public static uint SKY_secp256k1go_Signature_Create(SWIGTYPE_p_Signature_Handle p0) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Create(SWIGTYPE_p_Signature_Handle.getCPtr(p0)); return ret; } - public static uint SKY_secp256k1go_Signature_GetR(SWIGTYPE_p_GoInt64_ p0) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_GetR(SWIGTYPE_p_GoInt64_.getCPtr(p0)); + public static uint SKY_secp256k1go_Signature_GetR(SWIGTYPE_p_Signature_Handle p0, SWIGTYPE_p_Number_Handle p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_GetR(SWIGTYPE_p_Signature_Handle.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1)); return ret; } - public static uint SKY_secp256k1go_Signature_GetS(SWIGTYPE_p_GoInt64_ p0) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_GetS(SWIGTYPE_p_GoInt64_.getCPtr(p0)); + public static uint SKY_secp256k1go_Signature_GetS(SWIGTYPE_p_Signature_Handle p0, SWIGTYPE_p_Number_Handle p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_GetS(SWIGTYPE_p_Signature_Handle.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1)); return ret; } - public static uint SKY_secp256k1go_Signature_Print(SWIGTYPE_p_GoInt64_ p0, string p1) { + public static uint SKY_secp256k1go_Signature_Print(SWIGTYPE_p_Signature_Handle p0, string p1) { var tmpp1 = p1; { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Print(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Print(SWIGTYPE_p_Signature_Handle.getCPtr(p0), tmpp1); return ret; } } - public static uint SKY_secp256k1go_Signature_Verify(SWIGTYPE_p_GoInt64_ p0, secp256k1go__XY p1, SWIGTYPE_p_GoInt64_ p2, SWIGTYPE_p_unsigned_char p3) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Verify(SWIGTYPE_p_GoInt64_.getCPtr(p0), secp256k1go__XY.getCPtr(p1), SWIGTYPE_p_GoInt64_.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); + public static uint SKY_secp256k1go_Signature_Verify(SWIGTYPE_p_Signature_Handle p0, secp256k1go__XY p1, SWIGTYPE_p_Number_Handle p2, SWIGTYPE_p_unsigned_char p3) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Verify(SWIGTYPE_p_Signature_Handle.getCPtr(p0), secp256k1go__XY.getCPtr(p1), SWIGTYPE_p_Number_Handle.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); return ret; } - public static uint SKY_secp256k1go_Signature_Recover(SWIGTYPE_p_GoInt64_ p0, secp256k1go__XY p1, SWIGTYPE_p_GoInt64_ p2, long p3, SWIGTYPE_p_unsigned_char p4) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Recover(SWIGTYPE_p_GoInt64_.getCPtr(p0), secp256k1go__XY.getCPtr(p1), SWIGTYPE_p_GoInt64_.getCPtr(p2), p3, SWIGTYPE_p_unsigned_char.getCPtr(p4)); + public static uint SKY_secp256k1go_Signature_Recover(SWIGTYPE_p_Signature_Handle p0, secp256k1go__XY p1, SWIGTYPE_p_Number_Handle p2, long p3, SWIGTYPE_p_unsigned_char p4) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Recover(SWIGTYPE_p_Signature_Handle.getCPtr(p0), secp256k1go__XY.getCPtr(p1), SWIGTYPE_p_Number_Handle.getCPtr(p2), p3, SWIGTYPE_p_unsigned_char.getCPtr(p4)); return ret; } - public static uint SKY_secp256k1go_Signature_Sign(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoInt64_ p1, SWIGTYPE_p_GoInt64_ p2, SWIGTYPE_p_GoInt64_ p3, SWIGTYPE_p_long_long p4, SWIGTYPE_p_long_long p5) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Sign(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoInt64_.getCPtr(p1), SWIGTYPE_p_GoInt64_.getCPtr(p2), SWIGTYPE_p_GoInt64_.getCPtr(p3), SWIGTYPE_p_long_long.getCPtr(p4), SWIGTYPE_p_long_long.getCPtr(p5)); + public static uint SKY_secp256k1go_Signature_Sign(SWIGTYPE_p_Signature_Handle p0, SWIGTYPE_p_Number_Handle p1, SWIGTYPE_p_Number_Handle p2, SWIGTYPE_p_Number_Handle p3, SWIGTYPE_p_long_long p4, SWIGTYPE_p_long_long p5) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Sign(SWIGTYPE_p_Signature_Handle.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1), SWIGTYPE_p_Number_Handle.getCPtr(p2), SWIGTYPE_p_Number_Handle.getCPtr(p3), SWIGTYPE_p_long_long.getCPtr(p4), SWIGTYPE_p_long_long.getCPtr(p5)); return ret; } - public static uint SKY_secp256k1go_Signature_ParseBytes(SWIGTYPE_p_GoInt64_ p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_ParseBytes(SWIGTYPE_p_GoInt64_.getCPtr(p0), GoSlice.getCPtr(p1)); + public static uint SKY_secp256k1go_Signature_ParseBytes(SWIGTYPE_p_Signature_Handle p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_ParseBytes(SWIGTYPE_p_Signature_Handle.getCPtr(p0), GoSlice.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Signature_Bytes(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Bytes(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_secp256k1go_Signature_Bytes(SWIGTYPE_p_Signature_Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Bytes(SWIGTYPE_p_Signature_Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); return ret; } @@ -1512,24 +1513,24 @@ public static uint SKY_cli_App_Run(SWIGTYPE_p_App__Handle p0, string p1) { } } - public static uint SKY_cli_Config_GetCoin(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { + public static uint SKY_cli_Config_GetCoin(SWIGTYPE_p_Config__Handle p0, _GoString_ p1) { var tmpp1 = _GoString_.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_cli_Config_GetCoin(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_cli_Config_GetCoin(SWIGTYPE_p_Config__Handle.getCPtr(p0), tmpp1); return ret; } } - public static uint SKY_cli_Config_GetRPCAddress(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { + public static uint SKY_cli_Config_GetRPCAddress(SWIGTYPE_p_Config__Handle p0, _GoString_ p1) { var tmpp1 = _GoString_.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_cli_Config_GetRPCAddress(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_cli_Config_GetRPCAddress(SWIGTYPE_p_Config__Handle.getCPtr(p0), tmpp1); return ret; } } - public static uint SKY_cli_RPCClientFromApp(SWIGTYPE_p_App__Handle p0) { - uint ret = skycoinPINVOKE.SKY_cli_RPCClientFromApp(SWIGTYPE_p_App__Handle.getCPtr(p0)); + public static uint SKY_cli_RPCClientFromApp(SWIGTYPE_p_App__Handle p0, SWIGTYPE_p_WebRpcClient__Handle p1) { + uint ret = skycoinPINVOKE.SKY_cli_RPCClientFromApp(SWIGTYPE_p_App__Handle.getCPtr(p0), SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p1)); return ret; } @@ -1705,8 +1706,8 @@ public static uint SKY_secp256k1go_XYZ_Equals(secp256k1go__XYZ p0, secp256k1go__ return ret; } - public static uint SKY_secp256k1go_XYZ_ECmult(secp256k1go__XYZ p0, secp256k1go__XYZ p1, SWIGTYPE_p_GoInt64_ p2, SWIGTYPE_p_GoInt64_ p3) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_ECmult(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1), SWIGTYPE_p_GoInt64_.getCPtr(p2), SWIGTYPE_p_GoInt64_.getCPtr(p3)); + public static uint SKY_secp256k1go_XYZ_ECmult(secp256k1go__XYZ p0, secp256k1go__XYZ p1, SWIGTYPE_p_Number_Handle p2, SWIGTYPE_p_Number_Handle p3) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_ECmult(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1), SWIGTYPE_p_Number_Handle.getCPtr(p2), SWIGTYPE_p_Number_Handle.getCPtr(p3)); return ret; } @@ -1730,8 +1731,8 @@ public static uint SKY_secp256k1go_XYZ_Add(secp256k1go__XYZ p0, secp256k1go__XYZ return ret; } - public static uint SKY_secp256k1go_ECmultGen(secp256k1go__XYZ p0, SWIGTYPE_p_GoInt64_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_ECmultGen(secp256k1go__XYZ.getCPtr(p0), SWIGTYPE_p_GoInt64_.getCPtr(p1)); + public static uint SKY_secp256k1go_ECmultGen(secp256k1go__XYZ p0, SWIGTYPE_p_Number_Handle p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_ECmultGen(secp256k1go__XYZ.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1)); return ret; } @@ -1772,12 +1773,12 @@ public static uint SKY_wallet_CryptoTypeFromString(string p0, _GoString_ p1) { } } - public static void SKY_handle_close(SWIGTYPE_p_GoInt64_ p0) { - skycoinPINVOKE.SKY_handle_close(SWIGTYPE_p_GoInt64_.getCPtr(p0)); + public static void SKY_handle_close(SWIGTYPE_p_Handle p0) { + skycoinPINVOKE.SKY_handle_close(SWIGTYPE_p_Handle.getCPtr(p0)); } - public static uint SKY_handle_copy(SWIGTYPE_p_GoInt64_ p0) { - uint ret = skycoinPINVOKE.SKY_handle_copy(SWIGTYPE_p_GoInt64_.getCPtr(p0)); + public static uint SKY_handle_copy(SWIGTYPE_p_Handle p0, SWIGTYPE_p_Handle p1) { + uint ret = skycoinPINVOKE.SKY_handle_copy(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); return ret; } @@ -1938,52 +1939,52 @@ public static uint SKY_cipher_SecKeyFromWalletImportFormat(string p0, cipher_Sec } } - public static uint SKY_JsonEncode_Handle(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { + public static uint SKY_JsonEncode_Handle(SWIGTYPE_p_Handle p0, _GoString_ p1) { var tmpp1 = _GoString_.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_JsonEncode_Handle(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_JsonEncode_Handle(SWIGTYPE_p_Handle.getCPtr(p0), tmpp1); return ret; } } - public static uint SKY_Handle_Progress_GetCurrent(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_Handle_Progress_GetCurrent(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static uint SKY_Handle_Progress_GetCurrent(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_Handle_Progress_GetCurrent(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); return ret; } - public static uint SKY_Handle_Block_GetHeadSeq(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_Handle_Block_GetHeadSeq(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static uint SKY_Handle_Block_GetHeadSeq(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_Handle_Block_GetHeadSeq(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); return ret; } - public static uint SKY_Handle_Block_GetHeadHash(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { + public static uint SKY_Handle_Block_GetHeadHash(SWIGTYPE_p_Handle p0, _GoString_ p1) { var tmpp1 = _GoString_.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_Handle_Block_GetHeadHash(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_Handle_Block_GetHeadHash(SWIGTYPE_p_Handle.getCPtr(p0), tmpp1); return ret; } } - public static uint SKY_Handle_Block_GetPreviousBlockHash(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { + public static uint SKY_Handle_Block_GetPreviousBlockHash(SWIGTYPE_p_Handle p0, _GoString_ p1) { var tmpp1 = _GoString_.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_Handle_Block_GetPreviousBlockHash(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_Handle_Block_GetPreviousBlockHash(SWIGTYPE_p_Handle.getCPtr(p0), tmpp1); return ret; } } - public static uint SKY_Handle_Blocks_GetAt(SWIGTYPE_p_GoInt64_ p0, ulong p1) { - uint ret = skycoinPINVOKE.SKY_Handle_Blocks_GetAt(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1); + public static uint SKY_Handle_Blocks_GetAt(SWIGTYPE_p_Handle p0, ulong p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_Handle_Blocks_GetAt(SWIGTYPE_p_Handle.getCPtr(p0), p1, SWIGTYPE_p_Handle.getCPtr(p2)); return ret; } - public static uint SKY_Handle_Blocks_GetCount(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_Handle_Blocks_GetCount(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static uint SKY_Handle_Blocks_GetCount(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_Handle_Blocks_GetCount(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); return ret; } - public static uint SKY_Handle_Connections_GetCount(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_Handle_Connections_GetCount(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static uint SKY_Handle_Connections_GetCount(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_Handle_Connections_GetCount(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); return ret; } @@ -2037,13 +2038,13 @@ public static uint SKY_api_Handle_Client_GetWalletFullPath(SWIGTYPE_p_Client__Ha } } - public static uint SKY_api_Handle_GetWalletMeta(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoStringMap_ p1) { - uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletMeta(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoStringMap_.getCPtr(p1)); + public static uint SKY_api_Handle_GetWalletMeta(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoStringMap_ p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletMeta(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoStringMap_.getCPtr(p1)); return ret; } - public static uint SKY_api_Handle_GetWalletEntriesCount(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_unsigned_int p1) { - uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletEntriesCount(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); + public static uint SKY_api_Handle_GetWalletEntriesCount(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_unsigned_int p1) { + uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletEntriesCount(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); return ret; } @@ -2052,10 +2053,10 @@ public static uint SKY_api_Handle_Client_GetWalletResponseEntriesCount(SWIGTYPE_ return ret; } - public static uint SKY_api_Handle_WalletGetEntry(SWIGTYPE_p_GoInt64_ p0, uint p1, cipher__Address p2, cipher_PubKey p3) { + public static uint SKY_api_Handle_WalletGetEntry(SWIGTYPE_p_Wallet__Handle p0, uint p1, cipher__Address p2, cipher_PubKey p3) { var tmpp3 = cipher_PubKey.getCPtr (p3); { - uint ret = skycoinPINVOKE.SKY_api_Handle_WalletGetEntry(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1, cipher__Address.getCPtr(p2), tmpp3); + uint ret = skycoinPINVOKE.SKY_api_Handle_WalletGetEntry(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), p1, cipher__Address.getCPtr(p2), tmpp3); return ret; } } @@ -2092,85 +2093,85 @@ public static uint SKY_api_Handle_WalletsResponseGetAt(SWIGTYPE_p_Wallets__Handl return ret; } - public static uint SKY_api_Handle_GetWalletFolderAddress(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { + public static uint SKY_api_Handle_GetWalletFolderAddress(SWIGTYPE_p_Handle p0, _GoString_ p1) { var tmpp1 = _GoString_.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletFolderAddress(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletFolderAddress(SWIGTYPE_p_Handle.getCPtr(p0), tmpp1); return ret; } } - public static uint SKY_api_Handle_GetWalletSeed(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { + public static uint SKY_api_Handle_GetWalletSeed(SWIGTYPE_p_Wallet__Handle p0, _GoString_ p1) { var tmpp1 = _GoString_.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletSeed(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletSeed(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), tmpp1); return ret; } } - public static uint SKY_api_Handle_GetWalletLastSeed(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { + public static uint SKY_api_Handle_GetWalletLastSeed(SWIGTYPE_p_Wallet__Handle p0, _GoString_ p1) { var tmpp1 = _GoString_.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletLastSeed(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletLastSeed(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), tmpp1); return ret; } } - public static uint SKY_api_Handle_GetBuildInfoData(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1, _GoString_ p2, _GoString_ p3) { + public static uint SKY_api_Handle_GetBuildInfoData(SWIGTYPE_p_BuildInfo_Handle p0, _GoString_ p1, _GoString_ p2, _GoString_ p3) { var tmpp1 = _GoString_.getCPtr (p1); var tmpp2 = _GoString_.getCPtr (p2); var tmpp3 = _GoString_.getCPtr (p3); { - uint ret = skycoinPINVOKE.SKY_api_Handle_GetBuildInfoData(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1, tmpp2, tmpp3); + uint ret = skycoinPINVOKE.SKY_api_Handle_GetBuildInfoData(SWIGTYPE_p_BuildInfo_Handle.getCPtr(p0), tmpp1, tmpp2, tmpp3); return ret; } } - public static uint SKY_ripemd160_New() { - uint ret = skycoinPINVOKE.SKY_ripemd160_New(); + public static uint SKY_ripemd160_New(SWIGTYPE_p_Hash_Handle p0) { + uint ret = skycoinPINVOKE.SKY_ripemd160_New(SWIGTYPE_p_Hash_Handle.getCPtr(p0)); return ret; } - public static uint SKY_ripemd160_Write(SWIGTYPE_p_GoInt64_ p0, GoSlice p1, SWIGTYPE_p_long_long p2) { - uint ret = skycoinPINVOKE.SKY_ripemd160_Write(SWIGTYPE_p_GoInt64_.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_long_long.getCPtr(p2)); + public static uint SKY_ripemd160_Write(SWIGTYPE_p_Hash_Handle p0, GoSlice p1, SWIGTYPE_p_long_long p2) { + uint ret = skycoinPINVOKE.SKY_ripemd160_Write(SWIGTYPE_p_Hash_Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_long_long.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_ripemd160_Sum(SWIGTYPE_p_GoInt64_ p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_ripemd160_Sum(SWIGTYPE_p_GoInt64_.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + public static uint SKY_ripemd160_Sum(SWIGTYPE_p_Hash_Handle p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_ripemd160_Sum(SWIGTYPE_p_Hash_Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_secp256k1go_Number_Create() { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_Create(); + public static uint SKY_secp256k1go_Number_Create(SWIGTYPE_p_Number_Handle p0) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_Create(SWIGTYPE_p_Number_Handle.getCPtr(p0)); return ret; } - public static uint SKY_secp256k1go_Number_Print(SWIGTYPE_p_GoInt64_ p0, string p1) { + public static uint SKY_secp256k1go_Number_Print(SWIGTYPE_p_Number_Handle p0, string p1) { var tmpp1 = p1; { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_Print(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_Print(SWIGTYPE_p_Number_Handle.getCPtr(p0), tmpp1); return ret; } } - public static uint SKY_secp256k1go_Number_SetHex(SWIGTYPE_p_GoInt64_ p0, string p1) { + public static uint SKY_secp256k1go_Number_SetHex(SWIGTYPE_p_Number_Handle p0, string p1) { var tmpp1 = p1; { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_SetHex(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_SetHex(SWIGTYPE_p_Number_Handle.getCPtr(p0), tmpp1); return ret; } } - public static uint SKY_secp256k1go_Number_IsOdd(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_IsOdd(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + public static uint SKY_secp256k1go_Number_IsOdd(SWIGTYPE_p_Number_Handle p0, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_IsOdd(SWIGTYPE_p_Number_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); return ret; } - public static uint SKY_secp256k1go_Number_IsEqual(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoInt64_ p1, SWIGTYPE_p_unsigned_char p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_IsEqual(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoInt64_.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); + public static uint SKY_secp256k1go_Number_IsEqual(SWIGTYPE_p_Number_Handle p0, SWIGTYPE_p_Number_Handle p1, SWIGTYPE_p_unsigned_char p2) { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_IsEqual(SWIGTYPE_p_Number_Handle.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); return ret; } @@ -2253,53 +2254,62 @@ public static uint SKY_coin_UxArray_Add(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_GoSli return ret; } - public static uint SKY_coin_NewAddressUxOuts(SWIGTYPE_p_GoSlice_ p0) { - uint ret = skycoinPINVOKE.SKY_coin_NewAddressUxOuts(SWIGTYPE_p_GoSlice_.getCPtr(p0)); + public static uint SKY_coin_NewAddressUxOuts(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_AddressUxOuts_Handle p1) { + uint ret = skycoinPINVOKE.SKY_coin_NewAddressUxOuts(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p1)); return ret; } - public static uint SKY_coin_AddressUxOuts_Keys(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Keys(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_coin_AddressUxOuts_Keys(SWIGTYPE_p_AddressUxOuts_Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Keys(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_AddressUxOuts_Flatten(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Flatten(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_coin_AddressUxOuts_Flatten(SWIGTYPE_p_AddressUxOuts_Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Flatten(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_AddressUxOuts_Sub(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoInt64_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Sub(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoInt64_.getCPtr(p1)); + public static uint SKY_coin_AddressUxOuts_Sub(SWIGTYPE_p_AddressUxOuts_Handle p0, SWIGTYPE_p_AddressUxOuts_Handle p1, SWIGTYPE_p_AddressUxOuts_Handle p2) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Sub(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p1), SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_AddressUxOuts_Add(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoInt64_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Add(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoInt64_.getCPtr(p1)); + public static uint SKY_coin_AddressUxOuts_Add(SWIGTYPE_p_AddressUxOuts_Handle p0, SWIGTYPE_p_AddressUxOuts_Handle p1, SWIGTYPE_p_AddressUxOuts_Handle p2) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Add(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p1), SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_AddressUxOuts_Get(SWIGTYPE_p_GoInt64_ p0, cipher__Address p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Get(SWIGTYPE_p_GoInt64_.getCPtr(p0), cipher__Address.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + public static uint SKY_coin_AddressUxOuts_Get(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher__Address p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Get(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_AddressUxOuts_HasKey(SWIGTYPE_p_GoInt64_ p0, cipher__Address p1, SWIGTYPE_p_unsigned_char p2) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_HasKey(SWIGTYPE_p_GoInt64_.getCPtr(p0), cipher__Address.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); + public static uint SKY_coin_AddressUxOuts_HasKey(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher__Address p1, SWIGTYPE_p_unsigned_char p2) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_HasKey(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_AddressUxOuts_GetOutputLength(SWIGTYPE_p_GoInt64_ p0, cipher__Address p1, SWIGTYPE_p_long_long p2) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_GetOutputLength(SWIGTYPE_p_GoInt64_.getCPtr(p0), cipher__Address.getCPtr(p1), SWIGTYPE_p_long_long.getCPtr(p2)); + public static uint SKY_coin_AddressUxOuts_GetOutputLength(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher__Address p1, SWIGTYPE_p_long_long p2) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_GetOutputLength(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), SWIGTYPE_p_long_long.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_AddressUxOuts_Length(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Length(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_coin_AddressUxOuts_Length(SWIGTYPE_p_AddressUxOuts_Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Length(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_AddressUxOuts_Set(SWIGTYPE_p_GoInt64_ p0, cipher__Address p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Set(SWIGTYPE_p_GoInt64_.getCPtr(p0), cipher__Address.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + public static uint SKY_coin_AddressUxOuts_Set(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher__Address p1, SWIGTYPE_p_GoSlice_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Set(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -2315,31 +2325,32 @@ public static uint SKY_encrypt_ScryptChacha20poly1305_Decrypt(encrypt__ScryptCha return ret; } - public static uint SKY_wallet_CreateOptionsHandle(string p0, string p1, string p2, byte p3, string p4, string p5, ulong p6) { + public static uint SKY_wallet_CreateOptionsHandle(string p0, string p1, string p2, byte p3, string p4, string p5, ulong p6, SWIGTYPE_p_Options__Handle p7) { var tmpp0 = p0; var tmpp1 = p1; var tmpp2 = p2; var tmpp4 = p4; var tmpp5 = p5; { - uint ret = skycoinPINVOKE.SKY_wallet_CreateOptionsHandle(tmpp0, tmpp1, tmpp2, p3, tmpp4, tmpp5, p6); + uint ret = skycoinPINVOKE.SKY_wallet_CreateOptionsHandle(tmpp0, tmpp1, tmpp2, p3, tmpp4, tmpp5, p6, SWIGTYPE_p_Options__Handle.getCPtr(p7)); return ret; } } - public static uint SKY_cli_AddPrivateKey(SWIGTYPE_p_GoInt64_ p0, string p1) { + public static uint SKY_cli_AddPrivateKey(SWIGTYPE_p_Wallet__Handle p0, string p1) { var tmpp1 = p1; { - uint ret = skycoinPINVOKE.SKY_cli_AddPrivateKey(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_cli_AddPrivateKey(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), tmpp1); return ret; } } - public static uint SKY_cli_AddPrivateKeyToFile(string p0, string p1, SWIGTYPE_p_GoInt64_ p2) { + public static uint SKY_cli_AddPrivateKeyToFile(string p0, string p1, SWIGTYPE_p_PasswordReader__Handle p2) { var tmpp0 = p0; var tmpp1 = p1; { - uint ret = skycoinPINVOKE.SKY_cli_AddPrivateKeyToFile(tmpp0, tmpp1, SWIGTYPE_p_GoInt64_.getCPtr(p2)); + uint ret = skycoinPINVOKE.SKY_cli_AddPrivateKeyToFile(tmpp0, tmpp1, SWIGTYPE_p_PasswordReader__Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -2468,8 +2479,8 @@ public static uint SKY_cert_CreateCertIfNotExists(string p0, string p1, string p } } - public static uint SKY_fee_VerifyTransactionFee(SWIGTYPE_p_GoInt64_ p0, ulong p1) { - uint ret = skycoinPINVOKE.SKY_fee_VerifyTransactionFee(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1); + public static uint SKY_fee_VerifyTransactionFee(SWIGTYPE_p_Transaction__Handle p0, ulong p1) { + uint ret = skycoinPINVOKE.SKY_fee_VerifyTransactionFee(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); return ret; } @@ -2488,44 +2499,44 @@ public static uint SKY_fee_RemainingHours(ulong p0, SWIGTYPE_p_unsigned_long_lon return ret; } - public static uint SKY_fee_TransactionFee(SWIGTYPE_p_GoInt64_ p0, ulong p1, SWIGTYPE_p_GoSlice_ p2, SWIGTYPE_p_unsigned_long_long p3) { - uint ret = skycoinPINVOKE.SKY_fee_TransactionFee(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2), SWIGTYPE_p_unsigned_long_long.getCPtr(p3)); + public static uint SKY_fee_TransactionFee(SWIGTYPE_p_Transaction__Handle p0, ulong p1, SWIGTYPE_p_GoSlice_ p2, SWIGTYPE_p_unsigned_long_long p3) { + uint ret = skycoinPINVOKE.SKY_fee_TransactionFee(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2), SWIGTYPE_p_unsigned_long_long.getCPtr(p3)); return ret; } - public static uint SKY_cli_LoadConfig() { - uint ret = skycoinPINVOKE.SKY_cli_LoadConfig(); + public static uint SKY_cli_LoadConfig(SWIGTYPE_p_Config__Handle p0) { + uint ret = skycoinPINVOKE.SKY_cli_LoadConfig(SWIGTYPE_p_Config__Handle.getCPtr(p0)); return ret; } - public static uint SKY_cli_Config_FullWalletPath(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { + public static uint SKY_cli_Config_FullWalletPath(SWIGTYPE_p_Config__Handle p0, _GoString_ p1) { var tmpp1 = _GoString_.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_cli_Config_FullWalletPath(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_cli_Config_FullWalletPath(SWIGTYPE_p_Config__Handle.getCPtr(p0), tmpp1); return ret; } } - public static uint SKY_cli_Config_FullDBPath(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { + public static uint SKY_cli_Config_FullDBPath(SWIGTYPE_p_Config__Handle p0, _GoString_ p1) { var tmpp1 = _GoString_.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_cli_Config_FullDBPath(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_cli_Config_FullDBPath(SWIGTYPE_p_Config__Handle.getCPtr(p0), tmpp1); return ret; } } - public static uint SKY_cli_NewApp(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_App__Handle p1) { - uint ret = skycoinPINVOKE.SKY_cli_NewApp(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_App__Handle.getCPtr(p1)); + public static uint SKY_cli_NewApp(SWIGTYPE_p_Config__Handle p0, SWIGTYPE_p_App__Handle p1) { + uint ret = skycoinPINVOKE.SKY_cli_NewApp(SWIGTYPE_p_Config__Handle.getCPtr(p0), SWIGTYPE_p_App__Handle.getCPtr(p1)); return ret; } - public static uint SKY_cli_RPCClientFromContext(SWIGTYPE_p_Context__Handle p0) { - uint ret = skycoinPINVOKE.SKY_cli_RPCClientFromContext(SWIGTYPE_p_Context__Handle.getCPtr(p0)); + public static uint SKY_cli_RPCClientFromContext(SWIGTYPE_p_Context__Handle p0, SWIGTYPE_p_WebRpcClient__Handle p1) { + uint ret = skycoinPINVOKE.SKY_cli_RPCClientFromContext(SWIGTYPE_p_Context__Handle.getCPtr(p0), SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p1)); return ret; } - public static uint SKY_cli_ConfigFromContext(SWIGTYPE_p_Context__Handle p0) { - uint ret = skycoinPINVOKE.SKY_cli_ConfigFromContext(SWIGTYPE_p_Context__Handle.getCPtr(p0)); + public static uint SKY_cli_ConfigFromContext(SWIGTYPE_p_Context__Handle p0, SWIGTYPE_p_Config__Handle p1) { + uint ret = skycoinPINVOKE.SKY_cli_ConfigFromContext(SWIGTYPE_p_Context__Handle.getCPtr(p0), SWIGTYPE_p_Config__Handle.getCPtr(p1)); return ret; } @@ -2539,38 +2550,38 @@ public static uint SKY_cli_PasswordFromTerm_Password(SWIGTYPE_p_GoSlice_ p0) { return ret; } - public static uint SKY_cli_CreateRawTxFromWallet(SWIGTYPE_p_GoInt64_ p0, string p1, string p2, GoSlice p3, SWIGTYPE_p_GoInt64_ p4) { + public static uint SKY_cli_CreateRawTxFromWallet(SWIGTYPE_p_WebRpcClient__Handle p0, string p1, string p2, GoSlice p3, SWIGTYPE_p_PasswordReader__Handle p4, SWIGTYPE_p_Transaction__Handle p5) { var tmpp1 = p1; var tmpp2 = p2; { - uint ret = skycoinPINVOKE.SKY_cli_CreateRawTxFromWallet(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1, tmpp2, GoSlice.getCPtr(p3), SWIGTYPE_p_GoInt64_.getCPtr(p4)); + uint ret = skycoinPINVOKE.SKY_cli_CreateRawTxFromWallet(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), tmpp1, tmpp2, GoSlice.getCPtr(p3), SWIGTYPE_p_PasswordReader__Handle.getCPtr(p4), SWIGTYPE_p_Transaction__Handle.getCPtr(p5)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } - public static uint SKY_cli_CreateRawTxFromAddress(SWIGTYPE_p_GoInt64_ p0, string p1, string p2, string p3, GoSlice p4, SWIGTYPE_p_GoInt64_ p5) { + public static uint SKY_cli_CreateRawTxFromAddress(SWIGTYPE_p_WebRpcClient__Handle p0, string p1, string p2, string p3, GoSlice p4, SWIGTYPE_p_PasswordReader__Handle p5, SWIGTYPE_p_Transaction__Handle p6) { var tmpp1 = p1; var tmpp2 = p2; var tmpp3 = p3; { - uint ret = skycoinPINVOKE.SKY_cli_CreateRawTxFromAddress(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1, tmpp2, tmpp3, GoSlice.getCPtr(p4), SWIGTYPE_p_GoInt64_.getCPtr(p5)); + uint ret = skycoinPINVOKE.SKY_cli_CreateRawTxFromAddress(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), tmpp1, tmpp2, tmpp3, GoSlice.getCPtr(p4), SWIGTYPE_p_PasswordReader__Handle.getCPtr(p5), SWIGTYPE_p_Transaction__Handle.getCPtr(p6)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } - public static uint SKY_cli_CreateRawTx(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoInt64_ p1, GoSlice p2, string p3, GoSlice p4, GoSlice p5) { + public static uint SKY_cli_CreateRawTx(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_Wallet__Handle p1, GoSlice p2, string p3, GoSlice p4, GoSlice p5, SWIGTYPE_p_Transaction__Handle p6) { var tmpp3 = p3; { - uint ret = skycoinPINVOKE.SKY_cli_CreateRawTx(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoInt64_.getCPtr(p1), GoSlice.getCPtr(p2), tmpp3, GoSlice.getCPtr(p4), GoSlice.getCPtr(p5)); + uint ret = skycoinPINVOKE.SKY_cli_CreateRawTx(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_Wallet__Handle.getCPtr(p1), GoSlice.getCPtr(p2), tmpp3, GoSlice.getCPtr(p4), GoSlice.getCPtr(p5), SWIGTYPE_p_Transaction__Handle.getCPtr(p6)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } - public static uint SKY_cli_NewTransaction(GoSlice p0, GoSlice p1, GoSlice p2) { - uint ret = skycoinPINVOKE.SKY_cli_NewTransaction(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2)); + public static uint SKY_cli_NewTransaction(GoSlice p0, GoSlice p1, GoSlice p2, SWIGTYPE_p_Transaction__Handle p3) { + uint ret = skycoinPINVOKE.SKY_cli_NewTransaction(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), SWIGTYPE_p_Transaction__Handle.getCPtr(p3)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -2612,16 +2623,16 @@ public static uint SKY_file_DetermineResourcePath(string p0, string p1, string p } } - public static uint SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_GoInt64_ p0, string p1, SWIGTYPE_p_ReadableOutputSet_Handle p2) { + public static uint SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_WebRpcClient__Handle p0, string p1, SWIGTYPE_p_ReadableOutputSet_Handle p2) { var tmpp1 = p1; { - uint ret = skycoinPINVOKE.SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1, SWIGTYPE_p_ReadableOutputSet_Handle.getCPtr(p2)); + uint ret = skycoinPINVOKE.SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), tmpp1, SWIGTYPE_p_ReadableOutputSet_Handle.getCPtr(p2)); return ret; } } - public static uint SKY_cli_GetWalletOutputs(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_ReadableOutputSet_Handle p2) { - uint ret = skycoinPINVOKE.SKY_cli_GetWalletOutputs(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_ReadableOutputSet_Handle.getCPtr(p2)); + public static uint SKY_cli_GetWalletOutputs(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_Wallet__Handle p1, SWIGTYPE_p_ReadableOutputSet_Handle p2) { + uint ret = skycoinPINVOKE.SKY_cli_GetWalletOutputs(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_Wallet__Handle.getCPtr(p1), SWIGTYPE_p_ReadableOutputSet_Handle.getCPtr(p2)); return ret; } @@ -2836,106 +2847,106 @@ public static uint SKY_cipher_SHA256_Null(cipher_SecKey p0, SWIGTYPE_p_unsigned_ } } - public static uint SKY_coin_Create_Transaction() { - uint ret = skycoinPINVOKE.SKY_coin_Create_Transaction(); + public static uint SKY_coin_Create_Transaction(SWIGTYPE_p_Transaction__Handle p0) { + uint ret = skycoinPINVOKE.SKY_coin_Create_Transaction(SWIGTYPE_p_Transaction__Handle.getCPtr(p0)); return ret; } - public static uint SKY_coin_Transaction_Copy(SWIGTYPE_p_GoInt64_ p0) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_Copy(SWIGTYPE_p_GoInt64_.getCPtr(p0)); + public static uint SKY_coin_Transaction_Copy(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_Transaction__Handle p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_Copy(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); return ret; } - public static uint SKY_coin_GetTransactionObject(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_p_coin__Transaction p1) { - uint ret = skycoinPINVOKE.SKY_coin_GetTransactionObject(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_p_coin__Transaction.getCPtr(p1)); + public static uint SKY_coin_GetTransactionObject(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_p_coin__Transaction p1) { + uint ret = skycoinPINVOKE.SKY_coin_GetTransactionObject(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_p_coin__Transaction.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transaction_ResetInputs(SWIGTYPE_p_GoInt64_ p0, long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_ResetInputs(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1); + public static uint SKY_coin_Transaction_ResetInputs(SWIGTYPE_p_Transaction__Handle p0, long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_ResetInputs(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); return ret; } - public static uint SKY_coin_Transaction_GetInputsCount(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetInputsCount(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_coin_Transaction_GetInputsCount(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetInputsCount(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transaction_GetInputAt(SWIGTYPE_p_GoInt64_ p0, long p1, cipher_SecKey p2) { + public static uint SKY_coin_Transaction_GetInputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, cipher_SecKey p2) { var tmpp2 = cipher_SecKey.getCPtr (p2); { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetInputAt(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1, tmpp2); + uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetInputAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, tmpp2); return ret; } } - public static uint SKY_coin_Transaction_SetInputAt(SWIGTYPE_p_GoInt64_ p0, long p1, cipher_SecKey p2) { + public static uint SKY_coin_Transaction_SetInputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, cipher_SecKey p2) { var tmpp2 = cipher_SecKey.getCPtr (p2); { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetInputAt(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1, tmpp2); + uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetInputAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, tmpp2); return ret; } } - public static uint SKY_coin_Transaction_GetOutputsCount(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetOutputsCount(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_coin_Transaction_GetOutputsCount(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetOutputsCount(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transaction_GetOutputAt(SWIGTYPE_p_GoInt64_ p0, long p1, coin__TransactionOutput p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetOutputAt(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1, coin__TransactionOutput.getCPtr(p2)); + public static uint SKY_coin_Transaction_GetOutputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, coin__TransactionOutput p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetOutputAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, coin__TransactionOutput.getCPtr(p2)); return ret; } - public static uint SKY_coin_Transaction_SetOutputAt(SWIGTYPE_p_GoInt64_ p0, long p1, coin__TransactionOutput p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetOutputAt(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1, coin__TransactionOutput.getCPtr(p2)); + public static uint SKY_coin_Transaction_SetOutputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, coin__TransactionOutput p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetOutputAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, coin__TransactionOutput.getCPtr(p2)); return ret; } - public static uint SKY_coin_Transaction_GetSignaturesCount(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetSignaturesCount(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_coin_Transaction_GetSignaturesCount(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetSignaturesCount(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transaction_GetSignatureAt(SWIGTYPE_p_GoInt64_ p0, long p1, SWIGTYPE_p_a_65__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetSignatureAt(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1, SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); + public static uint SKY_coin_Transaction_GetSignatureAt(SWIGTYPE_p_Transaction__Handle p0, long p1, SWIGTYPE_p_a_65__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetSignatureAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); return ret; } - public static uint SKY_coin_Transaction_SetSignatureAt(SWIGTYPE_p_GoInt64_ p0, long p1, SWIGTYPE_p_a_65__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetSignatureAt(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1, SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); + public static uint SKY_coin_Transaction_SetSignatureAt(SWIGTYPE_p_Transaction__Handle p0, long p1, SWIGTYPE_p_a_65__GoUint8_ p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetSignatureAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); return ret; } - public static uint SKY_coin_Transaction_PushSignature(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_a_65__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushSignature(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1)); + public static uint SKY_coin_Transaction_PushSignature(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_a_65__GoUint8_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushSignature(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transaction_ResetOutputs(SWIGTYPE_p_GoInt64_ p0, long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_ResetOutputs(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1); + public static uint SKY_coin_Transaction_ResetOutputs(SWIGTYPE_p_Transaction__Handle p0, long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_ResetOutputs(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); return ret; } - public static uint SKY_coin_Transaction_ResetSignatures(SWIGTYPE_p_GoInt64_ p0, long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_ResetSignatures(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1); + public static uint SKY_coin_Transaction_ResetSignatures(SWIGTYPE_p_Transaction__Handle p0, long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_ResetSignatures(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); return ret; } - public static uint SKY_coin_Transaction_Verify(SWIGTYPE_p_GoInt64_ p0) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_Verify(SWIGTYPE_p_GoInt64_.getCPtr(p0)); + public static uint SKY_coin_Transaction_Verify(SWIGTYPE_p_Transaction__Handle p0) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_Verify(SWIGTYPE_p_Transaction__Handle.getCPtr(p0)); return ret; } - public static uint SKY_coin_Transaction_VerifyInput(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_VerifyInput(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_coin_Transaction_VerifyInput(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_VerifyInput(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transaction_PushInput(SWIGTYPE_p_GoInt64_ p0, cipher_SecKey p1, SWIGTYPE_p_unsigned_short p2) { + public static uint SKY_coin_Transaction_PushInput(SWIGTYPE_p_Transaction__Handle p0, cipher_SecKey p1, SWIGTYPE_p_unsigned_short p2) { var tmpp1 = cipher_SecKey.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushInput(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1, SWIGTYPE_p_unsigned_short.getCPtr(p2)); + uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushInput(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), tmpp1, SWIGTYPE_p_unsigned_short.getCPtr(p2)); return ret; } } @@ -2949,152 +2960,156 @@ public static uint SKY_coin_TransactionOutput_UxID(coin__TransactionOutput p0, c } } - public static uint SKY_coin_Transaction_PushOutput(SWIGTYPE_p_GoInt64_ p0, cipher__Address p1, ulong p2, ulong p3) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushOutput(SWIGTYPE_p_GoInt64_.getCPtr(p0), cipher__Address.getCPtr(p1), p2, p3); + public static uint SKY_coin_Transaction_PushOutput(SWIGTYPE_p_Transaction__Handle p0, cipher__Address p1, ulong p2, ulong p3) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushOutput(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), cipher__Address.getCPtr(p1), p2, p3); return ret; } - public static uint SKY_coin_Transaction_SignInputs(SWIGTYPE_p_GoInt64_ p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_SignInputs(SWIGTYPE_p_GoInt64_.getCPtr(p0), GoSlice.getCPtr(p1)); + public static uint SKY_coin_Transaction_SignInputs(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_SignInputs(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_Transaction_Size(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_Size(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_coin_Transaction_Size(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_Size(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transaction_Hash(SWIGTYPE_p_GoInt64_ p0, cipher_SecKey p1) { + public static uint SKY_coin_Transaction_Hash(SWIGTYPE_p_Transaction__Handle p0, cipher_SecKey p1) { var tmpp1 = cipher_SecKey.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_Hash(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_coin_Transaction_Hash(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), tmpp1); return ret; } } - public static uint SKY_coin_Transaction_SizeHash(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_long_long p1, cipher_SecKey p2) { + public static uint SKY_coin_Transaction_SizeHash(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1, cipher_SecKey p2) { var tmpp2 = cipher_SecKey.getCPtr (p2); { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_SizeHash(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1), tmpp2); + uint ret = skycoinPINVOKE.SKY_coin_Transaction_SizeHash(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1), tmpp2); return ret; } } - public static uint SKY_coin_Transaction_TxID(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_TxID(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_coin_Transaction_TxID(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_TxID(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transaction_TxIDHex(SWIGTYPE_p_GoInt64_ p0, _GoString_ p1) { + public static uint SKY_coin_Transaction_TxIDHex(SWIGTYPE_p_Transaction__Handle p0, _GoString_ p1) { var tmpp1 = _GoString_.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_TxIDHex(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_coin_Transaction_TxIDHex(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), tmpp1); return ret; } } - public static uint SKY_coin_Transaction_UpdateHeader(SWIGTYPE_p_GoInt64_ p0) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_UpdateHeader(SWIGTYPE_p_GoInt64_.getCPtr(p0)); + public static uint SKY_coin_Transaction_UpdateHeader(SWIGTYPE_p_Transaction__Handle p0) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_UpdateHeader(SWIGTYPE_p_Transaction__Handle.getCPtr(p0)); return ret; } - public static uint SKY_coin_Transaction_HashInner(SWIGTYPE_p_GoInt64_ p0, cipher_SecKey p1) { + public static uint SKY_coin_Transaction_HashInner(SWIGTYPE_p_Transaction__Handle p0, cipher_SecKey p1) { var tmpp1 = cipher_SecKey.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_HashInner(SWIGTYPE_p_GoInt64_.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_coin_Transaction_HashInner(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), tmpp1); return ret; } } - public static uint SKY_coin_Transaction_Serialize(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_Serialize(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_coin_Transaction_Serialize(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_Serialize(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); return ret; } - public static uint SKY_coin_TransactionDeserialize(GoSlice p0) { - uint ret = skycoinPINVOKE.SKY_coin_TransactionDeserialize(GoSlice.getCPtr(p0)); + public static uint SKY_coin_TransactionDeserialize(GoSlice p0, SWIGTYPE_p_Transaction__Handle p1) { + uint ret = skycoinPINVOKE.SKY_coin_TransactionDeserialize(GoSlice.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_Transaction_OutputHours(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_OutputHours(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static uint SKY_coin_Transaction_OutputHours(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_OutputHours(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); return ret; } - public static uint SKY_coin_Create_Transactions() { - uint ret = skycoinPINVOKE.SKY_coin_Create_Transactions(); + public static uint SKY_coin_Create_Transactions(SWIGTYPE_p_Transactions__Handle p0) { + uint ret = skycoinPINVOKE.SKY_coin_Create_Transactions(SWIGTYPE_p_Transactions__Handle.getCPtr(p0)); return ret; } - public static uint SKY_coin_GetTransactionsObject(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_GetTransactionsObject(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_p_GoSlice_.getCPtr(p1)); + public static uint SKY_coin_GetTransactionsObject(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_GetTransactionsObject(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_p_GoSlice_.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transactions_Length(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transactions_Length(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_coin_Transactions_Length(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_Length(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transactions_Add(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoInt64_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transactions_Add(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoInt64_.getCPtr(p1)); + public static uint SKY_coin_Transactions_Add(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_Transaction__Handle p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_Add(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transactions_Fees(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_FeeCalculator p1, SWIGTYPE_p_unsigned_long_long p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transactions_Fees(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1), SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); + public static uint SKY_coin_Transactions_Fees(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_FeeCalculator p1, SWIGTYPE_p_unsigned_long_long p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_Fees(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1), SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); return ret; } - public static uint SKY_coin_Transactions_GetAt(SWIGTYPE_p_GoInt64_ p0, long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transactions_GetAt(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1); + public static uint SKY_coin_Transactions_GetAt(SWIGTYPE_p_Transactions__Handle p0, long p1, SWIGTYPE_p_Transaction__Handle p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_GetAt(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), p1, SWIGTYPE_p_Transaction__Handle.getCPtr(p2)); return ret; } - public static uint SKY_coin_Transactions_Hashes(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transactions_Hashes(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); + public static uint SKY_coin_Transactions_Hashes(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_Hashes(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transactions_Size(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transactions_Size(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_coin_Transactions_Size(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_Size(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); return ret; } - public static uint SKY_coin_Transactions_TruncateBytesTo(SWIGTYPE_p_GoInt64_ p0, long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transactions_TruncateBytesTo(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1); + public static uint SKY_coin_Transactions_TruncateBytesTo(SWIGTYPE_p_Transactions__Handle p0, long p1, SWIGTYPE_p_Transactions__Handle p2) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_TruncateBytesTo(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), p1, SWIGTYPE_p_Transactions__Handle.getCPtr(p2)); return ret; } - public static uint SKY_coin_SortTransactions(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_FeeCalculator p1) { - uint ret = skycoinPINVOKE.SKY_coin_SortTransactions(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1)); + public static uint SKY_coin_SortTransactions(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_FeeCalculator p1, SWIGTYPE_p_Transactions__Handle p2) { + uint ret = skycoinPINVOKE.SKY_coin_SortTransactions(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1), SWIGTYPE_p_Transactions__Handle.getCPtr(p2)); return ret; } - public static uint SKY_coin_NewSortableTransactions(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_FeeCalculator p1) { - uint ret = skycoinPINVOKE.SKY_coin_NewSortableTransactions(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1)); + public static uint SKY_coin_NewSortableTransactions(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_FeeCalculator p1, SWIGTYPE_p_SortableTransactionResult_Handle p2) { + uint ret = skycoinPINVOKE.SKY_coin_NewSortableTransactions(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1), SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p2)); return ret; } - public static uint SKY_coin_SortableTransactions_Sort(SWIGTYPE_p_GoInt64_ p0) { - uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Sort(SWIGTYPE_p_GoInt64_.getCPtr(p0)); + public static uint SKY_coin_SortableTransactions_Sort(SWIGTYPE_p_SortableTransactionResult_Handle p0) { + uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Sort(SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p0)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_SortableTransactions_Len(SWIGTYPE_p_GoInt64_ p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Len(SWIGTYPE_p_GoInt64_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_coin_SortableTransactions_Len(SWIGTYPE_p_SortableTransactionResult_Handle p0, SWIGTYPE_p_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Len(SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_SortableTransactions_Less(SWIGTYPE_p_GoInt64_ p0, long p1, long p2, SWIGTYPE_p_unsigned_char p3) { - uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Less(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1, p2, SWIGTYPE_p_unsigned_char.getCPtr(p3)); + public static uint SKY_coin_SortableTransactions_Less(SWIGTYPE_p_SortableTransactionResult_Handle p0, long p1, long p2, SWIGTYPE_p_unsigned_char p3) { + uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Less(SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p0), p1, p2, SWIGTYPE_p_unsigned_char.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_SortableTransactions_Swap(SWIGTYPE_p_GoInt64_ p0, long p1, long p2) { - uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Swap(SWIGTYPE_p_GoInt64_.getCPtr(p0), p1, p2); + public static uint SKY_coin_SortableTransactions_Swap(SWIGTYPE_p_SortableTransactionResult_Handle p0, long p1, long p2) { + uint ret = skycoinPINVOKE.SKY_coin_SortableTransactions_Swap(SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p0), p1, p2); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index 582a1ef8..1d96d7cc 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -570,13 +570,13 @@ static skycoinPINVOKE() { public static extern void delete_GoSlice(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewBlock")] - public static extern uint SKY_coin_NewBlock(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); + public static extern uint SKY_coin_NewBlock(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SignedBlock_VerifySignature")] public static extern uint SKY_coin_SignedBlock_VerifySignature(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewGenesisBlock")] - public static extern uint SKY_coin_NewGenesisBlock(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3); + public static extern uint SKY_coin_NewGenesisBlock(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_HashHeader")] public static extern uint SKY_coin_Block_HashHeader(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -600,7 +600,7 @@ static skycoinPINVOKE() { public static extern uint SKY_coin_Block_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_GetTransaction")] - public static extern uint SKY_coin_Block_GetTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg4); + public static extern uint SKY_coin_Block_GetTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewBlockHeader")] public static extern uint SKY_coin_NewBlockHeader(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, ulong jarg3, ulong jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); @@ -618,7 +618,7 @@ static skycoinPINVOKE() { public static extern uint SKY_coin_BlockBody_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockBody_Size")] - public static extern uint SKY_coin_BlockBody_Size(global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_coin_BlockBody_Size(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockBody_Bytes")] public static extern uint SKY_coin_BlockBody_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -633,10 +633,10 @@ static skycoinPINVOKE() { public static extern uint SKY_coin_GetBlockObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetBlockBody")] - public static extern uint SKY_coin_GetBlockBody(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint SKY_coin_GetBlockBody(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewEmptyBlock")] - public static extern uint SKY_coin_NewEmptyBlock(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint SKY_coin_NewEmptyBlock(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_bip39_NewDefaultMnemomic")] public static extern uint SKY_bip39_NewDefaultMnemomic(global::System.Runtime.InteropServices.HandleRef jarg1); @@ -660,46 +660,46 @@ static skycoinPINVOKE() { public static extern uint SKY_api_Client_CSRF(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Version")] - public static extern uint SKY_api_Client_Version(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint SKY_api_Client_Version(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Outputs")] - public static extern uint SKY_api_Client_Outputs(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint SKY_api_Client_Outputs(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_OutputsForAddresses")] - public static extern uint SKY_api_Client_OutputsForAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_api_Client_OutputsForAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_OutputsForHashes")] - public static extern uint SKY_api_Client_OutputsForHashes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_api_Client_OutputsForHashes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CoinSupply")] - public static extern uint SKY_api_Client_CoinSupply(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint SKY_api_Client_CoinSupply(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_BlockByHash")] - public static extern uint SKY_api_Client_BlockByHash(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + public static extern uint SKY_api_Client_BlockByHash(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_BlockBySeq")] - public static extern uint SKY_api_Client_BlockBySeq(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); + public static extern uint SKY_api_Client_BlockBySeq(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Blocks")] - public static extern uint SKY_api_Client_Blocks(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3); + public static extern uint SKY_api_Client_Blocks(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_LastBlocks")] - public static extern uint SKY_api_Client_LastBlocks(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); + public static extern uint SKY_api_Client_LastBlocks(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_BlockchainMetadata")] - public static extern uint SKY_api_Client_BlockchainMetadata(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint SKY_api_Client_BlockchainMetadata(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_BlockchainProgress")] - public static extern uint SKY_api_Client_BlockchainProgress(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint SKY_api_Client_BlockchainProgress(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Balance")] public static extern uint SKY_api_Client_Balance(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_UxOut")] - public static extern uint SKY_api_Client_UxOut(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + public static extern uint SKY_api_Client_UxOut(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_AddressUxOuts")] - public static extern uint SKY_api_Client_AddressUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + public static extern uint SKY_api_Client_AddressUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Wallet")] public static extern uint SKY_api_Client_Wallet(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -720,16 +720,16 @@ static skycoinPINVOKE() { public static extern uint SKY_api_Client_WalletBalance(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Spend")] - public static extern uint SKY_api_Client_Spend(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3, ulong jarg4, string jarg5); + public static extern uint SKY_api_Client_Spend(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3, ulong jarg4, string jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_CreateTransaction")] - public static extern uint SKY_api_Client_CreateTransaction(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint SKY_api_Client_CreateTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_UpdateWallet")] public static extern uint SKY_api_Client_UpdateWallet(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_WalletFolderName")] - public static extern uint SKY_api_Client_WalletFolderName(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint SKY_api_Client_WalletFolderName(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NewSeed")] public static extern uint SKY_api_Client_NewSeed(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -738,49 +738,49 @@ static skycoinPINVOKE() { public static extern uint SKY_api_Client_GetWalletSeed(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkConnection")] - public static extern uint SKY_api_Client_NetworkConnection(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + public static extern uint SKY_api_Client_NetworkConnection(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkConnections")] - public static extern uint SKY_api_Client_NetworkConnections(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint SKY_api_Client_NetworkConnections(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkDefaultConnections")] - public static extern uint SKY_api_Client_NetworkDefaultConnections(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint SKY_api_Client_NetworkDefaultConnections(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkTrustedConnections")] - public static extern uint SKY_api_Client_NetworkTrustedConnections(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint SKY_api_Client_NetworkTrustedConnections(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkExchangeableConnections")] - public static extern uint SKY_api_Client_NetworkExchangeableConnections(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint SKY_api_Client_NetworkExchangeableConnections(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_PendingTransactions")] - public static extern uint SKY_api_Client_PendingTransactions(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint SKY_api_Client_PendingTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Transaction")] - public static extern uint SKY_api_Client_Transaction(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + public static extern uint SKY_api_Client_Transaction(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Transactions")] - public static extern uint SKY_api_Client_Transactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_api_Client_Transactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_ConfirmedTransactions")] - public static extern uint SKY_api_Client_ConfirmedTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_api_Client_ConfirmedTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_UnconfirmedTransactions")] - public static extern uint SKY_api_Client_UnconfirmedTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_api_Client_UnconfirmedTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_InjectTransaction")] public static extern uint SKY_api_Client_InjectTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_ResendUnconfirmedTransactions")] - public static extern uint SKY_api_Client_ResendUnconfirmedTransactions(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint SKY_api_Client_ResendUnconfirmedTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_RawTransaction")] public static extern uint SKY_api_Client_RawTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_AddressTransactions")] - public static extern uint SKY_api_Client_AddressTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + public static extern uint SKY_api_Client_AddressTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Richlist")] - public static extern uint SKY_api_Client_Richlist(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_api_Client_Richlist(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_AddressCount")] public static extern uint SKY_api_Client_AddressCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -789,7 +789,7 @@ static skycoinPINVOKE() { public static extern uint SKY_api_Client_UnloadWallet(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Health")] - public static extern uint SKY_api_Client_Health(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint SKY_api_Client_Health(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_EncryptWallet")] public static extern uint SKY_api_Client_EncryptWallet(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); @@ -834,34 +834,34 @@ static skycoinPINVOKE() { public static extern uint SKY_api_NewWalletResponse(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewCreateTransactionResponse")] - public static extern uint SKY_api_NewCreateTransactionResponse(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_api_NewCreateTransactionResponse(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewCreatedTransaction")] - public static extern uint SKY_api_NewCreatedTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_api_NewCreatedTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_CreatedTransaction_ToTransaction")] - public static extern uint SKY_api_CreatedTransaction_ToTransaction(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint SKY_api_CreatedTransaction_ToTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewCreatedTransactionOutput")] - public static extern uint SKY_api_NewCreatedTransactionOutput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_api_NewCreatedTransactionOutput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewCreatedTransactionInput")] - public static extern uint SKY_api_NewCreatedTransactionInput(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint SKY_api_NewCreatedTransactionInput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewError")] public static extern uint SKY_wallet_NewError(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewWallet")] - public static extern uint SKY_wallet_NewWallet(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_wallet_NewWallet(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Lock")] public static extern uint SKY_wallet_Wallet_Lock(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, string jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Unlock")] - public static extern uint SKY_wallet_Wallet_Unlock(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_wallet_Wallet_Unlock(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Load")] - public static extern uint SKY_wallet_Load(string jarg1); + public static extern uint SKY_wallet_Load(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Wallet_Save")] public static extern uint SKY_wallet_Wallet_Save(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); @@ -915,10 +915,10 @@ static skycoinPINVOKE() { public static extern uint SKY_wallet_ChooseSpendsMaximizeUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_CheckWalletBalance")] - public static extern uint SKY_cli_CheckWalletBalance(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + public static extern uint SKY_cli_CheckWalletBalance(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GetBalanceOfAddresses")] - public static extern uint SKY_cli_GetBalanceOfAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_cli_GetBalanceOfAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewReadableEntry")] public static extern uint SKY_wallet_NewReadableEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -999,13 +999,13 @@ static skycoinPINVOKE() { public static extern uint SKY_base58_Hex2Base58Str(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GenerateWallet")] - public static extern uint SKY_cli_GenerateWallet(string jarg1, ulong jarg3); + public static extern uint SKY_cli_GenerateWallet(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_MakeAlphanumericSeed")] public static extern uint SKY_cli_MakeAlphanumericSeed(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_NewClient")] - public static extern uint SKY_webrpc_NewClient(string jarg1); + public static extern uint SKY_webrpc_NewClient(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_CSRF")] public static extern uint SKY_webrpc_Client_CSRF(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1014,10 +1014,10 @@ static skycoinPINVOKE() { public static extern uint SKY_webrpc_Client_InjectTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetStatus")] - public static extern uint SKY_webrpc_Client_GetStatus(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint SKY_webrpc_Client_GetStatus(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetTransactionByID")] - public static extern uint SKY_webrpc_Client_GetTransactionByID(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + public static extern uint SKY_webrpc_Client_GetTransactionByID(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetAddressUxOuts")] public static extern uint SKY_webrpc_Client_GetAddressUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -1167,13 +1167,13 @@ static skycoinPINVOKE() { public static extern uint SKY_cipher_GenerateKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Create")] - public static extern uint SKY_secp256k1go_Signature_Create(); + public static extern uint SKY_secp256k1go_Signature_Create(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_GetR")] - public static extern uint SKY_secp256k1go_Signature_GetR(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint SKY_secp256k1go_Signature_GetR(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_GetS")] - public static extern uint SKY_secp256k1go_Signature_GetS(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint SKY_secp256k1go_Signature_GetS(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Print")] public static extern uint SKY_secp256k1go_Signature_Print(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); @@ -1203,7 +1203,7 @@ static skycoinPINVOKE() { public static extern uint SKY_cli_Config_GetRPCAddress(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_RPCClientFromApp")] - public static extern uint SKY_cli_RPCClientFromApp(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint SKY_cli_RPCClientFromApp(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Getenv")] public static extern uint SKY_cli_Getenv(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1329,7 +1329,7 @@ static skycoinPINVOKE() { public static extern void SKY_handle_close(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_handle_copy")] - public static extern uint SKY_handle_copy(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint SKY_handle_copy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_logging_EnableColors")] public static extern uint SKY_logging_EnableColors(); @@ -1416,7 +1416,7 @@ static skycoinPINVOKE() { public static extern uint SKY_Handle_Block_GetPreviousBlockHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Blocks_GetAt")] - public static extern uint SKY_Handle_Blocks_GetAt(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); + public static extern uint SKY_Handle_Blocks_GetAt(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_Handle_Blocks_GetCount")] public static extern uint SKY_Handle_Blocks_GetCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1485,7 +1485,7 @@ static skycoinPINVOKE() { public static extern uint SKY_api_Handle_GetBuildInfoData(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ripemd160_New")] - public static extern uint SKY_ripemd160_New(); + public static extern uint SKY_ripemd160_New(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ripemd160_Write")] public static extern uint SKY_ripemd160_Write(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -1494,7 +1494,7 @@ static skycoinPINVOKE() { public static extern uint SKY_ripemd160_Sum(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_Create")] - public static extern uint SKY_secp256k1go_Number_Create(); + public static extern uint SKY_secp256k1go_Number_Create(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_Print")] public static extern uint SKY_secp256k1go_Number_Print(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); @@ -1551,7 +1551,7 @@ static skycoinPINVOKE() { public static extern uint SKY_coin_UxArray_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewAddressUxOuts")] - public static extern uint SKY_coin_NewAddressUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint SKY_coin_NewAddressUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Keys")] public static extern uint SKY_coin_AddressUxOuts_Keys(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1560,10 +1560,10 @@ static skycoinPINVOKE() { public static extern uint SKY_coin_AddressUxOuts_Flatten(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Sub")] - public static extern uint SKY_coin_AddressUxOuts_Sub(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_coin_AddressUxOuts_Sub(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Add")] - public static extern uint SKY_coin_AddressUxOuts_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_coin_AddressUxOuts_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Get")] public static extern uint SKY_coin_AddressUxOuts_Get(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -1587,7 +1587,7 @@ static skycoinPINVOKE() { public static extern uint SKY_encrypt_ScryptChacha20poly1305_Decrypt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_CreateOptionsHandle")] - public static extern uint SKY_wallet_CreateOptionsHandle(string jarg1, string jarg2, string jarg3, byte jarg4, string jarg5, string jarg6, ulong jarg7); + public static extern uint SKY_wallet_CreateOptionsHandle(string jarg1, string jarg2, string jarg3, byte jarg4, string jarg5, string jarg6, ulong jarg7, global::System.Runtime.InteropServices.HandleRef jarg8); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_AddPrivateKey")] public static extern uint SKY_cli_AddPrivateKey(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); @@ -1671,7 +1671,7 @@ static skycoinPINVOKE() { public static extern uint SKY_fee_TransactionFee(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_LoadConfig")] - public static extern uint SKY_cli_LoadConfig(); + public static extern uint SKY_cli_LoadConfig(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Config_FullWalletPath")] public static extern uint SKY_cli_Config_FullWalletPath(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1683,10 +1683,10 @@ static skycoinPINVOKE() { public static extern uint SKY_cli_NewApp(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_RPCClientFromContext")] - public static extern uint SKY_cli_RPCClientFromContext(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint SKY_cli_RPCClientFromContext(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_ConfigFromContext")] - public static extern uint SKY_cli_ConfigFromContext(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint SKY_cli_ConfigFromContext(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_PasswordFromBytes_Password")] public static extern uint SKY_cli_PasswordFromBytes_Password(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1695,16 +1695,16 @@ static skycoinPINVOKE() { public static extern uint SKY_cli_PasswordFromTerm_Password(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_CreateRawTxFromWallet")] - public static extern uint SKY_cli_CreateRawTxFromWallet(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); + public static extern uint SKY_cli_CreateRawTxFromWallet(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_CreateRawTxFromAddress")] - public static extern uint SKY_cli_CreateRawTxFromAddress(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3, string jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); + public static extern uint SKY_cli_CreateRawTxFromAddress(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3, string jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, global::System.Runtime.InteropServices.HandleRef jarg7); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_CreateRawTx")] - public static extern uint SKY_cli_CreateRawTx(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, string jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); + public static extern uint SKY_cli_CreateRawTx(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, string jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6, global::System.Runtime.InteropServices.HandleRef jarg7); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_NewTransaction")] - public static extern uint SKY_cli_NewTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_cli_NewTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_file_InitDataDir")] public static extern uint SKY_file_InitDataDir(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1722,7 +1722,7 @@ static skycoinPINVOKE() { public static extern uint SKY_cli_GetWalletOutputsFromFile(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GetWalletOutputs")] - public static extern uint SKY_cli_GetWalletOutputs(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_cli_GetWalletOutputs(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_testutil_MakeAddress")] public static extern uint SKY_testutil_MakeAddress(global::System.Runtime.InteropServices.HandleRef jarg1); @@ -1821,10 +1821,10 @@ static skycoinPINVOKE() { public static extern uint SKY_cipher_SHA256_Null(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Create_Transaction")] - public static extern uint SKY_coin_Create_Transaction(); + public static extern uint SKY_coin_Create_Transaction(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Copy")] - public static extern uint SKY_coin_Transaction_Copy(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint SKY_coin_Transaction_Copy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetTransactionObject")] public static extern uint SKY_coin_GetTransactionObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1911,13 +1911,13 @@ static skycoinPINVOKE() { public static extern uint SKY_coin_Transaction_Serialize(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_TransactionDeserialize")] - public static extern uint SKY_coin_TransactionDeserialize(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint SKY_coin_TransactionDeserialize(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_OutputHours")] public static extern uint SKY_coin_Transaction_OutputHours(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Create_Transactions")] - public static extern uint SKY_coin_Create_Transactions(); + public static extern uint SKY_coin_Create_Transactions(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetTransactionsObject")] public static extern uint SKY_coin_GetTransactionsObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1932,7 +1932,7 @@ static skycoinPINVOKE() { public static extern uint SKY_coin_Transactions_Fees(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_GetAt")] - public static extern uint SKY_coin_Transactions_GetAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); + public static extern uint SKY_coin_Transactions_GetAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Hashes")] public static extern uint SKY_coin_Transactions_Hashes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1941,13 +1941,13 @@ static skycoinPINVOKE() { public static extern uint SKY_coin_Transactions_Size(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_TruncateBytesTo")] - public static extern uint SKY_coin_Transactions_TruncateBytesTo(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); + public static extern uint SKY_coin_Transactions_TruncateBytesTo(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SortTransactions")] - public static extern uint SKY_coin_SortTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_coin_SortTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewSortableTransactions")] - public static extern uint SKY_coin_NewSortableTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_coin_NewSortableTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SortableTransactions_Sort")] public static extern uint SKY_coin_SortableTransactions_Sort(global::System.Runtime.InteropServices.HandleRef jarg1); diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index 81af3049..497f58a2 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -381,158 +381,6 @@ static cipher_SecKey cipher_SecKeyp_value(cipher_SecKey *obj) { return *obj; } - - typedef GoInt64_ Handle; -/** - * Memory handle for internal object retrieving password to read - * encrypted wallets. - */ -typedef Handle PasswordReader__Handle; - -/** - * Memory handle to perform Skycoin RPC API calls - * encrypted wallets. - */ -typedef Handle WebRpcClient__Handle; - -/** - * Memory handle providing access to wallet data - */ -typedef Handle Wallet__Handle; - -/** - * Memory handle Options Handle -*/ -typedef Handle Options__Handle; - -/** - * Memory handle to access to Skycoin CLI configuration - */ -typedef Handle Config__Handle; -/** - * Memory handle to access to coin.Transaction - */ -typedef Handle Transaction__Handle; - -/** - * Memory handle to access to coin.Transactions - */ -typedef Handle Transactions__Handle; - -/** - * Memory handle to access to api.CreatedTransaction - */ -typedef Handle CreatedTransaction__Handle; - -/** - * Memory handle to access to api.CreatedTransactionOutput - */ -typedef Handle CreatedTransactionOutput__Handle; - -/** - * Memory handle to access to api.CreatedTransactionInput - */ -typedef Handle CreatedTransactionInput__Handle; - -/** - * Memory handle to access to api.CreateTransactionResponse - */ -typedef Handle CreateTransactionResponse__Handle; - -/** - * Memory handle to access to coin.Block - */ -typedef Handle Block__Handle; - -/** - * Memory handle to access to coin.SignedBlock - */ -typedef Handle SignedBlock__Handle; - -/** - * Memory handle to access to coin.BlockBody - */ -typedef Handle BlockBody__Handle; - -/** - * Memory handle to access to cli.BalanceResult - */ - -typedef Handle BalanceResult_Handle; - - -/** - * Memory handle to access to api.SpendResult - */ - -typedef Handle SpendResult_Handle; - -/** - * Memory handle to access to coin.Transactions - */ - -typedef Handle TransactionResult_Handle; - -/** - * Memory handle to access to coin.SortableTransactions - */ - -typedef Handle SortableTransactionResult_Handle; - -/** - * Memory handle to access to wallet.Notes - */ - - -/** - * Memory handle to access to wallet.ReadableNotes - */ - -typedef Handle WalletReadableNotes_Handle; - -/** - * Memory handle to access to webrpc.OutputsResult - */ - -typedef Handle OutputsResult_Handle; - -/** - * Memory handle to access to webrpc.StatusResult - */ - -typedef Handle StatusResult_Handle; - -/** - * Memory handle to access to coin.AddressUxOuts - */ - -typedef Handle AddressUxOuts_Handle; - -/** - * Memory handle to access to visor.BuildInfo (BuildInfo) - */ - -typedef Handle BuildInfo_Handle; - -/** - * Memory handle for hash (ripemd160.digest) - */ - -typedef Handle Hash_Handle; - -/** -* Handle for Number type -*/ - -typedef Handle Number_Handle; - -/** -* Handle for Signature type -*/ - -typedef Handle Signature_Handle; - - SWIGINTERN int cipher_PubKey_isEqual(cipher_PubKey *self,cipher_PubKey *a){ return memcmp(self->data, a->data, sizeof(a->data)) == 0; } @@ -2175,7 +2023,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_GoSlice(void * jarg1) { } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock(void * jarg1, unsigned long long jarg2, cipher_SecKey* jarg3, void * jarg4, void * jarg5) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock(void * jarg1, unsigned long long jarg2, cipher_SecKey* jarg3, void * jarg4, void * jarg5, void * jarg6) { unsigned int jresult ; Block__Handle arg1 ; GoUint64 arg2 ; @@ -2183,12 +2031,8 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock(void * jarg Transactions__Handle arg4 ; FeeCalculator *arg5 = (FeeCalculator *) 0 ; Block__Handle *arg6 = (Block__Handle *) 0 ; - Handle temp6 ; GoUint32 result; - { - arg6 = &temp6; - } { jarg1 = (long*)&arg1; } @@ -2198,6 +2042,9 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock(void * jarg jarg4 = (long*)&arg4; } arg5 = (FeeCalculator *)jarg5; + { + jarg6 = (long*)&arg6; + } result = (GoUint32)SKY_coin_NewBlock(arg1,arg2,(GoUint8_ (*)[32])arg3,arg4,arg5,arg6); jresult = result; return jresult; @@ -2218,21 +2065,20 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SignedBlock_VerifySi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewGenesisBlock(void * jarg1, unsigned long long jarg2, unsigned long long jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewGenesisBlock(void * jarg1, unsigned long long jarg2, unsigned long long jarg3, void * jarg4) { unsigned int jresult ; cipher__Address *arg1 = (cipher__Address *) 0 ; GoUint64 arg2 ; GoUint64 arg3 ; Block__Handle *arg4 = (Block__Handle *) 0 ; - Handle temp4 ; GoUint32 result; - { - arg4 = &temp4; - } arg1 = (cipher__Address *)jarg1; arg2 = (GoUint64)jarg2; arg3 = (GoUint64)jarg3; + { + jarg4 = (long*)&arg4; + } result = (GoUint32)SKY_coin_NewGenesisBlock(arg1,arg2,arg3,arg4); jresult = result; return jresult; @@ -2351,22 +2197,21 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_String(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_GetTransaction(void * jarg1, cipher_SecKey* jarg2, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_GetTransaction(void * jarg1, cipher_SecKey* jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; Block__Handle arg1 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; Transaction__Handle *arg3 = (Transaction__Handle *) 0 ; GoUint8 *arg4 = (GoUint8 *) 0 ; - Handle temp3 ; GoUint32 result; - { - arg3 = &temp3; - } { jarg1 = (long*)&arg1; } arg2 = (cipher__SHA256 *)jarg2; + { + jarg3 = (long*)&arg3; + } arg4 = (GoUint8 *)jarg4; result = (GoUint32)SKY_coin_Block_GetTransaction(arg1,(GoUint8_ (*)[32])arg2,arg3,arg4); jresult = result; @@ -2456,15 +2301,14 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Hash(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Size(void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Size(void * jarg1, void * jarg2) { unsigned int jresult ; BlockBody__Handle *arg1 = (BlockBody__Handle *) 0 ; GoInt *arg2 = (GoInt *) 0 ; - Handle temp1 ; GoUint32 result; { - arg1 = &temp1; + jarg1 = (long*)&arg1; } arg2 = (GoInt *)jarg2; result = (GoUint32)SKY_coin_BlockBody_Size(arg1,arg2); @@ -2543,18 +2387,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetBlockObject(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetBlockBody(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetBlockBody(void * jarg1, void * jarg2) { unsigned int jresult ; Block__Handle arg1 ; BlockBody__Handle *arg2 = (BlockBody__Handle *) 0 ; - Handle temp2 ; GoUint32 result; { - arg2 = &temp2; + jarg1 = (long*)&arg1; } { - jarg1 = (long*)&arg1; + jarg2 = (long*)&arg2; } result = (GoUint32)SKY_coin_GetBlockBody(arg1,arg2); jresult = result; @@ -2562,18 +2405,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetBlockBody(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewEmptyBlock(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewEmptyBlock(void * jarg1, void * jarg2) { unsigned int jresult ; Transactions__Handle arg1 ; Block__Handle *arg2 = (Block__Handle *) 0 ; - Handle temp2 ; GoUint32 result; { - arg2 = &temp2; + jarg1 = (long*)&arg1; } { - jarg1 = (long*)&arg1; + jarg2 = (long*)&arg2; } result = (GoUint32)SKY_coin_NewEmptyBlock(arg1,arg2); jresult = result; @@ -2662,7 +2504,9 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewClient(char* jarg1 GoUint32 result; (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); - arg2 = (Client__Handle *)jarg2; + { + jarg2 = (long*)&arg2; + } result = (GoUint32)SKY_api_NewClient(arg1,arg2); jresult = result; return jresult; @@ -2685,18 +2529,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CSRF(void * ja } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Version(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Version(void * jarg1, void * jarg2) { unsigned int jresult ; Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; GoUint32 result; { - arg2 = &temp2; + jarg1 = (long*)&arg1; } { - jarg1 = (long*)&arg1; + jarg2 = (long*)&arg2; } result = (GoUint32)SKY_api_Client_Version(arg1,arg2); jresult = result; @@ -2704,18 +2547,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Version(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Outputs(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Outputs(void * jarg1, void * jarg2) { unsigned int jresult ; Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; GoUint32 result; { - arg2 = &temp2; + jarg1 = (long*)&arg1; } { - jarg1 = (long*)&arg1; + jarg2 = (long*)&arg2; } result = (GoUint32)SKY_api_Client_Outputs(arg1,arg2); jresult = result; @@ -2723,18 +2565,14 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Outputs(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_OutputsForAddresses(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_OutputsForAddresses(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; Client__Handle arg1 ; GoSlice arg2 ; Handle *arg3 = (Handle *) 0 ; GoSlice *argp2 ; - Handle temp3 ; GoUint32 result; - { - arg3 = &temp3; - } { jarg1 = (long*)&arg1; } @@ -2744,24 +2582,23 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_OutputsForAddr return 0; } arg2 = *argp2; + { + jarg3 = (long*)&arg3; + } result = (GoUint32)SKY_api_Client_OutputsForAddresses(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_OutputsForHashes(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_OutputsForHashes(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; Client__Handle arg1 ; GoSlice arg2 ; Handle *arg3 = (Handle *) 0 ; GoSlice *argp2 ; - Handle temp3 ; GoUint32 result; - { - arg3 = &temp3; - } { jarg1 = (long*)&arg1; } @@ -2771,24 +2608,26 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_OutputsForHash return 0; } arg2 = *argp2; + { + jarg3 = (long*)&arg3; + } result = (GoUint32)SKY_api_Client_OutputsForHashes(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CoinSupply(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CoinSupply(void * jarg1, void * jarg2) { unsigned int jresult ; Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; GoUint32 result; { - arg2 = &temp2; + jarg1 = (long*)&arg1; } { - jarg1 = (long*)&arg1; + jarg2 = (long*)&arg2; } result = (GoUint32)SKY_api_Client_CoinSupply(arg1,arg2); jresult = result; @@ -2796,104 +2635,99 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CoinSupply(voi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockByHash(void * jarg1, char* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockByHash(void * jarg1, char* jarg2, void * jarg3) { unsigned int jresult ; Client__Handle arg1 ; GoString arg2 ; Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; GoUint32 result; - { - arg3 = &temp3; - } { jarg1 = (long*)&arg1; } (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); + { + jarg3 = (long*)&arg3; + } result = (GoUint32)SKY_api_Client_BlockByHash(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockBySeq(void * jarg1, unsigned long long jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockBySeq(void * jarg1, unsigned long long jarg2, void * jarg3) { unsigned int jresult ; Client__Handle arg1 ; GoUint64 arg2 ; Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; GoUint32 result; - { - arg3 = &temp3; - } { jarg1 = (long*)&arg1; } arg2 = (GoUint64)jarg2; + { + jarg3 = (long*)&arg3; + } result = (GoUint32)SKY_api_Client_BlockBySeq(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Blocks(void * jarg1, unsigned long long jarg2, unsigned long long jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Blocks(void * jarg1, unsigned long long jarg2, unsigned long long jarg3, void * jarg4) { unsigned int jresult ; Client__Handle arg1 ; GoUint64 arg2 ; GoUint64 arg3 ; Handle *arg4 = (Handle *) 0 ; - Handle temp4 ; GoUint32 result; - { - arg4 = &temp4; - } { jarg1 = (long*)&arg1; } arg2 = (GoUint64)jarg2; arg3 = (GoUint64)jarg3; + { + jarg4 = (long*)&arg4; + } result = (GoUint32)SKY_api_Client_Blocks(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_LastBlocks(void * jarg1, unsigned long long jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_LastBlocks(void * jarg1, unsigned long long jarg2, void * jarg3) { unsigned int jresult ; Client__Handle arg1 ; GoUint64 arg2 ; Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; GoUint32 result; - { - arg3 = &temp3; - } { jarg1 = (long*)&arg1; } arg2 = (GoUint64)jarg2; + { + jarg3 = (long*)&arg3; + } result = (GoUint32)SKY_api_Client_LastBlocks(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockchainMetadata(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockchainMetadata(void * jarg1, void * jarg2) { unsigned int jresult ; Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; GoUint32 result; { - arg2 = &temp2; + jarg1 = (long*)&arg1; } { - jarg1 = (long*)&arg1; + jarg2 = (long*)&arg2; } result = (GoUint32)SKY_api_Client_BlockchainMetadata(arg1,arg2); jresult = result; @@ -2901,18 +2735,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockchainMeta } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockchainProgress(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockchainProgress(void * jarg1, void * jarg2) { unsigned int jresult ; Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; GoUint32 result; { - arg2 = &temp2; + jarg1 = (long*)&arg1; } { - jarg1 = (long*)&arg1; + jarg2 = (long*)&arg2; } result = (GoUint32)SKY_api_Client_BlockchainProgress(arg1,arg2); jresult = result; @@ -2944,42 +2777,40 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Balance(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UxOut(void * jarg1, char* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UxOut(void * jarg1, char* jarg2, void * jarg3) { unsigned int jresult ; Client__Handle arg1 ; GoString arg2 ; Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; GoUint32 result; - { - arg3 = &temp3; - } { jarg1 = (long*)&arg1; } (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); + { + jarg3 = (long*)&arg3; + } result = (GoUint32)SKY_api_Client_UxOut(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressUxOuts(void * jarg1, char* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressUxOuts(void * jarg1, char* jarg2, void * jarg3) { unsigned int jresult ; Client__Handle arg1 ; GoString arg2 ; Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; GoUint32 result; - { - arg3 = &temp3; - } { jarg1 = (long*)&arg1; } (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); + { + jarg3 = (long*)&arg3; + } result = (GoUint32)SKY_api_Client_AddressUxOuts(arg1,arg2,arg3); jresult = result; return jresult; @@ -2997,7 +2828,9 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Wallet(void * jarg1 = (long*)&arg1; } (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); - arg3 = (WalletResponse__Handle *)jarg3; + { + jarg3 = (long*)&arg3; + } result = (GoUint32)SKY_api_Client_Wallet(arg1,arg2,arg3); jresult = result; return jresult; @@ -3013,7 +2846,9 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Wallets(void * { jarg1 = (long*)&arg1; } - arg2 = (Wallets__Handle *)jarg2; + { + jarg2 = (long*)&arg2; + } result = (GoUint32)SKY_api_Client_Wallets(arg1,arg2); jresult = result; return jresult; @@ -3035,7 +2870,9 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateUnencryp (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); (&arg3)->p=jarg3;(&arg3)->n=strlen(jarg3); arg4 = (GoInt)jarg4; - arg5 = (WalletResponse__Handle *)jarg5; + { + jarg5 = (long*)&arg5; + } result = (GoUint32)SKY_api_Client_CreateUnencryptedWallet(arg1,arg2,arg3,arg4,arg5); jresult = result; return jresult; @@ -3059,7 +2896,9 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateEncrypte (&arg3)->p=jarg3;(&arg3)->n=strlen(jarg3); (&arg4)->p=jarg4;(&arg4)->n=strlen(jarg4); arg5 = (GoInt)jarg5; - arg6 = (WalletResponse__Handle *)jarg6; + { + jarg6 = (long*)&arg6; + } result = (GoUint32)SKY_api_Client_CreateEncryptedWallet(arg1,arg2,arg3,arg4,arg5,arg6); jresult = result; return jresult; @@ -3081,7 +2920,9 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NewWalletAddre (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); arg3 = (GoInt)jarg3; (&arg4)->p=jarg4;(&arg4)->n=strlen(jarg4); - arg5 = (Strings__Handle *)jarg5; + { + jarg5 = (long*)&arg5; + } result = (GoUint32)SKY_api_Client_NewWalletAddress(arg1,arg2,arg3,arg4,arg5); jresult = result; return jresult; @@ -3106,7 +2947,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_WalletBalance( } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Spend(void * jarg1, char* jarg2, char* jarg3, unsigned long long jarg4, char* jarg5) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Spend(void * jarg1, char* jarg2, char* jarg3, unsigned long long jarg4, char* jarg5, void * jarg6) { unsigned int jresult ; Client__Handle arg1 ; GoString arg2 ; @@ -3114,12 +2955,8 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Spend(void * j GoUint64 arg4 ; GoString arg5 ; SpendResult_Handle *arg6 = (SpendResult_Handle *) 0 ; - Handle temp6 ; GoUint32 result; - { - arg6 = &temp6; - } { jarg1 = (long*)&arg1; } @@ -3127,29 +2964,28 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Spend(void * j (&arg3)->p=jarg3;(&arg3)->n=strlen(jarg3); arg4 = (GoUint64)jarg4; (&arg5)->p=jarg5;(&arg5)->n=strlen(jarg5); + arg6 = (SpendResult_Handle *)jarg6; result = (GoUint32)SKY_api_Client_Spend(arg1,arg2,arg3,arg4,arg5,arg6); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateTransaction(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateTransaction(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; CreateTransactionResponse__Handle *arg3 = (CreateTransactionResponse__Handle *) 0 ; - Handle temp2 ; - Handle temp3 ; GoUint32 result; { - arg2 = &temp2; + jarg1 = (long*)&arg1; } { - arg3 = &temp3; + jarg2 = (long*)&arg2; } { - jarg1 = (long*)&arg1; + jarg3 = (long*)&arg3; } result = (GoUint32)SKY_api_Client_CreateTransaction(arg1,arg2,arg3); jresult = result; @@ -3175,18 +3011,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UpdateWallet(v } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_WalletFolderName(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_WalletFolderName(void * jarg1, void * jarg2) { unsigned int jresult ; Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; GoUint32 result; { - arg2 = &temp2; + jarg1 = (long*)&arg1; } { - jarg1 = (long*)&arg1; + jarg2 = (long*)&arg2; } result = (GoUint32)SKY_api_Client_WalletFolderName(arg1,arg2); jresult = result; @@ -3232,39 +3067,37 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_GetWalletSeed( } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkConnection(void * jarg1, char* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkConnection(void * jarg1, char* jarg2, void * jarg3) { unsigned int jresult ; Client__Handle arg1 ; GoString arg2 ; Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; GoUint32 result; - { - arg3 = &temp3; - } { jarg1 = (long*)&arg1; } (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); + { + jarg3 = (long*)&arg3; + } result = (GoUint32)SKY_api_Client_NetworkConnection(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkConnections(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkConnections(void * jarg1, void * jarg2) { unsigned int jresult ; Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; GoUint32 result; { - arg2 = &temp2; + jarg1 = (long*)&arg1; } { - jarg1 = (long*)&arg1; + jarg2 = (long*)&arg2; } result = (GoUint32)SKY_api_Client_NetworkConnections(arg1,arg2); jresult = result; @@ -3272,18 +3105,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkConnect } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkDefaultConnections(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkDefaultConnections(void * jarg1, void * jarg2) { unsigned int jresult ; Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; GoUint32 result; { - arg2 = &temp2; + jarg1 = (long*)&arg1; } { - jarg1 = (long*)&arg1; + jarg2 = (long*)&arg2; } result = (GoUint32)SKY_api_Client_NetworkDefaultConnections(arg1,arg2); jresult = result; @@ -3291,18 +3123,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkDefault } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkTrustedConnections(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkTrustedConnections(void * jarg1, void * jarg2) { unsigned int jresult ; Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; GoUint32 result; { - arg2 = &temp2; + jarg1 = (long*)&arg1; } { - jarg1 = (long*)&arg1; + jarg2 = (long*)&arg2; } result = (GoUint32)SKY_api_Client_NetworkTrustedConnections(arg1,arg2); jresult = result; @@ -3310,18 +3141,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkTrusted } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkExchangeableConnections(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkExchangeableConnections(void * jarg1, void * jarg2) { unsigned int jresult ; Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; GoUint32 result; { - arg2 = &temp2; + jarg1 = (long*)&arg1; } { - jarg1 = (long*)&arg1; + jarg2 = (long*)&arg2; } result = (GoUint32)SKY_api_Client_NetworkExchangeableConnections(arg1,arg2); jresult = result; @@ -3329,18 +3159,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkExchang } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_PendingTransactions(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_PendingTransactions(void * jarg1, void * jarg2) { unsigned int jresult ; Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; GoUint32 result; { - arg2 = &temp2; + jarg1 = (long*)&arg1; } { - jarg1 = (long*)&arg1; + jarg2 = (long*)&arg2; } result = (GoUint32)SKY_api_Client_PendingTransactions(arg1,arg2); jresult = result; @@ -3348,39 +3177,34 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_PendingTransac } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Transaction(void * jarg1, char* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Transaction(void * jarg1, char* jarg2, void * jarg3) { unsigned int jresult ; Client__Handle arg1 ; GoString arg2 ; Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; GoUint32 result; - { - arg3 = &temp3; - } { jarg1 = (long*)&arg1; } (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); + { + jarg3 = (long*)&arg3; + } result = (GoUint32)SKY_api_Client_Transaction(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Transactions(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Transactions(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; Client__Handle arg1 ; GoSlice arg2 ; Handle *arg3 = (Handle *) 0 ; GoSlice *argp2 ; - Handle temp3 ; GoUint32 result; - { - arg3 = &temp3; - } { jarg1 = (long*)&arg1; } @@ -3390,24 +3214,23 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Transactions(v return 0; } arg2 = *argp2; + { + jarg3 = (long*)&arg3; + } result = (GoUint32)SKY_api_Client_Transactions(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_ConfirmedTransactions(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_ConfirmedTransactions(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; Client__Handle arg1 ; GoSlice arg2 ; Handle *arg3 = (Handle *) 0 ; GoSlice *argp2 ; - Handle temp3 ; GoUint32 result; - { - arg3 = &temp3; - } { jarg1 = (long*)&arg1; } @@ -3417,24 +3240,23 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_ConfirmedTrans return 0; } arg2 = *argp2; + { + jarg3 = (long*)&arg3; + } result = (GoUint32)SKY_api_Client_ConfirmedTransactions(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UnconfirmedTransactions(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UnconfirmedTransactions(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; Client__Handle arg1 ; GoSlice arg2 ; Handle *arg3 = (Handle *) 0 ; GoSlice *argp2 ; - Handle temp3 ; GoUint32 result; - { - arg3 = &temp3; - } { jarg1 = (long*)&arg1; } @@ -3444,6 +3266,9 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UnconfirmedTra return 0; } arg2 = *argp2; + { + jarg3 = (long*)&arg3; + } result = (GoUint32)SKY_api_Client_UnconfirmedTransactions(arg1,arg2,arg3); jresult = result; return jresult; @@ -3470,18 +3295,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_InjectTransact } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_ResendUnconfirmedTransactions(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_ResendUnconfirmedTransactions(void * jarg1, void * jarg2) { unsigned int jresult ; Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; GoUint32 result; { - arg2 = &temp2; + jarg1 = (long*)&arg1; } { - jarg1 = (long*)&arg1; + jarg2 = (long*)&arg2; } result = (GoUint32)SKY_api_Client_ResendUnconfirmedTransactions(arg1,arg2); jresult = result; @@ -3507,42 +3331,40 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_RawTransaction } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressTransactions(void * jarg1, char* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressTransactions(void * jarg1, char* jarg2, void * jarg3) { unsigned int jresult ; Client__Handle arg1 ; GoString arg2 ; Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; GoUint32 result; - { - arg3 = &temp3; - } { jarg1 = (long*)&arg1; } (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); + { + jarg3 = (long*)&arg3; + } result = (GoUint32)SKY_api_Client_AddressTransactions(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Richlist(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Richlist(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; Client__Handle arg1 ; api__RichlistParams *arg2 = (api__RichlistParams *) 0 ; Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; GoUint32 result; - { - arg3 = &temp3; - } { jarg1 = (long*)&arg1; } arg2 = (api__RichlistParams *)jarg2; + { + jarg3 = (long*)&arg3; + } result = (GoUint32)SKY_api_Client_Richlist(arg1,arg2,arg3); jresult = result; return jresult; @@ -3581,18 +3403,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UnloadWallet(v } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Health(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Health(void * jarg1, void * jarg2) { unsigned int jresult ; Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; GoUint32 result; { - arg2 = &temp2; + jarg1 = (long*)&arg1; } { - jarg1 = (long*)&arg1; + jarg2 = (long*)&arg2; } result = (GoUint32)SKY_api_Client_Health(arg1,arg2); jresult = result; @@ -3613,7 +3434,9 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_EncryptWallet( } (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); (&arg3)->p=jarg3;(&arg3)->n=strlen(jarg3); - arg4 = (WalletResponse__Handle *)jarg4; + { + jarg4 = (long*)&arg4; + } result = (GoUint32)SKY_api_Client_EncryptWallet(arg1,arg2,arg3,arg4); jresult = result; return jresult; @@ -3633,7 +3456,9 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_DecryptWallet( } (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); (&arg3)->p=jarg3;(&arg3)->n=strlen(jarg3); - arg4 = (WalletResponse__Handle *)jarg4; + { + jarg4 = (long*)&arg4; + } result = (GoUint32)SKY_api_Client_DecryptWallet(arg1,arg2,arg3,arg4); jresult = result; return jresult; @@ -3815,25 +3640,23 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewWalletResponse(voi { jarg1 = (long*)&arg1; } - arg2 = (WalletResponse__Handle *)jarg2; + { + jarg2 = (long*)&arg2; + } result = (GoUint32)SKY_api_NewWalletResponse(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreateTransactionResponse(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreateTransactionResponse(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; Transaction__Handle arg1 ; GoSlice arg2 ; CreateTransactionResponse__Handle *arg3 = (CreateTransactionResponse__Handle *) 0 ; GoSlice *argp2 ; - Handle temp3 ; GoUint32 result; - { - arg3 = &temp3; - } { jarg1 = (long*)&arg1; } @@ -3843,24 +3666,23 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreateTransactionR return 0; } arg2 = *argp2; + { + jarg3 = (long*)&arg3; + } result = (GoUint32)SKY_api_NewCreateTransactionResponse(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreatedTransaction(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreatedTransaction(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; Transaction__Handle arg1 ; GoSlice arg2 ; CreatedTransaction__Handle *arg3 = (CreatedTransaction__Handle *) 0 ; GoSlice *argp2 ; - Handle temp3 ; GoUint32 result; - { - arg3 = &temp3; - } { jarg1 = (long*)&arg1; } @@ -3870,24 +3692,26 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreatedTransaction return 0; } arg2 = *argp2; + { + jarg3 = (long*)&arg3; + } result = (GoUint32)SKY_api_NewCreatedTransaction(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_CreatedTransaction_ToTransaction(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_CreatedTransaction_ToTransaction(void * jarg1, void * jarg2) { unsigned int jresult ; CreatedTransaction__Handle arg1 ; Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; - Handle temp2 ; GoUint32 result; { - arg2 = &temp2; + jarg1 = (long*)&arg1; } { - jarg1 = (long*)&arg1; + jarg2 = (long*)&arg2; } result = (GoUint32)SKY_api_CreatedTransaction_ToTransaction(arg1,arg2); jresult = result; @@ -3895,36 +3719,34 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_CreatedTransaction_To } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreatedTransactionOutput(void * jarg1, cipher_SecKey* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreatedTransactionOutput(void * jarg1, cipher_SecKey* jarg2, void * jarg3) { unsigned int jresult ; coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; CreatedTransactionOutput__Handle *arg3 = (CreatedTransactionOutput__Handle *) 0 ; - Handle temp3 ; GoUint32 result; - { - arg3 = &temp3; - } arg1 = (coin__TransactionOutput *)jarg1; arg2 = (cipher__SHA256 *)jarg2; + { + jarg3 = (long*)&arg3; + } result = (GoUint32)SKY_api_NewCreatedTransactionOutput(arg1,(GoUint8_ (*)[32])arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreatedTransactionInput(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreatedTransactionInput(void * jarg1, void * jarg2) { unsigned int jresult ; wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; CreatedTransactionInput__Handle *arg2 = (CreatedTransactionInput__Handle *) 0 ; - Handle temp2 ; GoUint32 result; + arg1 = (wallet__UxBalance *)jarg1; { - arg2 = &temp2; + jarg2 = (long*)&arg2; } - arg1 = (wallet__UxBalance *)jarg1; result = (GoUint32)SKY_api_NewCreatedTransactionInput(arg1,arg2); jresult = result; return jresult; @@ -3949,21 +3771,20 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewError(void * ja } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewWallet(char* jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewWallet(char* jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; GoString arg1 ; Options__Handle arg2 ; Wallet__Handle *arg3 = (Wallet__Handle *) 0 ; - Handle temp3 ; GoUint32 result; - { - arg3 = &temp3; - } (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); { jarg2 = (long*)&arg2; } + { + jarg3 = (long*)&arg3; + } result = (GoUint32)SKY_wallet_NewWallet(arg1,arg2,arg3); jresult = result; return jresult; @@ -3994,18 +3815,14 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Lock(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Unlock(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Unlock(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; Wallet__Handle arg1 ; GoSlice arg2 ; Wallet__Handle *arg3 = (Wallet__Handle *) 0 ; GoSlice *argp2 ; - Handle temp3 ; GoUint32 result; - { - arg3 = &temp3; - } { jarg1 = (long*)&arg1; } @@ -4015,23 +3832,25 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Unlock(void return 0; } arg2 = *argp2; + { + jarg3 = (long*)&arg3; + } result = (GoUint32)SKY_wallet_Wallet_Unlock(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Load(char* jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Load(char* jarg1, void * jarg2) { unsigned int jresult ; GoString arg1 ; Wallet__Handle *arg2 = (Wallet__Handle *) 0 ; - Handle temp2 ; GoUint32 result; + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); { - arg2 = &temp2; + jarg2 = (long*)&arg2; } - (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); result = (GoUint32)SKY_wallet_Load(arg1,arg2); jresult = result; return jresult; @@ -4342,39 +4161,32 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ChooseSpendsMaximi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CheckWalletBalance(void * jarg1, char* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CheckWalletBalance(void * jarg1, char* jarg2, void * jarg3) { unsigned int jresult ; WebRpcClient__Handle arg1 ; GoString arg2 ; BalanceResult_Handle *arg3 = (BalanceResult_Handle *) 0 ; - Handle temp3 ; GoUint32 result; - { - arg3 = &temp3; - } { jarg1 = (long*)&arg1; } (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); + arg3 = (BalanceResult_Handle *)jarg3; result = (GoUint32)SKY_cli_CheckWalletBalance(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetBalanceOfAddresses(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetBalanceOfAddresses(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; WebRpcClient__Handle arg1 ; GoSlice arg2 ; BalanceResult_Handle *arg3 = (BalanceResult_Handle *) 0 ; GoSlice *argp2 ; - Handle temp3 ; GoUint32 result; - { - arg3 = &temp3; - } { jarg1 = (long*)&arg1; } @@ -4384,6 +4196,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetBalanceOfAddresses return 0; } arg2 = *argp2; + arg3 = (BalanceResult_Handle *)jarg3; result = (GoUint32)SKY_cli_GetBalanceOfAddresses(arg1,arg2,arg3); jresult = result; return jresult; @@ -4397,7 +4210,9 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewReadableEntry(v GoUint32 result; arg1 = (wallet__Entry *)jarg1; - arg2 = (ReadableEntry__Handle *)jarg2; + { + jarg2 = (long*)&arg2; + } result = (GoUint32)SKY_wallet_NewReadableEntry(arg1,arg2); jresult = result; return jresult; @@ -4411,7 +4226,9 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_LoadReadableEntry( GoUint32 result; (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); - arg2 = (ReadableEntry__Handle *)jarg2; + { + jarg2 = (long*)&arg2; + } result = (GoUint32)SKY_wallet_LoadReadableEntry(arg1,arg2); jresult = result; return jresult; @@ -4425,7 +4242,9 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewReadableEntryFr GoUint32 result; (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); - arg2 = (ReadableEntry__Handle *)jarg2; + { + jarg2 = (long*)&arg2; + } result = (GoUint32)SKY_wallet_NewReadableEntryFromPubkey(arg1,arg2); jresult = result; return jresult; @@ -4455,7 +4274,9 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_LoadReadableWallet GoUint32 result; (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); - arg2 = (ReadableWallet__Handle *)jarg2; + { + jarg2 = (long*)&arg2; + } result = (GoUint32)SKY_wallet_LoadReadableWallet(arg1,arg2); jresult = result; return jresult; @@ -4862,24 +4683,22 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Hex2Base58Str(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GenerateWallet(char* jarg1, unsigned long long jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GenerateWallet(char* jarg1, void * jarg2, unsigned long long jarg3, void * jarg4) { unsigned int jresult ; GoString arg1 ; Options__Handle *arg2 = (Options__Handle *) 0 ; GoUint64 arg3 ; Wallet__Handle *arg4 = (Wallet__Handle *) 0 ; - Handle temp2 ; - Handle temp4 ; GoUint32 result; + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); { - arg2 = &temp2; + jarg2 = (long*)&arg2; } + arg3 = (GoUint64)jarg3; { - arg4 = &temp4; + jarg4 = (long*)&arg4; } - (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); - arg3 = (GoUint64)jarg3; result = (GoUint32)SKY_cli_GenerateWallet(arg1,arg2,arg3,arg4); jresult = result; return jresult; @@ -4898,17 +4717,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_MakeAlphanumericSeed( } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_NewClient(char* jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_NewClient(char* jarg1, void * jarg2) { unsigned int jresult ; GoString arg1 ; WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; - Handle temp2 ; GoUint32 result; + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); { - arg2 = &temp2; + jarg2 = (long*)&arg2; } - (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); result = (GoUint32)SKY_webrpc_NewClient(arg1,arg2); jresult = result; return jresult; @@ -4951,40 +4769,34 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_InjectTrans } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetStatus(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetStatus(void * jarg1, void * jarg2) { unsigned int jresult ; WebRpcClient__Handle arg1 ; StatusResult_Handle *arg2 = (StatusResult_Handle *) 0 ; - Handle temp2 ; GoUint32 result; - { - arg2 = &temp2; - } { jarg1 = (long*)&arg1; } + arg2 = (StatusResult_Handle *)jarg2; result = (GoUint32)SKY_webrpc_Client_GetStatus(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetTransactionByID(void * jarg1, char* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetTransactionByID(void * jarg1, char* jarg2, void * jarg3) { unsigned int jresult ; WebRpcClient__Handle arg1 ; GoString arg2 ; TransactionResult_Handle *arg3 = (TransactionResult_Handle *) 0 ; - Handle temp3 ; GoUint32 result; - { - arg3 = &temp3; - } { jarg1 = (long*)&arg1; } (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); + arg3 = (TransactionResult_Handle *)jarg3; result = (GoUint32)SKY_webrpc_Client_GetTransactionByID(arg1,arg2,arg3); jresult = result; return jresult; @@ -5213,13 +5025,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GenerateAddressesInFi GoUint64 arg2 ; PasswordReader__Handle arg3 ; coin__UxArray *arg4 = (coin__UxArray *) 0 ; + PasswordReader__Handle *argp3 ; GoUint32 result; (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); arg2 = (GoUint64)jarg2; - { - jarg3 = (long*)&arg3; + argp3 = (PasswordReader__Handle *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null PasswordReader__Handle", 0); + return 0; } + arg3 = *argp3; arg4 = (coin__UxArray *)jarg4; result = (GoUint32)SKY_cli_GenerateAddressesInFile(arg1,arg2,arg3,arg4); jresult = result; @@ -5815,14 +5631,13 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateKeyPair(ci } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Create() { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Create(void * jarg1) { unsigned int jresult ; Signature_Handle *arg1 = (Signature_Handle *) 0 ; - Handle temp1 ; GoUint32 result; { - arg1 = &temp1; + jarg1 = (long*)&arg1; } result = (GoUint32)SKY_secp256k1go_Signature_Create(arg1); jresult = result; @@ -5830,18 +5645,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Cre } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_GetR(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_GetR(void * jarg1, void * jarg2) { unsigned int jresult ; Signature_Handle arg1 ; Number_Handle *arg2 = (Number_Handle *) 0 ; - Handle temp2 ; GoUint32 result; { - arg2 = &temp2; + jarg1 = (long*)&arg1; } { - jarg1 = (long*)&arg1; + jarg2 = (long*)&arg2; } result = (GoUint32)SKY_secp256k1go_Signature_GetR(arg1,arg2); jresult = result; @@ -5849,18 +5663,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Get } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_GetS(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_GetS(void * jarg1, void * jarg2) { unsigned int jresult ; Signature_Handle arg1 ; Number_Handle *arg2 = (Number_Handle *) 0 ; - Handle temp2 ; GoUint32 result; { - arg2 = &temp2; + jarg1 = (long*)&arg1; } { - jarg1 = (long*)&arg1; + jarg2 = (long*)&arg2; } result = (GoUint32)SKY_secp256k1go_Signature_GetS(arg1,arg2); jresult = result; @@ -6046,18 +5859,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_GetRPCAddress( } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_RPCClientFromApp(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_RPCClientFromApp(void * jarg1, void * jarg2) { unsigned int jresult ; App__Handle arg1 ; WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; - Handle temp2 ; GoUint32 result; { - arg2 = &temp2; + jarg1 = (long*)&arg1; } { - jarg1 = (long*)&arg1; + jarg2 = (long*)&arg2; } result = (GoUint32)SKY_cli_RPCClientFromApp(arg1,arg2); jresult = result; @@ -6390,7 +6202,9 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateAddresses(ch (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); arg3 = (GoInt)jarg3; arg4 = (GoUint8)jarg4; - arg5 = (ReadableWallet__Handle *)jarg5; + { + jarg5 = (long*)&arg5; + } result = (GoUint32)SKY_wallet_CreateAddresses(arg1,arg2,arg3,arg4,arg5); jresult = result; return jresult; @@ -6406,7 +6220,9 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_GetSkycoinWalletEn arg1 = (cipher__PubKey *)jarg1; arg2 = (cipher__SecKey *)jarg2; - arg3 = (ReadableEntry__Handle *)jarg3; + { + jarg3 = (long*)&arg3; + } result = (GoUint32)SKY_wallet_GetSkycoinWalletEntry((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2,arg3); jresult = result; return jresult; @@ -6422,7 +6238,9 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_GetBitcoinWalletEn arg1 = (cipher__PubKey *)jarg1; arg2 = (cipher__SecKey *)jarg2; - arg3 = (ReadableEntry__Handle *)jarg3; + { + jarg3 = (long*)&arg3; + } result = (GoUint32)SKY_wallet_GetBitcoinWalletEntry((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2,arg3); jresult = result; return jresult; @@ -6719,18 +6537,17 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_handle_close(void * jarg1) { } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_handle_copy(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_handle_copy(void * jarg1, void * jarg2) { unsigned int jresult ; Handle arg1 ; Handle *arg2 = (Handle *) 0 ; - Handle temp2 ; GoUint32 result; { - arg2 = &temp2; + jarg1 = (long*)&arg1; } { - jarg1 = (long*)&arg1; + jarg2 = (long*)&arg2; } result = (GoUint32)SKY_handle_copy(arg1,arg2); jresult = result; @@ -7140,21 +6957,20 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Block_GetPreviousB } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Blocks_GetAt(void * jarg1, unsigned long long jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Blocks_GetAt(void * jarg1, unsigned long long jarg2, void * jarg3) { unsigned int jresult ; Handle arg1 ; GoUint64 arg2 ; Handle *arg3 = (Handle *) 0 ; - Handle temp3 ; GoUint32 result; - { - arg3 = &temp3; - } { jarg1 = (long*)&arg1; } arg2 = (GoUint64)jarg2; + { + jarg3 = (long*)&arg3; + } result = (GoUint32)SKY_Handle_Blocks_GetAt(arg1,arg2,arg3); jresult = result; return jresult; @@ -7456,7 +7272,9 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletsRespons jarg1 = (long*)&arg1; } arg2 = (GoUint32)jarg2; - arg3 = (WalletResponse__Handle *)jarg3; + { + jarg3 = (long*)&arg3; + } result = (GoUint32)SKY_api_Handle_WalletsResponseGetAt(arg1,arg2,arg3); jresult = result; return jresult; @@ -7531,15 +7349,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetBuildInfoDa } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_ripemd160_New() { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_ripemd160_New(void * jarg1) { unsigned int jresult ; Hash_Handle *arg1 = (Hash_Handle *) 0 ; - Handle temp1 ; GoUint32 result; - { - arg1 = &temp1; - } + arg1 = (Hash_Handle *)jarg1; result = (GoUint32)SKY_ripemd160_New(arg1); jresult = result; return jresult; @@ -7551,12 +7366,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_ripemd160_Write(void * ja Hash_Handle arg1 ; GoSlice arg2 ; GoInt *arg3 = (GoInt *) 0 ; + Hash_Handle *argp1 ; GoSlice *argp2 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Hash_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Hash_Handle", 0); + return 0; } + arg1 = *argp1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); @@ -7575,12 +7394,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_ripemd160_Sum(void * jarg Hash_Handle arg1 ; GoSlice arg2 ; coin__UxArray *arg3 = (coin__UxArray *) 0 ; + Hash_Handle *argp1 ; GoSlice *argp2 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Hash_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Hash_Handle", 0); + return 0; } + arg1 = *argp1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); @@ -7594,14 +7417,13 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_ripemd160_Sum(void * jarg } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_Create() { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_Create(void * jarg1) { unsigned int jresult ; Number_Handle *arg1 = (Number_Handle *) 0 ; - Handle temp1 ; GoUint32 result; { - arg1 = &temp1; + jarg1 = (long*)&arg1; } result = (GoUint32)SKY_secp256k1go_Number_Create(arg1); jresult = result; @@ -7885,17 +7707,14 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Add(void * j } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewAddressUxOuts(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewAddressUxOuts(void * jarg1, void * jarg2) { unsigned int jresult ; coin__UxArray *arg1 = (coin__UxArray *) 0 ; AddressUxOuts_Handle *arg2 = (AddressUxOuts_Handle *) 0 ; - Handle temp2 ; GoUint32 result; - { - arg2 = &temp2; - } arg1 = (coin__UxArray *)jarg1; + arg2 = (AddressUxOuts_Handle *)jarg2; result = (GoUint32)SKY_coin_NewAddressUxOuts(arg1,arg2); jresult = result; return jresult; @@ -7906,11 +7725,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Keys(v unsigned int jresult ; AddressUxOuts_Handle arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; + AddressUxOuts_Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (AddressUxOuts_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (coin__UxArray *)jarg2; result = (GoUint32)SKY_coin_AddressUxOuts_Keys(arg1,arg2); jresult = result; @@ -7922,11 +7745,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Flatte unsigned int jresult ; AddressUxOuts_Handle arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; + AddressUxOuts_Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (AddressUxOuts_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (coin__UxArray *)jarg2; result = (GoUint32)SKY_coin_AddressUxOuts_Flatten(arg1,arg2); jresult = result; @@ -7934,46 +7761,56 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Flatte } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Sub(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Sub(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; AddressUxOuts_Handle arg1 ; AddressUxOuts_Handle arg2 ; AddressUxOuts_Handle *arg3 = (AddressUxOuts_Handle *) 0 ; - Handle temp3 ; + AddressUxOuts_Handle *argp1 ; + AddressUxOuts_Handle *argp2 ; GoUint32 result; - { - arg3 = &temp3; - } - { - jarg1 = (long*)&arg1; + argp1 = (AddressUxOuts_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + return 0; } - { - jarg2 = (long*)&arg2; + arg1 = *argp1; + argp2 = (AddressUxOuts_Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + return 0; } + arg2 = *argp2; + arg3 = (AddressUxOuts_Handle *)jarg3; result = (GoUint32)SKY_coin_AddressUxOuts_Sub(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Add(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Add(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; AddressUxOuts_Handle arg1 ; AddressUxOuts_Handle arg2 ; AddressUxOuts_Handle *arg3 = (AddressUxOuts_Handle *) 0 ; - Handle temp3 ; + AddressUxOuts_Handle *argp1 ; + AddressUxOuts_Handle *argp2 ; GoUint32 result; - { - arg3 = &temp3; - } - { - jarg1 = (long*)&arg1; + argp1 = (AddressUxOuts_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + return 0; } - { - jarg2 = (long*)&arg2; + arg1 = *argp1; + argp2 = (AddressUxOuts_Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + return 0; } + arg2 = *argp2; + arg3 = (AddressUxOuts_Handle *)jarg3; result = (GoUint32)SKY_coin_AddressUxOuts_Add(arg1,arg2,arg3); jresult = result; return jresult; @@ -7985,11 +7822,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Get(vo AddressUxOuts_Handle arg1 ; cipher__Address *arg2 = (cipher__Address *) 0 ; coin__UxArray *arg3 = (coin__UxArray *) 0 ; + AddressUxOuts_Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (AddressUxOuts_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (cipher__Address *)jarg2; arg3 = (coin__UxArray *)jarg3; result = (GoUint32)SKY_coin_AddressUxOuts_Get(arg1,arg2,arg3); @@ -8003,11 +7844,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_HasKey AddressUxOuts_Handle arg1 ; cipher__Address *arg2 = (cipher__Address *) 0 ; GoUint8 *arg3 = (GoUint8 *) 0 ; + AddressUxOuts_Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (AddressUxOuts_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (cipher__Address *)jarg2; arg3 = (GoUint8 *)jarg3; result = (GoUint32)SKY_coin_AddressUxOuts_HasKey(arg1,arg2,arg3); @@ -8021,11 +7866,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_GetOut AddressUxOuts_Handle arg1 ; cipher__Address *arg2 = (cipher__Address *) 0 ; GoInt *arg3 = (GoInt *) 0 ; + AddressUxOuts_Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (AddressUxOuts_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (cipher__Address *)jarg2; arg3 = (GoInt *)jarg3; result = (GoUint32)SKY_coin_AddressUxOuts_GetOutputLength(arg1,arg2,arg3); @@ -8038,11 +7887,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Length unsigned int jresult ; AddressUxOuts_Handle arg1 ; GoInt *arg2 = (GoInt *) 0 ; + AddressUxOuts_Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (AddressUxOuts_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoInt *)jarg2; result = (GoUint32)SKY_coin_AddressUxOuts_Length(arg1,arg2); jresult = result; @@ -8055,11 +7908,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Set(vo AddressUxOuts_Handle arg1 ; cipher__Address *arg2 = (cipher__Address *) 0 ; coin__UxArray *arg3 = (coin__UxArray *) 0 ; + AddressUxOuts_Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (AddressUxOuts_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (cipher__Address *)jarg2; arg3 = (coin__UxArray *)jarg3; result = (GoUint32)SKY_coin_AddressUxOuts_Set(arg1,arg2,arg3); @@ -8128,7 +7985,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_ScryptChacha20pol } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateOptionsHandle(char* jarg1, char* jarg2, char* jarg3, unsigned char jarg4, char* jarg5, char* jarg6, unsigned long long jarg7) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateOptionsHandle(char* jarg1, char* jarg2, char* jarg3, unsigned char jarg4, char* jarg5, char* jarg6, unsigned long long jarg7, void * jarg8) { unsigned int jresult ; GoString arg1 ; GoString arg2 ; @@ -8138,12 +7995,8 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateOptionsHandl GoString arg6 ; GoUint64 arg7 ; Options__Handle *arg8 = (Options__Handle *) 0 ; - Handle temp8 ; GoUint32 result; - { - arg8 = &temp8; - } (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); (&arg3)->p=jarg3;(&arg3)->n=strlen(jarg3); @@ -8151,6 +8004,9 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateOptionsHandl (&arg5)->p=jarg5;(&arg5)->n=strlen(jarg5); (&arg6)->p=jarg6;(&arg6)->n=strlen(jarg6); arg7 = (GoUint64)jarg7; + { + jarg8 = (long*)&arg8; + } result = (GoUint32)SKY_wallet_CreateOptionsHandle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); jresult = result; return jresult; @@ -8178,13 +8034,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_AddPrivateKeyToFile(c GoString arg1 ; GoString arg2 ; PasswordReader__Handle arg3 ; + PasswordReader__Handle *argp3 ; GoUint32 result; (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); - { - jarg3 = (long*)&arg3; + argp3 = (PasswordReader__Handle *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null PasswordReader__Handle", 0); + return 0; } + arg3 = *argp3; result = (GoUint32)SKY_cli_AddPrivateKeyToFile(arg1,arg2,arg3); jresult = result; return jresult; @@ -8709,14 +8569,13 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_TransactionFee(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_LoadConfig() { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_LoadConfig(void * jarg1) { unsigned int jresult ; Config__Handle *arg1 = (Config__Handle *) 0 ; - Handle temp1 ; GoUint32 result; { - arg1 = &temp1; + jarg1 = (long*)&arg1; } result = (GoUint32)SKY_cli_LoadConfig(arg1); jresult = result; @@ -8765,25 +8624,26 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_NewApp(void * jarg1, { jarg1 = (long*)&arg1; } - arg2 = (App__Handle *)jarg2; + { + jarg2 = (long*)&arg2; + } result = (GoUint32)SKY_cli_NewApp(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_RPCClientFromContext(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_RPCClientFromContext(void * jarg1, void * jarg2) { unsigned int jresult ; Context__Handle arg1 ; WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; - Handle temp2 ; GoUint32 result; { - arg2 = &temp2; + jarg1 = (long*)&arg1; } { - jarg1 = (long*)&arg1; + jarg2 = (long*)&arg2; } result = (GoUint32)SKY_cli_RPCClientFromContext(arg1,arg2); jresult = result; @@ -8791,18 +8651,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_RPCClientFromContext( } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_ConfigFromContext(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_ConfigFromContext(void * jarg1, void * jarg2) { unsigned int jresult ; Context__Handle arg1 ; Config__Handle *arg2 = (Config__Handle *) 0 ; - Handle temp2 ; GoUint32 result; { - arg2 = &temp2; + jarg1 = (long*)&arg1; } { - jarg1 = (long*)&arg1; + jarg2 = (long*)&arg2; } result = (GoUint32)SKY_cli_ConfigFromContext(arg1,arg2); jresult = result; @@ -8836,7 +8695,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_PasswordFromTerm_Pass } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromWallet(void * jarg1, char* jarg2, char* jarg3, void * jarg4, void * jarg5) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromWallet(void * jarg1, char* jarg2, char* jarg3, void * jarg4, void * jarg5, void * jarg6) { unsigned int jresult ; WebRpcClient__Handle arg1 ; GoString arg2 ; @@ -8845,12 +8704,9 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromWallet PasswordReader__Handle arg5 ; Transaction__Handle *arg6 = (Transaction__Handle *) 0 ; GoSlice *argp4 ; - Handle temp6 ; + PasswordReader__Handle *argp5 ; GoUint32 result; - { - arg6 = &temp6; - } { jarg1 = (long*)&arg1; } @@ -8862,8 +8718,14 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromWallet return 0; } arg4 = *argp4; + argp5 = (PasswordReader__Handle *)jarg5; + if (!argp5) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null PasswordReader__Handle", 0); + return 0; + } + arg5 = *argp5; { - jarg5 = (long*)&arg5; + jarg6 = (long*)&arg6; } result = (GoUint32)SKY_cli_CreateRawTxFromWallet(arg1,arg2,arg3,arg4,arg5,arg6); jresult = result; @@ -8871,7 +8733,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromWallet } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromAddress(void * jarg1, char* jarg2, char* jarg3, char* jarg4, void * jarg5, void * jarg6) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromAddress(void * jarg1, char* jarg2, char* jarg3, char* jarg4, void * jarg5, void * jarg6, void * jarg7) { unsigned int jresult ; WebRpcClient__Handle arg1 ; GoString arg2 ; @@ -8881,12 +8743,9 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromAddres PasswordReader__Handle arg6 ; Transaction__Handle *arg7 = (Transaction__Handle *) 0 ; GoSlice *argp5 ; - Handle temp7 ; + PasswordReader__Handle *argp6 ; GoUint32 result; - { - arg7 = &temp7; - } { jarg1 = (long*)&arg1; } @@ -8899,8 +8758,14 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromAddres return 0; } arg5 = *argp5; + argp6 = (PasswordReader__Handle *)jarg6; + if (!argp6) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null PasswordReader__Handle", 0); + return 0; + } + arg6 = *argp6; { - jarg6 = (long*)&arg6; + jarg7 = (long*)&arg7; } result = (GoUint32)SKY_cli_CreateRawTxFromAddress(arg1,arg2,arg3,arg4,arg5,arg6,arg7); jresult = result; @@ -8908,7 +8773,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromAddres } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTx(void * jarg1, void * jarg2, void * jarg3, char* jarg4, void * jarg5, void * jarg6) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTx(void * jarg1, void * jarg2, void * jarg3, char* jarg4, void * jarg5, void * jarg6, void * jarg7) { unsigned int jresult ; WebRpcClient__Handle arg1 ; Wallet__Handle arg2 ; @@ -8920,12 +8785,8 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTx(void * ja GoSlice *argp3 ; GoSlice *argp5 ; GoSlice *argp6 ; - Handle temp7 ; GoUint32 result; - { - arg7 = &temp7; - } { jarg1 = (long*)&arg1; } @@ -8951,13 +8812,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTx(void * ja return 0; } arg6 = *argp6; + { + jarg7 = (long*)&arg7; + } result = (GoUint32)SKY_cli_CreateRawTx(arg1,arg2,arg3,arg4,arg5,arg6,arg7); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_NewTransaction(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_NewTransaction(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; GoSlice arg1 ; GoSlice arg2 ; @@ -8966,12 +8830,8 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_NewTransaction(void * GoSlice *argp1 ; GoSlice *argp2 ; GoSlice *argp3 ; - Handle temp4 ; GoUint32 result; - { - arg4 = &temp4; - } argp1 = (GoSlice *)jarg1; if (!argp1) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); @@ -8990,6 +8850,9 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_NewTransaction(void * return 0; } arg3 = *argp3; + { + jarg4 = (long*)&arg4; + } result = (GoUint32)SKY_cli_NewTransaction(arg1,arg2,arg3,arg4); jresult = result; return jresult; @@ -9072,19 +8935,18 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetWalletOutputsFromF } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetWalletOutputs(void * jarg1, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetWalletOutputs(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; WebRpcClient__Handle arg1 ; Wallet__Handle *arg2 = (Wallet__Handle *) 0 ; ReadableOutputSet_Handle *arg3 = (ReadableOutputSet_Handle *) 0 ; - Handle temp2 ; GoUint32 result; { - arg2 = &temp2; + jarg1 = (long*)&arg1; } { - jarg1 = (long*)&arg1; + jarg2 = (long*)&arg2; } arg3 = (ReadableOutputSet_Handle *)jarg3; result = (GoUint32)SKY_cli_GetWalletOutputs(arg1,arg2,arg3); @@ -9617,14 +9479,13 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Null(cipher } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Create_Transaction() { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Create_Transaction(void * jarg1) { unsigned int jresult ; Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; - Handle temp1 ; GoUint32 result; { - arg1 = &temp1; + jarg1 = (long*)&arg1; } result = (GoUint32)SKY_coin_Create_Transaction(arg1); jresult = result; @@ -9632,18 +9493,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Create_Transaction() } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Copy(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Copy(void * jarg1, void * jarg2) { unsigned int jresult ; Transaction__Handle arg1 ; Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; - Handle temp2 ; GoUint32 result; { - arg2 = &temp2; + jarg1 = (long*)&arg1; } { - jarg1 = (long*)&arg1; + jarg2 = (long*)&arg2; } result = (GoUint32)SKY_coin_Transaction_Copy(arg1,arg2); jresult = result; @@ -10121,23 +9981,22 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Serializ } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_TransactionDeserialize(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_TransactionDeserialize(void * jarg1, void * jarg2) { unsigned int jresult ; GoSlice arg1 ; Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; GoSlice *argp1 ; - Handle temp2 ; GoUint32 result; - { - arg2 = &temp2; - } argp1 = (GoSlice *)jarg1; if (!argp1) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; + { + jarg2 = (long*)&arg2; + } result = (GoUint32)SKY_coin_TransactionDeserialize(arg1,arg2); jresult = result; return jresult; @@ -10160,14 +10019,13 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_OutputHo } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Create_Transactions() { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Create_Transactions(void * jarg1) { unsigned int jresult ; Transactions__Handle *arg1 = (Transactions__Handle *) 0 ; - Handle temp1 ; GoUint32 result; { - arg1 = &temp1; + jarg1 = (long*)&arg1; } result = (GoUint32)SKY_coin_Create_Transactions(arg1); jresult = result; @@ -10243,21 +10101,20 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Fees(vo } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_GetAt(void * jarg1, long long jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_GetAt(void * jarg1, long long jarg2, void * jarg3) { unsigned int jresult ; Transactions__Handle arg1 ; GoInt arg2 ; Transaction__Handle *arg3 = (Transaction__Handle *) 0 ; - Handle temp3 ; GoUint32 result; - { - arg3 = &temp3; - } { jarg1 = (long*)&arg1; } arg2 = (GoInt)jarg2; + { + jarg3 = (long*)&arg3; + } result = (GoUint32)SKY_coin_Transactions_GetAt(arg1,arg2,arg3); jresult = result; return jresult; @@ -10296,63 +10153,58 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Size(vo } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_TruncateBytesTo(void * jarg1, long long jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_TruncateBytesTo(void * jarg1, long long jarg2, void * jarg3) { unsigned int jresult ; Transactions__Handle arg1 ; GoInt arg2 ; Transactions__Handle *arg3 = (Transactions__Handle *) 0 ; - Handle temp3 ; GoUint32 result; - { - arg3 = &temp3; - } { jarg1 = (long*)&arg1; } arg2 = (GoInt)jarg2; + { + jarg3 = (long*)&arg3; + } result = (GoUint32)SKY_coin_Transactions_TruncateBytesTo(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortTransactions(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortTransactions(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; Transactions__Handle arg1 ; FeeCalculator *arg2 = (FeeCalculator *) 0 ; Transactions__Handle *arg3 = (Transactions__Handle *) 0 ; - Handle temp3 ; GoUint32 result; - { - arg3 = &temp3; - } { jarg1 = (long*)&arg1; } arg2 = (FeeCalculator *)jarg2; + { + jarg3 = (long*)&arg3; + } result = (GoUint32)SKY_coin_SortTransactions(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewSortableTransactions(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewSortableTransactions(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; Transactions__Handle arg1 ; FeeCalculator *arg2 = (FeeCalculator *) 0 ; SortableTransactionResult_Handle *arg3 = (SortableTransactionResult_Handle *) 0 ; - Handle temp3 ; GoUint32 result; - { - arg3 = &temp3; - } { jarg1 = (long*)&arg1; } arg2 = (FeeCalculator *)jarg2; + arg3 = (SortableTransactionResult_Handle *)jarg3; result = (GoUint32)SKY_coin_NewSortableTransactions(arg1,arg2,arg3); jresult = result; return jresult; @@ -10362,11 +10214,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewSortableTransacti SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortableTransactions_Sort(void * jarg1) { unsigned int jresult ; SortableTransactionResult_Handle arg1 ; + SortableTransactionResult_Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (SortableTransactionResult_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null SortableTransactionResult_Handle", 0); + return 0; } + arg1 = *argp1; result = (GoUint32)SKY_coin_SortableTransactions_Sort(arg1); jresult = result; return jresult; @@ -10377,11 +10233,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortableTransactions unsigned int jresult ; SortableTransactionResult_Handle arg1 ; GoInt *arg2 = (GoInt *) 0 ; + SortableTransactionResult_Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (SortableTransactionResult_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null SortableTransactionResult_Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoInt *)jarg2; result = (GoUint32)SKY_coin_SortableTransactions_Len(arg1,arg2); jresult = result; @@ -10395,11 +10255,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortableTransactions GoInt arg2 ; GoInt arg3 ; GoUint8 *arg4 = (GoUint8 *) 0 ; + SortableTransactionResult_Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (SortableTransactionResult_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null SortableTransactionResult_Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoInt)jarg2; arg3 = (GoInt)jarg3; arg4 = (GoUint8 *)jarg4; @@ -10414,11 +10278,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortableTransactions SortableTransactionResult_Handle arg1 ; GoInt arg2 ; GoInt arg3 ; + SortableTransactionResult_Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (SortableTransactionResult_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null SortableTransactionResult_Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoInt)jarg2; arg3 = (GoInt)jarg3; result = (GoUint32)SKY_coin_SortableTransactions_Swap(arg1,arg2,arg3); diff --git a/LibskycoinNetTest/check_cipher_address.cs b/LibskycoinNetTest/check_cipher_address.cs index f1a59ba6..41d8f7dc 100644 --- a/LibskycoinNetTest/check_cipher_address.cs +++ b/LibskycoinNetTest/check_cipher_address.cs @@ -30,6 +30,9 @@ public void TestDecodeBase58Address () { var sa = new skycoin._GoString_ (); err = skycoin.skycoin.SKY_cipher_Address_String (a, sa); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var b = new GoSlice (); + err = skycoin.skycoin.SKY_cipher_Address_Bytes (a, b); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); } } } \ No newline at end of file From 8862467982c5b22982f791fa0110c6ba007130c2 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Thu, 13 Sep 2018 23:43:59 -0400 Subject: [PATCH 23/73] [test] refs #8 Rewrite test cipher_address Tests run: 3, Errors: 0, Failures: 0, Inconclusive: 0, Time: 0,0694558 seconds Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0 --- LibskycoinNet/LibskycoinNet.csproj | 7 +- ...5__GoUint8_.cs => SWIGTYPE_p_GoUint16_.cs} | 8 +- LibskycoinNet/skycoin/SWIGTYPE_p_int.cs | 29 + LibskycoinNet/skycoin/SWIGTYPE_p_unsi.cs | 29 + LibskycoinNet/skycoin/cipher__Address.cs | 9 + LibskycoinNet/skycoin/skycoin.cs | 1026 +++++++++++------ LibskycoinNet/skycoin/skycoinPINVOKE.cs | 51 + LibskycoinNet/skycoin/skycoinnet_wrap.c | 533 +++++++-- LibskycoinNetTest/check_cipher_address.cs | 83 +- Makefile | 1 - gopath/src/github.com/skycoin/skycoin | 2 +- 11 files changed, 1322 insertions(+), 456 deletions(-) rename LibskycoinNet/skycoin/{SWIGTYPE_p_a_65__GoUint8_.cs => SWIGTYPE_p_GoUint16_.cs} (80%) create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_int.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_unsi.cs diff --git a/LibskycoinNet/LibskycoinNet.csproj b/LibskycoinNet/LibskycoinNet.csproj index 65e61d60..6ad6c3f1 100644 --- a/LibskycoinNet/LibskycoinNet.csproj +++ b/LibskycoinNet/LibskycoinNet.csproj @@ -58,6 +58,7 @@ + @@ -77,13 +78,12 @@ - - - + + @@ -128,6 +128,7 @@ + diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_a_65__GoUint8_.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_GoUint16_.cs similarity index 80% rename from LibskycoinNet/skycoin/SWIGTYPE_p_a_65__GoUint8_.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_GoUint16_.cs index 478f2206..05d951db 100644 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_a_65__GoUint8_.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_GoUint16_.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_a_65__GoUint8_ { +public class SWIGTYPE_p_GoUint16_ { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_a_65__GoUint8_(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_GoUint16_(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_a_65__GoUint8_() { + protected SWIGTYPE_p_GoUint16_() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_a_65__GoUint8_ obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_GoUint16_ obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_int.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_int.cs new file mode 100644 index 00000000..d8b0dd29 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_int.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_int { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_int(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_int() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_int obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_unsi.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_unsi.cs new file mode 100644 index 00000000..ce3a2257 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_unsi.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_unsi { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_unsi(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_unsi() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_unsi obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/cipher__Address.cs b/LibskycoinNet/skycoin/cipher__Address.cs index 85b30735..3b075a40 100644 --- a/LibskycoinNet/skycoin/cipher__Address.cs +++ b/LibskycoinNet/skycoin/cipher__Address.cs @@ -45,6 +45,15 @@ public int isEqual(cipher__Address a) { return ret; } + public char getVersion() { + char ret = skycoinPINVOKE.cipher__Address_getVersion(swigCPtr); + return ret; + } + + public void setVersion(char pValue) { + skycoinPINVOKE.cipher__Address_setVersion(swigCPtr, pValue); + } + public SWIGTYPE_p_GoUint8_ Version { set { skycoinPINVOKE.set_cipher__Address_Version(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs index 9cbba2cf..3f40c304 100644 --- a/LibskycoinNet/skycoin/skycoin.cs +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -89,6 +89,87 @@ public static cipher_SecKey cipher_SecKeyp_value(cipher_SecKey obj) { return ret; } + public static cipher_Sig new_cipher_Sigp() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_cipher_Sigp(); + cipher_Sig ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher_Sig(cPtr, false); + return ret; + } + + public static cipher_Sig copy_cipher_Sigp(cipher_Sig value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_cipher_Sigp(cipher_Sig.getCPtr(value)); + cipher_Sig ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher_Sig(cPtr, false); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static void delete_cipher_Sigp(cipher_Sig obj) { + skycoinPINVOKE.delete_cipher_Sigp(cipher_Sig.getCPtr(obj)); + } + + public static void cipher_Sigp_assign(cipher_Sig obj, cipher_Sig value) { + skycoinPINVOKE.cipher_Sigp_assign(cipher_Sig.getCPtr(obj), cipher_Sig.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + + public static cipher_Sig cipher_Sigp_value(cipher_Sig obj) { + cipher_Sig ret = new cipher_Sig(skycoinPINVOKE.cipher_Sigp_value(cipher_Sig.getCPtr(obj)), true); + return ret; + } + + public static GoSlice new_GoSlicep() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_GoSlicep(); + GoSlice ret = (cPtr == global::System.IntPtr.Zero) ? null : new GoSlice(cPtr, false); + return ret; + } + + public static GoSlice copy_GoSlicep(GoSlice value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_GoSlicep(GoSlice.getCPtr(value)); + GoSlice ret = (cPtr == global::System.IntPtr.Zero) ? null : new GoSlice(cPtr, false); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static void delete_GoSlicep(GoSlice obj) { + skycoinPINVOKE.delete_GoSlicep(GoSlice.getCPtr(obj)); + } + + public static void GoSlicep_assign(GoSlice obj, GoSlice value) { + skycoinPINVOKE.GoSlicep_assign(GoSlice.getCPtr(obj), GoSlice.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + + public static GoSlice GoSlicep_value(GoSlice obj) { + GoSlice ret = new GoSlice(skycoinPINVOKE.GoSlicep_value(GoSlice.getCPtr(obj)), true); + return ret; + } + + public static SWIGTYPE_p_GoString_ new_GoStringp_() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_GoStringp_(); + SWIGTYPE_p_GoString_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoString_(cPtr, false); + return ret; + } + + public static SWIGTYPE_p_GoString_ copy_GoStringp_(SWIGTYPE_p_GoString_ value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_GoStringp_(SWIGTYPE_p_GoString_.getCPtr(value)); + SWIGTYPE_p_GoString_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoString_(cPtr, false); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static void delete_GoStringp_(SWIGTYPE_p_GoString_ obj) { + skycoinPINVOKE.delete_GoStringp_(SWIGTYPE_p_GoString_.getCPtr(obj)); + } + + public static void GoStringp__assign(SWIGTYPE_p_GoString_ obj, SWIGTYPE_p_GoString_ value) { + skycoinPINVOKE.GoStringp__assign(SWIGTYPE_p_GoString_.getCPtr(obj), SWIGTYPE_p_GoString_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + + public static SWIGTYPE_p_GoString_ GoStringp__value(SWIGTYPE_p_GoString_ obj) { + SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.GoStringp__value(SWIGTYPE_p_GoString_.getCPtr(obj)), true); + return ret; + } + public static uint SKY_coin_NewBlock(SWIGTYPE_p_Block__Handle p0, ulong p1, cipher_SecKey p2, SWIGTYPE_p_Transactions__Handle p3, SWIGTYPE_p_FeeCalculator p4, SWIGTYPE_p_Block__Handle p5) { var tmpp2 = cipher_SecKey.getCPtr (p2); { @@ -181,9 +262,12 @@ public static uint SKY_coin_BlockHeader_Hash(coin__BlockHeader p0, cipher_SecKey } } - public static uint SKY_coin_BlockHeader_Bytes(coin__BlockHeader p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_BlockHeader_Bytes(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; + public static uint SKY_coin_BlockHeader_Bytes(coin__BlockHeader p0, GoSlice p1) { +var tmpp1 = GoSlice.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_coin_BlockHeader_Bytes(coin__BlockHeader.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_coin_BlockHeader_String(coin__BlockHeader p0, _GoString_ p1) { @@ -207,14 +291,20 @@ public static uint SKY_coin_BlockBody_Size(SWIGTYPE_p_BlockBody__Handle p0, SWIG return ret; } - public static uint SKY_coin_BlockBody_Bytes(SWIGTYPE_p_BlockBody__Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Bytes(SWIGTYPE_p_BlockBody__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; + public static uint SKY_coin_BlockBody_Bytes(SWIGTYPE_p_BlockBody__Handle p0, GoSlice p1) { +var tmpp1 = GoSlice.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Bytes(SWIGTYPE_p_BlockBody__Handle.getCPtr(p0), tmpp1); + return ret; + } } - public static uint SKY_coin_CreateUnspents(coin__BlockHeader p0, SWIGTYPE_p_Transaction__Handle p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_CreateUnspents(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - return ret; + public static uint SKY_coin_CreateUnspents(coin__BlockHeader p0, SWIGTYPE_p_Transaction__Handle p1, GoSlice p2) { +var tmpp2 = GoSlice.getCPtr (p2); + { + uint ret = skycoinPINVOKE.SKY_coin_CreateUnspents(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), tmpp2); + return ret; + } } public static uint SKY_coin_CreateUnspent(coin__BlockHeader p0, SWIGTYPE_p_Transaction__Handle p1, long p2, coin__UxOut p3) { @@ -245,9 +335,12 @@ public static uint SKY_bip39_NewDefaultMnemomic(_GoString_ p0) { } } - public static uint SKY_bip39_NewEntropy(long p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_bip39_NewEntropy(p0, SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; + public static uint SKY_bip39_NewEntropy(long p0, GoSlice p1) { +var tmpp1 = GoSlice.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_bip39_NewEntropy(p0, tmpp1); + return ret; + } } public static uint SKY_bip39_NewMnemonic(GoSlice p0, _GoString_ p1) { @@ -259,10 +352,11 @@ public static uint SKY_bip39_NewMnemonic(GoSlice p0, _GoString_ p1) { } } - public static uint SKY_bip39_MnemonicToByteArray(string p0, SWIGTYPE_p_GoSlice_ p1) { + public static uint SKY_bip39_MnemonicToByteArray(string p0, GoSlice p1) { var tmpp0 = p0; +var tmpp1 = GoSlice.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_bip39_MnemonicToByteArray(tmpp0, SWIGTYPE_p_GoSlice_.getCPtr(p1)); + uint ret = skycoinPINVOKE.SKY_bip39_MnemonicToByteArray(tmpp0, tmpp1); return ret; } } @@ -613,14 +707,20 @@ public static uint SKY_secp256k1go_XY_ParsePubkey(secp256k1go__XY p0, GoSlice p1 return ret; } - public static uint SKY_secp256k1go_XY_Bytes(secp256k1go__XY p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_Bytes(secp256k1go__XY.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; + public static uint SKY_secp256k1go_XY_Bytes(secp256k1go__XY p0, GoSlice p1) { +var tmpp1 = GoSlice.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_Bytes(secp256k1go__XY.getCPtr(p0), tmpp1); + return ret; + } } - public static uint SKY_secp256k1go_XY_BytesUncompressed(secp256k1go__XY p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_BytesUncompressed(secp256k1go__XY.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; + public static uint SKY_secp256k1go_XY_BytesUncompressed(secp256k1go__XY p0, GoSlice p1) { +var tmpp1 = GoSlice.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_BytesUncompressed(secp256k1go__XY.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_secp256k1go_XY_SetXY(secp256k1go__XY p0, secp256k1go__Field p1, secp256k1go__Field p2) { @@ -653,9 +753,12 @@ public static uint SKY_secp256k1go_XY_AddXY(secp256k1go__XY p0, secp256k1go__XY return ret; } - public static uint SKY_secp256k1go_XY_GetPublicKey(secp256k1go__XY p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_GetPublicKey(secp256k1go__XY.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; + public static uint SKY_secp256k1go_XY_GetPublicKey(secp256k1go__XY p0, GoSlice p1) { +var tmpp1 = GoSlice.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_GetPublicKey(secp256k1go__XY.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_api_NewWalletResponse(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_WalletResponse__Handle p1) { @@ -780,14 +883,20 @@ public static uint SKY_wallet_Wallet_IsEncrypted(SWIGTYPE_p_Wallet__Handle p0, S return ret; } - public static uint SKY_wallet_Wallet_GenerateAddresses(SWIGTYPE_p_Wallet__Handle p0, ulong p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GenerateAddresses(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2)); - return ret; + public static uint SKY_wallet_Wallet_GenerateAddresses(SWIGTYPE_p_Wallet__Handle p0, ulong p1, GoSlice p2) { +var tmpp2 = GoSlice.getCPtr (p2); + { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GenerateAddresses(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), p1, tmpp2); + return ret; + } } - public static uint SKY_wallet_Wallet_GetAddresses(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GetAddresses(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; + public static uint SKY_wallet_Wallet_GetAddresses(SWIGTYPE_p_Wallet__Handle p0, GoSlice p1) { +var tmpp1 = GoSlice.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GetAddresses(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_wallet_Wallet_GetEntry(SWIGTYPE_p_Wallet__Handle p0, cipher__Address p1, wallet__Entry p2, SWIGTYPE_p_unsigned_char p3) { @@ -800,20 +909,30 @@ public static uint SKY_wallet_Wallet_AddEntry(SWIGTYPE_p_Wallet__Handle p0, wall return ret; } - public static uint SKY_wallet_DistributeSpendHours(ulong p0, ulong p1, byte p2, SWIGTYPE_p_unsigned_long_long p3, SWIGTYPE_p_GoSlice_ p4, SWIGTYPE_p_unsigned_long_long p5) { - uint ret = skycoinPINVOKE.SKY_wallet_DistributeSpendHours(p0, p1, p2, SWIGTYPE_p_unsigned_long_long.getCPtr(p3), SWIGTYPE_p_GoSlice_.getCPtr(p4), SWIGTYPE_p_unsigned_long_long.getCPtr(p5)); - return ret; + public static uint SKY_wallet_DistributeSpendHours(ulong p0, ulong p1, byte p2, SWIGTYPE_p_unsigned_long_long p3, GoSlice p4, SWIGTYPE_p_unsigned_long_long p5) { +var tmpp4 = GoSlice.getCPtr (p4); + { + uint ret = skycoinPINVOKE.SKY_wallet_DistributeSpendHours(p0, p1, p2, SWIGTYPE_p_unsigned_long_long.getCPtr(p3), tmpp4, SWIGTYPE_p_unsigned_long_long.getCPtr(p5)); + return ret; + } } - public static uint SKY_wallet_DistributeCoinHoursProportional(GoSlice p0, ulong p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_wallet_DistributeCoinHoursProportional(GoSlice.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_wallet_DistributeCoinHoursProportional(GoSlice p0, ulong p1, GoSlice p2) { +var tmpp2 = GoSlice.getCPtr (p2); + { + uint ret = skycoinPINVOKE.SKY_wallet_DistributeCoinHoursProportional(GoSlice.getCPtr(p0), p1, tmpp2); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } - public static uint SKY_wallet_NewUxBalances(ulong p0, SWIGTYPE_p_GoSlice_ p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_wallet_NewUxBalances(p0, SWIGTYPE_p_GoSlice_.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - return ret; + public static uint SKY_wallet_NewUxBalances(ulong p0, GoSlice p1, GoSlice p2) { +var tmpp1 = GoSlice.getCPtr (p1); +var tmpp2 = GoSlice.getCPtr (p2); + { + uint ret = skycoinPINVOKE.SKY_wallet_NewUxBalances(p0, tmpp1, tmpp2); + return ret; + } } public static uint SKY_wallet_NewUxBalance(ulong p0, coin__UxOut p1, wallet__UxBalance p2) { @@ -821,16 +940,22 @@ public static uint SKY_wallet_NewUxBalance(ulong p0, coin__UxOut p1, wallet__UxB return ret; } - public static uint SKY_wallet_ChooseSpendsMinimizeUxOuts(GoSlice p0, ulong p1, ulong p2, SWIGTYPE_p_GoSlice_ p3) { - uint ret = skycoinPINVOKE.SKY_wallet_ChooseSpendsMinimizeUxOuts(GoSlice.getCPtr(p0), p1, p2, SWIGTYPE_p_GoSlice_.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_wallet_ChooseSpendsMinimizeUxOuts(GoSlice p0, ulong p1, ulong p2, GoSlice p3) { +var tmpp3 = GoSlice.getCPtr (p3); + { + uint ret = skycoinPINVOKE.SKY_wallet_ChooseSpendsMinimizeUxOuts(GoSlice.getCPtr(p0), p1, p2, tmpp3); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } - public static uint SKY_wallet_ChooseSpendsMaximizeUxOuts(GoSlice p0, ulong p1, ulong p2, SWIGTYPE_p_GoSlice_ p3) { - uint ret = skycoinPINVOKE.SKY_wallet_ChooseSpendsMaximizeUxOuts(GoSlice.getCPtr(p0), p1, p2, SWIGTYPE_p_GoSlice_.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_wallet_ChooseSpendsMaximizeUxOuts(GoSlice p0, ulong p1, ulong p2, GoSlice p3) { +var tmpp3 = GoSlice.getCPtr (p3); + { + uint ret = skycoinPINVOKE.SKY_wallet_ChooseSpendsMaximizeUxOuts(GoSlice.getCPtr(p0), p1, p2, tmpp3); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } public static uint SKY_cli_CheckWalletBalance(SWIGTYPE_p_WebRpcClient__Handle p0, string p1, SWIGTYPE_p_BalanceResult_Handle p2) { @@ -911,34 +1036,49 @@ public static uint SKY_secp256k1go_DecompressPoint(GoSlice p0, byte p1, GoSlice return ret; } - public static uint SKY_secp256k1go_RecoverPublicKey(GoSlice p0, GoSlice p1, long p2, SWIGTYPE_p_GoSlice_ p3, SWIGTYPE_p_long_long p4) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_RecoverPublicKey(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), p2, SWIGTYPE_p_GoSlice_.getCPtr(p3), SWIGTYPE_p_long_long.getCPtr(p4)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_secp256k1go_RecoverPublicKey(GoSlice p0, GoSlice p1, long p2, GoSlice p3, SWIGTYPE_p_long_long p4) { +var tmpp3 = GoSlice.getCPtr (p3); + { + uint ret = skycoinPINVOKE.SKY_secp256k1go_RecoverPublicKey(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), p2, tmpp3, SWIGTYPE_p_long_long.getCPtr(p4)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } - public static uint SKY_secp256k1go_Multiply(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Multiply(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_secp256k1go_Multiply(GoSlice p0, GoSlice p1, GoSlice p2) { +var tmpp2 = GoSlice.getCPtr (p2); + { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Multiply(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), tmpp2); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } - public static uint SKY_secp256k1go_BaseMultiply(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_BaseMultiply(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_secp256k1go_BaseMultiply(GoSlice p0, GoSlice p1) { +var tmpp1 = GoSlice.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_secp256k1go_BaseMultiply(GoSlice.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } - public static uint SKY_secp256k1go_BaseMultiplyAdd(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_BaseMultiplyAdd(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_secp256k1go_BaseMultiplyAdd(GoSlice p0, GoSlice p1, GoSlice p2) { +var tmpp2 = GoSlice.getCPtr (p2); + { + uint ret = skycoinPINVOKE.SKY_secp256k1go_BaseMultiplyAdd(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), tmpp2); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } - public static uint SKY_secp256k1go_GeneratePublicKey(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_GeneratePublicKey(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_secp256k1go_GeneratePublicKey(GoSlice p0, GoSlice p1) { +var tmpp1 = GoSlice.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_secp256k1go_GeneratePublicKey(GoSlice.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } public static uint SKY_secp256k1go_SeckeyIsValid(GoSlice p0, SWIGTYPE_p_long_long p1) { @@ -953,10 +1093,11 @@ public static uint SKY_secp256k1go_PubkeyIsValid(GoSlice p0, SWIGTYPE_p_long_lon return ret; } - public static uint SKY_base58_String2Hex(string p0, SWIGTYPE_p_GoSlice_ p1) { + public static uint SKY_base58_String2Hex(string p0, GoSlice p1) { var tmpp0 = p0; +var tmpp1 = GoSlice.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_base58_String2Hex(tmpp0, SWIGTYPE_p_GoSlice_.getCPtr(p1)); + uint ret = skycoinPINVOKE.SKY_base58_String2Hex(tmpp0, tmpp1); return ret; } } @@ -969,10 +1110,11 @@ public static uint SKY_base58_Base58_ToInt(string p0, SWIGTYPE_p_long_long p1) { } } - public static uint SKY_base58_Base58_ToHex(string p0, SWIGTYPE_p_GoSlice_ p1) { + public static uint SKY_base58_Base58_ToHex(string p0, GoSlice p1) { var tmpp0 = p0; +var tmpp1 = GoSlice.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_base58_Base58_ToHex(tmpp0, SWIGTYPE_p_GoSlice_.getCPtr(p1)); + uint ret = skycoinPINVOKE.SKY_base58_Base58_ToHex(tmpp0, tmpp1); return ret; } } @@ -985,18 +1127,20 @@ public static uint SKY_base58_Base58_Base582Int(string p0, SWIGTYPE_p_long_long } } - public static uint SKY_base58_Base582Hex(string p0, SWIGTYPE_p_GoSlice_ p1) { + public static uint SKY_base58_Base582Hex(string p0, GoSlice p1) { var tmpp0 = p0; +var tmpp1 = GoSlice.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_base58_Base582Hex(tmpp0, SWIGTYPE_p_GoSlice_.getCPtr(p1)); + uint ret = skycoinPINVOKE.SKY_base58_Base582Hex(tmpp0, tmpp1); return ret; } } - public static uint SKY_base58_Base58_BitHex(string p0, SWIGTYPE_p_GoSlice_ p1) { + public static uint SKY_base58_Base58_BitHex(string p0, GoSlice p1) { var tmpp0 = p0; +var tmpp1 = GoSlice.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_base58_Base58_BitHex(tmpp0, SWIGTYPE_p_GoSlice_.getCPtr(p1)); + uint ret = skycoinPINVOKE.SKY_base58_Base58_BitHex(tmpp0, tmpp1); return ret; } } @@ -1089,26 +1233,38 @@ public static uint SKY_webrpc_Client_GetTransactionByID(SWIGTYPE_p_WebRpcClient_ } } - public static uint SKY_webrpc_Client_GetAddressUxOuts(SWIGTYPE_p_WebRpcClient__Handle p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetAddressUxOuts(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_webrpc_Client_GetAddressUxOuts(SWIGTYPE_p_WebRpcClient__Handle p0, GoSlice p1, GoSlice p2) { +var tmpp2 = GoSlice.getCPtr (p2); + { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetAddressUxOuts(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), GoSlice.getCPtr(p1), tmpp2); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } - public static uint SKY_webrpc_Client_GetBlocks(SWIGTYPE_p_WebRpcClient__Handle p0, ulong p1, ulong p2, SWIGTYPE_p_GoSlice_ p3) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetBlocks(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), p1, p2, SWIGTYPE_p_GoSlice_.getCPtr(p3)); - return ret; + public static uint SKY_webrpc_Client_GetBlocks(SWIGTYPE_p_WebRpcClient__Handle p0, ulong p1, ulong p2, GoSlice p3) { +var tmpp3 = GoSlice.getCPtr (p3); + { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetBlocks(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), p1, p2, tmpp3); + return ret; + } } - public static uint SKY_webrpc_Client_GetBlocksBySeq(SWIGTYPE_p_WebRpcClient__Handle p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetBlocksBySeq(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_webrpc_Client_GetBlocksBySeq(SWIGTYPE_p_WebRpcClient__Handle p0, GoSlice p1, GoSlice p2) { +var tmpp2 = GoSlice.getCPtr (p2); + { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetBlocksBySeq(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), GoSlice.getCPtr(p1), tmpp2); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } - public static uint SKY_webrpc_Client_GetLastBlocks(SWIGTYPE_p_WebRpcClient__Handle p0, ulong p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetLastBlocks(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2)); - return ret; + public static uint SKY_webrpc_Client_GetLastBlocks(SWIGTYPE_p_WebRpcClient__Handle p0, ulong p1, GoSlice p2) { +var tmpp2 = GoSlice.getCPtr (p2); + { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetLastBlocks(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), p1, tmpp2); + return ret; + } } public static uint SKY_browser_Open(string p0) { @@ -1158,21 +1314,28 @@ public static uint SKY_encoder_ParseFields(GoSlice p0, GoSlice p1, SWIGTYPE_p_Go return ret; } - public static uint SKY_secp256k1_SumSHA256(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1_SumSHA256(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_secp256k1_SumSHA256(GoSlice p0, GoSlice p1) { +var tmpp1 = GoSlice.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_secp256k1_SumSHA256(GoSlice.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } - public static uint SKY_secp256k1_RandByte(long p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1_RandByte(p0, SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; + public static uint SKY_secp256k1_RandByte(long p0, GoSlice p1) { +var tmpp1 = GoSlice.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_secp256k1_RandByte(p0, tmpp1); + return ret; + } } - public static uint SKY_cli_GenerateAddressesInFile(string p0, ulong p1, SWIGTYPE_p_PasswordReader__Handle p2, SWIGTYPE_p_GoSlice_ p3) { + public static uint SKY_cli_GenerateAddressesInFile(string p0, ulong p1, SWIGTYPE_p_PasswordReader__Handle p2, GoSlice p3) { var tmpp0 = p0; +var tmpp3 = GoSlice.getCPtr (p3); { - uint ret = skycoinPINVOKE.SKY_cli_GenerateAddressesInFile(tmpp0, p1, SWIGTYPE_p_PasswordReader__Handle.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); + uint ret = skycoinPINVOKE.SKY_cli_GenerateAddressesInFile(tmpp0, p1, SWIGTYPE_p_PasswordReader__Handle.getCPtr(p2), tmpp3); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -1196,10 +1359,13 @@ public static uint SKY_cli_FormatAddressesAsJoinedArray(GoSlice p0, _GoString_ p } } - public static uint SKY_cli_AddressesToStrings(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_AddressesToStrings(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_cli_AddressesToStrings(GoSlice p0, GoSlice p1) { +var tmpp1 = GoSlice.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_cli_AddressesToStrings(GoSlice.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } public static uint SKY_coin_AddUint64(ulong p0, ulong p1, SWIGTYPE_p_unsigned_long_long p2) { @@ -1217,24 +1383,36 @@ public static uint SKY_coin_Int64ToUint64(long p0, SWIGTYPE_p_unsigned_long_long return ret; } - public static uint SKY_cipher_PubKeySlice_Len(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_cipher_PubKeySlice_Len(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); - return ret; + public static uint SKY_cipher_PubKeySlice_Len(GoSlice p0, SWIGTYPE_p_long_long p1) { +var tmpp0 = GoSlice.getCPtr (p0); + { + uint ret = skycoinPINVOKE.SKY_cipher_PubKeySlice_Len(tmpp0, SWIGTYPE_p_long_long.getCPtr(p1)); + return ret; + } } - public static uint SKY_cipher_PubKeySlice_Less(SWIGTYPE_p_GoSlice_ p0, long p1, long p2, SWIGTYPE_p_unsigned_char p3) { - uint ret = skycoinPINVOKE.SKY_cipher_PubKeySlice_Less(SWIGTYPE_p_GoSlice_.getCPtr(p0), p1, p2, SWIGTYPE_p_unsigned_char.getCPtr(p3)); - return ret; + public static uint SKY_cipher_PubKeySlice_Less(GoSlice p0, long p1, long p2, SWIGTYPE_p_unsigned_char p3) { +var tmpp0 = GoSlice.getCPtr (p0); + { + uint ret = skycoinPINVOKE.SKY_cipher_PubKeySlice_Less(tmpp0, p1, p2, SWIGTYPE_p_unsigned_char.getCPtr(p3)); + return ret; + } } - public static uint SKY_cipher_PubKeySlice_Swap(SWIGTYPE_p_GoSlice_ p0, long p1, long p2) { - uint ret = skycoinPINVOKE.SKY_cipher_PubKeySlice_Swap(SWIGTYPE_p_GoSlice_.getCPtr(p0), p1, p2); - return ret; + public static uint SKY_cipher_PubKeySlice_Swap(GoSlice p0, long p1, long p2) { +var tmpp0 = GoSlice.getCPtr (p0); + { + uint ret = skycoinPINVOKE.SKY_cipher_PubKeySlice_Swap(tmpp0, p1, p2); + return ret; + } } - public static uint SKY_cipher_RandByte(long p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_RandByte(p0, SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; + public static uint SKY_cipher_RandByte(long p0, GoSlice p1) { +var tmpp1 = GoSlice.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_cipher_RandByte(p0, tmpp1); + return ret; + } } public static uint SKY_cipher_NewPubKey(GoSlice p0, cipher_PubKey p1) { @@ -1264,11 +1442,12 @@ public static uint SKY_cipher_PubKeyFromSecKey(cipher_SecKey p0, cipher_PubKey p } } - public static uint SKY_cipher_PubKeyFromSig(SWIGTYPE_p_a_65__GoUint8_ p0, cipher_SecKey p1, cipher_PubKey p2) { + public static uint SKY_cipher_PubKeyFromSig(cipher_Sig p0, cipher_SecKey p1, cipher_PubKey p2) { +var tmpp0 = cipher_Sig.getCPtr (p0); var tmpp1 = cipher_SecKey.getCPtr (p1); var tmpp2 = cipher_PubKey.getCPtr (p2); { - uint ret = skycoinPINVOKE.SKY_cipher_PubKeyFromSig(SWIGTYPE_p_a_65__GoUint8_.getCPtr(p0), tmpp1, tmpp2); + uint ret = skycoinPINVOKE.SKY_cipher_PubKeyFromSig(tmpp0, tmpp1, tmpp2); return ret; } } @@ -1290,10 +1469,11 @@ public static uint SKY_cipher_PubKey_Hex(cipher_PubKey p0, _GoString_ p1) { } } - public static uint SKY_cipher_PubKey_ToAddressHash(cipher_PubKey p0, SWIGTYPE_p_a_20__GoUint8_ p1) { + public static uint SKY_cipher_PubKey_ToAddressHash(cipher_PubKey p0, cipher_Ripemd160 p1) { var tmpp0 = cipher_PubKey.getCPtr (p0); +var tmpp1 = cipher_Ripemd160.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_cipher_PubKey_ToAddressHash(tmpp0, SWIGTYPE_p_a_20__GoUint8_.getCPtr(p1)); + uint ret = skycoinPINVOKE.SKY_cipher_PubKey_ToAddressHash(tmpp0, tmpp1); return ret; } } @@ -1333,67 +1513,77 @@ public static uint SKY_cipher_SecKey_Hex(cipher_SecKey p0, _GoString_ p1) { } } - public static uint SKY_cipher_ECDH(cipher_PubKey p0, cipher_SecKey p1, SWIGTYPE_p_GoSlice_ p2) { + public static uint SKY_cipher_ECDH(cipher_PubKey p0, cipher_SecKey p1, GoSlice p2) { var tmpp0 = cipher_PubKey.getCPtr (p0); var tmpp1 = cipher_SecKey.getCPtr (p1); +var tmpp2 = GoSlice.getCPtr (p2); { - uint ret = skycoinPINVOKE.SKY_cipher_ECDH(tmpp0, tmpp1, SWIGTYPE_p_GoSlice_.getCPtr(p2)); + uint ret = skycoinPINVOKE.SKY_cipher_ECDH(tmpp0, tmpp1, tmpp2); return ret; } } - public static uint SKY_cipher_NewSig(GoSlice p0, SWIGTYPE_p_a_65__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_NewSig(GoSlice.getCPtr(p0), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_cipher_NewSig(GoSlice p0, cipher_Sig p1) { +var tmpp1 = cipher_Sig.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_cipher_NewSig(GoSlice.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } - public static uint SKY_cipher_SigFromHex(string p0, SWIGTYPE_p_a_65__GoUint8_ p1) { + public static uint SKY_cipher_SigFromHex(string p0, cipher_Sig p1) { var tmpp0 = p0; +var tmpp1 = cipher_Sig.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_cipher_SigFromHex(tmpp0, SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1)); + uint ret = skycoinPINVOKE.SKY_cipher_SigFromHex(tmpp0, tmpp1); return ret; } } - public static uint SKY_cipher_Sig_Hex(SWIGTYPE_p_a_65__GoUint8_ p0, _GoString_ p1) { + public static uint SKY_cipher_Sig_Hex(cipher_Sig p0, _GoString_ p1) { +var tmpp0 = cipher_Sig.getCPtr (p0); var tmpp1 = _GoString_.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_cipher_Sig_Hex(SWIGTYPE_p_a_65__GoUint8_.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_cipher_Sig_Hex(tmpp0, tmpp1); return ret; } } - public static uint SKY_cipher_SignHash(cipher_SecKey p0, cipher_SecKey p1, SWIGTYPE_p_a_65__GoUint8_ p2) { + public static uint SKY_cipher_SignHash(cipher_SecKey p0, cipher_SecKey p1, cipher_Sig p2) { var tmpp0 = cipher_SecKey.getCPtr (p0); var tmpp1 = cipher_SecKey.getCPtr (p1); +var tmpp2 = cipher_Sig.getCPtr (p2); { - uint ret = skycoinPINVOKE.SKY_cipher_SignHash(tmpp0, tmpp1, SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); + uint ret = skycoinPINVOKE.SKY_cipher_SignHash(tmpp0, tmpp1, tmpp2); return ret; } } - public static uint SKY_cipher_ChkSig(cipher__Address p0, cipher_SecKey p1, SWIGTYPE_p_a_65__GoUint8_ p2) { + public static uint SKY_cipher_ChkSig(cipher__Address p0, cipher_SecKey p1, cipher_Sig p2) { var tmpp1 = cipher_SecKey.getCPtr (p1); +var tmpp2 = cipher_Sig.getCPtr (p2); { - uint ret = skycoinPINVOKE.SKY_cipher_ChkSig(cipher__Address.getCPtr(p0), tmpp1, SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); + uint ret = skycoinPINVOKE.SKY_cipher_ChkSig(cipher__Address.getCPtr(p0), tmpp1, tmpp2); return ret; } } - public static uint SKY_cipher_VerifySignedHash(SWIGTYPE_p_a_65__GoUint8_ p0, cipher_SecKey p1) { + public static uint SKY_cipher_VerifySignedHash(cipher_Sig p0, cipher_SecKey p1) { +var tmpp0 = cipher_Sig.getCPtr (p0); var tmpp1 = cipher_SecKey.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_cipher_VerifySignedHash(SWIGTYPE_p_a_65__GoUint8_.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_cipher_VerifySignedHash(tmpp0, tmpp1); return ret; } } - public static uint SKY_cipher_VerifySignature(cipher_PubKey p0, SWIGTYPE_p_a_65__GoUint8_ p1, cipher_SecKey p2) { + public static uint SKY_cipher_VerifySignature(cipher_PubKey p0, cipher_Sig p1, cipher_SecKey p2) { var tmpp0 = cipher_PubKey.getCPtr (p0); +var tmpp1 = cipher_Sig.getCPtr (p1); var tmpp2 = cipher_SecKey.getCPtr (p2); { - uint ret = skycoinPINVOKE.SKY_cipher_VerifySignature(tmpp0, SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1), tmpp2); + uint ret = skycoinPINVOKE.SKY_cipher_VerifySignature(tmpp0, tmpp1, tmpp2); return ret; } } @@ -1408,26 +1598,34 @@ public static uint SKY_cipher_GenerateDeterministicKeyPair(GoSlice p0, cipher_Pu } } - public static uint SKY_cipher_DeterministicKeyPairIterator(GoSlice p0, SWIGTYPE_p_GoSlice_ p1, cipher_PubKey p2, cipher_SecKey p3) { + public static uint SKY_cipher_DeterministicKeyPairIterator(GoSlice p0, GoSlice p1, cipher_PubKey p2, cipher_SecKey p3) { +var tmpp1 = GoSlice.getCPtr (p1); var tmpp2 = cipher_PubKey.getCPtr (p2); var tmpp3 = cipher_SecKey.getCPtr (p3); { - uint ret = skycoinPINVOKE.SKY_cipher_DeterministicKeyPairIterator(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1), tmpp2, tmpp3); + uint ret = skycoinPINVOKE.SKY_cipher_DeterministicKeyPairIterator(GoSlice.getCPtr(p0), tmpp1, tmpp2, tmpp3); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } - public static uint SKY_cipher_GenerateDeterministicKeyPairs(GoSlice p0, long p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_cipher_GenerateDeterministicKeyPairs(GoSlice.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_cipher_GenerateDeterministicKeyPairs(GoSlice p0, long p1, GoSlice p2) { +var tmpp2 = GoSlice.getCPtr (p2); + { + uint ret = skycoinPINVOKE.SKY_cipher_GenerateDeterministicKeyPairs(GoSlice.getCPtr(p0), p1, tmpp2); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } - public static uint SKY_cipher_GenerateDeterministicKeyPairsSeed(GoSlice p0, long p1, SWIGTYPE_p_GoSlice_ p2, SWIGTYPE_p_GoSlice_ p3) { - uint ret = skycoinPINVOKE.SKY_cipher_GenerateDeterministicKeyPairsSeed(GoSlice.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_cipher_GenerateDeterministicKeyPairsSeed(GoSlice p0, long p1, GoSlice p2, GoSlice p3) { +var tmpp2 = GoSlice.getCPtr (p2); +var tmpp3 = GoSlice.getCPtr (p3); + { + uint ret = skycoinPINVOKE.SKY_cipher_GenerateDeterministicKeyPairsSeed(GoSlice.getCPtr(p0), p1, tmpp2, tmpp3); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } public static uint SKY_cipher_TestSecKey(cipher_SecKey p0) { @@ -1500,9 +1698,12 @@ public static uint SKY_secp256k1go_Signature_ParseBytes(SWIGTYPE_p_Signature_Han return ret; } - public static uint SKY_secp256k1go_Signature_Bytes(SWIGTYPE_p_Signature_Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Bytes(SWIGTYPE_p_Signature_Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; + public static uint SKY_secp256k1go_Signature_Bytes(SWIGTYPE_p_Signature_Handle p0, GoSlice p1) { +var tmpp1 = GoSlice.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Bytes(SWIGTYPE_p_Signature_Handle.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_cli_App_Run(SWIGTYPE_p_App__Handle p0, string p1) { @@ -1552,10 +1753,14 @@ public static uint SKY_cli_Setenv(string p0, string p1) { } } - public static uint SKY_poly1305_Verify(SWIGTYPE_p_GoSlice_ p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2, SWIGTYPE_p_unsigned_char p3) { - uint ret = skycoinPINVOKE.SKY_poly1305_Verify(SWIGTYPE_p_GoSlice_.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_poly1305_Verify(GoSlice p0, GoSlice p1, GoSlice p2, SWIGTYPE_p_unsigned_char p3) { +var tmpp0 = GoSlice.getCPtr (p0); +var tmpp2 = GoSlice.getCPtr (p2); + { + uint ret = skycoinPINVOKE.SKY_poly1305_Verify(tmpp0, GoSlice.getCPtr(p1), tmpp2, SWIGTYPE_p_unsigned_char.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } public static uint SKY_wallet_NewBalance(ulong p0, ulong p1, wallet__Balance p2) { @@ -1599,9 +1804,12 @@ public static uint SKY_httphelper_Address_UnmarshalJSON(httphelper__Address p0, return ret; } - public static uint SKY_httphelper_Address_MarshalJSON(httphelper__Address p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_httphelper_Address_MarshalJSON(httphelper__Address.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; + public static uint SKY_httphelper_Address_MarshalJSON(httphelper__Address p0, GoSlice p1) { +var tmpp1 = GoSlice.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_httphelper_Address_MarshalJSON(httphelper__Address.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_httphelper_Coins_UnmarshalJSON(SWIGTYPE_p_GoUint64_ p0, GoSlice p1) { @@ -1610,9 +1818,12 @@ public static uint SKY_httphelper_Coins_UnmarshalJSON(SWIGTYPE_p_GoUint64_ p0, G return ret; } - public static uint SKY_httphelper_Coins_MarshalJSON(SWIGTYPE_p_GoUint64_ p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_httphelper_Coins_MarshalJSON(SWIGTYPE_p_GoUint64_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; + public static uint SKY_httphelper_Coins_MarshalJSON(SWIGTYPE_p_GoUint64_ p0, GoSlice p1) { +var tmpp1 = GoSlice.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_httphelper_Coins_MarshalJSON(SWIGTYPE_p_GoUint64_.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_httphelper_Coins_Value(SWIGTYPE_p_GoUint64_ p0, SWIGTYPE_p_unsigned_long_long p1) { @@ -1626,9 +1837,12 @@ public static uint SKY_httphelper_Hours_UnmarshalJSON(SWIGTYPE_p_GoUint64_ p0, G return ret; } - public static uint SKY_httphelper_Hours_MarshalJSON(SWIGTYPE_p_GoUint64_ p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_httphelper_Hours_MarshalJSON(SWIGTYPE_p_GoUint64_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; + public static uint SKY_httphelper_Hours_MarshalJSON(SWIGTYPE_p_GoUint64_ p0, GoSlice p1) { +var tmpp1 = GoSlice.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_httphelper_Hours_MarshalJSON(SWIGTYPE_p_GoUint64_.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_httphelper_Hours_Value(SWIGTYPE_p_GoUint64_ p0, SWIGTYPE_p_unsigned_long_long p1) { @@ -1736,16 +1950,22 @@ public static uint SKY_secp256k1go_ECmultGen(secp256k1go__XYZ p0, SWIGTYPE_p_Num return ret; } - public static uint SKY_encrypt_Sha256Xor_Encrypt(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_encrypt_Sha256Xor_Encrypt(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_encrypt_Sha256Xor_Encrypt(GoSlice p0, GoSlice p1, GoSlice p2) { +var tmpp2 = GoSlice.getCPtr (p2); + { + uint ret = skycoinPINVOKE.SKY_encrypt_Sha256Xor_Encrypt(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), tmpp2); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } - public static uint SKY_encrypt_Sha256Xor_Decrypt(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_encrypt_Sha256Xor_Decrypt(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_encrypt_Sha256Xor_Decrypt(GoSlice p0, GoSlice p1, GoSlice p2) { +var tmpp2 = GoSlice.getCPtr (p2); + { + uint ret = skycoinPINVOKE.SKY_encrypt_Sha256Xor_Decrypt(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), tmpp2); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } public static uint SKY_droplet_FromString(string p0, SWIGTYPE_p_unsigned_long_long p1) { @@ -1862,14 +2082,20 @@ public static uint SKY_cipher_Address_Null(cipher__Address p0, SWIGTYPE_p_unsign return ret; } - public static uint SKY_cipher_Address_Bytes(cipher__Address p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_Address_Bytes(cipher__Address.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; + public static uint SKY_cipher_Address_Bytes(cipher__Address p0, GoSlice p1) { +var tmpp1 = GoSlice.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_cipher_Address_Bytes(cipher__Address.getCPtr(p0), tmpp1); + return ret; + } } - public static uint SKY_cipher_Address_BitcoinBytes(cipher__Address p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_Address_BitcoinBytes(cipher__Address.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; + public static uint SKY_cipher_Address_BitcoinBytes(cipher__Address p0, GoSlice p1) { +var tmpp1 = GoSlice.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_cipher_Address_BitcoinBytes(cipher__Address.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_cipher_Address_Verify(cipher__Address p0, cipher_PubKey p1) { @@ -2138,10 +2364,13 @@ public static uint SKY_ripemd160_Write(SWIGTYPE_p_Hash_Handle p0, GoSlice p1, SW return ret; } - public static uint SKY_ripemd160_Sum(SWIGTYPE_p_Hash_Handle p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_ripemd160_Sum(SWIGTYPE_p_Hash_Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_ripemd160_Sum(SWIGTYPE_p_Hash_Handle p0, GoSlice p1, GoSlice p2) { +var tmpp2 = GoSlice.getCPtr (p2); + { + uint ret = skycoinPINVOKE.SKY_ripemd160_Sum(SWIGTYPE_p_Hash_Handle.getCPtr(p0), GoSlice.getCPtr(p1), tmpp2); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } public static uint SKY_secp256k1go_Number_Create(SWIGTYPE_p_Number_Handle p0) { @@ -2204,71 +2433,115 @@ public static uint SKY_coin_UxOut_CoinHours(coin__UxOut p0, ulong p1, SWIGTYPE_p return ret; } - public static uint SKY_coin_UxArray_Hashes(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_UxArray_Hashes(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; + public static uint SKY_coin_UxArray_Hashes(GoSlice p0, GoSlice p1) { +var tmpp0 = GoSlice.getCPtr (p0); +var tmpp1 = GoSlice.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Hashes(tmpp0, tmpp1); + return ret; + } } - public static uint SKY_coin_UxArray_HasDupes(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_coin_UxArray_HasDupes(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); - return ret; + public static uint SKY_coin_UxArray_HasDupes(GoSlice p0, SWIGTYPE_p_unsigned_char p1) { +var tmpp0 = GoSlice.getCPtr (p0); + { + uint ret = skycoinPINVOKE.SKY_coin_UxArray_HasDupes(tmpp0, SWIGTYPE_p_unsigned_char.getCPtr(p1)); + return ret; + } } - public static uint SKY_coin_UxArray_Sort(SWIGTYPE_p_GoSlice_ p0) { - uint ret = skycoinPINVOKE.SKY_coin_UxArray_Sort(SWIGTYPE_p_GoSlice_.getCPtr(p0)); - return ret; + public static uint SKY_coin_UxArray_Sort(GoSlice p0) { +var tmpp0 = GoSlice.getCPtr (p0); + { + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Sort(tmpp0); + return ret; + } } - public static uint SKY_coin_UxArray_Len(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_UxArray_Len(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); - return ret; + public static uint SKY_coin_UxArray_Len(GoSlice p0, SWIGTYPE_p_long_long p1) { +var tmpp0 = GoSlice.getCPtr (p0); + { + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Len(tmpp0, SWIGTYPE_p_long_long.getCPtr(p1)); + return ret; + } } - public static uint SKY_coin_UxArray_Less(SWIGTYPE_p_GoSlice_ p0, long p1, long p2, SWIGTYPE_p_unsigned_char p3) { - uint ret = skycoinPINVOKE.SKY_coin_UxArray_Less(SWIGTYPE_p_GoSlice_.getCPtr(p0), p1, p2, SWIGTYPE_p_unsigned_char.getCPtr(p3)); - return ret; + public static uint SKY_coin_UxArray_Less(GoSlice p0, long p1, long p2, SWIGTYPE_p_unsigned_char p3) { +var tmpp0 = GoSlice.getCPtr (p0); + { + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Less(tmpp0, p1, p2, SWIGTYPE_p_unsigned_char.getCPtr(p3)); + return ret; + } } - public static uint SKY_coin_UxArray_Swap(SWIGTYPE_p_GoSlice_ p0, long p1, long p2) { - uint ret = skycoinPINVOKE.SKY_coin_UxArray_Swap(SWIGTYPE_p_GoSlice_.getCPtr(p0), p1, p2); - return ret; + public static uint SKY_coin_UxArray_Swap(GoSlice p0, long p1, long p2) { +var tmpp0 = GoSlice.getCPtr (p0); + { + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Swap(tmpp0, p1, p2); + return ret; + } } - public static uint SKY_coin_UxArray_Coins(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_UxArray_Coins(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); - return ret; + public static uint SKY_coin_UxArray_Coins(GoSlice p0, SWIGTYPE_p_unsigned_long_long p1) { +var tmpp0 = GoSlice.getCPtr (p0); + { + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Coins(tmpp0, SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + return ret; + } } - public static uint SKY_coin_UxArray_CoinHours(SWIGTYPE_p_GoSlice_ p0, ulong p1, SWIGTYPE_p_unsigned_long_long p2) { - uint ret = skycoinPINVOKE.SKY_coin_UxArray_CoinHours(SWIGTYPE_p_GoSlice_.getCPtr(p0), p1, SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); - return ret; + public static uint SKY_coin_UxArray_CoinHours(GoSlice p0, ulong p1, SWIGTYPE_p_unsigned_long_long p2) { +var tmpp0 = GoSlice.getCPtr (p0); + { + uint ret = skycoinPINVOKE.SKY_coin_UxArray_CoinHours(tmpp0, p1, SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); + return ret; + } } - public static uint SKY_coin_UxArray_Sub(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_GoSlice_ p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_UxArray_Sub(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - return ret; + public static uint SKY_coin_UxArray_Sub(GoSlice p0, GoSlice p1, GoSlice p2) { +var tmpp0 = GoSlice.getCPtr (p0); +var tmpp1 = GoSlice.getCPtr (p1); +var tmpp2 = GoSlice.getCPtr (p2); + { + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Sub(tmpp0, tmpp1, tmpp2); + return ret; + } } - public static uint SKY_coin_UxArray_Add(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_GoSlice_ p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_UxArray_Add(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - return ret; + public static uint SKY_coin_UxArray_Add(GoSlice p0, GoSlice p1, GoSlice p2) { +var tmpp0 = GoSlice.getCPtr (p0); +var tmpp1 = GoSlice.getCPtr (p1); +var tmpp2 = GoSlice.getCPtr (p2); + { + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Add(tmpp0, tmpp1, tmpp2); + return ret; + } } - public static uint SKY_coin_NewAddressUxOuts(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_AddressUxOuts_Handle p1) { - uint ret = skycoinPINVOKE.SKY_coin_NewAddressUxOuts(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p1)); - return ret; + public static uint SKY_coin_NewAddressUxOuts(GoSlice p0, SWIGTYPE_p_AddressUxOuts_Handle p1) { +var tmpp0 = GoSlice.getCPtr (p0); + { + uint ret = skycoinPINVOKE.SKY_coin_NewAddressUxOuts(tmpp0, SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p1)); + return ret; + } } - public static uint SKY_coin_AddressUxOuts_Keys(SWIGTYPE_p_AddressUxOuts_Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Keys(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_coin_AddressUxOuts_Keys(SWIGTYPE_p_AddressUxOuts_Handle p0, GoSlice p1) { +var tmpp1 = GoSlice.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Keys(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } - public static uint SKY_coin_AddressUxOuts_Flatten(SWIGTYPE_p_AddressUxOuts_Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Flatten(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_coin_AddressUxOuts_Flatten(SWIGTYPE_p_AddressUxOuts_Handle p0, GoSlice p1) { +var tmpp1 = GoSlice.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Flatten(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } public static uint SKY_coin_AddressUxOuts_Sub(SWIGTYPE_p_AddressUxOuts_Handle p0, SWIGTYPE_p_AddressUxOuts_Handle p1, SWIGTYPE_p_AddressUxOuts_Handle p2) { @@ -2283,10 +2556,13 @@ public static uint SKY_coin_AddressUxOuts_Add(SWIGTYPE_p_AddressUxOuts_Handle p0 return ret; } - public static uint SKY_coin_AddressUxOuts_Get(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher__Address p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Get(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_coin_AddressUxOuts_Get(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher__Address p1, GoSlice p2) { +var tmpp2 = GoSlice.getCPtr (p2); + { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Get(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), tmpp2); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } public static uint SKY_coin_AddressUxOuts_HasKey(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher__Address p1, SWIGTYPE_p_unsigned_char p2) { @@ -2307,22 +2583,31 @@ public static uint SKY_coin_AddressUxOuts_Length(SWIGTYPE_p_AddressUxOuts_Handle return ret; } - public static uint SKY_coin_AddressUxOuts_Set(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher__Address p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Set(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_coin_AddressUxOuts_Set(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher__Address p1, GoSlice p2) { +var tmpp2 = GoSlice.getCPtr (p2); + { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Set(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), tmpp2); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } - public static uint SKY_encrypt_ScryptChacha20poly1305_Encrypt(encrypt__ScryptChacha20poly1305 p0, GoSlice p1, GoSlice p2, SWIGTYPE_p_GoSlice_ p3) { - uint ret = skycoinPINVOKE.SKY_encrypt_ScryptChacha20poly1305_Encrypt(encrypt__ScryptChacha20poly1305.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_encrypt_ScryptChacha20poly1305_Encrypt(encrypt__ScryptChacha20poly1305 p0, GoSlice p1, GoSlice p2, GoSlice p3) { +var tmpp3 = GoSlice.getCPtr (p3); + { + uint ret = skycoinPINVOKE.SKY_encrypt_ScryptChacha20poly1305_Encrypt(encrypt__ScryptChacha20poly1305.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), tmpp3); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } - public static uint SKY_encrypt_ScryptChacha20poly1305_Decrypt(encrypt__ScryptChacha20poly1305 p0, GoSlice p1, GoSlice p2, SWIGTYPE_p_GoSlice_ p3) { - uint ret = skycoinPINVOKE.SKY_encrypt_ScryptChacha20poly1305_Decrypt(encrypt__ScryptChacha20poly1305.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_encrypt_ScryptChacha20poly1305_Decrypt(encrypt__ScryptChacha20poly1305 p0, GoSlice p1, GoSlice p2, GoSlice p3) { +var tmpp3 = GoSlice.getCPtr (p3); + { + uint ret = skycoinPINVOKE.SKY_encrypt_ScryptChacha20poly1305_Decrypt(encrypt__ScryptChacha20poly1305.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), tmpp3); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } public static uint SKY_wallet_CreateOptionsHandle(string p0, string p1, string p2, byte p3, string p4, string p5, ulong p6, SWIGTYPE_p_Options__Handle p7) { @@ -2355,57 +2640,88 @@ public static uint SKY_cli_AddPrivateKeyToFile(string p0, string p1, SWIGTYPE_p_ } } - public static uint SKY_secp256k1_GenerateKeyPair(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1_GenerateKeyPair(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; + public static uint SKY_secp256k1_GenerateKeyPair(GoSlice p0, GoSlice p1) { +var tmpp0 = GoSlice.getCPtr (p0); +var tmpp1 = GoSlice.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_secp256k1_GenerateKeyPair(tmpp0, tmpp1); + return ret; + } } - public static uint SKY_secp256k1_PubkeyFromSeckey(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1_PubkeyFromSeckey(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_secp256k1_PubkeyFromSeckey(GoSlice p0, GoSlice p1) { +var tmpp1 = GoSlice.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_secp256k1_PubkeyFromSeckey(GoSlice.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } - public static uint SKY_secp256k1_UncompressPubkey(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1_UncompressPubkey(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_secp256k1_UncompressPubkey(GoSlice p0, GoSlice p1) { +var tmpp1 = GoSlice.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_secp256k1_UncompressPubkey(GoSlice.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } - public static uint SKY_secp256k1_UncompressedPubkeyFromSeckey(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1_UncompressedPubkeyFromSeckey(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_secp256k1_UncompressedPubkeyFromSeckey(GoSlice p0, GoSlice p1) { +var tmpp1 = GoSlice.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_secp256k1_UncompressedPubkeyFromSeckey(GoSlice.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } - public static uint SKY_secp256k1_Secp256k1Hash(GoSlice p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1_Secp256k1Hash(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_secp256k1_Secp256k1Hash(GoSlice p0, GoSlice p1) { +var tmpp1 = GoSlice.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_secp256k1_Secp256k1Hash(GoSlice.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } - public static uint SKY_secp256k1_GenerateDeterministicKeyPair(GoSlice p0, SWIGTYPE_p_GoSlice_ p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1_GenerateDeterministicKeyPair(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_secp256k1_GenerateDeterministicKeyPair(GoSlice p0, GoSlice p1, GoSlice p2) { +var tmpp1 = GoSlice.getCPtr (p1); +var tmpp2 = GoSlice.getCPtr (p2); + { + uint ret = skycoinPINVOKE.SKY_secp256k1_GenerateDeterministicKeyPair(GoSlice.getCPtr(p0), tmpp1, tmpp2); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } - public static uint SKY_secp256k1_DeterministicKeyPairIterator(GoSlice p0, SWIGTYPE_p_GoSlice_ p1, SWIGTYPE_p_GoSlice_ p2, SWIGTYPE_p_GoSlice_ p3) { - uint ret = skycoinPINVOKE.SKY_secp256k1_DeterministicKeyPairIterator(GoSlice.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_secp256k1_DeterministicKeyPairIterator(GoSlice p0, GoSlice p1, GoSlice p2, GoSlice p3) { +var tmpp1 = GoSlice.getCPtr (p1); +var tmpp2 = GoSlice.getCPtr (p2); +var tmpp3 = GoSlice.getCPtr (p3); + { + uint ret = skycoinPINVOKE.SKY_secp256k1_DeterministicKeyPairIterator(GoSlice.getCPtr(p0), tmpp1, tmpp2, tmpp3); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } - public static uint SKY_secp256k1_Sign(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1_Sign(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_secp256k1_Sign(GoSlice p0, GoSlice p1, GoSlice p2) { +var tmpp2 = GoSlice.getCPtr (p2); + { + uint ret = skycoinPINVOKE.SKY_secp256k1_Sign(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), tmpp2); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } - public static uint SKY_secp256k1_SignDeterministic(GoSlice p0, GoSlice p1, GoSlice p2, SWIGTYPE_p_GoSlice_ p3) { - uint ret = skycoinPINVOKE.SKY_secp256k1_SignDeterministic(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), SWIGTYPE_p_GoSlice_.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_secp256k1_SignDeterministic(GoSlice p0, GoSlice p1, GoSlice p2, GoSlice p3) { +var tmpp3 = GoSlice.getCPtr (p3); + { + uint ret = skycoinPINVOKE.SKY_secp256k1_SignDeterministic(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), tmpp3); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } public static uint SKY_secp256k1_VerifySeckey(GoSlice p0, SWIGTYPE_p_long_long p1) { @@ -2441,16 +2757,22 @@ public static uint SKY_secp256k1_SignatureErrorString(GoSlice p0, GoSlice p1, Go } } - public static uint SKY_secp256k1_RecoverPubkey(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1_RecoverPubkey(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_secp256k1_RecoverPubkey(GoSlice p0, GoSlice p1, GoSlice p2) { +var tmpp2 = GoSlice.getCPtr (p2); + { + uint ret = skycoinPINVOKE.SKY_secp256k1_RecoverPubkey(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), tmpp2); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } - public static uint SKY_secp256k1_ECDH(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1_ECDH(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_secp256k1_ECDH(GoSlice p0, GoSlice p1, GoSlice p2) { +var tmpp2 = GoSlice.getCPtr (p2); + { + uint ret = skycoinPINVOKE.SKY_secp256k1_ECDH(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), tmpp2); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } public static uint SKY_apputil_CatchInterruptPanic() { @@ -2499,9 +2821,12 @@ public static uint SKY_fee_RemainingHours(ulong p0, SWIGTYPE_p_unsigned_long_lon return ret; } - public static uint SKY_fee_TransactionFee(SWIGTYPE_p_Transaction__Handle p0, ulong p1, SWIGTYPE_p_GoSlice_ p2, SWIGTYPE_p_unsigned_long_long p3) { - uint ret = skycoinPINVOKE.SKY_fee_TransactionFee(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, SWIGTYPE_p_GoSlice_.getCPtr(p2), SWIGTYPE_p_unsigned_long_long.getCPtr(p3)); - return ret; + public static uint SKY_fee_TransactionFee(SWIGTYPE_p_Transaction__Handle p0, ulong p1, GoSlice p2, SWIGTYPE_p_unsigned_long_long p3) { +var tmpp2 = GoSlice.getCPtr (p2); + { + uint ret = skycoinPINVOKE.SKY_fee_TransactionFee(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, tmpp2, SWIGTYPE_p_unsigned_long_long.getCPtr(p3)); + return ret; + } } public static uint SKY_cli_LoadConfig(SWIGTYPE_p_Config__Handle p0) { @@ -2540,14 +2865,21 @@ public static uint SKY_cli_ConfigFromContext(SWIGTYPE_p_Context__Handle p0, SWIG return ret; } - public static uint SKY_cli_PasswordFromBytes_Password(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_cli_PasswordFromBytes_Password(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; + public static uint SKY_cli_PasswordFromBytes_Password(GoSlice p0, GoSlice p1) { +var tmpp0 = GoSlice.getCPtr (p0); +var tmpp1 = GoSlice.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_cli_PasswordFromBytes_Password(tmpp0, tmpp1); + return ret; + } } - public static uint SKY_cli_PasswordFromTerm_Password(SWIGTYPE_p_GoSlice_ p0) { - uint ret = skycoinPINVOKE.SKY_cli_PasswordFromTerm_Password(SWIGTYPE_p_GoSlice_.getCPtr(p0)); - return ret; + public static uint SKY_cli_PasswordFromTerm_Password(GoSlice p0) { +var tmpp0 = GoSlice.getCPtr (p0); + { + uint ret = skycoinPINVOKE.SKY_cli_PasswordFromTerm_Password(tmpp0); + return ret; + } } public static uint SKY_cli_CreateRawTxFromWallet(SWIGTYPE_p_WebRpcClient__Handle p0, string p1, string p2, GoSlice p3, SWIGTYPE_p_PasswordReader__Handle p4, SWIGTYPE_p_Transaction__Handle p5) { @@ -2748,22 +3080,31 @@ public static uint SKY_secp256k1go_Field_Sqr(secp256k1go__Field p0, secp256k1go_ return ret; } - public static uint SKY_scrypt_Key(GoSlice p0, GoSlice p1, long p2, long p3, long p4, long p5, SWIGTYPE_p_GoSlice_ p6) { - uint ret = skycoinPINVOKE.SKY_scrypt_Key(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), p2, p3, p4, p5, SWIGTYPE_p_GoSlice_.getCPtr(p6)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_scrypt_Key(GoSlice p0, GoSlice p1, long p2, long p3, long p4, long p5, GoSlice p6) { +var tmpp6 = GoSlice.getCPtr (p6); + { + uint ret = skycoinPINVOKE.SKY_scrypt_Key(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), p2, p3, p4, p5, tmpp6); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } - public static uint SKY_cipher_Ripemd160_Set(SWIGTYPE_p_a_20__GoUint8_ p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_cipher_Ripemd160_Set(SWIGTYPE_p_a_20__GoUint8_.getCPtr(p0), GoSlice.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_cipher_Ripemd160_Set(cipher_Ripemd160 p0, GoSlice p1) { +var tmpp0 = cipher_Ripemd160.getCPtr (p0); + { + uint ret = skycoinPINVOKE.SKY_cipher_Ripemd160_Set(tmpp0, GoSlice.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } - public static uint SKY_cipher_HashRipemd160(GoSlice p0, SWIGTYPE_p_a_20__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_HashRipemd160(GoSlice.getCPtr(p0), SWIGTYPE_p_a_20__GoUint8_.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; + public static uint SKY_cipher_HashRipemd160(GoSlice p0, cipher_Ripemd160 p1) { +var tmpp1 = cipher_Ripemd160.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_cipher_HashRipemd160(GoSlice.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } } public static uint SKY_cipher_SHA256_Set(cipher_SecKey p0, GoSlice p1) { @@ -2908,19 +3249,28 @@ public static uint SKY_coin_Transaction_GetSignaturesCount(SWIGTYPE_p_Transactio return ret; } - public static uint SKY_coin_Transaction_GetSignatureAt(SWIGTYPE_p_Transaction__Handle p0, long p1, SWIGTYPE_p_a_65__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetSignatureAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); - return ret; + public static uint SKY_coin_Transaction_GetSignatureAt(SWIGTYPE_p_Transaction__Handle p0, long p1, cipher_Sig p2) { +var tmpp2 = cipher_Sig.getCPtr (p2); + { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetSignatureAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, tmpp2); + return ret; + } } - public static uint SKY_coin_Transaction_SetSignatureAt(SWIGTYPE_p_Transaction__Handle p0, long p1, SWIGTYPE_p_a_65__GoUint8_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetSignatureAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, SWIGTYPE_p_a_65__GoUint8_.getCPtr(p2)); - return ret; + public static uint SKY_coin_Transaction_SetSignatureAt(SWIGTYPE_p_Transaction__Handle p0, long p1, cipher_Sig p2) { +var tmpp2 = cipher_Sig.getCPtr (p2); + { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetSignatureAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, tmpp2); + return ret; + } } - public static uint SKY_coin_Transaction_PushSignature(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_a_65__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushSignature(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_a_65__GoUint8_.getCPtr(p1)); - return ret; + public static uint SKY_coin_Transaction_PushSignature(SWIGTYPE_p_Transaction__Handle p0, cipher_Sig p1) { +var tmpp1 = cipher_Sig.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushSignature(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_coin_Transaction_ResetOutputs(SWIGTYPE_p_Transaction__Handle p0, long p1) { @@ -2938,9 +3288,12 @@ public static uint SKY_coin_Transaction_Verify(SWIGTYPE_p_Transaction__Handle p0 return ret; } - public static uint SKY_coin_Transaction_VerifyInput(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_VerifyInput(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; + public static uint SKY_coin_Transaction_VerifyInput(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1) { +var tmpp1 = GoSlice.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_VerifyInput(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_coin_Transaction_PushInput(SWIGTYPE_p_Transaction__Handle p0, cipher_SecKey p1, SWIGTYPE_p_unsigned_short p2) { @@ -2992,9 +3345,12 @@ public static uint SKY_coin_Transaction_SizeHash(SWIGTYPE_p_Transaction__Handle } } - public static uint SKY_coin_Transaction_TxID(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_TxID(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; + public static uint SKY_coin_Transaction_TxID(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1) { +var tmpp1 = GoSlice.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_TxID(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_coin_Transaction_TxIDHex(SWIGTYPE_p_Transaction__Handle p0, _GoString_ p1) { @@ -3018,9 +3374,12 @@ public static uint SKY_coin_Transaction_HashInner(SWIGTYPE_p_Transaction__Handle } } - public static uint SKY_coin_Transaction_Serialize(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_Serialize(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; + public static uint SKY_coin_Transaction_Serialize(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1) { +var tmpp1 = GoSlice.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_Serialize(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_coin_TransactionDeserialize(GoSlice p0, SWIGTYPE_p_Transaction__Handle p1) { @@ -3064,9 +3423,12 @@ public static uint SKY_coin_Transactions_GetAt(SWIGTYPE_p_Transactions__Handle p return ret; } - public static uint SKY_coin_Transactions_Hashes(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transactions_Hashes(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; + public static uint SKY_coin_Transactions_Hashes(SWIGTYPE_p_Transactions__Handle p0, GoSlice p1) { +var tmpp1 = GoSlice.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_Hashes(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), tmpp1); + return ret; + } } public static uint SKY_coin_Transactions_Size(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_long_long p1) { @@ -3113,14 +3475,22 @@ public static uint SKY_coin_SortableTransactions_Swap(SWIGTYPE_p_SortableTransac return ret; } - public static uint SKY_coin_VerifyTransactionCoinsSpending(SWIGTYPE_p_GoSlice_ p0, SWIGTYPE_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_VerifyTransactionCoinsSpending(SWIGTYPE_p_GoSlice_.getCPtr(p0), SWIGTYPE_p_GoSlice_.getCPtr(p1)); - return ret; + public static uint SKY_coin_VerifyTransactionCoinsSpending(GoSlice p0, GoSlice p1) { +var tmpp0 = GoSlice.getCPtr (p0); +var tmpp1 = GoSlice.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_coin_VerifyTransactionCoinsSpending(tmpp0, tmpp1); + return ret; + } } - public static uint SKY_coin_VerifyTransactionHoursSpending(ulong p0, SWIGTYPE_p_GoSlice_ p1, SWIGTYPE_p_GoSlice_ p2) { - uint ret = skycoinPINVOKE.SKY_coin_VerifyTransactionHoursSpending(p0, SWIGTYPE_p_GoSlice_.getCPtr(p1), SWIGTYPE_p_GoSlice_.getCPtr(p2)); - return ret; + public static uint SKY_coin_VerifyTransactionHoursSpending(ulong p0, GoSlice p1, GoSlice p2) { +var tmpp1 = GoSlice.getCPtr (p1); +var tmpp2 = GoSlice.getCPtr (p2); + { + uint ret = skycoinPINVOKE.SKY_coin_VerifyTransactionHoursSpending(p0, tmpp1, tmpp2); + return ret; + } } public static readonly int SKY_OK = skycoinPINVOKE.get_SKY_OK(); diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index 1d96d7cc..c4d98811 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -233,6 +233,51 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeyp_value")] public static extern global::System.IntPtr cipher_SecKeyp_value(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_Sigp")] + public static extern global::System.IntPtr new_cipher_Sigp(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_cipher_Sigp")] + public static extern global::System.IntPtr copy_cipher_Sigp(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_Sigp")] + public static extern void delete_cipher_Sigp(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Sigp_assign")] + public static extern void cipher_Sigp_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Sigp_value")] + public static extern global::System.IntPtr cipher_Sigp_value(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_GoSlicep")] + public static extern global::System.IntPtr new_GoSlicep(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_GoSlicep")] + public static extern global::System.IntPtr copy_GoSlicep(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_GoSlicep")] + public static extern void delete_GoSlicep(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlicep_assign")] + public static extern void GoSlicep_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlicep_value")] + public static extern global::System.IntPtr GoSlicep_value(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_GoStringp_")] + public static extern global::System.IntPtr new_GoStringp_(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_GoStringp_")] + public static extern global::System.IntPtr copy_GoStringp_(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_GoStringp_")] + public static extern void delete_GoStringp_(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoStringp__assign")] + public static extern void GoStringp__assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoStringp__value")] + public static extern global::System.IntPtr GoStringp__value(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKey_isEqual")] public static extern int cipher_PubKey_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1970,6 +2015,12 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Address_isEqual")] public static extern int cipher__Address_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Address_getVersion")] + public static extern char cipher__Address_getVersion(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Address_setVersion")] + public static extern void cipher__Address_setVersion(global::System.Runtime.InteropServices.HandleRef jarg1, char jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cipher__Address_Version")] public static extern void set_cipher__Address_Version(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index 497f58a2..ea19ff51 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -381,6 +381,75 @@ static cipher_SecKey cipher_SecKeyp_value(cipher_SecKey *obj) { return *obj; } + +static cipher_Sig *new_cipher_Sigp() { + return (cipher_Sig *) calloc(1,sizeof(cipher_Sig)); +} + +static cipher_Sig *copy_cipher_Sigp(cipher_Sig value) { + cipher_Sig *obj = (cipher_Sig *) calloc(1,sizeof(cipher_Sig)); + *obj = value; + return obj; +} + +static void delete_cipher_Sigp(cipher_Sig *obj) { + if (obj) free(obj); +} + +static void cipher_Sigp_assign(cipher_Sig *obj, cipher_Sig value) { + *obj = value; +} + +static cipher_Sig cipher_Sigp_value(cipher_Sig *obj) { + return *obj; +} + + +static GoSlice *new_GoSlicep() { + return (GoSlice *) calloc(1,sizeof(GoSlice)); +} + +static GoSlice *copy_GoSlicep(GoSlice value) { + GoSlice *obj = (GoSlice *) calloc(1,sizeof(GoSlice)); + *obj = value; + return obj; +} + +static void delete_GoSlicep(GoSlice *obj) { + if (obj) free(obj); +} + +static void GoSlicep_assign(GoSlice *obj, GoSlice value) { + *obj = value; +} + +static GoSlice GoSlicep_value(GoSlice *obj) { + return *obj; +} + + +static GoString_ *new_GoStringp_() { + return (GoString_ *) calloc(1,sizeof(GoString_)); +} + +static GoString_ *copy_GoStringp_(GoString_ value) { + GoString_ *obj = (GoString_ *) calloc(1,sizeof(GoString_)); + *obj = value; + return obj; +} + +static void delete_GoStringp_(GoString_ *obj) { + if (obj) free(obj); +} + +static void GoStringp__assign(GoString_ *obj, GoString_ value) { + *obj = value; +} + +static GoString_ GoStringp__value(GoString_ *obj) { + return *obj; +} + SWIGINTERN int cipher_PubKey_isEqual(cipher_PubKey *self,cipher_PubKey *a){ return memcmp(self->data, a->data, sizeof(a->data)) == 0; } @@ -543,6 +612,12 @@ SWIGINTERN int cipher__Address_isEqual(cipher__Address *self,cipher__Address *a) } return 0; } +SWIGINTERN char cipher__Address_getVersion(cipher__Address *self){ + return self->Version; + } +SWIGINTERN void cipher__Address_setVersion(cipher__Address *self,char pValue){ + self->Version = pValue; + } SWIGINTERN int coin__Transaction_isEqual(coin__Transaction *self,coin__Transaction *t){ return equalTransactions(self, t); } @@ -772,6 +847,210 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_SecKeyp_value(void * jarg1) } +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_Sigp() { + void * jresult ; + cipher_Sig *result = 0 ; + + result = (cipher_Sig *)new_cipher_Sigp(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_cipher_Sigp(void * jarg1) { + void * jresult ; + cipher_Sig arg1 ; + cipher_Sig *argp1 ; + cipher_Sig *result = 0 ; + + argp1 = (cipher_Sig *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null cipher_Sig", 0); + return 0; + } + arg1 = *argp1; + result = (cipher_Sig *)copy_cipher_Sigp(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_Sigp(void * jarg1) { + cipher_Sig *arg1 = (cipher_Sig *) 0 ; + + arg1 = (cipher_Sig *)jarg1; + delete_cipher_Sigp(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Sigp_assign(void * jarg1, void * jarg2) { + cipher_Sig *arg1 = (cipher_Sig *) 0 ; + cipher_Sig arg2 ; + cipher_Sig *argp2 ; + + arg1 = (cipher_Sig *)jarg1; + argp2 = (cipher_Sig *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null cipher_Sig", 0); + return ; + } + arg2 = *argp2; + cipher_Sigp_assign(arg1,arg2); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_Sigp_value(void * jarg1) { + void * jresult ; + cipher_Sig *arg1 = (cipher_Sig *) 0 ; + cipher_Sig result; + + arg1 = (cipher_Sig *)jarg1; + result = cipher_Sigp_value(arg1); + { + cipher_Sig * resultptr = (cipher_Sig *) malloc(sizeof(cipher_Sig)); + memmove(resultptr, &result, sizeof(cipher_Sig)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_GoSlicep() { + void * jresult ; + GoSlice *result = 0 ; + + result = (GoSlice *)new_GoSlicep(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_GoSlicep(void * jarg1) { + void * jresult ; + GoSlice arg1 ; + GoSlice *argp1 ; + GoSlice *result = 0 ; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + result = (GoSlice *)copy_GoSlicep(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_GoSlicep(void * jarg1) { + GoSlice *arg1 = (GoSlice *) 0 ; + + arg1 = (GoSlice *)jarg1; + delete_GoSlicep(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoSlicep_assign(void * jarg1, void * jarg2) { + GoSlice *arg1 = (GoSlice *) 0 ; + GoSlice arg2 ; + GoSlice *argp2 ; + + arg1 = (GoSlice *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return ; + } + arg2 = *argp2; + GoSlicep_assign(arg1,arg2); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_GoSlicep_value(void * jarg1) { + void * jresult ; + GoSlice *arg1 = (GoSlice *) 0 ; + GoSlice result; + + arg1 = (GoSlice *)jarg1; + result = GoSlicep_value(arg1); + { + GoSlice * resultptr = (GoSlice *) malloc(sizeof(GoSlice)); + memmove(resultptr, &result, sizeof(GoSlice)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_GoStringp_() { + void * jresult ; + GoString_ *result = 0 ; + + result = (GoString_ *)new_GoStringp_(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_GoStringp_(void * jarg1) { + void * jresult ; + GoString_ arg1 ; + GoString_ *argp1 ; + GoString_ *result = 0 ; + + argp1 = (GoString_ *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); + return 0; + } + arg1 = *argp1; + result = (GoString_ *)copy_GoStringp_(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_GoStringp_(void * jarg1) { + GoString_ *arg1 = (GoString_ *) 0 ; + + arg1 = (GoString_ *)jarg1; + delete_GoStringp_(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoStringp__assign(void * jarg1, void * jarg2) { + GoString_ *arg1 = (GoString_ *) 0 ; + GoString_ arg2 ; + GoString_ *argp2 ; + + arg1 = (GoString_ *)jarg1; + argp2 = (GoString_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); + return ; + } + arg2 = *argp2; + GoStringp__assign(arg1,arg2); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_GoStringp__value(void * jarg1) { + void * jresult ; + GoString_ *arg1 = (GoString_ *) 0 ; + GoString_ result; + + arg1 = (GoString_ *)jarg1; + result = GoStringp__value(arg1); + { + GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); + memmove(resultptr, &result, sizeof(GoString_)); + jresult = resultptr; + } + return jresult; +} + + SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_PubKey_isEqual(void * jarg1, void * jarg2) { int jresult ; cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; @@ -2051,7 +2330,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock(void * jarg } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SignedBlock_VerifySignature(void * jarg1, cipher_PubKey* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SignedBlock_VerifySignature(void * jarg1, cipher__PubKey* jarg2) { unsigned int jresult ; coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; @@ -2257,7 +2536,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockHeader_Hash(voi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockHeader_Bytes(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockHeader_Bytes(void * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -2317,7 +2596,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Size(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Bytes(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Bytes(void * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; BlockBody__Handle arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -2333,7 +2612,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Bytes(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_CreateUnspents(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_CreateUnspents(void * jarg1, void * jarg2, GoSlice_ * jarg3) { unsigned int jresult ; coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; Transaction__Handle arg2 ; @@ -2435,7 +2714,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_NewDefaultMnemomic( } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_NewEntropy(long long jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_NewEntropy(long long jarg1, GoSlice_ * jarg2) { unsigned int jresult ; GoInt arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -2469,7 +2748,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_NewMnemonic(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_MnemonicToByteArray(char* jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_bip39_MnemonicToByteArray(char* jarg1, GoSlice_ * jarg2) { unsigned int jresult ; GoString arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -3501,7 +3780,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_ParsePubke } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_Bytes(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_Bytes(void * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -3515,7 +3794,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_Bytes(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_BytesUncompressed(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_BytesUncompressed(void * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -3617,7 +3896,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_AddXY(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_GetPublicKey(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_GetPublicKey(void * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -3967,7 +4246,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_IsEncrypted } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_GenerateAddresses(void * jarg1, unsigned long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_GenerateAddresses(void * jarg1, unsigned long long jarg2, GoSlice_ * jarg3) { unsigned int jresult ; Wallet__Handle arg1 ; GoUint64 arg2 ; @@ -3985,7 +4264,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_GenerateAdd } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_GetAddresses(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_GetAddresses(void * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; Wallet__Handle arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -4037,7 +4316,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_AddEntry(vo } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_DistributeSpendHours(unsigned long long jarg1, unsigned long long jarg2, unsigned char jarg3, void * jarg4, void * jarg5, void * jarg6) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_DistributeSpendHours(unsigned long long jarg1, unsigned long long jarg2, unsigned char jarg3, void * jarg4, GoSlice_ * jarg5, void * jarg6) { unsigned int jresult ; GoUint64 arg1 ; GoUint64 arg2 ; @@ -4059,7 +4338,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_DistributeSpendHou } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_DistributeCoinHoursProportional(void * jarg1, unsigned long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_DistributeCoinHoursProportional(void * jarg1, unsigned long long jarg2, GoSlice_ * jarg3) { unsigned int jresult ; GoSlice arg1 ; GoUint64 arg2 ; @@ -4081,7 +4360,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_DistributeCoinHour } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewUxBalances(unsigned long long jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewUxBalances(unsigned long long jarg1, GoSlice_ * jarg2, GoSlice_ * jarg3) { unsigned int jresult ; GoUint64 arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -4113,7 +4392,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewUxBalance(unsig } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ChooseSpendsMinimizeUxOuts(void * jarg1, unsigned long long jarg2, unsigned long long jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ChooseSpendsMinimizeUxOuts(void * jarg1, unsigned long long jarg2, unsigned long long jarg3, GoSlice_ * jarg4) { unsigned int jresult ; GoSlice arg1 ; GoUint64 arg2 ; @@ -4137,7 +4416,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ChooseSpendsMinimi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ChooseSpendsMaximizeUxOuts(void * jarg1, unsigned long long jarg2, unsigned long long jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ChooseSpendsMaximizeUxOuts(void * jarg1, unsigned long long jarg2, unsigned long long jarg3, GoSlice_ * jarg4) { unsigned int jresult ; GoSlice arg1 ; GoUint64 arg2 ; @@ -4357,7 +4636,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_DecompressPoi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_RecoverPublicKey(void * jarg1, void * jarg2, long long jarg3, void * jarg4, void * jarg5) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_RecoverPublicKey(void * jarg1, void * jarg2, long long jarg3, GoSlice_ * jarg4, void * jarg5) { unsigned int jresult ; GoSlice arg1 ; GoSlice arg2 ; @@ -4389,7 +4668,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_RecoverPublic } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Multiply(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Multiply(void * jarg1, void * jarg2, GoSlice_ * jarg3) { unsigned int jresult ; GoSlice arg1 ; GoSlice arg2 ; @@ -4417,7 +4696,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Multiply(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_BaseMultiply(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_BaseMultiply(void * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; GoSlice arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -4437,7 +4716,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_BaseMultiply( } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_BaseMultiplyAdd(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_BaseMultiplyAdd(void * jarg1, void * jarg2, GoSlice_ * jarg3) { unsigned int jresult ; GoSlice arg1 ; GoSlice arg2 ; @@ -4465,7 +4744,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_BaseMultiplyA } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_GeneratePublicKey(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_GeneratePublicKey(void * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; GoSlice arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -4525,7 +4804,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_PubkeyIsValid } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_String2Hex(char* jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_String2Hex(char* jarg1, GoSlice_ * jarg2) { unsigned int jresult ; GoString arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -4553,7 +4832,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_ToInt(char* } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_ToHex(char* jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_ToHex(char* jarg1, GoSlice_ * jarg2) { unsigned int jresult ; GoString arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -4581,7 +4860,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_Base582Int( } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base582Hex(char* jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base582Hex(char* jarg1, GoSlice_ * jarg2) { unsigned int jresult ; GoString arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -4595,7 +4874,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base582Hex(char* j } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_BitHex(char* jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_BitHex(char* jarg1, GoSlice_ * jarg2) { unsigned int jresult ; GoString arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -4803,7 +5082,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetTransact } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetAddressUxOuts(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetAddressUxOuts(void * jarg1, void * jarg2, GoSlice_ * jarg3) { unsigned int jresult ; WebRpcClient__Handle arg1 ; GoSlice arg2 ; @@ -4827,7 +5106,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetAddressU } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetBlocks(void * jarg1, unsigned long long jarg2, unsigned long long jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetBlocks(void * jarg1, unsigned long long jarg2, unsigned long long jarg3, GoSlice_ * jarg4) { unsigned int jresult ; WebRpcClient__Handle arg1 ; GoUint64 arg2 ; @@ -4847,7 +5126,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetBlocks(v } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetBlocksBySeq(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetBlocksBySeq(void * jarg1, void * jarg2, GoSlice_ * jarg3) { unsigned int jresult ; WebRpcClient__Handle arg1 ; GoSlice arg2 ; @@ -4871,7 +5150,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetBlocksBy } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetLastBlocks(void * jarg1, unsigned long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetLastBlocks(void * jarg1, unsigned long long jarg2, GoSlice_ * jarg3) { unsigned int jresult ; WebRpcClient__Handle arg1 ; GoUint64 arg2 ; @@ -4985,7 +5264,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encoder_ParseFields(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_SumSHA256(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_SumSHA256(void * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; GoSlice arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -5005,7 +5284,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_SumSHA256(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_RandByte(long long jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_RandByte(long long jarg1, GoSlice_ * jarg2) { unsigned int jresult ; GoInt arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -5019,7 +5298,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_RandByte(long l } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GenerateAddressesInFile(char* jarg1, unsigned long long jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GenerateAddressesInFile(char* jarg1, unsigned long long jarg2, void * jarg3, GoSlice_ * jarg4) { unsigned int jresult ; GoString arg1 ; GoUint64 arg2 ; @@ -5083,7 +5362,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_FormatAddressesAsJoin } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_AddressesToStrings(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_AddressesToStrings(void * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; GoSlice arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -5147,7 +5426,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Int64ToUint64(long l } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Len(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Len(GoSlice_ * jarg1, void * jarg2) { unsigned int jresult ; coin__UxArray *arg1 = (coin__UxArray *) 0 ; GoInt *arg2 = (GoInt *) 0 ; @@ -5161,7 +5440,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Len(vo } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Less(void * jarg1, long long jarg2, long long jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Less(GoSlice_ * jarg1, long long jarg2, long long jarg3, void * jarg4) { unsigned int jresult ; coin__UxArray *arg1 = (coin__UxArray *) 0 ; GoInt arg2 ; @@ -5179,7 +5458,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Less(v } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Swap(void * jarg1, long long jarg2, long long jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Swap(GoSlice_ * jarg1, long long jarg2, long long jarg3) { unsigned int jresult ; coin__UxArray *arg1 = (coin__UxArray *) 0 ; GoInt arg2 ; @@ -5195,7 +5474,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Swap(v } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_RandByte(long long jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_RandByte(long long jarg1, GoSlice_ * jarg2) { unsigned int jresult ; GoInt arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -5209,7 +5488,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_RandByte(long long } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewPubKey(void * jarg1, cipher_PubKey* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewPubKey(void * jarg1, cipher__PubKey* jarg2) { unsigned int jresult ; GoSlice arg1 ; cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; @@ -5229,7 +5508,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewPubKey(void * j } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromHex(char* jarg1, cipher_PubKey* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromHex(char* jarg1, cipher__PubKey* jarg2) { unsigned int jresult ; GoString arg1 ; cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; @@ -5243,7 +5522,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromHex(char } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSecKey(cipher_SecKey* jarg1, cipher_PubKey* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSecKey(cipher_SecKey* jarg1, cipher__PubKey* jarg2) { unsigned int jresult ; cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; @@ -5257,7 +5536,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSecKey(c } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSig(void * jarg1, cipher_SecKey* jarg2, cipher_PubKey* jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSig(cipher_Sig* jarg1, cipher_SecKey* jarg2, cipher__PubKey* jarg3) { unsigned int jresult ; cipher__Sig *arg1 = (cipher__Sig *) 0 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; @@ -5273,7 +5552,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSig(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_Verify(cipher_PubKey* jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_Verify(cipher__PubKey* jarg1) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; GoUint32 result; @@ -5285,7 +5564,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_Verify(ciph } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_Hex(cipher_PubKey* jarg1, GoString* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_Hex(cipher__PubKey* jarg1, GoString* jarg2) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -5299,7 +5578,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_Hex(cipher_ } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_ToAddressHash(cipher_PubKey* jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_ToAddressHash(cipher__PubKey* jarg1, cipher_Ripemd160* jarg2) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; cipher__Ripemd160 *arg2 = (cipher__Ripemd160 *) 0 ; @@ -5373,7 +5652,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKey_Hex(cipher_ } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_ECDH(cipher_PubKey* jarg1, cipher_SecKey* jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_ECDH(cipher__PubKey* jarg1, cipher_SecKey* jarg2, GoSlice_ * jarg3) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; @@ -5389,7 +5668,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_ECDH(cipher_PubKey } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewSig(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewSig(void * jarg1, cipher_Sig* jarg2) { unsigned int jresult ; GoSlice arg1 ; cipher__Sig *arg2 = (cipher__Sig *) 0 ; @@ -5409,7 +5688,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_NewSig(void * jarg } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SigFromHex(char* jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SigFromHex(char* jarg1, cipher_Sig* jarg2) { unsigned int jresult ; GoString arg1 ; cipher__Sig *arg2 = (cipher__Sig *) 0 ; @@ -5423,7 +5702,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SigFromHex(char* j } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Sig_Hex(void * jarg1, GoString* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Sig_Hex(cipher_Sig* jarg1, GoString* jarg2) { unsigned int jresult ; cipher__Sig *arg1 = (cipher__Sig *) 0 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -5437,7 +5716,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Sig_Hex(void * jar } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SignHash(cipher_SecKey* jarg1, cipher_SecKey* jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SignHash(cipher_SecKey* jarg1, cipher_SecKey* jarg2, cipher_Sig* jarg3) { unsigned int jresult ; cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; @@ -5453,7 +5732,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SignHash(cipher_Se } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_ChkSig(void * jarg1, cipher_SecKey* jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_ChkSig(void * jarg1, cipher_SecKey* jarg2, cipher_Sig* jarg3) { unsigned int jresult ; cipher__Address *arg1 = (cipher__Address *) 0 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; @@ -5469,7 +5748,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_ChkSig(void * jarg } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignedHash(void * jarg1, cipher_SecKey* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignedHash(cipher_Sig* jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; cipher__Sig *arg1 = (cipher__Sig *) 0 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; @@ -5483,7 +5762,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignedHash(v } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignature(cipher_PubKey* jarg1, void * jarg2, cipher_SecKey* jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignature(cipher__PubKey* jarg1, cipher_Sig* jarg2, cipher_SecKey* jarg3) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; cipher__Sig *arg2 = (cipher__Sig *) 0 ; @@ -5499,7 +5778,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignature(ci } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPair(void * jarg1, cipher_PubKey* jarg2, cipher_SecKey* jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPair(void * jarg1, cipher__PubKey* jarg2, cipher_SecKey* jarg3) { unsigned int jresult ; GoSlice arg1 ; cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; @@ -5521,7 +5800,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterminis } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DeterministicKeyPairIterator(void * jarg1, void * jarg2, cipher_PubKey* jarg3, cipher_SecKey* jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DeterministicKeyPairIterator(void * jarg1, GoSlice_ * jarg2, cipher__PubKey* jarg3, cipher_SecKey* jarg4) { unsigned int jresult ; GoSlice arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -5545,7 +5824,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DeterministicKeyPa } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairs(void * jarg1, long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairs(void * jarg1, long long jarg2, GoSlice_ * jarg3) { unsigned int jresult ; GoSlice arg1 ; GoInt arg2 ; @@ -5567,7 +5846,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterminis } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairsSeed(void * jarg1, long long jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairsSeed(void * jarg1, long long jarg2, GoSlice_ * jarg3, GoSlice_ * jarg4) { unsigned int jresult ; GoSlice arg1 ; GoInt arg2 ; @@ -5617,7 +5896,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_TestSecKeyHash(cip } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateKeyPair(cipher_PubKey* jarg1, cipher_SecKey* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateKeyPair(cipher__PubKey* jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; @@ -5795,7 +6074,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Par } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Bytes(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Bytes(void * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; Signature_Handle arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -5905,7 +6184,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Setenv(char* jarg1, c } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_poly1305_Verify(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_poly1305_Verify(GoSlice_ * jarg1, void * jarg2, GoSlice_ * jarg3, void * jarg4) { unsigned int jresult ; coin__UxArray *arg1 = (coin__UxArray *) 0 ; GoSlice arg2 ; @@ -6055,7 +6334,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Address_Unmars } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Address_MarshalJSON(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Address_MarshalJSON(void * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; httphelper__Address *arg1 = (httphelper__Address *) 0 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -6089,7 +6368,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Coins_Unmarsha } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Coins_MarshalJSON(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Coins_MarshalJSON(void * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -6137,7 +6416,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Hours_Unmarsha } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Hours_MarshalJSON(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Hours_MarshalJSON(void * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -6211,7 +6490,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateAddresses(ch } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_GetSkycoinWalletEntry(cipher_PubKey* jarg1, cipher_SecKey* jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_GetSkycoinWalletEntry(cipher__PubKey* jarg1, cipher_SecKey* jarg2, void * jarg3) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; @@ -6229,7 +6508,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_GetSkycoinWalletEn } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_GetBitcoinWalletEntry(cipher_PubKey* jarg1, cipher_SecKey* jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_GetBitcoinWalletEntry(cipher__PubKey* jarg1, cipher_SecKey* jarg2, void * jarg3) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; @@ -6429,7 +6708,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_ECmultGen(voi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_Sha256Xor_Encrypt(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_Sha256Xor_Encrypt(void * jarg1, void * jarg2, GoSlice_ * jarg3) { unsigned int jresult ; GoSlice arg1 ; GoSlice arg2 ; @@ -6457,7 +6736,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_Sha256Xor_Encrypt } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_Sha256Xor_Decrypt(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_Sha256Xor_Decrypt(void * jarg1, void * jarg2, GoSlice_ * jarg3) { unsigned int jresult ; GoSlice arg1 ; GoSlice arg2 ; @@ -6661,7 +6940,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddressFromBytes(v } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddressFromPubKey(cipher_PubKey* jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddressFromPubKey(cipher__PubKey* jarg1, void * jarg2) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; cipher__Address *arg2 = (cipher__Address *) 0 ; @@ -6717,7 +6996,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Null(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Bytes(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Bytes(void * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; cipher__Address *arg1 = (cipher__Address *) 0 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -6731,7 +7010,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Bytes(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_BitcoinBytes(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_BitcoinBytes(void * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; cipher__Address *arg1 = (cipher__Address *) 0 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -6745,7 +7024,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_BitcoinByt } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Verify(void * jarg1, cipher_PubKey* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Verify(void * jarg1, cipher__PubKey* jarg2) { unsigned int jresult ; cipher__Address *arg1 = (cipher__Address *) 0 ; cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; @@ -6815,7 +7094,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_BitcoinChe } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddressFromPubkey(cipher_PubKey* jarg1, GoString* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddressFromPubkey(cipher__PubKey* jarg1, GoString* jarg2) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -7173,7 +7452,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWall } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletGetEntry(void * jarg1, unsigned int jarg2, void * jarg3, cipher_PubKey* jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletGetEntry(void * jarg1, unsigned int jarg2, void * jarg3, cipher__PubKey* jarg4) { unsigned int jresult ; Wallet__Handle arg1 ; GoUint32 arg2 ; @@ -7389,7 +7668,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_ripemd160_Write(void * ja } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_ripemd160_Sum(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_ripemd160_Sum(void * jarg1, void * jarg2, GoSlice_ * jarg3) { unsigned int jresult ; Hash_Handle arg1 ; GoSlice arg2 ; @@ -7557,7 +7836,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_CoinHours(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Hashes(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Hashes(GoSlice_ * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; coin__UxArray *arg1 = (coin__UxArray *) 0 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -7571,7 +7850,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Hashes(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_HasDupes(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_HasDupes(GoSlice_ * jarg1, void * jarg2) { unsigned int jresult ; coin__UxArray *arg1 = (coin__UxArray *) 0 ; GoUint8 *arg2 = (GoUint8 *) 0 ; @@ -7585,7 +7864,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_HasDupes(voi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Sort(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Sort(GoSlice_ * jarg1) { unsigned int jresult ; coin__UxArray *arg1 = (coin__UxArray *) 0 ; GoUint32 result; @@ -7597,7 +7876,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Sort(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Len(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Len(GoSlice_ * jarg1, void * jarg2) { unsigned int jresult ; coin__UxArray *arg1 = (coin__UxArray *) 0 ; GoInt *arg2 = (GoInt *) 0 ; @@ -7611,7 +7890,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Len(void * j } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Less(void * jarg1, long long jarg2, long long jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Less(GoSlice_ * jarg1, long long jarg2, long long jarg3, void * jarg4) { unsigned int jresult ; coin__UxArray *arg1 = (coin__UxArray *) 0 ; GoInt arg2 ; @@ -7629,7 +7908,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Less(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Swap(void * jarg1, long long jarg2, long long jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Swap(GoSlice_ * jarg1, long long jarg2, long long jarg3) { unsigned int jresult ; coin__UxArray *arg1 = (coin__UxArray *) 0 ; GoInt arg2 ; @@ -7645,7 +7924,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Swap(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Coins(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Coins(GoSlice_ * jarg1, void * jarg2) { unsigned int jresult ; coin__UxArray *arg1 = (coin__UxArray *) 0 ; GoUint64 *arg2 = (GoUint64 *) 0 ; @@ -7659,7 +7938,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Coins(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_CoinHours(void * jarg1, unsigned long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_CoinHours(GoSlice_ * jarg1, unsigned long long jarg2, void * jarg3) { unsigned int jresult ; coin__UxArray *arg1 = (coin__UxArray *) 0 ; GoUint64 arg2 ; @@ -7675,7 +7954,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_CoinHours(vo } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Sub(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Sub(GoSlice_ * jarg1, GoSlice_ * jarg2, GoSlice_ * jarg3) { unsigned int jresult ; coin__UxArray *arg1 = (coin__UxArray *) 0 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -7691,7 +7970,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Sub(void * j } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Add(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Add(GoSlice_ * jarg1, GoSlice_ * jarg2, GoSlice_ * jarg3) { unsigned int jresult ; coin__UxArray *arg1 = (coin__UxArray *) 0 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -7707,7 +7986,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Add(void * j } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewAddressUxOuts(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewAddressUxOuts(GoSlice_ * jarg1, void * jarg2) { unsigned int jresult ; coin__UxArray *arg1 = (coin__UxArray *) 0 ; AddressUxOuts_Handle *arg2 = (AddressUxOuts_Handle *) 0 ; @@ -7721,7 +8000,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewAddressUxOuts(voi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Keys(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Keys(void * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; AddressUxOuts_Handle arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -7741,7 +8020,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Keys(v } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Flatten(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Flatten(void * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; AddressUxOuts_Handle arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -7817,7 +8096,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Add(vo } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Get(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Get(void * jarg1, void * jarg2, GoSlice_ * jarg3) { unsigned int jresult ; AddressUxOuts_Handle arg1 ; cipher__Address *arg2 = (cipher__Address *) 0 ; @@ -7903,7 +8182,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Length } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Set(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Set(void * jarg1, void * jarg2, GoSlice_ * jarg3) { unsigned int jresult ; AddressUxOuts_Handle arg1 ; cipher__Address *arg2 = (cipher__Address *) 0 ; @@ -7925,7 +8204,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Set(vo } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_ScryptChacha20poly1305_Encrypt(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_ScryptChacha20poly1305_Encrypt(void * jarg1, void * jarg2, void * jarg3, GoSlice_ * jarg4) { unsigned int jresult ; encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; GoSlice arg2 ; @@ -7955,7 +8234,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_ScryptChacha20pol } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_ScryptChacha20poly1305_Decrypt(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_ScryptChacha20poly1305_Decrypt(void * jarg1, void * jarg2, void * jarg3, GoSlice_ * jarg4) { unsigned int jresult ; encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; GoSlice arg2 ; @@ -8051,7 +8330,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_AddPrivateKeyToFile(c } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_GenerateKeyPair(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_GenerateKeyPair(GoSlice_ * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; coin__UxArray *arg1 = (coin__UxArray *) 0 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -8065,7 +8344,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_GenerateKeyPair } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_PubkeyFromSeckey(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_PubkeyFromSeckey(void * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; GoSlice arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -8085,7 +8364,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_PubkeyFromSecke } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_UncompressPubkey(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_UncompressPubkey(void * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; GoSlice arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -8105,7 +8384,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_UncompressPubke } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_UncompressedPubkeyFromSeckey(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_UncompressedPubkeyFromSeckey(void * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; GoSlice arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -8125,7 +8404,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_UncompressedPub } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_Secp256k1Hash(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_Secp256k1Hash(void * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; GoSlice arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -8145,7 +8424,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_Secp256k1Hash(v } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_GenerateDeterministicKeyPair(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_GenerateDeterministicKeyPair(void * jarg1, GoSlice_ * jarg2, GoSlice_ * jarg3) { unsigned int jresult ; GoSlice arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -8167,7 +8446,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_GenerateDetermi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_DeterministicKeyPairIterator(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_DeterministicKeyPairIterator(void * jarg1, GoSlice_ * jarg2, GoSlice_ * jarg3, GoSlice_ * jarg4) { unsigned int jresult ; GoSlice arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -8191,7 +8470,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_DeterministicKe } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_Sign(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_Sign(void * jarg1, void * jarg2, GoSlice_ * jarg3) { unsigned int jresult ; GoSlice arg1 ; GoSlice arg2 ; @@ -8219,7 +8498,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_Sign(void * jar } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_SignDeterministic(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_SignDeterministic(void * jarg1, void * jarg2, void * jarg3, GoSlice_ * jarg4) { unsigned int jresult ; GoSlice arg1 ; GoSlice arg2 ; @@ -8387,7 +8666,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_SignatureErrorS } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_RecoverPubkey(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_RecoverPubkey(void * jarg1, void * jarg2, GoSlice_ * jarg3) { unsigned int jresult ; GoSlice arg1 ; GoSlice arg2 ; @@ -8415,7 +8694,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_RecoverPubkey(v } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_ECDH(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_ECDH(void * jarg1, void * jarg2, GoSlice_ * jarg3) { unsigned int jresult ; GoSlice arg1 ; GoSlice arg2 ; @@ -8549,7 +8828,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_RemainingHours(unsign } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_TransactionFee(void * jarg1, unsigned long long jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_TransactionFee(void * jarg1, unsigned long long jarg2, GoSlice_ * jarg3, void * jarg4) { unsigned int jresult ; Transaction__Handle arg1 ; GoUint64 arg2 ; @@ -8669,7 +8948,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_ConfigFromContext(voi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_PasswordFromBytes_Password(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_PasswordFromBytes_Password(GoSlice_ * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; coin__UxArray *arg1 = (coin__UxArray *) 0 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -8683,7 +8962,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_PasswordFromBytes_Pas } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_PasswordFromTerm_Password(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_PasswordFromTerm_Password(GoSlice_ * jarg1) { unsigned int jresult ; coin__UxArray *arg1 = (coin__UxArray *) 0 ; GoUint32 result; @@ -9255,7 +9534,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Sqr(voi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_scrypt_Key(void * jarg1, void * jarg2, long long jarg3, long long jarg4, long long jarg5, long long jarg6, void * jarg7) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_scrypt_Key(void * jarg1, void * jarg2, long long jarg3, long long jarg4, long long jarg5, long long jarg6, GoSlice_ * jarg7) { unsigned int jresult ; GoSlice arg1 ; GoSlice arg2 ; @@ -9291,7 +9570,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_scrypt_Key(void * jarg1, } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Ripemd160_Set(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Ripemd160_Set(cipher_Ripemd160* jarg1, void * jarg2) { unsigned int jresult ; cipher__Ripemd160 *arg1 = (cipher__Ripemd160 *) 0 ; GoSlice arg2 ; @@ -9311,7 +9590,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Ripemd160_Set(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_HashRipemd160(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_HashRipemd160(void * jarg1, cipher_Ripemd160* jarg2) { unsigned int jresult ; GoSlice arg1 ; cipher__Ripemd160 *arg2 = (cipher__Ripemd160 *) 0 ; @@ -9663,7 +9942,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetSigna } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetSignatureAt(void * jarg1, long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetSignatureAt(void * jarg1, long long jarg2, cipher_Sig* jarg3) { unsigned int jresult ; Transaction__Handle arg1 ; GoInt arg2 ; @@ -9681,7 +9960,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetSigna } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SetSignatureAt(void * jarg1, long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SetSignatureAt(void * jarg1, long long jarg2, cipher_Sig* jarg3) { unsigned int jresult ; Transaction__Handle arg1 ; GoInt arg2 ; @@ -9699,7 +9978,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SetSigna } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_PushSignature(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_PushSignature(void * jarg1, cipher_Sig* jarg2) { unsigned int jresult ; Transaction__Handle arg1 ; cipher__Sig *arg2 = (cipher__Sig *) 0 ; @@ -9761,7 +10040,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Verify(v } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_VerifyInput(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_VerifyInput(void * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; Transaction__Handle arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -9903,7 +10182,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SizeHash } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_TxID(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_TxID(void * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; Transaction__Handle arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -9965,7 +10244,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_HashInne } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Serialize(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Serialize(void * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; Transaction__Handle arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -10121,7 +10400,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_GetAt(v } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Hashes(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Hashes(void * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; Transactions__Handle arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -10295,7 +10574,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortableTransactions } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_VerifyTransactionCoinsSpending(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_VerifyTransactionCoinsSpending(GoSlice_ * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; coin__UxArray *arg1 = (coin__UxArray *) 0 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -10309,7 +10588,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_VerifyTransactionCoi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_VerifyTransactionHoursSpending(unsigned long long jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_VerifyTransactionHoursSpending(unsigned long long jarg1, GoSlice_ * jarg2, GoSlice_ * jarg3) { unsigned int jresult ; GoUint64 arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -10339,6 +10618,28 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher__Address_isEqual(void * jarg1, } +SWIGEXPORT char SWIGSTDCALL CSharp_skycoin_cipher__Address_getVersion(void * jarg1) { + char jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + char result; + + arg1 = (cipher__Address *)jarg1; + result = (char)cipher__Address_getVersion(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher__Address_setVersion(void * jarg1, char jarg2) { + cipher__Address *arg1 = (cipher__Address *) 0 ; + char arg2 ; + + arg1 = (cipher__Address *)jarg1; + arg2 = (char)jarg2; + cipher__Address_setVersion(arg1,arg2); +} + + SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher__Address_Version(void * jarg1, void * jarg2) { cipher__Address *arg1 = (cipher__Address *) 0 ; GoUint8_ arg2 ; diff --git a/LibskycoinNetTest/check_cipher_address.cs b/LibskycoinNetTest/check_cipher_address.cs index 41d8f7dc..0221732c 100644 --- a/LibskycoinNetTest/check_cipher_address.cs +++ b/LibskycoinNetTest/check_cipher_address.cs @@ -27,12 +27,89 @@ public void TestDecodeBase58Address () { err = skycoin.skycoin.SKY_cipher_DecodeBase58Address ("asa", a1); Assert.AreEqual (err, skycoin.skycoin.SKY_ErrAddressInvalidLength, "Failed SKY_cipher_DecodeBase58Address 2"); - var sa = new skycoin._GoString_ (); - err = skycoin.skycoin.SKY_cipher_Address_String (a, sa); + var addrStr = new skycoin._GoString_ (); + err = skycoin.skycoin.SKY_cipher_Address_String (a, addrStr); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var b = new GoSlice (); + err = skycoin.skycoin.SKY_cipher_DecodeBase58Address (addrStr.p, a2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK, "Failed SKY_cipher_DecodeBase58Address"); + Assert.IsTrue (a.isEqual (a2) == 1); + var as2 = " " + addrStr.p; + err = skycoin.skycoin.SKY_cipher_DecodeBase58Address (as2, a1); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidBase58Char, "Failed SKY_cipher_DecodeBase58Address 3"); + + as2 = "000" + addrStr.p; + err = skycoin.skycoin.SKY_cipher_DecodeBase58Address (as2, a1); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidBase58Char, "Failed SKY_cipher_DecodeBase58Address 3"); + + as2 = addrStr.p + "000"; + err = skycoin.skycoin.SKY_cipher_DecodeBase58Address (as2, a1); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidBase58Char, "Failed SKY_cipher_DecodeBase58Address 3"); + } + + [Test] + public void TestAddressFromBytes () { + var s = new skycoin.cipher_SecKey (); + var p = new skycoin.cipher_PubKey (); + uint err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var a = new skycoin.cipher__Address (); + var a2 = new skycoin.cipher__Address (); + err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, a); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var b = new skycoin.GoSlice (); + var b2 = new skycoin.GoSlice (); + err = skycoin.skycoin.SKY_cipher_Address_Bytes (a, b); + err = skycoin.skycoin.SKY_cipher_Address_Bytes (a, b2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_AddressFromBytes (b2, a2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (a2.isEqual (a), 1); + // Invalid number of bytes + long len_b = b.len; + b.len = b.len - 2; + err = skycoin.skycoin.SKY_cipher_AddressFromBytes (b, a2); + Assert.AreEqual (skycoin.skycoin.SKY_ErrAddressInvalidLength, err, "Failed SKY_cipher_AddressFromBytes 2"); + b.len = len_b; + a.setVersion ('2'); + err = skycoin.skycoin.SKY_cipher_Address_Bytes (a, b); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK, "SKY_cipher_Address_Bytes SKY_ErrAddressInvalidVersion"); + err = skycoin.skycoin.SKY_cipher_AddressFromBytes (b, a); + Assert.AreEqual (skycoin.skycoin.SKY_ErrAddressInvalidVersion, err); + } + + [Test] + public void TestBitcoinAddressFromBytes () { + var s = new skycoin.cipher_SecKey (); + var p = new skycoin.cipher_PubKey (); + var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK, "Failed SKY_cipher_GenerateKeyPair"); + var a = new skycoin.cipher__Address (); + err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, a); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK, "Failed SKY_cipher_AddressFromPubKey"); + var pk = new skycoin.GoSlice (); + err = skycoin.skycoin.SKY_cipher_Address_BitcoinBytes (a, pk); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK, "Failed SKY_cipher_Address_BitcoinBytes"); + var a2 = new skycoin.cipher__Address (); + err = skycoin.skycoin.SKY_cipher_BitcoinAddressFromBytes (pk, a2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK, "Failed SKY_cipher_BitcoinAddressFromBytes"); + Assert.AreEqual (a2.isEqual (a), 1); + + // Invalid number of bytes + var b = new skycoin.GoSlice (); + err = skycoin.skycoin.SKY_cipher_Address_BitcoinBytes (a, b); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK, "Failed SKY_cipher_Address_BitcoinBytes"); + var b_len = b.len; + b.len = b.len - 2; + var a3 = new skycoin.cipher__Address (); + err = skycoin.skycoin.SKY_cipher_BitcoinAddressFromBytes (b, a3); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrAddressInvalidLength); + + a.setVersion ('2'); + err = skycoin.skycoin.SKY_cipher_Address_BitcoinBytes (a, b); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_BitcoinAddressFromBytes(b,a3); + Assert.AreEqual(err,skycoin.skycoin.SKY_ErrAddressInvalidVersion); } } } \ No newline at end of file diff --git a/Makefile b/Makefile index d471599d..0b91143f 100644 --- a/Makefile +++ b/Makefile @@ -42,7 +42,6 @@ build-swig: sed -i 's/#/%/g' $(LIBSWIG_DIR)/structs.i ;\ fi \ } - rm -rf LibskycoinNet/skycoin mkdir -p ./LibskycoinNet/skycoin swig -csharp -oldvarnames -v -namespace skycoin -Iswig/include -I$(INCLUDE_DIR) -outdir LibskycoinNet/skycoin -o LibskycoinNet/skycoin/skycoinnet_wrap.c $(LIBSWIG_DIR)/skycoin.i diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index c04fecf5..ad256330 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit c04fecf57ea92e0bf5015c7b1a51a40cb71734c5 +Subproject commit ad256330c87bd626b1ff2c988f2ff2b9ab0a235b From 125108feb1b8d651f025cfa62a9b381f82c3dacd Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Fri, 14 Sep 2018 01:23:53 -0400 Subject: [PATCH 24/73] [test][libdotnet] refs #8 Finish cipher_address Tests run: 8, Errors: 0, Failures: 0, Inconclusive: 0, Time: 6,0212747 seconds Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0 --- LibskycoinNetTest/check_cipher_address.cs | 125 +++++++++++++++++++++- 1 file changed, 123 insertions(+), 2 deletions(-) diff --git a/LibskycoinNetTest/check_cipher_address.cs b/LibskycoinNetTest/check_cipher_address.cs index 0221732c..3db6937c 100644 --- a/LibskycoinNetTest/check_cipher_address.cs +++ b/LibskycoinNetTest/check_cipher_address.cs @@ -108,8 +108,129 @@ public void TestBitcoinAddressFromBytes () { a.setVersion ('2'); err = skycoin.skycoin.SKY_cipher_Address_BitcoinBytes (a, b); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_BitcoinAddressFromBytes(b,a3); - Assert.AreEqual(err,skycoin.skycoin.SKY_ErrAddressInvalidVersion); + err = skycoin.skycoin.SKY_cipher_BitcoinAddressFromBytes (b, a3); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrAddressInvalidVersion); + } + + [Test] + public void TestAddressRoundtrip () { + // Tests encode and decode + var p = new skycoin.cipher_PubKey (); + var s = new skycoin.cipher_SecKey (); + var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var a = new skycoin.cipher__Address (); + err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, a); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var b = new skycoin.GoSlice (); + err = skycoin.skycoin.SKY_cipher_Address_Bytes (a, b); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_AddressFromBytes (b, a); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var a2 = new skycoin.cipher__Address (); + err = skycoin.skycoin.SKY_cipher_AddressFromBytes (b, a2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (a.isEqual (a2), 1); + var str = new _GoString_ (); + var str2 = new _GoString_ (); + err = skycoin.skycoin.SKY_cipher_Address_String (a, str); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_Address_String (a2, str2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (str.p == str2.p, true); + } + + [Test] + public void TestAddressVerify () { + var p = new skycoin.cipher_PubKey (); + var s = new skycoin.cipher_SecKey (); + var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var a = new skycoin.cipher__Address (); + err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, a); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + // Valid pubkey+address + err = skycoin.skycoin.SKY_cipher_Address_Verify (a, p); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + // Invalid pubkey + err = skycoin.skycoin.SKY_cipher_Address_Verify (a, skycoin.skycoin.new_cipher_PubKeyp ()); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrAddressInvalidPubKey); + var p2 = new skycoin.cipher_PubKey (); + var s2 = new skycoin.cipher_SecKey (); + err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p2, s2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_Address_Verify (a, p2); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrAddressInvalidPubKey); + // Bad version + a.setVersion ('1'); + err = skycoin.skycoin.SKY_cipher_Address_Verify (a, p); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrAddressInvalidVersion); + } + + [Test] + public void TestBitcoinWIPRoundTrio () { + var p = new skycoin.cipher_PubKey (); + var seckey1 = new skycoin.cipher_SecKey (); + var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, seckey1); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var wip1 = new _GoString_ (); + err = skycoin.skycoin.SKY_cipher_BitcoinWalletImportFormatFromSeckey (seckey1, wip1); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var seckey2 = new skycoin.cipher_SecKey (); + err = skycoin.skycoin.SKY_cipher_SecKeyFromWalletImportFormat (wip1.p, seckey2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var wip2 = new _GoString_ (); + err = skycoin.skycoin.SKY_cipher_BitcoinWalletImportFormatFromSeckey (seckey2, wip2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (seckey1.isEqual (seckey2), 1); + var seckey1_hex = new _GoString_ (); + var seckey2_hex = new _GoString_ (); + err = skycoin.skycoin.SKY_cipher_SecKey_Hex (seckey1, seckey1_hex); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_SecKey_Hex (seckey2, seckey2_hex); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (seckey1_hex.p == seckey2_hex.p, true); + Assert.AreEqual (wip1.p == wip2.p, true); + } + + [Test] + public void TestAddressBulk () { + + for (int i = 0; i < 1024; i++) { + var pub = new skycoin.cipher_PubKey (); + var sec = new skycoin.cipher_SecKey (); + var b = new GoSlice (); + var err = skycoin.skycoin.SKY_cipher_RandByte (32, b); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_GenerateDeterministicKeyPair (b, pub, sec); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var a = new cipher__Address (); + err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (pub, a); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_Address_Verify (a, pub); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var s = new _GoString_ (); + err = skycoin.skycoin.SKY_cipher_Address_String (a, s); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var a2 = new cipher__Address (); + err = skycoin.skycoin.SKY_cipher_DecodeBase58Address (s.p, a2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (a2.isEqual (a), 1); + } + } + + [Test] + public void TestAddressNull () { + var a = new cipher__Address (); + Assert.AreEqual (a.isEqual (new skycoin.cipher__Address ()), 1); + var p = new cipher_PubKey (); + var s = new cipher_SecKey (); + var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, a); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (a.isEqual (new skycoin.cipher__Address ()), 0); + } } } \ No newline at end of file From c98a1c5729ebf98dec10becbab2842fdf1a3afdd Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Sat, 15 Sep 2018 03:01:06 -0400 Subject: [PATCH 25/73] [libdotnet] refs #8 Added test cipher.crypto Tests run: 22, Errors: 0, Failures: 0, Inconclusive: 0, Time: 12,9174782 seconds Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0 --- LibskycoinNet/LibskycoinNet.csproj | 3 - LibskycoinNet/skycoin/GoSlice.cs | 5 + LibskycoinNet/skycoin/SWIGTYPE_p_GoUint16_.cs | 29 - ...Uint8_.cs => SWIGTYPE_p_a_32__GoUint8_.cs} | 8 +- LibskycoinNet/skycoin/SWIGTYPE_p_int.cs | 29 - LibskycoinNet/skycoin/SWIGTYPE_p_unsi.cs | 29 - LibskycoinNet/skycoin/cipher_Sig.cs | 5 + LibskycoinNet/skycoin/skycoin.cs | 142 +---- LibskycoinNet/skycoin/skycoinPINVOKE.cs | 96 +--- LibskycoinNet/skycoin/skycoinnet_wrap.c | 513 +++--------------- LibskycoinNetTest/LibskycoinNetTest.csproj | 1 + LibskycoinNetTest/check_cipher_address.cs | 2 +- LibskycoinNetTest/check_cipher_crypto.cs | 358 ++++++++++++ gopath/src/github.com/skycoin/skycoin | 2 +- 14 files changed, 490 insertions(+), 732 deletions(-) delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_GoUint16_.cs rename LibskycoinNet/skycoin/{SWIGTYPE_p_a_20__GoUint8_.cs => SWIGTYPE_p_a_32__GoUint8_.cs} (82%) delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_int.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_unsi.cs create mode 100644 LibskycoinNetTest/check_cipher_crypto.cs diff --git a/LibskycoinNet/LibskycoinNet.csproj b/LibskycoinNet/LibskycoinNet.csproj index 6ad6c3f1..f61e3f93 100644 --- a/LibskycoinNet/LibskycoinNet.csproj +++ b/LibskycoinNet/LibskycoinNet.csproj @@ -58,7 +58,6 @@ - @@ -83,7 +82,6 @@ - @@ -128,7 +126,6 @@ - diff --git a/LibskycoinNet/skycoin/GoSlice.cs b/LibskycoinNet/skycoin/GoSlice.cs index e09ff102..6bfcdb31 100644 --- a/LibskycoinNet/skycoin/GoSlice.cs +++ b/LibskycoinNet/skycoin/GoSlice.cs @@ -40,6 +40,11 @@ public virtual void Dispose() { } } + public int isEqual(GoSlice slice) { + int ret = skycoinPINVOKE.GoSlice_isEqual(swigCPtr, GoSlice.getCPtr(slice)); + return ret; + } + public SWIGTYPE_p_void data { set { skycoinPINVOKE.set_GoSlice_data(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_GoUint16_.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_GoUint16_.cs deleted file mode 100644 index 05d951db..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_GoUint16_.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_GoUint16_ { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_GoUint16_(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_GoUint16_() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_GoUint16_ obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_a_20__GoUint8_.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_a_32__GoUint8_.cs similarity index 82% rename from LibskycoinNet/skycoin/SWIGTYPE_p_a_20__GoUint8_.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_a_32__GoUint8_.cs index 1d90b1fc..31785e54 100644 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_a_20__GoUint8_.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_a_32__GoUint8_.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_a_20__GoUint8_ { +public class SWIGTYPE_p_a_32__GoUint8_ { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_a_20__GoUint8_(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_a_32__GoUint8_(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_a_20__GoUint8_() { + protected SWIGTYPE_p_a_32__GoUint8_() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_a_20__GoUint8_ obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_a_32__GoUint8_ obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_int.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_int.cs deleted file mode 100644 index d8b0dd29..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_int.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_int { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_int(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_int() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_int obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_unsi.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_unsi.cs deleted file mode 100644 index ce3a2257..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_unsi.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_unsi { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_unsi(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_unsi() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_unsi obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/cipher_Sig.cs b/LibskycoinNet/skycoin/cipher_Sig.cs index ee28bf80..bb5f6afb 100644 --- a/LibskycoinNet/skycoin/cipher_Sig.cs +++ b/LibskycoinNet/skycoin/cipher_Sig.cs @@ -53,6 +53,11 @@ public void assignTo(SWIGTYPE_p_void data) { skycoinPINVOKE.cipher_Sig_assignTo(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); } + public GoSlice toGoSlice() { + GoSlice ret = new GoSlice(skycoinPINVOKE.cipher_Sig_toGoSlice(swigCPtr), true); + return ret; + } + public SWIGTYPE_p_unsigned_char data { set { skycoinPINVOKE.set_cipher_Sig_data(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs index 3f40c304..6c42bdcc 100644 --- a/LibskycoinNet/skycoin/skycoin.cs +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -35,138 +35,22 @@ public static int equalBlockHeaders(coin__BlockHeader bh1, coin__BlockHeader bh2 return ret; } - public static cipher_PubKey new_cipher_PubKeyp() { - global::System.IntPtr cPtr = skycoinPINVOKE.new_cipher_PubKeyp(); - cipher_PubKey ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher_PubKey(cPtr, false); - return ret; - } - - public static cipher_PubKey copy_cipher_PubKeyp(cipher_PubKey value) { - global::System.IntPtr cPtr = skycoinPINVOKE.copy_cipher_PubKeyp(cipher_PubKey.getCPtr(value)); - cipher_PubKey ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher_PubKey(cPtr, false); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static void delete_cipher_PubKeyp(cipher_PubKey obj) { - skycoinPINVOKE.delete_cipher_PubKeyp(cipher_PubKey.getCPtr(obj)); - } - - public static void cipher_PubKeyp_assign(cipher_PubKey obj, cipher_PubKey value) { - skycoinPINVOKE.cipher_PubKeyp_assign(cipher_PubKey.getCPtr(obj), cipher_PubKey.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - - public static cipher_PubKey cipher_PubKeyp_value(cipher_PubKey obj) { - cipher_PubKey ret = new cipher_PubKey(skycoinPINVOKE.cipher_PubKeyp_value(cipher_PubKey.getCPtr(obj)), true); - return ret; - } - - public static cipher_SecKey new_cipher_SecKeyp() { - global::System.IntPtr cPtr = skycoinPINVOKE.new_cipher_SecKeyp(); - cipher_SecKey ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher_SecKey(cPtr, false); - return ret; - } - - public static cipher_SecKey copy_cipher_SecKeyp(cipher_SecKey value) { - global::System.IntPtr cPtr = skycoinPINVOKE.copy_cipher_SecKeyp(cipher_SecKey.getCPtr(value)); - cipher_SecKey ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher_SecKey(cPtr, false); + public static uint SKY_cipher_SumSHA256(GoSlice seed, cipher_SHA256 sha) { + uint ret = skycoinPINVOKE.SKY_cipher_SumSHA256__SWIG_0(GoSlice.getCPtr(seed), cipher_SHA256.getCPtr(sha)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static void delete_cipher_SecKeyp(cipher_SecKey obj) { - skycoinPINVOKE.delete_cipher_SecKeyp(cipher_SecKey.getCPtr(obj)); - } - - public static void cipher_SecKeyp_assign(cipher_SecKey obj, cipher_SecKey value) { - skycoinPINVOKE.cipher_SecKeyp_assign(cipher_SecKey.getCPtr(obj), cipher_SecKey.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - - public static cipher_SecKey cipher_SecKeyp_value(cipher_SecKey obj) { - cipher_SecKey ret = new cipher_SecKey(skycoinPINVOKE.cipher_SecKeyp_value(cipher_SecKey.getCPtr(obj)), true); - return ret; - } - - public static cipher_Sig new_cipher_Sigp() { - global::System.IntPtr cPtr = skycoinPINVOKE.new_cipher_Sigp(); - cipher_Sig ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher_Sig(cPtr, false); - return ret; - } - - public static cipher_Sig copy_cipher_Sigp(cipher_Sig value) { - global::System.IntPtr cPtr = skycoinPINVOKE.copy_cipher_Sigp(cipher_Sig.getCPtr(value)); - cipher_Sig ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher_Sig(cPtr, false); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static void delete_cipher_Sigp(cipher_Sig obj) { - skycoinPINVOKE.delete_cipher_Sigp(cipher_Sig.getCPtr(obj)); - } - - public static void cipher_Sigp_assign(cipher_Sig obj, cipher_Sig value) { - skycoinPINVOKE.cipher_Sigp_assign(cipher_Sig.getCPtr(obj), cipher_Sig.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - - public static cipher_Sig cipher_Sigp_value(cipher_Sig obj) { - cipher_Sig ret = new cipher_Sig(skycoinPINVOKE.cipher_Sigp_value(cipher_Sig.getCPtr(obj)), true); - return ret; - } - - public static GoSlice new_GoSlicep() { - global::System.IntPtr cPtr = skycoinPINVOKE.new_GoSlicep(); - GoSlice ret = (cPtr == global::System.IntPtr.Zero) ? null : new GoSlice(cPtr, false); - return ret; - } - - public static GoSlice copy_GoSlicep(GoSlice value) { - global::System.IntPtr cPtr = skycoinPINVOKE.copy_GoSlicep(GoSlice.getCPtr(value)); - GoSlice ret = (cPtr == global::System.IntPtr.Zero) ? null : new GoSlice(cPtr, false); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static void delete_GoSlicep(GoSlice obj) { - skycoinPINVOKE.delete_GoSlicep(GoSlice.getCPtr(obj)); - } - - public static void GoSlicep_assign(GoSlice obj, GoSlice value) { - skycoinPINVOKE.GoSlicep_assign(GoSlice.getCPtr(obj), GoSlice.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - - public static GoSlice GoSlicep_value(GoSlice obj) { - GoSlice ret = new GoSlice(skycoinPINVOKE.GoSlicep_value(GoSlice.getCPtr(obj)), true); - return ret; - } - - public static SWIGTYPE_p_GoString_ new_GoStringp_() { - global::System.IntPtr cPtr = skycoinPINVOKE.new_GoStringp_(); - SWIGTYPE_p_GoString_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoString_(cPtr, false); - return ret; - } - - public static SWIGTYPE_p_GoString_ copy_GoStringp_(SWIGTYPE_p_GoString_ value) { - global::System.IntPtr cPtr = skycoinPINVOKE.copy_GoStringp_(SWIGTYPE_p_GoString_.getCPtr(value)); - SWIGTYPE_p_GoString_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoString_(cPtr, false); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static void delete_GoStringp_(SWIGTYPE_p_GoString_ obj) { - skycoinPINVOKE.delete_GoStringp_(SWIGTYPE_p_GoString_.getCPtr(obj)); - } - - public static void GoStringp__assign(SWIGTYPE_p_GoString_ obj, SWIGTYPE_p_GoString_ value) { - skycoinPINVOKE.GoStringp__assign(SWIGTYPE_p_GoString_.getCPtr(obj), SWIGTYPE_p_GoString_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_cipher_SignHash(cipher_SHA256 sha, cipher_SecKey sec, cipher_Sig s) { +var tmpsec = cipher_SecKey.getCPtr (sec); + { + uint ret = skycoinPINVOKE.SKY_cipher_SignHash__SWIG_0(cipher_SHA256.getCPtr(sha), tmpsec, cipher_Sig.getCPtr(s)); + return ret; + } } - public static SWIGTYPE_p_GoString_ GoStringp__value(SWIGTYPE_p_GoString_ obj) { - SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.GoStringp__value(SWIGTYPE_p_GoString_.getCPtr(obj)), true); + public static uint SKY_cipher_ChkSig(cipher__Address a, cipher_SHA256 sha, cipher_Sig s) { + uint ret = skycoinPINVOKE.SKY_cipher_ChkSig__SWIG_0(cipher__Address.getCPtr(a), cipher_SHA256.getCPtr(sha), cipher_Sig.getCPtr(s)); return ret; } @@ -1555,7 +1439,7 @@ public static uint SKY_cipher_SignHash(cipher_SecKey p0, cipher_SecKey p1, ciphe var tmpp1 = cipher_SecKey.getCPtr (p1); var tmpp2 = cipher_Sig.getCPtr (p2); { - uint ret = skycoinPINVOKE.SKY_cipher_SignHash(tmpp0, tmpp1, tmpp2); + uint ret = skycoinPINVOKE.SKY_cipher_SignHash__SWIG_1(tmpp0, tmpp1, tmpp2); return ret; } } @@ -1564,7 +1448,7 @@ public static uint SKY_cipher_ChkSig(cipher__Address p0, cipher_SecKey p1, ciphe var tmpp1 = cipher_SecKey.getCPtr (p1); var tmpp2 = cipher_Sig.getCPtr (p2); { - uint ret = skycoinPINVOKE.SKY_cipher_ChkSig(cipher__Address.getCPtr(p0), tmpp1, tmpp2); + uint ret = skycoinPINVOKE.SKY_cipher_ChkSig__SWIG_1(cipher__Address.getCPtr(p0), tmpp1, tmpp2); return ret; } } @@ -3138,7 +3022,7 @@ public static uint SKY_cipher_SHA256_Xor(cipher_SecKey p0, cipher_SecKey p1, cip public static uint SKY_cipher_SumSHA256(GoSlice p0, cipher_SecKey p1) { var tmpp1 = cipher_SecKey.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_cipher_SumSHA256(GoSlice.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_cipher_SumSHA256__SWIG_1(GoSlice.getCPtr(p0), tmpp1); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index c4d98811..e336a752 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -203,80 +203,14 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_equalBlockHeaders")] public static extern int equalBlockHeaders(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_PubKeyp")] - public static extern global::System.IntPtr new_cipher_PubKeyp(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SumSHA256__SWIG_0")] + public static extern uint SKY_cipher_SumSHA256__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_cipher_PubKeyp")] - public static extern global::System.IntPtr copy_cipher_PubKeyp(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SignHash__SWIG_0")] + public static extern uint SKY_cipher_SignHash__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_PubKeyp")] - public static extern void delete_cipher_PubKeyp(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeyp_assign")] - public static extern void cipher_PubKeyp_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKeyp_value")] - public static extern global::System.IntPtr cipher_PubKeyp_value(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_SecKeyp")] - public static extern global::System.IntPtr new_cipher_SecKeyp(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_cipher_SecKeyp")] - public static extern global::System.IntPtr copy_cipher_SecKeyp(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_SecKeyp")] - public static extern void delete_cipher_SecKeyp(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeyp_assign")] - public static extern void cipher_SecKeyp_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SecKeyp_value")] - public static extern global::System.IntPtr cipher_SecKeyp_value(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher_Sigp")] - public static extern global::System.IntPtr new_cipher_Sigp(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_cipher_Sigp")] - public static extern global::System.IntPtr copy_cipher_Sigp(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_Sigp")] - public static extern void delete_cipher_Sigp(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Sigp_assign")] - public static extern void cipher_Sigp_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Sigp_value")] - public static extern global::System.IntPtr cipher_Sigp_value(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_GoSlicep")] - public static extern global::System.IntPtr new_GoSlicep(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_GoSlicep")] - public static extern global::System.IntPtr copy_GoSlicep(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_GoSlicep")] - public static extern void delete_GoSlicep(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlicep_assign")] - public static extern void GoSlicep_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlicep_value")] - public static extern global::System.IntPtr GoSlicep_value(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_GoStringp_")] - public static extern global::System.IntPtr new_GoStringp_(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_GoStringp_")] - public static extern global::System.IntPtr copy_GoStringp_(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_GoStringp_")] - public static extern void delete_GoStringp_(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoStringp__assign")] - public static extern void GoStringp__assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoStringp__value")] - public static extern global::System.IntPtr GoStringp__value(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_ChkSig__SWIG_0")] + public static extern uint SKY_cipher_ChkSig__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKey_isEqual")] public static extern int cipher_PubKey_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -350,6 +284,9 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Sig_assignTo")] public static extern void cipher_Sig_assignTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Sig_toGoSlice")] + public static extern global::System.IntPtr cipher_Sig_toGoSlice(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cipher_Sig_data")] public static extern void set_cipher_Sig_data(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -590,6 +527,9 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_GoInterface")] public static extern void delete_GoInterface(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_isEqual")] + public static extern int GoSlice_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_GoSlice_data")] public static extern void set_GoSlice_data(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1178,11 +1118,11 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Sig_Hex")] public static extern uint SKY_cipher_Sig_Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SignHash")] - public static extern uint SKY_cipher_SignHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SignHash__SWIG_1")] + public static extern uint SKY_cipher_SignHash__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_ChkSig")] - public static extern uint SKY_cipher_ChkSig(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_ChkSig__SWIG_1")] + public static extern uint SKY_cipher_ChkSig__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_VerifySignedHash")] public static extern uint SKY_cipher_VerifySignedHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1847,8 +1787,8 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Xor")] public static extern uint SKY_cipher_SHA256_Xor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SumSHA256")] - public static extern uint SKY_cipher_SumSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SumSHA256__SWIG_1")] + public static extern uint SKY_cipher_SumSHA256__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256FromHex")] public static extern uint SKY_cipher_SHA256FromHex(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index ea19ff51..eed40f05 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -336,119 +336,22 @@ SWIGEXPORT void SWIGSTDCALL SWIGRegisterStringCallback_skycoin(SWIG_CSharpString } -static cipher_PubKey *new_cipher_PubKeyp() { - return (cipher_PubKey *) calloc(1,sizeof(cipher_PubKey)); -} - -static cipher_PubKey *copy_cipher_PubKeyp(cipher_PubKey value) { - cipher_PubKey *obj = (cipher_PubKey *) calloc(1,sizeof(cipher_PubKey)); - *obj = value; - return obj; -} - -static void delete_cipher_PubKeyp(cipher_PubKey *obj) { - if (obj) free(obj); -} - -static void cipher_PubKeyp_assign(cipher_PubKey *obj, cipher_PubKey value) { - *obj = value; -} - -static cipher_PubKey cipher_PubKeyp_value(cipher_PubKey *obj) { - return *obj; -} - - -static cipher_SecKey *new_cipher_SecKeyp() { - return (cipher_SecKey *) calloc(1,sizeof(cipher_SecKey)); -} - -static cipher_SecKey *copy_cipher_SecKeyp(cipher_SecKey value) { - cipher_SecKey *obj = (cipher_SecKey *) calloc(1,sizeof(cipher_SecKey)); - *obj = value; - return obj; -} - -static void delete_cipher_SecKeyp(cipher_SecKey *obj) { - if (obj) free(obj); -} - -static void cipher_SecKeyp_assign(cipher_SecKey *obj, cipher_SecKey value) { - *obj = value; -} - -static cipher_SecKey cipher_SecKeyp_value(cipher_SecKey *obj) { - return *obj; -} - - -static cipher_Sig *new_cipher_Sigp() { - return (cipher_Sig *) calloc(1,sizeof(cipher_Sig)); -} - -static cipher_Sig *copy_cipher_Sigp(cipher_Sig value) { - cipher_Sig *obj = (cipher_Sig *) calloc(1,sizeof(cipher_Sig)); - *obj = value; - return obj; -} - -static void delete_cipher_Sigp(cipher_Sig *obj) { - if (obj) free(obj); -} - -static void cipher_Sigp_assign(cipher_Sig *obj, cipher_Sig value) { - *obj = value; -} - -static cipher_Sig cipher_Sigp_value(cipher_Sig *obj) { - return *obj; -} - - -static GoSlice *new_GoSlicep() { - return (GoSlice *) calloc(1,sizeof(GoSlice)); -} - -static GoSlice *copy_GoSlicep(GoSlice value) { - GoSlice *obj = (GoSlice *) calloc(1,sizeof(GoSlice)); - *obj = value; - return obj; -} - -static void delete_GoSlicep(GoSlice *obj) { - if (obj) free(obj); -} - -static void GoSlicep_assign(GoSlice *obj, GoSlice value) { - *obj = value; -} - -static GoSlice GoSlicep_value(GoSlice *obj) { - return *obj; -} - - -static GoString_ *new_GoStringp_() { - return (GoString_ *) calloc(1,sizeof(GoString_)); -} + GoUint32 CSharp_skycoin_SKY_cipher_SumSHA256(GoSlice seed, cipher_SHA256* sha){ + GoUint32 result = SKY_cipher_SumSHA256(seed, sha); + return result; + } -static GoString_ *copy_GoStringp_(GoString_ value) { - GoString_ *obj = (GoString_ *) calloc(1,sizeof(GoString_)); - *obj = value; - return obj; -} -static void delete_GoStringp_(GoString_ *obj) { - if (obj) free(obj); -} + GoUint32 CSharp_skycoin_SKY_cipher_SignHash(cipher_SHA256 *sha,cipher__SecKey *sec,cipher_Sig *s){ + GoUint32 result = SKY_cipher_SignHash(sha,sec,s); + return result; + } -static void GoStringp__assign(GoString_ *obj, GoString_ value) { - *obj = value; -} -static GoString_ GoStringp__value(GoString_ *obj) { - return *obj; -} + GoUint32 CSharp_skycoin_SKY_cipher_ChkSig(cipher__Address *a,cipher_SHA256 *sha,cipher_Sig *s){ + GoUint32 result = SKY_cipher_ChkSig(a,sha,s); + return result; + } SWIGINTERN int cipher_PubKey_isEqual(cipher_PubKey *self,cipher_PubKey *a){ return memcmp(self->data, a->data, sizeof(a->data)) == 0; @@ -486,6 +389,13 @@ SWIGINTERN void cipher_Sig_assignFrom(cipher_Sig *self,void *data){ SWIGINTERN void cipher_Sig_assignTo(cipher_Sig *self,void *data){ memcpy(data, &self->data, sizeof(self->data)); } +SWIGINTERN GoSlice cipher_Sig_toGoSlice(cipher_Sig *self){ + GoSlice slice; +slice.len = sizeof(cipher_Sig); +slice.cap = sizeof(cipher_Sig)+1; +slice.data = (cipher_Sig*)&self; +return slice; + } SWIGINTERN int cipher_SHA256_isEqual(cipher_SHA256 *self,cipher_SHA256 *a){ return memcmp(self->data, a->data, sizeof(a->data)) == 0; } @@ -606,6 +516,9 @@ SWIGINTERN void coin_UxOutArray_release(coin_UxOutArray *self){ if(self->data != NULL) free(self->data); } +SWIGINTERN int GoSlice_isEqual(GoSlice *self,GoSlice *slice){ + return ((self->len == slice->len)) && (memcmp(self->data,slice->data, sizeof(GoSlice_))==0 ); + } SWIGINTERN int cipher__Address_isEqual(cipher__Address *self,cipher__Address *a){ if( self->Version == a->Version ){ return memcmp(self->Key, a->Key, sizeof(a->Key)) == 0; @@ -711,225 +624,12 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalBlockHeaders(void * jarg1, void * } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_PubKeyp() { - void * jresult ; - cipher_PubKey *result = 0 ; - - result = (cipher_PubKey *)new_cipher_PubKeyp(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_cipher_PubKeyp(void * jarg1) { - void * jresult ; - cipher_PubKey arg1 ; - cipher_PubKey *argp1 ; - cipher_PubKey *result = 0 ; - - argp1 = (cipher_PubKey *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null cipher_PubKey", 0); - return 0; - } - arg1 = *argp1; - result = (cipher_PubKey *)copy_cipher_PubKeyp(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_PubKeyp(void * jarg1) { - cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; - - arg1 = (cipher_PubKey *)jarg1; - delete_cipher_PubKeyp(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKeyp_assign(void * jarg1, void * jarg2) { - cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; - cipher_PubKey arg2 ; - cipher_PubKey *argp2 ; - - arg1 = (cipher_PubKey *)jarg1; - argp2 = (cipher_PubKey *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null cipher_PubKey", 0); - return ; - } - arg2 = *argp2; - cipher_PubKeyp_assign(arg1,arg2); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_PubKeyp_value(void * jarg1) { - void * jresult ; - cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; - cipher_PubKey result; - - arg1 = (cipher_PubKey *)jarg1; - result = cipher_PubKeyp_value(arg1); - { - cipher_PubKey * resultptr = (cipher_PubKey *) malloc(sizeof(cipher_PubKey)); - memmove(resultptr, &result, sizeof(cipher_PubKey)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_SecKeyp() { - void * jresult ; - cipher_SecKey *result = 0 ; - - result = (cipher_SecKey *)new_cipher_SecKeyp(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_cipher_SecKeyp(void * jarg1) { - void * jresult ; - cipher_SecKey arg1 ; - cipher_SecKey *argp1 ; - cipher_SecKey *result = 0 ; - - argp1 = (cipher_SecKey *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null cipher_SecKey", 0); - return 0; - } - arg1 = *argp1; - result = (cipher_SecKey *)copy_cipher_SecKeyp(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_SecKeyp(void * jarg1) { - cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; - - arg1 = (cipher_SecKey *)jarg1; - delete_cipher_SecKeyp(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SecKeyp_assign(void * jarg1, void * jarg2) { - cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; - cipher_SecKey arg2 ; - cipher_SecKey *argp2 ; - - arg1 = (cipher_SecKey *)jarg1; - argp2 = (cipher_SecKey *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null cipher_SecKey", 0); - return ; - } - arg2 = *argp2; - cipher_SecKeyp_assign(arg1,arg2); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_SecKeyp_value(void * jarg1) { - void * jresult ; - cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; - cipher_SecKey result; - - arg1 = (cipher_SecKey *)jarg1; - result = cipher_SecKeyp_value(arg1); - { - cipher_SecKey * resultptr = (cipher_SecKey *) malloc(sizeof(cipher_SecKey)); - memmove(resultptr, &result, sizeof(cipher_SecKey)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher_Sigp() { - void * jresult ; - cipher_Sig *result = 0 ; - - result = (cipher_Sig *)new_cipher_Sigp(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_cipher_Sigp(void * jarg1) { - void * jresult ; - cipher_Sig arg1 ; - cipher_Sig *argp1 ; - cipher_Sig *result = 0 ; - - argp1 = (cipher_Sig *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null cipher_Sig", 0); - return 0; - } - arg1 = *argp1; - result = (cipher_Sig *)copy_cipher_Sigp(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_Sigp(void * jarg1) { - cipher_Sig *arg1 = (cipher_Sig *) 0 ; - - arg1 = (cipher_Sig *)jarg1; - delete_cipher_Sigp(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Sigp_assign(void * jarg1, void * jarg2) { - cipher_Sig *arg1 = (cipher_Sig *) 0 ; - cipher_Sig arg2 ; - cipher_Sig *argp2 ; - - arg1 = (cipher_Sig *)jarg1; - argp2 = (cipher_Sig *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null cipher_Sig", 0); - return ; - } - arg2 = *argp2; - cipher_Sigp_assign(arg1,arg2); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_Sigp_value(void * jarg1) { - void * jresult ; - cipher_Sig *arg1 = (cipher_Sig *) 0 ; - cipher_Sig result; - - arg1 = (cipher_Sig *)jarg1; - result = cipher_Sigp_value(arg1); - { - cipher_Sig * resultptr = (cipher_Sig *) malloc(sizeof(cipher_Sig)); - memmove(resultptr, &result, sizeof(cipher_Sig)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_GoSlicep() { - void * jresult ; - GoSlice *result = 0 ; - - result = (GoSlice *)new_GoSlicep(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_GoSlicep(void * jarg1) { - void * jresult ; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SumSHA256__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; GoSlice arg1 ; + cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; GoSlice *argp1 ; - GoSlice *result = 0 ; + GoUint32 result; argp1 = (GoSlice *)jarg1; if (!argp1) { @@ -937,116 +637,41 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_GoSlicep(void * jarg1) { return 0; } arg1 = *argp1; - result = (GoSlice *)copy_GoSlicep(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_GoSlicep(void * jarg1) { - GoSlice *arg1 = (GoSlice *) 0 ; - - arg1 = (GoSlice *)jarg1; - delete_GoSlicep(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoSlicep_assign(void * jarg1, void * jarg2) { - GoSlice *arg1 = (GoSlice *) 0 ; - GoSlice arg2 ; - GoSlice *argp2 ; - - arg1 = (GoSlice *)jarg1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return ; - } - arg2 = *argp2; - GoSlicep_assign(arg1,arg2); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_GoSlicep_value(void * jarg1) { - void * jresult ; - GoSlice *arg1 = (GoSlice *) 0 ; - GoSlice result; - - arg1 = (GoSlice *)jarg1; - result = GoSlicep_value(arg1); - { - GoSlice * resultptr = (GoSlice *) malloc(sizeof(GoSlice)); - memmove(resultptr, &result, sizeof(GoSlice)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_GoStringp_() { - void * jresult ; - GoString_ *result = 0 ; - - result = (GoString_ *)new_GoStringp_(); - jresult = (void *)result; + arg2 = (cipher_SHA256 *)jarg2; + result = (GoUint32)CSharp_skycoin_SKY_cipher_SumSHA256(arg1,arg2); + jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_GoStringp_(void * jarg1) { - void * jresult ; - GoString_ arg1 ; - GoString_ *argp1 ; - GoString_ *result = 0 ; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SignHash__SWIG_0(void * jarg1, cipher_SecKey* jarg2, void * jarg3) { + unsigned int jresult ; + cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + cipher_Sig *arg3 = (cipher_Sig *) 0 ; + GoUint32 result; - argp1 = (GoString_ *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); - return 0; - } - arg1 = *argp1; - result = (GoString_ *)copy_GoStringp_(arg1); - jresult = (void *)result; + arg1 = (cipher_SHA256 *)jarg1; + arg2 = (cipher__SecKey *)jarg2; + arg3 = (cipher_Sig *)jarg3; + result = (GoUint32)CSharp_skycoin_SKY_cipher_SignHash(arg1,(GoUint8_ (*)[32])arg2,arg3); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_GoStringp_(void * jarg1) { - GoString_ *arg1 = (GoString_ *) 0 ; - - arg1 = (GoString_ *)jarg1; - delete_GoStringp_(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoStringp__assign(void * jarg1, void * jarg2) { - GoString_ *arg1 = (GoString_ *) 0 ; - GoString_ arg2 ; - GoString_ *argp2 ; - - arg1 = (GoString_ *)jarg1; - argp2 = (GoString_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); - return ; - } - arg2 = *argp2; - GoStringp__assign(arg1,arg2); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_GoStringp__value(void * jarg1) { - void * jresult ; - GoString_ *arg1 = (GoString_ *) 0 ; - GoString_ result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_ChkSig__SWIG_0(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; + cipher_Sig *arg3 = (cipher_Sig *) 0 ; + GoUint32 result; - arg1 = (GoString_ *)jarg1; - result = GoStringp__value(arg1); - { - GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); - memmove(resultptr, &result, sizeof(GoString_)); - jresult = resultptr; - } + arg1 = (cipher__Address *)jarg1; + arg2 = (cipher_SHA256 *)jarg2; + arg3 = (cipher_Sig *)jarg3; + result = (GoUint32)CSharp_skycoin_SKY_cipher_ChkSig(arg1,arg2,arg3); + jresult = result; return jresult; } @@ -1319,6 +944,22 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Sig_assignTo(void * jarg1, voi } +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_Sig_toGoSlice(void * jarg1) { + void * jresult ; + cipher_Sig *arg1 = (cipher_Sig *) 0 ; + GoSlice result; + + arg1 = (cipher_Sig *)jarg1; + result = cipher_Sig_toGoSlice(arg1); + { + GoSlice * resultptr = (GoSlice *) malloc(sizeof(GoSlice)); + memmove(resultptr, &result, sizeof(GoSlice)); + jresult = resultptr; + } + return jresult; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher_Sig_data(void * jarg1, void * jarg2) { cipher_Sig *arg1 = (cipher_Sig *) 0 ; GoUint8 *arg2 ; @@ -2218,6 +1859,20 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_GoInterface(void * jarg1) { } +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_GoSlice_isEqual(void * jarg1, void * jarg2) { + int jresult ; + GoSlice *arg1 = (GoSlice *) 0 ; + GoSlice *arg2 = (GoSlice *) 0 ; + int result; + + arg1 = (GoSlice *)jarg1; + arg2 = (GoSlice *)jarg2; + result = (int)GoSlice_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_GoSlice_data(void * jarg1, void * jarg2) { GoSlice *arg1 = (GoSlice *) 0 ; void *arg2 = (void *) 0 ; @@ -5716,7 +5371,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Sig_Hex(cipher_Sig } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SignHash(cipher_SecKey* jarg1, cipher_SecKey* jarg2, cipher_Sig* jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SignHash__SWIG_1(cipher_SecKey* jarg1, cipher_SecKey* jarg2, cipher_Sig* jarg3) { unsigned int jresult ; cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; @@ -5732,7 +5387,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SignHash(cipher_Se } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_ChkSig(void * jarg1, cipher_SecKey* jarg2, cipher_Sig* jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_ChkSig__SWIG_1(void * jarg1, cipher_SecKey* jarg2, cipher_Sig* jarg3) { unsigned int jresult ; cipher__Address *arg1 = (cipher__Address *) 0 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; @@ -9660,7 +9315,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Xor(cipher_ } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SumSHA256(void * jarg1, cipher_SecKey* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SumSHA256__SWIG_1(void * jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; GoSlice arg1 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; diff --git a/LibskycoinNetTest/LibskycoinNetTest.csproj b/LibskycoinNetTest/LibskycoinNetTest.csproj index d80799fe..87ff3c42 100644 --- a/LibskycoinNetTest/LibskycoinNetTest.csproj +++ b/LibskycoinNetTest/LibskycoinNetTest.csproj @@ -35,6 +35,7 @@ + diff --git a/LibskycoinNetTest/check_cipher_address.cs b/LibskycoinNetTest/check_cipher_address.cs index 3db6937c..d74b0195 100644 --- a/LibskycoinNetTest/check_cipher_address.cs +++ b/LibskycoinNetTest/check_cipher_address.cs @@ -153,7 +153,7 @@ public void TestAddressVerify () { err = skycoin.skycoin.SKY_cipher_Address_Verify (a, p); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); // Invalid pubkey - err = skycoin.skycoin.SKY_cipher_Address_Verify (a, skycoin.skycoin.new_cipher_PubKeyp ()); + err = skycoin.skycoin.SKY_cipher_Address_Verify (a, new skycoin.cipher_PubKey()); Assert.AreEqual (err, skycoin.skycoin.SKY_ErrAddressInvalidPubKey); var p2 = new skycoin.cipher_PubKey (); var s2 = new skycoin.cipher_SecKey (); diff --git a/LibskycoinNetTest/check_cipher_crypto.cs b/LibskycoinNetTest/check_cipher_crypto.cs new file mode 100644 index 00000000..cdc5bcc2 --- /dev/null +++ b/LibskycoinNetTest/check_cipher_crypto.cs @@ -0,0 +1,358 @@ +using System; +using NUnit.Framework; +using skycoin; +namespace LibskycoinNetTest { + [TestFixture ()] + public class check_cipher_cryto { + [Test] + public void TestNewPubKey () { + var b = new GoSlice (); + var p = new cipher_PubKey (); + var err = skycoin.skycoin.SKY_cipher_RandByte (31, b); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_NewPubKey (b, p); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthPubKey); + err = skycoin.skycoin.SKY_cipher_RandByte (32, b); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_NewPubKey (b, p); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthPubKey); + err = skycoin.skycoin.SKY_cipher_RandByte (34, b); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_NewPubKey (b, p); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthPubKey); + err = skycoin.skycoin.SKY_cipher_RandByte (0, b); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_NewPubKey (b, p); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthPubKey); + err = skycoin.skycoin.SKY_cipher_RandByte (100, b); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_NewPubKey (b, p); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthPubKey); + b = new GoSlice (); + err = skycoin.skycoin.SKY_cipher_RandByte (33, b); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_NewPubKey (b, p); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var b1 = new GoSlice (); + var p1 = new cipher_PubKey (); + err = skycoin.skycoin.SKY_cipher_RandByte (33, b1); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_NewPubKey (b1, p1); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + } + + [Test] + public void TestPubKeyVerify () { + var failed = false; + for (int i = 0; i < 10; i++) { + var b = new GoSlice (); + var err = skycoin.skycoin.SKY_cipher_RandByte (33, b); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var p = new cipher_PubKey (); + err = skycoin.skycoin.SKY_cipher_NewPubKey (b, p); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_PubKey_Verify (p); + if (err != skycoin.skycoin.SKY_OK) { + failed = true; + break; + } + } + Assert.IsTrue (failed); + } + + [Test] + public void TestPubKeyVerifyNil () { + // Empty public key should not be valid + var p = new cipher_PubKey (); + var err = skycoin.skycoin.SKY_cipher_PubKey_Verify (p); + Assert.AreNotEqual (err, skycoin.skycoin.SKY_OK); + } + + [Test] + public void TestPubKeyVerifyDefault1 () { + // Generated pub key should be valid + var p = new cipher_PubKey (); + var s = new cipher_SecKey (); + var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); + err = skycoin.skycoin.SKY_cipher_PubKey_Verify (p); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + } + + [Test] + public void TestPubKeyVerifyDefault2 () { + for (int i = 0; i < 1024; i++) { + var p = new cipher_PubKey (); + var s = new cipher_SecKey (); + var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); + err = skycoin.skycoin.SKY_cipher_PubKey_Verify (p); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + } + } + + [Test] + public void TestPubKeyToAddress () { + var p = new cipher_PubKey (); + var s = new cipher_SecKey (); + var addr = new cipher__Address (); + var addr1 = new cipher__Address (); + var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); + err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, addr); + err = skycoin.skycoin.SKY_cipher_Address_Verify (addr, p); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var addrStr = new _GoString_ (); + err = skycoin.skycoin.SKY_cipher_Address_String (addr, addrStr); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_DecodeBase58Address (addrStr.p, addr1); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + } + + [Test] + public void TestPubKeyToAddress2 () { + for (int i = 0; i < 1024; i++) { + var p = new cipher_PubKey (); + var s = new cipher_SecKey (); + var addr = new cipher__Address (); + var addr1 = new cipher__Address (); + var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); + err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, addr); + err = skycoin.skycoin.SKY_cipher_Address_Verify (addr, p); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var addrStr = new _GoString_ (); + err = skycoin.skycoin.SKY_cipher_Address_String (addr, addrStr); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_DecodeBase58Address (addrStr.p, addr1); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + } + } + + [Test] + public void TestMustNewSecKey () { + var b = new GoSlice (); + var p = new cipher_SecKey (); + var err = skycoin.skycoin.SKY_cipher_RandByte (31, b); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_NewSecKey (b, p); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthSecKey); + err = skycoin.skycoin.SKY_cipher_RandByte (32, b); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_NewSecKey (b, p); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthSecKey); + err = skycoin.skycoin.SKY_cipher_RandByte (34, b); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_NewSecKey (b, p); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthSecKey); + err = skycoin.skycoin.SKY_cipher_RandByte (0, b); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_NewSecKey (b, p); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthSecKey); + err = skycoin.skycoin.SKY_cipher_RandByte (100, b); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_NewSecKey (b, p); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthSecKey); + b = new GoSlice (); + err = skycoin.skycoin.SKY_cipher_RandByte (32, b); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_NewSecKey (b, p); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var b1 = new GoSlice (); + var p1 = new cipher_SecKey (); + err = skycoin.skycoin.SKY_cipher_RandByte (32, b1); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_NewSecKey (b1, p1); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + } + + [Test] + public void TestSecKeyVerify () { + // Empty secret key should not be valid + var s = new cipher_SecKey (); + var err = skycoin.skycoin.SKY_cipher_SecKey_Verify (s); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidSecKey); + // Generated sec key should be valid + var p = new cipher_PubKey (); + s = new cipher_SecKey (); + err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.SKY_cipher_SecKey_Verify (s), skycoin.skycoin.SKY_OK); + } + + [Test] + public void TestECDHonce () { + var pub1 = new cipher_PubKey (); + var pub2 = new cipher_PubKey (); + var sec1 = new cipher_SecKey (); + var sec2 = new cipher_SecKey (); + var buf1 = new GoSlice (); + var buf2 = new GoSlice (); + var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (pub1, sec1); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (pub2, sec2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_ECDH (pub2, sec1, buf1); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_ECDH (pub1, sec2, buf2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (buf1.isEqual (buf2), 1); + } + + [Test] + public void TestECDHloop () { + for (int i = 0; i < 128; i++) { + var pub1 = new cipher_PubKey (); + var pub2 = new cipher_PubKey (); + var sec1 = new cipher_SecKey (); + var sec2 = new cipher_SecKey (); + var buf1 = new GoSlice (); + var buf2 = new GoSlice (); + var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (pub1, sec1); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (pub2, sec2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_ECDH (pub2, sec1, buf1); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_ECDH (pub1, sec2, buf2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (buf1.isEqual (buf2), 1); + } + } + + [Test] + public void TestNewSig () { + var b = new GoSlice (); + var err = skycoin.skycoin.SKY_cipher_RandByte (64, b); + var s = new cipher_Sig (); + err = skycoin.skycoin.SKY_cipher_NewSig (b, s); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthSig); + err = skycoin.skycoin.SKY_cipher_RandByte (66, b); + err = skycoin.skycoin.SKY_cipher_NewSig (b, s); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthSig); + err = skycoin.skycoin.SKY_cipher_RandByte (67, b); + err = skycoin.skycoin.SKY_cipher_NewSig (b, s); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthSig); + err = skycoin.skycoin.SKY_cipher_RandByte (0, b); + err = skycoin.skycoin.SKY_cipher_NewSig (b, s); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthSig); + err = skycoin.skycoin.SKY_cipher_RandByte (100, b); + err = skycoin.skycoin.SKY_cipher_NewSig (b, s); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthSig); + s = new cipher_Sig (); + b = new GoSlice (); + err = skycoin.skycoin.SKY_cipher_RandByte (65, b); + err = skycoin.skycoin.SKY_cipher_NewSig (b, s); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var b1 = new GoSlice (); + err = skycoin.skycoin.SKY_cipher_RandByte (65, b1); + var s1 = new cipher_Sig (); + err = skycoin.skycoin.SKY_cipher_NewSig (b1, s1); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + } + + [Test] + public void TestChkSig () { + var s = new cipher_SecKey (); + var p = new cipher_PubKey (); + var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); + err = skycoin.skycoin.SKY_cipher_PubKey_Verify (p); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_SecKey_Verify (s); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var a = new cipher__Address (); + err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, a); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_Address_Verify (a, p); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var b = new GoSlice (); + err = skycoin.skycoin.SKY_cipher_RandByte (256, b); + var h = new cipher_SHA256 (); + err = skycoin.skycoin.SKY_cipher_SumSHA256 (b, h); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var sig = new cipher_Sig (); + err = skycoin.skycoin.SKY_cipher_SignHash (h, s, sig); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_ChkSig (a, h, sig); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + // Empty sig should be invalid + err = skycoin.skycoin.SKY_cipher_ChkSig (a, h, new cipher_Sig ()); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidSigForPubKey); + // Random sigs should not pass + for (int i = 0; i < 100; i++) { + var b1 = new GoSlice (); + skycoin.skycoin.SKY_cipher_RandByte (65, b1); + var sig1 = new cipher_Sig (); + skycoin.skycoin.SKY_cipher_NewSig (b1, sig1); + err = skycoin.skycoin.SKY_cipher_ChkSig (a, h, sig1); + Assert.AreNotEqual (err, skycoin.skycoin.SKY_OK); + } + // Sig for one hash does not work for another hash + var h2 = new cipher_SHA256 (); + var b2 = new skycoin.GoSlice (); + skycoin.skycoin.SKY_cipher_RandByte (256, b2); + skycoin.skycoin.SKY_cipher_SumSHA256 (b2, h2); + var sig2 = new cipher_Sig (); + err = skycoin.skycoin.SKY_cipher_SignHash (h2, s, sig2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_ChkSig (a, h2, sig2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_ChkSig (a, h, sig2); + Assert.AreNotEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_ChkSig (a, h2, sig); + Assert.AreNotEqual (err, skycoin.skycoin.SKY_OK); + + // Different secret keys should not create same sig + var p2 = new cipher_PubKey (); + var s2 = new cipher_SecKey (); + var a2 = new cipher__Address (); + skycoin.skycoin.SKY_cipher_GenerateKeyPair (p2, s2); + err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p2, a2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + h = new cipher_SHA256 (); + sig = new cipher_Sig (); + sig2 = new cipher_Sig (); + skycoin.skycoin.SKY_cipher_SignHash (h, s, sig); + skycoin.skycoin.SKY_cipher_SignHash (h, s2, sig2); + err = skycoin.skycoin.SKY_cipher_ChkSig (a, h, sig); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_ChkSig (a2, h, sig2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (sig.isEqual (sig2), 0); + var b_temp = new GoSlice (); + skycoin.skycoin.SKY_cipher_RandByte (256, b_temp); + h = new cipher_SHA256 (); + skycoin.skycoin.SKY_cipher_SumSHA256 (b_temp, h); + sig = new cipher_Sig (); + sig2 = new cipher_Sig (); + skycoin.skycoin.SKY_cipher_SignHash (h, s, sig); + skycoin.skycoin.SKY_cipher_SignHash (h, s2, sig2); + err = skycoin.skycoin.SKY_cipher_ChkSig (a, h, sig); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_ChkSig (a2, h, sig2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (sig.isEqual (sig2), 0); + // Bad address should be invalid + err = skycoin.skycoin.SKY_cipher_ChkSig (a, h, sig2); + Assert.AreNotEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_ChkSig (a2, h, sig); + Assert.AreNotEqual (err, skycoin.skycoin.SKY_OK); + } + + [Test] + + public void TestSignHash () { + var p = new cipher_PubKey (); + var s = new cipher_SecKey (); + var a = new cipher__Address (); + skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); + var err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, a); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var b_temp = new GoSlice (); + skycoin.skycoin.SKY_cipher_RandByte (256, b_temp); + var h = new cipher_SHA256 (); + skycoin.skycoin.SKY_cipher_SumSHA256 (b_temp, h); + var sig = new cipher_Sig (); + skycoin.skycoin.SKY_cipher_SignHash (h, s, sig); + Assert.AreEqual (sig.isEqual (new cipher_Sig ()), 0); + err = skycoin.skycoin.SKY_cipher_ChkSig (a, h, sig); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + } + } +} \ No newline at end of file diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index ad256330..14200c87 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit ad256330c87bd626b1ff2c988f2ff2b9ab0a235b +Subproject commit 14200c87bdfa77653c0718a097fedc57cb56b5d7 From 55f309e50f6bdb8b0b2c3b7e96eb69e954d20973 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Sun, 16 Sep 2018 12:24:36 -0400 Subject: [PATCH 26/73] [test][libdotnet] refs #8 Finish test cipher_crypto Tests run: 30, Errors: 0, Failures: 0, Inconclusive: 0, Time: 12,9590975 seconds Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0 --- LibskycoinNet/skycoin/GoSlice.cs | 4 + LibskycoinNet/skycoin/_GoString_.cs | 5 + LibskycoinNet/skycoin/skycoin.cs | 21 +++- LibskycoinNet/skycoin/skycoinPINVOKE.cs | 27 +++- LibskycoinNet/skycoin/skycoinnet_wrap.c | 103 ++++++++++++++- LibskycoinNetTest/check_cipher_crypto.cs | 153 +++++++++++++++++++++++ gopath/src/github.com/skycoin/skycoin | 2 +- 7 files changed, 302 insertions(+), 13 deletions(-) diff --git a/LibskycoinNet/skycoin/GoSlice.cs b/LibskycoinNet/skycoin/GoSlice.cs index 6bfcdb31..ecd1051b 100644 --- a/LibskycoinNet/skycoin/GoSlice.cs +++ b/LibskycoinNet/skycoin/GoSlice.cs @@ -45,6 +45,10 @@ public int isEqual(GoSlice slice) { return ret; } + public void convertString(string data) { + skycoinPINVOKE.GoSlice_convertString(swigCPtr, data); + } + public SWIGTYPE_p_void data { set { skycoinPINVOKE.set_GoSlice_data(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); diff --git a/LibskycoinNet/skycoin/_GoString_.cs b/LibskycoinNet/skycoin/_GoString_.cs index 50925471..241454a3 100644 --- a/LibskycoinNet/skycoin/_GoString_.cs +++ b/LibskycoinNet/skycoin/_GoString_.cs @@ -40,6 +40,11 @@ public virtual void Dispose() { } } + public int SetString(string str) { + int ret = skycoinPINVOKE._GoString__SetString(swigCPtr, str); + return ret; + } + public string p { set { skycoinPINVOKE.set__GoString__p(swigCPtr, value); diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs index 6c42bdcc..09e2b394 100644 --- a/LibskycoinNet/skycoin/skycoin.cs +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -54,6 +54,21 @@ public static uint SKY_cipher_ChkSig(cipher__Address a, cipher_SHA256 sha, ciphe return ret; } + public static uint SKY_cipher_PubKeyFromSig(cipher_Sig sig, cipher_SHA256 h, cipher_PubKey p) { + uint ret = skycoinPINVOKE.SKY_cipher_PubKeyFromSig__SWIG_0(cipher_Sig.getCPtr(sig), cipher_SHA256.getCPtr(h), cipher_PubKey.getCPtr(p)); + return ret; + } + + public static uint SKY_cipher_VerifySignature(cipher_PubKey p, cipher_Sig sig, cipher_SHA256 h) { + uint ret = skycoinPINVOKE.SKY_cipher_VerifySignature__SWIG_0(cipher_PubKey.getCPtr(p), cipher_Sig.getCPtr(sig), cipher_SHA256.getCPtr(h)); + return ret; + } + + public static uint SKY_cipher_TestSecKeyHash(cipher_SecKey s, cipher_SHA256 h) { + uint ret = skycoinPINVOKE.SKY_cipher_TestSecKeyHash__SWIG_0(cipher_SecKey.getCPtr(s), cipher_SHA256.getCPtr(h)); + return ret; + } + public static uint SKY_coin_NewBlock(SWIGTYPE_p_Block__Handle p0, ulong p1, cipher_SecKey p2, SWIGTYPE_p_Transactions__Handle p3, SWIGTYPE_p_FeeCalculator p4, SWIGTYPE_p_Block__Handle p5) { var tmpp2 = cipher_SecKey.getCPtr (p2); { @@ -1331,7 +1346,7 @@ public static uint SKY_cipher_PubKeyFromSig(cipher_Sig p0, cipher_SecKey p1, cip var tmpp1 = cipher_SecKey.getCPtr (p1); var tmpp2 = cipher_PubKey.getCPtr (p2); { - uint ret = skycoinPINVOKE.SKY_cipher_PubKeyFromSig(tmpp0, tmpp1, tmpp2); + uint ret = skycoinPINVOKE.SKY_cipher_PubKeyFromSig__SWIG_1(tmpp0, tmpp1, tmpp2); return ret; } } @@ -1467,7 +1482,7 @@ public static uint SKY_cipher_VerifySignature(cipher_PubKey p0, cipher_Sig p1, c var tmpp1 = cipher_Sig.getCPtr (p1); var tmpp2 = cipher_SecKey.getCPtr (p2); { - uint ret = skycoinPINVOKE.SKY_cipher_VerifySignature(tmpp0, tmpp1, tmpp2); + uint ret = skycoinPINVOKE.SKY_cipher_VerifySignature__SWIG_1(tmpp0, tmpp1, tmpp2); return ret; } } @@ -1524,7 +1539,7 @@ public static uint SKY_cipher_TestSecKeyHash(cipher_SecKey p0, cipher_SecKey p1) var tmpp0 = cipher_SecKey.getCPtr (p0); var tmpp1 = cipher_SecKey.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_cipher_TestSecKeyHash(tmpp0, tmpp1); + uint ret = skycoinPINVOKE.SKY_cipher_TestSecKeyHash__SWIG_1(tmpp0, tmpp1); return ret; } } diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index e336a752..b395ae22 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -212,6 +212,15 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_ChkSig__SWIG_0")] public static extern uint SKY_cipher_ChkSig__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromSig__SWIG_0")] + public static extern uint SKY_cipher_PubKeyFromSig__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_VerifySignature__SWIG_0")] + public static extern uint SKY_cipher_VerifySignature__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_TestSecKeyHash__SWIG_0")] + public static extern uint SKY_cipher_TestSecKeyHash__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKey_isEqual")] public static extern int cipher_PubKey_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -491,6 +500,9 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_Addresses")] public static extern void delete_cipher_Addresses(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin__GoString__SetString")] + public static extern int _GoString__SetString(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set__GoString__p")] public static extern void set__GoString__p(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); @@ -530,6 +542,9 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_isEqual")] public static extern int GoSlice_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_convertString")] + public static extern void GoSlice_convertString(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_GoSlice_data")] public static extern void set_GoSlice_data(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1082,8 +1097,8 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromSecKey")] public static extern uint SKY_cipher_PubKeyFromSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromSig")] - public static extern uint SKY_cipher_PubKeyFromSig(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromSig__SWIG_1")] + public static extern uint SKY_cipher_PubKeyFromSig__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKey_Verify")] public static extern uint SKY_cipher_PubKey_Verify(global::System.Runtime.InteropServices.HandleRef jarg1); @@ -1127,8 +1142,8 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_VerifySignedHash")] public static extern uint SKY_cipher_VerifySignedHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_VerifySignature")] - public static extern uint SKY_cipher_VerifySignature(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_VerifySignature__SWIG_1")] + public static extern uint SKY_cipher_VerifySignature__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPair")] public static extern uint SKY_cipher_GenerateDeterministicKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -1145,8 +1160,8 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_TestSecKey")] public static extern uint SKY_cipher_TestSecKey(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_TestSecKeyHash")] - public static extern uint SKY_cipher_TestSecKeyHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_TestSecKeyHash__SWIG_1")] + public static extern uint SKY_cipher_TestSecKeyHash__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateKeyPair")] public static extern uint SKY_cipher_GenerateKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index eed40f05..3c691a01 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -353,6 +353,24 @@ SWIGEXPORT void SWIGSTDCALL SWIGRegisterStringCallback_skycoin(SWIG_CSharpString return result; } + + GoUint32 CSharp_skycoin_SKY_cipher_PubKeyFromSig(cipher_Sig *sig,cipher_SHA256 *h,cipher_PubKey *p){ + GoUint32 result = SKY_cipher_PubKeyFromSig(sig,h,p); + return result; + } + + + GoUint32 CSharp_skycoin_SKY_cipher_VerifySignature(cipher_PubKey *p,cipher_Sig *sig,cipher_SHA256 *h){ + GoUint32 result = SKY_cipher_VerifySignature(p,sig,h); + return result; + } + + + GoUint32 CSharp_skycoin_SKY_cipher_TestSecKeyHash(cipher_SecKey *s,cipher_SHA256 *h){ + GoUint32 result = SKY_cipher_TestSecKeyHash(s,h); + return result; + } + SWIGINTERN int cipher_PubKey_isEqual(cipher_PubKey *self,cipher_PubKey *a){ return memcmp(self->data, a->data, sizeof(a->data)) == 0; } @@ -516,9 +534,18 @@ SWIGINTERN void coin_UxOutArray_release(coin_UxOutArray *self){ if(self->data != NULL) free(self->data); } +SWIGINTERN int _GoString__SetString(_GoString_ *self,char *str){ + self->p = str; + self->p = strlen(str); + } SWIGINTERN int GoSlice_isEqual(GoSlice *self,GoSlice *slice){ return ((self->len == slice->len)) && (memcmp(self->data,slice->data, sizeof(GoSlice_))==0 ); } +SWIGINTERN void GoSlice_convertString(GoSlice *self,char *data){ + self->data = data; + self->len = strlen(data); + self->cap = strlen(data); + } SWIGINTERN int cipher__Address_isEqual(cipher__Address *self,cipher__Address *a){ if( self->Version == a->Version ){ return memcmp(self->Key, a->Key, sizeof(a->Key)) == 0; @@ -676,6 +703,52 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_ChkSig__SWIG_0(voi } +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSig__SWIG_0(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + cipher_Sig *arg1 = (cipher_Sig *) 0 ; + cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; + cipher_PubKey *arg3 = (cipher_PubKey *) 0 ; + GoUint32 result; + + arg1 = (cipher_Sig *)jarg1; + arg2 = (cipher_SHA256 *)jarg2; + arg3 = (cipher_PubKey *)jarg3; + result = (GoUint32)CSharp_skycoin_SKY_cipher_PubKeyFromSig(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignature__SWIG_0(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; + cipher_Sig *arg2 = (cipher_Sig *) 0 ; + cipher_SHA256 *arg3 = (cipher_SHA256 *) 0 ; + GoUint32 result; + + arg1 = (cipher_PubKey *)jarg1; + arg2 = (cipher_Sig *)jarg2; + arg3 = (cipher_SHA256 *)jarg3; + result = (GoUint32)CSharp_skycoin_SKY_cipher_VerifySignature(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_TestSecKeyHash__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; + cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; + GoUint32 result; + + arg1 = (cipher_SecKey *)jarg1; + arg2 = (cipher_SHA256 *)jarg2; + result = (GoUint32)CSharp_skycoin_SKY_cipher_TestSecKeyHash(arg1,arg2); + jresult = result; + return jresult; +} + + SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_PubKey_isEqual(void * jarg1, void * jarg2) { int jresult ; cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; @@ -1718,6 +1791,20 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_Addresses(void * jarg1) } +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin__GoString__SetString(void * jarg1, char * jarg2) { + int jresult ; + _GoString_ *arg1 = (_GoString_ *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + arg1 = (_GoString_ *)jarg1; + arg2 = (char *)jarg2; + result = (int)_GoString__SetString(arg1,arg2); + jresult = result; + return jresult; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set__GoString__p(void * jarg1, char * jarg2) { _GoString_ *arg1 = (_GoString_ *) 0 ; char *arg2 = (char *) 0 ; @@ -1873,6 +1960,16 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_GoSlice_isEqual(void * jarg1, void * j } +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoSlice_convertString(void * jarg1, char * jarg2) { + GoSlice *arg1 = (GoSlice *) 0 ; + char *arg2 = (char *) 0 ; + + arg1 = (GoSlice *)jarg1; + arg2 = (char *)jarg2; + GoSlice_convertString(arg1,arg2); +} + + SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_GoSlice_data(void * jarg1, void * jarg2) { GoSlice *arg1 = (GoSlice *) 0 ; void *arg2 = (void *) 0 ; @@ -5191,7 +5288,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSecKey(c } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSig(cipher_Sig* jarg1, cipher_SecKey* jarg2, cipher__PubKey* jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSig__SWIG_1(cipher_Sig* jarg1, cipher_SecKey* jarg2, cipher__PubKey* jarg3) { unsigned int jresult ; cipher__Sig *arg1 = (cipher__Sig *) 0 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; @@ -5417,7 +5514,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignedHash(c } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignature(cipher__PubKey* jarg1, cipher_Sig* jarg2, cipher_SecKey* jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignature__SWIG_1(cipher__PubKey* jarg1, cipher_Sig* jarg2, cipher_SecKey* jarg3) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; cipher__Sig *arg2 = (cipher__Sig *) 0 ; @@ -5537,7 +5634,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_TestSecKey(cipher_ } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_TestSecKeyHash(cipher_SecKey* jarg1, cipher_SecKey* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_TestSecKeyHash__SWIG_1(cipher_SecKey* jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; diff --git a/LibskycoinNetTest/check_cipher_crypto.cs b/LibskycoinNetTest/check_cipher_crypto.cs index cdc5bcc2..2742d88d 100644 --- a/LibskycoinNetTest/check_cipher_crypto.cs +++ b/LibskycoinNetTest/check_cipher_crypto.cs @@ -354,5 +354,158 @@ public void TestSignHash () { err = skycoin.skycoin.SKY_cipher_ChkSig (a, h, sig); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); } + + [Test] + public void TestPubKeyFromSecKey () { + var p = new cipher_PubKey (); + var s = new cipher_SecKey (); + var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); + var p1 = new cipher_PubKey (); + err = skycoin.skycoin.SKY_cipher_PubKeyFromSecKey (s, p1); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (p1.isEqual (p), 1); + p1 = new cipher_PubKey (); + err = skycoin.skycoin.SKY_cipher_PubKeyFromSecKey (new cipher_SecKey (), p1); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrPubKeyFromNullSecKey); + var b = new GoSlice (); + err = skycoin.skycoin.SKY_cipher_RandByte (99, b); + s = new cipher_SecKey (); + err = skycoin.skycoin.SKY_cipher_NewSecKey (b, s); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthSecKey); + err = skycoin.skycoin.SKY_cipher_PubKeyFromSecKey (s, p); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrPubKeyFromNullSecKey); + b = new GoSlice (); + err = skycoin.skycoin.SKY_cipher_RandByte (33, b); + s = new cipher_SecKey (); + err = skycoin.skycoin.SKY_cipher_NewSecKey (b, s); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthSecKey); + err = skycoin.skycoin.SKY_cipher_PubKeyFromSecKey (s, p); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrPubKeyFromNullSecKey); + + } + + [Test] + public void TestPubKeyFromSig () { + var p = new cipher_PubKey (); + var s = new cipher_SecKey (); + var b = new GoSlice (); + var h = new cipher_SHA256 (); + var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); + err = skycoin.skycoin.SKY_cipher_RandByte (256, b); + err = skycoin.skycoin.SKY_cipher_SumSHA256 (b, h); + var sig = new cipher_Sig (); + err = skycoin.skycoin.SKY_cipher_SignHash (h, s, sig); + var p2 = new cipher_PubKey (); + err = skycoin.skycoin.SKY_cipher_PubKeyFromSig (sig, h, p2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (p2.isEqual (p), 1); + p2 = new cipher_PubKey (); + err = skycoin.skycoin.SKY_cipher_PubKeyFromSig (new cipher_Sig (), h, p2); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidSigForPubKey); + } + + [Test] + public void TestVerifySignature () { + var p = new cipher_PubKey (); + var s = new cipher_SecKey (); + var b = new GoSlice (); + var h = new cipher_SHA256 (); + var h2 = new cipher_SHA256 (); + var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); + err = skycoin.skycoin.SKY_cipher_RandByte (256, b); + err = skycoin.skycoin.SKY_cipher_SumSHA256 (b, h); + b = new GoSlice (); + err = skycoin.skycoin.SKY_cipher_RandByte (256, b); + err = skycoin.skycoin.SKY_cipher_SumSHA256 (b, h2); + var sig = new cipher_Sig (); + err = skycoin.skycoin.SKY_cipher_SignHash (h, s, sig); + err = skycoin.skycoin.SKY_cipher_VerifySignature (p, sig, h); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_VerifySignature (p, new cipher_Sig (), h); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidSigForPubKey); + err = skycoin.skycoin.SKY_cipher_VerifySignature (p, sig, h2); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrPubKeyRecoverMismatch); + var p2 = new cipher_PubKey (); + var s2 = new cipher_SecKey (); + err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p2, s2); + err = skycoin.skycoin.SKY_cipher_VerifySignature (p2, sig, h); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrPubKeyRecoverMismatch); + err = skycoin.skycoin.SKY_cipher_VerifySignature (new cipher_PubKey (), sig, h); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrPubKeyRecoverMismatch); + } + + [Test] + public void TestGenerateKeyPair () { + var p = new cipher_PubKey (); + var s = new cipher_SecKey (); + var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); + err = skycoin.skycoin.SKY_cipher_PubKey_Verify (p); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_SecKey_Verify (s); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + } + + [Test] + public void TestGenerateDeterministicKeyPair () { + // TODO -- deterministic key pairs are useless as is because we can't + // generate pair n+1, only pair 0 + var seed = new GoSlice (); + var err = skycoin.skycoin.SKY_cipher_RandByte (32, seed); + var p = new cipher_PubKey (); + var s = new cipher_SecKey (); + err = skycoin.skycoin.SKY_cipher_GenerateDeterministicKeyPair (seed, p, s); + err = skycoin.skycoin.SKY_cipher_PubKey_Verify (p); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_SecKey_Verify (s); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + p = new cipher_PubKey (); + s = new cipher_SecKey (); + err = skycoin.skycoin.SKY_cipher_GenerateDeterministicKeyPair (seed, p, s); + err = skycoin.skycoin.SKY_cipher_PubKey_Verify (p); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_SecKey_Verify (s); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + } + + [Test] + public void TestSecKeTest () { + var p = new cipher_PubKey (); + var s = new cipher_SecKey (); + var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); + err = skycoin.skycoin.SKY_cipher_TestSecKey (s); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_TestSecKey (new cipher_SecKey ()); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidSecKyVerification); + } + + [Test] + public void TestSecKeyHashTest () { + var p = new cipher_PubKey (); + var s = new cipher_SecKey (); + var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); + var b = new GoSlice (); + var h = new cipher_SHA256 (); + err = skycoin.skycoin.SKY_cipher_RandByte (256, b); + err = skycoin.skycoin.SKY_cipher_SumSHA256 (b, h); + err = skycoin.skycoin.SKY_cipher_TestSecKeyHash (s, h); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_TestSecKeyHash (new cipher_SecKey (), h); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidSecKyVerification); + } + + [Test] + public void TestGenerateDeterministicKeyPairsUsesAllBytes () { + // Tests that if a seed >128 bits is used, the generator does not ignore bits >128 + var seed = new GoSlice (); + seed.convertString ("property diet little foster provide disagree witness mountain alley weekend kitten general"); + var seckeys = new GoSlice (); + var err = skycoin.skycoin.SKY_cipher_GenerateDeterministicKeyPairs (seed, 3, seckeys); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var seckeys2 = new GoSlice (); + seed.len = 16; + err = skycoin.skycoin.SKY_cipher_GenerateDeterministicKeyPairs (seed, 3, seckeys2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (seckeys.isEqual (seckeys2), 0); + } } } \ No newline at end of file diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index 14200c87..fe8c23df 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit 14200c87bdfa77653c0718a097fedc57cb56b5d7 +Subproject commit fe8c23dfca0fe5943d44556460328228a15d8462 From 66b5561a059fba50917b375910fe32f6ab438846 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Mon, 17 Sep 2018 13:43:27 -0400 Subject: [PATCH 27/73] [test][libdotnet] refs #8 Init test cipher_encrypt_scrypt_chacha20poly1305 Tests run: 31, Errors: 0, Failures: 0, Inconclusive: 0, Time: 16,2105772 seconds Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0 --- LibskycoinNet/LibskycoinNet.csproj | 3 +- LibskycoinNet/skycoin/GoSlice.cs | 10 +- ...p_a_32__GoUint8_.cs => SWIGTYPE_p_byte.cs} | 8 +- LibskycoinNet/skycoin/SWIGTYPE_p_int.cs | 29 + ...GTYPE_p_GoInt_.cs => SWIGTYPE_p_string.cs} | 8 +- LibskycoinNet/skycoin/api__RichlistParams.cs | 8 +- LibskycoinNet/skycoin/cipher__Address.cs | 8 +- .../encrypt__ScryptChacha20poly1305.cs | 32 +- LibskycoinNet/skycoin/skycoin.cs | 725 +++++++----------- LibskycoinNet/skycoin/skycoinPINVOKE.cs | 62 +- LibskycoinNet/skycoin/skycoinnet_wrap.c | 401 +++++++--- LibskycoinNetTest/LibskycoinNetTest.csproj | 1 + LibskycoinNetTest/check_cipher_crypto.cs | 5 +- ..._cipher_encrypt_scrypt_chacha20poly1305.cs | 36 + gopath/src/github.com/skycoin/skycoin | 2 +- 15 files changed, 718 insertions(+), 620 deletions(-) rename LibskycoinNet/skycoin/{SWIGTYPE_p_a_32__GoUint8_.cs => SWIGTYPE_p_byte.cs} (80%) create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_int.cs rename LibskycoinNet/skycoin/{SWIGTYPE_p_GoInt_.cs => SWIGTYPE_p_string.cs} (84%) create mode 100644 LibskycoinNetTest/check_cipher_encrypt_scrypt_chacha20poly1305.cs diff --git a/LibskycoinNet/LibskycoinNet.csproj b/LibskycoinNet/LibskycoinNet.csproj index f61e3f93..04b6f3ec 100644 --- a/LibskycoinNet/LibskycoinNet.csproj +++ b/LibskycoinNet/LibskycoinNet.csproj @@ -51,7 +51,6 @@ - @@ -126,6 +125,8 @@ + + diff --git a/LibskycoinNet/skycoin/GoSlice.cs b/LibskycoinNet/skycoin/GoSlice.cs index ecd1051b..c35c9304 100644 --- a/LibskycoinNet/skycoin/GoSlice.cs +++ b/LibskycoinNet/skycoin/GoSlice.cs @@ -45,8 +45,14 @@ public int isEqual(GoSlice slice) { return ret; } - public void convertString(string data) { - skycoinPINVOKE.GoSlice_convertString(swigCPtr, data); + public void convertString(_GoString_ data) { + skycoinPINVOKE.GoSlice_convertString(swigCPtr, _GoString_.getCPtr(data)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + + public string toString() { + string ret = skycoinPINVOKE.GoSlice_toString(swigCPtr); + return ret; } public SWIGTYPE_p_void data { diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_a_32__GoUint8_.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_byte.cs similarity index 80% rename from LibskycoinNet/skycoin/SWIGTYPE_p_a_32__GoUint8_.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_byte.cs index 31785e54..0da6feb4 100644 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_a_32__GoUint8_.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_byte.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_a_32__GoUint8_ { +public class SWIGTYPE_p_byte { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_a_32__GoUint8_(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_byte(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_a_32__GoUint8_() { + protected SWIGTYPE_p_byte() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_a_32__GoUint8_ obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_byte obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_int.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_int.cs new file mode 100644 index 00000000..d8b0dd29 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_int.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_int { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_int(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_int() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_int obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_GoInt_.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_string.cs similarity index 84% rename from LibskycoinNet/skycoin/SWIGTYPE_p_GoInt_.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_string.cs index 31a900ee..192c035e 100644 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_GoInt_.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_string.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_GoInt_ { +public class SWIGTYPE_p_string { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_GoInt_(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_string(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_GoInt_() { + protected SWIGTYPE_p_string() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_GoInt_ obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_string obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin/api__RichlistParams.cs b/LibskycoinNet/skycoin/api__RichlistParams.cs index da289114..9b02713d 100644 --- a/LibskycoinNet/skycoin/api__RichlistParams.cs +++ b/LibskycoinNet/skycoin/api__RichlistParams.cs @@ -40,14 +40,12 @@ public virtual void Dispose() { } } - public SWIGTYPE_p_GoInt_ N { + public int N { set { - skycoinPINVOKE.set_api__RichlistParams_N(swigCPtr, SWIGTYPE_p_GoInt_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + skycoinPINVOKE.set_api__RichlistParams_N(swigCPtr, value); } get { - SWIGTYPE_p_GoInt_ ret = new SWIGTYPE_p_GoInt_(skycoinPINVOKE.get_api__RichlistParams_N(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + int ret = skycoinPINVOKE.get_api__RichlistParams_N(swigCPtr); return ret; } } diff --git a/LibskycoinNet/skycoin/cipher__Address.cs b/LibskycoinNet/skycoin/cipher__Address.cs index 3b075a40..67534011 100644 --- a/LibskycoinNet/skycoin/cipher__Address.cs +++ b/LibskycoinNet/skycoin/cipher__Address.cs @@ -54,14 +54,12 @@ public void setVersion(char pValue) { skycoinPINVOKE.cipher__Address_setVersion(swigCPtr, pValue); } - public SWIGTYPE_p_GoUint8_ Version { + public char Version { set { - skycoinPINVOKE.set_cipher__Address_Version(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + skycoinPINVOKE.set_cipher__Address_Version(swigCPtr, value); } get { - SWIGTYPE_p_GoUint8_ ret = new SWIGTYPE_p_GoUint8_(skycoinPINVOKE.get_cipher__Address_Version(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + char ret = skycoinPINVOKE.get_cipher__Address_Version(swigCPtr); return ret; } } diff --git a/LibskycoinNet/skycoin/encrypt__ScryptChacha20poly1305.cs b/LibskycoinNet/skycoin/encrypt__ScryptChacha20poly1305.cs index 1c1a0d76..ca5b62ad 100644 --- a/LibskycoinNet/skycoin/encrypt__ScryptChacha20poly1305.cs +++ b/LibskycoinNet/skycoin/encrypt__ScryptChacha20poly1305.cs @@ -40,50 +40,42 @@ public virtual void Dispose() { } } - public SWIGTYPE_p_GoInt_ N { + public int N { set { - skycoinPINVOKE.set_encrypt__ScryptChacha20poly1305_N(swigCPtr, SWIGTYPE_p_GoInt_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + skycoinPINVOKE.set_encrypt__ScryptChacha20poly1305_N(swigCPtr, value); } get { - SWIGTYPE_p_GoInt_ ret = new SWIGTYPE_p_GoInt_(skycoinPINVOKE.get_encrypt__ScryptChacha20poly1305_N(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + int ret = skycoinPINVOKE.get_encrypt__ScryptChacha20poly1305_N(swigCPtr); return ret; } } - public SWIGTYPE_p_GoInt_ R { + public int R { set { - skycoinPINVOKE.set_encrypt__ScryptChacha20poly1305_R(swigCPtr, SWIGTYPE_p_GoInt_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + skycoinPINVOKE.set_encrypt__ScryptChacha20poly1305_R(swigCPtr, value); } get { - SWIGTYPE_p_GoInt_ ret = new SWIGTYPE_p_GoInt_(skycoinPINVOKE.get_encrypt__ScryptChacha20poly1305_R(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + int ret = skycoinPINVOKE.get_encrypt__ScryptChacha20poly1305_R(swigCPtr); return ret; } } - public SWIGTYPE_p_GoInt_ P { + public int P { set { - skycoinPINVOKE.set_encrypt__ScryptChacha20poly1305_P(swigCPtr, SWIGTYPE_p_GoInt_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + skycoinPINVOKE.set_encrypt__ScryptChacha20poly1305_P(swigCPtr, value); } get { - SWIGTYPE_p_GoInt_ ret = new SWIGTYPE_p_GoInt_(skycoinPINVOKE.get_encrypt__ScryptChacha20poly1305_P(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + int ret = skycoinPINVOKE.get_encrypt__ScryptChacha20poly1305_P(swigCPtr); return ret; } } - public SWIGTYPE_p_GoInt_ KeyLen { + public int KeyLen { set { - skycoinPINVOKE.set_encrypt__ScryptChacha20poly1305_KeyLen(swigCPtr, SWIGTYPE_p_GoInt_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + skycoinPINVOKE.set_encrypt__ScryptChacha20poly1305_KeyLen(swigCPtr, value); } get { - SWIGTYPE_p_GoInt_ ret = new SWIGTYPE_p_GoInt_(skycoinPINVOKE.get_encrypt__ScryptChacha20poly1305_KeyLen(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + int ret = skycoinPINVOKE.get_encrypt__ScryptChacha20poly1305_KeyLen(swigCPtr); return ret; } } diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs index 09e2b394..13b7e625 100644 --- a/LibskycoinNet/skycoin/skycoin.cs +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -35,6 +35,62 @@ public static int equalBlockHeaders(coin__BlockHeader bh1, coin__BlockHeader bh2 return ret; } + public static GoSlice new_GoSlicep() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_GoSlicep(); + GoSlice ret = (cPtr == global::System.IntPtr.Zero) ? null : new GoSlice(cPtr, false); + return ret; + } + + public static GoSlice copy_GoSlicep(GoSlice value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_GoSlicep(GoSlice.getCPtr(value)); + GoSlice ret = (cPtr == global::System.IntPtr.Zero) ? null : new GoSlice(cPtr, false); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static void delete_GoSlicep(GoSlice obj) { + skycoinPINVOKE.delete_GoSlicep(GoSlice.getCPtr(obj)); + } + + public static void GoSlicep_assign(GoSlice obj, GoSlice value) { + skycoinPINVOKE.GoSlicep_assign(GoSlice.getCPtr(obj), GoSlice.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + + public static GoSlice GoSlicep_value(GoSlice obj) { + GoSlice ret = new GoSlice(skycoinPINVOKE.GoSlicep_value(GoSlice.getCPtr(obj)), true); + return ret; + } + + public static SWIGTYPE_p_int new_intp() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_intp(); + SWIGTYPE_p_int ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_int(cPtr, false); + return ret; + } + + public static SWIGTYPE_p_int copy_intp(int value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_intp(value); + SWIGTYPE_p_int ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_int(cPtr, false); + return ret; + } + + public static void delete_intp(SWIGTYPE_p_int obj) { + skycoinPINVOKE.delete_intp(SWIGTYPE_p_int.getCPtr(obj)); + } + + public static void intp_assign(SWIGTYPE_p_int obj, int value) { + skycoinPINVOKE.intp_assign(SWIGTYPE_p_int.getCPtr(obj), value); + } + + public static int intp_value(SWIGTYPE_p_int obj) { + int ret = skycoinPINVOKE.intp_value(SWIGTYPE_p_int.getCPtr(obj)); + return ret; + } + + public static void parseJsonMetaData(string metadata, SWIGTYPE_p_int n, SWIGTYPE_p_int r, SWIGTYPE_p_int p, SWIGTYPE_p_int keyLen) { + skycoinPINVOKE.parseJsonMetaData(metadata, SWIGTYPE_p_int.getCPtr(n), SWIGTYPE_p_int.getCPtr(r), SWIGTYPE_p_int.getCPtr(p), SWIGTYPE_p_int.getCPtr(keyLen)); + } + public static uint SKY_cipher_SumSHA256(GoSlice seed, cipher_SHA256 sha) { uint ret = skycoinPINVOKE.SKY_cipher_SumSHA256__SWIG_0(GoSlice.getCPtr(seed), cipher_SHA256.getCPtr(sha)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); @@ -162,11 +218,8 @@ public static uint SKY_coin_BlockHeader_Hash(coin__BlockHeader p0, cipher_SecKey } public static uint SKY_coin_BlockHeader_Bytes(coin__BlockHeader p0, GoSlice p1) { -var tmpp1 = GoSlice.getCPtr (p1); - { - uint ret = skycoinPINVOKE.SKY_coin_BlockHeader_Bytes(coin__BlockHeader.getCPtr(p0), tmpp1); - return ret; - } + uint ret = skycoinPINVOKE.SKY_coin_BlockHeader_Bytes(coin__BlockHeader.getCPtr(p0), GoSlice.getCPtr (p1)); + return ret; } public static uint SKY_coin_BlockHeader_String(coin__BlockHeader p0, _GoString_ p1) { @@ -191,19 +244,13 @@ public static uint SKY_coin_BlockBody_Size(SWIGTYPE_p_BlockBody__Handle p0, SWIG } public static uint SKY_coin_BlockBody_Bytes(SWIGTYPE_p_BlockBody__Handle p0, GoSlice p1) { -var tmpp1 = GoSlice.getCPtr (p1); - { - uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Bytes(SWIGTYPE_p_BlockBody__Handle.getCPtr(p0), tmpp1); - return ret; - } + uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Bytes(SWIGTYPE_p_BlockBody__Handle.getCPtr(p0), GoSlice.getCPtr (p1)); + return ret; } public static uint SKY_coin_CreateUnspents(coin__BlockHeader p0, SWIGTYPE_p_Transaction__Handle p1, GoSlice p2) { -var tmpp2 = GoSlice.getCPtr (p2); - { - uint ret = skycoinPINVOKE.SKY_coin_CreateUnspents(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), tmpp2); - return ret; - } + uint ret = skycoinPINVOKE.SKY_coin_CreateUnspents(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), GoSlice.getCPtr (p2)); + return ret; } public static uint SKY_coin_CreateUnspent(coin__BlockHeader p0, SWIGTYPE_p_Transaction__Handle p1, long p2, coin__UxOut p3) { @@ -235,11 +282,8 @@ public static uint SKY_bip39_NewDefaultMnemomic(_GoString_ p0) { } public static uint SKY_bip39_NewEntropy(long p0, GoSlice p1) { -var tmpp1 = GoSlice.getCPtr (p1); - { - uint ret = skycoinPINVOKE.SKY_bip39_NewEntropy(p0, tmpp1); - return ret; - } + uint ret = skycoinPINVOKE.SKY_bip39_NewEntropy(p0, GoSlice.getCPtr (p1)); + return ret; } public static uint SKY_bip39_NewMnemonic(GoSlice p0, _GoString_ p1) { @@ -253,9 +297,8 @@ public static uint SKY_bip39_NewMnemonic(GoSlice p0, _GoString_ p1) { public static uint SKY_bip39_MnemonicToByteArray(string p0, GoSlice p1) { var tmpp0 = p0; -var tmpp1 = GoSlice.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_bip39_MnemonicToByteArray(tmpp0, tmpp1); + uint ret = skycoinPINVOKE.SKY_bip39_MnemonicToByteArray(tmpp0, GoSlice.getCPtr (p1)); return ret; } } @@ -607,19 +650,13 @@ public static uint SKY_secp256k1go_XY_ParsePubkey(secp256k1go__XY p0, GoSlice p1 } public static uint SKY_secp256k1go_XY_Bytes(secp256k1go__XY p0, GoSlice p1) { -var tmpp1 = GoSlice.getCPtr (p1); - { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_Bytes(secp256k1go__XY.getCPtr(p0), tmpp1); - return ret; - } + uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_Bytes(secp256k1go__XY.getCPtr(p0), GoSlice.getCPtr (p1)); + return ret; } public static uint SKY_secp256k1go_XY_BytesUncompressed(secp256k1go__XY p0, GoSlice p1) { -var tmpp1 = GoSlice.getCPtr (p1); - { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_BytesUncompressed(secp256k1go__XY.getCPtr(p0), tmpp1); - return ret; - } + uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_BytesUncompressed(secp256k1go__XY.getCPtr(p0), GoSlice.getCPtr (p1)); + return ret; } public static uint SKY_secp256k1go_XY_SetXY(secp256k1go__XY p0, secp256k1go__Field p1, secp256k1go__Field p2) { @@ -653,11 +690,8 @@ public static uint SKY_secp256k1go_XY_AddXY(secp256k1go__XY p0, secp256k1go__XY } public static uint SKY_secp256k1go_XY_GetPublicKey(secp256k1go__XY p0, GoSlice p1) { -var tmpp1 = GoSlice.getCPtr (p1); - { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_GetPublicKey(secp256k1go__XY.getCPtr(p0), tmpp1); - return ret; - } + uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_GetPublicKey(secp256k1go__XY.getCPtr(p0), GoSlice.getCPtr (p1)); + return ret; } public static uint SKY_api_NewWalletResponse(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_WalletResponse__Handle p1) { @@ -783,19 +817,13 @@ public static uint SKY_wallet_Wallet_IsEncrypted(SWIGTYPE_p_Wallet__Handle p0, S } public static uint SKY_wallet_Wallet_GenerateAddresses(SWIGTYPE_p_Wallet__Handle p0, ulong p1, GoSlice p2) { -var tmpp2 = GoSlice.getCPtr (p2); - { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GenerateAddresses(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), p1, tmpp2); - return ret; - } + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GenerateAddresses(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), p1, GoSlice.getCPtr (p2)); + return ret; } public static uint SKY_wallet_Wallet_GetAddresses(SWIGTYPE_p_Wallet__Handle p0, GoSlice p1) { -var tmpp1 = GoSlice.getCPtr (p1); - { - uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GetAddresses(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), tmpp1); - return ret; - } + uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GetAddresses(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), GoSlice.getCPtr (p1)); + return ret; } public static uint SKY_wallet_Wallet_GetEntry(SWIGTYPE_p_Wallet__Handle p0, cipher__Address p1, wallet__Entry p2, SWIGTYPE_p_unsigned_char p3) { @@ -809,29 +837,19 @@ public static uint SKY_wallet_Wallet_AddEntry(SWIGTYPE_p_Wallet__Handle p0, wall } public static uint SKY_wallet_DistributeSpendHours(ulong p0, ulong p1, byte p2, SWIGTYPE_p_unsigned_long_long p3, GoSlice p4, SWIGTYPE_p_unsigned_long_long p5) { -var tmpp4 = GoSlice.getCPtr (p4); - { - uint ret = skycoinPINVOKE.SKY_wallet_DistributeSpendHours(p0, p1, p2, SWIGTYPE_p_unsigned_long_long.getCPtr(p3), tmpp4, SWIGTYPE_p_unsigned_long_long.getCPtr(p5)); - return ret; - } + uint ret = skycoinPINVOKE.SKY_wallet_DistributeSpendHours(p0, p1, p2, SWIGTYPE_p_unsigned_long_long.getCPtr(p3), GoSlice.getCPtr (p4), SWIGTYPE_p_unsigned_long_long.getCPtr(p5)); + return ret; } public static uint SKY_wallet_DistributeCoinHoursProportional(GoSlice p0, ulong p1, GoSlice p2) { -var tmpp2 = GoSlice.getCPtr (p2); - { - uint ret = skycoinPINVOKE.SKY_wallet_DistributeCoinHoursProportional(GoSlice.getCPtr(p0), p1, tmpp2); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } + uint ret = skycoinPINVOKE.SKY_wallet_DistributeCoinHoursProportional(GoSlice.getCPtr(p0), p1, GoSlice.getCPtr (p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; } public static uint SKY_wallet_NewUxBalances(ulong p0, GoSlice p1, GoSlice p2) { -var tmpp1 = GoSlice.getCPtr (p1); -var tmpp2 = GoSlice.getCPtr (p2); - { - uint ret = skycoinPINVOKE.SKY_wallet_NewUxBalances(p0, tmpp1, tmpp2); - return ret; - } + uint ret = skycoinPINVOKE.SKY_wallet_NewUxBalances(p0, GoSlice.getCPtr (p1), GoSlice.getCPtr (p2)); + return ret; } public static uint SKY_wallet_NewUxBalance(ulong p0, coin__UxOut p1, wallet__UxBalance p2) { @@ -840,21 +858,15 @@ public static uint SKY_wallet_NewUxBalance(ulong p0, coin__UxOut p1, wallet__UxB } public static uint SKY_wallet_ChooseSpendsMinimizeUxOuts(GoSlice p0, ulong p1, ulong p2, GoSlice p3) { -var tmpp3 = GoSlice.getCPtr (p3); - { - uint ret = skycoinPINVOKE.SKY_wallet_ChooseSpendsMinimizeUxOuts(GoSlice.getCPtr(p0), p1, p2, tmpp3); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } + uint ret = skycoinPINVOKE.SKY_wallet_ChooseSpendsMinimizeUxOuts(GoSlice.getCPtr(p0), p1, p2, GoSlice.getCPtr (p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; } public static uint SKY_wallet_ChooseSpendsMaximizeUxOuts(GoSlice p0, ulong p1, ulong p2, GoSlice p3) { -var tmpp3 = GoSlice.getCPtr (p3); - { - uint ret = skycoinPINVOKE.SKY_wallet_ChooseSpendsMaximizeUxOuts(GoSlice.getCPtr(p0), p1, p2, tmpp3); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } + uint ret = skycoinPINVOKE.SKY_wallet_ChooseSpendsMaximizeUxOuts(GoSlice.getCPtr(p0), p1, p2, GoSlice.getCPtr (p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; } public static uint SKY_cli_CheckWalletBalance(SWIGTYPE_p_WebRpcClient__Handle p0, string p1, SWIGTYPE_p_BalanceResult_Handle p2) { @@ -936,48 +948,33 @@ public static uint SKY_secp256k1go_DecompressPoint(GoSlice p0, byte p1, GoSlice } public static uint SKY_secp256k1go_RecoverPublicKey(GoSlice p0, GoSlice p1, long p2, GoSlice p3, SWIGTYPE_p_long_long p4) { -var tmpp3 = GoSlice.getCPtr (p3); - { - uint ret = skycoinPINVOKE.SKY_secp256k1go_RecoverPublicKey(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), p2, tmpp3, SWIGTYPE_p_long_long.getCPtr(p4)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } + uint ret = skycoinPINVOKE.SKY_secp256k1go_RecoverPublicKey(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), p2, GoSlice.getCPtr (p3), SWIGTYPE_p_long_long.getCPtr(p4)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; } public static uint SKY_secp256k1go_Multiply(GoSlice p0, GoSlice p1, GoSlice p2) { -var tmpp2 = GoSlice.getCPtr (p2); - { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Multiply(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), tmpp2); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } + uint ret = skycoinPINVOKE.SKY_secp256k1go_Multiply(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr (p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; } public static uint SKY_secp256k1go_BaseMultiply(GoSlice p0, GoSlice p1) { -var tmpp1 = GoSlice.getCPtr (p1); - { - uint ret = skycoinPINVOKE.SKY_secp256k1go_BaseMultiply(GoSlice.getCPtr(p0), tmpp1); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } + uint ret = skycoinPINVOKE.SKY_secp256k1go_BaseMultiply(GoSlice.getCPtr(p0), GoSlice.getCPtr (p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; } public static uint SKY_secp256k1go_BaseMultiplyAdd(GoSlice p0, GoSlice p1, GoSlice p2) { -var tmpp2 = GoSlice.getCPtr (p2); - { - uint ret = skycoinPINVOKE.SKY_secp256k1go_BaseMultiplyAdd(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), tmpp2); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } + uint ret = skycoinPINVOKE.SKY_secp256k1go_BaseMultiplyAdd(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr (p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; } public static uint SKY_secp256k1go_GeneratePublicKey(GoSlice p0, GoSlice p1) { -var tmpp1 = GoSlice.getCPtr (p1); - { - uint ret = skycoinPINVOKE.SKY_secp256k1go_GeneratePublicKey(GoSlice.getCPtr(p0), tmpp1); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } + uint ret = skycoinPINVOKE.SKY_secp256k1go_GeneratePublicKey(GoSlice.getCPtr(p0), GoSlice.getCPtr (p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; } public static uint SKY_secp256k1go_SeckeyIsValid(GoSlice p0, SWIGTYPE_p_long_long p1) { @@ -994,9 +991,8 @@ public static uint SKY_secp256k1go_PubkeyIsValid(GoSlice p0, SWIGTYPE_p_long_lon public static uint SKY_base58_String2Hex(string p0, GoSlice p1) { var tmpp0 = p0; -var tmpp1 = GoSlice.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_base58_String2Hex(tmpp0, tmpp1); + uint ret = skycoinPINVOKE.SKY_base58_String2Hex(tmpp0, GoSlice.getCPtr (p1)); return ret; } } @@ -1011,9 +1007,8 @@ public static uint SKY_base58_Base58_ToInt(string p0, SWIGTYPE_p_long_long p1) { public static uint SKY_base58_Base58_ToHex(string p0, GoSlice p1) { var tmpp0 = p0; -var tmpp1 = GoSlice.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_base58_Base58_ToHex(tmpp0, tmpp1); + uint ret = skycoinPINVOKE.SKY_base58_Base58_ToHex(tmpp0, GoSlice.getCPtr (p1)); return ret; } } @@ -1028,18 +1023,16 @@ public static uint SKY_base58_Base58_Base582Int(string p0, SWIGTYPE_p_long_long public static uint SKY_base58_Base582Hex(string p0, GoSlice p1) { var tmpp0 = p0; -var tmpp1 = GoSlice.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_base58_Base582Hex(tmpp0, tmpp1); + uint ret = skycoinPINVOKE.SKY_base58_Base582Hex(tmpp0, GoSlice.getCPtr (p1)); return ret; } } public static uint SKY_base58_Base58_BitHex(string p0, GoSlice p1) { var tmpp0 = p0; -var tmpp1 = GoSlice.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_base58_Base58_BitHex(tmpp0, tmpp1); + uint ret = skycoinPINVOKE.SKY_base58_Base58_BitHex(tmpp0, GoSlice.getCPtr (p1)); return ret; } } @@ -1133,37 +1126,25 @@ public static uint SKY_webrpc_Client_GetTransactionByID(SWIGTYPE_p_WebRpcClient_ } public static uint SKY_webrpc_Client_GetAddressUxOuts(SWIGTYPE_p_WebRpcClient__Handle p0, GoSlice p1, GoSlice p2) { -var tmpp2 = GoSlice.getCPtr (p2); - { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetAddressUxOuts(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), GoSlice.getCPtr(p1), tmpp2); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetAddressUxOuts(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr (p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; } public static uint SKY_webrpc_Client_GetBlocks(SWIGTYPE_p_WebRpcClient__Handle p0, ulong p1, ulong p2, GoSlice p3) { -var tmpp3 = GoSlice.getCPtr (p3); - { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetBlocks(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), p1, p2, tmpp3); - return ret; - } + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetBlocks(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), p1, p2, GoSlice.getCPtr (p3)); + return ret; } public static uint SKY_webrpc_Client_GetBlocksBySeq(SWIGTYPE_p_WebRpcClient__Handle p0, GoSlice p1, GoSlice p2) { -var tmpp2 = GoSlice.getCPtr (p2); - { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetBlocksBySeq(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), GoSlice.getCPtr(p1), tmpp2); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetBlocksBySeq(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr (p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; } public static uint SKY_webrpc_Client_GetLastBlocks(SWIGTYPE_p_WebRpcClient__Handle p0, ulong p1, GoSlice p2) { -var tmpp2 = GoSlice.getCPtr (p2); - { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetLastBlocks(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), p1, tmpp2); - return ret; - } + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetLastBlocks(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), p1, GoSlice.getCPtr (p2)); + return ret; } public static uint SKY_browser_Open(string p0) { @@ -1214,27 +1195,20 @@ public static uint SKY_encoder_ParseFields(GoSlice p0, GoSlice p1, SWIGTYPE_p_Go } public static uint SKY_secp256k1_SumSHA256(GoSlice p0, GoSlice p1) { -var tmpp1 = GoSlice.getCPtr (p1); - { - uint ret = skycoinPINVOKE.SKY_secp256k1_SumSHA256(GoSlice.getCPtr(p0), tmpp1); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } + uint ret = skycoinPINVOKE.SKY_secp256k1_SumSHA256(GoSlice.getCPtr(p0), GoSlice.getCPtr (p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; } public static uint SKY_secp256k1_RandByte(long p0, GoSlice p1) { -var tmpp1 = GoSlice.getCPtr (p1); - { - uint ret = skycoinPINVOKE.SKY_secp256k1_RandByte(p0, tmpp1); - return ret; - } + uint ret = skycoinPINVOKE.SKY_secp256k1_RandByte(p0, GoSlice.getCPtr (p1)); + return ret; } public static uint SKY_cli_GenerateAddressesInFile(string p0, ulong p1, SWIGTYPE_p_PasswordReader__Handle p2, GoSlice p3) { var tmpp0 = p0; -var tmpp3 = GoSlice.getCPtr (p3); { - uint ret = skycoinPINVOKE.SKY_cli_GenerateAddressesInFile(tmpp0, p1, SWIGTYPE_p_PasswordReader__Handle.getCPtr(p2), tmpp3); + uint ret = skycoinPINVOKE.SKY_cli_GenerateAddressesInFile(tmpp0, p1, SWIGTYPE_p_PasswordReader__Handle.getCPtr(p2), GoSlice.getCPtr (p3)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -1259,12 +1233,9 @@ public static uint SKY_cli_FormatAddressesAsJoinedArray(GoSlice p0, _GoString_ p } public static uint SKY_cli_AddressesToStrings(GoSlice p0, GoSlice p1) { -var tmpp1 = GoSlice.getCPtr (p1); - { - uint ret = skycoinPINVOKE.SKY_cli_AddressesToStrings(GoSlice.getCPtr(p0), tmpp1); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } + uint ret = skycoinPINVOKE.SKY_cli_AddressesToStrings(GoSlice.getCPtr(p0), GoSlice.getCPtr (p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; } public static uint SKY_coin_AddUint64(ulong p0, ulong p1, SWIGTYPE_p_unsigned_long_long p2) { @@ -1283,35 +1254,23 @@ public static uint SKY_coin_Int64ToUint64(long p0, SWIGTYPE_p_unsigned_long_long } public static uint SKY_cipher_PubKeySlice_Len(GoSlice p0, SWIGTYPE_p_long_long p1) { -var tmpp0 = GoSlice.getCPtr (p0); - { - uint ret = skycoinPINVOKE.SKY_cipher_PubKeySlice_Len(tmpp0, SWIGTYPE_p_long_long.getCPtr(p1)); - return ret; - } + uint ret = skycoinPINVOKE.SKY_cipher_PubKeySlice_Len(GoSlice.getCPtr (p0), SWIGTYPE_p_long_long.getCPtr(p1)); + return ret; } public static uint SKY_cipher_PubKeySlice_Less(GoSlice p0, long p1, long p2, SWIGTYPE_p_unsigned_char p3) { -var tmpp0 = GoSlice.getCPtr (p0); - { - uint ret = skycoinPINVOKE.SKY_cipher_PubKeySlice_Less(tmpp0, p1, p2, SWIGTYPE_p_unsigned_char.getCPtr(p3)); - return ret; - } + uint ret = skycoinPINVOKE.SKY_cipher_PubKeySlice_Less(GoSlice.getCPtr (p0), p1, p2, SWIGTYPE_p_unsigned_char.getCPtr(p3)); + return ret; } public static uint SKY_cipher_PubKeySlice_Swap(GoSlice p0, long p1, long p2) { -var tmpp0 = GoSlice.getCPtr (p0); - { - uint ret = skycoinPINVOKE.SKY_cipher_PubKeySlice_Swap(tmpp0, p1, p2); - return ret; - } + uint ret = skycoinPINVOKE.SKY_cipher_PubKeySlice_Swap(GoSlice.getCPtr (p0), p1, p2); + return ret; } public static uint SKY_cipher_RandByte(long p0, GoSlice p1) { -var tmpp1 = GoSlice.getCPtr (p1); - { - uint ret = skycoinPINVOKE.SKY_cipher_RandByte(p0, tmpp1); - return ret; - } + uint ret = skycoinPINVOKE.SKY_cipher_RandByte(p0, GoSlice.getCPtr (p1)); + return ret; } public static uint SKY_cipher_NewPubKey(GoSlice p0, cipher_PubKey p1) { @@ -1415,9 +1374,8 @@ public static uint SKY_cipher_SecKey_Hex(cipher_SecKey p0, _GoString_ p1) { public static uint SKY_cipher_ECDH(cipher_PubKey p0, cipher_SecKey p1, GoSlice p2) { var tmpp0 = cipher_PubKey.getCPtr (p0); var tmpp1 = cipher_SecKey.getCPtr (p1); -var tmpp2 = GoSlice.getCPtr (p2); { - uint ret = skycoinPINVOKE.SKY_cipher_ECDH(tmpp0, tmpp1, tmpp2); + uint ret = skycoinPINVOKE.SKY_cipher_ECDH(tmpp0, tmpp1, GoSlice.getCPtr (p2)); return ret; } } @@ -1498,33 +1456,25 @@ public static uint SKY_cipher_GenerateDeterministicKeyPair(GoSlice p0, cipher_Pu } public static uint SKY_cipher_DeterministicKeyPairIterator(GoSlice p0, GoSlice p1, cipher_PubKey p2, cipher_SecKey p3) { -var tmpp1 = GoSlice.getCPtr (p1); var tmpp2 = cipher_PubKey.getCPtr (p2); var tmpp3 = cipher_SecKey.getCPtr (p3); { - uint ret = skycoinPINVOKE.SKY_cipher_DeterministicKeyPairIterator(GoSlice.getCPtr(p0), tmpp1, tmpp2, tmpp3); + uint ret = skycoinPINVOKE.SKY_cipher_DeterministicKeyPairIterator(GoSlice.getCPtr(p0), GoSlice.getCPtr (p1), tmpp2, tmpp3); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } public static uint SKY_cipher_GenerateDeterministicKeyPairs(GoSlice p0, long p1, GoSlice p2) { -var tmpp2 = GoSlice.getCPtr (p2); - { - uint ret = skycoinPINVOKE.SKY_cipher_GenerateDeterministicKeyPairs(GoSlice.getCPtr(p0), p1, tmpp2); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } + uint ret = skycoinPINVOKE.SKY_cipher_GenerateDeterministicKeyPairs(GoSlice.getCPtr(p0), p1, GoSlice.getCPtr (p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; } public static uint SKY_cipher_GenerateDeterministicKeyPairsSeed(GoSlice p0, long p1, GoSlice p2, GoSlice p3) { -var tmpp2 = GoSlice.getCPtr (p2); -var tmpp3 = GoSlice.getCPtr (p3); - { - uint ret = skycoinPINVOKE.SKY_cipher_GenerateDeterministicKeyPairsSeed(GoSlice.getCPtr(p0), p1, tmpp2, tmpp3); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } + uint ret = skycoinPINVOKE.SKY_cipher_GenerateDeterministicKeyPairsSeed(GoSlice.getCPtr(p0), p1, GoSlice.getCPtr (p2), GoSlice.getCPtr (p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; } public static uint SKY_cipher_TestSecKey(cipher_SecKey p0) { @@ -1598,11 +1548,8 @@ public static uint SKY_secp256k1go_Signature_ParseBytes(SWIGTYPE_p_Signature_Han } public static uint SKY_secp256k1go_Signature_Bytes(SWIGTYPE_p_Signature_Handle p0, GoSlice p1) { -var tmpp1 = GoSlice.getCPtr (p1); - { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Bytes(SWIGTYPE_p_Signature_Handle.getCPtr(p0), tmpp1); - return ret; - } + uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Bytes(SWIGTYPE_p_Signature_Handle.getCPtr(p0), GoSlice.getCPtr (p1)); + return ret; } public static uint SKY_cli_App_Run(SWIGTYPE_p_App__Handle p0, string p1) { @@ -1653,13 +1600,9 @@ public static uint SKY_cli_Setenv(string p0, string p1) { } public static uint SKY_poly1305_Verify(GoSlice p0, GoSlice p1, GoSlice p2, SWIGTYPE_p_unsigned_char p3) { -var tmpp0 = GoSlice.getCPtr (p0); -var tmpp2 = GoSlice.getCPtr (p2); - { - uint ret = skycoinPINVOKE.SKY_poly1305_Verify(tmpp0, GoSlice.getCPtr(p1), tmpp2, SWIGTYPE_p_unsigned_char.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } + uint ret = skycoinPINVOKE.SKY_poly1305_Verify(GoSlice.getCPtr (p0), GoSlice.getCPtr(p1), GoSlice.getCPtr (p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; } public static uint SKY_wallet_NewBalance(ulong p0, ulong p1, wallet__Balance p2) { @@ -1704,11 +1647,8 @@ public static uint SKY_httphelper_Address_UnmarshalJSON(httphelper__Address p0, } public static uint SKY_httphelper_Address_MarshalJSON(httphelper__Address p0, GoSlice p1) { -var tmpp1 = GoSlice.getCPtr (p1); - { - uint ret = skycoinPINVOKE.SKY_httphelper_Address_MarshalJSON(httphelper__Address.getCPtr(p0), tmpp1); - return ret; - } + uint ret = skycoinPINVOKE.SKY_httphelper_Address_MarshalJSON(httphelper__Address.getCPtr(p0), GoSlice.getCPtr (p1)); + return ret; } public static uint SKY_httphelper_Coins_UnmarshalJSON(SWIGTYPE_p_GoUint64_ p0, GoSlice p1) { @@ -1718,11 +1658,8 @@ public static uint SKY_httphelper_Coins_UnmarshalJSON(SWIGTYPE_p_GoUint64_ p0, G } public static uint SKY_httphelper_Coins_MarshalJSON(SWIGTYPE_p_GoUint64_ p0, GoSlice p1) { -var tmpp1 = GoSlice.getCPtr (p1); - { - uint ret = skycoinPINVOKE.SKY_httphelper_Coins_MarshalJSON(SWIGTYPE_p_GoUint64_.getCPtr(p0), tmpp1); - return ret; - } + uint ret = skycoinPINVOKE.SKY_httphelper_Coins_MarshalJSON(SWIGTYPE_p_GoUint64_.getCPtr(p0), GoSlice.getCPtr (p1)); + return ret; } public static uint SKY_httphelper_Coins_Value(SWIGTYPE_p_GoUint64_ p0, SWIGTYPE_p_unsigned_long_long p1) { @@ -1737,11 +1674,8 @@ public static uint SKY_httphelper_Hours_UnmarshalJSON(SWIGTYPE_p_GoUint64_ p0, G } public static uint SKY_httphelper_Hours_MarshalJSON(SWIGTYPE_p_GoUint64_ p0, GoSlice p1) { -var tmpp1 = GoSlice.getCPtr (p1); - { - uint ret = skycoinPINVOKE.SKY_httphelper_Hours_MarshalJSON(SWIGTYPE_p_GoUint64_.getCPtr(p0), tmpp1); - return ret; - } + uint ret = skycoinPINVOKE.SKY_httphelper_Hours_MarshalJSON(SWIGTYPE_p_GoUint64_.getCPtr(p0), GoSlice.getCPtr (p1)); + return ret; } public static uint SKY_httphelper_Hours_Value(SWIGTYPE_p_GoUint64_ p0, SWIGTYPE_p_unsigned_long_long p1) { @@ -1850,21 +1784,15 @@ public static uint SKY_secp256k1go_ECmultGen(secp256k1go__XYZ p0, SWIGTYPE_p_Num } public static uint SKY_encrypt_Sha256Xor_Encrypt(GoSlice p0, GoSlice p1, GoSlice p2) { -var tmpp2 = GoSlice.getCPtr (p2); - { - uint ret = skycoinPINVOKE.SKY_encrypt_Sha256Xor_Encrypt(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), tmpp2); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } + uint ret = skycoinPINVOKE.SKY_encrypt_Sha256Xor_Encrypt(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr (p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; } public static uint SKY_encrypt_Sha256Xor_Decrypt(GoSlice p0, GoSlice p1, GoSlice p2) { -var tmpp2 = GoSlice.getCPtr (p2); - { - uint ret = skycoinPINVOKE.SKY_encrypt_Sha256Xor_Decrypt(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), tmpp2); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } + uint ret = skycoinPINVOKE.SKY_encrypt_Sha256Xor_Decrypt(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr (p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; } public static uint SKY_droplet_FromString(string p0, SWIGTYPE_p_unsigned_long_long p1) { @@ -1982,19 +1910,13 @@ public static uint SKY_cipher_Address_Null(cipher__Address p0, SWIGTYPE_p_unsign } public static uint SKY_cipher_Address_Bytes(cipher__Address p0, GoSlice p1) { -var tmpp1 = GoSlice.getCPtr (p1); - { - uint ret = skycoinPINVOKE.SKY_cipher_Address_Bytes(cipher__Address.getCPtr(p0), tmpp1); - return ret; - } + uint ret = skycoinPINVOKE.SKY_cipher_Address_Bytes(cipher__Address.getCPtr(p0), GoSlice.getCPtr (p1)); + return ret; } public static uint SKY_cipher_Address_BitcoinBytes(cipher__Address p0, GoSlice p1) { -var tmpp1 = GoSlice.getCPtr (p1); - { - uint ret = skycoinPINVOKE.SKY_cipher_Address_BitcoinBytes(cipher__Address.getCPtr(p0), tmpp1); - return ret; - } + uint ret = skycoinPINVOKE.SKY_cipher_Address_BitcoinBytes(cipher__Address.getCPtr(p0), GoSlice.getCPtr (p1)); + return ret; } public static uint SKY_cipher_Address_Verify(cipher__Address p0, cipher_PubKey p1) { @@ -2264,12 +2186,9 @@ public static uint SKY_ripemd160_Write(SWIGTYPE_p_Hash_Handle p0, GoSlice p1, SW } public static uint SKY_ripemd160_Sum(SWIGTYPE_p_Hash_Handle p0, GoSlice p1, GoSlice p2) { -var tmpp2 = GoSlice.getCPtr (p2); - { - uint ret = skycoinPINVOKE.SKY_ripemd160_Sum(SWIGTYPE_p_Hash_Handle.getCPtr(p0), GoSlice.getCPtr(p1), tmpp2); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } + uint ret = skycoinPINVOKE.SKY_ripemd160_Sum(SWIGTYPE_p_Hash_Handle.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr (p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; } public static uint SKY_secp256k1go_Number_Create(SWIGTYPE_p_Number_Handle p0) { @@ -2333,114 +2252,70 @@ public static uint SKY_coin_UxOut_CoinHours(coin__UxOut p0, ulong p1, SWIGTYPE_p } public static uint SKY_coin_UxArray_Hashes(GoSlice p0, GoSlice p1) { -var tmpp0 = GoSlice.getCPtr (p0); -var tmpp1 = GoSlice.getCPtr (p1); - { - uint ret = skycoinPINVOKE.SKY_coin_UxArray_Hashes(tmpp0, tmpp1); - return ret; - } + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Hashes(GoSlice.getCPtr (p0), GoSlice.getCPtr (p1)); + return ret; } public static uint SKY_coin_UxArray_HasDupes(GoSlice p0, SWIGTYPE_p_unsigned_char p1) { -var tmpp0 = GoSlice.getCPtr (p0); - { - uint ret = skycoinPINVOKE.SKY_coin_UxArray_HasDupes(tmpp0, SWIGTYPE_p_unsigned_char.getCPtr(p1)); - return ret; - } + uint ret = skycoinPINVOKE.SKY_coin_UxArray_HasDupes(GoSlice.getCPtr (p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + return ret; } public static uint SKY_coin_UxArray_Sort(GoSlice p0) { -var tmpp0 = GoSlice.getCPtr (p0); - { - uint ret = skycoinPINVOKE.SKY_coin_UxArray_Sort(tmpp0); - return ret; - } + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Sort(GoSlice.getCPtr (p0)); + return ret; } public static uint SKY_coin_UxArray_Len(GoSlice p0, SWIGTYPE_p_long_long p1) { -var tmpp0 = GoSlice.getCPtr (p0); - { - uint ret = skycoinPINVOKE.SKY_coin_UxArray_Len(tmpp0, SWIGTYPE_p_long_long.getCPtr(p1)); - return ret; - } + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Len(GoSlice.getCPtr (p0), SWIGTYPE_p_long_long.getCPtr(p1)); + return ret; } public static uint SKY_coin_UxArray_Less(GoSlice p0, long p1, long p2, SWIGTYPE_p_unsigned_char p3) { -var tmpp0 = GoSlice.getCPtr (p0); - { - uint ret = skycoinPINVOKE.SKY_coin_UxArray_Less(tmpp0, p1, p2, SWIGTYPE_p_unsigned_char.getCPtr(p3)); - return ret; - } + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Less(GoSlice.getCPtr (p0), p1, p2, SWIGTYPE_p_unsigned_char.getCPtr(p3)); + return ret; } public static uint SKY_coin_UxArray_Swap(GoSlice p0, long p1, long p2) { -var tmpp0 = GoSlice.getCPtr (p0); - { - uint ret = skycoinPINVOKE.SKY_coin_UxArray_Swap(tmpp0, p1, p2); - return ret; - } + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Swap(GoSlice.getCPtr (p0), p1, p2); + return ret; } public static uint SKY_coin_UxArray_Coins(GoSlice p0, SWIGTYPE_p_unsigned_long_long p1) { -var tmpp0 = GoSlice.getCPtr (p0); - { - uint ret = skycoinPINVOKE.SKY_coin_UxArray_Coins(tmpp0, SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); - return ret; - } + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Coins(GoSlice.getCPtr (p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + return ret; } public static uint SKY_coin_UxArray_CoinHours(GoSlice p0, ulong p1, SWIGTYPE_p_unsigned_long_long p2) { -var tmpp0 = GoSlice.getCPtr (p0); - { - uint ret = skycoinPINVOKE.SKY_coin_UxArray_CoinHours(tmpp0, p1, SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); - return ret; - } + uint ret = skycoinPINVOKE.SKY_coin_UxArray_CoinHours(GoSlice.getCPtr (p0), p1, SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); + return ret; } public static uint SKY_coin_UxArray_Sub(GoSlice p0, GoSlice p1, GoSlice p2) { -var tmpp0 = GoSlice.getCPtr (p0); -var tmpp1 = GoSlice.getCPtr (p1); -var tmpp2 = GoSlice.getCPtr (p2); - { - uint ret = skycoinPINVOKE.SKY_coin_UxArray_Sub(tmpp0, tmpp1, tmpp2); - return ret; - } + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Sub(GoSlice.getCPtr (p0), GoSlice.getCPtr (p1), GoSlice.getCPtr (p2)); + return ret; } public static uint SKY_coin_UxArray_Add(GoSlice p0, GoSlice p1, GoSlice p2) { -var tmpp0 = GoSlice.getCPtr (p0); -var tmpp1 = GoSlice.getCPtr (p1); -var tmpp2 = GoSlice.getCPtr (p2); - { - uint ret = skycoinPINVOKE.SKY_coin_UxArray_Add(tmpp0, tmpp1, tmpp2); - return ret; - } + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Add(GoSlice.getCPtr (p0), GoSlice.getCPtr (p1), GoSlice.getCPtr (p2)); + return ret; } public static uint SKY_coin_NewAddressUxOuts(GoSlice p0, SWIGTYPE_p_AddressUxOuts_Handle p1) { -var tmpp0 = GoSlice.getCPtr (p0); - { - uint ret = skycoinPINVOKE.SKY_coin_NewAddressUxOuts(tmpp0, SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p1)); - return ret; - } + uint ret = skycoinPINVOKE.SKY_coin_NewAddressUxOuts(GoSlice.getCPtr (p0), SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p1)); + return ret; } public static uint SKY_coin_AddressUxOuts_Keys(SWIGTYPE_p_AddressUxOuts_Handle p0, GoSlice p1) { -var tmpp1 = GoSlice.getCPtr (p1); - { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Keys(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), tmpp1); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Keys(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), GoSlice.getCPtr (p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; } public static uint SKY_coin_AddressUxOuts_Flatten(SWIGTYPE_p_AddressUxOuts_Handle p0, GoSlice p1) { -var tmpp1 = GoSlice.getCPtr (p1); - { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Flatten(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), tmpp1); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Flatten(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), GoSlice.getCPtr (p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; } public static uint SKY_coin_AddressUxOuts_Sub(SWIGTYPE_p_AddressUxOuts_Handle p0, SWIGTYPE_p_AddressUxOuts_Handle p1, SWIGTYPE_p_AddressUxOuts_Handle p2) { @@ -2456,12 +2331,9 @@ public static uint SKY_coin_AddressUxOuts_Add(SWIGTYPE_p_AddressUxOuts_Handle p0 } public static uint SKY_coin_AddressUxOuts_Get(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher__Address p1, GoSlice p2) { -var tmpp2 = GoSlice.getCPtr (p2); - { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Get(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), tmpp2); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Get(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), GoSlice.getCPtr (p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; } public static uint SKY_coin_AddressUxOuts_HasKey(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher__Address p1, SWIGTYPE_p_unsigned_char p2) { @@ -2483,30 +2355,21 @@ public static uint SKY_coin_AddressUxOuts_Length(SWIGTYPE_p_AddressUxOuts_Handle } public static uint SKY_coin_AddressUxOuts_Set(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher__Address p1, GoSlice p2) { -var tmpp2 = GoSlice.getCPtr (p2); - { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Set(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), tmpp2); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Set(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), GoSlice.getCPtr (p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; } public static uint SKY_encrypt_ScryptChacha20poly1305_Encrypt(encrypt__ScryptChacha20poly1305 p0, GoSlice p1, GoSlice p2, GoSlice p3) { -var tmpp3 = GoSlice.getCPtr (p3); - { - uint ret = skycoinPINVOKE.SKY_encrypt_ScryptChacha20poly1305_Encrypt(encrypt__ScryptChacha20poly1305.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), tmpp3); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } + uint ret = skycoinPINVOKE.SKY_encrypt_ScryptChacha20poly1305_Encrypt(encrypt__ScryptChacha20poly1305.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), GoSlice.getCPtr (p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; } public static uint SKY_encrypt_ScryptChacha20poly1305_Decrypt(encrypt__ScryptChacha20poly1305 p0, GoSlice p1, GoSlice p2, GoSlice p3) { -var tmpp3 = GoSlice.getCPtr (p3); - { - uint ret = skycoinPINVOKE.SKY_encrypt_ScryptChacha20poly1305_Decrypt(encrypt__ScryptChacha20poly1305.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), tmpp3); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } + uint ret = skycoinPINVOKE.SKY_encrypt_ScryptChacha20poly1305_Decrypt(encrypt__ScryptChacha20poly1305.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), GoSlice.getCPtr (p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; } public static uint SKY_wallet_CreateOptionsHandle(string p0, string p1, string p2, byte p3, string p4, string p5, ulong p6, SWIGTYPE_p_Options__Handle p7) { @@ -2540,87 +2403,56 @@ public static uint SKY_cli_AddPrivateKeyToFile(string p0, string p1, SWIGTYPE_p_ } public static uint SKY_secp256k1_GenerateKeyPair(GoSlice p0, GoSlice p1) { -var tmpp0 = GoSlice.getCPtr (p0); -var tmpp1 = GoSlice.getCPtr (p1); - { - uint ret = skycoinPINVOKE.SKY_secp256k1_GenerateKeyPair(tmpp0, tmpp1); - return ret; - } + uint ret = skycoinPINVOKE.SKY_secp256k1_GenerateKeyPair(GoSlice.getCPtr (p0), GoSlice.getCPtr (p1)); + return ret; } public static uint SKY_secp256k1_PubkeyFromSeckey(GoSlice p0, GoSlice p1) { -var tmpp1 = GoSlice.getCPtr (p1); - { - uint ret = skycoinPINVOKE.SKY_secp256k1_PubkeyFromSeckey(GoSlice.getCPtr(p0), tmpp1); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } + uint ret = skycoinPINVOKE.SKY_secp256k1_PubkeyFromSeckey(GoSlice.getCPtr(p0), GoSlice.getCPtr (p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; } public static uint SKY_secp256k1_UncompressPubkey(GoSlice p0, GoSlice p1) { -var tmpp1 = GoSlice.getCPtr (p1); - { - uint ret = skycoinPINVOKE.SKY_secp256k1_UncompressPubkey(GoSlice.getCPtr(p0), tmpp1); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } + uint ret = skycoinPINVOKE.SKY_secp256k1_UncompressPubkey(GoSlice.getCPtr(p0), GoSlice.getCPtr (p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; } public static uint SKY_secp256k1_UncompressedPubkeyFromSeckey(GoSlice p0, GoSlice p1) { -var tmpp1 = GoSlice.getCPtr (p1); - { - uint ret = skycoinPINVOKE.SKY_secp256k1_UncompressedPubkeyFromSeckey(GoSlice.getCPtr(p0), tmpp1); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } + uint ret = skycoinPINVOKE.SKY_secp256k1_UncompressedPubkeyFromSeckey(GoSlice.getCPtr(p0), GoSlice.getCPtr (p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; } public static uint SKY_secp256k1_Secp256k1Hash(GoSlice p0, GoSlice p1) { -var tmpp1 = GoSlice.getCPtr (p1); - { - uint ret = skycoinPINVOKE.SKY_secp256k1_Secp256k1Hash(GoSlice.getCPtr(p0), tmpp1); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } + uint ret = skycoinPINVOKE.SKY_secp256k1_Secp256k1Hash(GoSlice.getCPtr(p0), GoSlice.getCPtr (p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; } public static uint SKY_secp256k1_GenerateDeterministicKeyPair(GoSlice p0, GoSlice p1, GoSlice p2) { -var tmpp1 = GoSlice.getCPtr (p1); -var tmpp2 = GoSlice.getCPtr (p2); - { - uint ret = skycoinPINVOKE.SKY_secp256k1_GenerateDeterministicKeyPair(GoSlice.getCPtr(p0), tmpp1, tmpp2); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } + uint ret = skycoinPINVOKE.SKY_secp256k1_GenerateDeterministicKeyPair(GoSlice.getCPtr(p0), GoSlice.getCPtr (p1), GoSlice.getCPtr (p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; } public static uint SKY_secp256k1_DeterministicKeyPairIterator(GoSlice p0, GoSlice p1, GoSlice p2, GoSlice p3) { -var tmpp1 = GoSlice.getCPtr (p1); -var tmpp2 = GoSlice.getCPtr (p2); -var tmpp3 = GoSlice.getCPtr (p3); - { - uint ret = skycoinPINVOKE.SKY_secp256k1_DeterministicKeyPairIterator(GoSlice.getCPtr(p0), tmpp1, tmpp2, tmpp3); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } + uint ret = skycoinPINVOKE.SKY_secp256k1_DeterministicKeyPairIterator(GoSlice.getCPtr(p0), GoSlice.getCPtr (p1), GoSlice.getCPtr (p2), GoSlice.getCPtr (p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; } public static uint SKY_secp256k1_Sign(GoSlice p0, GoSlice p1, GoSlice p2) { -var tmpp2 = GoSlice.getCPtr (p2); - { - uint ret = skycoinPINVOKE.SKY_secp256k1_Sign(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), tmpp2); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } + uint ret = skycoinPINVOKE.SKY_secp256k1_Sign(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr (p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; } public static uint SKY_secp256k1_SignDeterministic(GoSlice p0, GoSlice p1, GoSlice p2, GoSlice p3) { -var tmpp3 = GoSlice.getCPtr (p3); - { - uint ret = skycoinPINVOKE.SKY_secp256k1_SignDeterministic(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), tmpp3); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } + uint ret = skycoinPINVOKE.SKY_secp256k1_SignDeterministic(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), GoSlice.getCPtr (p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; } public static uint SKY_secp256k1_VerifySeckey(GoSlice p0, SWIGTYPE_p_long_long p1) { @@ -2657,21 +2489,15 @@ public static uint SKY_secp256k1_SignatureErrorString(GoSlice p0, GoSlice p1, Go } public static uint SKY_secp256k1_RecoverPubkey(GoSlice p0, GoSlice p1, GoSlice p2) { -var tmpp2 = GoSlice.getCPtr (p2); - { - uint ret = skycoinPINVOKE.SKY_secp256k1_RecoverPubkey(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), tmpp2); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } + uint ret = skycoinPINVOKE.SKY_secp256k1_RecoverPubkey(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr (p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; } public static uint SKY_secp256k1_ECDH(GoSlice p0, GoSlice p1, GoSlice p2) { -var tmpp2 = GoSlice.getCPtr (p2); - { - uint ret = skycoinPINVOKE.SKY_secp256k1_ECDH(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), tmpp2); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } + uint ret = skycoinPINVOKE.SKY_secp256k1_ECDH(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr (p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; } public static uint SKY_apputil_CatchInterruptPanic() { @@ -2721,11 +2547,8 @@ public static uint SKY_fee_RemainingHours(ulong p0, SWIGTYPE_p_unsigned_long_lon } public static uint SKY_fee_TransactionFee(SWIGTYPE_p_Transaction__Handle p0, ulong p1, GoSlice p2, SWIGTYPE_p_unsigned_long_long p3) { -var tmpp2 = GoSlice.getCPtr (p2); - { - uint ret = skycoinPINVOKE.SKY_fee_TransactionFee(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, tmpp2, SWIGTYPE_p_unsigned_long_long.getCPtr(p3)); - return ret; - } + uint ret = skycoinPINVOKE.SKY_fee_TransactionFee(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, GoSlice.getCPtr (p2), SWIGTYPE_p_unsigned_long_long.getCPtr(p3)); + return ret; } public static uint SKY_cli_LoadConfig(SWIGTYPE_p_Config__Handle p0) { @@ -2765,20 +2588,13 @@ public static uint SKY_cli_ConfigFromContext(SWIGTYPE_p_Context__Handle p0, SWIG } public static uint SKY_cli_PasswordFromBytes_Password(GoSlice p0, GoSlice p1) { -var tmpp0 = GoSlice.getCPtr (p0); -var tmpp1 = GoSlice.getCPtr (p1); - { - uint ret = skycoinPINVOKE.SKY_cli_PasswordFromBytes_Password(tmpp0, tmpp1); - return ret; - } + uint ret = skycoinPINVOKE.SKY_cli_PasswordFromBytes_Password(GoSlice.getCPtr (p0), GoSlice.getCPtr (p1)); + return ret; } public static uint SKY_cli_PasswordFromTerm_Password(GoSlice p0) { -var tmpp0 = GoSlice.getCPtr (p0); - { - uint ret = skycoinPINVOKE.SKY_cli_PasswordFromTerm_Password(tmpp0); - return ret; - } + uint ret = skycoinPINVOKE.SKY_cli_PasswordFromTerm_Password(GoSlice.getCPtr (p0)); + return ret; } public static uint SKY_cli_CreateRawTxFromWallet(SWIGTYPE_p_WebRpcClient__Handle p0, string p1, string p2, GoSlice p3, SWIGTYPE_p_PasswordReader__Handle p4, SWIGTYPE_p_Transaction__Handle p5) { @@ -2980,12 +2796,9 @@ public static uint SKY_secp256k1go_Field_Sqr(secp256k1go__Field p0, secp256k1go_ } public static uint SKY_scrypt_Key(GoSlice p0, GoSlice p1, long p2, long p3, long p4, long p5, GoSlice p6) { -var tmpp6 = GoSlice.getCPtr (p6); - { - uint ret = skycoinPINVOKE.SKY_scrypt_Key(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), p2, p3, p4, p5, tmpp6); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } + uint ret = skycoinPINVOKE.SKY_scrypt_Key(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), p2, p3, p4, p5, GoSlice.getCPtr (p6)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; } public static uint SKY_cipher_Ripemd160_Set(cipher_Ripemd160 p0, GoSlice p1) { @@ -3188,11 +3001,8 @@ public static uint SKY_coin_Transaction_Verify(SWIGTYPE_p_Transaction__Handle p0 } public static uint SKY_coin_Transaction_VerifyInput(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1) { -var tmpp1 = GoSlice.getCPtr (p1); - { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_VerifyInput(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), tmpp1); - return ret; - } + uint ret = skycoinPINVOKE.SKY_coin_Transaction_VerifyInput(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr (p1)); + return ret; } public static uint SKY_coin_Transaction_PushInput(SWIGTYPE_p_Transaction__Handle p0, cipher_SecKey p1, SWIGTYPE_p_unsigned_short p2) { @@ -3245,11 +3055,8 @@ public static uint SKY_coin_Transaction_SizeHash(SWIGTYPE_p_Transaction__Handle } public static uint SKY_coin_Transaction_TxID(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1) { -var tmpp1 = GoSlice.getCPtr (p1); - { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_TxID(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), tmpp1); - return ret; - } + uint ret = skycoinPINVOKE.SKY_coin_Transaction_TxID(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr (p1)); + return ret; } public static uint SKY_coin_Transaction_TxIDHex(SWIGTYPE_p_Transaction__Handle p0, _GoString_ p1) { @@ -3274,11 +3081,8 @@ public static uint SKY_coin_Transaction_HashInner(SWIGTYPE_p_Transaction__Handle } public static uint SKY_coin_Transaction_Serialize(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1) { -var tmpp1 = GoSlice.getCPtr (p1); - { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_Serialize(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), tmpp1); - return ret; - } + uint ret = skycoinPINVOKE.SKY_coin_Transaction_Serialize(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr (p1)); + return ret; } public static uint SKY_coin_TransactionDeserialize(GoSlice p0, SWIGTYPE_p_Transaction__Handle p1) { @@ -3323,11 +3127,8 @@ public static uint SKY_coin_Transactions_GetAt(SWIGTYPE_p_Transactions__Handle p } public static uint SKY_coin_Transactions_Hashes(SWIGTYPE_p_Transactions__Handle p0, GoSlice p1) { -var tmpp1 = GoSlice.getCPtr (p1); - { - uint ret = skycoinPINVOKE.SKY_coin_Transactions_Hashes(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), tmpp1); - return ret; - } + uint ret = skycoinPINVOKE.SKY_coin_Transactions_Hashes(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), GoSlice.getCPtr (p1)); + return ret; } public static uint SKY_coin_Transactions_Size(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_long_long p1) { @@ -3375,21 +3176,13 @@ public static uint SKY_coin_SortableTransactions_Swap(SWIGTYPE_p_SortableTransac } public static uint SKY_coin_VerifyTransactionCoinsSpending(GoSlice p0, GoSlice p1) { -var tmpp0 = GoSlice.getCPtr (p0); -var tmpp1 = GoSlice.getCPtr (p1); - { - uint ret = skycoinPINVOKE.SKY_coin_VerifyTransactionCoinsSpending(tmpp0, tmpp1); - return ret; - } + uint ret = skycoinPINVOKE.SKY_coin_VerifyTransactionCoinsSpending(GoSlice.getCPtr (p0), GoSlice.getCPtr (p1)); + return ret; } public static uint SKY_coin_VerifyTransactionHoursSpending(ulong p0, GoSlice p1, GoSlice p2) { -var tmpp1 = GoSlice.getCPtr (p1); -var tmpp2 = GoSlice.getCPtr (p2); - { - uint ret = skycoinPINVOKE.SKY_coin_VerifyTransactionHoursSpending(p0, tmpp1, tmpp2); - return ret; - } + uint ret = skycoinPINVOKE.SKY_coin_VerifyTransactionHoursSpending(p0, GoSlice.getCPtr (p1), GoSlice.getCPtr (p2)); + return ret; } public static readonly int SKY_OK = skycoinPINVOKE.get_SKY_OK(); diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index b395ae22..995e5698 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -203,6 +203,39 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_equalBlockHeaders")] public static extern int equalBlockHeaders(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_GoSlicep")] + public static extern global::System.IntPtr new_GoSlicep(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_GoSlicep")] + public static extern global::System.IntPtr copy_GoSlicep(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_GoSlicep")] + public static extern void delete_GoSlicep(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlicep_assign")] + public static extern void GoSlicep_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlicep_value")] + public static extern global::System.IntPtr GoSlicep_value(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_intp")] + public static extern global::System.IntPtr new_intp(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_intp")] + public static extern global::System.IntPtr copy_intp(int jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_intp")] + public static extern void delete_intp(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_intp_assign")] + public static extern void intp_assign(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_intp_value")] + public static extern int intp_value(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_parseJsonMetaData")] + public static extern void parseJsonMetaData(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SumSHA256__SWIG_0")] public static extern uint SKY_cipher_SumSHA256__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -543,7 +576,10 @@ static skycoinPINVOKE() { public static extern int GoSlice_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_convertString")] - public static extern void GoSlice_convertString(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + public static extern void GoSlice_convertString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_toString")] + public static extern string GoSlice_toString(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_GoSlice_data")] public static extern void set_GoSlice_data(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1977,10 +2013,10 @@ static skycoinPINVOKE() { public static extern void cipher__Address_setVersion(global::System.Runtime.InteropServices.HandleRef jarg1, char jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cipher__Address_Version")] - public static extern void set_cipher__Address_Version(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern void set_cipher__Address_Version(global::System.Runtime.InteropServices.HandleRef jarg1, char jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_cipher__Address_Version")] - public static extern global::System.IntPtr get_cipher__Address_Version(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern char get_cipher__Address_Version(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cipher__Address_Key")] public static extern void set_cipher__Address_Key(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -2025,28 +2061,28 @@ static skycoinPINVOKE() { public static extern void delete_encoder__StructField(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_N")] - public static extern void set_encrypt__ScryptChacha20poly1305_N(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern void set_encrypt__ScryptChacha20poly1305_N(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_N")] - public static extern global::System.IntPtr get_encrypt__ScryptChacha20poly1305_N(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern int get_encrypt__ScryptChacha20poly1305_N(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_R")] - public static extern void set_encrypt__ScryptChacha20poly1305_R(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern void set_encrypt__ScryptChacha20poly1305_R(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_R")] - public static extern global::System.IntPtr get_encrypt__ScryptChacha20poly1305_R(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern int get_encrypt__ScryptChacha20poly1305_R(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_P")] - public static extern void set_encrypt__ScryptChacha20poly1305_P(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern void set_encrypt__ScryptChacha20poly1305_P(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_P")] - public static extern global::System.IntPtr get_encrypt__ScryptChacha20poly1305_P(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern int get_encrypt__ScryptChacha20poly1305_P(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_KeyLen")] - public static extern void set_encrypt__ScryptChacha20poly1305_KeyLen(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern void set_encrypt__ScryptChacha20poly1305_KeyLen(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_KeyLen")] - public static extern global::System.IntPtr get_encrypt__ScryptChacha20poly1305_KeyLen(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern int get_encrypt__ScryptChacha20poly1305_KeyLen(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_encrypt__ScryptChacha20poly1305")] public static extern global::System.IntPtr new_encrypt__ScryptChacha20poly1305(); @@ -2496,10 +2532,10 @@ static skycoinPINVOKE() { public static extern void delete_wallet__UxBalance(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_api__RichlistParams_N")] - public static extern void set_api__RichlistParams_N(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern void set_api__RichlistParams_N(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_api__RichlistParams_N")] - public static extern global::System.IntPtr get_api__RichlistParams_N(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern int get_api__RichlistParams_N(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_api__RichlistParams_IncludeDistribution")] public static extern void set_api__RichlistParams_IncludeDistribution(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index 3c691a01..853347fe 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -336,6 +336,114 @@ SWIGEXPORT void SWIGSTDCALL SWIGRegisterStringCallback_skycoin(SWIG_CSharpString } +static GoSlice *new_GoSlicep() { + return (GoSlice *) calloc(1,sizeof(GoSlice)); +} + +static GoSlice *copy_GoSlicep(GoSlice value) { + GoSlice *obj = (GoSlice *) calloc(1,sizeof(GoSlice)); + *obj = value; + return obj; +} + +static void delete_GoSlicep(GoSlice *obj) { + if (obj) free(obj); +} + +static void GoSlicep_assign(GoSlice *obj, GoSlice value) { + *obj = value; +} + +static GoSlice GoSlicep_value(GoSlice *obj) { + return *obj; +} + + +static int *new_intp() { + return (int *) calloc(1,sizeof(int)); +} + +static int *copy_intp(int value) { + int *obj = (int *) calloc(1,sizeof(int)); + *obj = value; + return obj; +} + +static void delete_intp(int *obj) { + if (obj) free(obj); +} + +static void intp_assign(int *obj, int value) { + *obj = value; +} + +static int intp_value(int *obj) { + return *obj; +} + + + void parseJsonMetaData(char *metadata, int *n, int *r, int *p, int *keyLen) +{ + *n = *r = *p = *keyLen = 0; + int length = strlen(metadata); + int openingQuote = -1; + const char *keys[] = {"n", "r", "p", "keyLen"}; + int keysCount = 4; + int keyIndex = -1; + int startNumber = -1; + for (int i = 0; i < length; i++) + { + if (metadata[i] == '\"') + { + startNumber = -1; + if (openingQuote >= 0) + { + keyIndex = -1; + metadata[i] = 0; + for (int k = 0; k < keysCount; k++) + { + if (strcmp(metadata + openingQuote + 1, keys[k]) == 0) + { + keyIndex = k; + } + } + openingQuote = -1; + } + else + { + openingQuote = i; + } + } + else if (metadata[i] >= '0' && metadata[i] <= '9') + { + if (startNumber < 0) + startNumber = i; + } + else if (metadata[i] == ',') + { + if (startNumber >= 0) + { + metadata[i] = 0; + int number = atoi(metadata + startNumber); + startNumber = -1; + if (keyIndex == 0) + *n = number; + else if (keyIndex == 1) + *r = number; + else if (keyIndex == 2) + *p = number; + else if (keyIndex == 3) + *keyLen = number; + } + } + else + { + startNumber = -1; + } + } +} + + GoUint32 CSharp_skycoin_SKY_cipher_SumSHA256(GoSlice seed, cipher_SHA256* sha){ GoUint32 result = SKY_cipher_SumSHA256(seed, sha); return result; @@ -536,15 +644,18 @@ SWIGINTERN void coin_UxOutArray_release(coin_UxOutArray *self){ } SWIGINTERN int _GoString__SetString(_GoString_ *self,char *str){ self->p = str; - self->p = strlen(str); + self->n = strlen(str); } SWIGINTERN int GoSlice_isEqual(GoSlice *self,GoSlice *slice){ return ((self->len == slice->len)) && (memcmp(self->data,slice->data, sizeof(GoSlice_))==0 ); } -SWIGINTERN void GoSlice_convertString(GoSlice *self,char *data){ - self->data = data; - self->len = strlen(data); - self->cap = strlen(data); +SWIGINTERN void GoSlice_convertString(GoSlice *self,_GoString_ data){ + self->data = data.p; + self->len = strlen(data.p); + self->cap = self->len; + } +SWIGINTERN char *GoSlice_toString(GoSlice *self){ + return (char *)self->data; } SWIGINTERN int cipher__Address_isEqual(cipher__Address *self,cipher__Address *a){ if( self->Version == a->Version ){ @@ -651,6 +762,142 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalBlockHeaders(void * jarg1, void * } +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_GoSlicep() { + void * jresult ; + GoSlice *result = 0 ; + + result = (GoSlice *)new_GoSlicep(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_GoSlicep(void * jarg1) { + void * jresult ; + GoSlice arg1 ; + GoSlice *argp1 ; + GoSlice *result = 0 ; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + result = (GoSlice *)copy_GoSlicep(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_GoSlicep(void * jarg1) { + GoSlice *arg1 = (GoSlice *) 0 ; + + arg1 = (GoSlice *)jarg1; + delete_GoSlicep(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoSlicep_assign(void * jarg1, void * jarg2) { + GoSlice *arg1 = (GoSlice *) 0 ; + GoSlice arg2 ; + GoSlice *argp2 ; + + arg1 = (GoSlice *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return ; + } + arg2 = *argp2; + GoSlicep_assign(arg1,arg2); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_GoSlicep_value(void * jarg1) { + void * jresult ; + GoSlice *arg1 = (GoSlice *) 0 ; + GoSlice result; + + arg1 = (GoSlice *)jarg1; + result = GoSlicep_value(arg1); + { + GoSlice * resultptr = (GoSlice *) malloc(sizeof(GoSlice)); + memmove(resultptr, &result, sizeof(GoSlice)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_intp() { + void * jresult ; + int *result = 0 ; + + result = (int *)new_intp(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_intp(int jarg1) { + void * jresult ; + int arg1 ; + int *result = 0 ; + + arg1 = (int)jarg1; + result = (int *)copy_intp(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_intp(void * jarg1) { + int *arg1 = (int *) 0 ; + + arg1 = (int *)jarg1; + delete_intp(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_intp_assign(void * jarg1, int jarg2) { + int *arg1 = (int *) 0 ; + int arg2 ; + + arg1 = (int *)jarg1; + arg2 = (int)jarg2; + intp_assign(arg1,arg2); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_intp_value(void * jarg1) { + int jresult ; + int *arg1 = (int *) 0 ; + int result; + + arg1 = (int *)jarg1; + result = (int)intp_value(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_parseJsonMetaData(char * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5) { + char *arg1 = (char *) 0 ; + int *arg2 = (int *) 0 ; + int *arg3 = (int *) 0 ; + int *arg4 = (int *) 0 ; + int *arg5 = (int *) 0 ; + + arg1 = (char *)jarg1; + arg2 = (int *)jarg2; + arg3 = (int *)jarg3; + arg4 = (int *)jarg4; + arg5 = (int *)jarg5; + parseJsonMetaData(arg1,arg2,arg3,arg4,arg5); +} + + SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SumSHA256__SWIG_0(void * jarg1, void * jarg2) { unsigned int jresult ; GoSlice arg1 ; @@ -1960,16 +2207,34 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_GoSlice_isEqual(void * jarg1, void * j } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoSlice_convertString(void * jarg1, char * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoSlice_convertString(void * jarg1, void * jarg2) { GoSlice *arg1 = (GoSlice *) 0 ; - char *arg2 = (char *) 0 ; + _GoString_ arg2 ; + _GoString_ *argp2 ; arg1 = (GoSlice *)jarg1; - arg2 = (char *)jarg2; + argp2 = (_GoString_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null _GoString_", 0); + return ; + } + arg2 = *argp2; GoSlice_convertString(arg1,arg2); } +SWIGEXPORT char * SWIGSTDCALL CSharp_skycoin_GoSlice_toString(void * jarg1) { + char * jresult ; + GoSlice *arg1 = (GoSlice *) 0 ; + char *result = 0 ; + + arg1 = (GoSlice *)jarg1; + result = (char *)GoSlice_toString(arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_GoSlice_data(void * jarg1, void * jarg2) { GoSlice *arg1 = (GoSlice *) 0 ; void *arg2 = (void *) 0 ; @@ -10392,34 +10657,24 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher__Address_setVersion(void * jar } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher__Address_Version(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher__Address_Version(void * jarg1, char jarg2) { cipher__Address *arg1 = (cipher__Address *) 0 ; GoUint8_ arg2 ; - GoUint8_ *argp2 ; arg1 = (cipher__Address *)jarg1; - argp2 = (GoUint8_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint8_", 0); - return ; - } - arg2 = *argp2; + arg2 = (GoUint8_)jarg2; if (arg1) (arg1)->Version = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_cipher__Address_Version(void * jarg1) { - void * jresult ; +SWIGEXPORT char SWIGSTDCALL CSharp_skycoin_get_cipher__Address_Version(void * jarg1) { + char jresult ; cipher__Address *arg1 = (cipher__Address *) 0 ; GoUint8_ result; arg1 = (cipher__Address *)jarg1; result = ((arg1)->Version); - { - GoUint8_ * resultptr = (GoUint8_ *) malloc(sizeof(GoUint8_)); - memmove(resultptr, &result, sizeof(GoUint8_)); - jresult = resultptr; - } + jresult = result; return jresult; } @@ -10614,130 +10869,90 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_encoder__StructField(void * ja } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_N(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_N(void * jarg1, int jarg2) { encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; GoInt_ arg2 ; - GoInt_ *argp2 ; arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; - argp2 = (GoInt_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt_", 0); - return ; - } - arg2 = *argp2; + arg2 = (GoInt_)jarg2; if (arg1) (arg1)->N = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_N(void * jarg1) { - void * jresult ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_N(void * jarg1) { + int jresult ; encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; GoInt_ result; arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; result = ((arg1)->N); - { - GoInt_ * resultptr = (GoInt_ *) malloc(sizeof(GoInt_)); - memmove(resultptr, &result, sizeof(GoInt_)); - jresult = resultptr; - } + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_R(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_R(void * jarg1, int jarg2) { encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; GoInt_ arg2 ; - GoInt_ *argp2 ; arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; - argp2 = (GoInt_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt_", 0); - return ; - } - arg2 = *argp2; + arg2 = (GoInt_)jarg2; if (arg1) (arg1)->R = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_R(void * jarg1) { - void * jresult ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_R(void * jarg1) { + int jresult ; encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; GoInt_ result; arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; result = ((arg1)->R); - { - GoInt_ * resultptr = (GoInt_ *) malloc(sizeof(GoInt_)); - memmove(resultptr, &result, sizeof(GoInt_)); - jresult = resultptr; - } + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_P(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_P(void * jarg1, int jarg2) { encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; GoInt_ arg2 ; - GoInt_ *argp2 ; arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; - argp2 = (GoInt_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt_", 0); - return ; - } - arg2 = *argp2; + arg2 = (GoInt_)jarg2; if (arg1) (arg1)->P = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_P(void * jarg1) { - void * jresult ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_P(void * jarg1) { + int jresult ; encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; GoInt_ result; arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; result = ((arg1)->P); - { - GoInt_ * resultptr = (GoInt_ *) malloc(sizeof(GoInt_)); - memmove(resultptr, &result, sizeof(GoInt_)); - jresult = resultptr; - } + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_KeyLen(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_KeyLen(void * jarg1, int jarg2) { encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; GoInt_ arg2 ; - GoInt_ *argp2 ; arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; - argp2 = (GoInt_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt_", 0); - return ; - } - arg2 = *argp2; + arg2 = (GoInt_)jarg2; if (arg1) (arg1)->KeyLen = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_KeyLen(void * jarg1) { - void * jresult ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_KeyLen(void * jarg1) { + int jresult ; encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; GoInt_ result; arg1 = (encrypt__ScryptChacha20poly1305 *)jarg1; result = ((arg1)->KeyLen); - { - GoInt_ * resultptr = (GoInt_ *) malloc(sizeof(GoInt_)); - memmove(resultptr, &result, sizeof(GoInt_)); - jresult = resultptr; - } + jresult = result; return jresult; } @@ -12630,34 +12845,24 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__UxBalance(void * jarg1 } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_api__RichlistParams_N(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_api__RichlistParams_N(void * jarg1, int jarg2) { api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; GoInt_ arg2 ; - GoInt_ *argp2 ; arg1 = (api__RichlistParams *)jarg1; - argp2 = (GoInt_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt_", 0); - return ; - } - arg2 = *argp2; + arg2 = (GoInt_)jarg2; if (arg1) (arg1)->N = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_api__RichlistParams_N(void * jarg1) { - void * jresult ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_api__RichlistParams_N(void * jarg1) { + int jresult ; api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; GoInt_ result; arg1 = (api__RichlistParams *)jarg1; result = ((arg1)->N); - { - GoInt_ * resultptr = (GoInt_ *) malloc(sizeof(GoInt_)); - memmove(resultptr, &result, sizeof(GoInt_)); - jresult = resultptr; - } + jresult = result; return jresult; } diff --git a/LibskycoinNetTest/LibskycoinNetTest.csproj b/LibskycoinNetTest/LibskycoinNetTest.csproj index 87ff3c42..73dd62a7 100644 --- a/LibskycoinNetTest/LibskycoinNetTest.csproj +++ b/LibskycoinNetTest/LibskycoinNetTest.csproj @@ -36,6 +36,7 @@ + diff --git a/LibskycoinNetTest/check_cipher_crypto.cs b/LibskycoinNetTest/check_cipher_crypto.cs index 2742d88d..32d0a8d5 100644 --- a/LibskycoinNetTest/check_cipher_crypto.cs +++ b/LibskycoinNetTest/check_cipher_crypto.cs @@ -497,7 +497,10 @@ public void TestSecKeyHashTest () { public void TestGenerateDeterministicKeyPairsUsesAllBytes () { // Tests that if a seed >128 bits is used, the generator does not ignore bits >128 var seed = new GoSlice (); - seed.convertString ("property diet little foster provide disagree witness mountain alley weekend kitten general"); + var seedText = "property diet little foster provide disagree witness mountain alley weekend kitten general"; + var seedStr = new _GoString_ (); + seedStr.p = seedText; + seed.convertString (seedStr); var seckeys = new GoSlice (); var err = skycoin.skycoin.SKY_cipher_GenerateDeterministicKeyPairs (seed, 3, seckeys); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); diff --git a/LibskycoinNetTest/check_cipher_encrypt_scrypt_chacha20poly1305.cs b/LibskycoinNetTest/check_cipher_encrypt_scrypt_chacha20poly1305.cs new file mode 100644 index 00000000..f56d2366 --- /dev/null +++ b/LibskycoinNetTest/check_cipher_encrypt_scrypt_chacha20poly1305.cs @@ -0,0 +1,36 @@ +using System; +using NUnit.Framework; +using skycoin; +namespace LibskycoinNetTest { + [TestFixture ()] + public class check_cipher_encrypt_scrypt_chacha20poly1305 { + [Test] + public void TestScryptChacha20poly1305Encrypt () { + for (int i = 1; i < 20; i++) { + var name = "N=1<<" + i.ToString () + "(" + (1 << i).ToString () + ")" + ", R=8, p=1, keyLen=32"; + var crypto = new encrypt__ScryptChacha20poly1305 (); + crypto.N = (int) (1 << i); + crypto.R = 8; + crypto.P = 1; + crypto.KeyLen = 32; + var encData = new GoSlice (); + var plain = new GoSlice (); + var passwd = new GoSlice (); + var plaintext = new _GoString_ (); + var passwdText = new _GoString_ (); + plaintext.p = "plaintext"; + plain.convertString (plaintext); + passwdText.p = "password"; + passwd.convertString (passwdText); + var err = skycoin.skycoin.SKY_encrypt_ScryptChacha20poly1305_Encrypt (crypto, plain, passwd, encData); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK, name); + Assert.AreEqual(encData.len > 2,true); + // var str = new _GoString_(); + // str.p =""; + // var decode_len = skycoin.skycoin.b64_decode(encData.toString(),(uint)encData.len,str); + + + } + } + } +} \ No newline at end of file diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index fe8c23df..b36de555 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit fe8c23dfca0fe5943d44556460328228a15d8462 +Subproject commit b36de5553efb02a2f3c892616d031e7a3843b5fc From 71b5f49b2fbe8e59c173322096d73cdea604135a Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Tue, 18 Sep 2018 22:47:23 -0400 Subject: [PATCH 28/73] [libdotnet][test] refs #8 Update submodule Tests run: 30, Errors: 0, Failures: 0, Inconclusive: 0, Time: 12,9019926 seconds Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0 --- LibskycoinNet/skycoin/GoSlice.cs | 4 +- LibskycoinNet/skycoin/api__RichlistParams.cs | 4 +- .../encrypt__ScryptChacha20poly1305.cs | 16 +- LibskycoinNet/skycoin/skycoin.cs | 40 ++++ LibskycoinNet/skycoin/skycoinPINVOKE.cs | 46 +++-- LibskycoinNet/skycoin/skycoinnet_wrap.c | 185 +++++++++++++++--- LibskycoinNetTest/LibskycoinNetTest.csproj | 2 +- ..._cipher_encrypt_scrypt_chacha20poly1305.cs | 81 +++++++- gopath/src/github.com/skycoin/skycoin | 2 +- 9 files changed, 327 insertions(+), 53 deletions(-) diff --git a/LibskycoinNet/skycoin/GoSlice.cs b/LibskycoinNet/skycoin/GoSlice.cs index c35c9304..2e97f761 100644 --- a/LibskycoinNet/skycoin/GoSlice.cs +++ b/LibskycoinNet/skycoin/GoSlice.cs @@ -50,8 +50,8 @@ public void convertString(_GoString_ data) { if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } - public string toString() { - string ret = skycoinPINVOKE.GoSlice_toString(swigCPtr); + public _GoString_ toString() { + _GoString_ ret = new _GoString_(skycoinPINVOKE.GoSlice_toString(swigCPtr), true); return ret; } diff --git a/LibskycoinNet/skycoin/api__RichlistParams.cs b/LibskycoinNet/skycoin/api__RichlistParams.cs index 9b02713d..f0f3aa63 100644 --- a/LibskycoinNet/skycoin/api__RichlistParams.cs +++ b/LibskycoinNet/skycoin/api__RichlistParams.cs @@ -40,12 +40,12 @@ public virtual void Dispose() { } } - public int N { + public long N { set { skycoinPINVOKE.set_api__RichlistParams_N(swigCPtr, value); } get { - int ret = skycoinPINVOKE.get_api__RichlistParams_N(swigCPtr); + long ret = skycoinPINVOKE.get_api__RichlistParams_N(swigCPtr); return ret; } } diff --git a/LibskycoinNet/skycoin/encrypt__ScryptChacha20poly1305.cs b/LibskycoinNet/skycoin/encrypt__ScryptChacha20poly1305.cs index ca5b62ad..3d00d5b4 100644 --- a/LibskycoinNet/skycoin/encrypt__ScryptChacha20poly1305.cs +++ b/LibskycoinNet/skycoin/encrypt__ScryptChacha20poly1305.cs @@ -40,42 +40,42 @@ public virtual void Dispose() { } } - public int N { + public long N { set { skycoinPINVOKE.set_encrypt__ScryptChacha20poly1305_N(swigCPtr, value); } get { - int ret = skycoinPINVOKE.get_encrypt__ScryptChacha20poly1305_N(swigCPtr); + long ret = skycoinPINVOKE.get_encrypt__ScryptChacha20poly1305_N(swigCPtr); return ret; } } - public int R { + public long R { set { skycoinPINVOKE.set_encrypt__ScryptChacha20poly1305_R(swigCPtr, value); } get { - int ret = skycoinPINVOKE.get_encrypt__ScryptChacha20poly1305_R(swigCPtr); + long ret = skycoinPINVOKE.get_encrypt__ScryptChacha20poly1305_R(swigCPtr); return ret; } } - public int P { + public long P { set { skycoinPINVOKE.set_encrypt__ScryptChacha20poly1305_P(swigCPtr, value); } get { - int ret = skycoinPINVOKE.get_encrypt__ScryptChacha20poly1305_P(swigCPtr); + long ret = skycoinPINVOKE.get_encrypt__ScryptChacha20poly1305_P(swigCPtr); return ret; } } - public int KeyLen { + public long KeyLen { set { skycoinPINVOKE.set_encrypt__ScryptChacha20poly1305_KeyLen(swigCPtr, value); } get { - int ret = skycoinPINVOKE.get_encrypt__ScryptChacha20poly1305_KeyLen(swigCPtr); + long ret = skycoinPINVOKE.get_encrypt__ScryptChacha20poly1305_KeyLen(swigCPtr); return ret; } } diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs index 13b7e625..fae1dc84 100644 --- a/LibskycoinNet/skycoin/skycoin.cs +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -91,6 +91,11 @@ public static void parseJsonMetaData(string metadata, SWIGTYPE_p_int n, SWIGTYPE skycoinPINVOKE.parseJsonMetaData(metadata, SWIGTYPE_p_int.getCPtr(n), SWIGTYPE_p_int.getCPtr(r), SWIGTYPE_p_int.getCPtr(p), SWIGTYPE_p_int.getCPtr(keyLen)); } + public static int cutSlice(SWIGTYPE_p_GoSlice_ slice, int start, int end, int elem_size, SWIGTYPE_p_GoSlice_ result) { + int ret = skycoinPINVOKE.cutSlice(SWIGTYPE_p_GoSlice_.getCPtr(slice), start, end, elem_size, SWIGTYPE_p_GoSlice_.getCPtr(result)); + return ret; + } + public static uint SKY_cipher_SumSHA256(GoSlice seed, cipher_SHA256 sha) { uint ret = skycoinPINVOKE.SKY_cipher_SumSHA256__SWIG_0(GoSlice.getCPtr(seed), cipher_SHA256.getCPtr(sha)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); @@ -3185,6 +3190,41 @@ public static uint SKY_coin_VerifyTransactionHoursSpending(ulong p0, GoSlice p1, return ret; } + public static int b64_int(uint ch) { + int ret = skycoinPINVOKE.b64_int(ch); + return ret; + } + + public static uint b64e_size(uint in_size) { + uint ret = skycoinPINVOKE.b64e_size(in_size); + return ret; + } + + public static uint b64d_size(uint in_size) { + uint ret = skycoinPINVOKE.b64d_size(in_size); + return ret; + } + + public static uint b64_encode(SWIGTYPE_p_unsigned_char arg0, uint in_len, SWIGTYPE_p_unsigned_char arg2) { + uint ret = skycoinPINVOKE.b64_encode(SWIGTYPE_p_unsigned_char.getCPtr(arg0), in_len, SWIGTYPE_p_unsigned_char.getCPtr(arg2)); + return ret; + } + + public static int b64_decode(SWIGTYPE_p_unsigned_char arg0, uint in_len, SWIGTYPE_p_unsigned_char arg2) { + int ret = skycoinPINVOKE.b64_decode(SWIGTYPE_p_unsigned_char.getCPtr(arg0), in_len, SWIGTYPE_p_unsigned_char.getCPtr(arg2)); + return ret; + } + + public static uint b64_encodef(string InFile, string OutFile) { + uint ret = skycoinPINVOKE.b64_encodef(InFile, OutFile); + return ret; + } + + public static int b64_decodef(string InFile, string OutFile) { + int ret = skycoinPINVOKE.b64_decodef(InFile, OutFile); + return ret; + } + public static readonly int SKY_OK = skycoinPINVOKE.get_SKY_OK(); public static readonly int SKY_ERROR = skycoinPINVOKE.get_SKY_ERROR(); public static readonly int SKY_PKG_API = skycoinPINVOKE.get_SKY_PKG_API(); diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index 995e5698..3cd9ccbb 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -236,6 +236,9 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_parseJsonMetaData")] public static extern void parseJsonMetaData(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cutSlice")] + public static extern int cutSlice(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3, int jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SumSHA256__SWIG_0")] public static extern uint SKY_cipher_SumSHA256__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -579,7 +582,7 @@ static skycoinPINVOKE() { public static extern void GoSlice_convertString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_toString")] - public static extern string GoSlice_toString(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern global::System.IntPtr GoSlice_toString(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_GoSlice_data")] public static extern void set_GoSlice_data(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -2061,28 +2064,28 @@ static skycoinPINVOKE() { public static extern void delete_encoder__StructField(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_N")] - public static extern void set_encrypt__ScryptChacha20poly1305_N(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + public static extern void set_encrypt__ScryptChacha20poly1305_N(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_N")] - public static extern int get_encrypt__ScryptChacha20poly1305_N(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern long get_encrypt__ScryptChacha20poly1305_N(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_R")] - public static extern void set_encrypt__ScryptChacha20poly1305_R(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + public static extern void set_encrypt__ScryptChacha20poly1305_R(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_R")] - public static extern int get_encrypt__ScryptChacha20poly1305_R(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern long get_encrypt__ScryptChacha20poly1305_R(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_P")] - public static extern void set_encrypt__ScryptChacha20poly1305_P(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + public static extern void set_encrypt__ScryptChacha20poly1305_P(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_P")] - public static extern int get_encrypt__ScryptChacha20poly1305_P(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern long get_encrypt__ScryptChacha20poly1305_P(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_KeyLen")] - public static extern void set_encrypt__ScryptChacha20poly1305_KeyLen(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + public static extern void set_encrypt__ScryptChacha20poly1305_KeyLen(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_KeyLen")] - public static extern int get_encrypt__ScryptChacha20poly1305_KeyLen(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern long get_encrypt__ScryptChacha20poly1305_KeyLen(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_encrypt__ScryptChacha20poly1305")] public static extern global::System.IntPtr new_encrypt__ScryptChacha20poly1305(); @@ -2532,10 +2535,10 @@ static skycoinPINVOKE() { public static extern void delete_wallet__UxBalance(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_api__RichlistParams_N")] - public static extern void set_api__RichlistParams_N(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + public static extern void set_api__RichlistParams_N(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_api__RichlistParams_N")] - public static extern int get_api__RichlistParams_N(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern long get_api__RichlistParams_N(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_api__RichlistParams_IncludeDistribution")] public static extern void set_api__RichlistParams_IncludeDistribution(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -3046,6 +3049,27 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrVerifySignatureInvalidPubkeysLength")] public static extern int get_SKY_ErrVerifySignatureInvalidPubkeysLength(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_b64_int")] + public static extern int b64_int(uint jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_b64e_size")] + public static extern uint b64e_size(uint jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_b64d_size")] + public static extern uint b64d_size(uint jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_b64_encode")] + public static extern uint b64_encode(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_b64_decode")] + public static extern int b64_decode(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_b64_encodef")] + public static extern uint b64_encodef(string jarg1, string jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_b64_decodef")] + public static extern int b64_decodef(string jarg1, string jarg2); } } diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index 853347fe..e5de9cbf 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -278,6 +278,7 @@ SWIGEXPORT void SWIGSTDCALL SWIGRegisterStringCallback_skycoin(SWIG_CSharpString #define SWIG_FILE_WITH_INIT #include "libskycoin.h" #include "swig.h" + #include "base64.h" void destroy_cipher_SecKeys(cipher_SecKeys* p){ @@ -442,6 +443,23 @@ static int intp_value(int *obj) { } } } + +int cutSlice(GoSlice_* slice, int start, int end, int elem_size, GoSlice_* result){ + int size = end - start; + if( size <= 0) + return 1; + void* data = malloc(size * elem_size); + if( data == NULL ) + return 1; + registerMemCleanup( data ); + result->data = data; + result->len = size; + result->cap = size; + char* p = slice->data; + p += (elem_size * start); + memcpy( data, p, elem_size * size ); + return 0; +} GoUint32 CSharp_skycoin_SKY_cipher_SumSHA256(GoSlice seed, cipher_SHA256* sha){ @@ -654,8 +672,11 @@ SWIGINTERN void GoSlice_convertString(GoSlice *self,_GoString_ data){ self->len = strlen(data.p); self->cap = self->len; } -SWIGINTERN char *GoSlice_toString(GoSlice *self){ - return (char *)self->data; +SWIGINTERN _GoString_ GoSlice_toString(GoSlice *self){ + _GoString_ data; + data.p = (char *)self->data; + data.n = self->len; + return data; } SWIGINTERN int cipher__Address_isEqual(cipher__Address *self,cipher__Address *a){ if( self->Version == a->Version ){ @@ -898,6 +919,26 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_parseJsonMetaData(char * jarg1, void } +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cutSlice(void * jarg1, int jarg2, int jarg3, int jarg4, void * jarg5) { + int jresult ; + GoSlice_ *arg1 = (GoSlice_ *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + GoSlice_ *arg5 = (GoSlice_ *) 0 ; + int result; + + arg1 = (GoSlice_ *)jarg1; + arg2 = (int)jarg2; + arg3 = (int)jarg3; + arg4 = (int)jarg4; + arg5 = (GoSlice_ *)jarg5; + result = (int)cutSlice(arg1,arg2,arg3,arg4,arg5); + jresult = result; + return jresult; +} + + SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SumSHA256__SWIG_0(void * jarg1, void * jarg2) { unsigned int jresult ; GoSlice arg1 ; @@ -2223,14 +2264,18 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoSlice_convertString(void * jarg1, v } -SWIGEXPORT char * SWIGSTDCALL CSharp_skycoin_GoSlice_toString(void * jarg1) { - char * jresult ; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_GoSlice_toString(void * jarg1) { + void * jresult ; GoSlice *arg1 = (GoSlice *) 0 ; - char *result = 0 ; + _GoString_ result; arg1 = (GoSlice *)jarg1; - result = (char *)GoSlice_toString(arg1); - jresult = SWIG_csharp_string_callback((const char *)result); + result = GoSlice_toString(arg1); + { + _GoString_ * resultptr = (_GoString_ *) malloc(sizeof(_GoString_)); + memmove(resultptr, &result, sizeof(_GoString_)); + jresult = resultptr; + } return jresult; } @@ -10869,7 +10914,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_encoder__StructField(void * ja } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_N(void * jarg1, int jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_N(void * jarg1, long long jarg2) { encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; GoInt_ arg2 ; @@ -10879,8 +10924,8 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_N } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_N(void * jarg1) { - int jresult ; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_N(void * jarg1) { + long long jresult ; encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; GoInt_ result; @@ -10891,7 +10936,7 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_N( } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_R(void * jarg1, int jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_R(void * jarg1, long long jarg2) { encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; GoInt_ arg2 ; @@ -10901,8 +10946,8 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_R } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_R(void * jarg1) { - int jresult ; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_R(void * jarg1) { + long long jresult ; encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; GoInt_ result; @@ -10913,7 +10958,7 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_R( } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_P(void * jarg1, int jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_P(void * jarg1, long long jarg2) { encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; GoInt_ arg2 ; @@ -10923,8 +10968,8 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_P } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_P(void * jarg1) { - int jresult ; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_P(void * jarg1) { + long long jresult ; encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; GoInt_ result; @@ -10935,7 +10980,7 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_P( } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_KeyLen(void * jarg1, int jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_KeyLen(void * jarg1, long long jarg2) { encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; GoInt_ arg2 ; @@ -10945,8 +10990,8 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_K } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_KeyLen(void * jarg1) { - int jresult ; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_encrypt__ScryptChacha20poly1305_KeyLen(void * jarg1) { + long long jresult ; encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; GoInt_ result; @@ -12845,7 +12890,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__UxBalance(void * jarg1 } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_api__RichlistParams_N(void * jarg1, int jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_api__RichlistParams_N(void * jarg1, long long jarg2) { api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; GoInt_ arg2 ; @@ -12855,8 +12900,8 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_api__RichlistParams_N(void * jarg } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_api__RichlistParams_N(void * jarg1) { - int jresult ; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_api__RichlistParams_N(void * jarg1) { + long long jresult ; api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; GoInt_ result; @@ -14599,6 +14644,102 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrVerifySignatureInvalidPubke } +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_b64_int(unsigned int jarg1) { + int jresult ; + unsigned int arg1 ; + int result; + + arg1 = (unsigned int)jarg1; + result = (int)b64_int(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_b64e_size(unsigned int jarg1) { + unsigned int jresult ; + unsigned int arg1 ; + unsigned int result; + + arg1 = (unsigned int)jarg1; + result = (unsigned int)b64e_size(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_b64d_size(unsigned int jarg1) { + unsigned int jresult ; + unsigned int arg1 ; + unsigned int result; + + arg1 = (unsigned int)jarg1; + result = (unsigned int)b64d_size(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_b64_encode(void * jarg1, unsigned int jarg2, void * jarg3) { + unsigned int jresult ; + unsigned char *arg1 = (unsigned char *) 0 ; + unsigned int arg2 ; + unsigned char *arg3 = (unsigned char *) 0 ; + unsigned int result; + + arg1 = (unsigned char *)jarg1; + arg2 = (unsigned int)jarg2; + arg3 = (unsigned char *)jarg3; + result = (unsigned int)b64_encode((unsigned char const *)arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_b64_decode(void * jarg1, unsigned int jarg2, void * jarg3) { + int jresult ; + unsigned char *arg1 = (unsigned char *) 0 ; + unsigned int arg2 ; + unsigned char *arg3 = (unsigned char *) 0 ; + int result; + + arg1 = (unsigned char *)jarg1; + arg2 = (unsigned int)jarg2; + arg3 = (unsigned char *)jarg3; + result = (int)b64_decode((unsigned char const *)arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_b64_encodef(char * jarg1, char * jarg2) { + unsigned int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + unsigned int result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + result = (unsigned int)b64_encodef(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_b64_decodef(char * jarg1, char * jarg2) { + int jresult ; + char *arg1 = (char *) 0 ; + char *arg2 = (char *) 0 ; + int result; + + arg1 = (char *)jarg1; + arg2 = (char *)jarg2; + result = (int)b64_decodef(arg1,arg2); + jresult = result; + return jresult; +} + + #ifdef __cplusplus } #endif diff --git a/LibskycoinNetTest/LibskycoinNetTest.csproj b/LibskycoinNetTest/LibskycoinNetTest.csproj index 73dd62a7..737634df 100644 --- a/LibskycoinNetTest/LibskycoinNetTest.csproj +++ b/LibskycoinNetTest/LibskycoinNetTest.csproj @@ -36,7 +36,7 @@ - + diff --git a/LibskycoinNetTest/check_cipher_encrypt_scrypt_chacha20poly1305.cs b/LibskycoinNetTest/check_cipher_encrypt_scrypt_chacha20poly1305.cs index f56d2366..bff5dee6 100644 --- a/LibskycoinNetTest/check_cipher_encrypt_scrypt_chacha20poly1305.cs +++ b/LibskycoinNetTest/check_cipher_encrypt_scrypt_chacha20poly1305.cs @@ -4,12 +4,14 @@ namespace LibskycoinNetTest { [TestFixture ()] public class check_cipher_encrypt_scrypt_chacha20poly1305 { + [Test] public void TestScryptChacha20poly1305Encrypt () { for (int i = 1; i < 20; i++) { var name = "N=1<<" + i.ToString () + "(" + (1 << i).ToString () + ")" + ", R=8, p=1, keyLen=32"; + Console.WriteLine ("----------------Iteracion----------------- " + i.ToString () + name); var crypto = new encrypt__ScryptChacha20poly1305 (); - crypto.N = (int) (1 << i); + crypto.N = ((long) (1 << i)); crypto.R = 8; crypto.P = 1; crypto.KeyLen = 32; @@ -24,13 +26,80 @@ public void TestScryptChacha20poly1305Encrypt () { passwd.convertString (passwdText); var err = skycoin.skycoin.SKY_encrypt_ScryptChacha20poly1305_Encrypt (crypto, plain, passwd, encData); Assert.AreEqual (err, skycoin.skycoin.SKY_OK, name); - Assert.AreEqual(encData.len > 2,true); - // var str = new _GoString_(); - // str.p =""; - // var decode_len = skycoin.skycoin.b64_decode(encData.toString(),(uint)encData.len,str); - + Assert.AreEqual (encData.len > 2, true); + string str = (string) encData.toString ().p; + var base64 = Convert.FromBase64String (str); + var meta = System.Text.ASCIIEncoding.ASCII.GetString (base64); + Assert.AreEqual (base64.Length >= 2, true); + Assert.AreEqual (base64.Length < 1024, true); + + var n = skycoin.skycoin.new_intp (); + var r = skycoin.skycoin.new_intp (); + var p = skycoin.skycoin.new_intp (); + var keyLen = skycoin.skycoin.new_intp (); + Console.WriteLine (meta); + skycoin.skycoin.parseJsonMetaData (meta, n, r, p, keyLen); + Console.WriteLine ("N =" + skycoin.skycoin.intp_value (n)); + Console.WriteLine ("R =" + skycoin.skycoin.intp_value (r)); + Console.WriteLine ("P = " + skycoin.skycoin.intp_value (p)); + Console.WriteLine ("keyLen= " + skycoin.skycoin.intp_value (keyLen)); } } + + struct StructTest { + public string name; + public GoSlice data; + public GoSlice encData; + public GoSlice encPwd; + public GoSlice decPwd; + public long err; + } + + [Test ()] + public void TestScryptChacha20poly1305Decrypt () { + + var casett = new StructTest (); + + // StructTest.data + var pData = new GoSlice (); + var pDataText = new _GoString_ (); + pDataText.p = "plaintext"; + pData.convertString (pDataText); + + // StructTest.encData + var pencData = new GoSlice (); + var pencDataText = new _GoString_ (); + pencDataText.p = "dQB7Im4iOjUyNDI4OCwiciI6OCwicCI6MSwia2V5TGVuIjozMiwic2FsdCI6ImpiejUrSFNjTFFLWkI5T0tYblNNRmt2WDBPY3JxVGZ0ZFpDNm9KUFpaeHc9Iiwibm9uY2UiOiJLTlhOQmRQa1ZUWHZYNHdoIn3PQFmOot0ETxTuv//skTG7Q57UVamGCgG5"; + pencData.convertString (pDataText); + + // StructTest.encPwd + var pencPwd = new GoSlice (); + var pencPwdText = new _GoString_ (); + pencPwdText.p = "pwd"; + pencPwd.convertString (pencPwdText); + + // StructTest.decPwd + var pdecPwd = new GoSlice (); + var pdecPwdText = new _GoString_ (); + pdecPwdText.p = "pwd"; + pdecPwd.convertString (pdecPwdText); + casett.data = pData; + casett.decPwd = pdecPwd; + casett.encData = pencData; + casett.encPwd = pencPwd; + casett.err = skycoin.skycoin.SKY_OK; + StructTest[] tt = { casett }; + + // for (int i = 0; i < tt.Length; i++) { + // var tc = tt[i]; + // var name = "N=1<<19 r=8 p=1 keyLen=32 " + tc.name; + // var crypto = new encrypt__ScryptChacha20poly1305 (); + // var data = new GoSlice (); + // var err = skycoin.skycoin.SKY_encrypt_ScryptChacha20poly1305_Decrypt (crypto, tc.encData, tc.decPwd, data); + // Assert.AreEqual (err, tc.err, name); + + // } + } } } \ No newline at end of file diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index b36de555..3406deb1 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit b36de5553efb02a2f3c892616d031e7a3843b5fc +Subproject commit 3406deb1b7fb97c052438ae238765c04f4b425d3 From eabe2c42950a4a3da25853d1e34226f0a451afbb Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Tue, 18 Sep 2018 23:50:48 -0400 Subject: [PATCH 29/73] [libdotnet] refs #8 Added test cipher_hash Tests run: 34, Errors: 0, Failures: 0, Inconclusive: 0, Time: 12,9913398 seconds Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0 --- LibskycoinNet/skycoin/cipher__Address.cs | 8 +- LibskycoinNet/skycoin/skycoin.cs | 28 ++++- LibskycoinNet/skycoin/skycoinPINVOKE.cs | 25 +++-- LibskycoinNet/skycoin/skycoinnet_wrap.c | 92 ++++++++++++++-- LibskycoinNetTest/LibskycoinNetTest.csproj | 1 + LibskycoinNetTest/check_cipher_hash.cs | 120 +++++++++++++++++++++ gopath/src/github.com/skycoin/skycoin | 2 +- 7 files changed, 253 insertions(+), 23 deletions(-) create mode 100644 LibskycoinNetTest/check_cipher_hash.cs diff --git a/LibskycoinNet/skycoin/cipher__Address.cs b/LibskycoinNet/skycoin/cipher__Address.cs index 67534011..3b075a40 100644 --- a/LibskycoinNet/skycoin/cipher__Address.cs +++ b/LibskycoinNet/skycoin/cipher__Address.cs @@ -54,12 +54,14 @@ public void setVersion(char pValue) { skycoinPINVOKE.cipher__Address_setVersion(swigCPtr, pValue); } - public char Version { + public SWIGTYPE_p_GoUint8_ Version { set { - skycoinPINVOKE.set_cipher__Address_Version(swigCPtr, value); + skycoinPINVOKE.set_cipher__Address_Version(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - char ret = skycoinPINVOKE.get_cipher__Address_Version(swigCPtr); + SWIGTYPE_p_GoUint8_ ret = new SWIGTYPE_p_GoUint8_(skycoinPINVOKE.get_cipher__Address_Version(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs index fae1dc84..e93f3631 100644 --- a/LibskycoinNet/skycoin/skycoin.cs +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -130,6 +130,28 @@ public static uint SKY_cipher_TestSecKeyHash(cipher_SecKey s, cipher_SHA256 h) { return ret; } + public static uint SKY_cipher_SHA256_Set(cipher_SHA256 h, GoSlice s) { + uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Set__SWIG_0(cipher_SHA256.getCPtr(h), GoSlice.getCPtr(s)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_SHA256_Hex(cipher_SHA256 h, _GoString_ s) { +var tmps = _GoString_.getCPtr (s); + { + uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Hex__SWIG_0(cipher_SHA256.getCPtr(h), tmps); + return ret; + } + } + + public static uint SKY_cipher_SHA256FromHex(string s, cipher_SHA256 h) { +var tmps = s; + { + uint ret = skycoinPINVOKE.SKY_cipher_SHA256FromHex__SWIG_0(tmps, cipher_SHA256.getCPtr(h)); + return ret; + } + } + public static uint SKY_coin_NewBlock(SWIGTYPE_p_Block__Handle p0, ulong p1, cipher_SecKey p2, SWIGTYPE_p_Transactions__Handle p3, SWIGTYPE_p_FeeCalculator p4, SWIGTYPE_p_Block__Handle p5) { var tmpp2 = cipher_SecKey.getCPtr (p2); { @@ -2827,7 +2849,7 @@ public static uint SKY_cipher_HashRipemd160(GoSlice p0, cipher_Ripemd160 p1) { public static uint SKY_cipher_SHA256_Set(cipher_SecKey p0, GoSlice p1) { var tmpp0 = cipher_SecKey.getCPtr (p0); { - uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Set(tmpp0, GoSlice.getCPtr(p1)); + uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Set__SWIG_1(tmpp0, GoSlice.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -2837,7 +2859,7 @@ public static uint SKY_cipher_SHA256_Hex(cipher_SecKey p0, _GoString_ p1) { var tmpp0 = cipher_SecKey.getCPtr (p0); var tmpp1 = _GoString_.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Hex(tmpp0, tmpp1); + uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Hex__SWIG_1(tmpp0, tmpp1); return ret; } } @@ -2865,7 +2887,7 @@ public static uint SKY_cipher_SHA256FromHex(string p0, cipher_SecKey p1) { var tmpp0 = p0; var tmpp1 = cipher_SecKey.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_cipher_SHA256FromHex(tmpp0, tmpp1); + uint ret = skycoinPINVOKE.SKY_cipher_SHA256FromHex__SWIG_1(tmpp0, tmpp1); return ret; } } diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index 3cd9ccbb..3541d1c1 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -257,6 +257,15 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_TestSecKeyHash__SWIG_0")] public static extern uint SKY_cipher_TestSecKeyHash__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Set__SWIG_0")] + public static extern uint SKY_cipher_SHA256_Set__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Hex__SWIG_0")] + public static extern uint SKY_cipher_SHA256_Hex__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256FromHex__SWIG_0")] + public static extern uint SKY_cipher_SHA256FromHex__SWIG_0(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKey_isEqual")] public static extern int cipher_PubKey_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1832,11 +1841,11 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_HashRipemd160")] public static extern uint SKY_cipher_HashRipemd160(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Set")] - public static extern uint SKY_cipher_SHA256_Set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Set__SWIG_1")] + public static extern uint SKY_cipher_SHA256_Set__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Hex")] - public static extern uint SKY_cipher_SHA256_Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Hex__SWIG_1")] + public static extern uint SKY_cipher_SHA256_Hex__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Xor")] public static extern uint SKY_cipher_SHA256_Xor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -1844,8 +1853,8 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SumSHA256__SWIG_1")] public static extern uint SKY_cipher_SumSHA256__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256FromHex")] - public static extern uint SKY_cipher_SHA256FromHex(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256FromHex__SWIG_1")] + public static extern uint SKY_cipher_SHA256FromHex__SWIG_1(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_DoubleSHA256")] public static extern uint SKY_cipher_DoubleSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -2016,10 +2025,10 @@ static skycoinPINVOKE() { public static extern void cipher__Address_setVersion(global::System.Runtime.InteropServices.HandleRef jarg1, char jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cipher__Address_Version")] - public static extern void set_cipher__Address_Version(global::System.Runtime.InteropServices.HandleRef jarg1, char jarg2); + public static extern void set_cipher__Address_Version(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_cipher__Address_Version")] - public static extern char get_cipher__Address_Version(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern global::System.IntPtr get_cipher__Address_Version(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cipher__Address_Key")] public static extern void set_cipher__Address_Key(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index e5de9cbf..9d90bc25 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -497,6 +497,24 @@ int cutSlice(GoSlice_* slice, int start, int end, int elem_size, GoSlice_* resul return result; } + + GoUint32 CSharp_skycoin_SKY_cipher_SHA256_Set(cipher_SHA256 *h,GoSlice s){ + GoUint32 result = SKY_cipher_SHA256_Set(h,s); + return result; + } + + + GoUint32 CSharp_skycoin_SKY_cipher_SHA256_Hex(cipher_SHA256 *h,GoString_* s){ + GoUint32 result = SKY_cipher_SHA256_Hex(h,s); + return result; + } + + + GoUint32 CSharp_skycoin_SKY_cipher_SHA256FromHex(GoString s,cipher_SHA256 *h){ + GoUint32 result = SKY_cipher_SHA256FromHex(s,h); + return result; + } + SWIGINTERN int cipher_PubKey_isEqual(cipher_PubKey *self,cipher_PubKey *a){ return memcmp(self->data, a->data, sizeof(a->data)) == 0; } @@ -1037,6 +1055,54 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_TestSecKeyHash__SW } +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Set__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; + GoSlice arg2 ; + GoSlice *argp2 ; + GoUint32 result; + + arg1 = (cipher_SHA256 *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; + result = (GoUint32)CSharp_skycoin_SKY_cipher_SHA256_Set(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Hex__SWIG_0(void * jarg1, GoString* jarg2) { + unsigned int jresult ; + cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + arg1 = (cipher_SHA256 *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)CSharp_skycoin_SKY_cipher_SHA256_Hex(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256FromHex__SWIG_0(char* jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; + GoUint32 result; + + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); + arg2 = (cipher_SHA256 *)jarg2; + result = (GoUint32)CSharp_skycoin_SKY_cipher_SHA256FromHex(arg1,arg2); + jresult = result; + return jresult; +} + + SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_PubKey_isEqual(void * jarg1, void * jarg2) { int jresult ; cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; @@ -9672,7 +9738,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_HashRipemd160(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Set(cipher_SecKey* jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Set__SWIG_1(cipher_SecKey* jarg1, void * jarg2) { unsigned int jresult ; cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; GoSlice arg2 ; @@ -9692,7 +9758,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Set(cipher_ } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Hex(cipher_SecKey* jarg1, GoString* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Hex__SWIG_1(cipher_SecKey* jarg1, GoString* jarg2) { unsigned int jresult ; cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -9742,7 +9808,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SumSHA256__SWIG_1( } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256FromHex(char* jarg1, cipher_SecKey* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256FromHex__SWIG_1(char* jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; GoString arg1 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; @@ -10702,24 +10768,34 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher__Address_setVersion(void * jar } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher__Address_Version(void * jarg1, char jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher__Address_Version(void * jarg1, void * jarg2) { cipher__Address *arg1 = (cipher__Address *) 0 ; GoUint8_ arg2 ; + GoUint8_ *argp2 ; arg1 = (cipher__Address *)jarg1; - arg2 = (GoUint8_)jarg2; + argp2 = (GoUint8_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint8_", 0); + return ; + } + arg2 = *argp2; if (arg1) (arg1)->Version = arg2; } -SWIGEXPORT char SWIGSTDCALL CSharp_skycoin_get_cipher__Address_Version(void * jarg1) { - char jresult ; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_cipher__Address_Version(void * jarg1) { + void * jresult ; cipher__Address *arg1 = (cipher__Address *) 0 ; GoUint8_ result; arg1 = (cipher__Address *)jarg1; result = ((arg1)->Version); - jresult = result; + { + GoUint8_ * resultptr = (GoUint8_ *) malloc(sizeof(GoUint8_)); + memmove(resultptr, &result, sizeof(GoUint8_)); + jresult = resultptr; + } return jresult; } diff --git a/LibskycoinNetTest/LibskycoinNetTest.csproj b/LibskycoinNetTest/LibskycoinNetTest.csproj index 737634df..98a760b5 100644 --- a/LibskycoinNetTest/LibskycoinNetTest.csproj +++ b/LibskycoinNetTest/LibskycoinNetTest.csproj @@ -36,6 +36,7 @@ + diff --git a/LibskycoinNetTest/check_cipher_hash.cs b/LibskycoinNetTest/check_cipher_hash.cs new file mode 100644 index 00000000..57520ed6 --- /dev/null +++ b/LibskycoinNetTest/check_cipher_hash.cs @@ -0,0 +1,120 @@ +using System; +using NUnit.Framework; +using skycoin; +namespace LibskycoinNetTest { + [TestFixture ()] + public class check_cipher_hash { + public void freshSumRipemd160 (skycoin.GoSlice bytes, cipher_Ripemd160 rp160) { + skycoin.skycoin.SKY_cipher_HashRipemd160 (bytes, rp160); + } + + void freshSumSHA256 (GoSlice bytes, cipher_SHA256 sha256) { + skycoin.skycoin.SKY_cipher_SumSHA256 (bytes, sha256); + } + + [Test] + public void TestHashRipemd160 () { + var b = new GoSlice (); + var err = skycoin.skycoin.SKY_cipher_RandByte (128, b); + var hr = new cipher_Ripemd160 (); + err = skycoin.skycoin.SKY_cipher_HashRipemd160 (b, hr); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + b = new GoSlice (); + err = skycoin.skycoin.SKY_cipher_RandByte (160, b); + var r = new cipher_Ripemd160 (); + err = skycoin.skycoin.SKY_cipher_HashRipemd160 (b, r); + Assert.AreEqual (r.isEqual (new cipher_Ripemd160 ()), 0); + // 2nd hash should not be affected by previous + b = new GoSlice (); + err = skycoin.skycoin.SKY_cipher_RandByte (256, b); + var r2 = new cipher_Ripemd160 (); + err = skycoin.skycoin.SKY_cipher_HashRipemd160 (b, r2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (r2.isEqual (new cipher_Ripemd160 ()), 0); + var r3 = new cipher_Ripemd160 (); + freshSumRipemd160 (b, r3); + Assert.AreEqual (r2.isEqual (r3), 1); + } + + [Test] + public void TestRipemd160Set () { + var h = new cipher_Ripemd160 (); + var b = new GoSlice (); + var err = skycoin.skycoin.SKY_cipher_RandByte (21, b); + err = skycoin.skycoin.SKY_cipher_Ripemd160_Set (h, b); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthRipemd160); + b = new GoSlice (); + h = new cipher_Ripemd160 (); + skycoin.skycoin.SKY_cipher_RandByte (100, b); + err = skycoin.skycoin.SKY_cipher_Ripemd160_Set (h, b); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthRipemd160); + + b = new GoSlice (); + h = new cipher_Ripemd160 (); + skycoin.skycoin.SKY_cipher_RandByte (19, b); + err = skycoin.skycoin.SKY_cipher_Ripemd160_Set (h, b); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthRipemd160); + + b = new GoSlice (); + h = new cipher_Ripemd160 (); + skycoin.skycoin.SKY_cipher_RandByte (0, b); + err = skycoin.skycoin.SKY_cipher_Ripemd160_Set (h, b); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthRipemd160); + + b = new GoSlice (); + h = new cipher_Ripemd160 (); + skycoin.skycoin.SKY_cipher_RandByte (20, b); + err = skycoin.skycoin.SKY_cipher_Ripemd160_Set (h, b); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + } + + [Test] + public void TestSHA256Set () { + var h = new cipher_SHA256 (); + var b = new GoSlice (); + var err = skycoin.skycoin.SKY_cipher_RandByte (33, b); + err = skycoin.skycoin.SKY_cipher_SHA256_Set (h, b); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthSHA256); + h = new cipher_SHA256 (); + b = new GoSlice (); + skycoin.skycoin.SKY_cipher_RandByte (100, b); + err = skycoin.skycoin.SKY_cipher_SHA256_Set (h, b); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthSHA256); + h = new cipher_SHA256 (); + b = new GoSlice (); + skycoin.skycoin.SKY_cipher_RandByte (31, b); + err = skycoin.skycoin.SKY_cipher_SHA256_Set (h, b); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthSHA256); + h = new cipher_SHA256 (); + b = new GoSlice (); + skycoin.skycoin.SKY_cipher_RandByte (0, b); + err = skycoin.skycoin.SKY_cipher_SHA256_Set (h, b); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthSHA256); + h = new cipher_SHA256 (); + b = new GoSlice (); + skycoin.skycoin.SKY_cipher_RandByte (32, b); + err = skycoin.skycoin.SKY_cipher_SHA256_Set (h, b); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + } + + [Test] + public void TestSHA256Hex () { + var h = new cipher_SHA256 (); + var b = new GoSlice (); + skycoin.skycoin.SKY_cipher_RandByte (32, b); + var err = skycoin.skycoin.SKY_cipher_SHA256_Set (h, b); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var s = new _GoString_ (); + err = skycoin.skycoin.SKY_cipher_SHA256_Hex (h, s); + var h2 = new cipher_SHA256 (); + err = skycoin.skycoin.SKY_cipher_SHA256FromHex (s.p, h2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (h.isEqual (h2), 1); + var s1 = new _GoString_ (); + err = skycoin.skycoin.SKY_cipher_SHA256_Hex (h, s1); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (s1.p == s.p, true); + + } + } +} \ No newline at end of file diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index 3406deb1..4cd21f2f 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit 3406deb1b7fb97c052438ae238765c04f4b425d3 +Subproject commit 4cd21f2fc67c33ecdd956e8d9aa5cde1efd1fb45 From 7eefb6eed72ebf8a2383b18fd1db64a69e3ce668 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Mon, 24 Sep 2018 12:45:38 -0400 Subject: [PATCH 30/73] [libdotnet][swig] Update submodule and add SWIGTYPE_p_UnspentOutputsSummary_Handle Tests run: 37, Errors: 1, Failures: 0, Inconclusive: 0, Time: 13,2049951 seconds Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0 --- LibskycoinNet/LibskycoinNet.csproj | 1 + LibskycoinNet/skycoin/GoSlice.cs | 5 - ...SWIGTYPE_p_UnspentOutputsSummary_Handle.cs | 29 ++++ LibskycoinNet/skycoin/cipher_SHA256.cs | 5 + LibskycoinNet/skycoin/skycoin.cs | 36 ++++- LibskycoinNet/skycoin/skycoinPINVOKE.cs | 24 ++- LibskycoinNet/skycoin/skycoinnet_wrap.c | 151 +++++++++++++----- LibskycoinNetTest/check_cipher_hash.cs | 68 ++++++++ gopath/src/github.com/skycoin/skycoin | 2 +- swig/include/libskycoin.h | 14 +- 10 files changed, 267 insertions(+), 68 deletions(-) create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_UnspentOutputsSummary_Handle.cs diff --git a/LibskycoinNet/LibskycoinNet.csproj b/LibskycoinNet/LibskycoinNet.csproj index 04b6f3ec..c9370729 100644 --- a/LibskycoinNet/LibskycoinNet.csproj +++ b/LibskycoinNet/LibskycoinNet.csproj @@ -127,6 +127,7 @@ + diff --git a/LibskycoinNet/skycoin/GoSlice.cs b/LibskycoinNet/skycoin/GoSlice.cs index 2e97f761..48985056 100644 --- a/LibskycoinNet/skycoin/GoSlice.cs +++ b/LibskycoinNet/skycoin/GoSlice.cs @@ -50,11 +50,6 @@ public void convertString(_GoString_ data) { if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } - public _GoString_ toString() { - _GoString_ ret = new _GoString_(skycoinPINVOKE.GoSlice_toString(swigCPtr), true); - return ret; - } - public SWIGTYPE_p_void data { set { skycoinPINVOKE.set_GoSlice_data(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_UnspentOutputsSummary_Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_UnspentOutputsSummary_Handle.cs new file mode 100644 index 00000000..68a3aeab --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_UnspentOutputsSummary_Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_UnspentOutputsSummary_Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_UnspentOutputsSummary_Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_UnspentOutputsSummary_Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_UnspentOutputsSummary_Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/cipher_SHA256.cs b/LibskycoinNet/skycoin/cipher_SHA256.cs index e7f6b91a..b6be7c0b 100644 --- a/LibskycoinNet/skycoin/cipher_SHA256.cs +++ b/LibskycoinNet/skycoin/cipher_SHA256.cs @@ -53,6 +53,11 @@ public void assignTo(SWIGTYPE_p_void data) { skycoinPINVOKE.cipher_SHA256_assignTo(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); } + public _GoString_ getStr() { + _GoString_ ret = new _GoString_(skycoinPINVOKE.cipher_SHA256_getStr(swigCPtr), true); + return ret; + } + public SWIGTYPE_p_unsigned_char data { set { skycoinPINVOKE.set_cipher_SHA256_data(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs index e93f3631..95415bde 100644 --- a/LibskycoinNet/skycoin/skycoin.cs +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -62,6 +62,33 @@ public static GoSlice GoSlicep_value(GoSlice obj) { return ret; } + public static _GoString_ new_GoStringp() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_GoStringp(); + _GoString_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new _GoString_(cPtr, false); + return ret; + } + + public static _GoString_ copy_GoStringp(_GoString_ value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_GoStringp(_GoString_.getCPtr(value)); + _GoString_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new _GoString_(cPtr, false); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static void delete_GoStringp(_GoString_ obj) { + skycoinPINVOKE.delete_GoStringp(_GoString_.getCPtr(obj)); + } + + public static void GoStringp_assign(_GoString_ obj, _GoString_ value) { + skycoinPINVOKE.GoStringp_assign(_GoString_.getCPtr(obj), _GoString_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + + public static _GoString_ GoStringp_value(_GoString_ obj) { + _GoString_ ret = new _GoString_(skycoinPINVOKE.GoStringp_value(_GoString_.getCPtr(obj)), true); + return ret; + } + public static SWIGTYPE_p_int new_intp() { global::System.IntPtr cPtr = skycoinPINVOKE.new_intp(); SWIGTYPE_p_int ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_int(cPtr, false); @@ -1662,11 +1689,6 @@ public static uint SKY_wallet_Balance_IsZero(wallet__Balance p0, SWIGTYPE_p_unsi return ret; } - public static uint SKY_utc_UnixNow(SWIGTYPE_p_long_long p0) { - uint ret = skycoinPINVOKE.SKY_utc_UnixNow(SWIGTYPE_p_long_long.getCPtr(p0)); - return ret; - } - public static uint SKY_httphelper_Address_UnmarshalJSON(httphelper__Address p0, GoSlice p1) { uint ret = skycoinPINVOKE.SKY_httphelper_Address_UnmarshalJSON(httphelper__Address.getCPtr(p0), GoSlice.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); @@ -2705,8 +2727,8 @@ public static uint SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_WebRpcClient__Han } } - public static uint SKY_cli_GetWalletOutputs(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_Wallet__Handle p1, SWIGTYPE_p_ReadableOutputSet_Handle p2) { - uint ret = skycoinPINVOKE.SKY_cli_GetWalletOutputs(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_Wallet__Handle.getCPtr(p1), SWIGTYPE_p_ReadableOutputSet_Handle.getCPtr(p2)); + public static uint SKY_cli_GetWalletOutputs(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_Wallet__Handle p1, SWIGTYPE_p_UnspentOutputsSummary_Handle p2) { + uint ret = skycoinPINVOKE.SKY_cli_GetWalletOutputs(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_Wallet__Handle.getCPtr(p1), SWIGTYPE_p_UnspentOutputsSummary_Handle.getCPtr(p2)); return ret; } diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index 3541d1c1..bfc07a5b 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -218,6 +218,21 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlicep_value")] public static extern global::System.IntPtr GoSlicep_value(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_GoStringp")] + public static extern global::System.IntPtr new_GoStringp(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_GoStringp")] + public static extern global::System.IntPtr copy_GoStringp(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_GoStringp")] + public static extern void delete_GoStringp(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoStringp_assign")] + public static extern void GoStringp_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoStringp_value")] + public static extern global::System.IntPtr GoStringp_value(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_intp")] public static extern global::System.IntPtr new_intp(); @@ -362,6 +377,9 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256_assignTo")] public static extern void cipher_SHA256_assignTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256_getStr")] + public static extern global::System.IntPtr cipher_SHA256_getStr(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cipher_SHA256_data")] public static extern void set_cipher_SHA256_data(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -590,9 +608,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_convertString")] public static extern void GoSlice_convertString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_toString")] - public static extern global::System.IntPtr GoSlice_toString(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_GoSlice_data")] public static extern void set_GoSlice_data(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1280,9 +1295,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Balance_IsZero")] public static extern uint SKY_wallet_Balance_IsZero(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_utc_UnixNow")] - public static extern uint SKY_utc_UnixNow(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_httphelper_Address_UnmarshalJSON")] public static extern uint SKY_httphelper_Address_UnmarshalJSON(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index 9d90bc25..ca84d5bf 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -360,6 +360,29 @@ static GoSlice GoSlicep_value(GoSlice *obj) { } +static _GoString_ *new_GoStringp() { + return (_GoString_ *) calloc(1,sizeof(_GoString_)); +} + +static _GoString_ *copy_GoStringp(_GoString_ value) { + _GoString_ *obj = (_GoString_ *) calloc(1,sizeof(_GoString_)); + *obj = value; + return obj; +} + +static void delete_GoStringp(_GoString_ *obj) { + if (obj) free(obj); +} + +static void GoStringp_assign(_GoString_ *obj, _GoString_ value) { + *obj = value; +} + +static _GoString_ GoStringp_value(_GoString_ *obj) { + return *obj; +} + + static int *new_intp() { return (int *) calloc(1,sizeof(int)); } @@ -567,6 +590,12 @@ SWIGINTERN void cipher_SHA256_assignFrom(cipher_SHA256 *self,void *data){ SWIGINTERN void cipher_SHA256_assignTo(cipher_SHA256 *self,void *data){ memcpy(data, &self->data, sizeof(self->data)); } +SWIGINTERN _GoString_ cipher_SHA256_getStr(cipher_SHA256 *self){ + _GoString_ str; + str.p = (const char*)self->data; + str.n = strlen(str.p); + return str; + } SWIGINTERN int cipher_Checksum_isEqual(cipher_Checksum *self,cipher_Checksum *a){ return memcmp(self->data, a->data, sizeof(a->data)) == 0; } @@ -690,12 +719,6 @@ SWIGINTERN void GoSlice_convertString(GoSlice *self,_GoString_ data){ self->len = strlen(data.p); self->cap = self->len; } -SWIGINTERN _GoString_ GoSlice_toString(GoSlice *self){ - _GoString_ data; - data.p = (char *)self->data; - data.n = self->len; - return data; - } SWIGINTERN int cipher__Address_isEqual(cipher__Address *self,cipher__Address *a){ if( self->Version == a->Version ){ return memcmp(self->Key, a->Key, sizeof(a->Key)) == 0; @@ -869,6 +892,74 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_GoSlicep_value(void * jarg1) { } +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_GoStringp() { + void * jresult ; + _GoString_ *result = 0 ; + + result = (_GoString_ *)new_GoStringp(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_GoStringp(void * jarg1) { + void * jresult ; + _GoString_ arg1 ; + _GoString_ *argp1 ; + _GoString_ *result = 0 ; + + argp1 = (_GoString_ *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null _GoString_", 0); + return 0; + } + arg1 = *argp1; + result = (_GoString_ *)copy_GoStringp(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_GoStringp(void * jarg1) { + _GoString_ *arg1 = (_GoString_ *) 0 ; + + arg1 = (_GoString_ *)jarg1; + delete_GoStringp(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoStringp_assign(void * jarg1, void * jarg2) { + _GoString_ *arg1 = (_GoString_ *) 0 ; + _GoString_ arg2 ; + _GoString_ *argp2 ; + + arg1 = (_GoString_ *)jarg1; + argp2 = (_GoString_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null _GoString_", 0); + return ; + } + arg2 = *argp2; + GoStringp_assign(arg1,arg2); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_GoStringp_value(void * jarg1) { + void * jresult ; + _GoString_ *arg1 = (_GoString_ *) 0 ; + _GoString_ result; + + arg1 = (_GoString_ *)jarg1; + result = GoStringp_value(arg1); + { + _GoString_ * resultptr = (_GoString_ *) malloc(sizeof(_GoString_)); + memmove(resultptr, &result, sizeof(_GoString_)); + jresult = resultptr; + } + return jresult; +} + + SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_intp() { void * jresult ; int *result = 0 ; @@ -1465,6 +1556,22 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SHA256_assignTo(void * jarg1, } +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_SHA256_getStr(void * jarg1) { + void * jresult ; + cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; + _GoString_ result; + + arg1 = (cipher_SHA256 *)jarg1; + result = cipher_SHA256_getStr(arg1); + { + _GoString_ * resultptr = (_GoString_ *) malloc(sizeof(_GoString_)); + memmove(resultptr, &result, sizeof(_GoString_)); + jresult = resultptr; + } + return jresult; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher_SHA256_data(void * jarg1, void * jarg2) { cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; GoUint8 *arg2 ; @@ -2330,22 +2437,6 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoSlice_convertString(void * jarg1, v } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_GoSlice_toString(void * jarg1) { - void * jresult ; - GoSlice *arg1 = (GoSlice *) 0 ; - _GoString_ result; - - arg1 = (GoSlice *)jarg1; - result = GoSlice_toString(arg1); - { - _GoString_ * resultptr = (_GoString_ *) malloc(sizeof(_GoString_)); - memmove(resultptr, &result, sizeof(_GoString_)); - jresult = resultptr; - } - return jresult; -} - - SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_GoSlice_data(void * jarg1, void * jarg2) { GoSlice *arg1 = (GoSlice *) 0 ; void *arg2 = (void *) 0 ; @@ -6430,18 +6521,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Balance_IsZero(voi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_utc_UnixNow(void * jarg1) { - unsigned int jresult ; - GoInt64 *arg1 = (GoInt64 *) 0 ; - GoUint32 result; - - arg1 = (GoInt64 *)jarg1; - result = (GoUint32)SKY_utc_UnixNow(arg1); - jresult = result; - return jresult; -} - - SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_httphelper_Address_UnmarshalJSON(void * jarg1, void * jarg2) { unsigned int jresult ; httphelper__Address *arg1 = (httphelper__Address *) 0 ; @@ -9346,7 +9425,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetWalletOutputs(void unsigned int jresult ; WebRpcClient__Handle arg1 ; Wallet__Handle *arg2 = (Wallet__Handle *) 0 ; - ReadableOutputSet_Handle *arg3 = (ReadableOutputSet_Handle *) 0 ; + UnspentOutputsSummary_Handle *arg3 = (UnspentOutputsSummary_Handle *) 0 ; GoUint32 result; { @@ -9355,7 +9434,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetWalletOutputs(void { jarg2 = (long*)&arg2; } - arg3 = (ReadableOutputSet_Handle *)jarg3; + arg3 = (UnspentOutputsSummary_Handle *)jarg3; result = (GoUint32)SKY_cli_GetWalletOutputs(arg1,arg2,arg3); jresult = result; return jresult; diff --git a/LibskycoinNetTest/check_cipher_hash.cs b/LibskycoinNetTest/check_cipher_hash.cs index 57520ed6..e66fb9b2 100644 --- a/LibskycoinNetTest/check_cipher_hash.cs +++ b/LibskycoinNetTest/check_cipher_hash.cs @@ -114,7 +114,75 @@ public void TestSHA256Hex () { err = skycoin.skycoin.SKY_cipher_SHA256_Hex (h, s1); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); Assert.AreEqual (s1.p == s.p, true); + } + + struct StrTest { + public string input; + public string output; + } + + [Test] + public void TestSHA256KnownValue () { + + StrTest caseval; + caseval.input = "skycoin"; + caseval.output = "5a42c0643bdb465d90bf673b99c14f5fa02db71513249d904573d2b8b63d353d"; + StrTest caseval1; + caseval1.input = "hello world"; + caseval1.output = "b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9"; + StrTest caseval2; + caseval2.input = "hello world asd awd awd awdapodawpokawpod "; + caseval2.output = "99d71f95cafe05ea2dddebc35b6083bd5af0e44850c9dc5139b4476c99950be4"; + StrTest[] val = { caseval, caseval1, caseval2 }; + + for (int i = 0; i < val.Length; i++) { + var io = val[i]; + var b = new GoSlice (); + var h = new cipher_SHA256 (); + var input = new _GoString_ (); + var output = new _GoString_ (); + input.p = io.input; + b.convertString (input); + var err = skycoin.skycoin.SKY_cipher_SumSHA256 (b, h); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_SHA256_Hex (h, output); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (output.p == io.output, true); + } + } + [Test] + public void TestSumSHA256 () { + var b = new GoSlice (); + var err = skycoin.skycoin.SKY_cipher_RandByte (256, b); + var h1 = new cipher_SHA256 (); + err = skycoin.skycoin.SKY_cipher_SumSHA256 (b, h1); + Assert.AreEqual (h1.isEqual (new cipher_SHA256 ()), 0); + // A second call to Sum should not be influenced by the original + var c = new GoSlice (); + err = skycoin.skycoin.SKY_cipher_RandByte (256, c); + var h2 = new cipher_SHA256 (); + err = skycoin.skycoin.SKY_cipher_SumSHA256 (c, h2); + Assert.AreEqual (h2.isEqual (new cipher_SHA256 ()), 0); + var h3 = new cipher_SHA256 (); + freshSumSHA256 (c, h3); + Assert.AreEqual (h2.isEqual (h3), 1); + } + + [Test] + public void TestSHA256FromHex () { + // Invalid hex hash + var h = new cipher_SHA256 (); + var err = skycoin.skycoin.SKY_cipher_SHA256FromHex ("cawcd", h); + Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + // Truncated hex hash + var b = new GoSlice (); + err = skycoin.skycoin.SKY_cipher_RandByte (128, b); + h = new skycoin.cipher_SHA256 (); + err = skycoin.skycoin.SKY_cipher_SumSHA256 (b, h); + var str = h.getStr (); + var str1 = skycoin.skycoin.GoStringp_value(str); + Console.WriteLine (str1.p); } } } \ No newline at end of file diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index 4cd21f2f..01e45ea3 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit 4cd21f2fc67c33ecdd956e8d9aa5cde1efd1fb45 +Subproject commit 01e45ea3a8c8bf354cb77fc75595261bf7652a53 diff --git a/swig/include/libskycoin.h b/swig/include/libskycoin.h index b99ef0aa..7006e7e5 100644 --- a/swig/include/libskycoin.h +++ b/swig/include/libskycoin.h @@ -258,16 +258,6 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 5 "util.utc.utc.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - #line 10 "util.http.json.go" @@ -1070,8 +1060,6 @@ extern GoUint32 SKY_wallet_Balance_Equals(wallet__Balance* p0, wallet__Balance* extern GoUint32 SKY_wallet_Balance_IsZero(wallet__Balance* p0, GoUint8* p1); -extern GoUint32 SKY_utc_UnixNow(GoInt64* p0); - extern GoUint32 SKY_httphelper_Address_UnmarshalJSON(httphelper__Address* p0, GoSlice p1); extern GoUint32 SKY_httphelper_Address_MarshalJSON(httphelper__Address* p0, coin__UxArray* p1); @@ -1396,7 +1384,7 @@ extern GoUint32 SKY_file_DetermineResourcePath(GoString p0, GoString p1, GoStrin extern GoUint32 SKY_cli_GetWalletOutputsFromFile(WebRpcClient__Handle p0, GoString p1, ReadableOutputSet_Handle* p2); -extern GoUint32 SKY_cli_GetWalletOutputs(WebRpcClient__Handle p0, Wallet__Handle* p1, ReadableOutputSet_Handle* p2); +extern GoUint32 SKY_cli_GetWalletOutputs(WebRpcClient__Handle p0, Wallet__Handle* p1, UnspentOutputsSummary_Handle* p2); extern GoUint32 SKY_testutil_MakeAddress(cipher__Address* p0); From aef9c09f9ba0f92e34aa0416948f7d40b917c1a4 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Tue, 25 Sep 2018 09:09:02 -0400 Subject: [PATCH 31/73] [libdotnet][test] Added test util.fee Tests run: 38, Errors: 0, Failures: 0, Inconclusive: 0, Time: 13,0506434 seconds Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0 --- LibskycoinNet/LibskycoinNet.csproj | 5 + LibskycoinNet/skycoin/SWIGTYPE_p_FILE.cs | 29 + .../skycoin/SWIGTYPE_p_a_32__GoUint8_.cs | 29 + .../skycoin/SWIGTYPE_p_a_33__GoUint8_.cs | 29 + .../skycoin/SWIGTYPE_p_json_value.cs | 29 + .../skycoin/SWIGTYPE_p_p_json_value.cs | 29 + LibskycoinNet/skycoin/SWIGTYPE_p_p_void.cs | 29 + .../skycoin/TransactionObjectHandle.cs | 71 + LibskycoinNet/skycoin/skycoin.cs | 504 ++- LibskycoinNet/skycoin/skycoinPINVOKE.cs | 216 +- LibskycoinNet/skycoin/skycoinnet_wrap.c | 3274 +++++++++++++---- LibskycoinNet/skycoin/wallet_register.cs | 72 + LibskycoinNetTest/LibskycoinNetTest.csproj | 1 + LibskycoinNetTest/check_cipher_hash.cs | 30 +- LibskycoinNetTest/check_util_fee.cs | 291 ++ gopath/src/github.com/skycoin/skycoin | 2 +- 16 files changed, 3949 insertions(+), 691 deletions(-) create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_FILE.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_a_32__GoUint8_.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_a_33__GoUint8_.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_json_value.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_p_json_value.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_p_void.cs create mode 100644 LibskycoinNet/skycoin/TransactionObjectHandle.cs create mode 100644 LibskycoinNet/skycoin/wallet_register.cs create mode 100644 LibskycoinNetTest/check_util_fee.cs diff --git a/LibskycoinNet/LibskycoinNet.csproj b/LibskycoinNet/LibskycoinNet.csproj index c9370729..24d2ac0b 100644 --- a/LibskycoinNet/LibskycoinNet.csproj +++ b/LibskycoinNet/LibskycoinNet.csproj @@ -128,6 +128,11 @@ + + + + + diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_FILE.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_FILE.cs new file mode 100644 index 00000000..dcc56ca7 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_FILE.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_FILE { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_FILE(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_FILE() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_FILE obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_a_32__GoUint8_.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_a_32__GoUint8_.cs new file mode 100644 index 00000000..31785e54 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_a_32__GoUint8_.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_a_32__GoUint8_ { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_a_32__GoUint8_(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_a_32__GoUint8_() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_a_32__GoUint8_ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_a_33__GoUint8_.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_a_33__GoUint8_.cs new file mode 100644 index 00000000..53b8410d --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_a_33__GoUint8_.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_a_33__GoUint8_ { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_a_33__GoUint8_(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_a_33__GoUint8_() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_a_33__GoUint8_ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_json_value.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_json_value.cs new file mode 100644 index 00000000..90d5479d --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_json_value.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_json_value { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_json_value(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_json_value() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_json_value obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_p_json_value.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_p_json_value.cs new file mode 100644 index 00000000..d208bdaa --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_p_json_value.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_p_json_value { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_p_json_value(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_json_value() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_p_json_value obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_p_void.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_p_void.cs new file mode 100644 index 00000000..ae90b25a --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_p_void.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_p_void { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_p_void(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_void() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_p_void obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/TransactionObjectHandle.cs b/LibskycoinNet/skycoin/TransactionObjectHandle.cs new file mode 100644 index 00000000..dd7169aa --- /dev/null +++ b/LibskycoinNet/skycoin/TransactionObjectHandle.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class TransactionObjectHandle : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal TransactionObjectHandle(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TransactionObjectHandle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~TransactionObjectHandle() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_TransactionObjectHandle(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_GoUint8_ hash { + set { + skycoinPINVOKE.set_TransactionObjectHandle_hash(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.get_TransactionObjectHandle_hash(swigCPtr); + SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_Transaction__Handle handle { + set { + skycoinPINVOKE.set_TransactionObjectHandle_handle(swigCPtr, SWIGTYPE_p_Transaction__Handle.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_Transaction__Handle ret = new SWIGTYPE_p_Transaction__Handle(skycoinPINVOKE.get_TransactionObjectHandle_handle(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public TransactionObjectHandle() : this(skycoinPINVOKE.new_TransactionObjectHandle(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs index 95415bde..22f2fc32 100644 --- a/LibskycoinNet/skycoin/skycoin.cs +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -114,6 +114,224 @@ public static int intp_value(SWIGTYPE_p_int obj) { return ret; } + public static SWIGTYPE_p_Transaction__Handle new_Transaction__Handlep() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_Transaction__Handlep(); + SWIGTYPE_p_Transaction__Handle ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Transaction__Handle(cPtr, false); + return ret; + } + + public static SWIGTYPE_p_Transaction__Handle copy_Transaction__Handlep(SWIGTYPE_p_Transaction__Handle value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_Transaction__Handlep(SWIGTYPE_p_Transaction__Handle.getCPtr(value)); + SWIGTYPE_p_Transaction__Handle ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Transaction__Handle(cPtr, false); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static void delete_Transaction__Handlep(SWIGTYPE_p_Transaction__Handle obj) { + skycoinPINVOKE.delete_Transaction__Handlep(SWIGTYPE_p_Transaction__Handle.getCPtr(obj)); + } + + public static void Transaction__Handlep_assign(SWIGTYPE_p_Transaction__Handle obj, SWIGTYPE_p_Transaction__Handle value) { + skycoinPINVOKE.Transaction__Handlep_assign(SWIGTYPE_p_Transaction__Handle.getCPtr(obj), SWIGTYPE_p_Transaction__Handle.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + + public static SWIGTYPE_p_Transaction__Handle Transaction__Handlep_value(SWIGTYPE_p_Transaction__Handle obj) { + SWIGTYPE_p_Transaction__Handle ret = new SWIGTYPE_p_Transaction__Handle(skycoinPINVOKE.Transaction__Handlep_value(SWIGTYPE_p_Transaction__Handle.getCPtr(obj)), true); + return ret; + } + + public static void SKY_handle_close(SWIGTYPE_p_Handle p0) { + skycoinPINVOKE.SKY_handle_close(SWIGTYPE_p_Handle.getCPtr(p0)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + + public static int MEMPOOLIDX { + set { + skycoinPINVOKE.set_MEMPOOLIDX(value); + } + get { + int ret = skycoinPINVOKE.get_MEMPOOLIDX(); + return ret; + } + } + + public static SWIGTYPE_p_p_void MEMPOOL { + set { + skycoinPINVOKE.set_MEMPOOL(SWIGTYPE_p_p_void.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.get_MEMPOOL(); + SWIGTYPE_p_p_void ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_p_void(cPtr, false); + return ret; + } + } + + public static int JSONPOOLIDX { + set { + skycoinPINVOKE.set_JSONPOOLIDX(value); + } + get { + int ret = skycoinPINVOKE.get_JSONPOOLIDX(); + return ret; + } + } + + public static SWIGTYPE_p_p_json_value JSON_POOL { + set { + skycoinPINVOKE.set_JSON_POOL(SWIGTYPE_p_p_json_value.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.get_JSON_POOL(); + SWIGTYPE_p_p_json_value ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_p_json_value(cPtr, false); + return ret; + } + } + + public static int HANDLEPOOLIDX { + set { + skycoinPINVOKE.set_HANDLEPOOLIDX(value); + } + get { + int ret = skycoinPINVOKE.get_HANDLEPOOLIDX(); + return ret; + } + } + + public static SWIGTYPE_p_Handle HANDLE_POOL { + set { + skycoinPINVOKE.set_HANDLE_POOL(SWIGTYPE_p_Handle.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.get_HANDLE_POOL(); + SWIGTYPE_p_Handle ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Handle(cPtr, false); + return ret; + } + } + + public static int WALLETPOOLIDX { + set { + skycoinPINVOKE.set_WALLETPOOLIDX(value); + } + get { + int ret = skycoinPINVOKE.get_WALLETPOOLIDX(); + return ret; + } + } + + public static wallet_register WALLET_POOL { + set { + skycoinPINVOKE.set_WALLET_POOL(wallet_register.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.get_WALLET_POOL(); + wallet_register ret = (cPtr == global::System.IntPtr.Zero) ? null : new wallet_register(cPtr, false); + return ret; + } + } + + public static int stdout_backup { + set { + skycoinPINVOKE.set_stdout_backup(value); + } + get { + int ret = skycoinPINVOKE.get_stdout_backup(); + return ret; + } + } + + public static SWIGTYPE_p_int pipefd { + set { + skycoinPINVOKE.set_pipefd(SWIGTYPE_p_int.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.get_pipefd(); + SWIGTYPE_p_int ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_int(cPtr, false); + return ret; + } + } + + public static SWIGTYPE_p_void registerMemCleanup(SWIGTYPE_p_void p) { + global::System.IntPtr cPtr = skycoinPINVOKE.registerMemCleanup(SWIGTYPE_p_void.getCPtr(p)); + SWIGTYPE_p_void ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + + public static void freeRegisteredMemCleanup(SWIGTYPE_p_void p) { + skycoinPINVOKE.freeRegisteredMemCleanup(SWIGTYPE_p_void.getCPtr(p)); + } + + public static int registerJsonFree(SWIGTYPE_p_void p) { + int ret = skycoinPINVOKE.registerJsonFree(SWIGTYPE_p_void.getCPtr(p)); + return ret; + } + + public static void freeRegisteredJson(SWIGTYPE_p_void p) { + skycoinPINVOKE.freeRegisteredJson(SWIGTYPE_p_void.getCPtr(p)); + } + + public static int registerWalletClean(SWIGTYPE_p_Client__Handle clientHandle, SWIGTYPE_p_WalletResponse__Handle walletHandle) { + int ret = skycoinPINVOKE.registerWalletClean(SWIGTYPE_p_Client__Handle.getCPtr(clientHandle), SWIGTYPE_p_WalletResponse__Handle.getCPtr(walletHandle)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static int registerHandleClose(SWIGTYPE_p_Handle handle) { + int ret = skycoinPINVOKE.registerHandleClose(SWIGTYPE_p_Handle.getCPtr(handle)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static void closeRegisteredHandle(SWIGTYPE_p_Handle handle) { + skycoinPINVOKE.closeRegisteredHandle(SWIGTYPE_p_Handle.getCPtr(handle)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + + public static void cleanupWallet(SWIGTYPE_p_Client__Handle client, SWIGTYPE_p_WalletResponse__Handle wallet) { + skycoinPINVOKE.cleanupWallet(SWIGTYPE_p_Client__Handle.getCPtr(client), SWIGTYPE_p_WalletResponse__Handle.getCPtr(wallet)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + + public static void cleanRegisteredWallet(SWIGTYPE_p_Client__Handle client, SWIGTYPE_p_WalletResponse__Handle wallet) { + skycoinPINVOKE.cleanRegisteredWallet(SWIGTYPE_p_Client__Handle.getCPtr(client), SWIGTYPE_p_WalletResponse__Handle.getCPtr(wallet)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + + public static void cleanupMem() { + skycoinPINVOKE.cleanupMem(); + } + + public static void setup() { + skycoinPINVOKE.setup(); + } + + public static void teardown() { + skycoinPINVOKE.teardown(); + } + + public static void fprintbuff(SWIGTYPE_p_FILE f, SWIGTYPE_p_void buff, uint n) { + skycoinPINVOKE.fprintbuff(SWIGTYPE_p_FILE.getCPtr(f), SWIGTYPE_p_void.getCPtr(buff), n); + } + + public static int parseBoolean(string str, int length) { + int ret = skycoinPINVOKE.parseBoolean(str, length); + return ret; + } + + public static void toGoString(SWIGTYPE_p_GoString_ s, _GoString_ r) { + skycoinPINVOKE.toGoString(SWIGTYPE_p_GoString_.getCPtr(s), _GoString_.getCPtr(r)); + } + + public static int copySlice(SWIGTYPE_p_GoSlice_ pdest, SWIGTYPE_p_GoSlice_ psource, int elem_size) { + int ret = skycoinPINVOKE.copySlice(SWIGTYPE_p_GoSlice_.getCPtr(pdest), SWIGTYPE_p_GoSlice_.getCPtr(psource), elem_size); + return ret; + } + + public static int concatSlices(SWIGTYPE_p_GoSlice_ slice1, SWIGTYPE_p_GoSlice_ slice2, int elem_size, SWIGTYPE_p_GoSlice_ result) { + int ret = skycoinPINVOKE.concatSlices(SWIGTYPE_p_GoSlice_.getCPtr(slice1), SWIGTYPE_p_GoSlice_.getCPtr(slice2), elem_size, SWIGTYPE_p_GoSlice_.getCPtr(result)); + return ret; + } + public static void parseJsonMetaData(string metadata, SWIGTYPE_p_int n, SWIGTYPE_p_int r, SWIGTYPE_p_int p, SWIGTYPE_p_int keyLen) { skycoinPINVOKE.parseJsonMetaData(metadata, SWIGTYPE_p_int.getCPtr(n), SWIGTYPE_p_int.getCPtr(r), SWIGTYPE_p_int.getCPtr(p), SWIGTYPE_p_int.getCPtr(keyLen)); } @@ -123,6 +341,121 @@ public static int cutSlice(SWIGTYPE_p_GoSlice_ slice, int start, int end, int el return ret; } + public static coin__Transaction makeEmptyTransaction(SWIGTYPE_p_Transaction__Handle handle) { + global::System.IntPtr cPtr = skycoinPINVOKE.makeEmptyTransaction(SWIGTYPE_p_Transaction__Handle.getCPtr(handle)); + coin__Transaction ret = (cPtr == global::System.IntPtr.Zero) ? null : new coin__Transaction(cPtr, false); + return ret; + } + + public static int makeAddress(cipher__Address paddress) { + int ret = skycoinPINVOKE.makeAddress(cipher__Address.getCPtr(paddress)); + return ret; + } + + public static SWIGTYPE_p_Handle new_Handlep() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_Handlep(); + SWIGTYPE_p_Handle ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Handle(cPtr, false); + return ret; + } + + public static SWIGTYPE_p_Handle copy_Handlep(SWIGTYPE_p_Handle value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_Handlep(SWIGTYPE_p_Handle.getCPtr(value)); + SWIGTYPE_p_Handle ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Handle(cPtr, false); + return ret; + } + + public static void delete_Handlep(SWIGTYPE_p_Handle obj) { + skycoinPINVOKE.delete_Handlep(SWIGTYPE_p_Handle.getCPtr(obj)); + } + + public static void Handlep_assign(SWIGTYPE_p_Handle obj, SWIGTYPE_p_Handle value) { + skycoinPINVOKE.Handlep_assign(SWIGTYPE_p_Handle.getCPtr(obj), SWIGTYPE_p_Handle.getCPtr(value)); + } + + public static SWIGTYPE_p_Handle Handlep_value(SWIGTYPE_p_Handle obj) { + SWIGTYPE_p_Handle ret = new SWIGTYPE_p_Handle(skycoinPINVOKE.Handlep_value(SWIGTYPE_p_Handle.getCPtr(obj)), true); + return ret; + } + + public static SWIGTYPE_p_unsigned_long_long new_GoUint64p() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_GoUint64p(); + SWIGTYPE_p_unsigned_long_long ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_long_long(cPtr, false); + return ret; + } + + public static SWIGTYPE_p_unsigned_long_long copy_GoUint64p(ulong value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_GoUint64p(value); + SWIGTYPE_p_unsigned_long_long ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_long_long(cPtr, false); + return ret; + } + + public static void delete_GoUint64p(SWIGTYPE_p_unsigned_long_long obj) { + skycoinPINVOKE.delete_GoUint64p(SWIGTYPE_p_unsigned_long_long.getCPtr(obj)); + } + + public static void GoUint64p_assign(SWIGTYPE_p_unsigned_long_long obj, ulong value) { + skycoinPINVOKE.GoUint64p_assign(SWIGTYPE_p_unsigned_long_long.getCPtr(obj), value); + } + + public static ulong GoUint64p_value(SWIGTYPE_p_unsigned_long_long obj) { + ulong ret = skycoinPINVOKE.GoUint64p_value(SWIGTYPE_p_unsigned_long_long.getCPtr(obj)); + return ret; + } + + public static cipher__Address new_cipher__Addressp() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_cipher__Addressp(); + cipher__Address ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher__Address(cPtr, false); + return ret; + } + + public static cipher__Address copy_cipher__Addressp(cipher__Address value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_cipher__Addressp(cipher__Address.getCPtr(value)); + cipher__Address ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher__Address(cPtr, false); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static void delete_cipher__Addressp(cipher__Address obj) { + skycoinPINVOKE.delete_cipher__Addressp(cipher__Address.getCPtr(obj)); + } + + public static void cipher__Addressp_assign(cipher__Address obj, cipher__Address value) { + skycoinPINVOKE.cipher__Addressp_assign(cipher__Address.getCPtr(obj), cipher__Address.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + + public static cipher__Address cipher__Addressp_value(cipher__Address obj) { + cipher__Address ret = new cipher__Address(skycoinPINVOKE.cipher__Addressp_value(cipher__Address.getCPtr(obj)), true); + return ret; + } + + public static SWIGTYPE_p_Transactions__Handle new_Transactions__Handlep() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_Transactions__Handlep(); + SWIGTYPE_p_Transactions__Handle ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Transactions__Handle(cPtr, false); + return ret; + } + + public static SWIGTYPE_p_Transactions__Handle copy_Transactions__Handlep(SWIGTYPE_p_Transactions__Handle value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_Transactions__Handlep(SWIGTYPE_p_Transactions__Handle.getCPtr(value)); + SWIGTYPE_p_Transactions__Handle ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Transactions__Handle(cPtr, false); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static void delete_Transactions__Handlep(SWIGTYPE_p_Transactions__Handle obj) { + skycoinPINVOKE.delete_Transactions__Handlep(SWIGTYPE_p_Transactions__Handle.getCPtr(obj)); + } + + public static void Transactions__Handlep_assign(SWIGTYPE_p_Transactions__Handle obj, SWIGTYPE_p_Transactions__Handle value) { + skycoinPINVOKE.Transactions__Handlep_assign(SWIGTYPE_p_Transactions__Handle.getCPtr(obj), SWIGTYPE_p_Transactions__Handle.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + + public static SWIGTYPE_p_Transactions__Handle Transactions__Handlep_value(SWIGTYPE_p_Transactions__Handle obj) { + SWIGTYPE_p_Transactions__Handle ret = new SWIGTYPE_p_Transactions__Handle(skycoinPINVOKE.Transactions__Handlep_value(SWIGTYPE_p_Transactions__Handle.getCPtr(obj)), true); + return ret; + } + public static uint SKY_cipher_SumSHA256(GoSlice seed, cipher_SHA256 sha) { uint ret = skycoinPINVOKE.SKY_cipher_SumSHA256__SWIG_0(GoSlice.getCPtr(seed), cipher_SHA256.getCPtr(sha)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); @@ -183,6 +516,7 @@ public static uint SKY_coin_NewBlock(SWIGTYPE_p_Block__Handle p0, ulong p1, ciph var tmpp2 = cipher_SecKey.getCPtr (p2); { uint ret = skycoinPINVOKE.SKY_coin_NewBlock(SWIGTYPE_p_Block__Handle.getCPtr(p0), p1, tmpp2, SWIGTYPE_p_Transactions__Handle.getCPtr(p3), SWIGTYPE_p_FeeCalculator.getCPtr(p4), SWIGTYPE_p_Block__Handle.getCPtr(p5)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -204,6 +538,7 @@ public static uint SKY_coin_Block_HashHeader(SWIGTYPE_p_Block__Handle p0, cipher var tmpp1 = cipher_SecKey.getCPtr (p1); { uint ret = skycoinPINVOKE.SKY_coin_Block_HashHeader(SWIGTYPE_p_Block__Handle.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -212,17 +547,20 @@ public static uint SKY_coin_Block_PreHashHeader(SWIGTYPE_p_Block__Handle p0, cip var tmpp1 = cipher_SecKey.getCPtr (p1); { uint ret = skycoinPINVOKE.SKY_coin_Block_PreHashHeader(SWIGTYPE_p_Block__Handle.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } public static uint SKY_coin_Block_Time(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_unsigned_long_long p1) { uint ret = skycoinPINVOKE.SKY_coin_Block_Time(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Block_Seq(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_unsigned_long_long p1) { uint ret = skycoinPINVOKE.SKY_coin_Block_Seq(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -230,12 +568,14 @@ public static uint SKY_coin_Block_HashBody(SWIGTYPE_p_Block__Handle p0, cipher_S var tmpp1 = cipher_SecKey.getCPtr (p1); { uint ret = skycoinPINVOKE.SKY_coin_Block_HashBody(SWIGTYPE_p_Block__Handle.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } public static uint SKY_coin_Block_Size(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_long_long p1) { uint ret = skycoinPINVOKE.SKY_coin_Block_Size(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -243,6 +583,7 @@ public static uint SKY_coin_Block_String(SWIGTYPE_p_Block__Handle p0, _GoString_ var tmpp1 = _GoString_.getCPtr (p1); { uint ret = skycoinPINVOKE.SKY_coin_Block_String(SWIGTYPE_p_Block__Handle.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -251,6 +592,7 @@ public static uint SKY_coin_Block_GetTransaction(SWIGTYPE_p_Block__Handle p0, ci var tmpp1 = cipher_SecKey.getCPtr (p1); { uint ret = skycoinPINVOKE.SKY_coin_Block_GetTransaction(SWIGTYPE_p_Block__Handle.getCPtr(p0), tmpp1, SWIGTYPE_p_Transaction__Handle.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -259,6 +601,7 @@ public static uint SKY_coin_NewBlockHeader(coin__BlockHeader p0, cipher_SecKey p var tmpp1 = cipher_SecKey.getCPtr (p1); { uint ret = skycoinPINVOKE.SKY_coin_NewBlockHeader(coin__BlockHeader.getCPtr(p0), tmpp1, p2, p3, SWIGTYPE_p_BlockBody__Handle.getCPtr(p4), coin__BlockHeader.getCPtr(p5)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -288,6 +631,7 @@ public static uint SKY_coin_BlockBody_Hash(SWIGTYPE_p_BlockBody__Handle p0, ciph var tmpp1 = cipher_SecKey.getCPtr (p1); { uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Hash(SWIGTYPE_p_BlockBody__Handle.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -299,31 +643,37 @@ public static uint SKY_coin_BlockBody_Size(SWIGTYPE_p_BlockBody__Handle p0, SWIG public static uint SKY_coin_BlockBody_Bytes(SWIGTYPE_p_BlockBody__Handle p0, GoSlice p1) { uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Bytes(SWIGTYPE_p_BlockBody__Handle.getCPtr(p0), GoSlice.getCPtr (p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_CreateUnspents(coin__BlockHeader p0, SWIGTYPE_p_Transaction__Handle p1, GoSlice p2) { uint ret = skycoinPINVOKE.SKY_coin_CreateUnspents(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), GoSlice.getCPtr (p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_CreateUnspent(coin__BlockHeader p0, SWIGTYPE_p_Transaction__Handle p1, long p2, coin__UxOut p3) { uint ret = skycoinPINVOKE.SKY_coin_CreateUnspent(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), p2, coin__UxOut.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_GetBlockObject(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_p_coin__Block p1) { uint ret = skycoinPINVOKE.SKY_coin_GetBlockObject(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_p_coin__Block.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_GetBlockBody(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_BlockBody__Handle p1) { uint ret = skycoinPINVOKE.SKY_coin_GetBlockBody(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_BlockBody__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_NewEmptyBlock(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_Block__Handle p1) { uint ret = skycoinPINVOKE.SKY_coin_NewEmptyBlock(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_Block__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -377,17 +727,20 @@ public static uint SKY_api_Client_CSRF(SWIGTYPE_p_Client__Handle p0, _GoString_ var tmpp1 = _GoString_.getCPtr (p1); { uint ret = skycoinPINVOKE.SKY_api_Client_CSRF(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } public static uint SKY_api_Client_Version(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { uint ret = skycoinPINVOKE.SKY_api_Client_Version(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_api_Client_Outputs(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { uint ret = skycoinPINVOKE.SKY_api_Client_Outputs(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -405,6 +758,7 @@ public static uint SKY_api_Client_OutputsForHashes(SWIGTYPE_p_Client__Handle p0, public static uint SKY_api_Client_CoinSupply(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { uint ret = skycoinPINVOKE.SKY_api_Client_CoinSupply(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -412,32 +766,38 @@ public static uint SKY_api_Client_BlockByHash(SWIGTYPE_p_Client__Handle p0, stri var tmpp1 = p1; { uint ret = skycoinPINVOKE.SKY_api_Client_BlockByHash(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1, SWIGTYPE_p_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } public static uint SKY_api_Client_BlockBySeq(SWIGTYPE_p_Client__Handle p0, ulong p1, SWIGTYPE_p_Handle p2) { uint ret = skycoinPINVOKE.SKY_api_Client_BlockBySeq(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1, SWIGTYPE_p_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_api_Client_Blocks(SWIGTYPE_p_Client__Handle p0, ulong p1, ulong p2, SWIGTYPE_p_Handle p3) { uint ret = skycoinPINVOKE.SKY_api_Client_Blocks(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1, p2, SWIGTYPE_p_Handle.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_api_Client_LastBlocks(SWIGTYPE_p_Client__Handle p0, ulong p1, SWIGTYPE_p_Handle p2) { uint ret = skycoinPINVOKE.SKY_api_Client_LastBlocks(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1, SWIGTYPE_p_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_api_Client_BlockchainMetadata(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { uint ret = skycoinPINVOKE.SKY_api_Client_BlockchainMetadata(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_api_Client_BlockchainProgress(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { uint ret = skycoinPINVOKE.SKY_api_Client_BlockchainProgress(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -451,6 +811,7 @@ public static uint SKY_api_Client_UxOut(SWIGTYPE_p_Client__Handle p0, string p1, var tmpp1 = p1; { uint ret = skycoinPINVOKE.SKY_api_Client_UxOut(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1, SWIGTYPE_p_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -459,6 +820,7 @@ public static uint SKY_api_Client_AddressUxOuts(SWIGTYPE_p_Client__Handle p0, st var tmpp1 = p1; { uint ret = skycoinPINVOKE.SKY_api_Client_AddressUxOuts(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1, SWIGTYPE_p_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -467,12 +829,14 @@ public static uint SKY_api_Client_Wallet(SWIGTYPE_p_Client__Handle p0, string p1 var tmpp1 = p1; { uint ret = skycoinPINVOKE.SKY_api_Client_Wallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1, SWIGTYPE_p_WalletResponse__Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } public static uint SKY_api_Client_Wallets(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Wallets__Handle p1) { uint ret = skycoinPINVOKE.SKY_api_Client_Wallets(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Wallets__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -481,6 +845,7 @@ public static uint SKY_api_Client_CreateUnencryptedWallet(SWIGTYPE_p_Client__Han var tmpp2 = p2; { uint ret = skycoinPINVOKE.SKY_api_Client_CreateUnencryptedWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1, tmpp2, p3, SWIGTYPE_p_WalletResponse__Handle.getCPtr(p4)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -491,6 +856,7 @@ public static uint SKY_api_Client_CreateEncryptedWallet(SWIGTYPE_p_Client__Handl var tmpp3 = p3; { uint ret = skycoinPINVOKE.SKY_api_Client_CreateEncryptedWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1, tmpp2, tmpp3, p4, SWIGTYPE_p_WalletResponse__Handle.getCPtr(p5)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -500,6 +866,7 @@ public static uint SKY_api_Client_NewWalletAddress(SWIGTYPE_p_Client__Handle p0, var tmpp3 = p3; { uint ret = skycoinPINVOKE.SKY_api_Client_NewWalletAddress(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1, p2, tmpp3, SWIGTYPE_p_Strings__Handle.getCPtr(p4)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -508,6 +875,7 @@ public static uint SKY_api_Client_WalletBalance(SWIGTYPE_p_Client__Handle p0, st var tmpp1 = p1; { uint ret = skycoinPINVOKE.SKY_api_Client_WalletBalance(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1, wallet__BalancePair.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -518,12 +886,14 @@ public static uint SKY_api_Client_Spend(SWIGTYPE_p_Client__Handle p0, string p1, var tmpp4 = p4; { uint ret = skycoinPINVOKE.SKY_api_Client_Spend(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1, tmpp2, p3, tmpp4, SWIGTYPE_p_SpendResult_Handle.getCPtr(p5)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } public static uint SKY_api_Client_CreateTransaction(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1, SWIGTYPE_p_CreateTransactionResponse__Handle p2) { uint ret = skycoinPINVOKE.SKY_api_Client_CreateTransaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1), SWIGTYPE_p_CreateTransactionResponse__Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -532,12 +902,14 @@ public static uint SKY_api_Client_UpdateWallet(SWIGTYPE_p_Client__Handle p0, str var tmpp2 = p2; { uint ret = skycoinPINVOKE.SKY_api_Client_UpdateWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1, tmpp2); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } public static uint SKY_api_Client_WalletFolderName(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { uint ret = skycoinPINVOKE.SKY_api_Client_WalletFolderName(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -545,6 +917,7 @@ public static uint SKY_api_Client_NewSeed(SWIGTYPE_p_Client__Handle p0, long p1, var tmpp2 = _GoString_.getCPtr (p2); { uint ret = skycoinPINVOKE.SKY_api_Client_NewSeed(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1, tmpp2); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -555,6 +928,7 @@ public static uint SKY_api_Client_GetWalletSeed(SWIGTYPE_p_Client__Handle p0, st var tmpp3 = _GoString_.getCPtr (p3); { uint ret = skycoinPINVOKE.SKY_api_Client_GetWalletSeed(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1, tmpp2, tmpp3); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -563,32 +937,38 @@ public static uint SKY_api_Client_NetworkConnection(SWIGTYPE_p_Client__Handle p0 var tmpp1 = p1; { uint ret = skycoinPINVOKE.SKY_api_Client_NetworkConnection(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1, SWIGTYPE_p_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } public static uint SKY_api_Client_NetworkConnections(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { uint ret = skycoinPINVOKE.SKY_api_Client_NetworkConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_api_Client_NetworkDefaultConnections(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { uint ret = skycoinPINVOKE.SKY_api_Client_NetworkDefaultConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_api_Client_NetworkTrustedConnections(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { uint ret = skycoinPINVOKE.SKY_api_Client_NetworkTrustedConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_api_Client_NetworkExchangeableConnections(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { uint ret = skycoinPINVOKE.SKY_api_Client_NetworkExchangeableConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_api_Client_PendingTransactions(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { uint ret = skycoinPINVOKE.SKY_api_Client_PendingTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -596,6 +976,7 @@ public static uint SKY_api_Client_Transaction(SWIGTYPE_p_Client__Handle p0, stri var tmpp1 = p1; { uint ret = skycoinPINVOKE.SKY_api_Client_Transaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1, SWIGTYPE_p_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -622,12 +1003,14 @@ public static uint SKY_api_Client_InjectTransaction(SWIGTYPE_p_Client__Handle p0 var tmpp2 = _GoString_.getCPtr (p2); { uint ret = skycoinPINVOKE.SKY_api_Client_InjectTransaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), tmpp2); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } public static uint SKY_api_Client_ResendUnconfirmedTransactions(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { uint ret = skycoinPINVOKE.SKY_api_Client_ResendUnconfirmedTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -636,6 +1019,7 @@ public static uint SKY_api_Client_RawTransaction(SWIGTYPE_p_Client__Handle p0, s var tmpp2 = _GoString_.getCPtr (p2); { uint ret = skycoinPINVOKE.SKY_api_Client_RawTransaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1, tmpp2); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -644,17 +1028,20 @@ public static uint SKY_api_Client_AddressTransactions(SWIGTYPE_p_Client__Handle var tmpp1 = p1; { uint ret = skycoinPINVOKE.SKY_api_Client_AddressTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1, SWIGTYPE_p_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } public static uint SKY_api_Client_Richlist(SWIGTYPE_p_Client__Handle p0, api__RichlistParams p1, SWIGTYPE_p_Handle p2) { uint ret = skycoinPINVOKE.SKY_api_Client_Richlist(SWIGTYPE_p_Client__Handle.getCPtr(p0), api__RichlistParams.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_api_Client_AddressCount(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_unsigned_long_long p1) { uint ret = skycoinPINVOKE.SKY_api_Client_AddressCount(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -662,12 +1049,14 @@ public static uint SKY_api_Client_UnloadWallet(SWIGTYPE_p_Client__Handle p0, str var tmpp1 = p1; { uint ret = skycoinPINVOKE.SKY_api_Client_UnloadWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } public static uint SKY_api_Client_Health(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { uint ret = skycoinPINVOKE.SKY_api_Client_Health(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -676,6 +1065,7 @@ public static uint SKY_api_Client_EncryptWallet(SWIGTYPE_p_Client__Handle p0, st var tmpp2 = p2; { uint ret = skycoinPINVOKE.SKY_api_Client_EncryptWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1, tmpp2, SWIGTYPE_p_WalletResponse__Handle.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -685,6 +1075,7 @@ public static uint SKY_api_Client_DecryptWallet(SWIGTYPE_p_Client__Handle p0, st var tmpp2 = p2; { uint ret = skycoinPINVOKE.SKY_api_Client_DecryptWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1, tmpp2, SWIGTYPE_p_WalletResponse__Handle.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -750,6 +1141,7 @@ public static uint SKY_secp256k1go_XY_GetPublicKey(secp256k1go__XY p0, GoSlice p public static uint SKY_api_NewWalletResponse(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_WalletResponse__Handle p1) { uint ret = skycoinPINVOKE.SKY_api_NewWalletResponse(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -767,6 +1159,7 @@ public static uint SKY_api_NewCreatedTransaction(SWIGTYPE_p_Transaction__Handle public static uint SKY_api_CreatedTransaction_ToTransaction(SWIGTYPE_p_CreatedTransaction__Handle p0, SWIGTYPE_p_Transaction__Handle p1) { uint ret = skycoinPINVOKE.SKY_api_CreatedTransaction_ToTransaction(SWIGTYPE_p_CreatedTransaction__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -793,6 +1186,7 @@ public static uint SKY_wallet_NewWallet(string p0, SWIGTYPE_p_Options__Handle p1 var tmpp0 = p0; { uint ret = skycoinPINVOKE.SKY_wallet_NewWallet(tmpp0, SWIGTYPE_p_Options__Handle.getCPtr(p1), SWIGTYPE_p_Wallet__Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -824,12 +1218,14 @@ public static uint SKY_wallet_Wallet_Save(SWIGTYPE_p_Wallet__Handle p0, string p var tmpp1 = p1; { uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Save(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } public static uint SKY_wallet_Wallet_Validate(SWIGTYPE_p_Wallet__Handle p0) { uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Validate(SWIGTYPE_p_Wallet__Handle.getCPtr(p0)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -837,6 +1233,7 @@ public static uint SKY_wallet_Wallet_Type(SWIGTYPE_p_Wallet__Handle p0, _GoStrin var tmpp1 = _GoString_.getCPtr (p1); { uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Type(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -845,6 +1242,7 @@ public static uint SKY_wallet_Wallet_Version(SWIGTYPE_p_Wallet__Handle p0, _GoSt var tmpp1 = _GoString_.getCPtr (p1); { uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Version(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -853,6 +1251,7 @@ public static uint SKY_wallet_Wallet_Filename(SWIGTYPE_p_Wallet__Handle p0, _GoS var tmpp1 = _GoString_.getCPtr (p1); { uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Filename(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -861,32 +1260,38 @@ public static uint SKY_wallet_Wallet_Label(SWIGTYPE_p_Wallet__Handle p0, _GoStri var tmpp1 = _GoString_.getCPtr (p1); { uint ret = skycoinPINVOKE.SKY_wallet_Wallet_Label(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } public static uint SKY_wallet_Wallet_IsEncrypted(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_unsigned_char p1) { uint ret = skycoinPINVOKE.SKY_wallet_Wallet_IsEncrypted(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_wallet_Wallet_GenerateAddresses(SWIGTYPE_p_Wallet__Handle p0, ulong p1, GoSlice p2) { uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GenerateAddresses(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), p1, GoSlice.getCPtr (p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_wallet_Wallet_GetAddresses(SWIGTYPE_p_Wallet__Handle p0, GoSlice p1) { uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GetAddresses(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), GoSlice.getCPtr (p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_wallet_Wallet_GetEntry(SWIGTYPE_p_Wallet__Handle p0, cipher__Address p1, wallet__Entry p2, SWIGTYPE_p_unsigned_char p3) { uint ret = skycoinPINVOKE.SKY_wallet_Wallet_GetEntry(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), cipher__Address.getCPtr(p1), wallet__Entry.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_wallet_Wallet_AddEntry(SWIGTYPE_p_Wallet__Handle p0, wallet__Entry p1) { uint ret = skycoinPINVOKE.SKY_wallet_Wallet_AddEntry(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), wallet__Entry.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -927,6 +1332,7 @@ public static uint SKY_cli_CheckWalletBalance(SWIGTYPE_p_WebRpcClient__Handle p0 var tmpp1 = p1; { uint ret = skycoinPINVOKE.SKY_cli_CheckWalletBalance(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), tmpp1, SWIGTYPE_p_BalanceResult_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -962,6 +1368,7 @@ public static uint SKY_wallet_ReadableEntry_Save(SWIGTYPE_p_ReadableEntry__Handl var tmpp1 = p1; { uint ret = skycoinPINVOKE.SKY_wallet_ReadableEntry_Save(SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -978,6 +1385,7 @@ public static uint SKY_wallet_ReadableWallet_Save(SWIGTYPE_p_ReadableWallet__Han var tmpp1 = p1; { uint ret = skycoinPINVOKE.SKY_wallet_ReadableWallet_Save(SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -986,12 +1394,14 @@ public static uint SKY_wallet_ReadableWallet_Load(SWIGTYPE_p_ReadableWallet__Han var tmpp1 = p1; { uint ret = skycoinPINVOKE.SKY_wallet_ReadableWallet_Load(SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } public static uint SKY_wallet_ReadableWallet_Erase(SWIGTYPE_p_ReadableWallet__Handle p0) { uint ret = skycoinPINVOKE.SKY_wallet_ReadableWallet_Erase(SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p0)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -1154,6 +1564,7 @@ public static uint SKY_webrpc_Client_CSRF(SWIGTYPE_p_WebRpcClient__Handle p0, _G var tmpp1 = _GoString_.getCPtr (p1); { uint ret = skycoinPINVOKE.SKY_webrpc_Client_CSRF(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -1162,12 +1573,14 @@ public static uint SKY_webrpc_Client_InjectTransaction(SWIGTYPE_p_WebRpcClient__ var tmpp2 = _GoString_.getCPtr (p2); { uint ret = skycoinPINVOKE.SKY_webrpc_Client_InjectTransaction(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), tmpp2); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } public static uint SKY_webrpc_Client_GetStatus(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_StatusResult_Handle p1) { uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetStatus(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_StatusResult_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -1175,6 +1588,7 @@ public static uint SKY_webrpc_Client_GetTransactionByID(SWIGTYPE_p_WebRpcClient_ var tmpp1 = p1; { uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetTransactionByID(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), tmpp1, SWIGTYPE_p_TransactionResult_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -1187,6 +1601,7 @@ public static uint SKY_webrpc_Client_GetAddressUxOuts(SWIGTYPE_p_WebRpcClient__H public static uint SKY_webrpc_Client_GetBlocks(SWIGTYPE_p_WebRpcClient__Handle p0, ulong p1, ulong p2, GoSlice p3) { uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetBlocks(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), p1, p2, GoSlice.getCPtr (p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -1198,6 +1613,7 @@ public static uint SKY_webrpc_Client_GetBlocksBySeq(SWIGTYPE_p_WebRpcClient__Han public static uint SKY_webrpc_Client_GetLastBlocks(SWIGTYPE_p_WebRpcClient__Handle p0, ulong p1, GoSlice p2) { uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetLastBlocks(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), p1, GoSlice.getCPtr (p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -1564,11 +1980,13 @@ public static uint SKY_secp256k1go_Signature_Create(SWIGTYPE_p_Signature_Handle public static uint SKY_secp256k1go_Signature_GetR(SWIGTYPE_p_Signature_Handle p0, SWIGTYPE_p_Number_Handle p1) { uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_GetR(SWIGTYPE_p_Signature_Handle.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_secp256k1go_Signature_GetS(SWIGTYPE_p_Signature_Handle p0, SWIGTYPE_p_Number_Handle p1) { uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_GetS(SWIGTYPE_p_Signature_Handle.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -1576,22 +1994,26 @@ public static uint SKY_secp256k1go_Signature_Print(SWIGTYPE_p_Signature_Handle p var tmpp1 = p1; { uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Print(SWIGTYPE_p_Signature_Handle.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } public static uint SKY_secp256k1go_Signature_Verify(SWIGTYPE_p_Signature_Handle p0, secp256k1go__XY p1, SWIGTYPE_p_Number_Handle p2, SWIGTYPE_p_unsigned_char p3) { uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Verify(SWIGTYPE_p_Signature_Handle.getCPtr(p0), secp256k1go__XY.getCPtr(p1), SWIGTYPE_p_Number_Handle.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_secp256k1go_Signature_Recover(SWIGTYPE_p_Signature_Handle p0, secp256k1go__XY p1, SWIGTYPE_p_Number_Handle p2, long p3, SWIGTYPE_p_unsigned_char p4) { uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Recover(SWIGTYPE_p_Signature_Handle.getCPtr(p0), secp256k1go__XY.getCPtr(p1), SWIGTYPE_p_Number_Handle.getCPtr(p2), p3, SWIGTYPE_p_unsigned_char.getCPtr(p4)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_secp256k1go_Signature_Sign(SWIGTYPE_p_Signature_Handle p0, SWIGTYPE_p_Number_Handle p1, SWIGTYPE_p_Number_Handle p2, SWIGTYPE_p_Number_Handle p3, SWIGTYPE_p_long_long p4, SWIGTYPE_p_long_long p5) { uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Sign(SWIGTYPE_p_Signature_Handle.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1), SWIGTYPE_p_Number_Handle.getCPtr(p2), SWIGTYPE_p_Number_Handle.getCPtr(p3), SWIGTYPE_p_long_long.getCPtr(p4), SWIGTYPE_p_long_long.getCPtr(p5)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -1603,6 +2025,7 @@ public static uint SKY_secp256k1go_Signature_ParseBytes(SWIGTYPE_p_Signature_Han public static uint SKY_secp256k1go_Signature_Bytes(SWIGTYPE_p_Signature_Handle p0, GoSlice p1) { uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Bytes(SWIGTYPE_p_Signature_Handle.getCPtr(p0), GoSlice.getCPtr (p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -1610,6 +2033,7 @@ public static uint SKY_cli_App_Run(SWIGTYPE_p_App__Handle p0, string p1) { var tmpp1 = p1; { uint ret = skycoinPINVOKE.SKY_cli_App_Run(SWIGTYPE_p_App__Handle.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -1618,6 +2042,7 @@ public static uint SKY_cli_Config_GetCoin(SWIGTYPE_p_Config__Handle p0, _GoStrin var tmpp1 = _GoString_.getCPtr (p1); { uint ret = skycoinPINVOKE.SKY_cli_Config_GetCoin(SWIGTYPE_p_Config__Handle.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -1626,12 +2051,14 @@ public static uint SKY_cli_Config_GetRPCAddress(SWIGTYPE_p_Config__Handle p0, _G var tmpp1 = _GoString_.getCPtr (p1); { uint ret = skycoinPINVOKE.SKY_cli_Config_GetRPCAddress(SWIGTYPE_p_Config__Handle.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } public static uint SKY_cli_RPCClientFromApp(SWIGTYPE_p_App__Handle p0, SWIGTYPE_p_WebRpcClient__Handle p1) { uint ret = skycoinPINVOKE.SKY_cli_RPCClientFromApp(SWIGTYPE_p_App__Handle.getCPtr(p0), SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -1804,6 +2231,7 @@ public static uint SKY_secp256k1go_XYZ_Equals(secp256k1go__XYZ p0, secp256k1go__ public static uint SKY_secp256k1go_XYZ_ECmult(secp256k1go__XYZ p0, secp256k1go__XYZ p1, SWIGTYPE_p_Number_Handle p2, SWIGTYPE_p_Number_Handle p3) { uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_ECmult(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1), SWIGTYPE_p_Number_Handle.getCPtr(p2), SWIGTYPE_p_Number_Handle.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -1829,6 +2257,7 @@ public static uint SKY_secp256k1go_XYZ_Add(secp256k1go__XYZ p0, secp256k1go__XYZ public static uint SKY_secp256k1go_ECmultGen(secp256k1go__XYZ p0, SWIGTYPE_p_Number_Handle p1) { uint ret = skycoinPINVOKE.SKY_secp256k1go_ECmultGen(secp256k1go__XYZ.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -1869,10 +2298,6 @@ public static uint SKY_wallet_CryptoTypeFromString(string p0, _GoString_ p1) { } } - public static void SKY_handle_close(SWIGTYPE_p_Handle p0) { - skycoinPINVOKE.SKY_handle_close(SWIGTYPE_p_Handle.getCPtr(p0)); - } - public static uint SKY_handle_copy(SWIGTYPE_p_Handle p0, SWIGTYPE_p_Handle p1) { uint ret = skycoinPINVOKE.SKY_handle_copy(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); return ret; @@ -2086,11 +2511,13 @@ public static uint SKY_Handle_Connections_GetCount(SWIGTYPE_p_Handle p0, SWIGTYP public static uint SKY_Handle_Strings_GetCount(SWIGTYPE_p_Strings__Handle p0, SWIGTYPE_p_unsigned_int p1) { uint ret = skycoinPINVOKE.SKY_Handle_Strings_GetCount(SWIGTYPE_p_Strings__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_Handle_Strings_Sort(SWIGTYPE_p_Strings__Handle p0) { uint ret = skycoinPINVOKE.SKY_Handle_Strings_Sort(SWIGTYPE_p_Strings__Handle.getCPtr(p0)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -2098,6 +2525,7 @@ public static uint SKY_Handle_Strings_GetAt(SWIGTYPE_p_Strings__Handle p0, long var tmpp2 = _GoString_.getCPtr (p2); { uint ret = skycoinPINVOKE.SKY_Handle_Strings_GetAt(SWIGTYPE_p_Strings__Handle.getCPtr(p0), p1, tmpp2); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -2106,6 +2534,7 @@ public static uint SKY_api_Handle_Client_GetWalletDir(SWIGTYPE_p_Client__Handle var tmpp1 = _GoString_.getCPtr (p1); { uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletDir(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -2114,6 +2543,7 @@ public static uint SKY_api_Handle_Client_GetWalletFileName(SWIGTYPE_p_WalletResp var tmpp1 = _GoString_.getCPtr (p1); { uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletFileName(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -2122,6 +2552,7 @@ public static uint SKY_api_Handle_Client_GetWalletLabel(SWIGTYPE_p_WalletRespons var tmpp1 = _GoString_.getCPtr (p1); { uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletLabel(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -2130,22 +2561,26 @@ public static uint SKY_api_Handle_Client_GetWalletFullPath(SWIGTYPE_p_Client__Ha var tmpp2 = _GoString_.getCPtr (p2); { uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletFullPath(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p1), tmpp2); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } public static uint SKY_api_Handle_GetWalletMeta(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoStringMap_ p1) { uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletMeta(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoStringMap_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_api_Handle_GetWalletEntriesCount(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_unsigned_int p1) { uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletEntriesCount(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_api_Handle_Client_GetWalletResponseEntriesCount(SWIGTYPE_p_WalletResponse__Handle p0, SWIGTYPE_p_unsigned_int p1) { uint ret = skycoinPINVOKE.SKY_api_Handle_Client_GetWalletResponseEntriesCount(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -2153,6 +2588,7 @@ public static uint SKY_api_Handle_WalletGetEntry(SWIGTYPE_p_Wallet__Handle p0, u var tmpp3 = cipher_PubKey.getCPtr (p3); { uint ret = skycoinPINVOKE.SKY_api_Handle_WalletGetEntry(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), p1, cipher__Address.getCPtr(p2), tmpp3); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -2162,12 +2598,14 @@ public static uint SKY_api_Handle_WalletResponseGetEntry(SWIGTYPE_p_WalletRespon var tmpp3 = _GoString_.getCPtr (p3); { uint ret = skycoinPINVOKE.SKY_api_Handle_WalletResponseGetEntry(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), p1, tmpp2, tmpp3); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } public static uint SKY_api_Handle_WalletResponseIsEncrypted(SWIGTYPE_p_WalletResponse__Handle p0, SWIGTYPE_p_unsigned_char p1) { uint ret = skycoinPINVOKE.SKY_api_Handle_WalletResponseIsEncrypted(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -2175,17 +2613,20 @@ public static uint SKY_api_Handle_WalletResponseGetCryptoType(SWIGTYPE_p_WalletR var tmpp1 = _GoString_.getCPtr (p1); { uint ret = skycoinPINVOKE.SKY_api_Handle_WalletResponseGetCryptoType(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } public static uint SKY_api_Handle_WalletsResponseGetCount(SWIGTYPE_p_Wallets__Handle p0, SWIGTYPE_p_unsigned_int p1) { uint ret = skycoinPINVOKE.SKY_api_Handle_WalletsResponseGetCount(SWIGTYPE_p_Wallets__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_api_Handle_WalletsResponseGetAt(SWIGTYPE_p_Wallets__Handle p0, uint p1, SWIGTYPE_p_WalletResponse__Handle p2) { uint ret = skycoinPINVOKE.SKY_api_Handle_WalletsResponseGetAt(SWIGTYPE_p_Wallets__Handle.getCPtr(p0), p1, SWIGTYPE_p_WalletResponse__Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -2201,6 +2642,7 @@ public static uint SKY_api_Handle_GetWalletSeed(SWIGTYPE_p_Wallet__Handle p0, _G var tmpp1 = _GoString_.getCPtr (p1); { uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletSeed(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -2209,6 +2651,7 @@ public static uint SKY_api_Handle_GetWalletLastSeed(SWIGTYPE_p_Wallet__Handle p0 var tmpp1 = _GoString_.getCPtr (p1); { uint ret = skycoinPINVOKE.SKY_api_Handle_GetWalletLastSeed(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -2219,6 +2662,7 @@ public static uint SKY_api_Handle_GetBuildInfoData(SWIGTYPE_p_BuildInfo_Handle p var tmpp3 = _GoString_.getCPtr (p3); { uint ret = skycoinPINVOKE.SKY_api_Handle_GetBuildInfoData(SWIGTYPE_p_BuildInfo_Handle.getCPtr(p0), tmpp1, tmpp2, tmpp3); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -2249,6 +2693,7 @@ public static uint SKY_secp256k1go_Number_Print(SWIGTYPE_p_Number_Handle p0, str var tmpp1 = p1; { uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_Print(SWIGTYPE_p_Number_Handle.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -2257,17 +2702,20 @@ public static uint SKY_secp256k1go_Number_SetHex(SWIGTYPE_p_Number_Handle p0, st var tmpp1 = p1; { uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_SetHex(SWIGTYPE_p_Number_Handle.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } public static uint SKY_secp256k1go_Number_IsOdd(SWIGTYPE_p_Number_Handle p0, SWIGTYPE_p_unsigned_char p1) { uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_IsOdd(SWIGTYPE_p_Number_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_secp256k1go_Number_IsEqual(SWIGTYPE_p_Number_Handle p0, SWIGTYPE_p_Number_Handle p1, SWIGTYPE_p_unsigned_char p2) { uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_IsEqual(SWIGTYPE_p_Number_Handle.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -2437,6 +2885,7 @@ public static uint SKY_cli_AddPrivateKey(SWIGTYPE_p_Wallet__Handle p0, string p1 var tmpp1 = p1; { uint ret = skycoinPINVOKE.SKY_cli_AddPrivateKey(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -2577,6 +3026,7 @@ public static uint SKY_cert_CreateCertIfNotExists(string p0, string p1, string p public static uint SKY_fee_VerifyTransactionFee(SWIGTYPE_p_Transaction__Handle p0, ulong p1) { uint ret = skycoinPINVOKE.SKY_fee_VerifyTransactionFee(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -2597,6 +3047,7 @@ public static uint SKY_fee_RemainingHours(ulong p0, SWIGTYPE_p_unsigned_long_lon public static uint SKY_fee_TransactionFee(SWIGTYPE_p_Transaction__Handle p0, ulong p1, GoSlice p2, SWIGTYPE_p_unsigned_long_long p3) { uint ret = skycoinPINVOKE.SKY_fee_TransactionFee(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, GoSlice.getCPtr (p2), SWIGTYPE_p_unsigned_long_long.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -2609,6 +3060,7 @@ public static uint SKY_cli_Config_FullWalletPath(SWIGTYPE_p_Config__Handle p0, _ var tmpp1 = _GoString_.getCPtr (p1); { uint ret = skycoinPINVOKE.SKY_cli_Config_FullWalletPath(SWIGTYPE_p_Config__Handle.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -2617,22 +3069,26 @@ public static uint SKY_cli_Config_FullDBPath(SWIGTYPE_p_Config__Handle p0, _GoSt var tmpp1 = _GoString_.getCPtr (p1); { uint ret = skycoinPINVOKE.SKY_cli_Config_FullDBPath(SWIGTYPE_p_Config__Handle.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } public static uint SKY_cli_NewApp(SWIGTYPE_p_Config__Handle p0, SWIGTYPE_p_App__Handle p1) { uint ret = skycoinPINVOKE.SKY_cli_NewApp(SWIGTYPE_p_Config__Handle.getCPtr(p0), SWIGTYPE_p_App__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_cli_RPCClientFromContext(SWIGTYPE_p_Context__Handle p0, SWIGTYPE_p_WebRpcClient__Handle p1) { uint ret = skycoinPINVOKE.SKY_cli_RPCClientFromContext(SWIGTYPE_p_Context__Handle.getCPtr(p0), SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_cli_ConfigFromContext(SWIGTYPE_p_Context__Handle p0, SWIGTYPE_p_Config__Handle p1) { uint ret = skycoinPINVOKE.SKY_cli_ConfigFromContext(SWIGTYPE_p_Context__Handle.getCPtr(p0), SWIGTYPE_p_Config__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -2723,12 +3179,14 @@ public static uint SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_WebRpcClient__Han var tmpp1 = p1; { uint ret = skycoinPINVOKE.SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), tmpp1, SWIGTYPE_p_ReadableOutputSet_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } public static uint SKY_cli_GetWalletOutputs(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_Wallet__Handle p1, SWIGTYPE_p_UnspentOutputsSummary_Handle p2) { uint ret = skycoinPINVOKE.SKY_cli_GetWalletOutputs(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_Wallet__Handle.getCPtr(p1), SWIGTYPE_p_UnspentOutputsSummary_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -2956,21 +3414,25 @@ public static uint SKY_coin_Create_Transaction(SWIGTYPE_p_Transaction__Handle p0 public static uint SKY_coin_Transaction_Copy(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_Transaction__Handle p1) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_Copy(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_GetTransactionObject(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_p_coin__Transaction p1) { uint ret = skycoinPINVOKE.SKY_coin_GetTransactionObject(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_p_coin__Transaction.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transaction_ResetInputs(SWIGTYPE_p_Transaction__Handle p0, long p1) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_ResetInputs(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transaction_GetInputsCount(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetInputsCount(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -2978,6 +3440,7 @@ public static uint SKY_coin_Transaction_GetInputAt(SWIGTYPE_p_Transaction__Handl var tmpp2 = cipher_SecKey.getCPtr (p2); { uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetInputAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, tmpp2); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -2986,27 +3449,32 @@ public static uint SKY_coin_Transaction_SetInputAt(SWIGTYPE_p_Transaction__Handl var tmpp2 = cipher_SecKey.getCPtr (p2); { uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetInputAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, tmpp2); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } public static uint SKY_coin_Transaction_GetOutputsCount(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetOutputsCount(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transaction_GetOutputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, coin__TransactionOutput p2) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetOutputAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, coin__TransactionOutput.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transaction_SetOutputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, coin__TransactionOutput p2) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetOutputAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, coin__TransactionOutput.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transaction_GetSignaturesCount(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetSignaturesCount(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -3014,6 +3482,7 @@ public static uint SKY_coin_Transaction_GetSignatureAt(SWIGTYPE_p_Transaction__H var tmpp2 = cipher_Sig.getCPtr (p2); { uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetSignatureAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, tmpp2); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -3022,6 +3491,7 @@ public static uint SKY_coin_Transaction_SetSignatureAt(SWIGTYPE_p_Transaction__H var tmpp2 = cipher_Sig.getCPtr (p2); { uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetSignatureAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, tmpp2); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -3030,27 +3500,32 @@ public static uint SKY_coin_Transaction_PushSignature(SWIGTYPE_p_Transaction__Ha var tmpp1 = cipher_Sig.getCPtr (p1); { uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushSignature(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } public static uint SKY_coin_Transaction_ResetOutputs(SWIGTYPE_p_Transaction__Handle p0, long p1) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_ResetOutputs(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transaction_ResetSignatures(SWIGTYPE_p_Transaction__Handle p0, long p1) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_ResetSignatures(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transaction_Verify(SWIGTYPE_p_Transaction__Handle p0) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_Verify(SWIGTYPE_p_Transaction__Handle.getCPtr(p0)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transaction_VerifyInput(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_VerifyInput(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr (p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -3058,6 +3533,7 @@ public static uint SKY_coin_Transaction_PushInput(SWIGTYPE_p_Transaction__Handle var tmpp1 = cipher_SecKey.getCPtr (p1); { uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushInput(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), tmpp1, SWIGTYPE_p_unsigned_short.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -3073,6 +3549,7 @@ public static uint SKY_coin_TransactionOutput_UxID(coin__TransactionOutput p0, c public static uint SKY_coin_Transaction_PushOutput(SWIGTYPE_p_Transaction__Handle p0, cipher__Address p1, ulong p2, ulong p3) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushOutput(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), cipher__Address.getCPtr(p1), p2, p3); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -3084,6 +3561,7 @@ public static uint SKY_coin_Transaction_SignInputs(SWIGTYPE_p_Transaction__Handl public static uint SKY_coin_Transaction_Size(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_Size(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -3091,6 +3569,7 @@ public static uint SKY_coin_Transaction_Hash(SWIGTYPE_p_Transaction__Handle p0, var tmpp1 = cipher_SecKey.getCPtr (p1); { uint ret = skycoinPINVOKE.SKY_coin_Transaction_Hash(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } @@ -3099,12 +3578,14 @@ public static uint SKY_coin_Transaction_SizeHash(SWIGTYPE_p_Transaction__Handle var tmpp2 = cipher_SecKey.getCPtr (p2); { uint ret = skycoinPINVOKE.SKY_coin_Transaction_SizeHash(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1), tmpp2); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } public static uint SKY_coin_Transaction_TxID(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_TxID(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr (p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -3112,12 +3593,14 @@ public static uint SKY_coin_Transaction_TxIDHex(SWIGTYPE_p_Transaction__Handle p var tmpp1 = _GoString_.getCPtr (p1); { uint ret = skycoinPINVOKE.SKY_coin_Transaction_TxIDHex(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } public static uint SKY_coin_Transaction_UpdateHeader(SWIGTYPE_p_Transaction__Handle p0) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_UpdateHeader(SWIGTYPE_p_Transaction__Handle.getCPtr(p0)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -3125,12 +3608,14 @@ public static uint SKY_coin_Transaction_HashInner(SWIGTYPE_p_Transaction__Handle var tmpp1 = cipher_SecKey.getCPtr (p1); { uint ret = skycoinPINVOKE.SKY_coin_Transaction_HashInner(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), tmpp1); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } public static uint SKY_coin_Transaction_Serialize(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_Serialize(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr (p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -3142,6 +3627,7 @@ public static uint SKY_coin_TransactionDeserialize(GoSlice p0, SWIGTYPE_p_Transa public static uint SKY_coin_Transaction_OutputHours(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_unsigned_long_long p1) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_OutputHours(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -3152,51 +3638,61 @@ public static uint SKY_coin_Create_Transactions(SWIGTYPE_p_Transactions__Handle public static uint SKY_coin_GetTransactionsObject(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_p_GoSlice_ p1) { uint ret = skycoinPINVOKE.SKY_coin_GetTransactionsObject(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_p_GoSlice_.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transactions_Length(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_long_long p1) { uint ret = skycoinPINVOKE.SKY_coin_Transactions_Length(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transactions_Add(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_Transaction__Handle p1) { uint ret = skycoinPINVOKE.SKY_coin_Transactions_Add(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transactions_Fees(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_FeeCalculator p1, SWIGTYPE_p_unsigned_long_long p2) { uint ret = skycoinPINVOKE.SKY_coin_Transactions_Fees(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1), SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transactions_GetAt(SWIGTYPE_p_Transactions__Handle p0, long p1, SWIGTYPE_p_Transaction__Handle p2) { uint ret = skycoinPINVOKE.SKY_coin_Transactions_GetAt(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), p1, SWIGTYPE_p_Transaction__Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transactions_Hashes(SWIGTYPE_p_Transactions__Handle p0, GoSlice p1) { uint ret = skycoinPINVOKE.SKY_coin_Transactions_Hashes(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), GoSlice.getCPtr (p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transactions_Size(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_long_long p1) { uint ret = skycoinPINVOKE.SKY_coin_Transactions_Size(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_Transactions_TruncateBytesTo(SWIGTYPE_p_Transactions__Handle p0, long p1, SWIGTYPE_p_Transactions__Handle p2) { uint ret = skycoinPINVOKE.SKY_coin_Transactions_TruncateBytesTo(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), p1, SWIGTYPE_p_Transactions__Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_SortTransactions(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_FeeCalculator p1, SWIGTYPE_p_Transactions__Handle p2) { uint ret = skycoinPINVOKE.SKY_coin_SortTransactions(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1), SWIGTYPE_p_Transactions__Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_NewSortableTransactions(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_FeeCalculator p1, SWIGTYPE_p_SortableTransactionResult_Handle p2) { uint ret = skycoinPINVOKE.SKY_coin_NewSortableTransactions(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1), SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p2)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index bfc07a5b..1683b4ab 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -248,12 +248,225 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_intp_value")] public static extern int intp_value(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_Transaction__Handlep")] + public static extern global::System.IntPtr new_Transaction__Handlep(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_Transaction__Handlep")] + public static extern global::System.IntPtr copy_Transaction__Handlep(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_Transaction__Handlep")] + public static extern void delete_Transaction__Handlep(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Transaction__Handlep_assign")] + public static extern void Transaction__Handlep_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Transaction__Handlep_value")] + public static extern global::System.IntPtr Transaction__Handlep_value(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_handle_close")] + public static extern void SKY_handle_close(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_MEMPOOLIDX")] + public static extern void set_MEMPOOLIDX(int jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_MEMPOOLIDX")] + public static extern int get_MEMPOOLIDX(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_MEMPOOL")] + public static extern void set_MEMPOOL(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_MEMPOOL")] + public static extern global::System.IntPtr get_MEMPOOL(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_JSONPOOLIDX")] + public static extern void set_JSONPOOLIDX(int jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_JSONPOOLIDX")] + public static extern int get_JSONPOOLIDX(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_JSON_POOL")] + public static extern void set_JSON_POOL(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_JSON_POOL")] + public static extern global::System.IntPtr get_JSON_POOL(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_HANDLEPOOLIDX")] + public static extern void set_HANDLEPOOLIDX(int jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_HANDLEPOOLIDX")] + public static extern int get_HANDLEPOOLIDX(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_HANDLE_POOL")] + public static extern void set_HANDLE_POOL(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_HANDLE_POOL")] + public static extern global::System.IntPtr get_HANDLE_POOL(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet_register_client")] + public static extern void set_wallet_register_client(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet_register_client")] + public static extern global::System.IntPtr get_wallet_register_client(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet_register_wallet")] + public static extern void set_wallet_register_wallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet_register_wallet")] + public static extern global::System.IntPtr get_wallet_register_wallet(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet_register")] + public static extern global::System.IntPtr new_wallet_register(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet_register")] + public static extern void delete_wallet_register(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_WALLETPOOLIDX")] + public static extern void set_WALLETPOOLIDX(int jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_WALLETPOOLIDX")] + public static extern int get_WALLETPOOLIDX(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_WALLET_POOL")] + public static extern void set_WALLET_POOL(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_WALLET_POOL")] + public static extern global::System.IntPtr get_WALLET_POOL(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_stdout_backup")] + public static extern void set_stdout_backup(int jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_stdout_backup")] + public static extern int get_stdout_backup(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_pipefd")] + public static extern void set_pipefd(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_pipefd")] + public static extern global::System.IntPtr get_pipefd(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_registerMemCleanup")] + public static extern global::System.IntPtr registerMemCleanup(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_freeRegisteredMemCleanup")] + public static extern void freeRegisteredMemCleanup(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_registerJsonFree")] + public static extern int registerJsonFree(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_freeRegisteredJson")] + public static extern void freeRegisteredJson(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_registerWalletClean")] + public static extern int registerWalletClean(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_registerHandleClose")] + public static extern int registerHandleClose(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_closeRegisteredHandle")] + public static extern void closeRegisteredHandle(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cleanupWallet")] + public static extern void cleanupWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cleanRegisteredWallet")] + public static extern void cleanRegisteredWallet(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cleanupMem")] + public static extern void cleanupMem(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_setup")] + public static extern void setup(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_teardown")] + public static extern void teardown(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_fprintbuff")] + public static extern void fprintbuff(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, uint jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_parseBoolean")] + public static extern int parseBoolean(string jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_toGoString")] + public static extern void toGoString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copySlice")] + public static extern int copySlice(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_concatSlices")] + public static extern int concatSlices(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_parseJsonMetaData")] public static extern void parseJsonMetaData(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cutSlice")] public static extern int cutSlice(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3, int jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_makeEmptyTransaction")] + public static extern global::System.IntPtr makeEmptyTransaction(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_makeAddress")] + public static extern int makeAddress(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_Handlep")] + public static extern global::System.IntPtr new_Handlep(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_Handlep")] + public static extern global::System.IntPtr copy_Handlep(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_Handlep")] + public static extern void delete_Handlep(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Handlep_assign")] + public static extern void Handlep_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Handlep_value")] + public static extern global::System.IntPtr Handlep_value(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_GoUint64p")] + public static extern global::System.IntPtr new_GoUint64p(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_GoUint64p")] + public static extern global::System.IntPtr copy_GoUint64p(ulong jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_GoUint64p")] + public static extern void delete_GoUint64p(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoUint64p_assign")] + public static extern void GoUint64p_assign(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoUint64p_value")] + public static extern ulong GoUint64p_value(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher__Addressp")] + public static extern global::System.IntPtr new_cipher__Addressp(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_cipher__Addressp")] + public static extern global::System.IntPtr copy_cipher__Addressp(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher__Addressp")] + public static extern void delete_cipher__Addressp(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Addressp_assign")] + public static extern void cipher__Addressp_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Addressp_value")] + public static extern global::System.IntPtr cipher__Addressp_value(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_Transactions__Handlep")] + public static extern global::System.IntPtr new_Transactions__Handlep(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_Transactions__Handlep")] + public static extern global::System.IntPtr copy_Transactions__Handlep(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_Transactions__Handlep")] + public static extern void delete_Transactions__Handlep(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Transactions__Handlep_assign")] + public static extern void Transactions__Handlep_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Transactions__Handlep_value")] + public static extern global::System.IntPtr Transactions__Handlep_value(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SumSHA256__SWIG_0")] public static extern uint SKY_cipher_SumSHA256__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1385,9 +1598,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_CryptoTypeFromString")] public static extern uint SKY_wallet_CryptoTypeFromString(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_handle_close")] - public static extern void SKY_handle_close(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_handle_copy")] public static extern uint SKY_handle_copy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index ca84d5bf..390e54cf 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -406,6 +406,288 @@ static int intp_value(int *obj) { } +static Transaction__Handle *new_Transaction__Handlep() { + return (Transaction__Handle *) calloc(1,sizeof(Transaction__Handle)); +} + +static Transaction__Handle *copy_Transaction__Handlep(Transaction__Handle value) { + Transaction__Handle *obj = (Transaction__Handle *) calloc(1,sizeof(Transaction__Handle)); + *obj = value; + return obj; +} + +static void delete_Transaction__Handlep(Transaction__Handle *obj) { + if (obj) free(obj); +} + +static void Transaction__Handlep_assign(Transaction__Handle *obj, Transaction__Handle value) { + *obj = value; +} + +static Transaction__Handle Transaction__Handlep_value(Transaction__Handle *obj) { + return *obj; +} + + +#include "json.h" + //Define function SKY_handle_close to avoid including libskycoin.h +void SKY_handle_close(Handle p0); + +int MEMPOOLIDX = 0; +void *MEMPOOL[1024 * 256]; + +int JSONPOOLIDX = 0; +json_value* JSON_POOL[128]; + +int HANDLEPOOLIDX = 0; +Handle HANDLE_POOL[128]; + +typedef struct { + Client__Handle client; + WalletResponse__Handle wallet; +} wallet_register; + +int WALLETPOOLIDX = 0; +wallet_register WALLET_POOL[64]; + +int stdout_backup; +int pipefd[2]; + +void * registerMemCleanup(void *p) { + int i; + for (i = 0; i < MEMPOOLIDX; i++) { + if(MEMPOOL[i] == NULL){ + MEMPOOL[i] = p; + return p; + } + } + MEMPOOL[MEMPOOLIDX++] = p; + return p; +} + +void freeRegisteredMemCleanup(void *p){ + int i; + for (i = 0; i < MEMPOOLIDX; i++) { + if(MEMPOOL[i] == p){ + free(p); + MEMPOOL[i] = NULL; + break; + } + } +} + +int registerJsonFree(void *p){ + int i; + for (i = 0; i < JSONPOOLIDX; i++) { + if(JSON_POOL[i] == NULL){ + JSON_POOL[i] = p; + return i; + } + } + JSON_POOL[JSONPOOLIDX++] = p; + return JSONPOOLIDX-1; +} + +void freeRegisteredJson(void *p){ + int i; + for (i = 0; i < JSONPOOLIDX; i++) { + if(JSON_POOL[i] == p){ + JSON_POOL[i] = NULL; + json_value_free( (json_value*)p ); + break; + } + } +} + +int registerWalletClean(Client__Handle clientHandle, + WalletResponse__Handle walletHandle){ + int i; + for (i = 0; i < WALLETPOOLIDX; i++) { + if(WALLET_POOL[i].wallet == 0 && WALLET_POOL[i].client == 0){ + WALLET_POOL[i].wallet = walletHandle; + WALLET_POOL[i].client = clientHandle; + return i; + } + } + WALLET_POOL[WALLETPOOLIDX].wallet = walletHandle; + WALLET_POOL[WALLETPOOLIDX].client = clientHandle; + return WALLETPOOLIDX++; +} + +int registerHandleClose(Handle handle){ + int i; + for (i = 0; i < HANDLEPOOLIDX; i++) { + if(HANDLE_POOL[i] == 0){ + HANDLE_POOL[i] = handle; + return i; + } + } + HANDLE_POOL[HANDLEPOOLIDX++] = handle; + return HANDLEPOOLIDX - 1; +} + +void closeRegisteredHandle(Handle handle){ + int i; + for (i = 0; i < HANDLEPOOLIDX; i++) { + if(HANDLE_POOL[i] == handle){ + HANDLE_POOL[i] = 0; + SKY_handle_close(handle); + break; + } + } +} + +void cleanupWallet(Client__Handle client, WalletResponse__Handle wallet){ + int result; + GoString_ strWalletDir; + GoString_ strFileName; + memset(&strWalletDir, 0, sizeof(GoString_)); + memset(&strFileName, 0, sizeof(GoString_)); + + + result = SKY_api_Handle_Client_GetWalletDir(client, &strWalletDir); + if( result != 0 ){ + return; + } + result = SKY_api_Handle_Client_GetWalletFileName(wallet, &strFileName); + if( result != 0 ){ + free( (void*)strWalletDir.p ); + return; + } + char fullPath[128]; + if( strWalletDir.n + strFileName.n < 126){ + strcpy( fullPath, strWalletDir.p ); + if( fullPath[0] == 0 || fullPath[strlen(fullPath) - 1] != '/' ) + strcat(fullPath, "/"); + strcat( fullPath, strFileName.p ); + result = unlink( fullPath ); + if( strlen(fullPath) < 123 ){ + strcat( fullPath, ".bak" ); + result = unlink( fullPath ); + } + } + GoString str = { strFileName.p, strFileName.n }; + result = SKY_api_Client_UnloadWallet( client, str ); + GoString strFullPath = { fullPath, strlen(fullPath) }; + free( (void*)strWalletDir.p ); + free( (void*)strFileName.p ); +} + +void cleanRegisteredWallet( + Client__Handle client, + WalletResponse__Handle wallet){ + + int i; + for (i = 0; i < WALLETPOOLIDX; i++) { + if(WALLET_POOL[i].wallet == wallet && WALLET_POOL[i].client == client){ + WALLET_POOL[i].wallet = 0; + WALLET_POOL[i].client = 0; + cleanupWallet( client, wallet ); + return; + } + } +} + +void cleanupMem() { + int i; + + for (i = 0; i < WALLETPOOLIDX; i++) { + if(WALLET_POOL[i].client != 0 && WALLET_POOL[i].wallet != 0){ + cleanupWallet( WALLET_POOL[i].client, WALLET_POOL[i].wallet ); + } + } + + void **ptr; + for (i = MEMPOOLIDX, ptr = MEMPOOL; i; --i) { + if( *ptr ) + free(*ptr); + ptr++; + } + for (i = JSONPOOLIDX, ptr = (void*)JSON_POOL; i; --i) { + if( *ptr ) + json_value_free(*ptr); + ptr++; + } + for (i = 0; i < HANDLEPOOLIDX; i++) { + if( HANDLE_POOL[i] ) + SKY_handle_close(HANDLE_POOL[i]); + } +} + + +void setup(void) { + srand ((unsigned int) time (NULL)); +} + +void teardown(void) { + cleanupMem(); +} + +// TODO: Move to libsky_io.c +void fprintbuff(FILE *f, void *buff, size_t n) { + unsigned char *ptr = (unsigned char *) buff; + fprintf(f, "[ "); + for (; n; --n, ptr++) { + fprintf(f, "%02d ", *ptr); + } + fprintf(f, "]"); +} + +int parseBoolean(const char* str, int length){ + int result = 0; + if(length == 1){ + result = str[0] == '1' || str[0] == 't' || str[0] == 'T'; + } else { + result = strncmp(str, "true", length) == 0 || + strncmp(str, "True", length) == 0 || + strncmp(str, "TRUE", length) == 0; + } + return result; +} + +void toGoString(GoString_ *s, GoString *r){ +GoString * tmp = r; + + *tmp = (*(GoString *) s); +} + +int copySlice(GoSlice_* pdest, GoSlice_* psource, int elem_size){ + pdest->len = psource->len; + pdest->cap = psource->len; + int size = pdest->len * elem_size; + pdest->data = malloc(size); + if( pdest->data == NULL ) + return 1; + registerMemCleanup( pdest->data ); + memcpy(pdest->data, psource->data, size ); + return 0; +} + + + +int concatSlices(GoSlice_* slice1, GoSlice_* slice2, int elem_size, GoSlice_* result){ + int size1 = slice1->len; + int size2 = slice2->len; + int size = size1 + size2; + if (size <= 0) + return 1; + void* data = malloc(size * elem_size); + if( data == NULL ) + return 1; + registerMemCleanup( data ); + result->data = data; + result->len = size; + result->cap = size; + char* p = data; + if(size1 > 0){ + memcpy( p, slice1->data, size1 * elem_size ); + p += (elem_size * size1); + } + if(size2 > 0){ + memcpy( p, slice2->data, size2 * elem_size ); + } + return 0; +} void parseJsonMetaData(char *metadata, int *n, int *r, int *p, int *keyLen) { *n = *r = *p = *keyLen = 0; @@ -483,8 +765,127 @@ int cutSlice(GoSlice_* slice, int start, int end, int elem_size, GoSlice_* resul memcpy( data, p, elem_size * size ); return 0; } + +coin__Transaction* makeEmptyTransaction(Transaction__Handle* handle){ + int result; + coin__Transaction* ptransaction = NULL; + result = SKY_coin_Create_Transaction(handle); + registerHandleClose(*handle); + result = SKY_coin_GetTransactionObject( *handle, &ptransaction ); + return ptransaction; +} + +int makeAddress(cipher__Address* paddress){ + cipher__PubKey pubkey; + cipher__SecKey seckey; + cipher__Address address; + int result; + + result = SKY_cipher_GenerateKeyPair(&pubkey, &seckey); + if(result != 0){ + return 1; + } + + result = SKY_cipher_AddressFromPubKey( &pubkey, paddress ); + if(result != 0){ + return 1; + } + return result; +} +static Handle *new_Handlep() { + return (Handle *) calloc(1,sizeof(Handle)); +} + +static Handle *copy_Handlep(Handle value) { + Handle *obj = (Handle *) calloc(1,sizeof(Handle)); + *obj = value; + return obj; +} + +static void delete_Handlep(Handle *obj) { + if (obj) free(obj); +} + +static void Handlep_assign(Handle *obj, Handle value) { + *obj = value; +} + +static Handle Handlep_value(Handle *obj) { + return *obj; +} + + +static unsigned long long *new_GoUint64p() { + return (unsigned long long *) calloc(1,sizeof(unsigned long long)); +} + +static unsigned long long *copy_GoUint64p(unsigned long long value) { + unsigned long long *obj = (unsigned long long *) calloc(1,sizeof(unsigned long long)); + *obj = value; + return obj; +} + +static void delete_GoUint64p(unsigned long long *obj) { + if (obj) free(obj); +} + +static void GoUint64p_assign(unsigned long long *obj, unsigned long long value) { + *obj = value; +} + +static unsigned long long GoUint64p_value(unsigned long long *obj) { + return *obj; +} + + +static cipher__Address *new_cipher__Addressp() { + return (cipher__Address *) calloc(1,sizeof(cipher__Address)); +} + +static cipher__Address *copy_cipher__Addressp(cipher__Address value) { + cipher__Address *obj = (cipher__Address *) calloc(1,sizeof(cipher__Address)); + *obj = value; + return obj; +} + +static void delete_cipher__Addressp(cipher__Address *obj) { + if (obj) free(obj); +} + +static void cipher__Addressp_assign(cipher__Address *obj, cipher__Address value) { + *obj = value; +} + +static cipher__Address cipher__Addressp_value(cipher__Address *obj) { + return *obj; +} + + +static Transactions__Handle *new_Transactions__Handlep() { + return (Transactions__Handle *) calloc(1,sizeof(Transactions__Handle)); +} + +static Transactions__Handle *copy_Transactions__Handlep(Transactions__Handle value) { + Transactions__Handle *obj = (Transactions__Handle *) calloc(1,sizeof(Transactions__Handle)); + *obj = value; + return obj; +} + +static void delete_Transactions__Handlep(Transactions__Handle *obj) { + if (obj) free(obj); +} + +static void Transactions__Handlep_assign(Transactions__Handle *obj, Transactions__Handle value) { + *obj = value; +} + +static Transactions__Handle Transactions__Handlep_value(Transactions__Handle *obj) { + return *obj; +} + + GoUint32 CSharp_skycoin_SKY_cipher_SumSHA256(GoSlice seed, cipher_SHA256* sha){ GoUint32 result = SKY_cipher_SumSHA256(seed, sha); return result; @@ -892,158 +1293,1027 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_GoSlicep_value(void * jarg1) { } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_GoStringp() { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_GoStringp() { + void * jresult ; + _GoString_ *result = 0 ; + + result = (_GoString_ *)new_GoStringp(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_GoStringp(void * jarg1) { + void * jresult ; + _GoString_ arg1 ; + _GoString_ *argp1 ; + _GoString_ *result = 0 ; + + argp1 = (_GoString_ *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null _GoString_", 0); + return 0; + } + arg1 = *argp1; + result = (_GoString_ *)copy_GoStringp(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_GoStringp(void * jarg1) { + _GoString_ *arg1 = (_GoString_ *) 0 ; + + arg1 = (_GoString_ *)jarg1; + delete_GoStringp(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoStringp_assign(void * jarg1, void * jarg2) { + _GoString_ *arg1 = (_GoString_ *) 0 ; + _GoString_ arg2 ; + _GoString_ *argp2 ; + + arg1 = (_GoString_ *)jarg1; + argp2 = (_GoString_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null _GoString_", 0); + return ; + } + arg2 = *argp2; + GoStringp_assign(arg1,arg2); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_GoStringp_value(void * jarg1) { + void * jresult ; + _GoString_ *arg1 = (_GoString_ *) 0 ; + _GoString_ result; + + arg1 = (_GoString_ *)jarg1; + result = GoStringp_value(arg1); + { + _GoString_ * resultptr = (_GoString_ *) malloc(sizeof(_GoString_)); + memmove(resultptr, &result, sizeof(_GoString_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_intp() { + void * jresult ; + int *result = 0 ; + + result = (int *)new_intp(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_intp(int jarg1) { + void * jresult ; + int arg1 ; + int *result = 0 ; + + arg1 = (int)jarg1; + result = (int *)copy_intp(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_intp(void * jarg1) { + int *arg1 = (int *) 0 ; + + arg1 = (int *)jarg1; + delete_intp(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_intp_assign(void * jarg1, int jarg2) { + int *arg1 = (int *) 0 ; + int arg2 ; + + arg1 = (int *)jarg1; + arg2 = (int)jarg2; + intp_assign(arg1,arg2); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_intp_value(void * jarg1) { + int jresult ; + int *arg1 = (int *) 0 ; + int result; + + arg1 = (int *)jarg1; + result = (int)intp_value(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_Transaction__Handlep() { + void * jresult ; + Transaction__Handle *result = 0 ; + + result = (Transaction__Handle *)new_Transaction__Handlep(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_Transaction__Handlep(void * jarg1) { + void * jresult ; + Transaction__Handle arg1 ; + Transaction__Handle *argp1 ; + Transaction__Handle *result = 0 ; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + result = (Transaction__Handle *)copy_Transaction__Handlep(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_Transaction__Handlep(void * jarg1) { + Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; + + arg1 = (Transaction__Handle *)jarg1; + delete_Transaction__Handlep(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_Transaction__Handlep_assign(void * jarg1, void * jarg2) { + Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; + Transaction__Handle arg2 ; + Transaction__Handle *argp2 ; + + arg1 = (Transaction__Handle *)jarg1; + argp2 = (Transaction__Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return ; + } + arg2 = *argp2; + Transaction__Handlep_assign(arg1,arg2); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_Transaction__Handlep_value(void * jarg1) { + void * jresult ; + Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; + Transaction__Handle result; + + arg1 = (Transaction__Handle *)jarg1; + result = Transaction__Handlep_value(arg1); + { + Transaction__Handle * resultptr = (Transaction__Handle *) malloc(sizeof(Transaction__Handle)); + memmove(resultptr, &result, sizeof(Transaction__Handle)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_handle_close(void * jarg1) { + Handle arg1 ; + Handle *argp1 ; + + argp1 = (Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); + return ; + } + arg1 = *argp1; + SKY_handle_close(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_MEMPOOLIDX(int jarg1) { + int arg1 ; + + arg1 = (int)jarg1; + MEMPOOLIDX = arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_MEMPOOLIDX() { + int jresult ; + int result; + + result = (int)MEMPOOLIDX; + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_MEMPOOL(void * jarg1) { + void **arg1 ; + + arg1 = (void **)jarg1; + { + size_t ii; + void * *b = (void * *) MEMPOOL; + for (ii = 0; ii < (size_t)1024*256; ii++) b[ii] = *((void * *) arg1 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_MEMPOOL() { + void * jresult ; + void **result = 0 ; + + result = (void **)(void **)MEMPOOL; + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_JSONPOOLIDX(int jarg1) { + int arg1 ; + + arg1 = (int)jarg1; + JSONPOOLIDX = arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_JSONPOOLIDX() { + int jresult ; + int result; + + result = (int)JSONPOOLIDX; + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_JSON_POOL(void * jarg1) { + json_value **arg1 ; + + arg1 = (json_value **)jarg1; + { + size_t ii; + json_value * *b = (json_value * *) JSON_POOL; + for (ii = 0; ii < (size_t)128; ii++) b[ii] = *((json_value * *) arg1 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_JSON_POOL() { + void * jresult ; + json_value **result = 0 ; + + result = (json_value **)(json_value **)JSON_POOL; + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_HANDLEPOOLIDX(int jarg1) { + int arg1 ; + + arg1 = (int)jarg1; + HANDLEPOOLIDX = arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_HANDLEPOOLIDX() { + int jresult ; + int result; + + result = (int)HANDLEPOOLIDX; + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_HANDLE_POOL(void * jarg1) { + Handle *arg1 ; + + arg1 = (Handle *)jarg1; + { + size_t ii; + Handle *b = (Handle *) HANDLE_POOL; + for (ii = 0; ii < (size_t)128; ii++) b[ii] = *((Handle *) arg1 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_HANDLE_POOL() { + void * jresult ; + Handle *result = 0 ; + + result = (Handle *)(Handle *)HANDLE_POOL; + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet_register_client(void * jarg1, void * jarg2) { + wallet_register *arg1 = (wallet_register *) 0 ; + Client__Handle arg2 ; + Client__Handle *argp2 ; + + arg1 = (wallet_register *)jarg1; + argp2 = (Client__Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->client = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet_register_client(void * jarg1) { + void * jresult ; + wallet_register *arg1 = (wallet_register *) 0 ; + Client__Handle result; + + arg1 = (wallet_register *)jarg1; + result = ((arg1)->client); + { + Client__Handle * resultptr = (Client__Handle *) malloc(sizeof(Client__Handle)); + memmove(resultptr, &result, sizeof(Client__Handle)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet_register_wallet(void * jarg1, void * jarg2) { + wallet_register *arg1 = (wallet_register *) 0 ; + WalletResponse__Handle arg2 ; + WalletResponse__Handle *argp2 ; + + arg1 = (wallet_register *)jarg1; + argp2 = (WalletResponse__Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->wallet = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet_register_wallet(void * jarg1) { + void * jresult ; + wallet_register *arg1 = (wallet_register *) 0 ; + WalletResponse__Handle result; + + arg1 = (wallet_register *)jarg1; + result = ((arg1)->wallet); + { + WalletResponse__Handle * resultptr = (WalletResponse__Handle *) malloc(sizeof(WalletResponse__Handle)); + memmove(resultptr, &result, sizeof(WalletResponse__Handle)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_wallet_register() { + void * jresult ; + wallet_register *result = 0 ; + + result = (wallet_register *)calloc(1, sizeof(wallet_register)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet_register(void * jarg1) { + wallet_register *arg1 = (wallet_register *) 0 ; + + arg1 = (wallet_register *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_WALLETPOOLIDX(int jarg1) { + int arg1 ; + + arg1 = (int)jarg1; + WALLETPOOLIDX = arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_WALLETPOOLIDX() { + int jresult ; + int result; + + result = (int)WALLETPOOLIDX; + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_WALLET_POOL(void * jarg1) { + wallet_register *arg1 ; + + arg1 = (wallet_register *)jarg1; + { + size_t ii; + wallet_register *b = (wallet_register *) WALLET_POOL; + for (ii = 0; ii < (size_t)64; ii++) b[ii] = *((wallet_register *) arg1 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_WALLET_POOL() { + void * jresult ; + wallet_register *result = 0 ; + + result = (wallet_register *)(wallet_register *)WALLET_POOL; + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_stdout_backup(int jarg1) { + int arg1 ; + + arg1 = (int)jarg1; + stdout_backup = arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_stdout_backup() { + int jresult ; + int result; + + result = (int)stdout_backup; + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_pipefd(void * jarg1) { + int *arg1 ; + + arg1 = (int *)jarg1; + { + size_t ii; + int *b = (int *) pipefd; + for (ii = 0; ii < (size_t)2; ii++) b[ii] = *((int *) arg1 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_pipefd() { + void * jresult ; + int *result = 0 ; + + result = (int *)(int *)pipefd; + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_registerMemCleanup(void * jarg1) { + void * jresult ; + void *arg1 = (void *) 0 ; + void *result = 0 ; + + arg1 = (void *)jarg1; + result = (void *)registerMemCleanup(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_freeRegisteredMemCleanup(void * jarg1) { + void *arg1 = (void *) 0 ; + + arg1 = (void *)jarg1; + freeRegisteredMemCleanup(arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_registerJsonFree(void * jarg1) { + int jresult ; + void *arg1 = (void *) 0 ; + int result; + + arg1 = (void *)jarg1; + result = (int)registerJsonFree(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_freeRegisteredJson(void * jarg1) { + void *arg1 = (void *) 0 ; + + arg1 = (void *)jarg1; + freeRegisteredJson(arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_registerWalletClean(void * jarg1, void * jarg2) { + int jresult ; + Client__Handle arg1 ; + WalletResponse__Handle arg2 ; + Client__Handle *argp1 ; + WalletResponse__Handle *argp2 ; + int result; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (WalletResponse__Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); + return 0; + } + arg2 = *argp2; + result = (int)registerWalletClean(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_registerHandleClose(void * jarg1) { + int jresult ; + Handle arg1 ; + Handle *argp1 ; + int result; + + argp1 = (Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); + return 0; + } + arg1 = *argp1; + result = (int)registerHandleClose(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_closeRegisteredHandle(void * jarg1) { + Handle arg1 ; + Handle *argp1 ; + + argp1 = (Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); + return ; + } + arg1 = *argp1; + closeRegisteredHandle(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cleanupWallet(void * jarg1, void * jarg2) { + Client__Handle arg1 ; + WalletResponse__Handle arg2 ; + Client__Handle *argp1 ; + WalletResponse__Handle *argp2 ; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return ; + } + arg1 = *argp1; + argp2 = (WalletResponse__Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); + return ; + } + arg2 = *argp2; + cleanupWallet(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cleanRegisteredWallet(void * jarg1, void * jarg2) { + Client__Handle arg1 ; + WalletResponse__Handle arg2 ; + Client__Handle *argp1 ; + WalletResponse__Handle *argp2 ; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return ; + } + arg1 = *argp1; + argp2 = (WalletResponse__Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); + return ; + } + arg2 = *argp2; + cleanRegisteredWallet(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cleanupMem() { + cleanupMem(); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_setup() { + setup(); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_teardown() { + teardown(); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_fprintbuff(void * jarg1, void * jarg2, unsigned long jarg3) { + FILE *arg1 = (FILE *) 0 ; + void *arg2 = (void *) 0 ; + size_t arg3 ; + + arg1 = (FILE *)jarg1; + arg2 = (void *)jarg2; + arg3 = (size_t)jarg3; + fprintbuff(arg1,arg2,arg3); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_parseBoolean(char * jarg1, int jarg2) { + int jresult ; + char *arg1 = (char *) 0 ; + int arg2 ; + int result; + + arg1 = (char *)jarg1; + arg2 = (int)jarg2; + result = (int)parseBoolean((char const *)arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_toGoString(void * jarg1, void * jarg2) { + GoString_ *arg1 = (GoString_ *) 0 ; + GoString *arg2 = (GoString *) 0 ; + + arg1 = (GoString_ *)jarg1; + arg2 = (GoString *)jarg2; + toGoString(arg1,arg2); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_copySlice(void * jarg1, void * jarg2, int jarg3) { + int jresult ; + GoSlice_ *arg1 = (GoSlice_ *) 0 ; + GoSlice_ *arg2 = (GoSlice_ *) 0 ; + int arg3 ; + int result; + + arg1 = (GoSlice_ *)jarg1; + arg2 = (GoSlice_ *)jarg2; + arg3 = (int)jarg3; + result = (int)copySlice(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_concatSlices(void * jarg1, void * jarg2, int jarg3, void * jarg4) { + int jresult ; + GoSlice_ *arg1 = (GoSlice_ *) 0 ; + GoSlice_ *arg2 = (GoSlice_ *) 0 ; + int arg3 ; + GoSlice_ *arg4 = (GoSlice_ *) 0 ; + int result; + + arg1 = (GoSlice_ *)jarg1; + arg2 = (GoSlice_ *)jarg2; + arg3 = (int)jarg3; + arg4 = (GoSlice_ *)jarg4; + result = (int)concatSlices(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_parseJsonMetaData(char * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5) { + char *arg1 = (char *) 0 ; + int *arg2 = (int *) 0 ; + int *arg3 = (int *) 0 ; + int *arg4 = (int *) 0 ; + int *arg5 = (int *) 0 ; + + arg1 = (char *)jarg1; + arg2 = (int *)jarg2; + arg3 = (int *)jarg3; + arg4 = (int *)jarg4; + arg5 = (int *)jarg5; + parseJsonMetaData(arg1,arg2,arg3,arg4,arg5); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cutSlice(void * jarg1, int jarg2, int jarg3, int jarg4, void * jarg5) { + int jresult ; + GoSlice_ *arg1 = (GoSlice_ *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + GoSlice_ *arg5 = (GoSlice_ *) 0 ; + int result; + + arg1 = (GoSlice_ *)jarg1; + arg2 = (int)jarg2; + arg3 = (int)jarg3; + arg4 = (int)jarg4; + arg5 = (GoSlice_ *)jarg5; + result = (int)cutSlice(arg1,arg2,arg3,arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_makeEmptyTransaction(void * jarg1) { + void * jresult ; + Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; + coin__Transaction *result = 0 ; + + arg1 = (Transaction__Handle *)jarg1; + result = (coin__Transaction *)makeEmptyTransaction(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_makeAddress(void * jarg1) { + int jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + int result; + + arg1 = (cipher__Address *)jarg1; + result = (int)makeAddress(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_Handlep() { + void * jresult ; + Handle *result = 0 ; + + result = (Handle *)new_Handlep(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_Handlep(void * jarg1) { + void * jresult ; + Handle arg1 ; + Handle *result = 0 ; + + { + jarg1 = (long*)&arg1; + } + result = (Handle *)copy_Handlep(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_Handlep(void * jarg1) { + Handle *arg1 = (Handle *) 0 ; + + { + jarg1 = (long*)&arg1; + } + delete_Handlep(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_Handlep_assign(void * jarg1, void * jarg2) { + Handle *arg1 = (Handle *) 0 ; + Handle arg2 ; + + { + jarg1 = (long*)&arg1; + } + { + jarg2 = (long*)&arg2; + } + Handlep_assign(arg1,arg2); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_Handlep_value(void * jarg1) { + void * jresult ; + Handle *arg1 = (Handle *) 0 ; + Handle result; + + { + jarg1 = (long*)&arg1; + } + result = Handlep_value(arg1); + { + Handle * resultptr = (Handle *) malloc(sizeof(Handle)); + memmove(resultptr, &result, sizeof(Handle)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_GoUint64p() { + void * jresult ; + unsigned long long *result = 0 ; + + result = (unsigned long long *)new_GoUint64p(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_GoUint64p(unsigned long long jarg1) { + void * jresult ; + unsigned long long arg1 ; + unsigned long long *result = 0 ; + + arg1 = (unsigned long long)jarg1; + result = (unsigned long long *)copy_GoUint64p(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_GoUint64p(void * jarg1) { + unsigned long long *arg1 = (unsigned long long *) 0 ; + + arg1 = (unsigned long long *)jarg1; + delete_GoUint64p(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoUint64p_assign(void * jarg1, unsigned long long jarg2) { + unsigned long long *arg1 = (unsigned long long *) 0 ; + unsigned long long arg2 ; + + arg1 = (unsigned long long *)jarg1; + arg2 = (unsigned long long)jarg2; + GoUint64p_assign(arg1,arg2); +} + + +SWIGEXPORT unsigned long long SWIGSTDCALL CSharp_skycoin_GoUint64p_value(void * jarg1) { + unsigned long long jresult ; + unsigned long long *arg1 = (unsigned long long *) 0 ; + unsigned long long result; + + arg1 = (unsigned long long *)jarg1; + result = (unsigned long long)GoUint64p_value(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher__Addressp() { void * jresult ; - _GoString_ *result = 0 ; + cipher__Address *result = 0 ; - result = (_GoString_ *)new_GoStringp(); + result = (cipher__Address *)new_cipher__Addressp(); jresult = (void *)result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_GoStringp(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_cipher__Addressp(void * jarg1) { void * jresult ; - _GoString_ arg1 ; - _GoString_ *argp1 ; - _GoString_ *result = 0 ; + cipher__Address arg1 ; + cipher__Address *argp1 ; + cipher__Address *result = 0 ; - argp1 = (_GoString_ *)jarg1; + argp1 = (cipher__Address *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null _GoString_", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null cipher__Address", 0); return 0; } arg1 = *argp1; - result = (_GoString_ *)copy_GoStringp(arg1); + result = (cipher__Address *)copy_cipher__Addressp(arg1); jresult = (void *)result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_GoStringp(void * jarg1) { - _GoString_ *arg1 = (_GoString_ *) 0 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher__Addressp(void * jarg1) { + cipher__Address *arg1 = (cipher__Address *) 0 ; - arg1 = (_GoString_ *)jarg1; - delete_GoStringp(arg1); + arg1 = (cipher__Address *)jarg1; + delete_cipher__Addressp(arg1); } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoStringp_assign(void * jarg1, void * jarg2) { - _GoString_ *arg1 = (_GoString_ *) 0 ; - _GoString_ arg2 ; - _GoString_ *argp2 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher__Addressp_assign(void * jarg1, void * jarg2) { + cipher__Address *arg1 = (cipher__Address *) 0 ; + cipher__Address arg2 ; + cipher__Address *argp2 ; - arg1 = (_GoString_ *)jarg1; - argp2 = (_GoString_ *)jarg2; + arg1 = (cipher__Address *)jarg1; + argp2 = (cipher__Address *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null _GoString_", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null cipher__Address", 0); return ; } arg2 = *argp2; - GoStringp_assign(arg1,arg2); + cipher__Addressp_assign(arg1,arg2); } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_GoStringp_value(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher__Addressp_value(void * jarg1) { void * jresult ; - _GoString_ *arg1 = (_GoString_ *) 0 ; - _GoString_ result; + cipher__Address *arg1 = (cipher__Address *) 0 ; + cipher__Address result; - arg1 = (_GoString_ *)jarg1; - result = GoStringp_value(arg1); + arg1 = (cipher__Address *)jarg1; + result = cipher__Addressp_value(arg1); { - _GoString_ * resultptr = (_GoString_ *) malloc(sizeof(_GoString_)); - memmove(resultptr, &result, sizeof(_GoString_)); + cipher__Address * resultptr = (cipher__Address *) malloc(sizeof(cipher__Address)); + memmove(resultptr, &result, sizeof(cipher__Address)); jresult = resultptr; } return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_intp() { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_Transactions__Handlep() { void * jresult ; - int *result = 0 ; + Transactions__Handle *result = 0 ; - result = (int *)new_intp(); + result = (Transactions__Handle *)new_Transactions__Handlep(); jresult = (void *)result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_intp(int jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_Transactions__Handlep(void * jarg1) { void * jresult ; - int arg1 ; - int *result = 0 ; + Transactions__Handle arg1 ; + Transactions__Handle *argp1 ; + Transactions__Handle *result = 0 ; - arg1 = (int)jarg1; - result = (int *)copy_intp(arg1); + argp1 = (Transactions__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + return 0; + } + arg1 = *argp1; + result = (Transactions__Handle *)copy_Transactions__Handlep(arg1); jresult = (void *)result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_intp(void * jarg1) { - int *arg1 = (int *) 0 ; - - arg1 = (int *)jarg1; - delete_intp(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_intp_assign(void * jarg1, int jarg2) { - int *arg1 = (int *) 0 ; - int arg2 ; - - arg1 = (int *)jarg1; - arg2 = (int)jarg2; - intp_assign(arg1,arg2); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_intp_value(void * jarg1) { - int jresult ; - int *arg1 = (int *) 0 ; - int result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_Transactions__Handlep(void * jarg1) { + Transactions__Handle *arg1 = (Transactions__Handle *) 0 ; - arg1 = (int *)jarg1; - result = (int)intp_value(arg1); - jresult = result; - return jresult; + arg1 = (Transactions__Handle *)jarg1; + delete_Transactions__Handlep(arg1); } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_parseJsonMetaData(char * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5) { - char *arg1 = (char *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int *arg4 = (int *) 0 ; - int *arg5 = (int *) 0 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_Transactions__Handlep_assign(void * jarg1, void * jarg2) { + Transactions__Handle *arg1 = (Transactions__Handle *) 0 ; + Transactions__Handle arg2 ; + Transactions__Handle *argp2 ; - arg1 = (char *)jarg1; - arg2 = (int *)jarg2; - arg3 = (int *)jarg3; - arg4 = (int *)jarg4; - arg5 = (int *)jarg5; - parseJsonMetaData(arg1,arg2,arg3,arg4,arg5); + arg1 = (Transactions__Handle *)jarg1; + argp2 = (Transactions__Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + return ; + } + arg2 = *argp2; + Transactions__Handlep_assign(arg1,arg2); } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cutSlice(void * jarg1, int jarg2, int jarg3, int jarg4, void * jarg5) { - int jresult ; - GoSlice_ *arg1 = (GoSlice_ *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - GoSlice_ *arg5 = (GoSlice_ *) 0 ; - int result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_Transactions__Handlep_value(void * jarg1) { + void * jresult ; + Transactions__Handle *arg1 = (Transactions__Handle *) 0 ; + Transactions__Handle result; - arg1 = (GoSlice_ *)jarg1; - arg2 = (int)jarg2; - arg3 = (int)jarg3; - arg4 = (int)jarg4; - arg5 = (GoSlice_ *)jarg5; - result = (int)cutSlice(arg1,arg2,arg3,arg4,arg5); - jresult = result; + arg1 = (Transactions__Handle *)jarg1; + result = Transactions__Handlep_value(arg1); + { + Transactions__Handle * resultptr = (Transactions__Handle *) malloc(sizeof(Transactions__Handle)); + memmove(resultptr, &result, sizeof(Transactions__Handle)); + jresult = resultptr; + } return jresult; } @@ -2529,20 +3799,26 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock(void * jarg Transactions__Handle arg4 ; FeeCalculator *arg5 = (FeeCalculator *) 0 ; Block__Handle *arg6 = (Block__Handle *) 0 ; + Block__Handle *argp1 ; + Transactions__Handle *argp4 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Block__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoUint64)jarg2; arg3 = (cipher__SHA256 *)jarg3; - { - jarg4 = (long*)&arg4; + argp4 = (Transactions__Handle *)jarg4; + if (!argp4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + return 0; } + arg4 = *argp4; arg5 = (FeeCalculator *)jarg5; - { - jarg6 = (long*)&arg6; - } + arg6 = (Block__Handle *)jarg6; result = (GoUint32)SKY_coin_NewBlock(arg1,arg2,(GoUint8_ (*)[32])arg3,arg4,arg5,arg6); jresult = result; return jresult; @@ -2574,9 +3850,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewGenesisBlock(void arg1 = (cipher__Address *)jarg1; arg2 = (GoUint64)jarg2; arg3 = (GoUint64)jarg3; - { - jarg4 = (long*)&arg4; - } + arg4 = (Block__Handle *)jarg4; result = (GoUint32)SKY_coin_NewGenesisBlock(arg1,arg2,arg3,arg4); jresult = result; return jresult; @@ -2587,11 +3861,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_HashHeader(voi unsigned int jresult ; Block__Handle arg1 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + Block__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Block__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (cipher__SHA256 *)jarg2; result = (GoUint32)SKY_coin_Block_HashHeader(arg1,(GoUint8_ (*)[32])arg2); jresult = result; @@ -2603,11 +3881,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_PreHashHeader( unsigned int jresult ; Block__Handle arg1 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + Block__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Block__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (cipher__SHA256 *)jarg2; result = (GoUint32)SKY_coin_Block_PreHashHeader(arg1,(GoUint8_ (*)[32])arg2); jresult = result; @@ -2619,11 +3901,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_Time(void * ja unsigned int jresult ; Block__Handle arg1 ; GoUint64 *arg2 = (GoUint64 *) 0 ; + Block__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Block__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoUint64 *)jarg2; result = (GoUint32)SKY_coin_Block_Time(arg1,arg2); jresult = result; @@ -2635,11 +3921,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_Seq(void * jar unsigned int jresult ; Block__Handle arg1 ; GoUint64 *arg2 = (GoUint64 *) 0 ; + Block__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Block__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoUint64 *)jarg2; result = (GoUint32)SKY_coin_Block_Seq(arg1,arg2); jresult = result; @@ -2651,11 +3941,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_HashBody(void unsigned int jresult ; Block__Handle arg1 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + Block__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Block__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (cipher__SHA256 *)jarg2; result = (GoUint32)SKY_coin_Block_HashBody(arg1,(GoUint8_ (*)[32])arg2); jresult = result; @@ -2667,11 +3961,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_Size(void * ja unsigned int jresult ; Block__Handle arg1 ; GoInt *arg2 = (GoInt *) 0 ; + Block__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Block__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoInt *)jarg2; result = (GoUint32)SKY_coin_Block_Size(arg1,arg2); jresult = result; @@ -2683,11 +3981,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_String(void * unsigned int jresult ; Block__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; + Block__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Block__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_coin_Block_String(arg1,arg2); jresult = result; @@ -2701,15 +4003,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_GetTransaction cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; Transaction__Handle *arg3 = (Transaction__Handle *) 0 ; GoUint8 *arg4 = (GoUint8 *) 0 ; + Block__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Block__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (cipher__SHA256 *)jarg2; - { - jarg3 = (long*)&arg3; - } + arg3 = (Transaction__Handle *)jarg3; arg4 = (GoUint8 *)jarg4; result = (GoUint32)SKY_coin_Block_GetTransaction(arg1,(GoUint8_ (*)[32])arg2,arg3,arg4); jresult = result; @@ -2725,15 +4029,19 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlockHeader(void GoUint64 arg4 ; BlockBody__Handle arg5 ; coin__BlockHeader *arg6 = (coin__BlockHeader *) 0 ; + BlockBody__Handle *argp5 ; GoUint32 result; arg1 = (coin__BlockHeader *)jarg1; arg2 = (cipher__SHA256 *)jarg2; arg3 = (GoUint64)jarg3; arg4 = (GoUint64)jarg4; - { - jarg5 = (long*)&arg5; + argp5 = (BlockBody__Handle *)jarg5; + if (!argp5) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null BlockBody__Handle", 0); + return 0; } + arg5 = *argp5; arg6 = (coin__BlockHeader *)jarg6; result = (GoUint32)SKY_coin_NewBlockHeader(arg1,(GoUint8_ (*)[32])arg2,arg3,arg4,arg5,arg6); jresult = result; @@ -2787,11 +4095,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Hash(void unsigned int jresult ; BlockBody__Handle arg1 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + BlockBody__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (BlockBody__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null BlockBody__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (cipher__SHA256 *)jarg2; result = (GoUint32)SKY_coin_BlockBody_Hash(arg1,(GoUint8_ (*)[32])arg2); jresult = result; @@ -2805,9 +4117,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Size(void GoInt *arg2 = (GoInt *) 0 ; GoUint32 result; - { - jarg1 = (long*)&arg1; - } + arg1 = (BlockBody__Handle *)jarg1; arg2 = (GoInt *)jarg2; result = (GoUint32)SKY_coin_BlockBody_Size(arg1,arg2); jresult = result; @@ -2819,11 +4129,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Bytes(void unsigned int jresult ; BlockBody__Handle arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; + BlockBody__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (BlockBody__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null BlockBody__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (coin__UxArray *)jarg2; result = (GoUint32)SKY_coin_BlockBody_Bytes(arg1,arg2); jresult = result; @@ -2836,12 +4150,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_CreateUnspents(void coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; Transaction__Handle arg2 ; coin__UxArray *arg3 = (coin__UxArray *) 0 ; + Transaction__Handle *argp2 ; GoUint32 result; arg1 = (coin__BlockHeader *)jarg1; - { - jarg2 = (long*)&arg2; + argp2 = (Transaction__Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; } + arg2 = *argp2; arg3 = (coin__UxArray *)jarg3; result = (GoUint32)SKY_coin_CreateUnspents(arg1,arg2,arg3); jresult = result; @@ -2855,12 +4173,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_CreateUnspent(void * Transaction__Handle arg2 ; GoInt arg3 ; coin__UxOut *arg4 = (coin__UxOut *) 0 ; + Transaction__Handle *argp2 ; GoUint32 result; arg1 = (coin__BlockHeader *)jarg1; - { - jarg2 = (long*)&arg2; + argp2 = (Transaction__Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; } + arg2 = *argp2; arg3 = (GoInt)jarg3; arg4 = (coin__UxOut *)jarg4; result = (GoUint32)SKY_coin_CreateUnspent(arg1,arg2,arg3,arg4); @@ -2873,11 +4195,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetBlockObject(void unsigned int jresult ; Block__Handle arg1 ; coin__Block **arg2 = (coin__Block **) 0 ; + Block__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Block__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (coin__Block **)jarg2; result = (GoUint32)SKY_coin_GetBlockObject(arg1,arg2); jresult = result; @@ -2889,14 +4215,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetBlockBody(void * unsigned int jresult ; Block__Handle arg1 ; BlockBody__Handle *arg2 = (BlockBody__Handle *) 0 ; + Block__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; - } - { - jarg2 = (long*)&arg2; + argp1 = (Block__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); + return 0; } + arg1 = *argp1; + arg2 = (BlockBody__Handle *)jarg2; result = (GoUint32)SKY_coin_GetBlockBody(arg1,arg2); jresult = result; return jresult; @@ -2907,14 +4235,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewEmptyBlock(void * unsigned int jresult ; Transactions__Handle arg1 ; Block__Handle *arg2 = (Block__Handle *) 0 ; + Transactions__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; - } - { - jarg2 = (long*)&arg2; + argp1 = (Transactions__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + return 0; } + arg1 = *argp1; + arg2 = (Block__Handle *)jarg2; result = (GoUint32)SKY_coin_NewEmptyBlock(arg1,arg2); jresult = result; return jresult; @@ -3002,9 +4332,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewClient(char* jarg1 GoUint32 result; (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); - { - jarg2 = (long*)&arg2; - } + arg2 = (Client__Handle *)jarg2; result = (GoUint32)SKY_api_NewClient(arg1,arg2); jresult = result; return jresult; @@ -3015,11 +4343,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CSRF(void * ja unsigned int jresult ; Client__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_api_Client_CSRF(arg1,arg2); jresult = result; @@ -3031,11 +4363,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Version(void * unsigned int jresult ; Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; { jarg2 = (long*)&arg2; } @@ -3049,11 +4385,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Outputs(void * unsigned int jresult ; Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; { jarg2 = (long*)&arg2; } @@ -3068,12 +4408,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_OutputsForAddr Client__Handle arg1 ; GoSlice arg2 ; Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; GoSlice *argp2 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); @@ -3094,12 +4438,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_OutputsForHash Client__Handle arg1 ; GoSlice arg2 ; Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; GoSlice *argp2 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); @@ -3119,11 +4467,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CoinSupply(voi unsigned int jresult ; Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; { jarg2 = (long*)&arg2; } @@ -3138,11 +4490,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockByHash(vo Client__Handle arg1 ; GoString arg2 ; Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); { jarg3 = (long*)&arg3; @@ -3158,11 +4514,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockBySeq(voi Client__Handle arg1 ; GoUint64 arg2 ; Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoUint64)jarg2; { jarg3 = (long*)&arg3; @@ -3179,11 +4539,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Blocks(void * GoUint64 arg2 ; GoUint64 arg3 ; Handle *arg4 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoUint64)jarg2; arg3 = (GoUint64)jarg3; { @@ -3200,11 +4564,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_LastBlocks(voi Client__Handle arg1 ; GoUint64 arg2 ; Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoUint64)jarg2; { jarg3 = (long*)&arg3; @@ -3219,11 +4587,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockchainMeta unsigned int jresult ; Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; { jarg2 = (long*)&arg2; } @@ -3237,11 +4609,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockchainProg unsigned int jresult ; Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; { jarg2 = (long*)&arg2; } @@ -3256,12 +4632,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Balance(void * Client__Handle arg1 ; GoSlice arg2 ; wallet__BalancePair *arg3 = (wallet__BalancePair *) 0 ; + Client__Handle *argp1 ; GoSlice *argp2 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); @@ -3280,11 +4660,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UxOut(void * j Client__Handle arg1 ; GoString arg2 ; Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); { jarg3 = (long*)&arg3; @@ -3300,11 +4684,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressUxOuts( Client__Handle arg1 ; GoString arg2 ; Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); { jarg3 = (long*)&arg3; @@ -3320,15 +4708,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Wallet(void * Client__Handle arg1 ; GoString arg2 ; WalletResponse__Handle *arg3 = (WalletResponse__Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); - { - jarg3 = (long*)&arg3; - } + arg3 = (WalletResponse__Handle *)jarg3; result = (GoUint32)SKY_api_Client_Wallet(arg1,arg2,arg3); jresult = result; return jresult; @@ -3339,14 +4729,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Wallets(void * unsigned int jresult ; Client__Handle arg1 ; Wallets__Handle *arg2 = (Wallets__Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; - } - { - jarg2 = (long*)&arg2; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; + arg2 = (Wallets__Handle *)jarg2; result = (GoUint32)SKY_api_Client_Wallets(arg1,arg2); jresult = result; return jresult; @@ -3360,17 +4752,19 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateUnencryp GoString arg3 ; GoInt arg4 ; WalletResponse__Handle *arg5 = (WalletResponse__Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); (&arg3)->p=jarg3;(&arg3)->n=strlen(jarg3); arg4 = (GoInt)jarg4; - { - jarg5 = (long*)&arg5; - } + arg5 = (WalletResponse__Handle *)jarg5; result = (GoUint32)SKY_api_Client_CreateUnencryptedWallet(arg1,arg2,arg3,arg4,arg5); jresult = result; return jresult; @@ -3385,18 +4779,20 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateEncrypte GoString arg4 ; GoInt arg5 ; WalletResponse__Handle *arg6 = (WalletResponse__Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); (&arg3)->p=jarg3;(&arg3)->n=strlen(jarg3); (&arg4)->p=jarg4;(&arg4)->n=strlen(jarg4); arg5 = (GoInt)jarg5; - { - jarg6 = (long*)&arg6; - } + arg6 = (WalletResponse__Handle *)jarg6; result = (GoUint32)SKY_api_Client_CreateEncryptedWallet(arg1,arg2,arg3,arg4,arg5,arg6); jresult = result; return jresult; @@ -3410,17 +4806,19 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NewWalletAddre GoInt arg3 ; GoString arg4 ; Strings__Handle *arg5 = (Strings__Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); arg3 = (GoInt)jarg3; (&arg4)->p=jarg4;(&arg4)->n=strlen(jarg4); - { - jarg5 = (long*)&arg5; - } + arg5 = (Strings__Handle *)jarg5; result = (GoUint32)SKY_api_Client_NewWalletAddress(arg1,arg2,arg3,arg4,arg5); jresult = result; return jresult; @@ -3432,11 +4830,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_WalletBalance( Client__Handle arg1 ; GoString arg2 ; wallet__BalancePair *arg3 = (wallet__BalancePair *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); arg3 = (wallet__BalancePair *)jarg3; result = (GoUint32)SKY_api_Client_WalletBalance(arg1,arg2,arg3); @@ -3453,11 +4855,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Spend(void * j GoUint64 arg4 ; GoString arg5 ; SpendResult_Handle *arg6 = (SpendResult_Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); (&arg3)->p=jarg3;(&arg3)->n=strlen(jarg3); arg4 = (GoUint64)jarg4; @@ -3474,17 +4880,19 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_CreateTransact Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; CreateTransactionResponse__Handle *arg3 = (CreateTransactionResponse__Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; { jarg2 = (long*)&arg2; } - { - jarg3 = (long*)&arg3; - } + arg3 = (CreateTransactionResponse__Handle *)jarg3; result = (GoUint32)SKY_api_Client_CreateTransaction(arg1,arg2,arg3); jresult = result; return jresult; @@ -3496,11 +4904,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UpdateWallet(v Client__Handle arg1 ; GoString arg2 ; GoString arg3 ; + Client__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); (&arg3)->p=jarg3;(&arg3)->n=strlen(jarg3); result = (GoUint32)SKY_api_Client_UpdateWallet(arg1,arg2,arg3); @@ -3513,11 +4925,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_WalletFolderNa unsigned int jresult ; Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; { jarg2 = (long*)&arg2; } @@ -3532,11 +4948,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NewSeed(void * Client__Handle arg1 ; GoInt arg2 ; GoString_ *arg3 = (GoString_ *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoInt)jarg2; arg3 = (GoString_ *)jarg3; result = (GoUint32)SKY_api_Client_NewSeed(arg1,arg2,arg3); @@ -3551,11 +4971,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_GetWalletSeed( GoString arg2 ; GoString arg3 ; GoString_ *arg4 = (GoString_ *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); (&arg3)->p=jarg3;(&arg3)->n=strlen(jarg3); arg4 = (GoString_ *)jarg4; @@ -3570,11 +4994,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkConnect Client__Handle arg1 ; GoString arg2 ; Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); { jarg3 = (long*)&arg3; @@ -3589,11 +5017,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkConnect unsigned int jresult ; Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; { jarg2 = (long*)&arg2; } @@ -3607,11 +5039,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkDefault unsigned int jresult ; Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; { jarg2 = (long*)&arg2; } @@ -3625,11 +5061,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkTrusted unsigned int jresult ; Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; { jarg2 = (long*)&arg2; } @@ -3643,11 +5083,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkExchang unsigned int jresult ; Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; { jarg2 = (long*)&arg2; } @@ -3661,11 +5105,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_PendingTransac unsigned int jresult ; Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; { jarg2 = (long*)&arg2; } @@ -3680,11 +5128,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Transaction(vo Client__Handle arg1 ; GoString arg2 ; Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); { jarg3 = (long*)&arg3; @@ -3700,12 +5152,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Transactions(v Client__Handle arg1 ; GoSlice arg2 ; Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; GoSlice *argp2 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); @@ -3726,12 +5182,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_ConfirmedTrans Client__Handle arg1 ; GoSlice arg2 ; Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; GoSlice *argp2 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); @@ -3752,12 +5212,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UnconfirmedTra Client__Handle arg1 ; GoSlice arg2 ; Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; GoSlice *argp2 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); @@ -3778,14 +5242,22 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_InjectTransact Client__Handle arg1 ; Transaction__Handle arg2 ; GoString_ *arg3 = (GoString_ *) 0 ; + Client__Handle *argp1 ; + Transaction__Handle *argp2 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } - { - jarg2 = (long*)&arg2; + arg1 = *argp1; + argp2 = (Transaction__Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; } + arg2 = *argp2; arg3 = (GoString_ *)jarg3; result = (GoUint32)SKY_api_Client_InjectTransaction(arg1,arg2,arg3); jresult = result; @@ -3797,11 +5269,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_ResendUnconfir unsigned int jresult ; Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; { jarg2 = (long*)&arg2; } @@ -3816,11 +5292,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_RawTransaction Client__Handle arg1 ; GoString arg2 ; GoString_ *arg3 = (GoString_ *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); arg3 = (GoString_ *)jarg3; result = (GoUint32)SKY_api_Client_RawTransaction(arg1,arg2,arg3); @@ -3834,11 +5314,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressTransac Client__Handle arg1 ; GoString arg2 ; Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); { jarg3 = (long*)&arg3; @@ -3854,11 +5338,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Richlist(void Client__Handle arg1 ; api__RichlistParams *arg2 = (api__RichlistParams *) 0 ; Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (api__RichlistParams *)jarg2; { jarg3 = (long*)&arg3; @@ -3873,11 +5361,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_AddressCount(v unsigned int jresult ; Client__Handle arg1 ; GoUint64 *arg2 = (GoUint64 *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoUint64 *)jarg2; result = (GoUint32)SKY_api_Client_AddressCount(arg1,arg2); jresult = result; @@ -3889,11 +5381,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_UnloadWallet(v unsigned int jresult ; Client__Handle arg1 ; GoString arg2 ; + Client__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); result = (GoUint32)SKY_api_Client_UnloadWallet(arg1,arg2); jresult = result; @@ -3905,11 +5401,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Health(void * unsigned int jresult ; Client__Handle arg1 ; Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; { jarg2 = (long*)&arg2; } @@ -3925,16 +5425,18 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_EncryptWallet( GoString arg2 ; GoString arg3 ; WalletResponse__Handle *arg4 = (WalletResponse__Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); (&arg3)->p=jarg3;(&arg3)->n=strlen(jarg3); - { - jarg4 = (long*)&arg4; - } + arg4 = (WalletResponse__Handle *)jarg4; result = (GoUint32)SKY_api_Client_EncryptWallet(arg1,arg2,arg3,arg4); jresult = result; return jresult; @@ -3947,16 +5449,18 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_DecryptWallet( GoString arg2 ; GoString arg3 ; WalletResponse__Handle *arg4 = (WalletResponse__Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); (&arg3)->p=jarg3;(&arg3)->n=strlen(jarg3); - { - jarg4 = (long*)&arg4; - } + arg4 = (WalletResponse__Handle *)jarg4; result = (GoUint32)SKY_api_Client_DecryptWallet(arg1,arg2,arg3,arg4); jresult = result; return jresult; @@ -4133,14 +5637,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewWalletResponse(voi unsigned int jresult ; Wallet__Handle arg1 ; WalletResponse__Handle *arg2 = (WalletResponse__Handle *) 0 ; + Wallet__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; - } - { - jarg2 = (long*)&arg2; + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; } + arg1 = *argp1; + arg2 = (WalletResponse__Handle *)jarg2; result = (GoUint32)SKY_api_NewWalletResponse(arg1,arg2); jresult = result; return jresult; @@ -4152,21 +5658,23 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreateTransactionR Transaction__Handle arg1 ; GoSlice arg2 ; CreateTransactionResponse__Handle *arg3 = (CreateTransactionResponse__Handle *) 0 ; + Transaction__Handle *argp1 ; GoSlice *argp2 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; } + arg1 = *argp1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg2 = *argp2; - { - jarg3 = (long*)&arg3; - } + arg3 = (CreateTransactionResponse__Handle *)jarg3; result = (GoUint32)SKY_api_NewCreateTransactionResponse(arg1,arg2,arg3); jresult = result; return jresult; @@ -4178,21 +5686,23 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreatedTransaction Transaction__Handle arg1 ; GoSlice arg2 ; CreatedTransaction__Handle *arg3 = (CreatedTransaction__Handle *) 0 ; + Transaction__Handle *argp1 ; GoSlice *argp2 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; } + arg1 = *argp1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } - arg2 = *argp2; - { - jarg3 = (long*)&arg3; - } + arg2 = *argp2; + arg3 = (CreatedTransaction__Handle *)jarg3; result = (GoUint32)SKY_api_NewCreatedTransaction(arg1,arg2,arg3); jresult = result; return jresult; @@ -4203,14 +5713,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_CreatedTransaction_To unsigned int jresult ; CreatedTransaction__Handle arg1 ; Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; + CreatedTransaction__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; - } - { - jarg2 = (long*)&arg2; + argp1 = (CreatedTransaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null CreatedTransaction__Handle", 0); + return 0; } + arg1 = *argp1; + arg2 = (Transaction__Handle *)jarg2; result = (GoUint32)SKY_api_CreatedTransaction_ToTransaction(arg1,arg2); jresult = result; return jresult; @@ -4226,9 +5738,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreatedTransaction arg1 = (coin__TransactionOutput *)jarg1; arg2 = (cipher__SHA256 *)jarg2; - { - jarg3 = (long*)&arg3; - } + arg3 = (CreatedTransactionOutput__Handle *)jarg3; result = (GoUint32)SKY_api_NewCreatedTransactionOutput(arg1,(GoUint8_ (*)[32])arg2,arg3); jresult = result; return jresult; @@ -4242,9 +5752,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewCreatedTransaction GoUint32 result; arg1 = (wallet__UxBalance *)jarg1; - { - jarg2 = (long*)&arg2; - } + arg2 = (CreatedTransactionInput__Handle *)jarg2; result = (GoUint32)SKY_api_NewCreatedTransactionInput(arg1,arg2); jresult = result; return jresult; @@ -4274,15 +5782,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewWallet(char* ja GoString arg1 ; Options__Handle arg2 ; Wallet__Handle *arg3 = (Wallet__Handle *) 0 ; + Options__Handle *argp2 ; GoUint32 result; (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); - { - jarg2 = (long*)&arg2; - } - { - jarg3 = (long*)&arg3; + argp2 = (Options__Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Options__Handle", 0); + return 0; } + arg2 = *argp2; + arg3 = (Wallet__Handle *)jarg3; result = (GoUint32)SKY_wallet_NewWallet(arg1,arg2,arg3); jresult = result; return jresult; @@ -4294,12 +5804,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Lock(void * Wallet__Handle arg1 ; GoSlice arg2 ; GoString arg3 ; + Wallet__Handle *argp1 ; GoSlice *argp2 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; } + arg1 = *argp1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); @@ -4318,21 +5832,23 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Unlock(void Wallet__Handle arg1 ; GoSlice arg2 ; Wallet__Handle *arg3 = (Wallet__Handle *) 0 ; + Wallet__Handle *argp1 ; GoSlice *argp2 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; } + arg1 = *argp1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg2 = *argp2; - { - jarg3 = (long*)&arg3; - } + arg3 = (Wallet__Handle *)jarg3; result = (GoUint32)SKY_wallet_Wallet_Unlock(arg1,arg2,arg3); jresult = result; return jresult; @@ -4346,9 +5862,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Load(char* jarg1, GoUint32 result; (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); - { - jarg2 = (long*)&arg2; - } + arg2 = (Wallet__Handle *)jarg2; result = (GoUint32)SKY_wallet_Load(arg1,arg2); jresult = result; return jresult; @@ -4359,11 +5873,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Save(void * unsigned int jresult ; Wallet__Handle arg1 ; GoString arg2 ; + Wallet__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; } + arg1 = *argp1; (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); result = (GoUint32)SKY_wallet_Wallet_Save(arg1,arg2); jresult = result; @@ -4374,11 +5892,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Save(void * SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Validate(void * jarg1) { unsigned int jresult ; Wallet__Handle arg1 ; + Wallet__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; } + arg1 = *argp1; result = (GoUint32)SKY_wallet_Wallet_Validate(arg1); jresult = result; return jresult; @@ -4389,11 +5911,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Type(void * unsigned int jresult ; Wallet__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; + Wallet__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_wallet_Wallet_Type(arg1,arg2); jresult = result; @@ -4405,11 +5931,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Version(voi unsigned int jresult ; Wallet__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; + Wallet__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_wallet_Wallet_Version(arg1,arg2); jresult = result; @@ -4421,11 +5951,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Filename(vo unsigned int jresult ; Wallet__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; + Wallet__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_wallet_Wallet_Filename(arg1,arg2); jresult = result; @@ -4437,11 +5971,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_Label(void unsigned int jresult ; Wallet__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; + Wallet__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_wallet_Wallet_Label(arg1,arg2); jresult = result; @@ -4453,11 +5991,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_IsEncrypted unsigned int jresult ; Wallet__Handle arg1 ; GoUint8 *arg2 = (GoUint8 *) 0 ; + Wallet__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoUint8 *)jarg2; result = (GoUint32)SKY_wallet_Wallet_IsEncrypted(arg1,arg2); jresult = result; @@ -4470,11 +6012,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_GenerateAdd Wallet__Handle arg1 ; GoUint64 arg2 ; coin__UxArray *arg3 = (coin__UxArray *) 0 ; + Wallet__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoUint64)jarg2; arg3 = (coin__UxArray *)jarg3; result = (GoUint32)SKY_wallet_Wallet_GenerateAddresses(arg1,arg2,arg3); @@ -4487,11 +6033,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_GetAddresse unsigned int jresult ; Wallet__Handle arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; + Wallet__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (coin__UxArray *)jarg2; result = (GoUint32)SKY_wallet_Wallet_GetAddresses(arg1,arg2); jresult = result; @@ -4505,11 +6055,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_GetEntry(vo cipher__Address *arg2 = (cipher__Address *) 0 ; wallet__Entry *arg3 = (wallet__Entry *) 0 ; GoUint8 *arg4 = (GoUint8 *) 0 ; + Wallet__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (cipher__Address *)jarg2; arg3 = (wallet__Entry *)jarg3; arg4 = (GoUint8 *)jarg4; @@ -4523,11 +6077,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_AddEntry(vo unsigned int jresult ; Wallet__Handle arg1 ; wallet__Entry *arg2 = (wallet__Entry *) 0 ; + Wallet__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (wallet__Entry *)jarg2; result = (GoUint32)SKY_wallet_Wallet_AddEntry(arg1,arg2); jresult = result; @@ -4664,11 +6222,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CheckWalletBalance(vo WebRpcClient__Handle arg1 ; GoString arg2 ; BalanceResult_Handle *arg3 = (BalanceResult_Handle *) 0 ; + WebRpcClient__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (WebRpcClient__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + return 0; } + arg1 = *argp1; (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); arg3 = (BalanceResult_Handle *)jarg3; result = (GoUint32)SKY_cli_CheckWalletBalance(arg1,arg2,arg3); @@ -4682,12 +6244,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetBalanceOfAddresses WebRpcClient__Handle arg1 ; GoSlice arg2 ; BalanceResult_Handle *arg3 = (BalanceResult_Handle *) 0 ; + WebRpcClient__Handle *argp1 ; GoSlice *argp2 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (WebRpcClient__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + return 0; } + arg1 = *argp1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); @@ -4708,9 +6274,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewReadableEntry(v GoUint32 result; arg1 = (wallet__Entry *)jarg1; - { - jarg2 = (long*)&arg2; - } + arg2 = (ReadableEntry__Handle *)jarg2; result = (GoUint32)SKY_wallet_NewReadableEntry(arg1,arg2); jresult = result; return jresult; @@ -4724,9 +6288,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_LoadReadableEntry( GoUint32 result; (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); - { - jarg2 = (long*)&arg2; - } + arg2 = (ReadableEntry__Handle *)jarg2; result = (GoUint32)SKY_wallet_LoadReadableEntry(arg1,arg2); jresult = result; return jresult; @@ -4740,9 +6302,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewReadableEntryFr GoUint32 result; (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); - { - jarg2 = (long*)&arg2; - } + arg2 = (ReadableEntry__Handle *)jarg2; result = (GoUint32)SKY_wallet_NewReadableEntryFromPubkey(arg1,arg2); jresult = result; return jresult; @@ -4753,11 +6313,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableEntry_Save unsigned int jresult ; ReadableEntry__Handle arg1 ; GoString arg2 ; + ReadableEntry__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (ReadableEntry__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null ReadableEntry__Handle", 0); + return 0; } + arg1 = *argp1; (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); result = (GoUint32)SKY_wallet_ReadableEntry_Save(arg1,arg2); jresult = result; @@ -4772,9 +6336,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_LoadReadableWallet GoUint32 result; (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); - { - jarg2 = (long*)&arg2; - } + arg2 = (ReadableWallet__Handle *)jarg2; result = (GoUint32)SKY_wallet_LoadReadableWallet(arg1,arg2); jresult = result; return jresult; @@ -4785,11 +6347,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableWallet_Sav unsigned int jresult ; ReadableWallet__Handle arg1 ; GoString arg2 ; + ReadableWallet__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (ReadableWallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null ReadableWallet__Handle", 0); + return 0; } + arg1 = *argp1; (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); result = (GoUint32)SKY_wallet_ReadableWallet_Save(arg1,arg2); jresult = result; @@ -4801,11 +6367,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableWallet_Loa unsigned int jresult ; ReadableWallet__Handle arg1 ; GoString arg2 ; + ReadableWallet__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (ReadableWallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null ReadableWallet__Handle", 0); + return 0; } + arg1 = *argp1; (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); result = (GoUint32)SKY_wallet_ReadableWallet_Load(arg1,arg2); jresult = result; @@ -4816,11 +6386,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableWallet_Loa SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableWallet_Erase(void * jarg1) { unsigned int jresult ; ReadableWallet__Handle arg1 ; + ReadableWallet__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (ReadableWallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null ReadableWallet__Handle", 0); + return 0; } + arg1 = *argp1; result = (GoUint32)SKY_wallet_ReadableWallet_Erase(arg1); jresult = result; return jresult; @@ -5190,13 +6764,9 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GenerateWallet(char* GoUint32 result; (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); - { - jarg2 = (long*)&arg2; - } + arg2 = (Options__Handle *)jarg2; arg3 = (GoUint64)jarg3; - { - jarg4 = (long*)&arg4; - } + arg4 = (Wallet__Handle *)jarg4; result = (GoUint32)SKY_cli_GenerateWallet(arg1,arg2,arg3,arg4); jresult = result; return jresult; @@ -5222,9 +6792,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_NewClient(char* ja GoUint32 result; (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); - { - jarg2 = (long*)&arg2; - } + arg2 = (WebRpcClient__Handle *)jarg2; result = (GoUint32)SKY_webrpc_NewClient(arg1,arg2); jresult = result; return jresult; @@ -5235,11 +6803,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_CSRF(void * unsigned int jresult ; WebRpcClient__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; + WebRpcClient__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (WebRpcClient__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_webrpc_Client_CSRF(arg1,arg2); jresult = result; @@ -5252,14 +6824,22 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_InjectTrans WebRpcClient__Handle arg1 ; Transaction__Handle arg2 ; GoString_ *arg3 = (GoString_ *) 0 ; + WebRpcClient__Handle *argp1 ; + Transaction__Handle *argp2 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (WebRpcClient__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + return 0; } - { - jarg2 = (long*)&arg2; + arg1 = *argp1; + argp2 = (Transaction__Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; } + arg2 = *argp2; arg3 = (GoString_ *)jarg3; result = (GoUint32)SKY_webrpc_Client_InjectTransaction(arg1,arg2,arg3); jresult = result; @@ -5271,11 +6851,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetStatus(v unsigned int jresult ; WebRpcClient__Handle arg1 ; StatusResult_Handle *arg2 = (StatusResult_Handle *) 0 ; + WebRpcClient__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (WebRpcClient__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (StatusResult_Handle *)jarg2; result = (GoUint32)SKY_webrpc_Client_GetStatus(arg1,arg2); jresult = result; @@ -5288,11 +6872,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetTransact WebRpcClient__Handle arg1 ; GoString arg2 ; TransactionResult_Handle *arg3 = (TransactionResult_Handle *) 0 ; + WebRpcClient__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (WebRpcClient__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + return 0; } + arg1 = *argp1; (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); arg3 = (TransactionResult_Handle *)jarg3; result = (GoUint32)SKY_webrpc_Client_GetTransactionByID(arg1,arg2,arg3); @@ -5306,12 +6894,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetAddressU WebRpcClient__Handle arg1 ; GoSlice arg2 ; coin__UxArray *arg3 = (coin__UxArray *) 0 ; + WebRpcClient__Handle *argp1 ; GoSlice *argp2 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (WebRpcClient__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + return 0; } + arg1 = *argp1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); @@ -5331,11 +6923,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetBlocks(v GoUint64 arg2 ; GoUint64 arg3 ; coin__UxArray *arg4 = (coin__UxArray *) 0 ; + WebRpcClient__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (WebRpcClient__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoUint64)jarg2; arg3 = (GoUint64)jarg3; arg4 = (coin__UxArray *)jarg4; @@ -5350,12 +6946,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetBlocksBy WebRpcClient__Handle arg1 ; GoSlice arg2 ; coin__UxArray *arg3 = (coin__UxArray *) 0 ; + WebRpcClient__Handle *argp1 ; GoSlice *argp2 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (WebRpcClient__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + return 0; } + arg1 = *argp1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); @@ -5374,11 +6974,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetLastBloc WebRpcClient__Handle arg1 ; GoUint64 arg2 ; coin__UxArray *arg3 = (coin__UxArray *) 0 ; + WebRpcClient__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (WebRpcClient__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoUint64)jarg2; arg3 = (coin__UxArray *)jarg3; result = (GoUint32)SKY_webrpc_Client_GetLastBlocks(arg1,arg2,arg3); @@ -6134,9 +7738,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Cre Signature_Handle *arg1 = (Signature_Handle *) 0 ; GoUint32 result; - { - jarg1 = (long*)&arg1; - } + arg1 = (Signature_Handle *)jarg1; result = (GoUint32)SKY_secp256k1go_Signature_Create(arg1); jresult = result; return jresult; @@ -6147,14 +7749,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Get unsigned int jresult ; Signature_Handle arg1 ; Number_Handle *arg2 = (Number_Handle *) 0 ; + Signature_Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; - } - { - jarg2 = (long*)&arg2; + argp1 = (Signature_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); + return 0; } + arg1 = *argp1; + arg2 = (Number_Handle *)jarg2; result = (GoUint32)SKY_secp256k1go_Signature_GetR(arg1,arg2); jresult = result; return jresult; @@ -6165,14 +7769,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Get unsigned int jresult ; Signature_Handle arg1 ; Number_Handle *arg2 = (Number_Handle *) 0 ; + Signature_Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; - } - { - jarg2 = (long*)&arg2; + argp1 = (Signature_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); + return 0; } + arg1 = *argp1; + arg2 = (Number_Handle *)jarg2; result = (GoUint32)SKY_secp256k1go_Signature_GetS(arg1,arg2); jresult = result; return jresult; @@ -6183,11 +7789,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Pri unsigned int jresult ; Signature_Handle arg1 ; GoString arg2 ; + Signature_Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Signature_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); + return 0; } + arg1 = *argp1; (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); result = (GoUint32)SKY_secp256k1go_Signature_Print(arg1,arg2); jresult = result; @@ -6201,15 +7811,23 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Ver secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; Number_Handle arg3 ; GoUint8 *arg4 = (GoUint8 *) 0 ; + Signature_Handle *argp1 ; + Number_Handle *argp3 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Signature_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (secp256k1go__XY *)jarg2; - { - jarg3 = (long*)&arg3; + argp3 = (Number_Handle *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); + return 0; } + arg3 = *argp3; arg4 = (GoUint8 *)jarg4; result = (GoUint32)SKY_secp256k1go_Signature_Verify(arg1,arg2,arg3,arg4); jresult = result; @@ -6224,15 +7842,23 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Rec Number_Handle arg3 ; GoInt arg4 ; GoUint8 *arg5 = (GoUint8 *) 0 ; + Signature_Handle *argp1 ; + Number_Handle *argp3 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Signature_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (secp256k1go__XY *)jarg2; - { - jarg3 = (long*)&arg3; + argp3 = (Number_Handle *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); + return 0; } + arg3 = *argp3; arg4 = (GoInt)jarg4; arg5 = (GoUint8 *)jarg5; result = (GoUint32)SKY_secp256k1go_Signature_Recover(arg1,arg2,arg3,arg4,arg5); @@ -6249,20 +7875,36 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Sig Number_Handle arg4 ; GoInt *arg5 = (GoInt *) 0 ; GoInt *arg6 = (GoInt *) 0 ; + Signature_Handle *argp1 ; + Number_Handle *argp2 ; + Number_Handle *argp3 ; + Number_Handle *argp4 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Signature_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); + return 0; } - { - jarg2 = (long*)&arg2; + arg1 = *argp1; + argp2 = (Number_Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); + return 0; } - { - jarg3 = (long*)&arg3; + arg2 = *argp2; + argp3 = (Number_Handle *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); + return 0; } - { - jarg4 = (long*)&arg4; + arg3 = *argp3; + argp4 = (Number_Handle *)jarg4; + if (!argp4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); + return 0; } + arg4 = *argp4; arg5 = (GoInt *)jarg5; arg6 = (GoInt *)jarg6; result = (GoUint32)SKY_secp256k1go_Signature_Sign(arg1,arg2,arg3,arg4,arg5,arg6); @@ -6275,12 +7917,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Par unsigned int jresult ; Signature_Handle arg1 ; GoSlice arg2 ; + Signature_Handle *argp1 ; GoSlice *argp2 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Signature_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); + return 0; } + arg1 = *argp1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); @@ -6297,11 +7943,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Byt unsigned int jresult ; Signature_Handle arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; + Signature_Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Signature_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (coin__UxArray *)jarg2; result = (GoUint32)SKY_secp256k1go_Signature_Bytes(arg1,arg2); jresult = result; @@ -6313,11 +7963,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_App_Run(void * jarg1, unsigned int jresult ; App__Handle arg1 ; GoString arg2 ; + App__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (App__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null App__Handle", 0); + return 0; } + arg1 = *argp1; (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); result = (GoUint32)SKY_cli_App_Run(arg1,arg2); jresult = result; @@ -6329,11 +7983,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_GetCoin(void * unsigned int jresult ; Config__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; + Config__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Config__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Config__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_cli_Config_GetCoin(arg1,arg2); jresult = result; @@ -6345,11 +8003,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_GetRPCAddress( unsigned int jresult ; Config__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; + Config__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Config__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Config__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_cli_Config_GetRPCAddress(arg1,arg2); jresult = result; @@ -6361,14 +8023,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_RPCClientFromApp(void unsigned int jresult ; App__Handle arg1 ; WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; + App__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; - } - { - jarg2 = (long*)&arg2; + argp1 = (App__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null App__Handle", 0); + return 0; } + arg1 = *argp1; + arg2 = (WebRpcClient__Handle *)jarg2; result = (GoUint32)SKY_cli_RPCClientFromApp(arg1,arg2); jresult = result; return jresult; @@ -6688,9 +8352,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateAddresses(ch (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); arg3 = (GoInt)jarg3; arg4 = (GoUint8)jarg4; - { - jarg5 = (long*)&arg5; - } + arg5 = (ReadableWallet__Handle *)jarg5; result = (GoUint32)SKY_wallet_CreateAddresses(arg1,arg2,arg3,arg4,arg5); jresult = result; return jresult; @@ -6706,9 +8368,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_GetSkycoinWalletEn arg1 = (cipher__PubKey *)jarg1; arg2 = (cipher__SecKey *)jarg2; - { - jarg3 = (long*)&arg3; - } + arg3 = (ReadableEntry__Handle *)jarg3; result = (GoUint32)SKY_wallet_GetSkycoinWalletEntry((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2,arg3); jresult = result; return jresult; @@ -6724,9 +8384,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_GetBitcoinWalletEn arg1 = (cipher__PubKey *)jarg1; arg2 = (cipher__SecKey *)jarg2; - { - jarg3 = (long*)&arg3; - } + arg3 = (ReadableEntry__Handle *)jarg3; result = (GoUint32)SKY_wallet_GetBitcoinWalletEntry((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2,arg3); jresult = result; return jresult; @@ -6823,16 +8481,24 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_ECmult(vo secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; Number_Handle arg3 ; Number_Handle arg4 ; + Number_Handle *argp3 ; + Number_Handle *argp4 ; GoUint32 result; arg1 = (secp256k1go__XYZ *)jarg1; arg2 = (secp256k1go__XYZ *)jarg2; - { - jarg3 = (long*)&arg3; + argp3 = (Number_Handle *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); + return 0; } - { - jarg4 = (long*)&arg4; + arg3 = *argp3; + argp4 = (Number_Handle *)jarg4; + if (!argp4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); + return 0; } + arg4 = *argp4; result = (GoUint32)SKY_secp256k1go_XYZ_ECmult(arg1,arg2,arg3,arg4); jresult = result; return jresult; @@ -6903,12 +8569,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_ECmultGen(voi unsigned int jresult ; secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; Number_Handle arg2 ; + Number_Handle *argp2 ; GoUint32 result; arg1 = (secp256k1go__XYZ *)jarg1; - { - jarg2 = (long*)&arg2; + argp2 = (Number_Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); + return 0; } + arg2 = *argp2; result = (GoUint32)SKY_secp256k1go_ECmultGen(arg1,arg2); jresult = result; return jresult; @@ -7013,16 +8683,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CryptoTypeFromStri } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_handle_close(void * jarg1) { - Handle arg1 ; - - { - jarg1 = (long*)&arg1; - } - SKY_handle_close(arg1); -} - - SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_handle_copy(void * jarg1, void * jarg2) { unsigned int jresult ; Handle arg1 ; @@ -7499,11 +9159,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Strings_GetCount(v unsigned int jresult ; Strings__Handle arg1 ; GoUint32 *arg2 = (GoUint32 *) 0 ; + Strings__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Strings__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Strings__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoUint32 *)jarg2; result = (GoUint32)SKY_Handle_Strings_GetCount(arg1,arg2); jresult = result; @@ -7514,11 +9178,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Strings_GetCount(v SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Strings_Sort(void * jarg1) { unsigned int jresult ; Strings__Handle arg1 ; + Strings__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Strings__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Strings__Handle", 0); + return 0; } + arg1 = *argp1; result = (GoUint32)SKY_Handle_Strings_Sort(arg1); jresult = result; return jresult; @@ -7530,11 +9198,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_Handle_Strings_GetAt(void Strings__Handle arg1 ; GoInt arg2 ; GoString_ *arg3 = (GoString_ *) 0 ; + Strings__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Strings__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Strings__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoInt)jarg2; arg3 = (GoString_ *)jarg3; result = (GoUint32)SKY_Handle_Strings_GetAt(arg1,arg2,arg3); @@ -7547,11 +9219,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWall unsigned int jresult ; Client__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; + Client__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_api_Handle_Client_GetWalletDir(arg1,arg2); jresult = result; @@ -7563,11 +9239,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWall unsigned int jresult ; WalletResponse__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; + WalletResponse__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (WalletResponse__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_api_Handle_Client_GetWalletFileName(arg1,arg2); jresult = result; @@ -7579,11 +9259,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWall unsigned int jresult ; WalletResponse__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; + WalletResponse__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (WalletResponse__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_api_Handle_Client_GetWalletLabel(arg1,arg2); jresult = result; @@ -7596,14 +9280,22 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWall Client__Handle arg1 ; WalletResponse__Handle arg2 ; GoString_ *arg3 = (GoString_ *) 0 ; + Client__Handle *argp1 ; + WalletResponse__Handle *argp2 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } - { - jarg2 = (long*)&arg2; + arg1 = *argp1; + argp2 = (WalletResponse__Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); + return 0; } + arg2 = *argp2; arg3 = (GoString_ *)jarg3; result = (GoUint32)SKY_api_Handle_Client_GetWalletFullPath(arg1,arg2,arg3); jresult = result; @@ -7615,11 +9307,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletMeta( unsigned int jresult ; Wallet__Handle arg1 ; GoStringMap_ *arg2 = (GoStringMap_ *) 0 ; + Wallet__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoStringMap_ *)jarg2; result = (GoUint32)SKY_api_Handle_GetWalletMeta(arg1,arg2); jresult = result; @@ -7631,11 +9327,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletEntri unsigned int jresult ; Wallet__Handle arg1 ; GoUint32 *arg2 = (GoUint32 *) 0 ; + Wallet__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoUint32 *)jarg2; result = (GoUint32)SKY_api_Handle_GetWalletEntriesCount(arg1,arg2); jresult = result; @@ -7647,11 +9347,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_Client_GetWall unsigned int jresult ; WalletResponse__Handle arg1 ; GoUint32 *arg2 = (GoUint32 *) 0 ; + WalletResponse__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (WalletResponse__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoUint32 *)jarg2; result = (GoUint32)SKY_api_Handle_Client_GetWalletResponseEntriesCount(arg1,arg2); jresult = result; @@ -7665,11 +9369,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletGetEntry GoUint32 arg2 ; cipher__Address *arg3 = (cipher__Address *) 0 ; cipher__PubKey *arg4 = (cipher__PubKey *) 0 ; + Wallet__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoUint32)jarg2; arg3 = (cipher__Address *)jarg3; arg4 = (cipher__PubKey *)jarg4; @@ -7685,11 +9393,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletResponse GoUint32 arg2 ; GoString_ *arg3 = (GoString_ *) 0 ; GoString_ *arg4 = (GoString_ *) 0 ; + WalletResponse__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (WalletResponse__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoUint32)jarg2; arg3 = (GoString_ *)jarg3; arg4 = (GoString_ *)jarg4; @@ -7703,11 +9415,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletResponse unsigned int jresult ; WalletResponse__Handle arg1 ; GoUint8 *arg2 = (GoUint8 *) 0 ; + WalletResponse__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (WalletResponse__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoUint8 *)jarg2; result = (GoUint32)SKY_api_Handle_WalletResponseIsEncrypted(arg1,arg2); jresult = result; @@ -7719,11 +9435,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletResponse unsigned int jresult ; WalletResponse__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; + WalletResponse__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (WalletResponse__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_api_Handle_WalletResponseGetCryptoType(arg1,arg2); jresult = result; @@ -7735,11 +9455,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletsRespons unsigned int jresult ; Wallets__Handle arg1 ; GoUint32 *arg2 = (GoUint32 *) 0 ; + Wallets__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Wallets__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallets__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoUint32 *)jarg2; result = (GoUint32)SKY_api_Handle_WalletsResponseGetCount(arg1,arg2); jresult = result; @@ -7752,15 +9476,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_WalletsRespons Wallets__Handle arg1 ; GoUint32 arg2 ; WalletResponse__Handle *arg3 = (WalletResponse__Handle *) 0 ; + Wallets__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Wallets__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallets__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoUint32)jarg2; - { - jarg3 = (long*)&arg3; - } + arg3 = (WalletResponse__Handle *)jarg3; result = (GoUint32)SKY_api_Handle_WalletsResponseGetAt(arg1,arg2,arg3); jresult = result; return jresult; @@ -7787,11 +9513,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletSeed( unsigned int jresult ; Wallet__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; + Wallet__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_api_Handle_GetWalletSeed(arg1,arg2); jresult = result; @@ -7803,11 +9533,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetWalletLastS unsigned int jresult ; Wallet__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; + Wallet__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_api_Handle_GetWalletLastSeed(arg1,arg2); jresult = result; @@ -7821,11 +9555,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetBuildInfoDa GoString_ *arg2 = (GoString_ *) 0 ; GoString_ *arg3 = (GoString_ *) 0 ; GoString_ *arg4 = (GoString_ *) 0 ; + BuildInfo_Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (BuildInfo_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null BuildInfo_Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoString_ *)jarg2; arg3 = (GoString_ *)jarg3; arg4 = (GoString_ *)jarg4; @@ -7908,9 +9646,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_Create Number_Handle *arg1 = (Number_Handle *) 0 ; GoUint32 result; - { - jarg1 = (long*)&arg1; - } + arg1 = (Number_Handle *)jarg1; result = (GoUint32)SKY_secp256k1go_Number_Create(arg1); jresult = result; return jresult; @@ -7921,11 +9657,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_Print( unsigned int jresult ; Number_Handle arg1 ; GoString arg2 ; + Number_Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Number_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); + return 0; } + arg1 = *argp1; (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); result = (GoUint32)SKY_secp256k1go_Number_Print(arg1,arg2); jresult = result; @@ -7937,11 +9677,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_SetHex unsigned int jresult ; Number_Handle arg1 ; GoString arg2 ; + Number_Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Number_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); + return 0; } + arg1 = *argp1; (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); result = (GoUint32)SKY_secp256k1go_Number_SetHex(arg1,arg2); jresult = result; @@ -7953,11 +9697,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_IsOdd( unsigned int jresult ; Number_Handle arg1 ; GoUint8 *arg2 = (GoUint8 *) 0 ; + Number_Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Number_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoUint8 *)jarg2; result = (GoUint32)SKY_secp256k1go_Number_IsOdd(arg1,arg2); jresult = result; @@ -7970,14 +9718,22 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_IsEqua Number_Handle arg1 ; Number_Handle arg2 ; GoUint8 *arg3 = (GoUint8 *) 0 ; + Number_Handle *argp1 ; + Number_Handle *argp2 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Number_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); + return 0; } - { - jarg2 = (long*)&arg2; + arg1 = *argp1; + argp2 = (Number_Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); + return 0; } + arg2 = *argp2; arg3 = (GoUint8 *)jarg3; result = (GoUint32)SKY_secp256k1go_Number_IsEqual(arg1,arg2,arg3); jresult = result; @@ -8490,9 +10246,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateOptionsHandl (&arg5)->p=jarg5;(&arg5)->n=strlen(jarg5); (&arg6)->p=jarg6;(&arg6)->n=strlen(jarg6); arg7 = (GoUint64)jarg7; - { - jarg8 = (long*)&arg8; - } + arg8 = (Options__Handle *)jarg8; result = (GoUint32)SKY_wallet_CreateOptionsHandle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); jresult = result; return jresult; @@ -8503,11 +10257,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_AddPrivateKey(void * unsigned int jresult ; Wallet__Handle arg1 ; GoString arg2 ; + Wallet__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Wallet__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; } + arg1 = *argp1; (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); result = (GoUint32)SKY_cli_AddPrivateKey(arg1,arg2); jresult = result; @@ -8981,11 +10739,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_VerifyTransactionFee( unsigned int jresult ; Transaction__Handle arg1 ; GoUint64 arg2 ; + Transaction__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoUint64)jarg2; result = (GoUint32)SKY_fee_VerifyTransactionFee(arg1,arg2); jresult = result; @@ -9041,11 +10803,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_TransactionFee(void * GoUint64 arg2 ; coin__UxArray *arg3 = (coin__UxArray *) 0 ; GoUint64 *arg4 = (GoUint64 *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoUint64)jarg2; arg3 = (coin__UxArray *)jarg3; arg4 = (GoUint64 *)jarg4; @@ -9060,9 +10826,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_LoadConfig(void * jar Config__Handle *arg1 = (Config__Handle *) 0 ; GoUint32 result; - { - jarg1 = (long*)&arg1; - } + arg1 = (Config__Handle *)jarg1; result = (GoUint32)SKY_cli_LoadConfig(arg1); jresult = result; return jresult; @@ -9073,11 +10837,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_FullWalletPath unsigned int jresult ; Config__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; + Config__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Config__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Config__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_cli_Config_FullWalletPath(arg1,arg2); jresult = result; @@ -9089,11 +10857,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_FullDBPath(voi unsigned int jresult ; Config__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; + Config__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Config__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Config__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_cli_Config_FullDBPath(arg1,arg2); jresult = result; @@ -9105,14 +10877,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_NewApp(void * jarg1, unsigned int jresult ; Config__Handle arg1 ; App__Handle *arg2 = (App__Handle *) 0 ; + Config__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; - } - { - jarg2 = (long*)&arg2; + argp1 = (Config__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Config__Handle", 0); + return 0; } + arg1 = *argp1; + arg2 = (App__Handle *)jarg2; result = (GoUint32)SKY_cli_NewApp(arg1,arg2); jresult = result; return jresult; @@ -9123,14 +10897,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_RPCClientFromContext( unsigned int jresult ; Context__Handle arg1 ; WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; + Context__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; - } - { - jarg2 = (long*)&arg2; + argp1 = (Context__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Context__Handle", 0); + return 0; } + arg1 = *argp1; + arg2 = (WebRpcClient__Handle *)jarg2; result = (GoUint32)SKY_cli_RPCClientFromContext(arg1,arg2); jresult = result; return jresult; @@ -9141,14 +10917,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_ConfigFromContext(voi unsigned int jresult ; Context__Handle arg1 ; Config__Handle *arg2 = (Config__Handle *) 0 ; + Context__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; - } - { - jarg2 = (long*)&arg2; + argp1 = (Context__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Context__Handle", 0); + return 0; } + arg1 = *argp1; + arg2 = (Config__Handle *)jarg2; result = (GoUint32)SKY_cli_ConfigFromContext(arg1,arg2); jresult = result; return jresult; @@ -9189,13 +10967,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromWallet GoSlice arg4 ; PasswordReader__Handle arg5 ; Transaction__Handle *arg6 = (Transaction__Handle *) 0 ; + WebRpcClient__Handle *argp1 ; GoSlice *argp4 ; PasswordReader__Handle *argp5 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (WebRpcClient__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + return 0; } + arg1 = *argp1; (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); (&arg3)->p=jarg3;(&arg3)->n=strlen(jarg3); argp4 = (GoSlice *)jarg4; @@ -9210,9 +10992,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromWallet return 0; } arg5 = *argp5; - { - jarg6 = (long*)&arg6; - } + arg6 = (Transaction__Handle *)jarg6; result = (GoUint32)SKY_cli_CreateRawTxFromWallet(arg1,arg2,arg3,arg4,arg5,arg6); jresult = result; return jresult; @@ -9228,13 +11008,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromAddres GoSlice arg5 ; PasswordReader__Handle arg6 ; Transaction__Handle *arg7 = (Transaction__Handle *) 0 ; + WebRpcClient__Handle *argp1 ; GoSlice *argp5 ; PasswordReader__Handle *argp6 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (WebRpcClient__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + return 0; } + arg1 = *argp1; (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); (&arg3)->p=jarg3;(&arg3)->n=strlen(jarg3); (&arg4)->p=jarg4;(&arg4)->n=strlen(jarg4); @@ -9250,9 +11034,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromAddres return 0; } arg6 = *argp6; - { - jarg7 = (long*)&arg7; - } + arg7 = (Transaction__Handle *)jarg7; result = (GoUint32)SKY_cli_CreateRawTxFromAddress(arg1,arg2,arg3,arg4,arg5,arg6,arg7); jresult = result; return jresult; @@ -9268,17 +11050,25 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTx(void * ja GoSlice arg5 ; GoSlice arg6 ; Transaction__Handle *arg7 = (Transaction__Handle *) 0 ; + WebRpcClient__Handle *argp1 ; + Wallet__Handle *argp2 ; GoSlice *argp3 ; GoSlice *argp5 ; GoSlice *argp6 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (WebRpcClient__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + return 0; } - { - jarg2 = (long*)&arg2; + arg1 = *argp1; + argp2 = (Wallet__Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); + return 0; } + arg2 = *argp2; argp3 = (GoSlice *)jarg3; if (!argp3) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); @@ -9298,9 +11088,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTx(void * ja return 0; } arg6 = *argp6; - { - jarg7 = (long*)&arg7; - } + arg7 = (Transaction__Handle *)jarg7; result = (GoUint32)SKY_cli_CreateRawTx(arg1,arg2,arg3,arg4,arg5,arg6,arg7); jresult = result; return jresult; @@ -9336,9 +11124,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_NewTransaction(void * return 0; } arg3 = *argp3; - { - jarg4 = (long*)&arg4; - } + arg4 = (Transaction__Handle *)jarg4; result = (GoUint32)SKY_cli_NewTransaction(arg1,arg2,arg3,arg4); jresult = result; return jresult; @@ -9408,11 +11194,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetWalletOutputsFromF WebRpcClient__Handle arg1 ; GoString arg2 ; ReadableOutputSet_Handle *arg3 = (ReadableOutputSet_Handle *) 0 ; + WebRpcClient__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (WebRpcClient__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + return 0; } + arg1 = *argp1; (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); arg3 = (ReadableOutputSet_Handle *)jarg3; result = (GoUint32)SKY_cli_GetWalletOutputsFromFile(arg1,arg2,arg3); @@ -9426,14 +11216,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetWalletOutputs(void WebRpcClient__Handle arg1 ; Wallet__Handle *arg2 = (Wallet__Handle *) 0 ; UnspentOutputsSummary_Handle *arg3 = (UnspentOutputsSummary_Handle *) 0 ; + WebRpcClient__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; - } - { - jarg2 = (long*)&arg2; + argp1 = (WebRpcClient__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + return 0; } + arg1 = *argp1; + arg2 = (Wallet__Handle *)jarg2; arg3 = (UnspentOutputsSummary_Handle *)jarg3; result = (GoUint32)SKY_cli_GetWalletOutputs(arg1,arg2,arg3); jresult = result; @@ -9970,9 +11762,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Create_Transaction(v Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; GoUint32 result; - { - jarg1 = (long*)&arg1; - } + arg1 = (Transaction__Handle *)jarg1; result = (GoUint32)SKY_coin_Create_Transaction(arg1); jresult = result; return jresult; @@ -9983,14 +11773,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Copy(voi unsigned int jresult ; Transaction__Handle arg1 ; Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; - } - { - jarg2 = (long*)&arg2; + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; } + arg1 = *argp1; + arg2 = (Transaction__Handle *)jarg2; result = (GoUint32)SKY_coin_Transaction_Copy(arg1,arg2); jresult = result; return jresult; @@ -10001,11 +11793,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetTransactionObject unsigned int jresult ; Transaction__Handle arg1 ; coin__Transaction **arg2 = (coin__Transaction **) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (coin__Transaction **)jarg2; result = (GoUint32)SKY_coin_GetTransactionObject(arg1,arg2); jresult = result; @@ -10017,11 +11813,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_ResetInp unsigned int jresult ; Transaction__Handle arg1 ; GoInt arg2 ; + Transaction__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoInt)jarg2; result = (GoUint32)SKY_coin_Transaction_ResetInputs(arg1,arg2); jresult = result; @@ -10033,11 +11833,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetInput unsigned int jresult ; Transaction__Handle arg1 ; GoInt *arg2 = (GoInt *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoInt *)jarg2; result = (GoUint32)SKY_coin_Transaction_GetInputsCount(arg1,arg2); jresult = result; @@ -10050,11 +11854,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetInput Transaction__Handle arg1 ; GoInt arg2 ; cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoInt)jarg2; arg3 = (cipher__SHA256 *)jarg3; result = (GoUint32)SKY_coin_Transaction_GetInputAt(arg1,arg2,(GoUint8_ (*)[32])arg3); @@ -10068,11 +11876,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SetInput Transaction__Handle arg1 ; GoInt arg2 ; cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoInt)jarg2; arg3 = (cipher__SHA256 *)jarg3; result = (GoUint32)SKY_coin_Transaction_SetInputAt(arg1,arg2,(GoUint8_ (*)[32])arg3); @@ -10085,11 +11897,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetOutpu unsigned int jresult ; Transaction__Handle arg1 ; GoInt *arg2 = (GoInt *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoInt *)jarg2; result = (GoUint32)SKY_coin_Transaction_GetOutputsCount(arg1,arg2); jresult = result; @@ -10102,11 +11918,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetOutpu Transaction__Handle arg1 ; GoInt arg2 ; coin__TransactionOutput *arg3 = (coin__TransactionOutput *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoInt)jarg2; arg3 = (coin__TransactionOutput *)jarg3; result = (GoUint32)SKY_coin_Transaction_GetOutputAt(arg1,arg2,arg3); @@ -10120,11 +11940,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SetOutpu Transaction__Handle arg1 ; GoInt arg2 ; coin__TransactionOutput *arg3 = (coin__TransactionOutput *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoInt)jarg2; arg3 = (coin__TransactionOutput *)jarg3; result = (GoUint32)SKY_coin_Transaction_SetOutputAt(arg1,arg2,arg3); @@ -10137,11 +11961,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetSigna unsigned int jresult ; Transaction__Handle arg1 ; GoInt *arg2 = (GoInt *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoInt *)jarg2; result = (GoUint32)SKY_coin_Transaction_GetSignaturesCount(arg1,arg2); jresult = result; @@ -10154,11 +11982,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetSigna Transaction__Handle arg1 ; GoInt arg2 ; cipher__Sig *arg3 = (cipher__Sig *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoInt)jarg2; arg3 = (cipher__Sig *)jarg3; result = (GoUint32)SKY_coin_Transaction_GetSignatureAt(arg1,arg2,(GoUint8_ (*)[65])arg3); @@ -10172,11 +12004,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SetSigna Transaction__Handle arg1 ; GoInt arg2 ; cipher__Sig *arg3 = (cipher__Sig *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoInt)jarg2; arg3 = (cipher__Sig *)jarg3; result = (GoUint32)SKY_coin_Transaction_SetSignatureAt(arg1,arg2,(GoUint8_ (*)[65])arg3); @@ -10189,11 +12025,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_PushSign unsigned int jresult ; Transaction__Handle arg1 ; cipher__Sig *arg2 = (cipher__Sig *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (cipher__Sig *)jarg2; result = (GoUint32)SKY_coin_Transaction_PushSignature(arg1,(GoUint8_ (*)[65])arg2); jresult = result; @@ -10205,11 +12045,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_ResetOut unsigned int jresult ; Transaction__Handle arg1 ; GoInt arg2 ; + Transaction__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoInt)jarg2; result = (GoUint32)SKY_coin_Transaction_ResetOutputs(arg1,arg2); jresult = result; @@ -10221,11 +12065,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_ResetSig unsigned int jresult ; Transaction__Handle arg1 ; GoInt arg2 ; + Transaction__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoInt)jarg2; result = (GoUint32)SKY_coin_Transaction_ResetSignatures(arg1,arg2); jresult = result; @@ -10236,11 +12084,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_ResetSig SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Verify(void * jarg1) { unsigned int jresult ; Transaction__Handle arg1 ; + Transaction__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; } + arg1 = *argp1; result = (GoUint32)SKY_coin_Transaction_Verify(arg1); jresult = result; return jresult; @@ -10251,11 +12103,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_VerifyIn unsigned int jresult ; Transaction__Handle arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (coin__UxArray *)jarg2; result = (GoUint32)SKY_coin_Transaction_VerifyInput(arg1,arg2); jresult = result; @@ -10268,11 +12124,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_PushInpu Transaction__Handle arg1 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; GoUint16 *arg3 = (GoUint16 *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (cipher__SHA256 *)jarg2; arg3 = (GoUint16 *)jarg3; result = (GoUint32)SKY_coin_Transaction_PushInput(arg1,(GoUint8_ (*)[32])arg2,arg3); @@ -10303,11 +12163,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_PushOutp cipher__Address *arg2 = (cipher__Address *) 0 ; GoUint64 arg3 ; GoUint64 arg4 ; + Transaction__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (cipher__Address *)jarg2; arg3 = (GoUint64)jarg3; arg4 = (GoUint64)jarg4; @@ -10321,12 +12185,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SignInpu unsigned int jresult ; Transaction__Handle arg1 ; GoSlice arg2 ; + Transaction__Handle *argp1 ; GoSlice *argp2 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; } + arg1 = *argp1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); @@ -10343,11 +12211,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Size(voi unsigned int jresult ; Transaction__Handle arg1 ; GoInt *arg2 = (GoInt *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoInt *)jarg2; result = (GoUint32)SKY_coin_Transaction_Size(arg1,arg2); jresult = result; @@ -10359,11 +12231,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Hash(voi unsigned int jresult ; Transaction__Handle arg1 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (cipher__SHA256 *)jarg2; result = (GoUint32)SKY_coin_Transaction_Hash(arg1,(GoUint8_ (*)[32])arg2); jresult = result; @@ -10376,11 +12252,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SizeHash Transaction__Handle arg1 ; GoInt *arg2 = (GoInt *) 0 ; cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoInt *)jarg2; arg3 = (cipher__SHA256 *)jarg3; result = (GoUint32)SKY_coin_Transaction_SizeHash(arg1,arg2,(GoUint8_ (*)[32])arg3); @@ -10393,11 +12273,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_TxID(voi unsigned int jresult ; Transaction__Handle arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (coin__UxArray *)jarg2; result = (GoUint32)SKY_coin_Transaction_TxID(arg1,arg2); jresult = result; @@ -10409,11 +12293,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_TxIDHex( unsigned int jresult ; Transaction__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoString_ *)jarg2; result = (GoUint32)SKY_coin_Transaction_TxIDHex(arg1,arg2); jresult = result; @@ -10424,11 +12312,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_TxIDHex( SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_UpdateHeader(void * jarg1) { unsigned int jresult ; Transaction__Handle arg1 ; + Transaction__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; } + arg1 = *argp1; result = (GoUint32)SKY_coin_Transaction_UpdateHeader(arg1); jresult = result; return jresult; @@ -10439,11 +12331,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_HashInne unsigned int jresult ; Transaction__Handle arg1 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (cipher__SHA256 *)jarg2; result = (GoUint32)SKY_coin_Transaction_HashInner(arg1,(GoUint8_ (*)[32])arg2); jresult = result; @@ -10455,11 +12351,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Serializ unsigned int jresult ; Transaction__Handle arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (coin__UxArray *)jarg2; result = (GoUint32)SKY_coin_Transaction_Serialize(arg1,arg2); jresult = result; @@ -10480,9 +12380,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_TransactionDeseriali return 0; } arg1 = *argp1; - { - jarg2 = (long*)&arg2; - } + arg2 = (Transaction__Handle *)jarg2; result = (GoUint32)SKY_coin_TransactionDeserialize(arg1,arg2); jresult = result; return jresult; @@ -10493,11 +12391,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_OutputHo unsigned int jresult ; Transaction__Handle arg1 ; GoUint64 *arg2 = (GoUint64 *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoUint64 *)jarg2; result = (GoUint32)SKY_coin_Transaction_OutputHours(arg1,arg2); jresult = result; @@ -10510,9 +12412,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Create_Transactions( Transactions__Handle *arg1 = (Transactions__Handle *) 0 ; GoUint32 result; - { - jarg1 = (long*)&arg1; - } + arg1 = (Transactions__Handle *)jarg1; result = (GoUint32)SKY_coin_Create_Transactions(arg1); jresult = result; return jresult; @@ -10523,11 +12423,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetTransactionsObjec unsigned int jresult ; Transactions__Handle arg1 ; coin__UxArray **arg2 = (coin__UxArray **) 0 ; + Transactions__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Transactions__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (coin__UxArray **)jarg2; result = (GoUint32)SKY_coin_GetTransactionsObject(arg1,arg2); jresult = result; @@ -10539,11 +12443,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Length( unsigned int jresult ; Transactions__Handle arg1 ; GoInt *arg2 = (GoInt *) 0 ; + Transactions__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Transactions__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoInt *)jarg2; result = (GoUint32)SKY_coin_Transactions_Length(arg1,arg2); jresult = result; @@ -10555,14 +12463,22 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Add(voi unsigned int jresult ; Transactions__Handle arg1 ; Transaction__Handle arg2 ; + Transactions__Handle *argp1 ; + Transaction__Handle *argp2 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Transactions__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + return 0; } - { - jarg2 = (long*)&arg2; + arg1 = *argp1; + argp2 = (Transaction__Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; } + arg2 = *argp2; result = (GoUint32)SKY_coin_Transactions_Add(arg1,arg2); jresult = result; return jresult; @@ -10574,11 +12490,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Fees(vo Transactions__Handle arg1 ; FeeCalculator *arg2 = (FeeCalculator *) 0 ; GoUint64 *arg3 = (GoUint64 *) 0 ; + Transactions__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Transactions__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (FeeCalculator *)jarg2; arg3 = (GoUint64 *)jarg3; result = (GoUint32)SKY_coin_Transactions_Fees(arg1,arg2,arg3); @@ -10592,15 +12512,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_GetAt(v Transactions__Handle arg1 ; GoInt arg2 ; Transaction__Handle *arg3 = (Transaction__Handle *) 0 ; + Transactions__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Transactions__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoInt)jarg2; - { - jarg3 = (long*)&arg3; - } + arg3 = (Transaction__Handle *)jarg3; result = (GoUint32)SKY_coin_Transactions_GetAt(arg1,arg2,arg3); jresult = result; return jresult; @@ -10611,11 +12533,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Hashes( unsigned int jresult ; Transactions__Handle arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; + Transactions__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Transactions__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (coin__UxArray *)jarg2; result = (GoUint32)SKY_coin_Transactions_Hashes(arg1,arg2); jresult = result; @@ -10627,11 +12553,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Size(vo unsigned int jresult ; Transactions__Handle arg1 ; GoInt *arg2 = (GoInt *) 0 ; + Transactions__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Transactions__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoInt *)jarg2; result = (GoUint32)SKY_coin_Transactions_Size(arg1,arg2); jresult = result; @@ -10644,15 +12574,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Truncat Transactions__Handle arg1 ; GoInt arg2 ; Transactions__Handle *arg3 = (Transactions__Handle *) 0 ; + Transactions__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Transactions__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (GoInt)jarg2; - { - jarg3 = (long*)&arg3; - } + arg3 = (Transactions__Handle *)jarg3; result = (GoUint32)SKY_coin_Transactions_TruncateBytesTo(arg1,arg2,arg3); jresult = result; return jresult; @@ -10664,15 +12596,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortTransactions(voi Transactions__Handle arg1 ; FeeCalculator *arg2 = (FeeCalculator *) 0 ; Transactions__Handle *arg3 = (Transactions__Handle *) 0 ; + Transactions__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Transactions__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (FeeCalculator *)jarg2; - { - jarg3 = (long*)&arg3; - } + arg3 = (Transactions__Handle *)jarg3; result = (GoUint32)SKY_coin_SortTransactions(arg1,arg2,arg3); jresult = result; return jresult; @@ -10684,11 +12618,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewSortableTransacti Transactions__Handle arg1 ; FeeCalculator *arg2 = (FeeCalculator *) 0 ; SortableTransactionResult_Handle *arg3 = (SortableTransactionResult_Handle *) 0 ; + Transactions__Handle *argp1 ; GoUint32 result; - { - jarg1 = (long*)&arg1; + argp1 = (Transactions__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + return 0; } + arg1 = *argp1; arg2 = (FeeCalculator *)jarg2; arg3 = (SortableTransactionResult_Handle *)jarg3; result = (GoUint32)SKY_coin_NewSortableTransactions(arg1,arg2,arg3); diff --git a/LibskycoinNet/skycoin/wallet_register.cs b/LibskycoinNet/skycoin/wallet_register.cs new file mode 100644 index 00000000..9ea1ac4c --- /dev/null +++ b/LibskycoinNet/skycoin/wallet_register.cs @@ -0,0 +1,72 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class wallet_register : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal wallet_register(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(wallet_register obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~wallet_register() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_wallet_register(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_Client__Handle client { + set { + skycoinPINVOKE.set_wallet_register_client(swigCPtr, SWIGTYPE_p_Client__Handle.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_Client__Handle ret = new SWIGTYPE_p_Client__Handle(skycoinPINVOKE.get_wallet_register_client(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_WalletResponse__Handle wallet { + set { + skycoinPINVOKE.set_wallet_register_wallet(swigCPtr, SWIGTYPE_p_WalletResponse__Handle.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_WalletResponse__Handle ret = new SWIGTYPE_p_WalletResponse__Handle(skycoinPINVOKE.get_wallet_register_wallet(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public wallet_register() : this(skycoinPINVOKE.new_wallet_register(), true) { + } + +} + +} diff --git a/LibskycoinNetTest/LibskycoinNetTest.csproj b/LibskycoinNetTest/LibskycoinNetTest.csproj index 98a760b5..040a0c29 100644 --- a/LibskycoinNetTest/LibskycoinNetTest.csproj +++ b/LibskycoinNetTest/LibskycoinNetTest.csproj @@ -37,6 +37,7 @@ + diff --git a/LibskycoinNetTest/check_cipher_hash.cs b/LibskycoinNetTest/check_cipher_hash.cs index e66fb9b2..05a02c64 100644 --- a/LibskycoinNetTest/check_cipher_hash.cs +++ b/LibskycoinNetTest/check_cipher_hash.cs @@ -169,20 +169,20 @@ public void TestSumSHA256 () { Assert.AreEqual (h2.isEqual (h3), 1); } - [Test] - public void TestSHA256FromHex () { - // Invalid hex hash - var h = new cipher_SHA256 (); - var err = skycoin.skycoin.SKY_cipher_SHA256FromHex ("cawcd", h); - Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); - // Truncated hex hash - var b = new GoSlice (); - err = skycoin.skycoin.SKY_cipher_RandByte (128, b); - h = new skycoin.cipher_SHA256 (); - err = skycoin.skycoin.SKY_cipher_SumSHA256 (b, h); - var str = h.getStr (); - var str1 = skycoin.skycoin.GoStringp_value(str); - Console.WriteLine (str1.p); - } + // [Test] + // public void TestSHA256FromHex () { + // // Invalid hex hash + // var h = new cipher_SHA256 (); + // var err = skycoin.skycoin.SKY_cipher_SHA256FromHex ("cawcd", h); + // Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + // // Truncated hex hash + // var b = new GoSlice (); + // err = skycoin.skycoin.SKY_cipher_RandByte (128, b); + // h = new skycoin.cipher_SHA256 (); + // err = skycoin.skycoin.SKY_cipher_SumSHA256 (b, h); + // var str = h.getStr (); + // var str1 = skycoin.skycoin.GoStringp_value(str); + // Console.WriteLine (str1.p); + // } } } \ No newline at end of file diff --git a/LibskycoinNetTest/check_util_fee.cs b/LibskycoinNetTest/check_util_fee.cs new file mode 100644 index 00000000..caba8b5f --- /dev/null +++ b/LibskycoinNetTest/check_util_fee.cs @@ -0,0 +1,291 @@ +using System; +using NUnit.Framework; +using skycoin; +namespace LibskycoinNetTest { + [TestFixture ()] + public class check_util_fee { + + struct verifyTxFeeTestCase { + public ulong inputHours; + public ulong ouputHours; + public int err; + } + verifyTxFeeTestCase[] burnFactor2verifyTxFeeTestCase = new verifyTxFeeTestCase[15]; + + public void FullburnFactor2verifyTxFeeTestCase () { + + verifyTxFeeTestCase cases = new verifyTxFeeTestCase (); + cases.inputHours = 0; + cases.ouputHours = 0; + cases.err = skycoin.skycoin.SKY_ErrTxnNoFee; + burnFactor2verifyTxFeeTestCase[0] = cases; + + cases = new verifyTxFeeTestCase (); + cases.inputHours = 1; + cases.ouputHours = 0; + cases.err = skycoin.skycoin.SKY_OK; + burnFactor2verifyTxFeeTestCase[1] = cases; + + cases = new verifyTxFeeTestCase (); + cases.inputHours = 1; + cases.ouputHours = 1; + cases.err = skycoin.skycoin.SKY_ErrTxnNoFee; + burnFactor2verifyTxFeeTestCase[2] = cases; + + cases = new verifyTxFeeTestCase (); + cases.inputHours = 2; + cases.ouputHours = 0; + cases.err = skycoin.skycoin.SKY_OK; + burnFactor2verifyTxFeeTestCase[3] = cases; + + cases = new verifyTxFeeTestCase (); + cases.inputHours = 2; + cases.ouputHours = 1; + cases.err = skycoin.skycoin.SKY_OK; + burnFactor2verifyTxFeeTestCase[4] = cases; + + cases = new verifyTxFeeTestCase (); + cases.inputHours = 2; + cases.ouputHours = 2; + cases.err = skycoin.skycoin.SKY_ErrTxnNoFee; + burnFactor2verifyTxFeeTestCase[5] = cases; + + cases = new verifyTxFeeTestCase (); + cases.inputHours = 3; + cases.ouputHours = 0; + cases.err = skycoin.skycoin.SKY_OK; + burnFactor2verifyTxFeeTestCase[6] = cases; + + cases = new verifyTxFeeTestCase (); + cases.inputHours = 3; + cases.ouputHours = 1; + cases.err = skycoin.skycoin.SKY_OK; + burnFactor2verifyTxFeeTestCase[7] = cases; + + cases = new verifyTxFeeTestCase (); + cases.inputHours = 3; + cases.ouputHours = 2; + cases.err = skycoin.skycoin.SKY_ErrTxnInsufficientFee; + burnFactor2verifyTxFeeTestCase[8] = cases; + + cases = new verifyTxFeeTestCase (); + cases.inputHours = 3; + cases.ouputHours = 3; + cases.err = skycoin.skycoin.SKY_ErrTxnNoFee; + burnFactor2verifyTxFeeTestCase[9] = cases; + + cases = new verifyTxFeeTestCase (); + cases.inputHours = 4; + cases.ouputHours = 0; + cases.err = skycoin.skycoin.SKY_OK; + burnFactor2verifyTxFeeTestCase[10] = cases; + + cases = new verifyTxFeeTestCase (); + cases.inputHours = 4; + cases.ouputHours = 1; + cases.err = skycoin.skycoin.SKY_OK; + burnFactor2verifyTxFeeTestCase[11] = cases; + + cases = new verifyTxFeeTestCase (); + cases.inputHours = 4; + cases.ouputHours = 2; + cases.err = skycoin.skycoin.SKY_OK; + burnFactor2verifyTxFeeTestCase[12] = cases; + + cases = new verifyTxFeeTestCase (); + cases.inputHours = 4; + cases.ouputHours = 3; + cases.err = skycoin.skycoin.SKY_ErrTxnInsufficientFee; + burnFactor2verifyTxFeeTestCase[13] = cases; + + cases = new verifyTxFeeTestCase (); + cases.inputHours = 4; + cases.ouputHours = 4; + cases.err = skycoin.skycoin.SKY_ErrTxnNoFee; + burnFactor2verifyTxFeeTestCase[14] = cases; + } + + [Test] + public void TestVerifyTransactionFee () { + FullburnFactor2verifyTxFeeTestCase (); + var empty = skycoin.skycoin.new_Transaction__Handlep (); + skycoin.skycoin.makeEmptyTransaction (empty); + var hours = skycoin.skycoin.new_GoUint64p (); + var err = skycoin.skycoin.SKY_coin_Transaction_OutputHours (empty, hours); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.GoUint64p_value (hours), 0); + + // A txn with no outputs hours and no coinhours burn fee is valid + err = skycoin.skycoin.SKY_fee_VerifyTransactionFee (empty, 0); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrTxnNoFee); + + // A txn with no outputs hours but with a coinhours burn fee is valid + err = skycoin.skycoin.SKY_fee_VerifyTransactionFee (empty, 100); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var txn = skycoin.skycoin.new_Transaction__Handlep (); + skycoin.skycoin.makeEmptyTransaction (txn); + var addr = skycoin.skycoin.new_cipher__Addressp (); + err = (uint) skycoin.skycoin.makeAddress (addr); + Assert.AreEqual (err, 0); + err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (txn, addr, 0, 1000000); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (txn, addr, 0, 3000000); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_OutputHours (txn, hours); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.GoUint64p_value (hours), 4000000); + + // A txn with insufficient net coinhours burn fee is invalid + err = skycoin.skycoin.SKY_fee_VerifyTransactionFee (txn, 0); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrTxnNoFee); + err = skycoin.skycoin.SKY_fee_VerifyTransactionFee (txn, 1); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrTxnInsufficientFee); + + // A txn with sufficient net coinhours burn fee is valid + err = skycoin.skycoin.SKY_coin_Transaction_OutputHours (txn, hours); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_fee_VerifyTransactionFee (txn, skycoin.skycoin.GoUint64p_value (hours)); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_OutputHours (txn, hours); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_fee_VerifyTransactionFee (txn, ((ulong) (skycoin.skycoin.GoUint64p_value (hours) * 10))); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + + // fee + hours overflows + err = skycoin.skycoin.SKY_fee_VerifyTransactionFee (txn, ((ulong.MaxValue - 3000000))); + Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + + // txn has overflowing output hours + err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (txn, addr, 0, + (ulong.MaxValue - 1000000 - 3000000 + 1)); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK, "txn has overflowing output hours"); + err = skycoin.skycoin.SKY_fee_VerifyTransactionFee (txn, 10); + Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR, "SKY_fee_VerifyTransactionFee failed"); + + int len = burnFactor2verifyTxFeeTestCase.Length; + for (int i = 0; i < len; i++) { + txn = skycoin.skycoin.new_Transaction__Handlep (); + skycoin.skycoin.makeEmptyTransaction (txn); + verifyTxFeeTestCase tc = burnFactor2verifyTxFeeTestCase[i]; + err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (txn, addr, 0, tc.ouputHours); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.IsTrue (tc.inputHours >= tc.ouputHours); + err = skycoin.skycoin.SKY_fee_VerifyTransactionFee (txn, (ulong) (tc.inputHours - tc.ouputHours)); + Assert.AreEqual (tc.err, err, "Iter " + i.ToString () + " is " + tc.err.ToString () + " != " + err.ToString ());; + } + } + struct requiredFeeTestCase { + public ulong hours; + public ulong fee; + } + requiredFeeTestCase[] burnFactor2verifyTxFeeTestCase2 = new requiredFeeTestCase[12]; + public void FullburnFactor2RequiredFeeTestCases2 () { + var cases = new requiredFeeTestCase (); + cases.hours = 0; + cases.fee = 0; + burnFactor2verifyTxFeeTestCase2[0] = cases; + cases = new requiredFeeTestCase (); + cases.hours = 1; + cases.fee = 1; + burnFactor2verifyTxFeeTestCase2[1] = cases; + cases = new requiredFeeTestCase (); + cases.hours = 2; + cases.fee = 1; + burnFactor2verifyTxFeeTestCase2[2] = cases; + cases = new requiredFeeTestCase (); + cases.hours = 3; + cases.fee = 2; + burnFactor2verifyTxFeeTestCase2[3] = cases; + cases = new requiredFeeTestCase (); + cases.hours = 4; + cases.fee = 2; + burnFactor2verifyTxFeeTestCase2[4] = cases; + cases = new requiredFeeTestCase (); + cases.hours = 5; + cases.fee = 3; + burnFactor2verifyTxFeeTestCase2[5] = cases; + cases = new requiredFeeTestCase (); + cases.hours = 6; + cases.fee = 3; + burnFactor2verifyTxFeeTestCase2[6] = cases; + cases = new requiredFeeTestCase (); + cases.hours = 7; + cases.fee = 4; + burnFactor2verifyTxFeeTestCase2[7] = cases; + cases = new requiredFeeTestCase (); + cases.hours = 998; + cases.fee = 499; + burnFactor2verifyTxFeeTestCase2[8] = cases; + cases = new requiredFeeTestCase (); + cases.hours = 999; + cases.fee = 500; + burnFactor2verifyTxFeeTestCase2[9] = cases; + cases = new requiredFeeTestCase (); + cases.hours = 1000; + cases.fee = 500; + burnFactor2verifyTxFeeTestCase2[10] = cases; + cases = new requiredFeeTestCase (); + cases.hours = 1001; + cases.fee = 501; + burnFactor2verifyTxFeeTestCase2[11] = cases; + } + + [Test] + public void TestRequiredFee () { + FullburnFactor2RequiredFeeTestCases2 (); + var cases = burnFactor2verifyTxFeeTestCase2; + + for (int i = 0; i < cases.Length; i++) { + var tc = cases[i]; + var fee = skycoin.skycoin.new_GoUint64p (); + var err = skycoin.skycoin.SKY_fee_RequiredFee (tc.hours, fee); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (tc.fee, skycoin.skycoin.GoUint64p_value (fee)); + var remainingHours = skycoin.skycoin.new_GoUint64p (); + err = skycoin.skycoin.SKY_fee_RemainingHours (tc.hours, remainingHours); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (tc.hours - skycoin.skycoin.GoUint64p_value (fee), skycoin.skycoin.GoUint64p_value (remainingHours)); + } + } + + struct uxInput { + public ulong time; + public ulong coins; + public ulong hours; + } + struct StrTest { + public ulong[] outs; + public uxInput[] ins; + public ulong headTime; + public ulong fee; + public int err; + } + StrTest[] ListCases = new StrTest[6]; + public void FullCases () { + ulong headTime = 1000; + ulong nextTime = (headTime + 3600); //1 hour later + var cases = new StrTest (); + cases.fee = 5; + cases.outs = new ulong[1]; + cases.outs[0] = 5; + cases.ins = new uxInput[1]; + cases.ins[0].time = headTime; + cases.ins[0].coins = (ulong) 10e6; + cases.ins[0].hours = (ulong) 10; + cases.headTime = headTime; + ListCases[0] = cases; + } + + [Test] + public void TestTransactionFee () { + + for (int i = 0; i < ListCases.Length; i++) { + var tc = ListCases[i]; + var tx = skycoin.skycoin.new_Transaction__Handlep (); + + } + + } + + } +} \ No newline at end of file diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index 01e45ea3..d1f0392a 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit 01e45ea3a8c8bf354cb77fc75595261bf7652a53 +Subproject commit d1f0392add4a64179a7f363f8162868a5e8fb1f5 From be76b55f26554a4b4e05817fe0649c341b4c3fe9 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Wed, 26 Sep 2018 02:56:04 -0400 Subject: [PATCH 32/73] [test] refs #8 Added goslice --- LibskycoinNet/skycoin/skycoin.cs | 219 ++--- LibskycoinNet/skycoin/skycoinPINVOKE.cs | 124 ++- LibskycoinNet/skycoin/skycoinnet_wrap.c | 1021 ++++++++++---------- LibskycoinNetTest/LibskycoinNetTest.csproj | 1 + LibskycoinNetTest/check_util_fee.cs | 31 +- LibskycoinNetTest/transutils.cs | 22 + Makefile | 2 +- gopath/src/github.com/skycoin/skycoin | 2 +- swig/include/libskycoin.h | 12 - 9 files changed, 700 insertions(+), 734 deletions(-) create mode 100644 LibskycoinNetTest/transutils.cs diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs index 22f2fc32..6e5c5e36 100644 --- a/LibskycoinNet/skycoin/skycoin.cs +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -35,112 +35,6 @@ public static int equalBlockHeaders(coin__BlockHeader bh1, coin__BlockHeader bh2 return ret; } - public static GoSlice new_GoSlicep() { - global::System.IntPtr cPtr = skycoinPINVOKE.new_GoSlicep(); - GoSlice ret = (cPtr == global::System.IntPtr.Zero) ? null : new GoSlice(cPtr, false); - return ret; - } - - public static GoSlice copy_GoSlicep(GoSlice value) { - global::System.IntPtr cPtr = skycoinPINVOKE.copy_GoSlicep(GoSlice.getCPtr(value)); - GoSlice ret = (cPtr == global::System.IntPtr.Zero) ? null : new GoSlice(cPtr, false); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static void delete_GoSlicep(GoSlice obj) { - skycoinPINVOKE.delete_GoSlicep(GoSlice.getCPtr(obj)); - } - - public static void GoSlicep_assign(GoSlice obj, GoSlice value) { - skycoinPINVOKE.GoSlicep_assign(GoSlice.getCPtr(obj), GoSlice.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - - public static GoSlice GoSlicep_value(GoSlice obj) { - GoSlice ret = new GoSlice(skycoinPINVOKE.GoSlicep_value(GoSlice.getCPtr(obj)), true); - return ret; - } - - public static _GoString_ new_GoStringp() { - global::System.IntPtr cPtr = skycoinPINVOKE.new_GoStringp(); - _GoString_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new _GoString_(cPtr, false); - return ret; - } - - public static _GoString_ copy_GoStringp(_GoString_ value) { - global::System.IntPtr cPtr = skycoinPINVOKE.copy_GoStringp(_GoString_.getCPtr(value)); - _GoString_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new _GoString_(cPtr, false); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static void delete_GoStringp(_GoString_ obj) { - skycoinPINVOKE.delete_GoStringp(_GoString_.getCPtr(obj)); - } - - public static void GoStringp_assign(_GoString_ obj, _GoString_ value) { - skycoinPINVOKE.GoStringp_assign(_GoString_.getCPtr(obj), _GoString_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - - public static _GoString_ GoStringp_value(_GoString_ obj) { - _GoString_ ret = new _GoString_(skycoinPINVOKE.GoStringp_value(_GoString_.getCPtr(obj)), true); - return ret; - } - - public static SWIGTYPE_p_int new_intp() { - global::System.IntPtr cPtr = skycoinPINVOKE.new_intp(); - SWIGTYPE_p_int ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_int(cPtr, false); - return ret; - } - - public static SWIGTYPE_p_int copy_intp(int value) { - global::System.IntPtr cPtr = skycoinPINVOKE.copy_intp(value); - SWIGTYPE_p_int ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_int(cPtr, false); - return ret; - } - - public static void delete_intp(SWIGTYPE_p_int obj) { - skycoinPINVOKE.delete_intp(SWIGTYPE_p_int.getCPtr(obj)); - } - - public static void intp_assign(SWIGTYPE_p_int obj, int value) { - skycoinPINVOKE.intp_assign(SWIGTYPE_p_int.getCPtr(obj), value); - } - - public static int intp_value(SWIGTYPE_p_int obj) { - int ret = skycoinPINVOKE.intp_value(SWIGTYPE_p_int.getCPtr(obj)); - return ret; - } - - public static SWIGTYPE_p_Transaction__Handle new_Transaction__Handlep() { - global::System.IntPtr cPtr = skycoinPINVOKE.new_Transaction__Handlep(); - SWIGTYPE_p_Transaction__Handle ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Transaction__Handle(cPtr, false); - return ret; - } - - public static SWIGTYPE_p_Transaction__Handle copy_Transaction__Handlep(SWIGTYPE_p_Transaction__Handle value) { - global::System.IntPtr cPtr = skycoinPINVOKE.copy_Transaction__Handlep(SWIGTYPE_p_Transaction__Handle.getCPtr(value)); - SWIGTYPE_p_Transaction__Handle ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Transaction__Handle(cPtr, false); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static void delete_Transaction__Handlep(SWIGTYPE_p_Transaction__Handle obj) { - skycoinPINVOKE.delete_Transaction__Handlep(SWIGTYPE_p_Transaction__Handle.getCPtr(obj)); - } - - public static void Transaction__Handlep_assign(SWIGTYPE_p_Transaction__Handle obj, SWIGTYPE_p_Transaction__Handle value) { - skycoinPINVOKE.Transaction__Handlep_assign(SWIGTYPE_p_Transaction__Handle.getCPtr(obj), SWIGTYPE_p_Transaction__Handle.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - - public static SWIGTYPE_p_Transaction__Handle Transaction__Handlep_value(SWIGTYPE_p_Transaction__Handle obj) { - SWIGTYPE_p_Transaction__Handle ret = new SWIGTYPE_p_Transaction__Handle(skycoinPINVOKE.Transaction__Handlep_value(SWIGTYPE_p_Transaction__Handle.getCPtr(obj)), true); - return ret; - } - public static void SKY_handle_close(SWIGTYPE_p_Handle p0) { skycoinPINVOKE.SKY_handle_close(SWIGTYPE_p_Handle.getCPtr(p0)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); @@ -347,8 +241,109 @@ public static coin__Transaction makeEmptyTransaction(SWIGTYPE_p_Transaction__Han return ret; } - public static int makeAddress(cipher__Address paddress) { - int ret = skycoinPINVOKE.makeAddress(cipher__Address.getCPtr(paddress)); + public static GoSlice new_GoSlicep() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_GoSlicep(); + GoSlice ret = (cPtr == global::System.IntPtr.Zero) ? null : new GoSlice(cPtr, false); + return ret; + } + + public static GoSlice copy_GoSlicep(GoSlice value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_GoSlicep(GoSlice.getCPtr(value)); + GoSlice ret = (cPtr == global::System.IntPtr.Zero) ? null : new GoSlice(cPtr, false); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static void delete_GoSlicep(GoSlice obj) { + skycoinPINVOKE.delete_GoSlicep(GoSlice.getCPtr(obj)); + } + + public static void GoSlicep_assign(GoSlice obj, GoSlice value) { + skycoinPINVOKE.GoSlicep_assign(GoSlice.getCPtr(obj), GoSlice.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + + public static GoSlice GoSlicep_value(GoSlice obj) { + GoSlice ret = new GoSlice(skycoinPINVOKE.GoSlicep_value(GoSlice.getCPtr(obj)), true); + return ret; + } + + public static _GoString_ new_GoStringp() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_GoStringp(); + _GoString_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new _GoString_(cPtr, false); + return ret; + } + + public static _GoString_ copy_GoStringp(_GoString_ value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_GoStringp(_GoString_.getCPtr(value)); + _GoString_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new _GoString_(cPtr, false); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static void delete_GoStringp(_GoString_ obj) { + skycoinPINVOKE.delete_GoStringp(_GoString_.getCPtr(obj)); + } + + public static void GoStringp_assign(_GoString_ obj, _GoString_ value) { + skycoinPINVOKE.GoStringp_assign(_GoString_.getCPtr(obj), _GoString_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + + public static _GoString_ GoStringp_value(_GoString_ obj) { + _GoString_ ret = new _GoString_(skycoinPINVOKE.GoStringp_value(_GoString_.getCPtr(obj)), true); + return ret; + } + + public static SWIGTYPE_p_int new_intp() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_intp(); + SWIGTYPE_p_int ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_int(cPtr, false); + return ret; + } + + public static SWIGTYPE_p_int copy_intp(int value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_intp(value); + SWIGTYPE_p_int ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_int(cPtr, false); + return ret; + } + + public static void delete_intp(SWIGTYPE_p_int obj) { + skycoinPINVOKE.delete_intp(SWIGTYPE_p_int.getCPtr(obj)); + } + + public static void intp_assign(SWIGTYPE_p_int obj, int value) { + skycoinPINVOKE.intp_assign(SWIGTYPE_p_int.getCPtr(obj), value); + } + + public static int intp_value(SWIGTYPE_p_int obj) { + int ret = skycoinPINVOKE.intp_value(SWIGTYPE_p_int.getCPtr(obj)); + return ret; + } + + public static SWIGTYPE_p_Transaction__Handle new_Transaction__Handlep() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_Transaction__Handlep(); + SWIGTYPE_p_Transaction__Handle ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Transaction__Handle(cPtr, false); + return ret; + } + + public static SWIGTYPE_p_Transaction__Handle copy_Transaction__Handlep(SWIGTYPE_p_Transaction__Handle value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_Transaction__Handlep(SWIGTYPE_p_Transaction__Handle.getCPtr(value)); + SWIGTYPE_p_Transaction__Handle ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Transaction__Handle(cPtr, false); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static void delete_Transaction__Handlep(SWIGTYPE_p_Transaction__Handle obj) { + skycoinPINVOKE.delete_Transaction__Handlep(SWIGTYPE_p_Transaction__Handle.getCPtr(obj)); + } + + public static void Transaction__Handlep_assign(SWIGTYPE_p_Transaction__Handle obj, SWIGTYPE_p_Transaction__Handle value) { + skycoinPINVOKE.Transaction__Handlep_assign(SWIGTYPE_p_Transaction__Handle.getCPtr(obj), SWIGTYPE_p_Transaction__Handle.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + + public static SWIGTYPE_p_Transaction__Handle Transaction__Handlep_value(SWIGTYPE_p_Transaction__Handle obj) { + SWIGTYPE_p_Transaction__Handle ret = new SWIGTYPE_p_Transaction__Handle(skycoinPINVOKE.Transaction__Handlep_value(SWIGTYPE_p_Transaction__Handle.getCPtr(obj)), true); return ret; } @@ -1617,14 +1612,6 @@ public static uint SKY_webrpc_Client_GetLastBlocks(SWIGTYPE_p_WebRpcClient__Hand return ret; } - public static uint SKY_browser_Open(string p0) { -var tmpp0 = p0; - { - uint ret = skycoinPINVOKE.SKY_browser_Open(tmpp0); - return ret; - } - } - public static uint SKY_iputil_LocalhostIP(_GoString_ p0) { var tmpp0 = _GoString_.getCPtr (p0); { diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index 1683b4ab..382b6b4b 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -203,66 +203,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_equalBlockHeaders")] public static extern int equalBlockHeaders(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_GoSlicep")] - public static extern global::System.IntPtr new_GoSlicep(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_GoSlicep")] - public static extern global::System.IntPtr copy_GoSlicep(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_GoSlicep")] - public static extern void delete_GoSlicep(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlicep_assign")] - public static extern void GoSlicep_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlicep_value")] - public static extern global::System.IntPtr GoSlicep_value(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_GoStringp")] - public static extern global::System.IntPtr new_GoStringp(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_GoStringp")] - public static extern global::System.IntPtr copy_GoStringp(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_GoStringp")] - public static extern void delete_GoStringp(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoStringp_assign")] - public static extern void GoStringp_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoStringp_value")] - public static extern global::System.IntPtr GoStringp_value(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_intp")] - public static extern global::System.IntPtr new_intp(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_intp")] - public static extern global::System.IntPtr copy_intp(int jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_intp")] - public static extern void delete_intp(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_intp_assign")] - public static extern void intp_assign(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_intp_value")] - public static extern int intp_value(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_Transaction__Handlep")] - public static extern global::System.IntPtr new_Transaction__Handlep(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_Transaction__Handlep")] - public static extern global::System.IntPtr copy_Transaction__Handlep(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_Transaction__Handlep")] - public static extern void delete_Transaction__Handlep(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Transaction__Handlep_assign")] - public static extern void Transaction__Handlep_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Transaction__Handlep_value")] - public static extern global::System.IntPtr Transaction__Handlep_value(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_handle_close")] public static extern void SKY_handle_close(global::System.Runtime.InteropServices.HandleRef jarg1); @@ -404,8 +344,65 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_makeEmptyTransaction")] public static extern global::System.IntPtr makeEmptyTransaction(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_makeAddress")] - public static extern int makeAddress(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_GoSlicep")] + public static extern global::System.IntPtr new_GoSlicep(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_GoSlicep")] + public static extern global::System.IntPtr copy_GoSlicep(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_GoSlicep")] + public static extern void delete_GoSlicep(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlicep_assign")] + public static extern void GoSlicep_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlicep_value")] + public static extern global::System.IntPtr GoSlicep_value(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_GoStringp")] + public static extern global::System.IntPtr new_GoStringp(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_GoStringp")] + public static extern global::System.IntPtr copy_GoStringp(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_GoStringp")] + public static extern void delete_GoStringp(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoStringp_assign")] + public static extern void GoStringp_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoStringp_value")] + public static extern global::System.IntPtr GoStringp_value(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_intp")] + public static extern global::System.IntPtr new_intp(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_intp")] + public static extern global::System.IntPtr copy_intp(int jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_intp")] + public static extern void delete_intp(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_intp_assign")] + public static extern void intp_assign(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_intp_value")] + public static extern int intp_value(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_Transaction__Handlep")] + public static extern global::System.IntPtr new_Transaction__Handlep(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_Transaction__Handlep")] + public static extern global::System.IntPtr copy_Transaction__Handlep(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_Transaction__Handlep")] + public static extern void delete_Transaction__Handlep(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Transaction__Handlep_assign")] + public static extern void Transaction__Handlep_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Transaction__Handlep_value")] + public static extern global::System.IntPtr Transaction__Handlep_value(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_Handlep")] public static extern global::System.IntPtr new_Handlep(); @@ -1307,9 +1304,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetLastBlocks")] public static extern uint SKY_webrpc_Client_GetLastBlocks(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_browser_Open")] - public static extern uint SKY_browser_Open(string jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_iputil_LocalhostIP")] public static extern uint SKY_iputil_LocalhostIP(global::System.Runtime.InteropServices.HandleRef jarg1); diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index 390e54cf..eb42302d 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -337,98 +337,6 @@ SWIGEXPORT void SWIGSTDCALL SWIGRegisterStringCallback_skycoin(SWIG_CSharpString } -static GoSlice *new_GoSlicep() { - return (GoSlice *) calloc(1,sizeof(GoSlice)); -} - -static GoSlice *copy_GoSlicep(GoSlice value) { - GoSlice *obj = (GoSlice *) calloc(1,sizeof(GoSlice)); - *obj = value; - return obj; -} - -static void delete_GoSlicep(GoSlice *obj) { - if (obj) free(obj); -} - -static void GoSlicep_assign(GoSlice *obj, GoSlice value) { - *obj = value; -} - -static GoSlice GoSlicep_value(GoSlice *obj) { - return *obj; -} - - -static _GoString_ *new_GoStringp() { - return (_GoString_ *) calloc(1,sizeof(_GoString_)); -} - -static _GoString_ *copy_GoStringp(_GoString_ value) { - _GoString_ *obj = (_GoString_ *) calloc(1,sizeof(_GoString_)); - *obj = value; - return obj; -} - -static void delete_GoStringp(_GoString_ *obj) { - if (obj) free(obj); -} - -static void GoStringp_assign(_GoString_ *obj, _GoString_ value) { - *obj = value; -} - -static _GoString_ GoStringp_value(_GoString_ *obj) { - return *obj; -} - - -static int *new_intp() { - return (int *) calloc(1,sizeof(int)); -} - -static int *copy_intp(int value) { - int *obj = (int *) calloc(1,sizeof(int)); - *obj = value; - return obj; -} - -static void delete_intp(int *obj) { - if (obj) free(obj); -} - -static void intp_assign(int *obj, int value) { - *obj = value; -} - -static int intp_value(int *obj) { - return *obj; -} - - -static Transaction__Handle *new_Transaction__Handlep() { - return (Transaction__Handle *) calloc(1,sizeof(Transaction__Handle)); -} - -static Transaction__Handle *copy_Transaction__Handlep(Transaction__Handle value) { - Transaction__Handle *obj = (Transaction__Handle *) calloc(1,sizeof(Transaction__Handle)); - *obj = value; - return obj; -} - -static void delete_Transaction__Handlep(Transaction__Handle *obj) { - if (obj) free(obj); -} - -static void Transaction__Handlep_assign(Transaction__Handle *obj, Transaction__Handle value) { - *obj = value; -} - -static Transaction__Handle Transaction__Handlep_value(Transaction__Handle *obj) { - return *obj; -} - - #include "json.h" //Define function SKY_handle_close to avoid including libskycoin.h void SKY_handle_close(Handle p0); @@ -775,24 +683,99 @@ coin__Transaction* makeEmptyTransaction(Transaction__Handle* handle){ return ptransaction; } -int makeAddress(cipher__Address* paddress){ - cipher__PubKey pubkey; - cipher__SecKey seckey; - cipher__Address address; - int result; + - result = SKY_cipher_GenerateKeyPair(&pubkey, &seckey); - if(result != 0){ - return 1; - } +static GoSlice *new_GoSlicep() { + return (GoSlice *) calloc(1,sizeof(GoSlice)); +} - result = SKY_cipher_AddressFromPubKey( &pubkey, paddress ); - if(result != 0){ - return 1; - } - return result; +static GoSlice *copy_GoSlicep(GoSlice value) { + GoSlice *obj = (GoSlice *) calloc(1,sizeof(GoSlice)); + *obj = value; + return obj; } - + +static void delete_GoSlicep(GoSlice *obj) { + if (obj) free(obj); +} + +static void GoSlicep_assign(GoSlice *obj, GoSlice value) { + *obj = value; +} + +static GoSlice GoSlicep_value(GoSlice *obj) { + return *obj; +} + + +static _GoString_ *new_GoStringp() { + return (_GoString_ *) calloc(1,sizeof(_GoString_)); +} + +static _GoString_ *copy_GoStringp(_GoString_ value) { + _GoString_ *obj = (_GoString_ *) calloc(1,sizeof(_GoString_)); + *obj = value; + return obj; +} + +static void delete_GoStringp(_GoString_ *obj) { + if (obj) free(obj); +} + +static void GoStringp_assign(_GoString_ *obj, _GoString_ value) { + *obj = value; +} + +static _GoString_ GoStringp_value(_GoString_ *obj) { + return *obj; +} + + +static int *new_intp() { + return (int *) calloc(1,sizeof(int)); +} + +static int *copy_intp(int value) { + int *obj = (int *) calloc(1,sizeof(int)); + *obj = value; + return obj; +} + +static void delete_intp(int *obj) { + if (obj) free(obj); +} + +static void intp_assign(int *obj, int value) { + *obj = value; +} + +static int intp_value(int *obj) { + return *obj; +} + + +static Transaction__Handle *new_Transaction__Handlep() { + return (Transaction__Handle *) calloc(1,sizeof(Transaction__Handle)); +} + +static Transaction__Handle *copy_Transaction__Handlep(Transaction__Handle value) { + Transaction__Handle *obj = (Transaction__Handle *) calloc(1,sizeof(Transaction__Handle)); + *obj = value; + return obj; +} + +static void delete_Transaction__Handlep(Transaction__Handle *obj) { + if (obj) free(obj); +} + +static void Transaction__Handlep_assign(Transaction__Handle *obj, Transaction__Handle value) { + *obj = value; +} + +static Transaction__Handle Transaction__Handlep_value(Transaction__Handle *obj) { + return *obj; +} + static Handle *new_Handlep() { return (Handle *) calloc(1,sizeof(Handle)); @@ -1225,302 +1208,46 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalBlockHeaders(void * jarg1, void * } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_GoSlicep() { - void * jresult ; - GoSlice *result = 0 ; - - result = (GoSlice *)new_GoSlicep(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_GoSlicep(void * jarg1) { - void * jresult ; - GoSlice arg1 ; - GoSlice *argp1 ; - GoSlice *result = 0 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_handle_close(void * jarg1) { + Handle arg1 ; + Handle *argp1 ; - argp1 = (GoSlice *)jarg1; + argp1 = (Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); + return ; } arg1 = *argp1; - result = (GoSlice *)copy_GoSlicep(arg1); - jresult = (void *)result; - return jresult; + SKY_handle_close(arg1); } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_GoSlicep(void * jarg1) { - GoSlice *arg1 = (GoSlice *) 0 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_MEMPOOLIDX(int jarg1) { + int arg1 ; - arg1 = (GoSlice *)jarg1; - delete_GoSlicep(arg1); + arg1 = (int)jarg1; + MEMPOOLIDX = arg1; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoSlicep_assign(void * jarg1, void * jarg2) { - GoSlice *arg1 = (GoSlice *) 0 ; - GoSlice arg2 ; - GoSlice *argp2 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_MEMPOOLIDX() { + int jresult ; + int result; - arg1 = (GoSlice *)jarg1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return ; - } - arg2 = *argp2; - GoSlicep_assign(arg1,arg2); + result = (int)MEMPOOLIDX; + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_GoSlicep_value(void * jarg1) { - void * jresult ; - GoSlice *arg1 = (GoSlice *) 0 ; - GoSlice result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_MEMPOOL(void * jarg1) { + void **arg1 ; - arg1 = (GoSlice *)jarg1; - result = GoSlicep_value(arg1); + arg1 = (void **)jarg1; { - GoSlice * resultptr = (GoSlice *) malloc(sizeof(GoSlice)); - memmove(resultptr, &result, sizeof(GoSlice)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_GoStringp() { - void * jresult ; - _GoString_ *result = 0 ; - - result = (_GoString_ *)new_GoStringp(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_GoStringp(void * jarg1) { - void * jresult ; - _GoString_ arg1 ; - _GoString_ *argp1 ; - _GoString_ *result = 0 ; - - argp1 = (_GoString_ *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null _GoString_", 0); - return 0; - } - arg1 = *argp1; - result = (_GoString_ *)copy_GoStringp(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_GoStringp(void * jarg1) { - _GoString_ *arg1 = (_GoString_ *) 0 ; - - arg1 = (_GoString_ *)jarg1; - delete_GoStringp(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoStringp_assign(void * jarg1, void * jarg2) { - _GoString_ *arg1 = (_GoString_ *) 0 ; - _GoString_ arg2 ; - _GoString_ *argp2 ; - - arg1 = (_GoString_ *)jarg1; - argp2 = (_GoString_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null _GoString_", 0); - return ; - } - arg2 = *argp2; - GoStringp_assign(arg1,arg2); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_GoStringp_value(void * jarg1) { - void * jresult ; - _GoString_ *arg1 = (_GoString_ *) 0 ; - _GoString_ result; - - arg1 = (_GoString_ *)jarg1; - result = GoStringp_value(arg1); - { - _GoString_ * resultptr = (_GoString_ *) malloc(sizeof(_GoString_)); - memmove(resultptr, &result, sizeof(_GoString_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_intp() { - void * jresult ; - int *result = 0 ; - - result = (int *)new_intp(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_intp(int jarg1) { - void * jresult ; - int arg1 ; - int *result = 0 ; - - arg1 = (int)jarg1; - result = (int *)copy_intp(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_intp(void * jarg1) { - int *arg1 = (int *) 0 ; - - arg1 = (int *)jarg1; - delete_intp(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_intp_assign(void * jarg1, int jarg2) { - int *arg1 = (int *) 0 ; - int arg2 ; - - arg1 = (int *)jarg1; - arg2 = (int)jarg2; - intp_assign(arg1,arg2); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_intp_value(void * jarg1) { - int jresult ; - int *arg1 = (int *) 0 ; - int result; - - arg1 = (int *)jarg1; - result = (int)intp_value(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_Transaction__Handlep() { - void * jresult ; - Transaction__Handle *result = 0 ; - - result = (Transaction__Handle *)new_Transaction__Handlep(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_Transaction__Handlep(void * jarg1) { - void * jresult ; - Transaction__Handle arg1 ; - Transaction__Handle *argp1 ; - Transaction__Handle *result = 0 ; - - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; - } - arg1 = *argp1; - result = (Transaction__Handle *)copy_Transaction__Handlep(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_Transaction__Handlep(void * jarg1) { - Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; - - arg1 = (Transaction__Handle *)jarg1; - delete_Transaction__Handlep(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_Transaction__Handlep_assign(void * jarg1, void * jarg2) { - Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; - Transaction__Handle arg2 ; - Transaction__Handle *argp2 ; - - arg1 = (Transaction__Handle *)jarg1; - argp2 = (Transaction__Handle *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return ; - } - arg2 = *argp2; - Transaction__Handlep_assign(arg1,arg2); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_Transaction__Handlep_value(void * jarg1) { - void * jresult ; - Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; - Transaction__Handle result; - - arg1 = (Transaction__Handle *)jarg1; - result = Transaction__Handlep_value(arg1); - { - Transaction__Handle * resultptr = (Transaction__Handle *) malloc(sizeof(Transaction__Handle)); - memmove(resultptr, &result, sizeof(Transaction__Handle)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_handle_close(void * jarg1) { - Handle arg1 ; - Handle *argp1 ; - - argp1 = (Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); - return ; - } - arg1 = *argp1; - SKY_handle_close(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_MEMPOOLIDX(int jarg1) { - int arg1 ; - - arg1 = (int)jarg1; - MEMPOOLIDX = arg1; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_MEMPOOLIDX() { - int jresult ; - int result; - - result = (int)MEMPOOLIDX; - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_MEMPOOL(void * jarg1) { - void **arg1 ; - - arg1 = (void **)jarg1; - { - size_t ii; - void * *b = (void * *) MEMPOOL; - for (ii = 0; ii < (size_t)1024*256; ii++) b[ii] = *((void * *) arg1 + ii); + size_t ii; + void * *b = (void * *) MEMPOOL; + for (ii = 0; ii < (size_t)1024*256; ii++) b[ii] = *((void * *) arg1 + ii); } } @@ -1861,205 +1588,449 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_registerHandleClose(void * jarg1) { } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_closeRegisteredHandle(void * jarg1) { - Handle arg1 ; - Handle *argp1 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_closeRegisteredHandle(void * jarg1) { + Handle arg1 ; + Handle *argp1 ; + + argp1 = (Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); + return ; + } + arg1 = *argp1; + closeRegisteredHandle(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cleanupWallet(void * jarg1, void * jarg2) { + Client__Handle arg1 ; + WalletResponse__Handle arg2 ; + Client__Handle *argp1 ; + WalletResponse__Handle *argp2 ; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return ; + } + arg1 = *argp1; + argp2 = (WalletResponse__Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); + return ; + } + arg2 = *argp2; + cleanupWallet(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cleanRegisteredWallet(void * jarg1, void * jarg2) { + Client__Handle arg1 ; + WalletResponse__Handle arg2 ; + Client__Handle *argp1 ; + WalletResponse__Handle *argp2 ; + + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return ; + } + arg1 = *argp1; + argp2 = (WalletResponse__Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); + return ; + } + arg2 = *argp2; + cleanRegisteredWallet(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cleanupMem() { + cleanupMem(); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_setup() { + setup(); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_teardown() { + teardown(); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_fprintbuff(void * jarg1, void * jarg2, unsigned long jarg3) { + FILE *arg1 = (FILE *) 0 ; + void *arg2 = (void *) 0 ; + size_t arg3 ; + + arg1 = (FILE *)jarg1; + arg2 = (void *)jarg2; + arg3 = (size_t)jarg3; + fprintbuff(arg1,arg2,arg3); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_parseBoolean(char * jarg1, int jarg2) { + int jresult ; + char *arg1 = (char *) 0 ; + int arg2 ; + int result; + + arg1 = (char *)jarg1; + arg2 = (int)jarg2; + result = (int)parseBoolean((char const *)arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_toGoString(void * jarg1, void * jarg2) { + GoString_ *arg1 = (GoString_ *) 0 ; + GoString *arg2 = (GoString *) 0 ; + + arg1 = (GoString_ *)jarg1; + arg2 = (GoString *)jarg2; + toGoString(arg1,arg2); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_copySlice(void * jarg1, void * jarg2, int jarg3) { + int jresult ; + GoSlice_ *arg1 = (GoSlice_ *) 0 ; + GoSlice_ *arg2 = (GoSlice_ *) 0 ; + int arg3 ; + int result; + + arg1 = (GoSlice_ *)jarg1; + arg2 = (GoSlice_ *)jarg2; + arg3 = (int)jarg3; + result = (int)copySlice(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_concatSlices(void * jarg1, void * jarg2, int jarg3, void * jarg4) { + int jresult ; + GoSlice_ *arg1 = (GoSlice_ *) 0 ; + GoSlice_ *arg2 = (GoSlice_ *) 0 ; + int arg3 ; + GoSlice_ *arg4 = (GoSlice_ *) 0 ; + int result; + + arg1 = (GoSlice_ *)jarg1; + arg2 = (GoSlice_ *)jarg2; + arg3 = (int)jarg3; + arg4 = (GoSlice_ *)jarg4; + result = (int)concatSlices(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_parseJsonMetaData(char * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5) { + char *arg1 = (char *) 0 ; + int *arg2 = (int *) 0 ; + int *arg3 = (int *) 0 ; + int *arg4 = (int *) 0 ; + int *arg5 = (int *) 0 ; + + arg1 = (char *)jarg1; + arg2 = (int *)jarg2; + arg3 = (int *)jarg3; + arg4 = (int *)jarg4; + arg5 = (int *)jarg5; + parseJsonMetaData(arg1,arg2,arg3,arg4,arg5); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cutSlice(void * jarg1, int jarg2, int jarg3, int jarg4, void * jarg5) { + int jresult ; + GoSlice_ *arg1 = (GoSlice_ *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + GoSlice_ *arg5 = (GoSlice_ *) 0 ; + int result; + + arg1 = (GoSlice_ *)jarg1; + arg2 = (int)jarg2; + arg3 = (int)jarg3; + arg4 = (int)jarg4; + arg5 = (GoSlice_ *)jarg5; + result = (int)cutSlice(arg1,arg2,arg3,arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_makeEmptyTransaction(void * jarg1) { + void * jresult ; + Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; + coin__Transaction *result = 0 ; + + arg1 = (Transaction__Handle *)jarg1; + result = (coin__Transaction *)makeEmptyTransaction(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_GoSlicep() { + void * jresult ; + GoSlice *result = 0 ; + + result = (GoSlice *)new_GoSlicep(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_GoSlicep(void * jarg1) { + void * jresult ; + GoSlice arg1 ; + GoSlice *argp1 ; + GoSlice *result = 0 ; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + result = (GoSlice *)copy_GoSlicep(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_GoSlicep(void * jarg1) { + GoSlice *arg1 = (GoSlice *) 0 ; + + arg1 = (GoSlice *)jarg1; + delete_GoSlicep(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoSlicep_assign(void * jarg1, void * jarg2) { + GoSlice *arg1 = (GoSlice *) 0 ; + GoSlice arg2 ; + GoSlice *argp2 ; + + arg1 = (GoSlice *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return ; + } + arg2 = *argp2; + GoSlicep_assign(arg1,arg2); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_GoSlicep_value(void * jarg1) { + void * jresult ; + GoSlice *arg1 = (GoSlice *) 0 ; + GoSlice result; + + arg1 = (GoSlice *)jarg1; + result = GoSlicep_value(arg1); + { + GoSlice * resultptr = (GoSlice *) malloc(sizeof(GoSlice)); + memmove(resultptr, &result, sizeof(GoSlice)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_GoStringp() { + void * jresult ; + _GoString_ *result = 0 ; + + result = (_GoString_ *)new_GoStringp(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_GoStringp(void * jarg1) { + void * jresult ; + _GoString_ arg1 ; + _GoString_ *argp1 ; + _GoString_ *result = 0 ; - argp1 = (Handle *)jarg1; + argp1 = (_GoString_ *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); - return ; + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null _GoString_", 0); + return 0; } arg1 = *argp1; - closeRegisteredHandle(arg1); + result = (_GoString_ *)copy_GoStringp(arg1); + jresult = (void *)result; + return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cleanupWallet(void * jarg1, void * jarg2) { - Client__Handle arg1 ; - WalletResponse__Handle arg2 ; - Client__Handle *argp1 ; - WalletResponse__Handle *argp2 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_GoStringp(void * jarg1) { + _GoString_ *arg1 = (_GoString_ *) 0 ; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return ; - } - arg1 = *argp1; - argp2 = (WalletResponse__Handle *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); - return ; - } - arg2 = *argp2; - cleanupWallet(arg1,arg2); + arg1 = (_GoString_ *)jarg1; + delete_GoStringp(arg1); } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cleanRegisteredWallet(void * jarg1, void * jarg2) { - Client__Handle arg1 ; - WalletResponse__Handle arg2 ; - Client__Handle *argp1 ; - WalletResponse__Handle *argp2 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoStringp_assign(void * jarg1, void * jarg2) { + _GoString_ *arg1 = (_GoString_ *) 0 ; + _GoString_ arg2 ; + _GoString_ *argp2 ; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return ; - } - arg1 = *argp1; - argp2 = (WalletResponse__Handle *)jarg2; + arg1 = (_GoString_ *)jarg1; + argp2 = (_GoString_ *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null _GoString_", 0); return ; } arg2 = *argp2; - cleanRegisteredWallet(arg1,arg2); + GoStringp_assign(arg1,arg2); } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cleanupMem() { - cleanupMem(); +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_GoStringp_value(void * jarg1) { + void * jresult ; + _GoString_ *arg1 = (_GoString_ *) 0 ; + _GoString_ result; + + arg1 = (_GoString_ *)jarg1; + result = GoStringp_value(arg1); + { + _GoString_ * resultptr = (_GoString_ *) malloc(sizeof(_GoString_)); + memmove(resultptr, &result, sizeof(_GoString_)); + jresult = resultptr; + } + return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_setup() { - setup(); +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_intp() { + void * jresult ; + int *result = 0 ; + + result = (int *)new_intp(); + jresult = (void *)result; + return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_teardown() { - teardown(); +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_intp(int jarg1) { + void * jresult ; + int arg1 ; + int *result = 0 ; + + arg1 = (int)jarg1; + result = (int *)copy_intp(arg1); + jresult = (void *)result; + return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_fprintbuff(void * jarg1, void * jarg2, unsigned long jarg3) { - FILE *arg1 = (FILE *) 0 ; - void *arg2 = (void *) 0 ; - size_t arg3 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_intp(void * jarg1) { + int *arg1 = (int *) 0 ; - arg1 = (FILE *)jarg1; - arg2 = (void *)jarg2; - arg3 = (size_t)jarg3; - fprintbuff(arg1,arg2,arg3); + arg1 = (int *)jarg1; + delete_intp(arg1); } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_parseBoolean(char * jarg1, int jarg2) { - int jresult ; - char *arg1 = (char *) 0 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_intp_assign(void * jarg1, int jarg2) { + int *arg1 = (int *) 0 ; int arg2 ; - int result; - arg1 = (char *)jarg1; + arg1 = (int *)jarg1; arg2 = (int)jarg2; - result = (int)parseBoolean((char const *)arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_toGoString(void * jarg1, void * jarg2) { - GoString_ *arg1 = (GoString_ *) 0 ; - GoString *arg2 = (GoString *) 0 ; - - arg1 = (GoString_ *)jarg1; - arg2 = (GoString *)jarg2; - toGoString(arg1,arg2); + intp_assign(arg1,arg2); } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_copySlice(void * jarg1, void * jarg2, int jarg3) { +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_intp_value(void * jarg1) { int jresult ; - GoSlice_ *arg1 = (GoSlice_ *) 0 ; - GoSlice_ *arg2 = (GoSlice_ *) 0 ; - int arg3 ; + int *arg1 = (int *) 0 ; int result; - arg1 = (GoSlice_ *)jarg1; - arg2 = (GoSlice_ *)jarg2; - arg3 = (int)jarg3; - result = (int)copySlice(arg1,arg2,arg3); + arg1 = (int *)jarg1; + result = (int)intp_value(arg1); jresult = result; return jresult; } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_concatSlices(void * jarg1, void * jarg2, int jarg3, void * jarg4) { - int jresult ; - GoSlice_ *arg1 = (GoSlice_ *) 0 ; - GoSlice_ *arg2 = (GoSlice_ *) 0 ; - int arg3 ; - GoSlice_ *arg4 = (GoSlice_ *) 0 ; - int result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_Transaction__Handlep() { + void * jresult ; + Transaction__Handle *result = 0 ; - arg1 = (GoSlice_ *)jarg1; - arg2 = (GoSlice_ *)jarg2; - arg3 = (int)jarg3; - arg4 = (GoSlice_ *)jarg4; - result = (int)concatSlices(arg1,arg2,arg3,arg4); - jresult = result; + result = (Transaction__Handle *)new_Transaction__Handlep(); + jresult = (void *)result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_parseJsonMetaData(char * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5) { - char *arg1 = (char *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int *arg4 = (int *) 0 ; - int *arg5 = (int *) 0 ; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_Transaction__Handlep(void * jarg1) { + void * jresult ; + Transaction__Handle arg1 ; + Transaction__Handle *argp1 ; + Transaction__Handle *result = 0 ; - arg1 = (char *)jarg1; - arg2 = (int *)jarg2; - arg3 = (int *)jarg3; - arg4 = (int *)jarg4; - arg5 = (int *)jarg5; - parseJsonMetaData(arg1,arg2,arg3,arg4,arg5); + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + result = (Transaction__Handle *)copy_Transaction__Handlep(arg1); + jresult = (void *)result; + return jresult; } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cutSlice(void * jarg1, int jarg2, int jarg3, int jarg4, void * jarg5) { - int jresult ; - GoSlice_ *arg1 = (GoSlice_ *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - GoSlice_ *arg5 = (GoSlice_ *) 0 ; - int result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_Transaction__Handlep(void * jarg1) { + Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; - arg1 = (GoSlice_ *)jarg1; - arg2 = (int)jarg2; - arg3 = (int)jarg3; - arg4 = (int)jarg4; - arg5 = (GoSlice_ *)jarg5; - result = (int)cutSlice(arg1,arg2,arg3,arg4,arg5); - jresult = result; - return jresult; + arg1 = (Transaction__Handle *)jarg1; + delete_Transaction__Handlep(arg1); } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_makeEmptyTransaction(void * jarg1) { - void * jresult ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_Transaction__Handlep_assign(void * jarg1, void * jarg2) { Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; - coin__Transaction *result = 0 ; + Transaction__Handle arg2 ; + Transaction__Handle *argp2 ; arg1 = (Transaction__Handle *)jarg1; - result = (coin__Transaction *)makeEmptyTransaction(arg1); - jresult = (void *)result; - return jresult; + argp2 = (Transaction__Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return ; + } + arg2 = *argp2; + Transaction__Handlep_assign(arg1,arg2); } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_makeAddress(void * jarg1) { - int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - int result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_Transaction__Handlep_value(void * jarg1) { + void * jresult ; + Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; + Transaction__Handle result; - arg1 = (cipher__Address *)jarg1; - result = (int)makeAddress(arg1); - jresult = result; + arg1 = (Transaction__Handle *)jarg1; + result = Transaction__Handlep_value(arg1); + { + Transaction__Handle * resultptr = (Transaction__Handle *) malloc(sizeof(Transaction__Handle)); + memmove(resultptr, &result, sizeof(Transaction__Handle)); + jresult = resultptr; + } return jresult; } @@ -6991,18 +6962,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetLastBloc } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_browser_Open(char* jarg1) { - unsigned int jresult ; - GoString arg1 ; - GoUint32 result; - - (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); - result = (GoUint32)SKY_browser_Open(arg1); - jresult = result; - return jresult; -} - - SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_iputil_LocalhostIP(GoString* jarg1) { unsigned int jresult ; GoString_ *arg1 = (GoString_ *) 0 ; diff --git a/LibskycoinNetTest/LibskycoinNetTest.csproj b/LibskycoinNetTest/LibskycoinNetTest.csproj index 040a0c29..043d930c 100644 --- a/LibskycoinNetTest/LibskycoinNetTest.csproj +++ b/LibskycoinNetTest/LibskycoinNetTest.csproj @@ -34,6 +34,7 @@ + diff --git a/LibskycoinNetTest/check_util_fee.cs b/LibskycoinNetTest/check_util_fee.cs index caba8b5f..56ca87fb 100644 --- a/LibskycoinNetTest/check_util_fee.cs +++ b/LibskycoinNetTest/check_util_fee.cs @@ -1,10 +1,12 @@ using System; using NUnit.Framework; using skycoin; +using utils; namespace LibskycoinNetTest { [TestFixture ()] public class check_util_fee { + utils.transutils transutils = new utils.transutils (); struct verifyTxFeeTestCase { public ulong inputHours; public ulong ouputHours; @@ -109,9 +111,10 @@ public void FullburnFactor2verifyTxFeeTestCase () { public void TestVerifyTransactionFee () { FullburnFactor2verifyTxFeeTestCase (); var empty = skycoin.skycoin.new_Transaction__Handlep (); - skycoin.skycoin.makeEmptyTransaction (empty); + var err = transutils.makeEmptyTransaction (empty); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); var hours = skycoin.skycoin.new_GoUint64p (); - var err = skycoin.skycoin.SKY_coin_Transaction_OutputHours (empty, hours); + err = skycoin.skycoin.SKY_coin_Transaction_OutputHours (empty, hours); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); Assert.AreEqual (skycoin.skycoin.GoUint64p_value (hours), 0); @@ -124,8 +127,8 @@ public void TestVerifyTransactionFee () { Assert.AreEqual (err, skycoin.skycoin.SKY_OK); var txn = skycoin.skycoin.new_Transaction__Handlep (); skycoin.skycoin.makeEmptyTransaction (txn); - var addr = skycoin.skycoin.new_cipher__Addressp (); - err = (uint) skycoin.skycoin.makeAddress (addr); + var addr = new cipher__Address (); + err = transutils.makeAddress (addr); Assert.AreEqual (err, 0); err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (txn, addr, 0, 1000000); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); @@ -262,6 +265,8 @@ struct StrTest { } StrTest[] ListCases = new StrTest[6]; public void FullCases () { + + ListCases = new StrTest[1]; ulong headTime = 1000; ulong nextTime = (headTime + 3600); //1 hour later var cases = new StrTest (); @@ -278,14 +283,24 @@ public void FullCases () { [Test] public void TestTransactionFee () { - + FullCases (); + var addr = new skycoin.cipher__Address (); + var err = transutils.makeAddress (addr); + Assert.AreEqual (err, 0); for (int i = 0; i < ListCases.Length; i++) { var tc = ListCases[i]; var tx = skycoin.skycoin.new_Transaction__Handlep (); - + err = transutils.makeEmptyTransaction (tx); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + for (int j = 0; j < tc.outs.Length; j++) { + var h = tc.outs[j]; + err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (tx, addr, (ulong) 0, (ulong) h); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + } + var inUxs = new GoSlice (); + // err = (uint) skycoin.skycoin.makeUxArray (inUxs, tc.ins.Length); +// c Assert.AreEqual (err, skycoin.skycoin.SKY_OK); } - } - } } \ No newline at end of file diff --git a/LibskycoinNetTest/transutils.cs b/LibskycoinNetTest/transutils.cs new file mode 100644 index 00000000..ea9f7045 --- /dev/null +++ b/LibskycoinNetTest/transutils.cs @@ -0,0 +1,22 @@ +using System; +using NUnit.Framework; +using skycoin; +namespace utils { + public class transutils { + public uint makeAddress (cipher__Address paddress) { + var pubkey = new cipher_PubKey (); + var seckey = new cipher_SecKey (); + var addr = new cipher__Address (); + var result = skycoin.skycoin.SKY_cipher_GenerateKeyPair (pubkey, seckey); + Assert.AreEqual (result, skycoin.skycoin.SKY_OK); + result = skycoin.skycoin.SKY_cipher_AddressFromPubKey (pubkey, addr); + return result; + } + + public uint makeEmptyTransaction (SWIGTYPE_p_Transaction__Handle txn) { + var result = skycoin.skycoin.SKY_coin_Create_Transaction (txn); + Assert.AreEqual (result, skycoin.skycoin.SKY_OK); + return result; + } + } +} \ No newline at end of file diff --git a/Makefile b/Makefile index 0b91143f..8172ec12 100644 --- a/Makefile +++ b/Makefile @@ -60,4 +60,4 @@ test: install make build-swig msbuild /p:Configuration=Release LibskycoinNet.sln make build-libskycoin-net - mono ./testrunner/NUnit.Runners.2.6.4/tools/nunit-console.exe ./LibskycoinNetTest/bin/Release/LibskycoinNetTest.dll \ No newline at end of file + mono ./testrunner/NUnit.Runners.2.6.4/tools/nunit-console.exe ./LibskycoinNetTest/bin/Release/LibskycoinNetTest.dll -labels \ No newline at end of file diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index d1f0392a..d30cdad5 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit d1f0392add4a64179a7f363f8162868a5e8fb1f5 +Subproject commit d30cdad55713d2a722687768ba2d8cc91118fdb2 diff --git a/swig/include/libskycoin.h b/swig/include/libskycoin.h index 7006e7e5..f9408a99 100644 --- a/swig/include/libskycoin.h +++ b/swig/include/libskycoin.h @@ -148,16 +148,6 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 5 "util.browser.browser.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - #line 5 "util.iputil.iputil.go" @@ -926,8 +916,6 @@ extern GoUint32 SKY_webrpc_Client_GetBlocksBySeq(WebRpcClient__Handle p0, GoSlic extern GoUint32 SKY_webrpc_Client_GetLastBlocks(WebRpcClient__Handle p0, GoUint64 p1, coin__UxArray* p2); -extern GoUint32 SKY_browser_Open(GoString p0); - extern GoUint32 SKY_iputil_LocalhostIP(GoString_* p0); extern GoUint32 SKY_iputil_IsLocalhost(GoString p0, GoUint8* p1); From 18b17f66d7ea90cc44e085f4b0568d94a6694161 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Wed, 26 Sep 2018 04:24:32 -0400 Subject: [PATCH 33/73] [test] Update submodule and add transutils.cs --- LibskycoinNet/LibskycoinNet.csproj | 2 + LibskycoinNet/skycoin/GoSlice.cs | 5 + .../skycoin/SWIGTYPE_p_a_4__unsigned_char.cs | 29 ++ LibskycoinNet/skycoin/coin__BlockHeader.cs | 24 +- .../skycoin/coin__TransactionOutput.cs | 16 +- LibskycoinNet/skycoin/coin__UxBody.cs | 16 +- LibskycoinNet/skycoin/coin__UxHead.cs | 16 +- LibskycoinNet/skycoin/skycoin.cs | 20 + LibskycoinNet/skycoin/skycoinPINVOKE.cs | 59 +-- LibskycoinNet/skycoin/skycoinnet_wrap.c | 355 ++++++++++-------- LibskycoinNet/skycoin/wallet__Balance.cs | 16 +- LibskycoinNetTest/check_util_fee.cs | 35 +- gopath/src/github.com/skycoin/skycoin | 2 +- 13 files changed, 349 insertions(+), 246 deletions(-) create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_a_4__unsigned_char.cs diff --git a/LibskycoinNet/LibskycoinNet.csproj b/LibskycoinNet/LibskycoinNet.csproj index 24d2ac0b..d9e8bc52 100644 --- a/LibskycoinNet/LibskycoinNet.csproj +++ b/LibskycoinNet/LibskycoinNet.csproj @@ -133,6 +133,8 @@ + + diff --git a/LibskycoinNet/skycoin/GoSlice.cs b/LibskycoinNet/skycoin/GoSlice.cs index 48985056..3e0f17a0 100644 --- a/LibskycoinNet/skycoin/GoSlice.cs +++ b/LibskycoinNet/skycoin/GoSlice.cs @@ -50,6 +50,11 @@ public void convertString(_GoString_ data) { if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } + public void setcoin_UxOut(coin__UxOut ux, int p) { + skycoinPINVOKE.GoSlice_setcoin_UxOut(swigCPtr, coin__UxOut.getCPtr(ux), p); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + public SWIGTYPE_p_void data { set { skycoinPINVOKE.set_GoSlice_data(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_a_4__unsigned_char.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_a_4__unsigned_char.cs new file mode 100644 index 00000000..0adc706b --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_a_4__unsigned_char.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_a_4__unsigned_char { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_a_4__unsigned_char(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_a_4__unsigned_char() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_a_4__unsigned_char obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/coin__BlockHeader.cs b/LibskycoinNet/skycoin/coin__BlockHeader.cs index fdef1250..9d704c7d 100644 --- a/LibskycoinNet/skycoin/coin__BlockHeader.cs +++ b/LibskycoinNet/skycoin/coin__BlockHeader.cs @@ -57,38 +57,32 @@ public SWIGTYPE_p_GoUint32_ Version { } } - public SWIGTYPE_p_GoUint64_ Time { + public ulong Time { set { - skycoinPINVOKE.set_coin__BlockHeader_Time(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + skycoinPINVOKE.set_coin__BlockHeader_Time(swigCPtr, value); } get { - SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.get_coin__BlockHeader_Time(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + ulong ret = skycoinPINVOKE.get_coin__BlockHeader_Time(swigCPtr); return ret; } } - public SWIGTYPE_p_GoUint64_ BkSeq { + public ulong BkSeq { set { - skycoinPINVOKE.set_coin__BlockHeader_BkSeq(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + skycoinPINVOKE.set_coin__BlockHeader_BkSeq(swigCPtr, value); } get { - SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.get_coin__BlockHeader_BkSeq(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + ulong ret = skycoinPINVOKE.get_coin__BlockHeader_BkSeq(swigCPtr); return ret; } } - public SWIGTYPE_p_GoUint64_ Fee { + public ulong Fee { set { - skycoinPINVOKE.set_coin__BlockHeader_Fee(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + skycoinPINVOKE.set_coin__BlockHeader_Fee(swigCPtr, value); } get { - SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.get_coin__BlockHeader_Fee(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + ulong ret = skycoinPINVOKE.get_coin__BlockHeader_Fee(swigCPtr); return ret; } } diff --git a/LibskycoinNet/skycoin/coin__TransactionOutput.cs b/LibskycoinNet/skycoin/coin__TransactionOutput.cs index 12d2f7d9..a910cc47 100644 --- a/LibskycoinNet/skycoin/coin__TransactionOutput.cs +++ b/LibskycoinNet/skycoin/coin__TransactionOutput.cs @@ -56,26 +56,22 @@ public cipher__Address Address { } } - public SWIGTYPE_p_GoUint64_ Coins { + public ulong Coins { set { - skycoinPINVOKE.set_coin__TransactionOutput_Coins(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + skycoinPINVOKE.set_coin__TransactionOutput_Coins(swigCPtr, value); } get { - SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.get_coin__TransactionOutput_Coins(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + ulong ret = skycoinPINVOKE.get_coin__TransactionOutput_Coins(swigCPtr); return ret; } } - public SWIGTYPE_p_GoUint64_ Hours { + public ulong Hours { set { - skycoinPINVOKE.set_coin__TransactionOutput_Hours(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + skycoinPINVOKE.set_coin__TransactionOutput_Hours(swigCPtr, value); } get { - SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.get_coin__TransactionOutput_Hours(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + ulong ret = skycoinPINVOKE.get_coin__TransactionOutput_Hours(swigCPtr); return ret; } } diff --git a/LibskycoinNet/skycoin/coin__UxBody.cs b/LibskycoinNet/skycoin/coin__UxBody.cs index 9a7de701..4668aa70 100644 --- a/LibskycoinNet/skycoin/coin__UxBody.cs +++ b/LibskycoinNet/skycoin/coin__UxBody.cs @@ -62,26 +62,22 @@ public cipher__Address Address { } } - public SWIGTYPE_p_GoUint64_ Coins { + public ulong Coins { set { - skycoinPINVOKE.set_coin__UxBody_Coins(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + skycoinPINVOKE.set_coin__UxBody_Coins(swigCPtr, value); } get { - SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.get_coin__UxBody_Coins(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + ulong ret = skycoinPINVOKE.get_coin__UxBody_Coins(swigCPtr); return ret; } } - public SWIGTYPE_p_GoUint64_ Hours { + public ulong Hours { set { - skycoinPINVOKE.set_coin__UxBody_Hours(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + skycoinPINVOKE.set_coin__UxBody_Hours(swigCPtr, value); } get { - SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.get_coin__UxBody_Hours(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + ulong ret = skycoinPINVOKE.get_coin__UxBody_Hours(swigCPtr); return ret; } } diff --git a/LibskycoinNet/skycoin/coin__UxHead.cs b/LibskycoinNet/skycoin/coin__UxHead.cs index d24a39dc..5d65d83e 100644 --- a/LibskycoinNet/skycoin/coin__UxHead.cs +++ b/LibskycoinNet/skycoin/coin__UxHead.cs @@ -40,26 +40,22 @@ public virtual void Dispose() { } } - public SWIGTYPE_p_GoUint64_ Time { + public ulong Time { set { - skycoinPINVOKE.set_coin__UxHead_Time(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + skycoinPINVOKE.set_coin__UxHead_Time(swigCPtr, value); } get { - SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.get_coin__UxHead_Time(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + ulong ret = skycoinPINVOKE.get_coin__UxHead_Time(swigCPtr); return ret; } } - public SWIGTYPE_p_GoUint64_ BkSeq { + public ulong BkSeq { set { - skycoinPINVOKE.set_coin__UxHead_BkSeq(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + skycoinPINVOKE.set_coin__UxHead_BkSeq(swigCPtr, value); } get { - SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.get_coin__UxHead_BkSeq(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + ulong ret = skycoinPINVOKE.get_coin__UxHead_BkSeq(swigCPtr); return ret; } } diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs index 6e5c5e36..54517b73 100644 --- a/LibskycoinNet/skycoin/skycoin.cs +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -241,6 +241,26 @@ public static coin__Transaction makeEmptyTransaction(SWIGTYPE_p_Transaction__Han return ret; } + public static int makeUxBodyWithSecret(coin__UxBody puxBody, SWIGTYPE_p_a_32__GoUint8_ pseckey) { + int ret = skycoinPINVOKE.makeUxBodyWithSecret(coin__UxBody.getCPtr(puxBody), SWIGTYPE_p_a_32__GoUint8_.getCPtr(pseckey)); + return ret; + } + + public static int makeUxOutWithSecret(coin__UxOut puxOut, SWIGTYPE_p_a_32__GoUint8_ pseckey) { + int ret = skycoinPINVOKE.makeUxOutWithSecret(coin__UxOut.getCPtr(puxOut), SWIGTYPE_p_a_32__GoUint8_.getCPtr(pseckey)); + return ret; + } + + public static int makeUxOut(coin__UxOut puxOut) { + int ret = skycoinPINVOKE.makeUxOut(coin__UxOut.getCPtr(puxOut)); + return ret; + } + + public static int makeUxArray(GoSlice parray, int n) { + int ret = skycoinPINVOKE.makeUxArray(GoSlice.getCPtr(parray), n); + return ret; + } + public static GoSlice new_GoSlicep() { global::System.IntPtr cPtr = skycoinPINVOKE.new_GoSlicep(); GoSlice ret = (cPtr == global::System.IntPtr.Zero) ? null : new GoSlice(cPtr, false); diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index 382b6b4b..09e7d09e 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -344,6 +344,18 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_makeEmptyTransaction")] public static extern global::System.IntPtr makeEmptyTransaction(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_makeUxBodyWithSecret")] + public static extern int makeUxBodyWithSecret(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_makeUxOutWithSecret")] + public static extern int makeUxOutWithSecret(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_makeUxOut")] + public static extern int makeUxOut(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_makeUxArray")] + public static extern int makeUxArray(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_GoSlicep")] public static extern global::System.IntPtr new_GoSlicep(); @@ -818,6 +830,9 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_convertString")] public static extern void GoSlice_convertString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_setcoin_UxOut")] + public static extern void GoSlice_setcoin_UxOut(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_GoSlice_data")] public static extern void set_GoSlice_data(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -2439,16 +2454,16 @@ static skycoinPINVOKE() { public static extern global::System.IntPtr get_coin__TransactionOutput_Address(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__TransactionOutput_Coins")] - public static extern void set_coin__TransactionOutput_Coins(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern void set_coin__TransactionOutput_Coins(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__TransactionOutput_Coins")] - public static extern global::System.IntPtr get_coin__TransactionOutput_Coins(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern ulong get_coin__TransactionOutput_Coins(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__TransactionOutput_Hours")] - public static extern void set_coin__TransactionOutput_Hours(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern void set_coin__TransactionOutput_Hours(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__TransactionOutput_Hours")] - public static extern global::System.IntPtr get_coin__TransactionOutput_Hours(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern ulong get_coin__TransactionOutput_Hours(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__TransactionOutput")] public static extern global::System.IntPtr new_coin__TransactionOutput(); @@ -2466,22 +2481,22 @@ static skycoinPINVOKE() { public static extern global::System.IntPtr get_coin__BlockHeader_Version(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__BlockHeader_Time")] - public static extern void set_coin__BlockHeader_Time(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern void set_coin__BlockHeader_Time(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__BlockHeader_Time")] - public static extern global::System.IntPtr get_coin__BlockHeader_Time(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern ulong get_coin__BlockHeader_Time(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__BlockHeader_BkSeq")] - public static extern void set_coin__BlockHeader_BkSeq(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern void set_coin__BlockHeader_BkSeq(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__BlockHeader_BkSeq")] - public static extern global::System.IntPtr get_coin__BlockHeader_BkSeq(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern ulong get_coin__BlockHeader_BkSeq(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__BlockHeader_Fee")] - public static extern void set_coin__BlockHeader_Fee(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern void set_coin__BlockHeader_Fee(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__BlockHeader_Fee")] - public static extern global::System.IntPtr get_coin__BlockHeader_Fee(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern ulong get_coin__BlockHeader_Fee(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__BlockHeader_PrevHash")] public static extern void set_coin__BlockHeader_PrevHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -2559,16 +2574,16 @@ static skycoinPINVOKE() { public static extern void delete_coin__SignedBlock(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__UxHead_Time")] - public static extern void set_coin__UxHead_Time(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern void set_coin__UxHead_Time(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__UxHead_Time")] - public static extern global::System.IntPtr get_coin__UxHead_Time(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern ulong get_coin__UxHead_Time(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__UxHead_BkSeq")] - public static extern void set_coin__UxHead_BkSeq(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern void set_coin__UxHead_BkSeq(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__UxHead_BkSeq")] - public static extern global::System.IntPtr get_coin__UxHead_BkSeq(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern ulong get_coin__UxHead_BkSeq(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__UxHead")] public static extern global::System.IntPtr new_coin__UxHead(); @@ -2589,16 +2604,16 @@ static skycoinPINVOKE() { public static extern global::System.IntPtr get_coin__UxBody_Address(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__UxBody_Coins")] - public static extern void set_coin__UxBody_Coins(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern void set_coin__UxBody_Coins(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__UxBody_Coins")] - public static extern global::System.IntPtr get_coin__UxBody_Coins(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern ulong get_coin__UxBody_Coins(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__UxBody_Hours")] - public static extern void set_coin__UxBody_Hours(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern void set_coin__UxBody_Hours(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__UxBody_Hours")] - public static extern global::System.IntPtr get_coin__UxBody_Hours(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern ulong get_coin__UxBody_Hours(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__UxBody")] public static extern global::System.IntPtr new_coin__UxBody(); @@ -2628,16 +2643,16 @@ static skycoinPINVOKE() { public static extern void delete_coin__UxOut(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__Balance_Coins")] - public static extern void set_wallet__Balance_Coins(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern void set_wallet__Balance_Coins(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__Balance_Coins")] - public static extern global::System.IntPtr get_wallet__Balance_Coins(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern ulong get_wallet__Balance_Coins(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__Balance_Hours")] - public static extern void set_wallet__Balance_Hours(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern void set_wallet__Balance_Hours(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__Balance_Hours")] - public static extern global::System.IntPtr get_wallet__Balance_Hours(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern ulong get_wallet__Balance_Hours(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__Balance")] public static extern global::System.IntPtr new_wallet__Balance(); diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index eb42302d..08fa2049 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -682,7 +682,60 @@ coin__Transaction* makeEmptyTransaction(Transaction__Handle* handle){ result = SKY_coin_GetTransactionObject( *handle, &ptransaction ); return ptransaction; } +int makeUxBodyWithSecret(coin__UxBody* puxBody, cipher__SecKey* pseckey){ + cipher__PubKey pubkey; + cipher__Address address; + int result; + + memset( puxBody, 0, sizeof(coin__UxBody) ); + puxBody->Coins = 1000000; + puxBody->Hours = 100; + + result = SKY_cipher_GenerateKeyPair(&pubkey, pseckey); + if(result != 0){ return 1;} + GoSlice slice; + memset(&slice, 0, sizeof(GoSlice)); + cipher__SHA256 hash; + + result = SKY_cipher_RandByte( 128, (coin__UxArray*)&slice ); + registerMemCleanup( slice.data ); + if(result != 0){ return 1;} + result = SKY_cipher_SumSHA256( slice, &puxBody->SrcTransaction ); + if(result != 0){ return 1;} + + result = SKY_cipher_AddressFromPubKey( &pubkey, &puxBody->Address ); + if(result != 0){ return 1;} + return result; +} +int makeUxOutWithSecret(coin__UxOut* puxOut, cipher__SecKey* pseckey){ + int result; + memset( puxOut, 0, sizeof(coin__UxOut) ); + result = makeUxBodyWithSecret(&puxOut->Body, pseckey); + puxOut->Head.Time = 100; + puxOut->Head.BkSeq = 2; + return result; +} +int makeUxOut(coin__UxOut* puxOut){ + cipher__SecKey seckey; + return makeUxOutWithSecret(puxOut, &seckey); +} +int makeUxArray(GoSlice* parray, int n){ + parray->data = malloc( sizeof(coin__UxOut) * n ); + if(!parray->data) + return 1; + registerMemCleanup( parray->data ); + parray->cap = parray->len = n; + coin__UxOut* p = (coin__UxOut*)parray->data; + int result = 0; + for(int i = 0; i < n; i++){ + result = makeUxOut(p); + if( result != 0 ) + break; + p++; + } + return result; +} static GoSlice *new_GoSlicep() { @@ -1103,6 +1156,16 @@ SWIGINTERN void GoSlice_convertString(GoSlice *self,_GoString_ data){ self->len = strlen(data.p); self->cap = self->len; } +SWIGINTERN void GoSlice_setcoin_UxOut(GoSlice *self,coin__UxOut ux,int p){ + coin__UxOut *tmpOut = (coin__UxOut *)self->data; + for (int j = 0; j < self->len; j++) { + if(p == j){ + tmpOut->Head.Time = ux.Head.Time; + tmpOut->Body.Coins = ux.Body.Coins; + tmpOut->Body.Hours = ux.Body.Hours; + }} + tmpOut++; + } SWIGINTERN int cipher__Address_isEqual(cipher__Address *self,cipher__Address *a){ if( self->Version == a->Version ){ return memcmp(self->Key, a->Key, sizeof(a->Key)) == 0; @@ -1779,6 +1842,60 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_makeEmptyTransaction(void * jarg1) } +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_makeUxBodyWithSecret(void * jarg1, void * jarg2) { + int jresult ; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + int result; + + arg1 = (coin__UxBody *)jarg1; + arg2 = (cipher__SecKey *)jarg2; + result = (int)makeUxBodyWithSecret(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_makeUxOutWithSecret(void * jarg1, void * jarg2) { + int jresult ; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + int result; + + arg1 = (coin__UxOut *)jarg1; + arg2 = (cipher__SecKey *)jarg2; + result = (int)makeUxOutWithSecret(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_makeUxOut(void * jarg1) { + int jresult ; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + int result; + + arg1 = (coin__UxOut *)jarg1; + result = (int)makeUxOut(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_makeUxArray(void * jarg1, int jarg2) { + int jresult ; + GoSlice *arg1 = (GoSlice *) 0 ; + int arg2 ; + int result; + + arg1 = (GoSlice *)jarg1; + arg2 = (int)jarg2; + result = (int)makeUxArray(arg1,arg2); + jresult = result; + return jresult; +} + + SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_GoSlicep() { void * jresult ; GoSlice *result = 0 ; @@ -3678,6 +3795,24 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoSlice_convertString(void * jarg1, v } +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoSlice_setcoin_UxOut(void * jarg1, void * jarg2, int jarg3) { + GoSlice *arg1 = (GoSlice *) 0 ; + coin__UxOut arg2 ; + int arg3 ; + coin__UxOut *argp2 ; + + arg1 = (GoSlice *)jarg1; + argp2 = (coin__UxOut *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null coin__UxOut", 0); + return ; + } + arg2 = *argp2; + arg3 = (int)jarg3; + GoSlice_setcoin_UxOut(arg1,arg2,arg3); +} + + SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_GoSlice_data(void * jarg1, void * jarg2) { GoSlice *arg1 = (GoSlice *) 0 ; void *arg2 = (void *) 0 ; @@ -13580,66 +13715,46 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__TransactionOutput_Address } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__TransactionOutput_Coins(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__TransactionOutput_Coins(void * jarg1, unsigned long long jarg2) { coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; GoUint64_ arg2 ; - GoUint64_ *argp2 ; arg1 = (coin__TransactionOutput *)jarg1; - argp2 = (GoUint64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); - return ; - } - arg2 = *argp2; + arg2 = (GoUint64_)jarg2; if (arg1) (arg1)->Coins = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__TransactionOutput_Coins(void * jarg1) { - void * jresult ; +SWIGEXPORT unsigned long long SWIGSTDCALL CSharp_skycoin_get_coin__TransactionOutput_Coins(void * jarg1) { + unsigned long long jresult ; coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; GoUint64_ result; arg1 = (coin__TransactionOutput *)jarg1; result = ((arg1)->Coins); - { - GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); - memmove(resultptr, &result, sizeof(GoUint64_)); - jresult = resultptr; - } + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__TransactionOutput_Hours(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__TransactionOutput_Hours(void * jarg1, unsigned long long jarg2) { coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; GoUint64_ arg2 ; - GoUint64_ *argp2 ; arg1 = (coin__TransactionOutput *)jarg1; - argp2 = (GoUint64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); - return ; - } - arg2 = *argp2; + arg2 = (GoUint64_)jarg2; if (arg1) (arg1)->Hours = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__TransactionOutput_Hours(void * jarg1) { - void * jresult ; +SWIGEXPORT unsigned long long SWIGSTDCALL CSharp_skycoin_get_coin__TransactionOutput_Hours(void * jarg1) { + unsigned long long jresult ; coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; GoUint64_ result; arg1 = (coin__TransactionOutput *)jarg1; result = ((arg1)->Hours); - { - GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); - memmove(resultptr, &result, sizeof(GoUint64_)); - jresult = resultptr; - } + jresult = result; return jresult; } @@ -13708,98 +13823,68 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__BlockHeader_Version(void } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__BlockHeader_Time(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__BlockHeader_Time(void * jarg1, unsigned long long jarg2) { coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; GoUint64_ arg2 ; - GoUint64_ *argp2 ; arg1 = (coin__BlockHeader *)jarg1; - argp2 = (GoUint64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); - return ; - } - arg2 = *argp2; + arg2 = (GoUint64_)jarg2; if (arg1) (arg1)->Time = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__BlockHeader_Time(void * jarg1) { - void * jresult ; +SWIGEXPORT unsigned long long SWIGSTDCALL CSharp_skycoin_get_coin__BlockHeader_Time(void * jarg1) { + unsigned long long jresult ; coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; GoUint64_ result; arg1 = (coin__BlockHeader *)jarg1; result = ((arg1)->Time); - { - GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); - memmove(resultptr, &result, sizeof(GoUint64_)); - jresult = resultptr; - } + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__BlockHeader_BkSeq(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__BlockHeader_BkSeq(void * jarg1, unsigned long long jarg2) { coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; GoUint64_ arg2 ; - GoUint64_ *argp2 ; arg1 = (coin__BlockHeader *)jarg1; - argp2 = (GoUint64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); - return ; - } - arg2 = *argp2; + arg2 = (GoUint64_)jarg2; if (arg1) (arg1)->BkSeq = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__BlockHeader_BkSeq(void * jarg1) { - void * jresult ; +SWIGEXPORT unsigned long long SWIGSTDCALL CSharp_skycoin_get_coin__BlockHeader_BkSeq(void * jarg1) { + unsigned long long jresult ; coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; GoUint64_ result; arg1 = (coin__BlockHeader *)jarg1; result = ((arg1)->BkSeq); - { - GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); - memmove(resultptr, &result, sizeof(GoUint64_)); - jresult = resultptr; - } + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__BlockHeader_Fee(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__BlockHeader_Fee(void * jarg1, unsigned long long jarg2) { coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; GoUint64_ arg2 ; - GoUint64_ *argp2 ; arg1 = (coin__BlockHeader *)jarg1; - argp2 = (GoUint64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); - return ; - } - arg2 = *argp2; + arg2 = (GoUint64_)jarg2; if (arg1) (arg1)->Fee = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__BlockHeader_Fee(void * jarg1) { - void * jresult ; +SWIGEXPORT unsigned long long SWIGSTDCALL CSharp_skycoin_get_coin__BlockHeader_Fee(void * jarg1) { + unsigned long long jresult ; coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; GoUint64_ result; arg1 = (coin__BlockHeader *)jarg1; result = ((arg1)->Fee); - { - GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); - memmove(resultptr, &result, sizeof(GoUint64_)); - jresult = resultptr; - } + jresult = result; return jresult; } @@ -14092,66 +14177,46 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__SignedBlock(void * jarg1 } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__UxHead_Time(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__UxHead_Time(void * jarg1, unsigned long long jarg2) { coin__UxHead *arg1 = (coin__UxHead *) 0 ; GoUint64_ arg2 ; - GoUint64_ *argp2 ; arg1 = (coin__UxHead *)jarg1; - argp2 = (GoUint64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); - return ; - } - arg2 = *argp2; + arg2 = (GoUint64_)jarg2; if (arg1) (arg1)->Time = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__UxHead_Time(void * jarg1) { - void * jresult ; +SWIGEXPORT unsigned long long SWIGSTDCALL CSharp_skycoin_get_coin__UxHead_Time(void * jarg1) { + unsigned long long jresult ; coin__UxHead *arg1 = (coin__UxHead *) 0 ; GoUint64_ result; arg1 = (coin__UxHead *)jarg1; result = ((arg1)->Time); - { - GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); - memmove(resultptr, &result, sizeof(GoUint64_)); - jresult = resultptr; - } + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__UxHead_BkSeq(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__UxHead_BkSeq(void * jarg1, unsigned long long jarg2) { coin__UxHead *arg1 = (coin__UxHead *) 0 ; GoUint64_ arg2 ; - GoUint64_ *argp2 ; arg1 = (coin__UxHead *)jarg1; - argp2 = (GoUint64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); - return ; - } - arg2 = *argp2; + arg2 = (GoUint64_)jarg2; if (arg1) (arg1)->BkSeq = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__UxHead_BkSeq(void * jarg1) { - void * jresult ; +SWIGEXPORT unsigned long long SWIGSTDCALL CSharp_skycoin_get_coin__UxHead_BkSeq(void * jarg1) { + unsigned long long jresult ; coin__UxHead *arg1 = (coin__UxHead *) 0 ; GoUint64_ result; arg1 = (coin__UxHead *)jarg1; result = ((arg1)->BkSeq); - { - GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); - memmove(resultptr, &result, sizeof(GoUint64_)); - jresult = resultptr; - } + jresult = result; return jresult; } @@ -14222,66 +14287,46 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__UxBody_Address(void * jar } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__UxBody_Coins(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__UxBody_Coins(void * jarg1, unsigned long long jarg2) { coin__UxBody *arg1 = (coin__UxBody *) 0 ; GoUint64_ arg2 ; - GoUint64_ *argp2 ; arg1 = (coin__UxBody *)jarg1; - argp2 = (GoUint64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); - return ; - } - arg2 = *argp2; + arg2 = (GoUint64_)jarg2; if (arg1) (arg1)->Coins = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__UxBody_Coins(void * jarg1) { - void * jresult ; +SWIGEXPORT unsigned long long SWIGSTDCALL CSharp_skycoin_get_coin__UxBody_Coins(void * jarg1) { + unsigned long long jresult ; coin__UxBody *arg1 = (coin__UxBody *) 0 ; GoUint64_ result; arg1 = (coin__UxBody *)jarg1; result = ((arg1)->Coins); - { - GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); - memmove(resultptr, &result, sizeof(GoUint64_)); - jresult = resultptr; - } + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__UxBody_Hours(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__UxBody_Hours(void * jarg1, unsigned long long jarg2) { coin__UxBody *arg1 = (coin__UxBody *) 0 ; GoUint64_ arg2 ; - GoUint64_ *argp2 ; arg1 = (coin__UxBody *)jarg1; - argp2 = (GoUint64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); - return ; - } - arg2 = *argp2; + arg2 = (GoUint64_)jarg2; if (arg1) (arg1)->Hours = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__UxBody_Hours(void * jarg1) { - void * jresult ; +SWIGEXPORT unsigned long long SWIGSTDCALL CSharp_skycoin_get_coin__UxBody_Hours(void * jarg1) { + unsigned long long jresult ; coin__UxBody *arg1 = (coin__UxBody *) 0 ; GoUint64_ result; arg1 = (coin__UxBody *)jarg1; result = ((arg1)->Hours); - { - GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); - memmove(resultptr, &result, sizeof(GoUint64_)); - jresult = resultptr; - } + jresult = result; return jresult; } @@ -14380,66 +14425,46 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__UxOut(void * jarg1) { } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__Balance_Coins(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__Balance_Coins(void * jarg1, unsigned long long jarg2) { wallet__Balance *arg1 = (wallet__Balance *) 0 ; GoUint64_ arg2 ; - GoUint64_ *argp2 ; arg1 = (wallet__Balance *)jarg1; - argp2 = (GoUint64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); - return ; - } - arg2 = *argp2; + arg2 = (GoUint64_)jarg2; if (arg1) (arg1)->Coins = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__Balance_Coins(void * jarg1) { - void * jresult ; +SWIGEXPORT unsigned long long SWIGSTDCALL CSharp_skycoin_get_wallet__Balance_Coins(void * jarg1) { + unsigned long long jresult ; wallet__Balance *arg1 = (wallet__Balance *) 0 ; GoUint64_ result; arg1 = (wallet__Balance *)jarg1; result = ((arg1)->Coins); - { - GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); - memmove(resultptr, &result, sizeof(GoUint64_)); - jresult = resultptr; - } + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__Balance_Hours(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__Balance_Hours(void * jarg1, unsigned long long jarg2) { wallet__Balance *arg1 = (wallet__Balance *) 0 ; GoUint64_ arg2 ; - GoUint64_ *argp2 ; arg1 = (wallet__Balance *)jarg1; - argp2 = (GoUint64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint64_", 0); - return ; - } - arg2 = *argp2; + arg2 = (GoUint64_)jarg2; if (arg1) (arg1)->Hours = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__Balance_Hours(void * jarg1) { - void * jresult ; +SWIGEXPORT unsigned long long SWIGSTDCALL CSharp_skycoin_get_wallet__Balance_Hours(void * jarg1) { + unsigned long long jresult ; wallet__Balance *arg1 = (wallet__Balance *) 0 ; GoUint64_ result; arg1 = (wallet__Balance *)jarg1; result = ((arg1)->Hours); - { - GoUint64_ * resultptr = (GoUint64_ *) malloc(sizeof(GoUint64_)); - memmove(resultptr, &result, sizeof(GoUint64_)); - jresult = resultptr; - } + jresult = result; return jresult; } diff --git a/LibskycoinNet/skycoin/wallet__Balance.cs b/LibskycoinNet/skycoin/wallet__Balance.cs index dddd4a37..7c8748c3 100644 --- a/LibskycoinNet/skycoin/wallet__Balance.cs +++ b/LibskycoinNet/skycoin/wallet__Balance.cs @@ -40,26 +40,22 @@ public virtual void Dispose() { } } - public SWIGTYPE_p_GoUint64_ Coins { + public ulong Coins { set { - skycoinPINVOKE.set_wallet__Balance_Coins(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + skycoinPINVOKE.set_wallet__Balance_Coins(swigCPtr, value); } get { - SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.get_wallet__Balance_Coins(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + ulong ret = skycoinPINVOKE.get_wallet__Balance_Coins(swigCPtr); return ret; } } - public SWIGTYPE_p_GoUint64_ Hours { + public ulong Hours { set { - skycoinPINVOKE.set_wallet__Balance_Hours(swigCPtr, SWIGTYPE_p_GoUint64_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + skycoinPINVOKE.set_wallet__Balance_Hours(swigCPtr, value); } get { - SWIGTYPE_p_GoUint64_ ret = new SWIGTYPE_p_GoUint64_(skycoinPINVOKE.get_wallet__Balance_Hours(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + ulong ret = skycoinPINVOKE.get_wallet__Balance_Hours(swigCPtr); return ret; } } diff --git a/LibskycoinNetTest/check_util_fee.cs b/LibskycoinNetTest/check_util_fee.cs index 56ca87fb..b2edeb80 100644 --- a/LibskycoinNetTest/check_util_fee.cs +++ b/LibskycoinNetTest/check_util_fee.cs @@ -266,9 +266,10 @@ struct StrTest { StrTest[] ListCases = new StrTest[6]; public void FullCases () { - ListCases = new StrTest[1]; + ListCases = new StrTest[2]; ulong headTime = 1000; ulong nextTime = (headTime + 3600); //1 hour later + var cases = new StrTest (); cases.fee = 5; cases.outs = new ulong[1]; @@ -279,6 +280,22 @@ public void FullCases () { cases.ins[0].hours = (ulong) 10; cases.headTime = headTime; ListCases[0] = cases; + + cases = new StrTest (); + cases.fee = 0; + cases.outs = new ulong[3]; + cases.outs[0] = 5; + cases.outs[1] = 7; + cases.outs[2] = 3; + cases.ins = new uxInput[2]; + cases.ins[0].time = headTime; + cases.ins[0].coins = (ulong) 10e6; + cases.ins[0].hours = (ulong) 10; + cases.ins[1].time = headTime; + cases.ins[1].coins = (ulong) 10e6; + cases.ins[1].hours = (ulong) 5; + cases.headTime = headTime; + ListCases[1] = cases; } [Test] @@ -298,8 +315,20 @@ public void TestTransactionFee () { Assert.AreEqual (err, skycoin.skycoin.SKY_OK); } var inUxs = new GoSlice (); - // err = (uint) skycoin.skycoin.makeUxArray (inUxs, tc.ins.Length); -// c Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = (uint) skycoin.skycoin.makeUxArray (inUxs, tc.ins.Length); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (inUxs.len, tc.ins.Length); + for (i = 0; i < tc.ins.Length; i++) { + uxInput b = tc.ins[i]; + coin__UxOut ux = new coin__UxOut (); + ux.Head.Time = b.time; + ux.Body.Coins = b.coins; + ux.Body.Hours = b.hours; + inUxs.setcoin_UxOut (ux, i); + } + var fee = skycoin.skycoin.new_GoUint64p (); + err = skycoin.skycoin.SKY_fee_TransactionFee (tx, tc.headTime, inUxs, fee); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); } } } diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index d30cdad5..2b71da46 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit d30cdad55713d2a722687768ba2d8cc91118fdb2 +Subproject commit 2b71da46cf648892c41eed4126e807c46a8cf4ae From 0720d9462e0c0ca0bdf4f4bb95a11dce74e01256 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Wed, 26 Sep 2018 05:44:20 -0400 Subject: [PATCH 34/73] [test] Finish test utils.fee Tests run: 39, Errors: 0, Failures: 0, Inconclusive: 0, Time: 13,2511235 seconds Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0 --- LibskycoinNet/skycoin/skycoinnet_wrap.c | 4 +- LibskycoinNetTest/check_util_fee.cs | 72 +++++++++++++++++++++++-- gopath/src/github.com/skycoin/skycoin | 2 +- 3 files changed, 70 insertions(+), 8 deletions(-) diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index 08fa2049..dc717b7b 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -1163,8 +1163,8 @@ SWIGINTERN void GoSlice_setcoin_UxOut(GoSlice *self,coin__UxOut ux,int p){ tmpOut->Head.Time = ux.Head.Time; tmpOut->Body.Coins = ux.Body.Coins; tmpOut->Body.Hours = ux.Body.Hours; - }} - tmpOut++; + } + tmpOut++;} } SWIGINTERN int cipher__Address_isEqual(cipher__Address *self,cipher__Address *a){ if( self->Version == a->Version ){ diff --git a/LibskycoinNetTest/check_util_fee.cs b/LibskycoinNetTest/check_util_fee.cs index b2edeb80..22358069 100644 --- a/LibskycoinNetTest/check_util_fee.cs +++ b/LibskycoinNetTest/check_util_fee.cs @@ -266,7 +266,6 @@ struct StrTest { StrTest[] ListCases = new StrTest[6]; public void FullCases () { - ListCases = new StrTest[2]; ulong headTime = 1000; ulong nextTime = (headTime + 3600); //1 hour later @@ -296,6 +295,67 @@ public void FullCases () { cases.ins[1].hours = (ulong) 5; cases.headTime = headTime; ListCases[1] = cases; + + cases = new StrTest (); + cases.fee = 8; + cases.outs = new ulong[2]; + cases.outs[0] = 5; + cases.outs[1] = 10; + cases.ins = new uxInput[2]; + cases.ins[0].time = nextTime; + cases.ins[0].coins = (ulong) 10e6; + cases.ins[0].hours = (ulong) 10; + cases.ins[1].time = headTime; + cases.ins[1].coins = (ulong) 8e6; + cases.ins[1].hours = (ulong) 5; + cases.headTime = nextTime; + ListCases[2] = cases; + + cases = new StrTest (); + cases.err = skycoin.skycoin.SKY_ErrTxnInsufficientCoinHours; + cases.outs = new ulong[3]; + cases.outs[0] = 5; + cases.outs[1] = 10; + cases.outs[2] = 1; + cases.ins = new uxInput[2]; + cases.ins[0].time = headTime; + cases.ins[0].coins = (ulong) 10e6; + cases.ins[0].hours = (ulong) 10; + cases.ins[1].time = headTime; + cases.ins[1].coins = (ulong) 8e6; + cases.ins[1].hours = (ulong) 5; + cases.headTime = headTime; + ListCases[3] = cases; + + cases = new StrTest (); + cases.err = skycoin.skycoin.SKY_ErrAddEarnedCoinHoursAdditionOverflow; + cases.outs = new ulong[1]; + cases.outs[0] = 0; + cases.ins = new uxInput[2]; + cases.ins[0].time = headTime; + cases.ins[0].coins = (ulong) 10e6; + cases.ins[0].hours = (ulong) 10; + cases.ins[1].time = headTime; + cases.ins[1].coins = (ulong) 10e6; + cases.ins[1].hours = (ulong.MaxValue - 9); + cases.headTime = nextTime; + ListCases[4] = cases; + + cases = new StrTest (); + cases.err = skycoin.skycoin.SKY_ERROR; + cases.outs = new ulong[3]; + cases.outs[0] = 0; + cases.outs[1] = 10; + cases.outs[2] = ulong.MaxValue - 9; + cases.ins = new uxInput[2]; + cases.ins[0].time = headTime; + cases.ins[0].coins = (ulong) 10e6; + cases.ins[0].hours = (ulong) 10; + cases.ins[1].time = headTime; + cases.ins[1].coins = (ulong) 10e6; + cases.ins[1].hours = (ulong) 100; + cases.headTime = headTime; + ListCases[5] = cases; } [Test] @@ -318,17 +378,19 @@ public void TestTransactionFee () { err = (uint) skycoin.skycoin.makeUxArray (inUxs, tc.ins.Length); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); Assert.AreEqual (inUxs.len, tc.ins.Length); - for (i = 0; i < tc.ins.Length; i++) { - uxInput b = tc.ins[i]; + for (int j = 0; j < tc.ins.Length; j++) { + uxInput b = tc.ins[j]; coin__UxOut ux = new coin__UxOut (); ux.Head.Time = b.time; ux.Body.Coins = b.coins; ux.Body.Hours = b.hours; - inUxs.setcoin_UxOut (ux, i); + inUxs.setcoin_UxOut (ux, j); } var fee = skycoin.skycoin.new_GoUint64p (); err = skycoin.skycoin.SKY_fee_TransactionFee (tx, tc.headTime, inUxs, fee); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (err, tc.err); + var fee_v = skycoin.skycoin.GoUint64p_value (fee); + Assert.AreEqual (fee_v, tc.fee); } } } diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index 2b71da46..2138d0c7 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit 2b71da46cf648892c41eed4126e807c46a8cf4ae +Subproject commit 2138d0c7c3a5e83120101230fc93338262b30a35 From f261bab675b13d74cc70891f5ac82e5b9c1607de Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Wed, 26 Sep 2018 16:55:43 -0400 Subject: [PATCH 35/73] [test] refs #8 Finish test utils.droplet Tests run: 41, Errors: 0, Failures: 0, Inconclusive: 0, Time: 13,0977864 seconds Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0 --- LibskycoinNetTest/LibskycoinNetTest.csproj | 1 + LibskycoinNetTest/check_util_droplet.cs | 256 +++++++++++++++++++++ 2 files changed, 257 insertions(+) create mode 100644 LibskycoinNetTest/check_util_droplet.cs diff --git a/LibskycoinNetTest/LibskycoinNetTest.csproj b/LibskycoinNetTest/LibskycoinNetTest.csproj index 043d930c..2be29c8d 100644 --- a/LibskycoinNetTest/LibskycoinNetTest.csproj +++ b/LibskycoinNetTest/LibskycoinNetTest.csproj @@ -39,6 +39,7 @@ + diff --git a/LibskycoinNetTest/check_util_droplet.cs b/LibskycoinNetTest/check_util_droplet.cs new file mode 100644 index 00000000..ea37596a --- /dev/null +++ b/LibskycoinNetTest/check_util_droplet.cs @@ -0,0 +1,256 @@ +using System; +using NUnit.Framework; +using skycoin; +using utils; +namespace LibskycoinNetTest { + [TestFixture ()] + public class check_util_droplet { + + utils.transutils transutils = new utils.transutils (); + + struct TestStr { + public string s; + public ulong n; + public int e; + } + + TestStr[] cases = new TestStr[30]; + public void FullTestStr () { + + var cas = new TestStr (); + cas.s = "0"; + cas.n = 0; + cases[0] = cas; + + cas = new TestStr (); + cas.s = "0."; + cas.n = 0; + cases[1] = cas; + + cas = new TestStr (); + cas.s = "0.0"; + cas.n = 0; + cases[2] = cas; + + cas = new TestStr (); + cas.s = "0.000000"; + cas.n = 0; + cases[3] = cas; + + cas = new TestStr (); + cas.s = "0.0000000"; + cas.n = 0; + cases[4] = cas; + + cas = new TestStr (); + cas.s = "0.0000001"; + cas.n = 0; + cas.e = skycoin.skycoin.SKY_ErrTooManyDecimals; + cases[5] = cas; + + cas = new TestStr (); + cas.s = "0.000001"; + cas.n = 1; + cases[6] = cas; + + cas = new TestStr (); + cas.s = "0.0000010"; + cas.n = 1; + cases[7] = cas; + + cas = new TestStr (); + cas.s = "1"; + cas.n = (ulong) 1e6; + cases[8] = cas; + + cas = new TestStr (); + cas.s = "1.000001"; + cas.n = (ulong) 1e6 + 1; + cases[9] = cas; + + cas = new TestStr (); + cas.s = "-1"; + cas.e = skycoin.skycoin.SKY_ErrNegativeValue; + cases[10] = cas; + + cas = new TestStr (); + cas.s = "10000"; + cas.n = (ulong) 1e6 * (ulong) 1e4; + cases[11] = cas; + + cas = new TestStr (); + cas.s = "123456789.123456"; + cas.n = 123456789123456; + cases[12] = cas; + + cas = new TestStr (); + cas.s = "123.000456"; + cas.n = 123000456; + cases[13] = cas; + + cas = new TestStr (); + cas.s = "100SKY"; + cas.e = skycoin.skycoin.SKY_ERROR; + cases[14] = cas; + + cas = new TestStr (); + cas.s = ""; + cas.e = skycoin.skycoin.SKY_ERROR; + cases[15] = cas; + + cas = new TestStr (); + cas.s = "999999999999999999999999999999999999999999"; + cas.e = skycoin.skycoin.SKY_ErrTooLarge; + cases[16] = cas; + + cas = new TestStr (); + cas.s = "9223372036854.775807"; + cas.n = 9223372036854775807; + cases[17] = cas; + + cas = new TestStr (); + cas.s = "-9223372036854.775807"; + cas.e = skycoin.skycoin.SKY_ErrNegativeValue; + cases[18] = cas; + + cas = new TestStr (); + cas.s = "9223372036854775808"; + cas.e = skycoin.skycoin.SKY_ErrTooLarge; + cases[19] = cas; + + cas = new TestStr (); + cas.s = "9223372036854775807.000001"; + cas.e = skycoin.skycoin.SKY_ErrTooLarge; + cases[20] = cas; + + cas = new TestStr (); + cas.s = "9223372036854775807"; + cas.e = skycoin.skycoin.SKY_ErrTooLarge; + cases[21] = cas; + + cas = new TestStr (); + cas.s = "9223372036854775806.000001"; + cas.e = skycoin.skycoin.SKY_ErrTooLarge; + cases[22] = cas; + + cas = new TestStr (); + cas.s = "1.1"; + cas.n = (ulong) (1e6 + 1e5); + cases[23] = cas; + + cas = new TestStr (); + cas.s = "1.01"; + cas.n = (ulong) (1e6 + 1e4); + cases[24] = cas; + + cas = new TestStr (); + cas.s = "1.001"; + cas.n = (ulong) (1e6 + 1e3); + cases[25] = cas; + + cas = new TestStr (); + cas.s = "1.0001"; + cas.n = (ulong) (1e6 + 1e2); + cases[26] = cas; + + cas = new TestStr (); + cas.s = "1.00001"; + cas.n = (ulong) (1e6 + 1e1); + cases[27] = cas; + + cas = new TestStr (); + cas.s = "1.000001"; + cas.n = (ulong) (1e6 + 1e0); + cases[28] = cas; + + cas = new TestStr (); + cas.s = "1.0000001"; + cas.e = skycoin.skycoin.SKY_ErrTooManyDecimals; + cases[29] = cas; + } + + [Test] + public void TestFromString () { + FullTestStr (); + for (int i = 0; i < cases.Length; i++) { + var tc = cases[i]; + var n = skycoin.skycoin.new_GoUint64p (); + var err = skycoin.skycoin.SKY_droplet_FromString (tc.s, n); + var n_v = skycoin.skycoin.GoUint64p_value (n); + if (tc.e == skycoin.skycoin.SKY_OK) { + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + + Assert.AreEqual (tc.n, n_v, "result " + n_v.ToString ()); + } else { + Assert.AreEqual (tc.e, err); + Assert.AreEqual (0, n_v); + } + } + } + + public void FullTestStr1 () { + cases = new TestStr[9]; + var cas = new TestStr (); + cas.n = 0; + cas.s = "0.000000"; + cases[0] = cas; + + cas = new TestStr (); + cas.n = 1; + cas.s = "0.000001"; + cases[1] = cas; + + cas = new TestStr (); + cas.n = (ulong) (1e6); + cas.s = "1.000000"; + cases[2] = cas; + + cas = new TestStr (); + cas.n = 100100; + cas.s = "0.100100"; + cases[3] = cas; + + cas = new TestStr (); + cas.n = 1001000; + cas.s = "1.001000"; + cases[4] = cas; + + cas = new TestStr (); + cas.n = 999; + cas.s = "0.000999"; + cases[5] = cas; + + cas = new TestStr (); + cas.n = 999000000; + cas.s = "999.000000"; + cases[6] = cas; + + cas = new TestStr (); + cas.n = 123000456; + cas.s = "123.000456"; + cases[7] = cas; + + cas = new TestStr (); + cas.n = 9223372036854775808; + cas.e = skycoin.skycoin.SKY_ErrTooLarge; + cases[8] = cas; + } + + [Test] + public void TestToString () { + FullTestStr1 (); + for (int i = 0; i < cases.Length; i++) { + var tc = cases[i]; + var s = new _GoString_ (); + var err = skycoin.skycoin.SKY_droplet_ToString (tc.n, s); + if (tc.e == skycoin.skycoin.SKY_OK) { + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.IsTrue (tc.s == s.p, i.ToString ()); + } else { + Assert.AreEqual (tc.e, err); + Assert.IsTrue (null == s.p); + } + } + } + } +} \ No newline at end of file From 960d8d456040f3cf21f704c110230971e859f647 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Thu, 27 Sep 2018 01:52:47 -0400 Subject: [PATCH 36/73] [test] refs #8 Update submodule --- .vscode/settings.json | 3 + LibskycoinNet/skycoin/cipher__Address.cs | 8 +- LibskycoinNet/skycoin/coin__Transaction.cs | 6 + LibskycoinNet/skycoin/skycoin.cs | 607 ++-- LibskycoinNet/skycoin/skycoinPINVOKE.cs | 440 +-- LibskycoinNet/skycoin/skycoinnet_wrap.c | 2831 ++++++++++++------ LibskycoinNetTest/LibskycoinNetTest.csproj | 11 +- LibskycoinNetTest/check_coin_transactions.cs | 89 + gopath/src/github.com/skycoin/skycoin | 2 +- 9 files changed, 2666 insertions(+), 1331 deletions(-) create mode 100644 .vscode/settings.json create mode 100644 LibskycoinNetTest/check_coin_transactions.cs diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..615aafb0 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "python.pythonPath": "/usr/bin/python3" +} \ No newline at end of file diff --git a/LibskycoinNet/skycoin/cipher__Address.cs b/LibskycoinNet/skycoin/cipher__Address.cs index 3b075a40..67534011 100644 --- a/LibskycoinNet/skycoin/cipher__Address.cs +++ b/LibskycoinNet/skycoin/cipher__Address.cs @@ -54,14 +54,12 @@ public void setVersion(char pValue) { skycoinPINVOKE.cipher__Address_setVersion(swigCPtr, pValue); } - public SWIGTYPE_p_GoUint8_ Version { + public char Version { set { - skycoinPINVOKE.set_cipher__Address_Version(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + skycoinPINVOKE.set_cipher__Address_Version(swigCPtr, value); } get { - SWIGTYPE_p_GoUint8_ ret = new SWIGTYPE_p_GoUint8_(skycoinPINVOKE.get_cipher__Address_Version(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + char ret = skycoinPINVOKE.get_cipher__Address_Version(swigCPtr); return ret; } } diff --git a/LibskycoinNet/skycoin/coin__Transaction.cs b/LibskycoinNet/skycoin/coin__Transaction.cs index 74b265b6..b7c70210 100644 --- a/LibskycoinNet/skycoin/coin__Transaction.cs +++ b/LibskycoinNet/skycoin/coin__Transaction.cs @@ -45,6 +45,12 @@ public int isEqual(coin__Transaction t) { return ret; } + public int setInnerHash(cipher_SHA256 h) { + int ret = skycoinPINVOKE.coin__Transaction_setInnerHash(swigCPtr, cipher_SHA256.getCPtr(h)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + public SWIGTYPE_p_GoInt32_ Length { set { skycoinPINVOKE.set_coin__Transaction_Length(swigCPtr, SWIGTYPE_p_GoInt32_.getCPtr(value)); diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs index 54517b73..042e1634 100644 --- a/LibskycoinNet/skycoin/skycoin.cs +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -35,9 +35,243 @@ public static int equalBlockHeaders(coin__BlockHeader bh1, coin__BlockHeader bh2 return ret; } + public static GoSlice new_GoSlicep() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_GoSlicep(); + GoSlice ret = (cPtr == global::System.IntPtr.Zero) ? null : new GoSlice(cPtr, false); + return ret; + } + + public static GoSlice copy_GoSlicep(GoSlice value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_GoSlicep(GoSlice.getCPtr(value)); + GoSlice ret = (cPtr == global::System.IntPtr.Zero) ? null : new GoSlice(cPtr, false); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static void delete_GoSlicep(GoSlice obj) { + skycoinPINVOKE.delete_GoSlicep(GoSlice.getCPtr(obj)); + } + + public static void GoSlicep_assign(GoSlice obj, GoSlice value) { + skycoinPINVOKE.GoSlicep_assign(GoSlice.getCPtr(obj), GoSlice.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + + public static GoSlice GoSlicep_value(GoSlice obj) { + GoSlice ret = new GoSlice(skycoinPINVOKE.GoSlicep_value(GoSlice.getCPtr(obj)), true); + return ret; + } + + public static _GoString_ new_GoStringp() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_GoStringp(); + _GoString_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new _GoString_(cPtr, false); + return ret; + } + + public static _GoString_ copy_GoStringp(_GoString_ value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_GoStringp(_GoString_.getCPtr(value)); + _GoString_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new _GoString_(cPtr, false); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static void delete_GoStringp(_GoString_ obj) { + skycoinPINVOKE.delete_GoStringp(_GoString_.getCPtr(obj)); + } + + public static void GoStringp_assign(_GoString_ obj, _GoString_ value) { + skycoinPINVOKE.GoStringp_assign(_GoString_.getCPtr(obj), _GoString_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + + public static _GoString_ GoStringp_value(_GoString_ obj) { + _GoString_ ret = new _GoString_(skycoinPINVOKE.GoStringp_value(_GoString_.getCPtr(obj)), true); + return ret; + } + + public static SWIGTYPE_p_int new_intp() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_intp(); + SWIGTYPE_p_int ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_int(cPtr, false); + return ret; + } + + public static SWIGTYPE_p_int copy_intp(int value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_intp(value); + SWIGTYPE_p_int ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_int(cPtr, false); + return ret; + } + + public static void delete_intp(SWIGTYPE_p_int obj) { + skycoinPINVOKE.delete_intp(SWIGTYPE_p_int.getCPtr(obj)); + } + + public static void intp_assign(SWIGTYPE_p_int obj, int value) { + skycoinPINVOKE.intp_assign(SWIGTYPE_p_int.getCPtr(obj), value); + } + + public static int intp_value(SWIGTYPE_p_int obj) { + int ret = skycoinPINVOKE.intp_value(SWIGTYPE_p_int.getCPtr(obj)); + return ret; + } + + public static SWIGTYPE_p_Transaction__Handle new_Transaction__Handlep() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_Transaction__Handlep(); + SWIGTYPE_p_Transaction__Handle ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Transaction__Handle(cPtr, false); + return ret; + } + + public static SWIGTYPE_p_Transaction__Handle copy_Transaction__Handlep(SWIGTYPE_p_Transaction__Handle value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_Transaction__Handlep(SWIGTYPE_p_Transaction__Handle.getCPtr(value)); + SWIGTYPE_p_Transaction__Handle ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Transaction__Handle(cPtr, false); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static void delete_Transaction__Handlep(SWIGTYPE_p_Transaction__Handle obj) { + skycoinPINVOKE.delete_Transaction__Handlep(SWIGTYPE_p_Transaction__Handle.getCPtr(obj)); + } + + public static void Transaction__Handlep_assign(SWIGTYPE_p_Transaction__Handle obj, SWIGTYPE_p_Transaction__Handle value) { + skycoinPINVOKE.Transaction__Handlep_assign(SWIGTYPE_p_Transaction__Handle.getCPtr(obj), SWIGTYPE_p_Transaction__Handle.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + + public static SWIGTYPE_p_Transaction__Handle Transaction__Handlep_value(SWIGTYPE_p_Transaction__Handle obj) { + SWIGTYPE_p_Transaction__Handle ret = new SWIGTYPE_p_Transaction__Handle(skycoinPINVOKE.Transaction__Handlep_value(SWIGTYPE_p_Transaction__Handle.getCPtr(obj)), true); + return ret; + } + + public static SWIGTYPE_p_Handle new_Handlep() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_Handlep(); + SWIGTYPE_p_Handle ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Handle(cPtr, false); + return ret; + } + + public static SWIGTYPE_p_Handle copy_Handlep(SWIGTYPE_p_Handle value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_Handlep(SWIGTYPE_p_Handle.getCPtr(value)); + SWIGTYPE_p_Handle ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Handle(cPtr, false); + return ret; + } + + public static void delete_Handlep(SWIGTYPE_p_Handle obj) { + skycoinPINVOKE.delete_Handlep(SWIGTYPE_p_Handle.getCPtr(obj)); + } + + public static void Handlep_assign(SWIGTYPE_p_Handle obj, SWIGTYPE_p_Handle value) { + skycoinPINVOKE.Handlep_assign(SWIGTYPE_p_Handle.getCPtr(obj), SWIGTYPE_p_Handle.getCPtr(value)); + } + + public static SWIGTYPE_p_Handle Handlep_value(SWIGTYPE_p_Handle obj) { + SWIGTYPE_p_Handle ret = new SWIGTYPE_p_Handle(skycoinPINVOKE.Handlep_value(SWIGTYPE_p_Handle.getCPtr(obj)), true); + return ret; + } + + public static SWIGTYPE_p_unsigned_long_long new_GoUint64p() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_GoUint64p(); + SWIGTYPE_p_unsigned_long_long ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_long_long(cPtr, false); + return ret; + } + + public static SWIGTYPE_p_unsigned_long_long copy_GoUint64p(ulong value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_GoUint64p(value); + SWIGTYPE_p_unsigned_long_long ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_long_long(cPtr, false); + return ret; + } + + public static void delete_GoUint64p(SWIGTYPE_p_unsigned_long_long obj) { + skycoinPINVOKE.delete_GoUint64p(SWIGTYPE_p_unsigned_long_long.getCPtr(obj)); + } + + public static void GoUint64p_assign(SWIGTYPE_p_unsigned_long_long obj, ulong value) { + skycoinPINVOKE.GoUint64p_assign(SWIGTYPE_p_unsigned_long_long.getCPtr(obj), value); + } + + public static ulong GoUint64p_value(SWIGTYPE_p_unsigned_long_long obj) { + ulong ret = skycoinPINVOKE.GoUint64p_value(SWIGTYPE_p_unsigned_long_long.getCPtr(obj)); + return ret; + } + + public static SWIGTYPE_p_unsigned_short new_GoUint16p() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_GoUint16p(); + SWIGTYPE_p_unsigned_short ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_short(cPtr, false); + return ret; + } + + public static SWIGTYPE_p_unsigned_short copy_GoUint16p(ushort value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_GoUint16p(value); + SWIGTYPE_p_unsigned_short ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_short(cPtr, false); + return ret; + } + + public static void delete_GoUint16p(SWIGTYPE_p_unsigned_short obj) { + skycoinPINVOKE.delete_GoUint16p(SWIGTYPE_p_unsigned_short.getCPtr(obj)); + } + + public static void GoUint16p_assign(SWIGTYPE_p_unsigned_short obj, ushort value) { + skycoinPINVOKE.GoUint16p_assign(SWIGTYPE_p_unsigned_short.getCPtr(obj), value); + } + + public static ushort GoUint16p_value(SWIGTYPE_p_unsigned_short obj) { + ushort ret = skycoinPINVOKE.GoUint16p_value(SWIGTYPE_p_unsigned_short.getCPtr(obj)); + return ret; + } + + public static cipher__Address new_cipher__Addressp() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_cipher__Addressp(); + cipher__Address ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher__Address(cPtr, false); + return ret; + } + + public static cipher__Address copy_cipher__Addressp(cipher__Address value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_cipher__Addressp(cipher__Address.getCPtr(value)); + cipher__Address ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher__Address(cPtr, false); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static void delete_cipher__Addressp(cipher__Address obj) { + skycoinPINVOKE.delete_cipher__Addressp(cipher__Address.getCPtr(obj)); + } + + public static void cipher__Addressp_assign(cipher__Address obj, cipher__Address value) { + skycoinPINVOKE.cipher__Addressp_assign(cipher__Address.getCPtr(obj), cipher__Address.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + + public static cipher__Address cipher__Addressp_value(cipher__Address obj) { + cipher__Address ret = new cipher__Address(skycoinPINVOKE.cipher__Addressp_value(cipher__Address.getCPtr(obj)), true); + return ret; + } + + public static SWIGTYPE_p_Transactions__Handle new_Transactions__Handlep() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_Transactions__Handlep(); + SWIGTYPE_p_Transactions__Handle ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Transactions__Handle(cPtr, false); + return ret; + } + + public static SWIGTYPE_p_Transactions__Handle copy_Transactions__Handlep(SWIGTYPE_p_Transactions__Handle value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_Transactions__Handlep(SWIGTYPE_p_Transactions__Handle.getCPtr(value)); + SWIGTYPE_p_Transactions__Handle ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Transactions__Handle(cPtr, false); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static void delete_Transactions__Handlep(SWIGTYPE_p_Transactions__Handle obj) { + skycoinPINVOKE.delete_Transactions__Handlep(SWIGTYPE_p_Transactions__Handle.getCPtr(obj)); + } + + public static void Transactions__Handlep_assign(SWIGTYPE_p_Transactions__Handle obj, SWIGTYPE_p_Transactions__Handle value) { + skycoinPINVOKE.Transactions__Handlep_assign(SWIGTYPE_p_Transactions__Handle.getCPtr(obj), SWIGTYPE_p_Transactions__Handle.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + + public static SWIGTYPE_p_Transactions__Handle Transactions__Handlep_value(SWIGTYPE_p_Transactions__Handle obj) { + SWIGTYPE_p_Transactions__Handle ret = new SWIGTYPE_p_Transactions__Handle(skycoinPINVOKE.Transactions__Handlep_value(SWIGTYPE_p_Transactions__Handle.getCPtr(obj)), true); + return ret; + } + public static void SKY_handle_close(SWIGTYPE_p_Handle p0) { skycoinPINVOKE.SKY_handle_close(SWIGTYPE_p_Handle.getCPtr(p0)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } public static int MEMPOOLIDX { @@ -172,13 +406,11 @@ public static int registerWalletClean(SWIGTYPE_p_Client__Handle clientHandle, SW public static int registerHandleClose(SWIGTYPE_p_Handle handle) { int ret = skycoinPINVOKE.registerHandleClose(SWIGTYPE_p_Handle.getCPtr(handle)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static void closeRegisteredHandle(SWIGTYPE_p_Handle handle) { skycoinPINVOKE.closeRegisteredHandle(SWIGTYPE_p_Handle.getCPtr(handle)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } public static void cleanupWallet(SWIGTYPE_p_Client__Handle client, SWIGTYPE_p_WalletResponse__Handle wallet) { @@ -212,17 +444,20 @@ public static int parseBoolean(string str, int length) { return ret; } - public static void toGoString(SWIGTYPE_p_GoString_ s, _GoString_ r) { - skycoinPINVOKE.toGoString(SWIGTYPE_p_GoString_.getCPtr(s), _GoString_.getCPtr(r)); + public static void toGoString(_GoString_ s) { +var tmps = _GoString_.getCPtr (s); + { + skycoinPINVOKE.toGoString(tmps); + } } - public static int copySlice(SWIGTYPE_p_GoSlice_ pdest, SWIGTYPE_p_GoSlice_ psource, int elem_size) { - int ret = skycoinPINVOKE.copySlice(SWIGTYPE_p_GoSlice_.getCPtr(pdest), SWIGTYPE_p_GoSlice_.getCPtr(psource), elem_size); + public static int copySlice(GoSlice pdest, GoSlice psource, int elem_size) { + int ret = skycoinPINVOKE.copySlice(GoSlice.getCPtr (pdest), GoSlice.getCPtr (psource), elem_size); return ret; } - public static int concatSlices(SWIGTYPE_p_GoSlice_ slice1, SWIGTYPE_p_GoSlice_ slice2, int elem_size, SWIGTYPE_p_GoSlice_ result) { - int ret = skycoinPINVOKE.concatSlices(SWIGTYPE_p_GoSlice_.getCPtr(slice1), SWIGTYPE_p_GoSlice_.getCPtr(slice2), elem_size, SWIGTYPE_p_GoSlice_.getCPtr(result)); + public static int concatSlices(GoSlice slice1, GoSlice slice2, int elem_size, GoSlice result) { + int ret = skycoinPINVOKE.concatSlices(GoSlice.getCPtr (slice1), GoSlice.getCPtr (slice2), elem_size, GoSlice.getCPtr (result)); return ret; } @@ -230,8 +465,8 @@ public static void parseJsonMetaData(string metadata, SWIGTYPE_p_int n, SWIGTYPE skycoinPINVOKE.parseJsonMetaData(metadata, SWIGTYPE_p_int.getCPtr(n), SWIGTYPE_p_int.getCPtr(r), SWIGTYPE_p_int.getCPtr(p), SWIGTYPE_p_int.getCPtr(keyLen)); } - public static int cutSlice(SWIGTYPE_p_GoSlice_ slice, int start, int end, int elem_size, SWIGTYPE_p_GoSlice_ result) { - int ret = skycoinPINVOKE.cutSlice(SWIGTYPE_p_GoSlice_.getCPtr(slice), start, end, elem_size, SWIGTYPE_p_GoSlice_.getCPtr(result)); + public static int cutSlice(GoSlice slice, int start, int end, int elem_size, GoSlice result) { + int ret = skycoinPINVOKE.cutSlice(GoSlice.getCPtr (slice), start, end, elem_size, GoSlice.getCPtr (result)); return ret; } @@ -241,14 +476,20 @@ public static coin__Transaction makeEmptyTransaction(SWIGTYPE_p_Transaction__Han return ret; } - public static int makeUxBodyWithSecret(coin__UxBody puxBody, SWIGTYPE_p_a_32__GoUint8_ pseckey) { - int ret = skycoinPINVOKE.makeUxBodyWithSecret(coin__UxBody.getCPtr(puxBody), SWIGTYPE_p_a_32__GoUint8_.getCPtr(pseckey)); - return ret; + public static int makeUxBodyWithSecret(coin__UxBody puxBody, cipher_SecKey pseckey) { +var tmppseckey = cipher_SecKey.getCPtr (pseckey); + { + int ret = skycoinPINVOKE.makeUxBodyWithSecret(coin__UxBody.getCPtr(puxBody), tmppseckey); + return ret; + } } - public static int makeUxOutWithSecret(coin__UxOut puxOut, SWIGTYPE_p_a_32__GoUint8_ pseckey) { - int ret = skycoinPINVOKE.makeUxOutWithSecret(coin__UxOut.getCPtr(puxOut), SWIGTYPE_p_a_32__GoUint8_.getCPtr(pseckey)); - return ret; + public static int makeUxOutWithSecret(coin__UxOut puxOut, cipher_SecKey pseckey) { +var tmppseckey = cipher_SecKey.getCPtr (pseckey); + { + int ret = skycoinPINVOKE.makeUxOutWithSecret(coin__UxOut.getCPtr(puxOut), tmppseckey); + return ret; + } } public static int makeUxOut(coin__UxOut puxOut) { @@ -261,270 +502,218 @@ public static int makeUxArray(GoSlice parray, int n) { return ret; } - public static GoSlice new_GoSlicep() { - global::System.IntPtr cPtr = skycoinPINVOKE.new_GoSlicep(); - GoSlice ret = (cPtr == global::System.IntPtr.Zero) ? null : new GoSlice(cPtr, false); - return ret; - } - - public static GoSlice copy_GoSlicep(GoSlice value) { - global::System.IntPtr cPtr = skycoinPINVOKE.copy_GoSlicep(GoSlice.getCPtr(value)); - GoSlice ret = (cPtr == global::System.IntPtr.Zero) ? null : new GoSlice(cPtr, false); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static int makeAddress(cipher__Address paddress) { + int ret = skycoinPINVOKE.makeAddress(cipher__Address.getCPtr(paddress)); return ret; } - public static void delete_GoSlicep(GoSlice obj) { - skycoinPINVOKE.delete_GoSlicep(GoSlice.getCPtr(obj)); - } - - public static void GoSlicep_assign(GoSlice obj, GoSlice value) { - skycoinPINVOKE.GoSlicep_assign(GoSlice.getCPtr(obj), GoSlice.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - - public static GoSlice GoSlicep_value(GoSlice obj) { - GoSlice ret = new GoSlice(skycoinPINVOKE.GoSlicep_value(GoSlice.getCPtr(obj)), true); - return ret; + public static coin__Transaction makeTransactionFromUxOut(coin__UxOut puxOut, cipher_SecKey pseckey, SWIGTYPE_p_Transaction__Handle handle) { +var tmppseckey = cipher_SecKey.getCPtr (pseckey); + { + global::System.IntPtr cPtr = skycoinPINVOKE.makeTransactionFromUxOut(coin__UxOut.getCPtr(puxOut), tmppseckey, SWIGTYPE_p_Transaction__Handle.getCPtr(handle)); + coin__Transaction ret = (cPtr == global::System.IntPtr.Zero) ? null : new coin__Transaction(cPtr, false); + return ret; + } } - public static _GoString_ new_GoStringp() { - global::System.IntPtr cPtr = skycoinPINVOKE.new_GoStringp(); - _GoString_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new _GoString_(cPtr, false); + public static coin__Transaction makeTransaction(SWIGTYPE_p_Transaction__Handle handle) { + global::System.IntPtr cPtr = skycoinPINVOKE.makeTransaction(SWIGTYPE_p_Transaction__Handle.getCPtr(handle)); + coin__Transaction ret = (cPtr == global::System.IntPtr.Zero) ? null : new coin__Transaction(cPtr, false); return ret; } - public static _GoString_ copy_GoStringp(_GoString_ value) { - global::System.IntPtr cPtr = skycoinPINVOKE.copy_GoStringp(_GoString_.getCPtr(value)); - _GoString_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new _GoString_(cPtr, false); + public static uint SKY_cipher_SumSHA256(GoSlice seed, cipher_SHA256 sha) { + uint ret = skycoinPINVOKE.SKY_cipher_SumSHA256__SWIG_0(GoSlice.getCPtr(seed), cipher_SHA256.getCPtr(sha)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static void delete_GoStringp(_GoString_ obj) { - skycoinPINVOKE.delete_GoStringp(_GoString_.getCPtr(obj)); - } - - public static void GoStringp_assign(_GoString_ obj, _GoString_ value) { - skycoinPINVOKE.GoStringp_assign(_GoString_.getCPtr(obj), _GoString_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - - public static _GoString_ GoStringp_value(_GoString_ obj) { - _GoString_ ret = new _GoString_(skycoinPINVOKE.GoStringp_value(_GoString_.getCPtr(obj)), true); - return ret; + public static uint SKY_cipher_SignHash(cipher_SHA256 sha, cipher_SecKey sec, cipher_Sig s) { +var tmpsec = cipher_SecKey.getCPtr (sec); + { + uint ret = skycoinPINVOKE.SKY_cipher_SignHash__SWIG_0(cipher_SHA256.getCPtr(sha), tmpsec, cipher_Sig.getCPtr(s)); + return ret; + } } - public static SWIGTYPE_p_int new_intp() { - global::System.IntPtr cPtr = skycoinPINVOKE.new_intp(); - SWIGTYPE_p_int ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_int(cPtr, false); + public static uint SKY_cipher_ChkSig(cipher__Address a, cipher_SHA256 sha, cipher_Sig s) { + uint ret = skycoinPINVOKE.SKY_cipher_ChkSig__SWIG_0(cipher__Address.getCPtr(a), cipher_SHA256.getCPtr(sha), cipher_Sig.getCPtr(s)); return ret; } - public static SWIGTYPE_p_int copy_intp(int value) { - global::System.IntPtr cPtr = skycoinPINVOKE.copy_intp(value); - SWIGTYPE_p_int ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_int(cPtr, false); + public static uint SKY_cipher_PubKeyFromSig(cipher_Sig sig, cipher_SHA256 h, cipher_PubKey p) { + uint ret = skycoinPINVOKE.SKY_cipher_PubKeyFromSig__SWIG_0(cipher_Sig.getCPtr(sig), cipher_SHA256.getCPtr(h), cipher_PubKey.getCPtr(p)); return ret; } - public static void delete_intp(SWIGTYPE_p_int obj) { - skycoinPINVOKE.delete_intp(SWIGTYPE_p_int.getCPtr(obj)); - } - - public static void intp_assign(SWIGTYPE_p_int obj, int value) { - skycoinPINVOKE.intp_assign(SWIGTYPE_p_int.getCPtr(obj), value); - } - - public static int intp_value(SWIGTYPE_p_int obj) { - int ret = skycoinPINVOKE.intp_value(SWIGTYPE_p_int.getCPtr(obj)); + public static uint SKY_cipher_VerifySignature(cipher_PubKey p, cipher_Sig sig, cipher_SHA256 h) { + uint ret = skycoinPINVOKE.SKY_cipher_VerifySignature__SWIG_0(cipher_PubKey.getCPtr(p), cipher_Sig.getCPtr(sig), cipher_SHA256.getCPtr(h)); return ret; } - public static SWIGTYPE_p_Transaction__Handle new_Transaction__Handlep() { - global::System.IntPtr cPtr = skycoinPINVOKE.new_Transaction__Handlep(); - SWIGTYPE_p_Transaction__Handle ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Transaction__Handle(cPtr, false); + public static uint SKY_cipher_TestSecKeyHash(cipher_SecKey s, cipher_SHA256 h) { + uint ret = skycoinPINVOKE.SKY_cipher_TestSecKeyHash__SWIG_0(cipher_SecKey.getCPtr(s), cipher_SHA256.getCPtr(h)); return ret; } - public static SWIGTYPE_p_Transaction__Handle copy_Transaction__Handlep(SWIGTYPE_p_Transaction__Handle value) { - global::System.IntPtr cPtr = skycoinPINVOKE.copy_Transaction__Handlep(SWIGTYPE_p_Transaction__Handle.getCPtr(value)); - SWIGTYPE_p_Transaction__Handle ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Transaction__Handle(cPtr, false); + public static uint SKY_cipher_SHA256_Set(cipher_SHA256 h, GoSlice s) { + uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Set__SWIG_0(cipher_SHA256.getCPtr(h), GoSlice.getCPtr(s)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static void delete_Transaction__Handlep(SWIGTYPE_p_Transaction__Handle obj) { - skycoinPINVOKE.delete_Transaction__Handlep(SWIGTYPE_p_Transaction__Handle.getCPtr(obj)); + public static uint SKY_cipher_SHA256_Hex(cipher_SHA256 h, _GoString_ s) { +var tmps = _GoString_.getCPtr (s); + { + uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Hex__SWIG_0(cipher_SHA256.getCPtr(h), tmps); + return ret; + } } - public static void Transaction__Handlep_assign(SWIGTYPE_p_Transaction__Handle obj, SWIGTYPE_p_Transaction__Handle value) { - skycoinPINVOKE.Transaction__Handlep_assign(SWIGTYPE_p_Transaction__Handle.getCPtr(obj), SWIGTYPE_p_Transaction__Handle.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_cipher_SHA256FromHex(string s, cipher_SHA256 h) { +var tmps = s; + { + uint ret = skycoinPINVOKE.SKY_cipher_SHA256FromHex__SWIG_0(tmps, cipher_SHA256.getCPtr(h)); + return ret; + } } - public static SWIGTYPE_p_Transaction__Handle Transaction__Handlep_value(SWIGTYPE_p_Transaction__Handle obj) { - SWIGTYPE_p_Transaction__Handle ret = new SWIGTYPE_p_Transaction__Handle(skycoinPINVOKE.Transaction__Handlep_value(SWIGTYPE_p_Transaction__Handle.getCPtr(obj)), true); + public static uint SKY_coin_Transaction_HashInner(SWIGTYPE_p_Transaction__Handle tx, cipher_SHA256 h) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_HashInner__SWIG_0(SWIGTYPE_p_Transaction__Handle.getCPtr(tx), cipher_SHA256.getCPtr(h)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static SWIGTYPE_p_Handle new_Handlep() { - global::System.IntPtr cPtr = skycoinPINVOKE.new_Handlep(); - SWIGTYPE_p_Handle ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Handle(cPtr, false); + public static uint SKY_coin_Transaction_GetInputAt(SWIGTYPE_p_Transaction__Handle tx, long p1, cipher_SHA256 h) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetInputAt__SWIG_0(SWIGTYPE_p_Transaction__Handle.getCPtr(tx), p1, cipher_SHA256.getCPtr(h)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static SWIGTYPE_p_Handle copy_Handlep(SWIGTYPE_p_Handle value) { - global::System.IntPtr cPtr = skycoinPINVOKE.copy_Handlep(SWIGTYPE_p_Handle.getCPtr(value)); - SWIGTYPE_p_Handle ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Handle(cPtr, false); + public static uint SKY_coin_Transaction_PushInput(SWIGTYPE_p_Transaction__Handle tx, cipher_SHA256 h, SWIGTYPE_p_unsigned_short p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushInput__SWIG_0(SWIGTYPE_p_Transaction__Handle.getCPtr(tx), cipher_SHA256.getCPtr(h), SWIGTYPE_p_unsigned_short.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static void delete_Handlep(SWIGTYPE_p_Handle obj) { - skycoinPINVOKE.delete_Handlep(SWIGTYPE_p_Handle.getCPtr(obj)); - } - - public static void Handlep_assign(SWIGTYPE_p_Handle obj, SWIGTYPE_p_Handle value) { - skycoinPINVOKE.Handlep_assign(SWIGTYPE_p_Handle.getCPtr(obj), SWIGTYPE_p_Handle.getCPtr(value)); - } - - public static SWIGTYPE_p_Handle Handlep_value(SWIGTYPE_p_Handle obj) { - SWIGTYPE_p_Handle ret = new SWIGTYPE_p_Handle(skycoinPINVOKE.Handlep_value(SWIGTYPE_p_Handle.getCPtr(obj)), true); + public static uint SKY_coin_Transaction_SignInputs(SWIGTYPE_p_Transaction__Handle handle, cipher_SecKeys __in_pubKeys) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_SignInputs__SWIG_0(SWIGTYPE_p_Transaction__Handle.getCPtr(handle), cipher_SecKeys.getCPtr(__in_pubKeys)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static SWIGTYPE_p_unsigned_long_long new_GoUint64p() { - global::System.IntPtr cPtr = skycoinPINVOKE.new_GoUint64p(); - SWIGTYPE_p_unsigned_long_long ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_long_long(cPtr, false); + public static uint SKY_cipher_GenerateDeterministicKeyPairs(GoSlice seed, long n, cipher_SecKeys __out_secKeys) { + uint ret = skycoinPINVOKE.SKY_cipher_GenerateDeterministicKeyPairs__SWIG_0(GoSlice.getCPtr(seed), n, cipher_SecKeys.getCPtr(__out_secKeys)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static SWIGTYPE_p_unsigned_long_long copy_GoUint64p(ulong value) { - global::System.IntPtr cPtr = skycoinPINVOKE.copy_GoUint64p(value); - SWIGTYPE_p_unsigned_long_long ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_long_long(cPtr, false); + public static uint SKY_cipher_GenerateDeterministicKeyPairsSeed(GoSlice seed, long n, GoSlice newSeed, cipher_SecKeys __out_secKeys) { + uint ret = skycoinPINVOKE.SKY_cipher_GenerateDeterministicKeyPairsSeed__SWIG_0(GoSlice.getCPtr(seed), n, GoSlice.getCPtr (newSeed), cipher_SecKeys.getCPtr(__out_secKeys)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static void delete_GoUint64p(SWIGTYPE_p_unsigned_long_long obj) { - skycoinPINVOKE.delete_GoUint64p(SWIGTYPE_p_unsigned_long_long.getCPtr(obj)); - } - - public static void GoUint64p_assign(SWIGTYPE_p_unsigned_long_long obj, ulong value) { - skycoinPINVOKE.GoUint64p_assign(SWIGTYPE_p_unsigned_long_long.getCPtr(obj), value); + public static uint SKY_cipher_PubKeySlice_Swap(cipher_PubKeys __in_pubKeys, long p1, long p2) { + uint ret = skycoinPINVOKE.SKY_cipher_PubKeySlice_Swap__SWIG_0(cipher_PubKeys.getCPtr(__in_pubKeys), p1, p2); + return ret; } - public static ulong GoUint64p_value(SWIGTYPE_p_unsigned_long_long obj) { - ulong ret = skycoinPINVOKE.GoUint64p_value(SWIGTYPE_p_unsigned_long_long.getCPtr(obj)); + public static uint SKY_coin_VerifyTransactionCoinsSpending(coin_UxOutArray __uxIn, coin_UxOutArray __uxOut) { + uint ret = skycoinPINVOKE.SKY_coin_VerifyTransactionCoinsSpending__SWIG_0(coin_UxOutArray.getCPtr(__uxIn), coin_UxOutArray.getCPtr(__uxOut)); return ret; } - public static cipher__Address new_cipher__Addressp() { - global::System.IntPtr cPtr = skycoinPINVOKE.new_cipher__Addressp(); - cipher__Address ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher__Address(cPtr, false); + public static uint SKY_coin_VerifyTransactionHoursSpending(ulong _headTime, coin_UxOutArray __uxIn, coin_UxOutArray __uxOut) { + uint ret = skycoinPINVOKE.SKY_coin_VerifyTransactionHoursSpending__SWIG_0(_headTime, coin_UxOutArray.getCPtr(__uxIn), coin_UxOutArray.getCPtr(__uxOut)); return ret; } - public static cipher__Address copy_cipher__Addressp(cipher__Address value) { - global::System.IntPtr cPtr = skycoinPINVOKE.copy_cipher__Addressp(cipher__Address.getCPtr(value)); - cipher__Address ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher__Address(cPtr, false); + public static uint SKY_coin_CreateUnspents(coin__BlockHeader bh, SWIGTYPE_p_Transaction__Handle t, coin_UxOutArray __return_Ux) { + uint ret = skycoinPINVOKE.SKY_coin_CreateUnspents__SWIG_0(coin__BlockHeader.getCPtr(bh), SWIGTYPE_p_Transaction__Handle.getCPtr(t), coin_UxOutArray.getCPtr(__return_Ux)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static void delete_cipher__Addressp(cipher__Address obj) { - skycoinPINVOKE.delete_cipher__Addressp(cipher__Address.getCPtr(obj)); - } - - public static void cipher__Addressp_assign(cipher__Address obj, cipher__Address value) { - skycoinPINVOKE.cipher__Addressp_assign(cipher__Address.getCPtr(obj), cipher__Address.getCPtr(value)); + public static uint SKY_coin_Transaction_VerifyInput(SWIGTYPE_p_Transaction__Handle handle, coin_UxOutArray __uxIn) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_VerifyInput__SWIG_0(SWIGTYPE_p_Transaction__Handle.getCPtr(handle), coin_UxOutArray.getCPtr(__uxIn)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - - public static cipher__Address cipher__Addressp_value(cipher__Address obj) { - cipher__Address ret = new cipher__Address(skycoinPINVOKE.cipher__Addressp_value(cipher__Address.getCPtr(obj)), true); return ret; } - public static SWIGTYPE_p_Transactions__Handle new_Transactions__Handlep() { - global::System.IntPtr cPtr = skycoinPINVOKE.new_Transactions__Handlep(); - SWIGTYPE_p_Transactions__Handle ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Transactions__Handle(cPtr, false); + public static uint SKY_coin_UxArray_HasDupes(coin_UxOutArray __uxIn, SWIGTYPE_p_unsigned_char p1) { + uint ret = skycoinPINVOKE.SKY_coin_UxArray_HasDupes__SWIG_0(coin_UxOutArray.getCPtr(__uxIn), SWIGTYPE_p_unsigned_char.getCPtr(p1)); return ret; } - public static SWIGTYPE_p_Transactions__Handle copy_Transactions__Handlep(SWIGTYPE_p_Transactions__Handle value) { - global::System.IntPtr cPtr = skycoinPINVOKE.copy_Transactions__Handlep(SWIGTYPE_p_Transactions__Handle.getCPtr(value)); - SWIGTYPE_p_Transactions__Handle ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Transactions__Handle(cPtr, false); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_coin_UxArray_Coins(coin_UxOutArray __uxIn, SWIGTYPE_p_unsigned_long_long p1) { + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Coins__SWIG_0(coin_UxOutArray.getCPtr(__uxIn), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); return ret; } - public static void delete_Transactions__Handlep(SWIGTYPE_p_Transactions__Handle obj) { - skycoinPINVOKE.delete_Transactions__Handlep(SWIGTYPE_p_Transactions__Handle.getCPtr(obj)); + public static uint SKY_coin_UxArray_CoinHours(coin_UxOutArray __uxIn, ulong p1, SWIGTYPE_p_unsigned_long_long p2) { + uint ret = skycoinPINVOKE.SKY_coin_UxArray_CoinHours__SWIG_0(coin_UxOutArray.getCPtr(__uxIn), p1, SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); + return ret; } - public static void Transactions__Handlep_assign(SWIGTYPE_p_Transactions__Handle obj, SWIGTYPE_p_Transactions__Handle value) { - skycoinPINVOKE.Transactions__Handlep_assign(SWIGTYPE_p_Transactions__Handle.getCPtr(obj), SWIGTYPE_p_Transactions__Handle.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_coin_UxArray_Less(coin_UxOutArray __uxIn, long p1, long p2, SWIGTYPE_p_unsigned_char p3) { + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Less__SWIG_0(coin_UxOutArray.getCPtr(__uxIn), p1, p2, SWIGTYPE_p_unsigned_char.getCPtr(p3)); + return ret; } - public static SWIGTYPE_p_Transactions__Handle Transactions__Handlep_value(SWIGTYPE_p_Transactions__Handle obj) { - SWIGTYPE_p_Transactions__Handle ret = new SWIGTYPE_p_Transactions__Handle(skycoinPINVOKE.Transactions__Handlep_value(SWIGTYPE_p_Transactions__Handle.getCPtr(obj)), true); + public static uint SKY_coin_UxArray_Swap(coin_UxOutArray __uxIn, long p1, long p2) { + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Swap__SWIG_0(coin_UxOutArray.getCPtr(__uxIn), p1, p2); return ret; } - public static uint SKY_cipher_SumSHA256(GoSlice seed, cipher_SHA256 sha) { - uint ret = skycoinPINVOKE.SKY_cipher_SumSHA256__SWIG_0(GoSlice.getCPtr(seed), cipher_SHA256.getCPtr(sha)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static uint SKY_coin_UxArray_Sub(coin_UxOutArray __uxIn, coin_UxOutArray __uxIn2, coin_UxOutArray __return_Ux) { + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Sub__SWIG_0(coin_UxOutArray.getCPtr(__uxIn), coin_UxOutArray.getCPtr(__uxIn2), coin_UxOutArray.getCPtr(__return_Ux)); return ret; } - public static uint SKY_cipher_SignHash(cipher_SHA256 sha, cipher_SecKey sec, cipher_Sig s) { -var tmpsec = cipher_SecKey.getCPtr (sec); - { - uint ret = skycoinPINVOKE.SKY_cipher_SignHash__SWIG_0(cipher_SHA256.getCPtr(sha), tmpsec, cipher_Sig.getCPtr(s)); - return ret; - } + public static uint SKY_coin_UxArray_Add(coin_UxOutArray __uxIn, coin_UxOutArray __uxIn2, coin_UxOutArray __return_Ux) { + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Add__SWIG_0(coin_UxOutArray.getCPtr(__uxIn), coin_UxOutArray.getCPtr(__uxIn2), coin_UxOutArray.getCPtr(__return_Ux)); + return ret; } - public static uint SKY_cipher_ChkSig(cipher__Address a, cipher_SHA256 sha, cipher_Sig s) { - uint ret = skycoinPINVOKE.SKY_cipher_ChkSig__SWIG_0(cipher__Address.getCPtr(a), cipher_SHA256.getCPtr(sha), cipher_Sig.getCPtr(s)); + public static uint SKY_coin_NewAddressUxOuts(coin_UxOutArray __uxIn, SWIGTYPE_p_AddressUxOuts_Handle p1) { + uint ret = skycoinPINVOKE.SKY_coin_NewAddressUxOuts__SWIG_0(coin_UxOutArray.getCPtr(__uxIn), SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p1)); return ret; } - public static uint SKY_cipher_PubKeyFromSig(cipher_Sig sig, cipher_SHA256 h, cipher_PubKey p) { - uint ret = skycoinPINVOKE.SKY_cipher_PubKeyFromSig__SWIG_0(cipher_Sig.getCPtr(sig), cipher_SHA256.getCPtr(h), cipher_PubKey.getCPtr(p)); + public static uint SKY_coin_UxArray_Hashes(coin_UxOutArray __uxIn, cipher_SHA256s __out_hashes) { + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Hashes__SWIG_0(coin_UxOutArray.getCPtr(__uxIn), cipher_SHA256s.getCPtr(__out_hashes)); return ret; } - public static uint SKY_cipher_VerifySignature(cipher_PubKey p, cipher_Sig sig, cipher_SHA256 h) { - uint ret = skycoinPINVOKE.SKY_cipher_VerifySignature__SWIG_0(cipher_PubKey.getCPtr(p), cipher_Sig.getCPtr(sig), cipher_SHA256.getCPtr(h)); + public static uint SKY_coin_AddressUxOuts_Flatten(SWIGTYPE_p_AddressUxOuts_Handle p0, coin_UxOutArray __return_Ux) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Flatten__SWIG_0(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), coin_UxOutArray.getCPtr(__return_Ux)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_TestSecKeyHash(cipher_SecKey s, cipher_SHA256 h) { - uint ret = skycoinPINVOKE.SKY_cipher_TestSecKeyHash__SWIG_0(cipher_SecKey.getCPtr(s), cipher_SHA256.getCPtr(h)); + public static uint SKY_coin_AddressUxOuts_Get(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher__Address p1, coin_UxOutArray __return_Ux) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Get__SWIG_0(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), coin_UxOutArray.getCPtr(__return_Ux)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_SHA256_Set(cipher_SHA256 h, GoSlice s) { - uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Set__SWIG_0(cipher_SHA256.getCPtr(h), GoSlice.getCPtr(s)); + public static uint SKY_coin_AddressUxOuts_Set(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher__Address p1, coin_UxOutArray __uxIn) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Set__SWIG_0(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), coin_UxOutArray.getCPtr(__uxIn)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_cipher_SHA256_Hex(cipher_SHA256 h, _GoString_ s) { -var tmps = _GoString_.getCPtr (s); - { - uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Hex__SWIG_0(cipher_SHA256.getCPtr(h), tmps); - return ret; - } + public static uint SKY_coin_AddressUxOuts_Keys(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher_SHA256s __out_hashes) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Keys__SWIG_0(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher_SHA256s.getCPtr(__out_hashes)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; } - public static uint SKY_cipher_SHA256FromHex(string s, cipher_SHA256 h) { -var tmps = s; - { - uint ret = skycoinPINVOKE.SKY_cipher_SHA256FromHex__SWIG_0(tmps, cipher_SHA256.getCPtr(h)); - return ret; - } + public static uint SKY_coin_Transactions_Hashes(SWIGTYPE_p_Transactions__Handle p0, cipher_SHA256s __out_hashes) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_Hashes__SWIG_0(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), cipher_SHA256s.getCPtr(__out_hashes)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; } public static uint SKY_coin_NewBlock(SWIGTYPE_p_Block__Handle p0, ulong p1, cipher_SecKey p2, SWIGTYPE_p_Transactions__Handle p3, SWIGTYPE_p_FeeCalculator p4, SWIGTYPE_p_Block__Handle p5) { @@ -663,7 +852,7 @@ public static uint SKY_coin_BlockBody_Bytes(SWIGTYPE_p_BlockBody__Handle p0, GoS } public static uint SKY_coin_CreateUnspents(coin__BlockHeader p0, SWIGTYPE_p_Transaction__Handle p1, GoSlice p2) { - uint ret = skycoinPINVOKE.SKY_coin_CreateUnspents(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), GoSlice.getCPtr (p2)); + uint ret = skycoinPINVOKE.SKY_coin_CreateUnspents__SWIG_1(coin__BlockHeader.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), GoSlice.getCPtr (p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -1139,7 +1328,7 @@ public static uint SKY_secp256k1go_XY_Neg(secp256k1go__XY p0, secp256k1go__XY p1 return ret; } - public static uint SKY_secp256k1go_XY_SetXO(secp256k1go__XY p0, secp256k1go__Field p1, byte p2) { + public static uint SKY_secp256k1go_XY_SetXO(secp256k1go__XY p0, secp256k1go__Field p1, char p2) { uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_SetXO(secp256k1go__XY.getCPtr(p0), secp256k1go__Field.getCPtr(p1), p2); return ret; } @@ -1310,7 +1499,7 @@ public static uint SKY_wallet_Wallet_AddEntry(SWIGTYPE_p_Wallet__Handle p0, wall return ret; } - public static uint SKY_wallet_DistributeSpendHours(ulong p0, ulong p1, byte p2, SWIGTYPE_p_unsigned_long_long p3, GoSlice p4, SWIGTYPE_p_unsigned_long_long p5) { + public static uint SKY_wallet_DistributeSpendHours(ulong p0, ulong p1, char p2, SWIGTYPE_p_unsigned_long_long p3, GoSlice p4, SWIGTYPE_p_unsigned_long_long p5) { uint ret = skycoinPINVOKE.SKY_wallet_DistributeSpendHours(p0, p1, p2, SWIGTYPE_p_unsigned_long_long.getCPtr(p3), GoSlice.getCPtr (p4), SWIGTYPE_p_unsigned_long_long.getCPtr(p5)); return ret; } @@ -1420,7 +1609,7 @@ public static uint SKY_wallet_ReadableWallet_Erase(SWIGTYPE_p_ReadableWallet__Ha return ret; } - public static uint SKY_secp256k1go_DecompressPoint(GoSlice p0, byte p1, GoSlice p2) { + public static uint SKY_secp256k1go_DecompressPoint(GoSlice p0, char p1, GoSlice p2) { uint ret = skycoinPINVOKE.SKY_secp256k1go_DecompressPoint(GoSlice.getCPtr(p0), p1, GoSlice.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; @@ -1741,7 +1930,7 @@ public static uint SKY_cipher_PubKeySlice_Less(GoSlice p0, long p1, long p2, SWI } public static uint SKY_cipher_PubKeySlice_Swap(GoSlice p0, long p1, long p2) { - uint ret = skycoinPINVOKE.SKY_cipher_PubKeySlice_Swap(GoSlice.getCPtr (p0), p1, p2); + uint ret = skycoinPINVOKE.SKY_cipher_PubKeySlice_Swap__SWIG_1(GoSlice.getCPtr (p0), p1, p2); return ret; } @@ -1943,13 +2132,13 @@ public static uint SKY_cipher_DeterministicKeyPairIterator(GoSlice p0, GoSlice p } public static uint SKY_cipher_GenerateDeterministicKeyPairs(GoSlice p0, long p1, GoSlice p2) { - uint ret = skycoinPINVOKE.SKY_cipher_GenerateDeterministicKeyPairs(GoSlice.getCPtr(p0), p1, GoSlice.getCPtr (p2)); + uint ret = skycoinPINVOKE.SKY_cipher_GenerateDeterministicKeyPairs__SWIG_1(GoSlice.getCPtr(p0), p1, GoSlice.getCPtr (p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_cipher_GenerateDeterministicKeyPairsSeed(GoSlice p0, long p1, GoSlice p2, GoSlice p3) { - uint ret = skycoinPINVOKE.SKY_cipher_GenerateDeterministicKeyPairsSeed(GoSlice.getCPtr(p0), p1, GoSlice.getCPtr (p2), GoSlice.getCPtr (p3)); + uint ret = skycoinPINVOKE.SKY_cipher_GenerateDeterministicKeyPairsSeed__SWIG_1(GoSlice.getCPtr(p0), p1, GoSlice.getCPtr (p2), GoSlice.getCPtr (p3)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -2176,7 +2365,7 @@ public static uint SKY_wallet_Entry_VerifyPublic(wallet__Entry p0) { return ret; } - public static uint SKY_wallet_CreateAddresses(string p0, string p1, long p2, byte p3, SWIGTYPE_p_ReadableWallet__Handle p4) { + public static uint SKY_wallet_CreateAddresses(string p0, string p1, long p2, char p3, SWIGTYPE_p_ReadableWallet__Handle p4) { var tmpp0 = p0; var tmpp1 = p1; { @@ -2334,10 +2523,10 @@ public static uint SKY_map_Get(SWIGTYPE_p_GoStringMap_ p0, string p1, _GoString_ } } - public static byte SKY_map_HasKey(SWIGTYPE_p_GoStringMap_ p0, string p1) { + public static char SKY_map_HasKey(SWIGTYPE_p_GoStringMap_ p0, string p1) { var tmpp1 = p1; { - byte ret = skycoinPINVOKE.SKY_map_HasKey(SWIGTYPE_p_GoStringMap_.getCPtr(p0), tmpp1); + char ret = skycoinPINVOKE.SKY_map_HasKey(SWIGTYPE_p_GoStringMap_.getCPtr(p0), tmpp1); return ret; } } @@ -2756,12 +2945,12 @@ public static uint SKY_coin_UxOut_CoinHours(coin__UxOut p0, ulong p1, SWIGTYPE_p } public static uint SKY_coin_UxArray_Hashes(GoSlice p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_coin_UxArray_Hashes(GoSlice.getCPtr (p0), GoSlice.getCPtr (p1)); + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Hashes__SWIG_1(GoSlice.getCPtr (p0), GoSlice.getCPtr (p1)); return ret; } public static uint SKY_coin_UxArray_HasDupes(GoSlice p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_coin_UxArray_HasDupes(GoSlice.getCPtr (p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + uint ret = skycoinPINVOKE.SKY_coin_UxArray_HasDupes__SWIG_1(GoSlice.getCPtr (p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); return ret; } @@ -2776,48 +2965,48 @@ public static uint SKY_coin_UxArray_Len(GoSlice p0, SWIGTYPE_p_long_long p1) { } public static uint SKY_coin_UxArray_Less(GoSlice p0, long p1, long p2, SWIGTYPE_p_unsigned_char p3) { - uint ret = skycoinPINVOKE.SKY_coin_UxArray_Less(GoSlice.getCPtr (p0), p1, p2, SWIGTYPE_p_unsigned_char.getCPtr(p3)); + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Less__SWIG_1(GoSlice.getCPtr (p0), p1, p2, SWIGTYPE_p_unsigned_char.getCPtr(p3)); return ret; } public static uint SKY_coin_UxArray_Swap(GoSlice p0, long p1, long p2) { - uint ret = skycoinPINVOKE.SKY_coin_UxArray_Swap(GoSlice.getCPtr (p0), p1, p2); + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Swap__SWIG_1(GoSlice.getCPtr (p0), p1, p2); return ret; } public static uint SKY_coin_UxArray_Coins(GoSlice p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_UxArray_Coins(GoSlice.getCPtr (p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Coins__SWIG_1(GoSlice.getCPtr (p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); return ret; } public static uint SKY_coin_UxArray_CoinHours(GoSlice p0, ulong p1, SWIGTYPE_p_unsigned_long_long p2) { - uint ret = skycoinPINVOKE.SKY_coin_UxArray_CoinHours(GoSlice.getCPtr (p0), p1, SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); + uint ret = skycoinPINVOKE.SKY_coin_UxArray_CoinHours__SWIG_1(GoSlice.getCPtr (p0), p1, SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); return ret; } public static uint SKY_coin_UxArray_Sub(GoSlice p0, GoSlice p1, GoSlice p2) { - uint ret = skycoinPINVOKE.SKY_coin_UxArray_Sub(GoSlice.getCPtr (p0), GoSlice.getCPtr (p1), GoSlice.getCPtr (p2)); + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Sub__SWIG_1(GoSlice.getCPtr (p0), GoSlice.getCPtr (p1), GoSlice.getCPtr (p2)); return ret; } public static uint SKY_coin_UxArray_Add(GoSlice p0, GoSlice p1, GoSlice p2) { - uint ret = skycoinPINVOKE.SKY_coin_UxArray_Add(GoSlice.getCPtr (p0), GoSlice.getCPtr (p1), GoSlice.getCPtr (p2)); + uint ret = skycoinPINVOKE.SKY_coin_UxArray_Add__SWIG_1(GoSlice.getCPtr (p0), GoSlice.getCPtr (p1), GoSlice.getCPtr (p2)); return ret; } public static uint SKY_coin_NewAddressUxOuts(GoSlice p0, SWIGTYPE_p_AddressUxOuts_Handle p1) { - uint ret = skycoinPINVOKE.SKY_coin_NewAddressUxOuts(GoSlice.getCPtr (p0), SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p1)); + uint ret = skycoinPINVOKE.SKY_coin_NewAddressUxOuts__SWIG_1(GoSlice.getCPtr (p0), SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p1)); return ret; } public static uint SKY_coin_AddressUxOuts_Keys(SWIGTYPE_p_AddressUxOuts_Handle p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Keys(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), GoSlice.getCPtr (p1)); + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Keys__SWIG_1(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), GoSlice.getCPtr (p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } public static uint SKY_coin_AddressUxOuts_Flatten(SWIGTYPE_p_AddressUxOuts_Handle p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Flatten(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), GoSlice.getCPtr (p1)); + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Flatten__SWIG_1(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), GoSlice.getCPtr (p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -2835,7 +3024,7 @@ public static uint SKY_coin_AddressUxOuts_Add(SWIGTYPE_p_AddressUxOuts_Handle p0 } public static uint SKY_coin_AddressUxOuts_Get(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher__Address p1, GoSlice p2) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Get(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), GoSlice.getCPtr (p2)); + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Get__SWIG_1(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), GoSlice.getCPtr (p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -2859,7 +3048,7 @@ public static uint SKY_coin_AddressUxOuts_Length(SWIGTYPE_p_AddressUxOuts_Handle } public static uint SKY_coin_AddressUxOuts_Set(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher__Address p1, GoSlice p2) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Set(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), GoSlice.getCPtr (p2)); + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Set__SWIG_1(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), GoSlice.getCPtr (p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -2876,7 +3065,7 @@ public static uint SKY_encrypt_ScryptChacha20poly1305_Decrypt(encrypt__ScryptCha return ret; } - public static uint SKY_wallet_CreateOptionsHandle(string p0, string p1, string p2, byte p3, string p4, string p5, ulong p6, SWIGTYPE_p_Options__Handle p7) { + public static uint SKY_wallet_CreateOptionsHandle(string p0, string p1, string p2, char p3, string p4, string p5, ulong p6, SWIGTYPE_p_Options__Handle p7) { var tmpp0 = p0; var tmpp1 = p1; var tmpp2 = p2; @@ -3446,7 +3635,7 @@ public static uint SKY_coin_Transaction_GetInputsCount(SWIGTYPE_p_Transaction__H public static uint SKY_coin_Transaction_GetInputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, cipher_SecKey p2) { var tmpp2 = cipher_SecKey.getCPtr (p2); { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetInputAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, tmpp2); + uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetInputAt__SWIG_1(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, tmpp2); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -3531,7 +3720,7 @@ public static uint SKY_coin_Transaction_Verify(SWIGTYPE_p_Transaction__Handle p0 } public static uint SKY_coin_Transaction_VerifyInput(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_VerifyInput(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr (p1)); + uint ret = skycoinPINVOKE.SKY_coin_Transaction_VerifyInput__SWIG_1(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr (p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -3539,7 +3728,7 @@ public static uint SKY_coin_Transaction_VerifyInput(SWIGTYPE_p_Transaction__Hand public static uint SKY_coin_Transaction_PushInput(SWIGTYPE_p_Transaction__Handle p0, cipher_SecKey p1, SWIGTYPE_p_unsigned_short p2) { var tmpp1 = cipher_SecKey.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushInput(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), tmpp1, SWIGTYPE_p_unsigned_short.getCPtr(p2)); + uint ret = skycoinPINVOKE.SKY_coin_Transaction_PushInput__SWIG_1(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), tmpp1, SWIGTYPE_p_unsigned_short.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -3561,7 +3750,7 @@ public static uint SKY_coin_Transaction_PushOutput(SWIGTYPE_p_Transaction__Handl } public static uint SKY_coin_Transaction_SignInputs(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_SignInputs(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr(p1)); + uint ret = skycoinPINVOKE.SKY_coin_Transaction_SignInputs__SWIG_1(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -3614,7 +3803,7 @@ public static uint SKY_coin_Transaction_UpdateHeader(SWIGTYPE_p_Transaction__Han public static uint SKY_coin_Transaction_HashInner(SWIGTYPE_p_Transaction__Handle p0, cipher_SecKey p1) { var tmpp1 = cipher_SecKey.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_HashInner(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_coin_Transaction_HashInner__SWIG_1(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), tmpp1); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -3674,7 +3863,7 @@ public static uint SKY_coin_Transactions_GetAt(SWIGTYPE_p_Transactions__Handle p } public static uint SKY_coin_Transactions_Hashes(SWIGTYPE_p_Transactions__Handle p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transactions_Hashes(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), GoSlice.getCPtr (p1)); + uint ret = skycoinPINVOKE.SKY_coin_Transactions_Hashes__SWIG_1(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), GoSlice.getCPtr (p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -3728,12 +3917,12 @@ public static uint SKY_coin_SortableTransactions_Swap(SWIGTYPE_p_SortableTransac } public static uint SKY_coin_VerifyTransactionCoinsSpending(GoSlice p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_coin_VerifyTransactionCoinsSpending(GoSlice.getCPtr (p0), GoSlice.getCPtr (p1)); + uint ret = skycoinPINVOKE.SKY_coin_VerifyTransactionCoinsSpending__SWIG_1(GoSlice.getCPtr (p0), GoSlice.getCPtr (p1)); return ret; } public static uint SKY_coin_VerifyTransactionHoursSpending(ulong p0, GoSlice p1, GoSlice p2) { - uint ret = skycoinPINVOKE.SKY_coin_VerifyTransactionHoursSpending(p0, GoSlice.getCPtr (p1), GoSlice.getCPtr (p2)); + uint ret = skycoinPINVOKE.SKY_coin_VerifyTransactionHoursSpending__SWIG_1(p0, GoSlice.getCPtr (p1), GoSlice.getCPtr (p2)); return ret; } diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index 09e7d09e..800c0caf 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -203,6 +203,141 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_equalBlockHeaders")] public static extern int equalBlockHeaders(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_GoSlicep")] + public static extern global::System.IntPtr new_GoSlicep(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_GoSlicep")] + public static extern global::System.IntPtr copy_GoSlicep(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_GoSlicep")] + public static extern void delete_GoSlicep(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlicep_assign")] + public static extern void GoSlicep_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlicep_value")] + public static extern global::System.IntPtr GoSlicep_value(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_GoStringp")] + public static extern global::System.IntPtr new_GoStringp(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_GoStringp")] + public static extern global::System.IntPtr copy_GoStringp(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_GoStringp")] + public static extern void delete_GoStringp(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoStringp_assign")] + public static extern void GoStringp_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoStringp_value")] + public static extern global::System.IntPtr GoStringp_value(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_intp")] + public static extern global::System.IntPtr new_intp(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_intp")] + public static extern global::System.IntPtr copy_intp(int jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_intp")] + public static extern void delete_intp(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_intp_assign")] + public static extern void intp_assign(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_intp_value")] + public static extern int intp_value(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_Transaction__Handlep")] + public static extern global::System.IntPtr new_Transaction__Handlep(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_Transaction__Handlep")] + public static extern global::System.IntPtr copy_Transaction__Handlep(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_Transaction__Handlep")] + public static extern void delete_Transaction__Handlep(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Transaction__Handlep_assign")] + public static extern void Transaction__Handlep_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Transaction__Handlep_value")] + public static extern global::System.IntPtr Transaction__Handlep_value(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_Handlep")] + public static extern global::System.IntPtr new_Handlep(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_Handlep")] + public static extern global::System.IntPtr copy_Handlep(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_Handlep")] + public static extern void delete_Handlep(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Handlep_assign")] + public static extern void Handlep_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Handlep_value")] + public static extern global::System.IntPtr Handlep_value(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_GoUint64p")] + public static extern global::System.IntPtr new_GoUint64p(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_GoUint64p")] + public static extern global::System.IntPtr copy_GoUint64p(ulong jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_GoUint64p")] + public static extern void delete_GoUint64p(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoUint64p_assign")] + public static extern void GoUint64p_assign(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoUint64p_value")] + public static extern ulong GoUint64p_value(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_GoUint16p")] + public static extern global::System.IntPtr new_GoUint16p(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_GoUint16p")] + public static extern global::System.IntPtr copy_GoUint16p(ushort jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_GoUint16p")] + public static extern void delete_GoUint16p(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoUint16p_assign")] + public static extern void GoUint16p_assign(global::System.Runtime.InteropServices.HandleRef jarg1, ushort jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoUint16p_value")] + public static extern ushort GoUint16p_value(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher__Addressp")] + public static extern global::System.IntPtr new_cipher__Addressp(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_cipher__Addressp")] + public static extern global::System.IntPtr copy_cipher__Addressp(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher__Addressp")] + public static extern void delete_cipher__Addressp(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Addressp_assign")] + public static extern void cipher__Addressp_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Addressp_value")] + public static extern global::System.IntPtr cipher__Addressp_value(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_Transactions__Handlep")] + public static extern global::System.IntPtr new_Transactions__Handlep(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_Transactions__Handlep")] + public static extern global::System.IntPtr copy_Transactions__Handlep(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_Transactions__Handlep")] + public static extern void delete_Transactions__Handlep(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Transactions__Handlep_assign")] + public static extern void Transactions__Handlep_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Transactions__Handlep_value")] + public static extern global::System.IntPtr Transactions__Handlep_value(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_handle_close")] public static extern void SKY_handle_close(global::System.Runtime.InteropServices.HandleRef jarg1); @@ -327,7 +462,7 @@ static skycoinPINVOKE() { public static extern int parseBoolean(string jarg1, int jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_toGoString")] - public static extern void toGoString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern void toGoString(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copySlice")] public static extern int copySlice(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3); @@ -356,152 +491,116 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_makeUxArray")] public static extern int makeUxArray(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_GoSlicep")] - public static extern global::System.IntPtr new_GoSlicep(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_GoSlicep")] - public static extern global::System.IntPtr copy_GoSlicep(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_GoSlicep")] - public static extern void delete_GoSlicep(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlicep_assign")] - public static extern void GoSlicep_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlicep_value")] - public static extern global::System.IntPtr GoSlicep_value(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_GoStringp")] - public static extern global::System.IntPtr new_GoStringp(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_GoStringp")] - public static extern global::System.IntPtr copy_GoStringp(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_GoStringp")] - public static extern void delete_GoStringp(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoStringp_assign")] - public static extern void GoStringp_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoStringp_value")] - public static extern global::System.IntPtr GoStringp_value(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_intp")] - public static extern global::System.IntPtr new_intp(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_intp")] - public static extern global::System.IntPtr copy_intp(int jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_intp")] - public static extern void delete_intp(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_makeAddress")] + public static extern int makeAddress(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_intp_assign")] - public static extern void intp_assign(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_makeTransactionFromUxOut")] + public static extern global::System.IntPtr makeTransactionFromUxOut(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_intp_value")] - public static extern int intp_value(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_makeTransaction")] + public static extern global::System.IntPtr makeTransaction(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_Transaction__Handlep")] - public static extern global::System.IntPtr new_Transaction__Handlep(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SumSHA256__SWIG_0")] + public static extern uint SKY_cipher_SumSHA256__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_Transaction__Handlep")] - public static extern global::System.IntPtr copy_Transaction__Handlep(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SignHash__SWIG_0")] + public static extern uint SKY_cipher_SignHash__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_Transaction__Handlep")] - public static extern void delete_Transaction__Handlep(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_ChkSig__SWIG_0")] + public static extern uint SKY_cipher_ChkSig__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Transaction__Handlep_assign")] - public static extern void Transaction__Handlep_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromSig__SWIG_0")] + public static extern uint SKY_cipher_PubKeyFromSig__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Transaction__Handlep_value")] - public static extern global::System.IntPtr Transaction__Handlep_value(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_VerifySignature__SWIG_0")] + public static extern uint SKY_cipher_VerifySignature__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_Handlep")] - public static extern global::System.IntPtr new_Handlep(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_TestSecKeyHash__SWIG_0")] + public static extern uint SKY_cipher_TestSecKeyHash__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_Handlep")] - public static extern global::System.IntPtr copy_Handlep(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Set__SWIG_0")] + public static extern uint SKY_cipher_SHA256_Set__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_Handlep")] - public static extern void delete_Handlep(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Hex__SWIG_0")] + public static extern uint SKY_cipher_SHA256_Hex__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Handlep_assign")] - public static extern void Handlep_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256FromHex__SWIG_0")] + public static extern uint SKY_cipher_SHA256FromHex__SWIG_0(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Handlep_value")] - public static extern global::System.IntPtr Handlep_value(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_HashInner__SWIG_0")] + public static extern uint SKY_coin_Transaction_HashInner__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_GoUint64p")] - public static extern global::System.IntPtr new_GoUint64p(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetInputAt__SWIG_0")] + public static extern uint SKY_coin_Transaction_GetInputAt__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_GoUint64p")] - public static extern global::System.IntPtr copy_GoUint64p(ulong jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_PushInput__SWIG_0")] + public static extern uint SKY_coin_Transaction_PushInput__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_GoUint64p")] - public static extern void delete_GoUint64p(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SignInputs__SWIG_0")] + public static extern uint SKY_coin_Transaction_SignInputs__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoUint64p_assign")] - public static extern void GoUint64p_assign(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairs__SWIG_0")] + public static extern uint SKY_cipher_GenerateDeterministicKeyPairs__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoUint64p_value")] - public static extern ulong GoUint64p_value(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairsSeed__SWIG_0")] + public static extern uint SKY_cipher_GenerateDeterministicKeyPairsSeed__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher__Addressp")] - public static extern global::System.IntPtr new_cipher__Addressp(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeySlice_Swap__SWIG_0")] + public static extern uint SKY_cipher_PubKeySlice_Swap__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_cipher__Addressp")] - public static extern global::System.IntPtr copy_cipher__Addressp(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_VerifyTransactionCoinsSpending__SWIG_0")] + public static extern uint SKY_coin_VerifyTransactionCoinsSpending__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher__Addressp")] - public static extern void delete_cipher__Addressp(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_VerifyTransactionHoursSpending__SWIG_0")] + public static extern uint SKY_coin_VerifyTransactionHoursSpending__SWIG_0(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Addressp_assign")] - public static extern void cipher__Addressp_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_CreateUnspents__SWIG_0")] + public static extern uint SKY_coin_CreateUnspents__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Addressp_value")] - public static extern global::System.IntPtr cipher__Addressp_value(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_VerifyInput__SWIG_0")] + public static extern uint SKY_coin_Transaction_VerifyInput__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_Transactions__Handlep")] - public static extern global::System.IntPtr new_Transactions__Handlep(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_HasDupes__SWIG_0")] + public static extern uint SKY_coin_UxArray_HasDupes__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_Transactions__Handlep")] - public static extern global::System.IntPtr copy_Transactions__Handlep(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Coins__SWIG_0")] + public static extern uint SKY_coin_UxArray_Coins__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_Transactions__Handlep")] - public static extern void delete_Transactions__Handlep(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_CoinHours__SWIG_0")] + public static extern uint SKY_coin_UxArray_CoinHours__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Transactions__Handlep_assign")] - public static extern void Transactions__Handlep_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Less__SWIG_0")] + public static extern uint SKY_coin_UxArray_Less__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Transactions__Handlep_value")] - public static extern global::System.IntPtr Transactions__Handlep_value(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Swap__SWIG_0")] + public static extern uint SKY_coin_UxArray_Swap__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SumSHA256__SWIG_0")] - public static extern uint SKY_cipher_SumSHA256__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Sub__SWIG_0")] + public static extern uint SKY_coin_UxArray_Sub__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SignHash__SWIG_0")] - public static extern uint SKY_cipher_SignHash__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Add__SWIG_0")] + public static extern uint SKY_coin_UxArray_Add__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_ChkSig__SWIG_0")] - public static extern uint SKY_cipher_ChkSig__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewAddressUxOuts__SWIG_0")] + public static extern uint SKY_coin_NewAddressUxOuts__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromSig__SWIG_0")] - public static extern uint SKY_cipher_PubKeyFromSig__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Hashes__SWIG_0")] + public static extern uint SKY_coin_UxArray_Hashes__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_VerifySignature__SWIG_0")] - public static extern uint SKY_cipher_VerifySignature__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Flatten__SWIG_0")] + public static extern uint SKY_coin_AddressUxOuts_Flatten__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_TestSecKeyHash__SWIG_0")] - public static extern uint SKY_cipher_TestSecKeyHash__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Get__SWIG_0")] + public static extern uint SKY_coin_AddressUxOuts_Get__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Set__SWIG_0")] - public static extern uint SKY_cipher_SHA256_Set__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Set__SWIG_0")] + public static extern uint SKY_coin_AddressUxOuts_Set__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Hex__SWIG_0")] - public static extern uint SKY_cipher_SHA256_Hex__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Keys__SWIG_0")] + public static extern uint SKY_coin_AddressUxOuts_Keys__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256FromHex__SWIG_0")] - public static extern uint SKY_cipher_SHA256FromHex__SWIG_0(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Hashes__SWIG_0")] + public static extern uint SKY_coin_Transactions_Hashes__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKey_isEqual")] public static extern int cipher_PubKey_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -911,8 +1010,8 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockBody_Bytes")] public static extern uint SKY_coin_BlockBody_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_CreateUnspents")] - public static extern uint SKY_coin_CreateUnspents(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_CreateUnspents__SWIG_1")] + public static extern uint SKY_coin_CreateUnspents__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_CreateUnspent")] public static extern uint SKY_coin_CreateUnspent(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); @@ -1110,7 +1209,7 @@ static skycoinPINVOKE() { public static extern uint SKY_secp256k1go_XY_Neg(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_SetXO")] - public static extern uint SKY_secp256k1go_XY_SetXO(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, byte jarg3); + public static extern uint SKY_secp256k1go_XY_SetXO(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, char jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_AddXY")] public static extern uint SKY_secp256k1go_XY_AddXY(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1185,7 +1284,7 @@ static skycoinPINVOKE() { public static extern uint SKY_wallet_Wallet_AddEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_DistributeSpendHours")] - public static extern uint SKY_wallet_DistributeSpendHours(ulong jarg1, ulong jarg2, byte jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); + public static extern uint SKY_wallet_DistributeSpendHours(ulong jarg1, ulong jarg2, char jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_DistributeCoinHoursProportional")] public static extern uint SKY_wallet_DistributeCoinHoursProportional(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -1233,7 +1332,7 @@ static skycoinPINVOKE() { public static extern uint SKY_wallet_ReadableWallet_Erase(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_DecompressPoint")] - public static extern uint SKY_secp256k1go_DecompressPoint(global::System.Runtime.InteropServices.HandleRef jarg1, byte jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_secp256k1go_DecompressPoint(global::System.Runtime.InteropServices.HandleRef jarg1, char jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_RecoverPublicKey")] public static extern uint SKY_secp256k1go_RecoverPublicKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); @@ -1367,8 +1466,8 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeySlice_Less")] public static extern uint SKY_cipher_PubKeySlice_Less(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeySlice_Swap")] - public static extern uint SKY_cipher_PubKeySlice_Swap(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeySlice_Swap__SWIG_1")] + public static extern uint SKY_cipher_PubKeySlice_Swap__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_RandByte")] public static extern uint SKY_cipher_RandByte(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1436,11 +1535,11 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_DeterministicKeyPairIterator")] public static extern uint SKY_cipher_DeterministicKeyPairIterator(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairs")] - public static extern uint SKY_cipher_GenerateDeterministicKeyPairs(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairs__SWIG_1")] + public static extern uint SKY_cipher_GenerateDeterministicKeyPairs__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairsSeed")] - public static extern uint SKY_cipher_GenerateDeterministicKeyPairsSeed(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairsSeed__SWIG_1")] + public static extern uint SKY_cipher_GenerateDeterministicKeyPairsSeed__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_TestSecKey")] public static extern uint SKY_cipher_TestSecKey(global::System.Runtime.InteropServices.HandleRef jarg1); @@ -1548,7 +1647,7 @@ static skycoinPINVOKE() { public static extern uint SKY_wallet_Entry_VerifyPublic(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_CreateAddresses")] - public static extern uint SKY_wallet_CreateAddresses(string jarg1, string jarg2, long jarg3, byte jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); + public static extern uint SKY_wallet_CreateAddresses(string jarg1, string jarg2, long jarg3, char jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_GetSkycoinWalletEntry")] public static extern uint SKY_wallet_GetSkycoinWalletEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -1623,7 +1722,7 @@ static skycoinPINVOKE() { public static extern uint SKY_map_Get(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_map_HasKey")] - public static extern byte SKY_map_HasKey(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + public static extern char SKY_map_HasKey(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_map_Close")] public static extern uint SKY_map_Close(global::System.Runtime.InteropServices.HandleRef jarg1); @@ -1799,11 +1898,11 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxOut_CoinHours")] public static extern uint SKY_coin_UxOut_CoinHours(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Hashes")] - public static extern uint SKY_coin_UxArray_Hashes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Hashes__SWIG_1")] + public static extern uint SKY_coin_UxArray_Hashes__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_HasDupes")] - public static extern uint SKY_coin_UxArray_HasDupes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_HasDupes__SWIG_1")] + public static extern uint SKY_coin_UxArray_HasDupes__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Sort")] public static extern uint SKY_coin_UxArray_Sort(global::System.Runtime.InteropServices.HandleRef jarg1); @@ -1811,32 +1910,32 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Len")] public static extern uint SKY_coin_UxArray_Len(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Less")] - public static extern uint SKY_coin_UxArray_Less(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Less__SWIG_1")] + public static extern uint SKY_coin_UxArray_Less__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Swap")] - public static extern uint SKY_coin_UxArray_Swap(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Swap__SWIG_1")] + public static extern uint SKY_coin_UxArray_Swap__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Coins")] - public static extern uint SKY_coin_UxArray_Coins(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Coins__SWIG_1")] + public static extern uint SKY_coin_UxArray_Coins__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_CoinHours")] - public static extern uint SKY_coin_UxArray_CoinHours(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_CoinHours__SWIG_1")] + public static extern uint SKY_coin_UxArray_CoinHours__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Sub")] - public static extern uint SKY_coin_UxArray_Sub(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Sub__SWIG_1")] + public static extern uint SKY_coin_UxArray_Sub__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Add")] - public static extern uint SKY_coin_UxArray_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxArray_Add__SWIG_1")] + public static extern uint SKY_coin_UxArray_Add__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewAddressUxOuts")] - public static extern uint SKY_coin_NewAddressUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewAddressUxOuts__SWIG_1")] + public static extern uint SKY_coin_NewAddressUxOuts__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Keys")] - public static extern uint SKY_coin_AddressUxOuts_Keys(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Keys__SWIG_1")] + public static extern uint SKY_coin_AddressUxOuts_Keys__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Flatten")] - public static extern uint SKY_coin_AddressUxOuts_Flatten(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Flatten__SWIG_1")] + public static extern uint SKY_coin_AddressUxOuts_Flatten__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Sub")] public static extern uint SKY_coin_AddressUxOuts_Sub(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -1844,8 +1943,8 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Add")] public static extern uint SKY_coin_AddressUxOuts_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Get")] - public static extern uint SKY_coin_AddressUxOuts_Get(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Get__SWIG_1")] + public static extern uint SKY_coin_AddressUxOuts_Get__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_HasKey")] public static extern uint SKY_coin_AddressUxOuts_HasKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -1856,8 +1955,8 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Length")] public static extern uint SKY_coin_AddressUxOuts_Length(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Set")] - public static extern uint SKY_coin_AddressUxOuts_Set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_AddressUxOuts_Set__SWIG_1")] + public static extern uint SKY_coin_AddressUxOuts_Set__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encrypt_ScryptChacha20poly1305_Encrypt")] public static extern uint SKY_encrypt_ScryptChacha20poly1305_Encrypt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); @@ -1866,7 +1965,7 @@ static skycoinPINVOKE() { public static extern uint SKY_encrypt_ScryptChacha20poly1305_Decrypt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_CreateOptionsHandle")] - public static extern uint SKY_wallet_CreateOptionsHandle(string jarg1, string jarg2, string jarg3, byte jarg4, string jarg5, string jarg6, ulong jarg7, global::System.Runtime.InteropServices.HandleRef jarg8); + public static extern uint SKY_wallet_CreateOptionsHandle(string jarg1, string jarg2, string jarg3, char jarg4, string jarg5, string jarg6, ulong jarg7, global::System.Runtime.InteropServices.HandleRef jarg8); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_AddPrivateKey")] public static extern uint SKY_cli_AddPrivateKey(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); @@ -2114,8 +2213,8 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetInputsCount")] public static extern uint SKY_coin_Transaction_GetInputsCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetInputAt")] - public static extern uint SKY_coin_Transaction_GetInputAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetInputAt__SWIG_1")] + public static extern uint SKY_coin_Transaction_GetInputAt__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SetInputAt")] public static extern uint SKY_coin_Transaction_SetInputAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -2150,11 +2249,11 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Verify")] public static extern uint SKY_coin_Transaction_Verify(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_VerifyInput")] - public static extern uint SKY_coin_Transaction_VerifyInput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_VerifyInput__SWIG_1")] + public static extern uint SKY_coin_Transaction_VerifyInput__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_PushInput")] - public static extern uint SKY_coin_Transaction_PushInput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_PushInput__SWIG_1")] + public static extern uint SKY_coin_Transaction_PushInput__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_TransactionOutput_UxID")] public static extern uint SKY_coin_TransactionOutput_UxID(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -2162,8 +2261,8 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_PushOutput")] public static extern uint SKY_coin_Transaction_PushOutput(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, ulong jarg3, ulong jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SignInputs")] - public static extern uint SKY_coin_Transaction_SignInputs(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SignInputs__SWIG_1")] + public static extern uint SKY_coin_Transaction_SignInputs__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Size")] public static extern uint SKY_coin_Transaction_Size(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -2183,8 +2282,8 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_UpdateHeader")] public static extern uint SKY_coin_Transaction_UpdateHeader(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_HashInner")] - public static extern uint SKY_coin_Transaction_HashInner(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_HashInner__SWIG_1")] + public static extern uint SKY_coin_Transaction_HashInner__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Serialize")] public static extern uint SKY_coin_Transaction_Serialize(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -2213,8 +2312,8 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_GetAt")] public static extern uint SKY_coin_Transactions_GetAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Hashes")] - public static extern uint SKY_coin_Transactions_Hashes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Hashes__SWIG_1")] + public static extern uint SKY_coin_Transactions_Hashes__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Size")] public static extern uint SKY_coin_Transactions_Size(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -2240,11 +2339,11 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SortableTransactions_Swap")] public static extern uint SKY_coin_SortableTransactions_Swap(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_VerifyTransactionCoinsSpending")] - public static extern uint SKY_coin_VerifyTransactionCoinsSpending(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_VerifyTransactionCoinsSpending__SWIG_1")] + public static extern uint SKY_coin_VerifyTransactionCoinsSpending__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_VerifyTransactionHoursSpending")] - public static extern uint SKY_coin_VerifyTransactionHoursSpending(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_VerifyTransactionHoursSpending__SWIG_1")] + public static extern uint SKY_coin_VerifyTransactionHoursSpending__SWIG_1(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Address_isEqual")] public static extern int cipher__Address_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -2256,10 +2355,10 @@ static skycoinPINVOKE() { public static extern void cipher__Address_setVersion(global::System.Runtime.InteropServices.HandleRef jarg1, char jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cipher__Address_Version")] - public static extern void set_cipher__Address_Version(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern void set_cipher__Address_Version(global::System.Runtime.InteropServices.HandleRef jarg1, char jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_cipher__Address_Version")] - public static extern global::System.IntPtr get_cipher__Address_Version(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern char get_cipher__Address_Version(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cipher__Address_Key")] public static extern void set_cipher__Address_Key(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -2402,6 +2501,9 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_isEqual")] public static extern int coin__Transaction_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_setInnerHash")] + public static extern int coin__Transaction_setInnerHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__Transaction_Length")] public static extern void set_coin__Transaction_Length(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index dc717b7b..9b434d3e 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -337,6 +337,213 @@ SWIGEXPORT void SWIGSTDCALL SWIGRegisterStringCallback_skycoin(SWIG_CSharpString } +static GoSlice *new_GoSlicep() { + return (GoSlice *) calloc(1,sizeof(GoSlice)); +} + +static GoSlice *copy_GoSlicep(GoSlice value) { + GoSlice *obj = (GoSlice *) calloc(1,sizeof(GoSlice)); + *obj = value; + return obj; +} + +static void delete_GoSlicep(GoSlice *obj) { + if (obj) free(obj); +} + +static void GoSlicep_assign(GoSlice *obj, GoSlice value) { + *obj = value; +} + +static GoSlice GoSlicep_value(GoSlice *obj) { + return *obj; +} + + +static _GoString_ *new_GoStringp() { + return (_GoString_ *) calloc(1,sizeof(_GoString_)); +} + +static _GoString_ *copy_GoStringp(_GoString_ value) { + _GoString_ *obj = (_GoString_ *) calloc(1,sizeof(_GoString_)); + *obj = value; + return obj; +} + +static void delete_GoStringp(_GoString_ *obj) { + if (obj) free(obj); +} + +static void GoStringp_assign(_GoString_ *obj, _GoString_ value) { + *obj = value; +} + +static _GoString_ GoStringp_value(_GoString_ *obj) { + return *obj; +} + + +static int *new_intp() { + return (int *) calloc(1,sizeof(int)); +} + +static int *copy_intp(int value) { + int *obj = (int *) calloc(1,sizeof(int)); + *obj = value; + return obj; +} + +static void delete_intp(int *obj) { + if (obj) free(obj); +} + +static void intp_assign(int *obj, int value) { + *obj = value; +} + +static int intp_value(int *obj) { + return *obj; +} + + +static Transaction__Handle *new_Transaction__Handlep() { + return (Transaction__Handle *) calloc(1,sizeof(Transaction__Handle)); +} + +static Transaction__Handle *copy_Transaction__Handlep(Transaction__Handle value) { + Transaction__Handle *obj = (Transaction__Handle *) calloc(1,sizeof(Transaction__Handle)); + *obj = value; + return obj; +} + +static void delete_Transaction__Handlep(Transaction__Handle *obj) { + if (obj) free(obj); +} + +static void Transaction__Handlep_assign(Transaction__Handle *obj, Transaction__Handle value) { + *obj = value; +} + +static Transaction__Handle Transaction__Handlep_value(Transaction__Handle *obj) { + return *obj; +} + + +static Handle *new_Handlep() { + return (Handle *) calloc(1,sizeof(Handle)); +} + +static Handle *copy_Handlep(Handle value) { + Handle *obj = (Handle *) calloc(1,sizeof(Handle)); + *obj = value; + return obj; +} + +static void delete_Handlep(Handle *obj) { + if (obj) free(obj); +} + +static void Handlep_assign(Handle *obj, Handle value) { + *obj = value; +} + +static Handle Handlep_value(Handle *obj) { + return *obj; +} + + +static unsigned long long *new_GoUint64p() { + return (unsigned long long *) calloc(1,sizeof(unsigned long long)); +} + +static unsigned long long *copy_GoUint64p(unsigned long long value) { + unsigned long long *obj = (unsigned long long *) calloc(1,sizeof(unsigned long long)); + *obj = value; + return obj; +} + +static void delete_GoUint64p(unsigned long long *obj) { + if (obj) free(obj); +} + +static void GoUint64p_assign(unsigned long long *obj, unsigned long long value) { + *obj = value; +} + +static unsigned long long GoUint64p_value(unsigned long long *obj) { + return *obj; +} + + +static unsigned short *new_GoUint16p() { + return (unsigned short *) calloc(1,sizeof(unsigned short)); +} + +static unsigned short *copy_GoUint16p(unsigned short value) { + unsigned short *obj = (unsigned short *) calloc(1,sizeof(unsigned short)); + *obj = value; + return obj; +} + +static void delete_GoUint16p(unsigned short *obj) { + if (obj) free(obj); +} + +static void GoUint16p_assign(unsigned short *obj, unsigned short value) { + *obj = value; +} + +static unsigned short GoUint16p_value(unsigned short *obj) { + return *obj; +} + + +static cipher__Address *new_cipher__Addressp() { + return (cipher__Address *) calloc(1,sizeof(cipher__Address)); +} + +static cipher__Address *copy_cipher__Addressp(cipher__Address value) { + cipher__Address *obj = (cipher__Address *) calloc(1,sizeof(cipher__Address)); + *obj = value; + return obj; +} + +static void delete_cipher__Addressp(cipher__Address *obj) { + if (obj) free(obj); +} + +static void cipher__Addressp_assign(cipher__Address *obj, cipher__Address value) { + *obj = value; +} + +static cipher__Address cipher__Addressp_value(cipher__Address *obj) { + return *obj; +} + + +static Transactions__Handle *new_Transactions__Handlep() { + return (Transactions__Handle *) calloc(1,sizeof(Transactions__Handle)); +} + +static Transactions__Handle *copy_Transactions__Handlep(Transactions__Handle value) { + Transactions__Handle *obj = (Transactions__Handle *) calloc(1,sizeof(Transactions__Handle)); + *obj = value; + return obj; +} + +static void delete_Transactions__Handlep(Transactions__Handle *obj) { + if (obj) free(obj); +} + +static void Transactions__Handlep_assign(Transactions__Handle *obj, Transactions__Handle value) { + *obj = value; +} + +static Transactions__Handle Transactions__Handlep_value(Transactions__Handle *obj) { + return *obj; +} + + #include "json.h" //Define function SKY_handle_close to avoid including libskycoin.h void SKY_handle_close(Handle p0); @@ -736,242 +943,419 @@ int makeUxArray(GoSlice* parray, int n){ } return result; } - +int makeAddress(cipher__Address* paddress){ + cipher__PubKey pubkey; + cipher__SecKey seckey; + cipher__Address address; + int result; -static GoSlice *new_GoSlicep() { - return (GoSlice *) calloc(1,sizeof(GoSlice)); -} + result = SKY_cipher_GenerateKeyPair(&pubkey, &seckey); + if(result != 0) return 1; -static GoSlice *copy_GoSlicep(GoSlice value) { - GoSlice *obj = (GoSlice *) calloc(1,sizeof(GoSlice)); - *obj = value; - return obj; + result = SKY_cipher_AddressFromPubKey( &pubkey, paddress ); + if(result != 0) return 1; + return result; } - -static void delete_GoSlicep(GoSlice *obj) { - if (obj) free(obj); +coin__Transaction* makeTransactionFromUxOut(coin__UxOut* puxOut, cipher__SecKey* pseckey, Transaction__Handle* handle ){ + int result; + coin__Transaction* ptransaction = NULL; + result = SKY_coin_Create_Transaction(handle); +// cr_assert(result == SKY_OK, "SKY_coin_Create_Transaction failed"); + registerHandleClose(*handle); + result = SKY_coin_GetTransactionObject( *handle, &ptransaction ); +// cr_assert(result == SKY_OK, "SKY_coin_GetTransactionObject failed"); + cipher__SHA256 sha256; + result = SKY_coin_UxOut_Hash(puxOut, &sha256); +// cr_assert(result == SKY_OK, "SKY_coin_UxOut_Hash failed"); + GoUint16 r; + result = SKY_coin_Transaction_PushInput(*handle, &sha256, &r); +// cr_assert(result == SKY_OK, "SKY_coin_Transaction_PushInput failed"); + + cipher__Address address1, address2; + result = makeAddress(&address1); +// cr_assert(result == SKY_OK, "makeAddress failed"); + result = makeAddress(&address2); +// cr_assert(result == SKY_OK, "makeAddress failed"); + + result = SKY_coin_Transaction_PushOutput(*handle, &address1, 1000000, 50); +// cr_assert(result == SKY_OK, "SKY_coin_Transaction_PushOutput failed"); + result = SKY_coin_Transaction_PushOutput(*handle, &address2, 5000000, 50); +// cr_assert(result == SKY_OK, "SKY_coin_Transaction_PushOutput failed"); + + GoSlice secKeys = { pseckey, 1, 1 }; + result = SKY_coin_Transaction_SignInputs( *handle, secKeys ); +// cr_assert(result == SKY_OK, "SKY_coin_Transaction_SignInputs failed"); + result = SKY_coin_Transaction_UpdateHeader( *handle ); +// cr_assert(result == SKY_OK, "SKY_coin_Transaction_UpdateHeader failed"); + return ptransaction; +} + +coin__Transaction* makeTransaction(Transaction__Handle* handle){ + int result; + coin__UxOut uxOut; + cipher__SecKey seckey; + coin__Transaction* ptransaction = NULL; + result = makeUxOutWithSecret( &uxOut, &seckey ); + if(result != 0) return 1; + ptransaction = makeTransactionFromUxOut( &uxOut, &seckey, handle ); + if(result != 0) return 1; + return ptransaction; } + -static void GoSlicep_assign(GoSlice *obj, GoSlice value) { - *obj = value; -} + GoUint32 CSharp_skycoin_SKY_cipher_SumSHA256(GoSlice seed, cipher_SHA256* sha){ + GoUint32 result = SKY_cipher_SumSHA256(seed, sha); + return result; + } -static GoSlice GoSlicep_value(GoSlice *obj) { - return *obj; -} + GoUint32 CSharp_skycoin_SKY_cipher_SignHash(cipher_SHA256 *sha,cipher__SecKey *sec,cipher_Sig *s){ + GoUint32 result = SKY_cipher_SignHash(sha,sec,s); + return result; + } -static _GoString_ *new_GoStringp() { - return (_GoString_ *) calloc(1,sizeof(_GoString_)); -} -static _GoString_ *copy_GoStringp(_GoString_ value) { - _GoString_ *obj = (_GoString_ *) calloc(1,sizeof(_GoString_)); - *obj = value; - return obj; -} + GoUint32 CSharp_skycoin_SKY_cipher_ChkSig(cipher__Address *a,cipher_SHA256 *sha,cipher_Sig *s){ + GoUint32 result = SKY_cipher_ChkSig(a,sha,s); + return result; + } -static void delete_GoStringp(_GoString_ *obj) { - if (obj) free(obj); -} -static void GoStringp_assign(_GoString_ *obj, _GoString_ value) { - *obj = value; -} - -static _GoString_ GoStringp_value(_GoString_ *obj) { - return *obj; -} - - -static int *new_intp() { - return (int *) calloc(1,sizeof(int)); -} + GoUint32 CSharp_skycoin_SKY_cipher_PubKeyFromSig(cipher_Sig *sig,cipher_SHA256 *h,cipher_PubKey *p){ + GoUint32 result = SKY_cipher_PubKeyFromSig(sig,h,p); + return result; + } -static int *copy_intp(int value) { - int *obj = (int *) calloc(1,sizeof(int)); - *obj = value; - return obj; -} -static void delete_intp(int *obj) { - if (obj) free(obj); -} + GoUint32 CSharp_skycoin_SKY_cipher_VerifySignature(cipher_PubKey *p,cipher_Sig *sig,cipher_SHA256 *h){ + GoUint32 result = SKY_cipher_VerifySignature(p,sig,h); + return result; + } -static void intp_assign(int *obj, int value) { - *obj = value; -} -static int intp_value(int *obj) { - return *obj; -} + GoUint32 CSharp_skycoin_SKY_cipher_TestSecKeyHash(cipher_SecKey *s,cipher_SHA256 *h){ + GoUint32 result = SKY_cipher_TestSecKeyHash(s,h); + return result; + } -static Transaction__Handle *new_Transaction__Handlep() { - return (Transaction__Handle *) calloc(1,sizeof(Transaction__Handle)); -} + GoUint32 CSharp_skycoin_SKY_cipher_SHA256_Set(cipher_SHA256 *h,GoSlice s){ + GoUint32 result = SKY_cipher_SHA256_Set(h,s); + return result; + } -static Transaction__Handle *copy_Transaction__Handlep(Transaction__Handle value) { - Transaction__Handle *obj = (Transaction__Handle *) calloc(1,sizeof(Transaction__Handle)); - *obj = value; - return obj; -} -static void delete_Transaction__Handlep(Transaction__Handle *obj) { - if (obj) free(obj); -} + GoUint32 CSharp_skycoin_SKY_cipher_SHA256_Hex(cipher_SHA256 *h,GoString_* s){ + GoUint32 result = SKY_cipher_SHA256_Hex(h,s); + return result; + } -static void Transaction__Handlep_assign(Transaction__Handle *obj, Transaction__Handle value) { - *obj = value; -} -static Transaction__Handle Transaction__Handlep_value(Transaction__Handle *obj) { - return *obj; -} + GoUint32 CSharp_skycoin_SKY_cipher_SHA256FromHex(GoString s,cipher_SHA256 *h){ + GoUint32 result = SKY_cipher_SHA256FromHex(s,h); + return result; + } -static Handle *new_Handlep() { - return (Handle *) calloc(1,sizeof(Handle)); -} + GoUint32 CSharp_skycoin_SKY_coin_Transaction_HashInner(Transaction__Handle tx,cipher_SHA256 *h){ + GoUint32 result = SKY_coin_Transaction_HashInner(tx,h); + return result; + } -static Handle *copy_Handlep(Handle value) { - Handle *obj = (Handle *) calloc(1,sizeof(Handle)); - *obj = value; - return obj; -} -static void delete_Handlep(Handle *obj) { - if (obj) free(obj); -} + GoUint32 CSharp_skycoin_SKY_coin_Transaction_GetInputAt(Transaction__Handle tx, GoInt p1,cipher_SHA256 *h){ + GoUint32 result = SKY_coin_Transaction_GetInputAt(tx,p1,h); + return result; + } -static void Handlep_assign(Handle *obj, Handle value) { - *obj = value; -} -static Handle Handlep_value(Handle *obj) { - return *obj; -} + GoUint32 CSharp_skycoin_SKY_coin_Transaction_PushInput(Transaction__Handle tx, cipher_SHA256* h, GoUint16* p1){ + GoUint32 result = SKY_coin_Transaction_PushInput(tx,h,p1); + return result; + } -static unsigned long long *new_GoUint64p() { - return (unsigned long long *) calloc(1,sizeof(unsigned long long)); -} + GoUint32 CSharp_skycoin_SKY_coin_Transaction_SignInputs(Transaction__Handle handle, cipher_SecKeys* __in_pubKeys){ + GoSlice data; + data.data = __in_pubKeys->data; + data.len = __in_pubKeys->count; + data.cap = __in_pubKeys->count; + return SKY_coin_Transaction_SignInputs(handle, data); + } -static unsigned long long *copy_GoUint64p(unsigned long long value) { - unsigned long long *obj = (unsigned long long *) calloc(1,sizeof(unsigned long long)); - *obj = value; - return obj; -} -static void delete_GoUint64p(unsigned long long *obj) { - if (obj) free(obj); -} + GoUint32 CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairs(GoSlice seed, GoInt n, cipher_SecKeys* __out_secKeys){ + __out_secKeys->data = NULL; + __out_secKeys->count = 0; + GoSlice_ data; + data.data = malloc(sizeof(cipher_SecKey) * n); + data.len = n; + data.cap = n; + GoUint32 result = SKY_cipher_GenerateDeterministicKeyPairs(seed, n, &data); + if( result == 0){ + __out_secKeys->data = data.data; + __out_secKeys->count = data.len; + } + return result; + } -static void GoUint64p_assign(unsigned long long *obj, unsigned long long value) { - *obj = value; -} -static unsigned long long GoUint64p_value(unsigned long long *obj) { - return *obj; -} + GoUint32 CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairsSeed(GoSlice seed, GoInt n, coin__UxArray* newSeed, cipher_SecKeys* __out_secKeys){ + __out_secKeys->data = NULL; + __out_secKeys->count = 0; + GoSlice_ data; + data.data = malloc(sizeof(cipher_SecKey) * n); + data.len = n; + data.cap = n; + GoUint32 result = SKY_cipher_GenerateDeterministicKeyPairsSeed(seed, n, newSeed, &data); + if( result == 0){ + __out_secKeys->data = data.data; + __out_secKeys->count = data.len; + } + return result; + } -static cipher__Address *new_cipher__Addressp() { - return (cipher__Address *) calloc(1,sizeof(cipher__Address)); -} + GoUint32 CSharp_skycoin_SKY_cipher_PubKeySlice_Swap(cipher_PubKeys* __in_pubKeys, GoInt p1, GoInt p2){ + GoSlice_ data; + data.data = __in_pubKeys->data; + data.len = __in_pubKeys->count; + data.cap = __in_pubKeys->count; + GoUint32 result = SKY_cipher_PubKeySlice_Swap(&data, p1, p2); + return result; + } -static cipher__Address *copy_cipher__Addressp(cipher__Address value) { - cipher__Address *obj = (cipher__Address *) calloc(1,sizeof(cipher__Address)); - *obj = value; - return obj; -} -static void delete_cipher__Addressp(cipher__Address *obj) { - if (obj) free(obj); -} + GoUint32 CSharp_skycoin_SKY_coin_VerifyTransactionCoinsSpending(coin_UxOutArray* __uxIn, coin_UxOutArray* __uxOut){ + GoSlice_ dataIn; + dataIn.data = __uxIn->data; + dataIn.len = __uxIn->count; + dataIn.cap = __uxIn->count; + GoSlice_ dataOut; + dataOut.data = __uxOut->data; + dataOut.len = __uxOut->count; + dataOut.cap = __uxOut->count; + GoUint32 result = SKY_coin_VerifyTransactionCoinsSpending(&dataIn, &dataOut); + return result; + }; + + + GoUint32 CSharp_skycoin_SKY_coin_VerifyTransactionHoursSpending(GoUint64 _headTime , coin_UxOutArray* __uxIn, coin_UxOutArray* __uxOut){ + GoSlice_ dataIn; + dataIn.data = __uxIn->data; + dataIn.len = __uxIn->count; + dataIn.cap = __uxIn->count; + GoSlice_ dataOut; + dataOut.data = __uxOut->data; + dataOut.len = __uxOut->count; + dataOut.cap = __uxOut->count; + GoUint32 result = SKY_coin_VerifyTransactionHoursSpending(_headTime, &dataIn, &dataOut); + return result; + }; + + + GoUint32 CSharp_skycoin_SKY_coin_CreateUnspents(coin__BlockHeader* bh, Transaction__Handle t, coin_UxOutArray* __return_Ux){ + __return_Ux->data = NULL; + __return_Ux->count = 0; + GoSlice_ data; + data.data = NULL; + data.len = 0; + data.cap = 0; + GoUint32 result = SKY_coin_CreateUnspents(bh, t, &data); + if( result == 0){ + __return_Ux->data = data.data; + __return_Ux->count = data.len; + } + return result; + } -static void cipher__Addressp_assign(cipher__Address *obj, cipher__Address value) { - *obj = value; -} -static cipher__Address cipher__Addressp_value(cipher__Address *obj) { - return *obj; -} + GoUint32 CSharp_skycoin_SKY_coin_Transaction_VerifyInput(Transaction__Handle handle, coin_UxOutArray* __uxIn){ + GoSlice_ data; + data.data = __uxIn->data; + data.len = __uxIn->count; + data.cap = __uxIn->count; + return SKY_coin_Transaction_VerifyInput(handle, &data); + } -static Transactions__Handle *new_Transactions__Handlep() { - return (Transactions__Handle *) calloc(1,sizeof(Transactions__Handle)); -} + GoUint32 CSharp_skycoin_SKY_coin_UxArray_HasDupes(coin_UxOutArray* __uxIn, GoUint8* p1){ + GoSlice_ data; + data.data = __uxIn->data; + data.len = __uxIn->count; + data.cap = __uxIn->count; + return SKY_coin_UxArray_HasDupes(&data, p1); + } -static Transactions__Handle *copy_Transactions__Handlep(Transactions__Handle value) { - Transactions__Handle *obj = (Transactions__Handle *) calloc(1,sizeof(Transactions__Handle)); - *obj = value; - return obj; -} -static void delete_Transactions__Handlep(Transactions__Handle *obj) { - if (obj) free(obj); -} + GoUint32 CSharp_skycoin_SKY_coin_UxArray_Coins(coin_UxOutArray* __uxIn, GoUint64* p1){ + GoSlice_ data; + data.data = __uxIn->data; + data.len = __uxIn->count; + data.cap = __uxIn->count; + return SKY_coin_UxArray_Coins(&data, p1); + } -static void Transactions__Handlep_assign(Transactions__Handle *obj, Transactions__Handle value) { - *obj = value; -} -static Transactions__Handle Transactions__Handlep_value(Transactions__Handle *obj) { - return *obj; -} + GoUint32 CSharp_skycoin_SKY_coin_UxArray_CoinHours(coin_UxOutArray* __uxIn, GoUint64 p1, GoUint64* p2){ + GoSlice_ data; + data.data = __uxIn->data; + data.len = __uxIn->count; + data.cap = __uxIn->count; + return SKY_coin_UxArray_CoinHours(&data, p1, p2); + } - GoUint32 CSharp_skycoin_SKY_cipher_SumSHA256(GoSlice seed, cipher_SHA256* sha){ - GoUint32 result = SKY_cipher_SumSHA256(seed, sha); - return result; + GoUint32 CSharp_skycoin_SKY_coin_UxArray_Less(coin_UxOutArray* __uxIn, GoInt p1, GoInt p2, GoUint8* p3){ + GoSlice_ data; + data.data = __uxIn->data; + data.len = __uxIn->count; + data.cap = __uxIn->count; + return SKY_coin_UxArray_Less(&data, p1, p2, p3); } - GoUint32 CSharp_skycoin_SKY_cipher_SignHash(cipher_SHA256 *sha,cipher__SecKey *sec,cipher_Sig *s){ - GoUint32 result = SKY_cipher_SignHash(sha,sec,s); - return result; + GoUint32 CSharp_skycoin_SKY_coin_UxArray_Swap(coin_UxOutArray* __uxIn, GoInt p1, GoInt p2){ + GoSlice_ data; + data.data = __uxIn->data; + data.len = __uxIn->count; + data.cap = __uxIn->count; + return SKY_coin_UxArray_Swap(&data, p1, p2); } - GoUint32 CSharp_skycoin_SKY_cipher_ChkSig(cipher__Address *a,cipher_SHA256 *sha,cipher_Sig *s){ - GoUint32 result = SKY_cipher_ChkSig(a,sha,s); + GoUint32 CSharp_skycoin_SKY_coin_UxArray_Sub(coin_UxOutArray* __uxIn, coin_UxOutArray* __uxIn2, coin_UxOutArray* __return_Ux){ + GoSlice_ data; + data.data = __uxIn->data; + data.len = __uxIn->count; + data.cap = __uxIn->count; + GoSlice_ data2; + data2.data = __uxIn2->data; + data2.len = __uxIn2->count; + data2.cap = __uxIn2->count; + GoSlice_ data3; + data3.data = NULL; + data3.len = 0; + data3.cap = 0; + GoUint32 result = SKY_coin_UxArray_Sub(&data, &data2, &data3); + if( result == 0){ + __return_Ux->data = data3.data; + __return_Ux->count = data3.len; + } return result; } - GoUint32 CSharp_skycoin_SKY_cipher_PubKeyFromSig(cipher_Sig *sig,cipher_SHA256 *h,cipher_PubKey *p){ - GoUint32 result = SKY_cipher_PubKeyFromSig(sig,h,p); + GoUint32 CSharp_skycoin_SKY_coin_UxArray_Add(coin_UxOutArray* __uxIn, coin_UxOutArray* __uxIn2, coin_UxOutArray* __return_Ux){ + GoSlice_ data; + data.data = __uxIn->data; + data.len = __uxIn->count; + data.cap = __uxIn->count; + GoSlice_ data2; + data2.data = __uxIn2->data; + data2.len = __uxIn2->count; + data2.cap = __uxIn2->count; + GoSlice_ data3; + data3.data = NULL; + data3.len = 0; + data3.cap = 0; + GoUint32 result = SKY_coin_UxArray_Add(&data, &data2, &data3); + if( result == 0){ + __return_Ux->data = data3.data; + __return_Ux->count = data3.len; + } return result; } + + GoUint32 CSharp_skycoin_SKY_coin_NewAddressUxOuts(coin_UxOutArray* __uxIn, AddressUxOuts_Handle* p1){ + GoSlice_ data; + data.data = __uxIn->data; + data.len = __uxIn->count; + data.cap = __uxIn->count; + return SKY_coin_NewAddressUxOuts(&data, p1); + } - GoUint32 CSharp_skycoin_SKY_cipher_VerifySignature(cipher_PubKey *p,cipher_Sig *sig,cipher_SHA256 *h){ - GoUint32 result = SKY_cipher_VerifySignature(p,sig,h); + + GoUint32 CSharp_skycoin_SKY_coin_UxArray_Hashes(coin_UxOutArray* __uxIn, cipher_SHA256s* __out_hashes){ + GoSlice_ data; + data.data = __uxIn->data; + data.len = __uxIn->count; + data.cap = __uxIn->count; + GoSlice_ dataOut; + dataOut.data = NULL; + dataOut.len = 0; + dataOut.cap = 0; + GoUint32 result = SKY_coin_UxArray_Hashes(&data, &dataOut); + if(result == 0){ + __out_hashes->data = dataOut.data; + __out_hashes->count = dataOut.len; + } return result; } - - GoUint32 CSharp_skycoin_SKY_cipher_TestSecKeyHash(cipher_SecKey *s,cipher_SHA256 *h){ - GoUint32 result = SKY_cipher_TestSecKeyHash(s,h); + + GoUint32 CSharp_skycoin_SKY_coin_AddressUxOuts_Flatten(AddressUxOuts_Handle p0, coin_UxOutArray* __return_Ux){ + GoSlice_ data; + data.data = NULL; + data.len = 0; + data.cap = 0; + GoUint32 result = SKY_coin_AddressUxOuts_Flatten(p0, &data); + if( result == 0 ){ + __return_Ux->data = data.data; + __return_Ux->count = data.len; + } return result; } - - GoUint32 CSharp_skycoin_SKY_cipher_SHA256_Set(cipher_SHA256 *h,GoSlice s){ - GoUint32 result = SKY_cipher_SHA256_Set(h,s); + + GoUint32 CSharp_skycoin_SKY_coin_AddressUxOuts_Get(AddressUxOuts_Handle p0, cipher__Address* p1, coin_UxOutArray* __return_Ux){ + GoSlice_ data; + data.data = NULL; + data.len = 0; + data.cap = 0; + GoUint32 result = SKY_coin_AddressUxOuts_Get(p0, p1, &data); + if( result == 0 ){ + __return_Ux->data = data.data; + __return_Ux->count = data.len; + } return result; } + + GoUint32 CSharp_skycoin_SKY_coin_AddressUxOuts_Set(AddressUxOuts_Handle p0, cipher__Address* p1, coin_UxOutArray* __uxIn){ + GoSlice_ data; + data.data = __uxIn->data; + data.len = __uxIn->count; + data.cap = __uxIn->count; + return SKY_coin_AddressUxOuts_Set(p0, p1, &data); + } - GoUint32 CSharp_skycoin_SKY_cipher_SHA256_Hex(cipher_SHA256 *h,GoString_* s){ - GoUint32 result = SKY_cipher_SHA256_Hex(h,s); + + GoUint32 CSharp_skycoin_SKY_coin_AddressUxOuts_Keys(AddressUxOuts_Handle p0, cipher_SHA256s* __out_hashes){ + GoSlice_ data; + data.data = NULL; + data.len = 0; + data.cap = 0; + GoUint32 result = SKY_coin_AddressUxOuts_Keys(p0, &data); + if( result == 0){ + __out_hashes->data = data.data; + __out_hashes->count = data.len; + } return result; } - GoUint32 CSharp_skycoin_SKY_cipher_SHA256FromHex(GoString s,cipher_SHA256 *h){ - GoUint32 result = SKY_cipher_SHA256FromHex(s,h); + GoUint32 CSharp_skycoin_SKY_coin_Transactions_Hashes(Transactions__Handle p0, cipher_SHA256s* __out_hashes){ + GoSlice_ data; + data.data = NULL; + data.len = 0; + data.cap = 0; + GoUint32 result = SKY_coin_Transactions_Hashes(p0, &data); + if( result == 0){ + __out_hashes->data = data.data; + __out_hashes->count = data.len; + } return result; } @@ -1181,6 +1565,11 @@ SWIGINTERN void cipher__Address_setVersion(cipher__Address *self,char pValue){ SWIGINTERN int coin__Transaction_isEqual(coin__Transaction *self,coin__Transaction *t){ return equalTransactions(self, t); } +SWIGINTERN int coin__Transaction_setInnerHash(coin__Transaction *self,cipher_SHA256 h){ + memset(self->InnerHash, 0, sizeof(cipher__SHA256)); + cipher_SHA256_assignFrom(self->InnerHash,&h); + return 0; + } SWIGINTERN int coin__TransactionOutput_isEqual(coin__TransactionOutput *self,coin__TransactionOutput *t){ if( self->Coins != t->Coins || self->Hours != t->Hours ){ @@ -1271,1282 +1660,1830 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalBlockHeaders(void * jarg1, void * } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_handle_close(void * jarg1) { - Handle arg1 ; - Handle *argp1 ; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_GoSlicep() { + void * jresult ; + GoSlice *result = 0 ; + + result = (GoSlice *)new_GoSlicep(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_GoSlicep(void * jarg1) { + void * jresult ; + GoSlice arg1 ; + GoSlice *argp1 ; + GoSlice *result = 0 ; - argp1 = (Handle *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); - return ; + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; } arg1 = *argp1; - SKY_handle_close(arg1); + result = (GoSlice *)copy_GoSlicep(arg1); + jresult = (void *)result; + return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_MEMPOOLIDX(int jarg1) { - int arg1 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_GoSlicep(void * jarg1) { + GoSlice *arg1 = (GoSlice *) 0 ; - arg1 = (int)jarg1; - MEMPOOLIDX = arg1; + arg1 = (GoSlice *)jarg1; + delete_GoSlicep(arg1); } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_MEMPOOLIDX() { - int jresult ; - int result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoSlicep_assign(void * jarg1, void * jarg2) { + GoSlice *arg1 = (GoSlice *) 0 ; + GoSlice arg2 ; + GoSlice *argp2 ; - result = (int)MEMPOOLIDX; - jresult = result; - return jresult; + arg1 = (GoSlice *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return ; + } + arg2 = *argp2; + GoSlicep_assign(arg1,arg2); } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_MEMPOOL(void * jarg1) { - void **arg1 ; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_GoSlicep_value(void * jarg1) { + void * jresult ; + GoSlice *arg1 = (GoSlice *) 0 ; + GoSlice result; - arg1 = (void **)jarg1; + arg1 = (GoSlice *)jarg1; + result = GoSlicep_value(arg1); { - size_t ii; - void * *b = (void * *) MEMPOOL; - for (ii = 0; ii < (size_t)1024*256; ii++) b[ii] = *((void * *) arg1 + ii); + GoSlice * resultptr = (GoSlice *) malloc(sizeof(GoSlice)); + memmove(resultptr, &result, sizeof(GoSlice)); + jresult = resultptr; } + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_MEMPOOL() { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_GoStringp() { void * jresult ; - void **result = 0 ; + _GoString_ *result = 0 ; - result = (void **)(void **)MEMPOOL; - jresult = result; + result = (_GoString_ *)new_GoStringp(); + jresult = (void *)result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_JSONPOOLIDX(int jarg1) { - int arg1 ; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_GoStringp(void * jarg1) { + void * jresult ; + _GoString_ arg1 ; + _GoString_ *argp1 ; + _GoString_ *result = 0 ; - arg1 = (int)jarg1; - JSONPOOLIDX = arg1; + argp1 = (_GoString_ *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null _GoString_", 0); + return 0; + } + arg1 = *argp1; + result = (_GoString_ *)copy_GoStringp(arg1); + jresult = (void *)result; + return jresult; } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_JSONPOOLIDX() { - int jresult ; - int result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_GoStringp(void * jarg1) { + _GoString_ *arg1 = (_GoString_ *) 0 ; - result = (int)JSONPOOLIDX; - jresult = result; - return jresult; + arg1 = (_GoString_ *)jarg1; + delete_GoStringp(arg1); } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_JSON_POOL(void * jarg1) { - json_value **arg1 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoStringp_assign(void * jarg1, void * jarg2) { + _GoString_ *arg1 = (_GoString_ *) 0 ; + _GoString_ arg2 ; + _GoString_ *argp2 ; - arg1 = (json_value **)jarg1; + arg1 = (_GoString_ *)jarg1; + argp2 = (_GoString_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null _GoString_", 0); + return ; + } + arg2 = *argp2; + GoStringp_assign(arg1,arg2); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_GoStringp_value(void * jarg1) { + void * jresult ; + _GoString_ *arg1 = (_GoString_ *) 0 ; + _GoString_ result; + + arg1 = (_GoString_ *)jarg1; + result = GoStringp_value(arg1); { - size_t ii; - json_value * *b = (json_value * *) JSON_POOL; - for (ii = 0; ii < (size_t)128; ii++) b[ii] = *((json_value * *) arg1 + ii); + _GoString_ * resultptr = (_GoString_ *) malloc(sizeof(_GoString_)); + memmove(resultptr, &result, sizeof(_GoString_)); + jresult = resultptr; } + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_JSON_POOL() { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_intp() { void * jresult ; - json_value **result = 0 ; + int *result = 0 ; - result = (json_value **)(json_value **)JSON_POOL; - jresult = result; + result = (int *)new_intp(); + jresult = (void *)result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_HANDLEPOOLIDX(int jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_intp(int jarg1) { + void * jresult ; int arg1 ; + int *result = 0 ; arg1 = (int)jarg1; - HANDLEPOOLIDX = arg1; + result = (int *)copy_intp(arg1); + jresult = (void *)result; + return jresult; } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_HANDLEPOOLIDX() { - int jresult ; - int result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_intp(void * jarg1) { + int *arg1 = (int *) 0 ; - result = (int)HANDLEPOOLIDX; - jresult = result; - return jresult; + arg1 = (int *)jarg1; + delete_intp(arg1); } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_HANDLE_POOL(void * jarg1) { - Handle *arg1 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_intp_assign(void * jarg1, int jarg2) { + int *arg1 = (int *) 0 ; + int arg2 ; - arg1 = (Handle *)jarg1; - { - size_t ii; - Handle *b = (Handle *) HANDLE_POOL; - for (ii = 0; ii < (size_t)128; ii++) b[ii] = *((Handle *) arg1 + ii); - } + arg1 = (int *)jarg1; + arg2 = (int)jarg2; + intp_assign(arg1,arg2); } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_HANDLE_POOL() { - void * jresult ; - Handle *result = 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_intp_value(void * jarg1) { + int jresult ; + int *arg1 = (int *) 0 ; + int result; - result = (Handle *)(Handle *)HANDLE_POOL; + arg1 = (int *)jarg1; + result = (int)intp_value(arg1); jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet_register_client(void * jarg1, void * jarg2) { - wallet_register *arg1 = (wallet_register *) 0 ; - Client__Handle arg2 ; - Client__Handle *argp2 ; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_Transaction__Handlep() { + void * jresult ; + Transaction__Handle *result = 0 ; - arg1 = (wallet_register *)jarg1; - argp2 = (Client__Handle *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->client = arg2; + result = (Transaction__Handle *)new_Transaction__Handlep(); + jresult = (void *)result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet_register_client(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_Transaction__Handlep(void * jarg1) { void * jresult ; - wallet_register *arg1 = (wallet_register *) 0 ; - Client__Handle result; + Transaction__Handle arg1 ; + Transaction__Handle *argp1 ; + Transaction__Handle *result = 0 ; - arg1 = (wallet_register *)jarg1; - result = ((arg1)->client); - { - Client__Handle * resultptr = (Client__Handle *) malloc(sizeof(Client__Handle)); - memmove(resultptr, &result, sizeof(Client__Handle)); - jresult = resultptr; + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; } + arg1 = *argp1; + result = (Transaction__Handle *)copy_Transaction__Handlep(arg1); + jresult = (void *)result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet_register_wallet(void * jarg1, void * jarg2) { - wallet_register *arg1 = (wallet_register *) 0 ; - WalletResponse__Handle arg2 ; - WalletResponse__Handle *argp2 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_Transaction__Handlep(void * jarg1) { + Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; - arg1 = (wallet_register *)jarg1; - argp2 = (WalletResponse__Handle *)jarg2; + arg1 = (Transaction__Handle *)jarg1; + delete_Transaction__Handlep(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_Transaction__Handlep_assign(void * jarg1, void * jarg2) { + Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; + Transaction__Handle arg2 ; + Transaction__Handle *argp2 ; + + arg1 = (Transaction__Handle *)jarg1; + argp2 = (Transaction__Handle *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); return ; } arg2 = *argp2; - if (arg1) (arg1)->wallet = arg2; + Transaction__Handlep_assign(arg1,arg2); } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet_register_wallet(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_Transaction__Handlep_value(void * jarg1) { void * jresult ; - wallet_register *arg1 = (wallet_register *) 0 ; - WalletResponse__Handle result; + Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; + Transaction__Handle result; - arg1 = (wallet_register *)jarg1; - result = ((arg1)->wallet); + arg1 = (Transaction__Handle *)jarg1; + result = Transaction__Handlep_value(arg1); { - WalletResponse__Handle * resultptr = (WalletResponse__Handle *) malloc(sizeof(WalletResponse__Handle)); - memmove(resultptr, &result, sizeof(WalletResponse__Handle)); + Transaction__Handle * resultptr = (Transaction__Handle *) malloc(sizeof(Transaction__Handle)); + memmove(resultptr, &result, sizeof(Transaction__Handle)); jresult = resultptr; } return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_wallet_register() { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_Handlep() { void * jresult ; - wallet_register *result = 0 ; + Handle *result = 0 ; - result = (wallet_register *)calloc(1, sizeof(wallet_register)); + result = (Handle *)new_Handlep(); jresult = (void *)result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet_register(void * jarg1) { - wallet_register *arg1 = (wallet_register *) 0 ; - - arg1 = (wallet_register *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_WALLETPOOLIDX(int jarg1) { - int arg1 ; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_Handlep(void * jarg1) { + void * jresult ; + Handle arg1 ; + Handle *result = 0 ; - arg1 = (int)jarg1; - WALLETPOOLIDX = arg1; + { + jarg1 = (long*)&arg1; + } + result = (Handle *)copy_Handlep(arg1); + jresult = (void *)result; + return jresult; } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_WALLETPOOLIDX() { - int jresult ; - int result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_Handlep(void * jarg1) { + Handle *arg1 = (Handle *) 0 ; - result = (int)WALLETPOOLIDX; - jresult = result; - return jresult; + { + jarg1 = (long*)&arg1; + } + delete_Handlep(arg1); } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_WALLET_POOL(void * jarg1) { - wallet_register *arg1 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_Handlep_assign(void * jarg1, void * jarg2) { + Handle *arg1 = (Handle *) 0 ; + Handle arg2 ; - arg1 = (wallet_register *)jarg1; { - size_t ii; - wallet_register *b = (wallet_register *) WALLET_POOL; - for (ii = 0; ii < (size_t)64; ii++) b[ii] = *((wallet_register *) arg1 + ii); + jarg1 = (long*)&arg1; } + { + jarg2 = (long*)&arg2; + } + Handlep_assign(arg1,arg2); } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_WALLET_POOL() { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_Handlep_value(void * jarg1) { void * jresult ; - wallet_register *result = 0 ; + Handle *arg1 = (Handle *) 0 ; + Handle result; - result = (wallet_register *)(wallet_register *)WALLET_POOL; - jresult = result; - return jresult; + { + jarg1 = (long*)&arg1; + } + result = Handlep_value(arg1); + { + Handle * resultptr = (Handle *) malloc(sizeof(Handle)); + memmove(resultptr, &result, sizeof(Handle)); + jresult = resultptr; + } + return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_stdout_backup(int jarg1) { - int arg1 ; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_GoUint64p() { + void * jresult ; + unsigned long long *result = 0 ; - arg1 = (int)jarg1; - stdout_backup = arg1; + result = (unsigned long long *)new_GoUint64p(); + jresult = (void *)result; + return jresult; } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_stdout_backup() { - int jresult ; - int result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_GoUint64p(unsigned long long jarg1) { + void * jresult ; + unsigned long long arg1 ; + unsigned long long *result = 0 ; - result = (int)stdout_backup; - jresult = result; + arg1 = (unsigned long long)jarg1; + result = (unsigned long long *)copy_GoUint64p(arg1); + jresult = (void *)result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_pipefd(void * jarg1) { - int *arg1 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_GoUint64p(void * jarg1) { + unsigned long long *arg1 = (unsigned long long *) 0 ; - arg1 = (int *)jarg1; - { - size_t ii; - int *b = (int *) pipefd; - for (ii = 0; ii < (size_t)2; ii++) b[ii] = *((int *) arg1 + ii); - } + arg1 = (unsigned long long *)jarg1; + delete_GoUint64p(arg1); } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_pipefd() { - void * jresult ; - int *result = 0 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoUint64p_assign(void * jarg1, unsigned long long jarg2) { + unsigned long long *arg1 = (unsigned long long *) 0 ; + unsigned long long arg2 ; - result = (int *)(int *)pipefd; + arg1 = (unsigned long long *)jarg1; + arg2 = (unsigned long long)jarg2; + GoUint64p_assign(arg1,arg2); +} + + +SWIGEXPORT unsigned long long SWIGSTDCALL CSharp_skycoin_GoUint64p_value(void * jarg1) { + unsigned long long jresult ; + unsigned long long *arg1 = (unsigned long long *) 0 ; + unsigned long long result; + + arg1 = (unsigned long long *)jarg1; + result = (unsigned long long)GoUint64p_value(arg1); jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_registerMemCleanup(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_GoUint16p() { void * jresult ; - void *arg1 = (void *) 0 ; - void *result = 0 ; + unsigned short *result = 0 ; - arg1 = (void *)jarg1; - result = (void *)registerMemCleanup(arg1); + result = (unsigned short *)new_GoUint16p(); jresult = (void *)result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_freeRegisteredMemCleanup(void * jarg1) { - void *arg1 = (void *) 0 ; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_GoUint16p(unsigned short jarg1) { + void * jresult ; + unsigned short arg1 ; + unsigned short *result = 0 ; - arg1 = (void *)jarg1; - freeRegisteredMemCleanup(arg1); + arg1 = (unsigned short)jarg1; + result = (unsigned short *)copy_GoUint16p(arg1); + jresult = (void *)result; + return jresult; } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_registerJsonFree(void * jarg1) { - int jresult ; - void *arg1 = (void *) 0 ; - int result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_GoUint16p(void * jarg1) { + unsigned short *arg1 = (unsigned short *) 0 ; - arg1 = (void *)jarg1; - result = (int)registerJsonFree(arg1); - jresult = result; - return jresult; + arg1 = (unsigned short *)jarg1; + delete_GoUint16p(arg1); } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_freeRegisteredJson(void * jarg1) { - void *arg1 = (void *) 0 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoUint16p_assign(void * jarg1, unsigned short jarg2) { + unsigned short *arg1 = (unsigned short *) 0 ; + unsigned short arg2 ; - arg1 = (void *)jarg1; - freeRegisteredJson(arg1); + arg1 = (unsigned short *)jarg1; + arg2 = (unsigned short)jarg2; + GoUint16p_assign(arg1,arg2); } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_registerWalletClean(void * jarg1, void * jarg2) { - int jresult ; - Client__Handle arg1 ; - WalletResponse__Handle arg2 ; - Client__Handle *argp1 ; - WalletResponse__Handle *argp2 ; - int result; +SWIGEXPORT unsigned short SWIGSTDCALL CSharp_skycoin_GoUint16p_value(void * jarg1) { + unsigned short jresult ; + unsigned short *arg1 = (unsigned short *) 0 ; + unsigned short result; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return 0; - } - arg1 = *argp1; - argp2 = (WalletResponse__Handle *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); - return 0; - } - arg2 = *argp2; - result = (int)registerWalletClean(arg1,arg2); + arg1 = (unsigned short *)jarg1; + result = (unsigned short)GoUint16p_value(arg1); jresult = result; return jresult; } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_registerHandleClose(void * jarg1) { - int jresult ; - Handle arg1 ; - Handle *argp1 ; - int result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher__Addressp() { + void * jresult ; + cipher__Address *result = 0 ; - argp1 = (Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); - return 0; - } - arg1 = *argp1; - result = (int)registerHandleClose(arg1); - jresult = result; + result = (cipher__Address *)new_cipher__Addressp(); + jresult = (void *)result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_closeRegisteredHandle(void * jarg1) { - Handle arg1 ; - Handle *argp1 ; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_cipher__Addressp(void * jarg1) { + void * jresult ; + cipher__Address arg1 ; + cipher__Address *argp1 ; + cipher__Address *result = 0 ; - argp1 = (Handle *)jarg1; + argp1 = (cipher__Address *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Handle", 0); - return ; + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null cipher__Address", 0); + return 0; } arg1 = *argp1; - closeRegisteredHandle(arg1); + result = (cipher__Address *)copy_cipher__Addressp(arg1); + jresult = (void *)result; + return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cleanupWallet(void * jarg1, void * jarg2) { - Client__Handle arg1 ; - WalletResponse__Handle arg2 ; - Client__Handle *argp1 ; - WalletResponse__Handle *argp2 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher__Addressp(void * jarg1) { + cipher__Address *arg1 = (cipher__Address *) 0 ; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return ; - } - arg1 = *argp1; - argp2 = (WalletResponse__Handle *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); - return ; - } - arg2 = *argp2; - cleanupWallet(arg1,arg2); + arg1 = (cipher__Address *)jarg1; + delete_cipher__Addressp(arg1); } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cleanRegisteredWallet(void * jarg1, void * jarg2) { - Client__Handle arg1 ; - WalletResponse__Handle arg2 ; - Client__Handle *argp1 ; - WalletResponse__Handle *argp2 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher__Addressp_assign(void * jarg1, void * jarg2) { + cipher__Address *arg1 = (cipher__Address *) 0 ; + cipher__Address arg2 ; + cipher__Address *argp2 ; - argp1 = (Client__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); - return ; - } - arg1 = *argp1; - argp2 = (WalletResponse__Handle *)jarg2; + arg1 = (cipher__Address *)jarg1; + argp2 = (cipher__Address *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null cipher__Address", 0); return ; } arg2 = *argp2; - cleanRegisteredWallet(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cleanupMem() { - cleanupMem(); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_setup() { - setup(); + cipher__Addressp_assign(arg1,arg2); } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_teardown() { - teardown(); +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher__Addressp_value(void * jarg1) { + void * jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + cipher__Address result; + + arg1 = (cipher__Address *)jarg1; + result = cipher__Addressp_value(arg1); + { + cipher__Address * resultptr = (cipher__Address *) malloc(sizeof(cipher__Address)); + memmove(resultptr, &result, sizeof(cipher__Address)); + jresult = resultptr; + } + return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_fprintbuff(void * jarg1, void * jarg2, unsigned long jarg3) { - FILE *arg1 = (FILE *) 0 ; - void *arg2 = (void *) 0 ; - size_t arg3 ; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_Transactions__Handlep() { + void * jresult ; + Transactions__Handle *result = 0 ; - arg1 = (FILE *)jarg1; - arg2 = (void *)jarg2; - arg3 = (size_t)jarg3; - fprintbuff(arg1,arg2,arg3); + result = (Transactions__Handle *)new_Transactions__Handlep(); + jresult = (void *)result; + return jresult; } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_parseBoolean(char * jarg1, int jarg2) { - int jresult ; - char *arg1 = (char *) 0 ; - int arg2 ; - int result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_Transactions__Handlep(void * jarg1) { + void * jresult ; + Transactions__Handle arg1 ; + Transactions__Handle *argp1 ; + Transactions__Handle *result = 0 ; - arg1 = (char *)jarg1; - arg2 = (int)jarg2; - result = (int)parseBoolean((char const *)arg1,arg2); - jresult = result; + argp1 = (Transactions__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + return 0; + } + arg1 = *argp1; + result = (Transactions__Handle *)copy_Transactions__Handlep(arg1); + jresult = (void *)result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_toGoString(void * jarg1, void * jarg2) { - GoString_ *arg1 = (GoString_ *) 0 ; - GoString *arg2 = (GoString *) 0 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_Transactions__Handlep(void * jarg1) { + Transactions__Handle *arg1 = (Transactions__Handle *) 0 ; - arg1 = (GoString_ *)jarg1; - arg2 = (GoString *)jarg2; - toGoString(arg1,arg2); + arg1 = (Transactions__Handle *)jarg1; + delete_Transactions__Handlep(arg1); } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_copySlice(void * jarg1, void * jarg2, int jarg3) { - int jresult ; - GoSlice_ *arg1 = (GoSlice_ *) 0 ; - GoSlice_ *arg2 = (GoSlice_ *) 0 ; - int arg3 ; - int result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_Transactions__Handlep_assign(void * jarg1, void * jarg2) { + Transactions__Handle *arg1 = (Transactions__Handle *) 0 ; + Transactions__Handle arg2 ; + Transactions__Handle *argp2 ; - arg1 = (GoSlice_ *)jarg1; - arg2 = (GoSlice_ *)jarg2; - arg3 = (int)jarg3; - result = (int)copySlice(arg1,arg2,arg3); - jresult = result; - return jresult; + arg1 = (Transactions__Handle *)jarg1; + argp2 = (Transactions__Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + return ; + } + arg2 = *argp2; + Transactions__Handlep_assign(arg1,arg2); } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_concatSlices(void * jarg1, void * jarg2, int jarg3, void * jarg4) { - int jresult ; - GoSlice_ *arg1 = (GoSlice_ *) 0 ; - GoSlice_ *arg2 = (GoSlice_ *) 0 ; - int arg3 ; - GoSlice_ *arg4 = (GoSlice_ *) 0 ; - int result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_Transactions__Handlep_value(void * jarg1) { + void * jresult ; + Transactions__Handle *arg1 = (Transactions__Handle *) 0 ; + Transactions__Handle result; - arg1 = (GoSlice_ *)jarg1; - arg2 = (GoSlice_ *)jarg2; - arg3 = (int)jarg3; - arg4 = (GoSlice_ *)jarg4; - result = (int)concatSlices(arg1,arg2,arg3,arg4); - jresult = result; + arg1 = (Transactions__Handle *)jarg1; + result = Transactions__Handlep_value(arg1); + { + Transactions__Handle * resultptr = (Transactions__Handle *) malloc(sizeof(Transactions__Handle)); + memmove(resultptr, &result, sizeof(Transactions__Handle)); + jresult = resultptr; + } return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_parseJsonMetaData(char * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5) { - char *arg1 = (char *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int *arg4 = (int *) 0 ; - int *arg5 = (int *) 0 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_handle_close(void * jarg1) { + Handle arg1 ; - arg1 = (char *)jarg1; - arg2 = (int *)jarg2; - arg3 = (int *)jarg3; - arg4 = (int *)jarg4; - arg5 = (int *)jarg5; - parseJsonMetaData(arg1,arg2,arg3,arg4,arg5); + { + jarg1 = (long*)&arg1; + } + SKY_handle_close(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_MEMPOOLIDX(int jarg1) { + int arg1 ; + + arg1 = (int)jarg1; + MEMPOOLIDX = arg1; } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cutSlice(void * jarg1, int jarg2, int jarg3, int jarg4, void * jarg5) { +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_MEMPOOLIDX() { int jresult ; - GoSlice_ *arg1 = (GoSlice_ *) 0 ; - int arg2 ; - int arg3 ; - int arg4 ; - GoSlice_ *arg5 = (GoSlice_ *) 0 ; int result; - arg1 = (GoSlice_ *)jarg1; - arg2 = (int)jarg2; - arg3 = (int)jarg3; - arg4 = (int)jarg4; - arg5 = (GoSlice_ *)jarg5; - result = (int)cutSlice(arg1,arg2,arg3,arg4,arg5); + result = (int)MEMPOOLIDX; jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_makeEmptyTransaction(void * jarg1) { - void * jresult ; - Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; - coin__Transaction *result = 0 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_MEMPOOL(void * jarg1) { + void **arg1 ; - arg1 = (Transaction__Handle *)jarg1; - result = (coin__Transaction *)makeEmptyTransaction(arg1); - jresult = (void *)result; - return jresult; + arg1 = (void **)jarg1; + { + size_t ii; + void * *b = (void * *) MEMPOOL; + for (ii = 0; ii < (size_t)1024*256; ii++) b[ii] = *((void * *) arg1 + ii); + } } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_makeUxBodyWithSecret(void * jarg1, void * jarg2) { - int jresult ; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - int result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_MEMPOOL() { + void * jresult ; + void **result = 0 ; - arg1 = (coin__UxBody *)jarg1; - arg2 = (cipher__SecKey *)jarg2; - result = (int)makeUxBodyWithSecret(arg1,(GoUint8_ (*)[32])arg2); + result = (void **)(void **)MEMPOOL; jresult = result; return jresult; } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_makeUxOutWithSecret(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_JSONPOOLIDX(int jarg1) { + int arg1 ; + + arg1 = (int)jarg1; + JSONPOOLIDX = arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_JSONPOOLIDX() { int jresult ; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; int result; - arg1 = (coin__UxOut *)jarg1; - arg2 = (cipher__SecKey *)jarg2; - result = (int)makeUxOutWithSecret(arg1,(GoUint8_ (*)[32])arg2); + result = (int)JSONPOOLIDX; jresult = result; return jresult; } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_makeUxOut(void * jarg1) { - int jresult ; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - int result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_JSON_POOL(void * jarg1) { + json_value **arg1 ; - arg1 = (coin__UxOut *)jarg1; - result = (int)makeUxOut(arg1); + arg1 = (json_value **)jarg1; + { + size_t ii; + json_value * *b = (json_value * *) JSON_POOL; + for (ii = 0; ii < (size_t)128; ii++) b[ii] = *((json_value * *) arg1 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_JSON_POOL() { + void * jresult ; + json_value **result = 0 ; + + result = (json_value **)(json_value **)JSON_POOL; jresult = result; return jresult; } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_makeUxArray(void * jarg1, int jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_HANDLEPOOLIDX(int jarg1) { + int arg1 ; + + arg1 = (int)jarg1; + HANDLEPOOLIDX = arg1; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_HANDLEPOOLIDX() { int jresult ; - GoSlice *arg1 = (GoSlice *) 0 ; - int arg2 ; int result; - arg1 = (GoSlice *)jarg1; - arg2 = (int)jarg2; - result = (int)makeUxArray(arg1,arg2); + result = (int)HANDLEPOOLIDX; jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_GoSlicep() { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_HANDLE_POOL(void * jarg1) { + Handle *arg1 ; + + arg1 = (Handle *)jarg1; + { + size_t ii; + Handle *b = (Handle *) HANDLE_POOL; + for (ii = 0; ii < (size_t)128; ii++) b[ii] = *((Handle *) arg1 + ii); + } +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_HANDLE_POOL() { void * jresult ; - GoSlice *result = 0 ; + Handle *result = 0 ; - result = (GoSlice *)new_GoSlicep(); - jresult = (void *)result; + result = (Handle *)(Handle *)HANDLE_POOL; + jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_GoSlicep(void * jarg1) { - void * jresult ; - GoSlice arg1 ; - GoSlice *argp1 ; - GoSlice *result = 0 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet_register_client(void * jarg1, void * jarg2) { + wallet_register *arg1 = (wallet_register *) 0 ; + Client__Handle arg2 ; + Client__Handle *argp2 ; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; + arg1 = (wallet_register *)jarg1; + argp2 = (Client__Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return ; } - arg1 = *argp1; - result = (GoSlice *)copy_GoSlicep(arg1); - jresult = (void *)result; - return jresult; + arg2 = *argp2; + if (arg1) (arg1)->client = arg2; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_GoSlicep(void * jarg1) { - GoSlice *arg1 = (GoSlice *) 0 ; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet_register_client(void * jarg1) { + void * jresult ; + wallet_register *arg1 = (wallet_register *) 0 ; + Client__Handle result; - arg1 = (GoSlice *)jarg1; - delete_GoSlicep(arg1); + arg1 = (wallet_register *)jarg1; + result = ((arg1)->client); + { + Client__Handle * resultptr = (Client__Handle *) malloc(sizeof(Client__Handle)); + memmove(resultptr, &result, sizeof(Client__Handle)); + jresult = resultptr; + } + return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoSlicep_assign(void * jarg1, void * jarg2) { - GoSlice *arg1 = (GoSlice *) 0 ; - GoSlice arg2 ; - GoSlice *argp2 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet_register_wallet(void * jarg1, void * jarg2) { + wallet_register *arg1 = (wallet_register *) 0 ; + WalletResponse__Handle arg2 ; + WalletResponse__Handle *argp2 ; - arg1 = (GoSlice *)jarg1; - argp2 = (GoSlice *)jarg2; + arg1 = (wallet_register *)jarg1; + argp2 = (WalletResponse__Handle *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); return ; } arg2 = *argp2; - GoSlicep_assign(arg1,arg2); + if (arg1) (arg1)->wallet = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_GoSlicep_value(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet_register_wallet(void * jarg1) { void * jresult ; - GoSlice *arg1 = (GoSlice *) 0 ; - GoSlice result; + wallet_register *arg1 = (wallet_register *) 0 ; + WalletResponse__Handle result; - arg1 = (GoSlice *)jarg1; - result = GoSlicep_value(arg1); + arg1 = (wallet_register *)jarg1; + result = ((arg1)->wallet); { - GoSlice * resultptr = (GoSlice *) malloc(sizeof(GoSlice)); - memmove(resultptr, &result, sizeof(GoSlice)); + WalletResponse__Handle * resultptr = (WalletResponse__Handle *) malloc(sizeof(WalletResponse__Handle)); + memmove(resultptr, &result, sizeof(WalletResponse__Handle)); jresult = resultptr; } return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_GoStringp() { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_wallet_register() { void * jresult ; - _GoString_ *result = 0 ; + wallet_register *result = 0 ; - result = (_GoString_ *)new_GoStringp(); + result = (wallet_register *)calloc(1, sizeof(wallet_register)); jresult = (void *)result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_GoStringp(void * jarg1) { - void * jresult ; - _GoString_ arg1 ; - _GoString_ *argp1 ; - _GoString_ *result = 0 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet_register(void * jarg1) { + wallet_register *arg1 = (wallet_register *) 0 ; - argp1 = (_GoString_ *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null _GoString_", 0); - return 0; - } - arg1 = *argp1; - result = (_GoString_ *)copy_GoStringp(arg1); - jresult = (void *)result; - return jresult; + arg1 = (wallet_register *)jarg1; + free((char *) arg1); } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_GoStringp(void * jarg1) { - _GoString_ *arg1 = (_GoString_ *) 0 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_WALLETPOOLIDX(int jarg1) { + int arg1 ; - arg1 = (_GoString_ *)jarg1; - delete_GoStringp(arg1); + arg1 = (int)jarg1; + WALLETPOOLIDX = arg1; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoStringp_assign(void * jarg1, void * jarg2) { - _GoString_ *arg1 = (_GoString_ *) 0 ; - _GoString_ arg2 ; - _GoString_ *argp2 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_WALLETPOOLIDX() { + int jresult ; + int result; - arg1 = (_GoString_ *)jarg1; - argp2 = (_GoString_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null _GoString_", 0); - return ; - } - arg2 = *argp2; - GoStringp_assign(arg1,arg2); + result = (int)WALLETPOOLIDX; + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_GoStringp_value(void * jarg1) { - void * jresult ; - _GoString_ *arg1 = (_GoString_ *) 0 ; - _GoString_ result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_WALLET_POOL(void * jarg1) { + wallet_register *arg1 ; - arg1 = (_GoString_ *)jarg1; - result = GoStringp_value(arg1); + arg1 = (wallet_register *)jarg1; { - _GoString_ * resultptr = (_GoString_ *) malloc(sizeof(_GoString_)); - memmove(resultptr, &result, sizeof(_GoString_)); - jresult = resultptr; + size_t ii; + wallet_register *b = (wallet_register *) WALLET_POOL; + for (ii = 0; ii < (size_t)64; ii++) b[ii] = *((wallet_register *) arg1 + ii); } - return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_intp() { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_WALLET_POOL() { void * jresult ; - int *result = 0 ; + wallet_register *result = 0 ; - result = (int *)new_intp(); - jresult = (void *)result; + result = (wallet_register *)(wallet_register *)WALLET_POOL; + jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_intp(int jarg1) { - void * jresult ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_stdout_backup(int jarg1) { int arg1 ; - int *result = 0 ; arg1 = (int)jarg1; - result = (int *)copy_intp(arg1); - jresult = (void *)result; - return jresult; + stdout_backup = arg1; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_intp(void * jarg1) { - int *arg1 = (int *) 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_stdout_backup() { + int jresult ; + int result; - arg1 = (int *)jarg1; - delete_intp(arg1); + result = (int)stdout_backup; + jresult = result; + return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_intp_assign(void * jarg1, int jarg2) { - int *arg1 = (int *) 0 ; - int arg2 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_pipefd(void * jarg1) { + int *arg1 ; arg1 = (int *)jarg1; - arg2 = (int)jarg2; - intp_assign(arg1,arg2); + { + size_t ii; + int *b = (int *) pipefd; + for (ii = 0; ii < (size_t)2; ii++) b[ii] = *((int *) arg1 + ii); + } } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_intp_value(void * jarg1) { - int jresult ; - int *arg1 = (int *) 0 ; - int result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_pipefd() { + void * jresult ; + int *result = 0 ; - arg1 = (int *)jarg1; - result = (int)intp_value(arg1); + result = (int *)(int *)pipefd; jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_Transaction__Handlep() { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_registerMemCleanup(void * jarg1) { void * jresult ; - Transaction__Handle *result = 0 ; + void *arg1 = (void *) 0 ; + void *result = 0 ; - result = (Transaction__Handle *)new_Transaction__Handlep(); + arg1 = (void *)jarg1; + result = (void *)registerMemCleanup(arg1); jresult = (void *)result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_Transaction__Handlep(void * jarg1) { - void * jresult ; - Transaction__Handle arg1 ; - Transaction__Handle *argp1 ; - Transaction__Handle *result = 0 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_freeRegisteredMemCleanup(void * jarg1) { + void *arg1 = (void *) 0 ; - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; - } - arg1 = *argp1; - result = (Transaction__Handle *)copy_Transaction__Handlep(arg1); - jresult = (void *)result; - return jresult; + arg1 = (void *)jarg1; + freeRegisteredMemCleanup(arg1); } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_Transaction__Handlep(void * jarg1) { - Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_registerJsonFree(void * jarg1) { + int jresult ; + void *arg1 = (void *) 0 ; + int result; - arg1 = (Transaction__Handle *)jarg1; - delete_Transaction__Handlep(arg1); + arg1 = (void *)jarg1; + result = (int)registerJsonFree(arg1); + jresult = result; + return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_Transaction__Handlep_assign(void * jarg1, void * jarg2) { - Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; - Transaction__Handle arg2 ; - Transaction__Handle *argp2 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_freeRegisteredJson(void * jarg1) { + void *arg1 = (void *) 0 ; - arg1 = (Transaction__Handle *)jarg1; - argp2 = (Transaction__Handle *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return ; - } - arg2 = *argp2; - Transaction__Handlep_assign(arg1,arg2); + arg1 = (void *)jarg1; + freeRegisteredJson(arg1); } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_Transaction__Handlep_value(void * jarg1) { - void * jresult ; - Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; - Transaction__Handle result; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_registerWalletClean(void * jarg1, void * jarg2) { + int jresult ; + Client__Handle arg1 ; + WalletResponse__Handle arg2 ; + Client__Handle *argp1 ; + WalletResponse__Handle *argp2 ; + int result; - arg1 = (Transaction__Handle *)jarg1; - result = Transaction__Handlep_value(arg1); - { - Transaction__Handle * resultptr = (Transaction__Handle *) malloc(sizeof(Transaction__Handle)); - memmove(resultptr, &result, sizeof(Transaction__Handle)); - jresult = resultptr; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return 0; } + arg1 = *argp1; + argp2 = (WalletResponse__Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); + return 0; + } + arg2 = *argp2; + result = (int)registerWalletClean(arg1,arg2); + jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_Handlep() { - void * jresult ; - Handle *result = 0 ; - - result = (Handle *)new_Handlep(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_Handlep(void * jarg1) { - void * jresult ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_registerHandleClose(void * jarg1) { + int jresult ; Handle arg1 ; - Handle *result = 0 ; + int result; { jarg1 = (long*)&arg1; } - result = (Handle *)copy_Handlep(arg1); - jresult = (void *)result; + result = (int)registerHandleClose(arg1); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_Handlep(void * jarg1) { - Handle *arg1 = (Handle *) 0 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_closeRegisteredHandle(void * jarg1) { + Handle arg1 ; { jarg1 = (long*)&arg1; } - delete_Handlep(arg1); + closeRegisteredHandle(arg1); } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_Handlep_assign(void * jarg1, void * jarg2) { - Handle *arg1 = (Handle *) 0 ; - Handle arg2 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cleanupWallet(void * jarg1, void * jarg2) { + Client__Handle arg1 ; + WalletResponse__Handle arg2 ; + Client__Handle *argp1 ; + WalletResponse__Handle *argp2 ; - { - jarg1 = (long*)&arg1; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return ; } - { - jarg2 = (long*)&arg2; + arg1 = *argp1; + argp2 = (WalletResponse__Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); + return ; } - Handlep_assign(arg1,arg2); + arg2 = *argp2; + cleanupWallet(arg1,arg2); } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_Handlep_value(void * jarg1) { - void * jresult ; - Handle *arg1 = (Handle *) 0 ; - Handle result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cleanRegisteredWallet(void * jarg1, void * jarg2) { + Client__Handle arg1 ; + WalletResponse__Handle arg2 ; + Client__Handle *argp1 ; + WalletResponse__Handle *argp2 ; - { - jarg1 = (long*)&arg1; - } - result = Handlep_value(arg1); - { - Handle * resultptr = (Handle *) malloc(sizeof(Handle)); - memmove(resultptr, &result, sizeof(Handle)); - jresult = resultptr; + argp1 = (Client__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Client__Handle", 0); + return ; + } + arg1 = *argp1; + argp2 = (WalletResponse__Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WalletResponse__Handle", 0); + return ; + } + arg2 = *argp2; + cleanRegisteredWallet(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cleanupMem() { + cleanupMem(); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_setup() { + setup(); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_teardown() { + teardown(); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_fprintbuff(void * jarg1, void * jarg2, unsigned long jarg3) { + FILE *arg1 = (FILE *) 0 ; + void *arg2 = (void *) 0 ; + size_t arg3 ; + + arg1 = (FILE *)jarg1; + arg2 = (void *)jarg2; + arg3 = (size_t)jarg3; + fprintbuff(arg1,arg2,arg3); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_parseBoolean(char * jarg1, int jarg2) { + int jresult ; + char *arg1 = (char *) 0 ; + int arg2 ; + int result; + + arg1 = (char *)jarg1; + arg2 = (int)jarg2; + result = (int)parseBoolean((char const *)arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_toGoString(GoString* jarg1) { + GoString_ *arg1 = (GoString_ *) 0 ; + GoString *arg2 = (GoString *) 0 ; + GoString temp2 ; + + { + temp2.p = NULL; + temp2.n = 0; + arg2 = (GoString *)&temp2; + } + arg1 = (GoString_ *)jarg1; + toGoString(arg1,arg2); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_copySlice(GoSlice_ * jarg1, GoSlice_ * jarg2, int jarg3) { + int jresult ; + GoSlice_ *arg1 = (GoSlice_ *) 0 ; + GoSlice_ *arg2 = (GoSlice_ *) 0 ; + int arg3 ; + int result; + + arg1 = (GoSlice_ *)jarg1; + arg2 = (GoSlice_ *)jarg2; + arg3 = (int)jarg3; + result = (int)copySlice(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_concatSlices(GoSlice_ * jarg1, GoSlice_ * jarg2, int jarg3, GoSlice_ * jarg4) { + int jresult ; + GoSlice_ *arg1 = (GoSlice_ *) 0 ; + GoSlice_ *arg2 = (GoSlice_ *) 0 ; + int arg3 ; + GoSlice_ *arg4 = (GoSlice_ *) 0 ; + int result; + + arg1 = (GoSlice_ *)jarg1; + arg2 = (GoSlice_ *)jarg2; + arg3 = (int)jarg3; + arg4 = (GoSlice_ *)jarg4; + result = (int)concatSlices(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_parseJsonMetaData(char * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5) { + char *arg1 = (char *) 0 ; + int *arg2 = (int *) 0 ; + int *arg3 = (int *) 0 ; + int *arg4 = (int *) 0 ; + int *arg5 = (int *) 0 ; + + arg1 = (char *)jarg1; + arg2 = (int *)jarg2; + arg3 = (int *)jarg3; + arg4 = (int *)jarg4; + arg5 = (int *)jarg5; + parseJsonMetaData(arg1,arg2,arg3,arg4,arg5); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cutSlice(GoSlice_ * jarg1, int jarg2, int jarg3, int jarg4, GoSlice_ * jarg5) { + int jresult ; + GoSlice_ *arg1 = (GoSlice_ *) 0 ; + int arg2 ; + int arg3 ; + int arg4 ; + GoSlice_ *arg5 = (GoSlice_ *) 0 ; + int result; + + arg1 = (GoSlice_ *)jarg1; + arg2 = (int)jarg2; + arg3 = (int)jarg3; + arg4 = (int)jarg4; + arg5 = (GoSlice_ *)jarg5; + result = (int)cutSlice(arg1,arg2,arg3,arg4,arg5); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_makeEmptyTransaction(void * jarg1) { + void * jresult ; + Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; + coin__Transaction *result = 0 ; + + arg1 = (Transaction__Handle *)jarg1; + result = (coin__Transaction *)makeEmptyTransaction(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_makeUxBodyWithSecret(void * jarg1, cipher_SecKey* jarg2) { + int jresult ; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + int result; + + arg1 = (coin__UxBody *)jarg1; + arg2 = (cipher__SecKey *)jarg2; + result = (int)makeUxBodyWithSecret(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_makeUxOutWithSecret(void * jarg1, cipher_SecKey* jarg2) { + int jresult ; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + int result; + + arg1 = (coin__UxOut *)jarg1; + arg2 = (cipher__SecKey *)jarg2; + result = (int)makeUxOutWithSecret(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_makeUxOut(void * jarg1) { + int jresult ; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + int result; + + arg1 = (coin__UxOut *)jarg1; + result = (int)makeUxOut(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_makeUxArray(void * jarg1, int jarg2) { + int jresult ; + GoSlice *arg1 = (GoSlice *) 0 ; + int arg2 ; + int result; + + arg1 = (GoSlice *)jarg1; + arg2 = (int)jarg2; + result = (int)makeUxArray(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_makeAddress(void * jarg1) { + int jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + int result; + + arg1 = (cipher__Address *)jarg1; + result = (int)makeAddress(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_makeTransactionFromUxOut(void * jarg1, cipher_SecKey* jarg2, void * jarg3) { + void * jresult ; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + Transaction__Handle *arg3 = (Transaction__Handle *) 0 ; + coin__Transaction *result = 0 ; + + arg1 = (coin__UxOut *)jarg1; + arg2 = (cipher__SecKey *)jarg2; + arg3 = (Transaction__Handle *)jarg3; + result = (coin__Transaction *)makeTransactionFromUxOut(arg1,(GoUint8_ (*)[32])arg2,arg3); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_makeTransaction(void * jarg1) { + void * jresult ; + Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; + coin__Transaction *result = 0 ; + + arg1 = (Transaction__Handle *)jarg1; + result = (coin__Transaction *)makeTransaction(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SumSHA256__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher_SHA256 *)jarg2; + result = (GoUint32)CSharp_skycoin_SKY_cipher_SumSHA256(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SignHash__SWIG_0(void * jarg1, cipher_SecKey* jarg2, void * jarg3) { + unsigned int jresult ; + cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + cipher_Sig *arg3 = (cipher_Sig *) 0 ; + GoUint32 result; + + arg1 = (cipher_SHA256 *)jarg1; + arg2 = (cipher__SecKey *)jarg2; + arg3 = (cipher_Sig *)jarg3; + result = (GoUint32)CSharp_skycoin_SKY_cipher_SignHash(arg1,(GoUint8_ (*)[32])arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_ChkSig__SWIG_0(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; + cipher_Sig *arg3 = (cipher_Sig *) 0 ; + GoUint32 result; + + arg1 = (cipher__Address *)jarg1; + arg2 = (cipher_SHA256 *)jarg2; + arg3 = (cipher_Sig *)jarg3; + result = (GoUint32)CSharp_skycoin_SKY_cipher_ChkSig(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSig__SWIG_0(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + cipher_Sig *arg1 = (cipher_Sig *) 0 ; + cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; + cipher_PubKey *arg3 = (cipher_PubKey *) 0 ; + GoUint32 result; + + arg1 = (cipher_Sig *)jarg1; + arg2 = (cipher_SHA256 *)jarg2; + arg3 = (cipher_PubKey *)jarg3; + result = (GoUint32)CSharp_skycoin_SKY_cipher_PubKeyFromSig(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignature__SWIG_0(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; + cipher_Sig *arg2 = (cipher_Sig *) 0 ; + cipher_SHA256 *arg3 = (cipher_SHA256 *) 0 ; + GoUint32 result; + + arg1 = (cipher_PubKey *)jarg1; + arg2 = (cipher_Sig *)jarg2; + arg3 = (cipher_SHA256 *)jarg3; + result = (GoUint32)CSharp_skycoin_SKY_cipher_VerifySignature(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_TestSecKeyHash__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; + cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; + GoUint32 result; + + arg1 = (cipher_SecKey *)jarg1; + arg2 = (cipher_SHA256 *)jarg2; + result = (GoUint32)CSharp_skycoin_SKY_cipher_TestSecKeyHash(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Set__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; + GoSlice arg2 ; + GoSlice *argp2 ; + GoUint32 result; + + arg1 = (cipher_SHA256 *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; } + arg2 = *argp2; + result = (GoUint32)CSharp_skycoin_SKY_cipher_SHA256_Set(arg1,arg2); + jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_GoUint64p() { - void * jresult ; - unsigned long long *result = 0 ; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Hex__SWIG_0(void * jarg1, GoString* jarg2) { + unsigned int jresult ; + cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; - result = (unsigned long long *)new_GoUint64p(); - jresult = (void *)result; + arg1 = (cipher_SHA256 *)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)CSharp_skycoin_SKY_cipher_SHA256_Hex(arg1,arg2); + jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_GoUint64p(unsigned long long jarg1) { - void * jresult ; - unsigned long long arg1 ; - unsigned long long *result = 0 ; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256FromHex__SWIG_0(char* jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; + GoUint32 result; - arg1 = (unsigned long long)jarg1; - result = (unsigned long long *)copy_GoUint64p(arg1); - jresult = (void *)result; + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); + arg2 = (cipher_SHA256 *)jarg2; + result = (GoUint32)CSharp_skycoin_SKY_cipher_SHA256FromHex(arg1,arg2); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_GoUint64p(void * jarg1) { - unsigned long long *arg1 = (unsigned long long *) 0 ; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_HashInner__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; + Transaction__Handle *argp1 ; + GoUint32 result; - arg1 = (unsigned long long *)jarg1; - delete_GoUint64p(arg1); + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher_SHA256 *)jarg2; + result = (GoUint32)CSharp_skycoin_SKY_coin_Transaction_HashInner(arg1,arg2); + jresult = result; + return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoUint64p_assign(void * jarg1, unsigned long long jarg2) { - unsigned long long *arg1 = (unsigned long long *) 0 ; - unsigned long long arg2 ; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetInputAt__SWIG_0(void * jarg1, long long jarg2, void * jarg3) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoInt arg2 ; + cipher_SHA256 *arg3 = (cipher_SHA256 *) 0 ; + Transaction__Handle *argp1 ; + GoUint32 result; - arg1 = (unsigned long long *)jarg1; - arg2 = (unsigned long long)jarg2; - GoUint64p_assign(arg1,arg2); + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt)jarg2; + arg3 = (cipher_SHA256 *)jarg3; + result = (GoUint32)CSharp_skycoin_SKY_coin_Transaction_GetInputAt(arg1,arg2,arg3); + jresult = result; + return jresult; } -SWIGEXPORT unsigned long long SWIGSTDCALL CSharp_skycoin_GoUint64p_value(void * jarg1) { - unsigned long long jresult ; - unsigned long long *arg1 = (unsigned long long *) 0 ; - unsigned long long result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_PushInput__SWIG_0(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Transaction__Handle arg1 ; + cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; + GoUint16 *arg3 = (GoUint16 *) 0 ; + Transaction__Handle *argp1 ; + GoUint32 result; - arg1 = (unsigned long long *)jarg1; - result = (unsigned long long)GoUint64p_value(arg1); + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher_SHA256 *)jarg2; + arg3 = (GoUint16 *)jarg3; + result = (GoUint32)CSharp_skycoin_SKY_coin_Transaction_PushInput(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher__Addressp() { - void * jresult ; - cipher__Address *result = 0 ; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SignInputs__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + cipher_SecKeys *arg2 = (cipher_SecKeys *) 0 ; + Transaction__Handle *argp1 ; + GoUint32 result; - result = (cipher__Address *)new_cipher__Addressp(); - jresult = (void *)result; + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher_SecKeys *)jarg2; + result = (GoUint32)CSharp_skycoin_SKY_coin_Transaction_SignInputs(arg1,arg2); + jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_cipher__Addressp(void * jarg1) { - void * jresult ; - cipher__Address arg1 ; - cipher__Address *argp1 ; - cipher__Address *result = 0 ; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairs__SWIG_0(void * jarg1, long long jarg2, void * jarg3) { + unsigned int jresult ; + GoSlice arg1 ; + GoInt arg2 ; + cipher_SecKeys *arg3 = (cipher_SecKeys *) 0 ; + GoSlice *argp1 ; + GoUint32 result; - argp1 = (cipher__Address *)jarg1; + argp1 = (GoSlice *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null cipher__Address", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg1 = *argp1; - result = (cipher__Address *)copy_cipher__Addressp(arg1); - jresult = (void *)result; + arg2 = (GoInt)jarg2; + arg3 = (cipher_SecKeys *)jarg3; + result = (GoUint32)CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairs(arg1,arg2,arg3); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher__Addressp(void * jarg1) { - cipher__Address *arg1 = (cipher__Address *) 0 ; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairsSeed__SWIG_0(void * jarg1, long long jarg2, GoSlice_ * jarg3, void * jarg4) { + unsigned int jresult ; + GoSlice arg1 ; + GoInt arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + cipher_SecKeys *arg4 = (cipher_SecKeys *) 0 ; + GoSlice *argp1 ; + GoUint32 result; - arg1 = (cipher__Address *)jarg1; - delete_cipher__Addressp(arg1); + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt)jarg2; + arg3 = (coin__UxArray *)jarg3; + arg4 = (cipher_SecKeys *)jarg4; + result = (GoUint32)CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairsSeed(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher__Addressp_assign(void * jarg1, void * jarg2) { - cipher__Address *arg1 = (cipher__Address *) 0 ; - cipher__Address arg2 ; - cipher__Address *argp2 ; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Swap__SWIG_0(void * jarg1, long long jarg2, long long jarg3) { + unsigned int jresult ; + cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; + GoInt arg2 ; + GoInt arg3 ; + GoUint32 result; - arg1 = (cipher__Address *)jarg1; - argp2 = (cipher__Address *)jarg2; + arg1 = (cipher_PubKeys *)jarg1; + arg2 = (GoInt)jarg2; + arg3 = (GoInt)jarg3; + result = (GoUint32)CSharp_skycoin_SKY_cipher_PubKeySlice_Swap(arg1,arg2,arg3); + jresult = result; + { + if (arg1->data) free(arg1->data); + } + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_VerifyTransactionCoinsSpending__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + coin_UxOutArray *arg2 = (coin_UxOutArray *) 0 ; + GoUint32 result; + + arg1 = (coin_UxOutArray *)jarg1; + arg2 = (coin_UxOutArray *)jarg2; + result = (GoUint32)CSharp_skycoin_SKY_coin_VerifyTransactionCoinsSpending(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_VerifyTransactionHoursSpending__SWIG_0(unsigned long long jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + GoUint64 arg1 ; + coin_UxOutArray *arg2 = (coin_UxOutArray *) 0 ; + coin_UxOutArray *arg3 = (coin_UxOutArray *) 0 ; + GoUint32 result; + + arg1 = (GoUint64)jarg1; + arg2 = (coin_UxOutArray *)jarg2; + arg3 = (coin_UxOutArray *)jarg3; + result = (GoUint32)CSharp_skycoin_SKY_coin_VerifyTransactionHoursSpending(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_CreateUnspents__SWIG_0(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + Transaction__Handle arg2 ; + coin_UxOutArray *arg3 = (coin_UxOutArray *) 0 ; + Transaction__Handle *argp2 ; + GoUint32 result; + + arg1 = (coin__BlockHeader *)jarg1; + argp2 = (Transaction__Handle *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null cipher__Address", 0); - return ; + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; } arg2 = *argp2; - cipher__Addressp_assign(arg1,arg2); + arg3 = (coin_UxOutArray *)jarg3; + result = (GoUint32)CSharp_skycoin_SKY_coin_CreateUnspents(arg1,arg2,arg3); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher__Addressp_value(void * jarg1) { - void * jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - cipher__Address result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_VerifyInput__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + coin_UxOutArray *arg2 = (coin_UxOutArray *) 0 ; + Transaction__Handle *argp1 ; + GoUint32 result; - arg1 = (cipher__Address *)jarg1; - result = cipher__Addressp_value(arg1); - { - cipher__Address * resultptr = (cipher__Address *) malloc(sizeof(cipher__Address)); - memmove(resultptr, &result, sizeof(cipher__Address)); - jresult = resultptr; + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; } + arg1 = *argp1; + arg2 = (coin_UxOutArray *)jarg2; + result = (GoUint32)CSharp_skycoin_SKY_coin_Transaction_VerifyInput(arg1,arg2); + jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_Transactions__Handlep() { - void * jresult ; - Transactions__Handle *result = 0 ; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_HasDupes__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoUint32 result; - result = (Transactions__Handle *)new_Transactions__Handlep(); - jresult = (void *)result; + arg1 = (coin_UxOutArray *)jarg1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)CSharp_skycoin_SKY_coin_UxArray_HasDupes(arg1,arg2); + jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_Transactions__Handlep(void * jarg1) { - void * jresult ; - Transactions__Handle arg1 ; - Transactions__Handle *argp1 ; - Transactions__Handle *result = 0 ; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Coins__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint32 result; - argp1 = (Transactions__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); - return 0; - } - arg1 = *argp1; - result = (Transactions__Handle *)copy_Transactions__Handlep(arg1); - jresult = (void *)result; + arg1 = (coin_UxOutArray *)jarg1; + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)CSharp_skycoin_SKY_coin_UxArray_Coins(arg1,arg2); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_Transactions__Handlep(void * jarg1) { - Transactions__Handle *arg1 = (Transactions__Handle *) 0 ; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_CoinHours__SWIG_0(void * jarg1, unsigned long long jarg2, void * jarg3) { + unsigned int jresult ; + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + GoUint64 arg2 ; + GoUint64 *arg3 = (GoUint64 *) 0 ; + GoUint32 result; - arg1 = (Transactions__Handle *)jarg1; - delete_Transactions__Handlep(arg1); + arg1 = (coin_UxOutArray *)jarg1; + arg2 = (GoUint64)jarg2; + arg3 = (GoUint64 *)jarg3; + result = (GoUint32)CSharp_skycoin_SKY_coin_UxArray_CoinHours(arg1,arg2,arg3); + jresult = result; + return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_Transactions__Handlep_assign(void * jarg1, void * jarg2) { - Transactions__Handle *arg1 = (Transactions__Handle *) 0 ; - Transactions__Handle arg2 ; - Transactions__Handle *argp2 ; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Less__SWIG_0(void * jarg1, long long jarg2, long long jarg3, void * jarg4) { + unsigned int jresult ; + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + GoInt arg2 ; + GoInt arg3 ; + GoUint8 *arg4 = (GoUint8 *) 0 ; + GoUint32 result; - arg1 = (Transactions__Handle *)jarg1; - argp2 = (Transactions__Handle *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); - return ; - } - arg2 = *argp2; - Transactions__Handlep_assign(arg1,arg2); + arg1 = (coin_UxOutArray *)jarg1; + arg2 = (GoInt)jarg2; + arg3 = (GoInt)jarg3; + arg4 = (GoUint8 *)jarg4; + result = (GoUint32)CSharp_skycoin_SKY_coin_UxArray_Less(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_Transactions__Handlep_value(void * jarg1) { - void * jresult ; - Transactions__Handle *arg1 = (Transactions__Handle *) 0 ; - Transactions__Handle result; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Swap__SWIG_0(void * jarg1, long long jarg2, long long jarg3) { + unsigned int jresult ; + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + GoInt arg2 ; + GoInt arg3 ; + GoUint32 result; - arg1 = (Transactions__Handle *)jarg1; - result = Transactions__Handlep_value(arg1); - { - Transactions__Handle * resultptr = (Transactions__Handle *) malloc(sizeof(Transactions__Handle)); - memmove(resultptr, &result, sizeof(Transactions__Handle)); - jresult = resultptr; - } + arg1 = (coin_UxOutArray *)jarg1; + arg2 = (GoInt)jarg2; + arg3 = (GoInt)jarg3; + result = (GoUint32)CSharp_skycoin_SKY_coin_UxArray_Swap(arg1,arg2,arg3); + jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SumSHA256__SWIG_0(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Sub__SWIG_0(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - GoSlice arg1 ; - cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; - GoSlice *argp1 ; + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + coin_UxOutArray *arg2 = (coin_UxOutArray *) 0 ; + coin_UxOutArray *arg3 = (coin_UxOutArray *) 0 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher_SHA256 *)jarg2; - result = (GoUint32)CSharp_skycoin_SKY_cipher_SumSHA256(arg1,arg2); + arg1 = (coin_UxOutArray *)jarg1; + arg2 = (coin_UxOutArray *)jarg2; + arg3 = (coin_UxOutArray *)jarg3; + result = (GoUint32)CSharp_skycoin_SKY_coin_UxArray_Sub(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SignHash__SWIG_0(void * jarg1, cipher_SecKey* jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Add__SWIG_0(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - cipher_Sig *arg3 = (cipher_Sig *) 0 ; + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + coin_UxOutArray *arg2 = (coin_UxOutArray *) 0 ; + coin_UxOutArray *arg3 = (coin_UxOutArray *) 0 ; GoUint32 result; - arg1 = (cipher_SHA256 *)jarg1; - arg2 = (cipher__SecKey *)jarg2; - arg3 = (cipher_Sig *)jarg3; - result = (GoUint32)CSharp_skycoin_SKY_cipher_SignHash(arg1,(GoUint8_ (*)[32])arg2,arg3); + arg1 = (coin_UxOutArray *)jarg1; + arg2 = (coin_UxOutArray *)jarg2; + arg3 = (coin_UxOutArray *)jarg3; + result = (GoUint32)CSharp_skycoin_SKY_coin_UxArray_Add(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_ChkSig__SWIG_0(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewAddressUxOuts__SWIG_0(void * jarg1, void * jarg2) { unsigned int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; - cipher_Sig *arg3 = (cipher_Sig *) 0 ; + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + AddressUxOuts_Handle *arg2 = (AddressUxOuts_Handle *) 0 ; GoUint32 result; - arg1 = (cipher__Address *)jarg1; - arg2 = (cipher_SHA256 *)jarg2; - arg3 = (cipher_Sig *)jarg3; - result = (GoUint32)CSharp_skycoin_SKY_cipher_ChkSig(arg1,arg2,arg3); + arg1 = (coin_UxOutArray *)jarg1; + arg2 = (AddressUxOuts_Handle *)jarg2; + result = (GoUint32)CSharp_skycoin_SKY_coin_NewAddressUxOuts(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSig__SWIG_0(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Hashes__SWIG_0(void * jarg1, void * jarg2) { unsigned int jresult ; - cipher_Sig *arg1 = (cipher_Sig *) 0 ; - cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; - cipher_PubKey *arg3 = (cipher_PubKey *) 0 ; + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + cipher_SHA256s *arg2 = (cipher_SHA256s *) 0 ; GoUint32 result; - arg1 = (cipher_Sig *)jarg1; - arg2 = (cipher_SHA256 *)jarg2; - arg3 = (cipher_PubKey *)jarg3; - result = (GoUint32)CSharp_skycoin_SKY_cipher_PubKeyFromSig(arg1,arg2,arg3); + arg1 = (coin_UxOutArray *)jarg1; + arg2 = (cipher_SHA256s *)jarg2; + result = (GoUint32)CSharp_skycoin_SKY_coin_UxArray_Hashes(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignature__SWIG_0(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Flatten__SWIG_0(void * jarg1, void * jarg2) { unsigned int jresult ; - cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; - cipher_Sig *arg2 = (cipher_Sig *) 0 ; - cipher_SHA256 *arg3 = (cipher_SHA256 *) 0 ; + AddressUxOuts_Handle arg1 ; + coin_UxOutArray *arg2 = (coin_UxOutArray *) 0 ; + AddressUxOuts_Handle *argp1 ; GoUint32 result; - arg1 = (cipher_PubKey *)jarg1; - arg2 = (cipher_Sig *)jarg2; - arg3 = (cipher_SHA256 *)jarg3; - result = (GoUint32)CSharp_skycoin_SKY_cipher_VerifySignature(arg1,arg2,arg3); + argp1 = (AddressUxOuts_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin_UxOutArray *)jarg2; + result = (GoUint32)CSharp_skycoin_SKY_coin_AddressUxOuts_Flatten(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_TestSecKeyHash__SWIG_0(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Get__SWIG_0(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; - cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; + AddressUxOuts_Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + coin_UxOutArray *arg3 = (coin_UxOutArray *) 0 ; + AddressUxOuts_Handle *argp1 ; GoUint32 result; - arg1 = (cipher_SecKey *)jarg1; - arg2 = (cipher_SHA256 *)jarg2; - result = (GoUint32)CSharp_skycoin_SKY_cipher_TestSecKeyHash(arg1,arg2); + argp1 = (AddressUxOuts_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__Address *)jarg2; + arg3 = (coin_UxOutArray *)jarg3; + result = (GoUint32)CSharp_skycoin_SKY_coin_AddressUxOuts_Get(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Set__SWIG_0(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Set__SWIG_0(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; - GoSlice arg2 ; - GoSlice *argp2 ; + AddressUxOuts_Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + coin_UxOutArray *arg3 = (coin_UxOutArray *) 0 ; + AddressUxOuts_Handle *argp1 ; GoUint32 result; - arg1 = (cipher_SHA256 *)jarg1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + argp1 = (AddressUxOuts_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); return 0; } - arg2 = *argp2; - result = (GoUint32)CSharp_skycoin_SKY_cipher_SHA256_Set(arg1,arg2); + arg1 = *argp1; + arg2 = (cipher__Address *)jarg2; + arg3 = (coin_UxOutArray *)jarg3; + result = (GoUint32)CSharp_skycoin_SKY_coin_AddressUxOuts_Set(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Hex__SWIG_0(void * jarg1, GoString* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Keys__SWIG_0(void * jarg1, void * jarg2) { unsigned int jresult ; - cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; + AddressUxOuts_Handle arg1 ; + cipher_SHA256s *arg2 = (cipher_SHA256s *) 0 ; + AddressUxOuts_Handle *argp1 ; GoUint32 result; - arg1 = (cipher_SHA256 *)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)CSharp_skycoin_SKY_cipher_SHA256_Hex(arg1,arg2); + argp1 = (AddressUxOuts_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher_SHA256s *)jarg2; + result = (GoUint32)CSharp_skycoin_SKY_coin_AddressUxOuts_Keys(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256FromHex__SWIG_0(char* jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Hashes__SWIG_0(void * jarg1, void * jarg2) { unsigned int jresult ; - GoString arg1 ; - cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; + Transactions__Handle arg1 ; + cipher_SHA256s *arg2 = (cipher_SHA256s *) 0 ; + Transactions__Handle *argp1 ; GoUint32 result; - (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); - arg2 = (cipher_SHA256 *)jarg2; - result = (GoUint32)CSharp_skycoin_SKY_cipher_SHA256FromHex(arg1,arg2); + argp1 = (Transactions__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher_SHA256s *)jarg2; + result = (GoUint32)CSharp_skycoin_SKY_coin_Transactions_Hashes(arg1,arg2); jresult = result; return jresult; } @@ -4251,7 +5188,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Bytes(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_CreateUnspents(void * jarg1, void * jarg2, GoSlice_ * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_CreateUnspents__SWIG_1(void * jarg1, void * jarg2, GoSlice_ * jarg3) { unsigned int jresult ; coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; Transaction__Handle arg2 ; @@ -5695,7 +6632,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_Neg(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_SetXO(void * jarg1, void * jarg2, unsigned char jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_SetXO(void * jarg1, void * jarg2, char jarg3) { unsigned int jresult ; secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; @@ -6199,7 +7136,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_AddEntry(vo } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_DistributeSpendHours(unsigned long long jarg1, unsigned long long jarg2, unsigned char jarg3, void * jarg4, GoSlice_ * jarg5, void * jarg6) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_DistributeSpendHours(unsigned long long jarg1, unsigned long long jarg2, char jarg3, void * jarg4, GoSlice_ * jarg5, void * jarg6) { unsigned int jresult ; GoUint64 arg1 ; GoUint64 arg2 ; @@ -6507,7 +7444,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableWallet_Era } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_DecompressPoint(void * jarg1, unsigned char jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_DecompressPoint(void * jarg1, char jarg2, void * jarg3) { unsigned int jresult ; GoSlice arg1 ; GoUint8 arg2 ; @@ -7375,7 +8312,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Less(G } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Swap(GoSlice_ * jarg1, long long jarg2, long long jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Swap__SWIG_1(GoSlice_ * jarg1, long long jarg2, long long jarg3) { unsigned int jresult ; coin__UxArray *arg1 = (coin__UxArray *) 0 ; GoInt arg2 ; @@ -7741,7 +8678,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DeterministicKeyPa } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairs(void * jarg1, long long jarg2, GoSlice_ * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairs__SWIG_1(void * jarg1, long long jarg2, GoSlice_ * jarg3) { unsigned int jresult ; GoSlice arg1 ; GoInt arg2 ; @@ -7763,7 +8700,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterminis } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairsSeed(void * jarg1, long long jarg2, GoSlice_ * jarg3, GoSlice_ * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairsSeed__SWIG_1(void * jarg1, long long jarg2, GoSlice_ * jarg3, GoSlice_ * jarg4) { unsigned int jresult ; GoSlice arg1 ; GoInt arg2 ; @@ -8433,7 +9370,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Entry_VerifyPublic } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateAddresses(char* jarg1, char* jarg2, long long jarg3, unsigned char jarg4, void * jarg5) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateAddresses(char* jarg1, char* jarg2, long long jarg3, char jarg4, void * jarg5) { unsigned int jresult ; GoString arg1 ; GoString arg2 ; @@ -8841,8 +9778,8 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_map_Get(void * jarg1, cha } -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_skycoin_SKY_map_HasKey(void * jarg1, char* jarg2) { - unsigned char jresult ; +SWIGEXPORT char SWIGSTDCALL CSharp_skycoin_SKY_map_HasKey(void * jarg1, char* jarg2) { + char jresult ; GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; GoString arg2 ; GoUint8 result; @@ -9893,7 +10830,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_CoinHours(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Hashes(GoSlice_ * jarg1, GoSlice_ * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Hashes__SWIG_1(GoSlice_ * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; coin__UxArray *arg1 = (coin__UxArray *) 0 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -9907,7 +10844,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Hashes(GoSli } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_HasDupes(GoSlice_ * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_HasDupes__SWIG_1(GoSlice_ * jarg1, void * jarg2) { unsigned int jresult ; coin__UxArray *arg1 = (coin__UxArray *) 0 ; GoUint8 *arg2 = (GoUint8 *) 0 ; @@ -9947,7 +10884,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Len(GoSlice_ } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Less(GoSlice_ * jarg1, long long jarg2, long long jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Less__SWIG_1(GoSlice_ * jarg1, long long jarg2, long long jarg3, void * jarg4) { unsigned int jresult ; coin__UxArray *arg1 = (coin__UxArray *) 0 ; GoInt arg2 ; @@ -9965,7 +10902,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Less(GoSlice } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Swap(GoSlice_ * jarg1, long long jarg2, long long jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Swap__SWIG_1(GoSlice_ * jarg1, long long jarg2, long long jarg3) { unsigned int jresult ; coin__UxArray *arg1 = (coin__UxArray *) 0 ; GoInt arg2 ; @@ -9981,7 +10918,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Swap(GoSlice } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Coins(GoSlice_ * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Coins__SWIG_1(GoSlice_ * jarg1, void * jarg2) { unsigned int jresult ; coin__UxArray *arg1 = (coin__UxArray *) 0 ; GoUint64 *arg2 = (GoUint64 *) 0 ; @@ -9995,7 +10932,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Coins(GoSlic } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_CoinHours(GoSlice_ * jarg1, unsigned long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_CoinHours__SWIG_1(GoSlice_ * jarg1, unsigned long long jarg2, void * jarg3) { unsigned int jresult ; coin__UxArray *arg1 = (coin__UxArray *) 0 ; GoUint64 arg2 ; @@ -10011,7 +10948,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_CoinHours(Go } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Sub(GoSlice_ * jarg1, GoSlice_ * jarg2, GoSlice_ * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Sub__SWIG_1(GoSlice_ * jarg1, GoSlice_ * jarg2, GoSlice_ * jarg3) { unsigned int jresult ; coin__UxArray *arg1 = (coin__UxArray *) 0 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -10027,7 +10964,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Sub(GoSlice_ } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Add(GoSlice_ * jarg1, GoSlice_ * jarg2, GoSlice_ * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Add__SWIG_1(GoSlice_ * jarg1, GoSlice_ * jarg2, GoSlice_ * jarg3) { unsigned int jresult ; coin__UxArray *arg1 = (coin__UxArray *) 0 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -10043,7 +10980,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Add(GoSlice_ } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewAddressUxOuts(GoSlice_ * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewAddressUxOuts__SWIG_1(GoSlice_ * jarg1, void * jarg2) { unsigned int jresult ; coin__UxArray *arg1 = (coin__UxArray *) 0 ; AddressUxOuts_Handle *arg2 = (AddressUxOuts_Handle *) 0 ; @@ -10057,7 +10994,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewAddressUxOuts(GoS } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Keys(void * jarg1, GoSlice_ * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Keys__SWIG_1(void * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; AddressUxOuts_Handle arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -10077,7 +11014,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Keys(v } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Flatten(void * jarg1, GoSlice_ * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Flatten__SWIG_1(void * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; AddressUxOuts_Handle arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -10153,7 +11090,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Add(vo } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Get(void * jarg1, void * jarg2, GoSlice_ * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Get__SWIG_1(void * jarg1, void * jarg2, GoSlice_ * jarg3) { unsigned int jresult ; AddressUxOuts_Handle arg1 ; cipher__Address *arg2 = (cipher__Address *) 0 ; @@ -10239,7 +11176,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Length } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Set(void * jarg1, void * jarg2, GoSlice_ * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Set__SWIG_1(void * jarg1, void * jarg2, GoSlice_ * jarg3) { unsigned int jresult ; AddressUxOuts_Handle arg1 ; cipher__Address *arg2 = (cipher__Address *) 0 ; @@ -10321,7 +11258,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_ScryptChacha20pol } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateOptionsHandle(char* jarg1, char* jarg2, char* jarg3, unsigned char jarg4, char* jarg5, char* jarg6, unsigned long long jarg7, void * jarg8) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateOptionsHandle(char* jarg1, char* jarg2, char* jarg3, char jarg4, char* jarg5, char* jarg6, unsigned long long jarg7, void * jarg8) { unsigned int jresult ; GoString arg1 ; GoString arg2 ; @@ -11943,7 +12880,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetInput } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetInputAt(void * jarg1, long long jarg2, cipher_SecKey* jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetInputAt__SWIG_1(void * jarg1, long long jarg2, cipher_SecKey* jarg3) { unsigned int jresult ; Transaction__Handle arg1 ; GoInt arg2 ; @@ -12193,7 +13130,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Verify(v } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_VerifyInput(void * jarg1, GoSlice_ * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_VerifyInput__SWIG_1(void * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; Transaction__Handle arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -12213,7 +13150,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_VerifyIn } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_PushInput(void * jarg1, cipher_SecKey* jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_PushInput__SWIG_1(void * jarg1, cipher_SecKey* jarg2, void * jarg3) { unsigned int jresult ; Transaction__Handle arg1 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; @@ -12275,7 +13212,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_PushOutp } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SignInputs(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SignInputs__SWIG_1(void * jarg1, void * jarg2) { unsigned int jresult ; Transaction__Handle arg1 ; GoSlice arg2 ; @@ -12421,7 +13358,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_UpdateHe } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_HashInner(void * jarg1, cipher_SecKey* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_HashInner__SWIG_1(void * jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; Transaction__Handle arg1 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; @@ -12623,7 +13560,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_GetAt(v } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Hashes(void * jarg1, GoSlice_ * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Hashes__SWIG_1(void * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; Transactions__Handle arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -12813,7 +13750,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortableTransactions } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_VerifyTransactionCoinsSpending(GoSlice_ * jarg1, GoSlice_ * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_VerifyTransactionCoinsSpending__SWIG_1(GoSlice_ * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; coin__UxArray *arg1 = (coin__UxArray *) 0 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -12827,7 +13764,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_VerifyTransactionCoi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_VerifyTransactionHoursSpending(unsigned long long jarg1, GoSlice_ * jarg2, GoSlice_ * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_VerifyTransactionHoursSpending__SWIG_1(unsigned long long jarg1, GoSlice_ * jarg2, GoSlice_ * jarg3) { unsigned int jresult ; GoUint64 arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; @@ -12879,34 +13816,24 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher__Address_setVersion(void * jar } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher__Address_Version(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher__Address_Version(void * jarg1, char jarg2) { cipher__Address *arg1 = (cipher__Address *) 0 ; GoUint8_ arg2 ; - GoUint8_ *argp2 ; arg1 = (cipher__Address *)jarg1; - argp2 = (GoUint8_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint8_", 0); - return ; - } - arg2 = *argp2; + arg2 = (GoUint8_)jarg2; if (arg1) (arg1)->Version = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_cipher__Address_Version(void * jarg1) { - void * jresult ; +SWIGEXPORT char SWIGSTDCALL CSharp_skycoin_get_cipher__Address_Version(void * jarg1) { + char jresult ; cipher__Address *arg1 = (cipher__Address *) 0 ; GoUint8_ result; arg1 = (cipher__Address *)jarg1; result = ((arg1)->Version); - { - GoUint8_ * resultptr = (GoUint8_ *) malloc(sizeof(GoUint8_)); - memmove(resultptr, &result, sizeof(GoUint8_)); - jresult = resultptr; - } + jresult = result; return jresult; } @@ -13475,6 +14402,26 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__Transaction_isEqual(void * jarg1 } +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__Transaction_setInnerHash(void * jarg1, void * jarg2) { + int jresult ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + cipher_SHA256 arg2 ; + cipher_SHA256 *argp2 ; + int result; + + arg1 = (coin__Transaction *)jarg1; + argp2 = (cipher_SHA256 *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null cipher_SHA256", 0); + return 0; + } + arg2 = *argp2; + result = (int)coin__Transaction_setInnerHash(arg1,arg2); + jresult = result; + return jresult; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__Transaction_Length(void * jarg1, void * jarg2) { coin__Transaction *arg1 = (coin__Transaction *) 0 ; GoInt32_ arg2 ; diff --git a/LibskycoinNetTest/LibskycoinNetTest.csproj b/LibskycoinNetTest/LibskycoinNetTest.csproj index 2be29c8d..09ad6662 100644 --- a/LibskycoinNetTest/LibskycoinNetTest.csproj +++ b/LibskycoinNetTest/LibskycoinNetTest.csproj @@ -35,11 +35,12 @@ - - - - - + + + + + + diff --git a/LibskycoinNetTest/check_coin_transactions.cs b/LibskycoinNetTest/check_coin_transactions.cs new file mode 100644 index 00000000..0a0481ab --- /dev/null +++ b/LibskycoinNetTest/check_coin_transactions.cs @@ -0,0 +1,89 @@ +using System; +using NUnit.Framework; +using skycoin; +using utils; +namespace LibskycoinNetTest { + [TestFixture ()] + public class check_coin_transactions { + + utils.transutils transutils = new utils.transutils (); + [Test] + public void TestTransactionVerify () { + + // Mismatch header hash + var tx = skycoin.skycoin.new_Transaction__Handlep (); + var ptx = skycoin.skycoin.makeTransaction (tx); + ptx.setInnerHash (new cipher_SHA256 ()); + var err = skycoin.skycoin.SKY_coin_Transaction_Verify (tx); + Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + + // No inputs + tx = skycoin.skycoin.new_Transaction__Handlep (); + skycoin.skycoin.makeTransaction (tx); + err = skycoin.skycoin.SKY_coin_Transaction_ResetInputs (tx, 0); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_UpdateHeader (tx); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_Verify (tx); + Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + + // No outputs + skycoin.skycoin.makeTransaction (tx); + err = skycoin.skycoin.SKY_coin_Transaction_ResetOutputs (tx, 0); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK, ""); + err = skycoin.skycoin.SKY_coin_Transaction_UpdateHeader (tx); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_Verify (tx); + Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + + // Invalid number of Sigs + skycoin.skycoin.makeTransaction (tx); + err = skycoin.skycoin.SKY_coin_Transaction_ResetSignatures (tx, 0); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_UpdateHeader (tx); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_Verify (tx); + Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + err = skycoin.skycoin.SKY_coin_Transaction_ResetSignatures (tx, 20); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_UpdateHeader (tx); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_Verify (tx); + Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + + // Too many sigs & inputs + skycoin.skycoin.makeTransaction (tx); + err = skycoin.skycoin.SKY_coin_Transaction_ResetSignatures (tx, short.MaxValue); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_ResetInputs (tx, short.MaxValue); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_UpdateHeader (tx); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_Verify (tx); + Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + + // Duplicate inputs + var ux = new coin__UxOut (); + var s = new cipher_SecKey (); + var h = new cipher_SHA256 (); + + skycoin.skycoin.makeUxOutWithSecret (ux, s); + skycoin.skycoin.makeTransactionFromUxOut (ux, s, tx); + err = skycoin.skycoin.SKY_coin_Transaction_GetInputAt (tx, 0, h); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var p1 = skycoin.skycoin.new_GoUint16p (); + err = skycoin.skycoin.SKY_coin_Transaction_PushInput (tx, h, p1); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_ResetSignatures (tx, 0); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var secKeys = new cipher_SecKeys (); + secKeys.allocate (2); + secKeys.setAt (0, s); + secKeys.setAt (1, s); + err = skycoin.skycoin.SKY_coin_Transaction_SignInputs (tx, secKeys); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + + + } + } +} \ No newline at end of file diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index 2138d0c7..71d82be5 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit 2138d0c7c3a5e83120101230fc93338262b30a35 +Subproject commit 71d82be5c9f75e974d478f2f6e17433f839e0bd8 From f615366494051db8b64e762d853bcd49fd822ace Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Thu, 27 Sep 2018 15:18:24 -0400 Subject: [PATCH 37/73] [test] refs #8 Update submodule and add function coin_transactions --- .vscode/settings.json | 3 - LibskycoinNet/skycoin/skycoin.cs | 32 +++- LibskycoinNet/skycoin/skycoinPINVOKE.cs | 22 ++- LibskycoinNet/skycoin/skycoinnet_wrap.c | 97 +++++++++++- LibskycoinNetTest/check_coin_transactions.cs | 154 +++++++++++++++++++ gopath/src/github.com/skycoin/skycoin | 2 +- 6 files changed, 302 insertions(+), 8 deletions(-) delete mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 615aafb0..00000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "python.pythonPath": "/usr/bin/python3" -} \ No newline at end of file diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs index 042e1634..f1c83439 100644 --- a/LibskycoinNet/skycoin/skycoin.cs +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -191,6 +191,31 @@ public static ulong GoUint64p_value(SWIGTYPE_p_unsigned_long_long obj) { return ret; } + public static SWIGTYPE_p_long_long new_Gointp() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_Gointp(); + SWIGTYPE_p_long_long ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_long_long(cPtr, false); + return ret; + } + + public static SWIGTYPE_p_long_long copy_Gointp(long value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_Gointp(value); + SWIGTYPE_p_long_long ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_long_long(cPtr, false); + return ret; + } + + public static void delete_Gointp(SWIGTYPE_p_long_long obj) { + skycoinPINVOKE.delete_Gointp(SWIGTYPE_p_long_long.getCPtr(obj)); + } + + public static void Gointp_assign(SWIGTYPE_p_long_long obj, long value) { + skycoinPINVOKE.Gointp_assign(SWIGTYPE_p_long_long.getCPtr(obj), value); + } + + public static long Gointp_value(SWIGTYPE_p_long_long obj) { + long ret = skycoinPINVOKE.Gointp_value(SWIGTYPE_p_long_long.getCPtr(obj)); + return ret; + } + public static SWIGTYPE_p_unsigned_short new_GoUint16p() { global::System.IntPtr cPtr = skycoinPINVOKE.new_GoUint16p(); SWIGTYPE_p_unsigned_short ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_short(cPtr, false); @@ -716,6 +741,11 @@ public static uint SKY_coin_Transactions_Hashes(SWIGTYPE_p_Transactions__Handle return ret; } + public static uint SKY_coin_UxOut_Hash(coin__UxOut ux, cipher_SHA256 sha) { + uint ret = skycoinPINVOKE.SKY_coin_UxOut_Hash__SWIG_0(coin__UxOut.getCPtr(ux), cipher_SHA256.getCPtr(sha)); + return ret; + } + public static uint SKY_coin_NewBlock(SWIGTYPE_p_Block__Handle p0, ulong p1, cipher_SecKey p2, SWIGTYPE_p_Transactions__Handle p3, SWIGTYPE_p_FeeCalculator p4, SWIGTYPE_p_Block__Handle p5) { var tmpp2 = cipher_SecKey.getCPtr (p2); { @@ -2918,7 +2948,7 @@ public static uint SKY_secp256k1go_Number_IsEqual(SWIGTYPE_p_Number_Handle p0, S public static uint SKY_coin_UxOut_Hash(coin__UxOut p0, cipher_SecKey p1) { var tmpp1 = cipher_SecKey.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_coin_UxOut_Hash(coin__UxOut.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_coin_UxOut_Hash__SWIG_1(coin__UxOut.getCPtr(p0), tmpp1); return ret; } } diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index 800c0caf..8b4783df 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -293,6 +293,21 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoUint64p_value")] public static extern ulong GoUint64p_value(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_Gointp")] + public static extern global::System.IntPtr new_Gointp(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_Gointp")] + public static extern global::System.IntPtr copy_Gointp(long jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_Gointp")] + public static extern void delete_Gointp(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Gointp_assign")] + public static extern void Gointp_assign(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Gointp_value")] + public static extern long Gointp_value(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_GoUint16p")] public static extern global::System.IntPtr new_GoUint16p(); @@ -602,6 +617,9 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Hashes__SWIG_0")] public static extern uint SKY_coin_Transactions_Hashes__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxOut_Hash__SWIG_0")] + public static extern uint SKY_coin_UxOut_Hash__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKey_isEqual")] public static extern int cipher_PubKey_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1886,8 +1904,8 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_IsEqual")] public static extern uint SKY_secp256k1go_Number_IsEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxOut_Hash")] - public static extern uint SKY_coin_UxOut_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxOut_Hash__SWIG_1")] + public static extern uint SKY_coin_UxOut_Hash__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxOut_SnapshotHash")] public static extern uint SKY_coin_UxOut_SnapshotHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index 9b434d3e..0e9cdf67 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -475,6 +475,29 @@ static unsigned long long GoUint64p_value(unsigned long long *obj) { } +static long long *new_Gointp() { + return (long long *) calloc(1,sizeof(long long)); +} + +static long long *copy_Gointp(long long value) { + long long *obj = (long long *) calloc(1,sizeof(long long)); + *obj = value; + return obj; +} + +static void delete_Gointp(long long *obj) { + if (obj) free(obj); +} + +static void Gointp_assign(long long *obj, long long value) { + *obj = value; +} + +static long long Gointp_value(long long *obj) { + return *obj; +} + + static unsigned short *new_GoUint16p() { return (unsigned short *) calloc(1,sizeof(unsigned short)); } @@ -1359,6 +1382,12 @@ coin__Transaction* makeTransaction(Transaction__Handle* handle){ return result; } + + GoUint32 CSharp_skycoin_SKY_coin_UxOut_Hash(coin__UxOut* ux, cipher_SHA256* sha){ + GoUint32 result = SKY_coin_UxOut_Hash(ux, sha); + return result; + } + SWIGINTERN int cipher_PubKey_isEqual(cipher_PubKey *self,cipher_PubKey *a){ return memcmp(self->data, a->data, sizeof(a->data)) == 0; } @@ -2034,6 +2063,58 @@ SWIGEXPORT unsigned long long SWIGSTDCALL CSharp_skycoin_GoUint64p_value(void * } +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_Gointp() { + void * jresult ; + long long *result = 0 ; + + result = (long long *)new_Gointp(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_Gointp(long long jarg1) { + void * jresult ; + long long arg1 ; + long long *result = 0 ; + + arg1 = (long long)jarg1; + result = (long long *)copy_Gointp(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_Gointp(void * jarg1) { + long long *arg1 = (long long *) 0 ; + + arg1 = (long long *)jarg1; + delete_Gointp(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_Gointp_assign(void * jarg1, long long jarg2) { + long long *arg1 = (long long *) 0 ; + long long arg2 ; + + arg1 = (long long *)jarg1; + arg2 = (long long)jarg2; + Gointp_assign(arg1,arg2); +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_Gointp_value(void * jarg1) { + long long jresult ; + long long *arg1 = (long long *) 0 ; + long long result; + + arg1 = (long long *)jarg1; + result = (long long)Gointp_value(arg1); + jresult = result; + return jresult; +} + + SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_GoUint16p() { void * jresult ; unsigned short *result = 0 ; @@ -3489,6 +3570,20 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Hashes_ } +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_Hash__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; + GoUint32 result; + + arg1 = (coin__UxOut *)jarg1; + arg2 = (cipher_SHA256 *)jarg2; + result = (GoUint32)CSharp_skycoin_SKY_coin_UxOut_Hash(arg1,arg2); + jresult = result; + return jresult; +} + + SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_PubKey_isEqual(void * jarg1, void * jarg2) { int jresult ; cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; @@ -10772,7 +10867,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_IsEqua } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_Hash(void * jarg1, cipher_SecKey* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_Hash__SWIG_1(void * jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; coin__UxOut *arg1 = (coin__UxOut *) 0 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; diff --git a/LibskycoinNetTest/check_coin_transactions.cs b/LibskycoinNetTest/check_coin_transactions.cs index 0a0481ab..5a2b921c 100644 --- a/LibskycoinNetTest/check_coin_transactions.cs +++ b/LibskycoinNetTest/check_coin_transactions.cs @@ -82,8 +82,162 @@ public void TestTransactionVerify () { secKeys.setAt (1, s); err = skycoin.skycoin.SKY_coin_Transaction_SignInputs (tx, secKeys); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_UpdateHeader (tx); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_Verify (tx); + Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + + // Duplicate outputs + skycoin.skycoin.makeTransaction (tx); + var pOutput = new coin__TransactionOutput (); + err = skycoin.skycoin.SKY_coin_Transaction_GetOutputAt (tx, 0, pOutput); + pOutput.Address = new cipher__Address (); + err = skycoin.skycoin.SKY_coin_Transaction_ResetOutputs (tx, 0); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (tx, pOutput.Address, pOutput.Coins, pOutput.Hours); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (tx, pOutput.Address, pOutput.Coins, pOutput.Hours); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_UpdateHeader (tx); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_Verify (tx); + Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + + // Output coins are 0 + skycoin.skycoin.makeTransaction (tx); + err = skycoin.skycoin.SKY_coin_Transaction_GetOutputAt (tx, 0, pOutput); + pOutput.Coins = 0; + err = skycoin.skycoin.SKY_coin_Transaction_ResetOutputs (tx, 0); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (tx, pOutput.Address, pOutput.Coins, pOutput.Hours); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_UpdateHeader (tx); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_Verify (tx); + Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + + // Output coin overflow + skycoin.skycoin.makeTransaction (tx); + err = skycoin.skycoin.SKY_coin_Transaction_GetOutputAt (tx, 0, pOutput); + pOutput.Coins = (ulong) (ulong.MaxValue - 3e6); + err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (tx, pOutput.Address, pOutput.Coins, pOutput.Hours); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_UpdateHeader (tx); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_Verify (tx); + Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + + // Output coins are not multiples of 1e6 (valid, decimal restriction is not enforced here) + skycoin.skycoin.makeTransaction (tx); + err = skycoin.skycoin.SKY_coin_Transaction_GetOutputAt (tx, 0, pOutput); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_ResetOutputs (tx, 0); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + pOutput.Coins += 10; + err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (tx, pOutput.Address, pOutput.Coins, pOutput.Hours); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_UpdateHeader (tx); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_ResetSignatures (tx, 0); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var p = new cipher_PubKey (); + s = new cipher_SecKey (); + err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + secKeys = new cipher_SecKeys (); + secKeys.allocate (1); + secKeys.setAt (0, s); + err = skycoin.skycoin.SKY_coin_Transaction_SignInputs (tx, secKeys); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.IsTrue (pOutput.Coins % 1e6 != 0); + err = skycoin.skycoin.SKY_coin_Transaction_Verify (tx); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + // Valid + skycoin.skycoin.makeTransaction (tx); + err = skycoin.skycoin.SKY_coin_Transaction_GetOutputAt (tx, 0, pOutput); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_ResetOutputs (tx, 0); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (tx, pOutput.Address, (ulong) (10e6), pOutput.Hours); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (tx, pOutput.Address, (ulong) (1e6), pOutput.Hours); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_UpdateHeader (tx); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_Verify (tx); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + } + + [Test] + public void TestTransactionVerifyInput () { + // Valid + var ux = new coin__UxOut (); + var s = new cipher_SecKey (); + skycoin.skycoin.makeUxOutWithSecret (ux, s); + var tx = skycoin.skycoin.new_Transaction__Handlep (); + skycoin.skycoin.makeTransactionFromUxOut (ux, s, tx); + var seckeys = new coin_UxOutArray (); + seckeys.allocate (1); + seckeys.setAt (0, ux); + var err = skycoin.skycoin.SKY_coin_Transaction_VerifyInput (tx, seckeys); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + } + + [Test] + public void TestTransactionPushInput () { + var tx = skycoin.skycoin.new_Transaction__Handlep (); + skycoin.skycoin.makeEmptyTransaction (tx); + var ux = new coin__UxOut (); + skycoin.skycoin.makeUxOut (ux); + var sha = new cipher_SHA256 (); + var err = skycoin.skycoin.SKY_coin_UxOut_Hash (ux, sha); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var r = skycoin.skycoin.new_GoUint16p (); + err = skycoin.skycoin.SKY_coin_Transaction_PushInput (tx, sha, r); + Assert.AreEqual (skycoin.skycoin.GoUint16p_value (r), 0); + var count = skycoin.skycoin.new_Gointp (); + err = skycoin.skycoin.SKY_coin_Transaction_GetInputsCount (tx, count); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.Gointp_value (count), 1); + var sha1 = new cipher_SHA256 (); + err = skycoin.skycoin.SKY_coin_Transaction_GetInputAt (tx, 0, sha1); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (sha.isEqual (sha1), 1); + err = skycoin.skycoin.SKY_coin_Transaction_ResetInputs (tx, 0); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + for (int i = 0; i < short.MaxValue; i++) { + r = skycoin.skycoin.new_GoUint16p (); + err = skycoin.skycoin.SKY_coin_Transaction_PushInput (tx, new cipher_SHA256 (), r); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + } + skycoin.skycoin.makeUxOut (ux); + err = skycoin.skycoin.SKY_coin_UxOut_Hash (ux, sha); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + } + + [Test] + public void TestTransactionPushOutput () { + var tx = skycoin.skycoin.new_Transaction__Handlep (); + transutils.makeEmptyTransaction (tx); + var a = new cipher__Address (); + transutils.makeAddress (a); + var err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (tx, a, 100, 150); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var count = skycoin.skycoin.new_Gointp (); + err = skycoin.skycoin.SKY_coin_Transaction_GetOutputsCount (tx, count); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.Gointp_value (count), 1); + var pOut1 = new coin__TransactionOutput (); + var pOut = new coin__TransactionOutput (); + pOut1.Address = a; + pOut1.Coins = 100; + pOut1.Hours = 150; + err =skycoin.skycoin.SKY_coin_Transaction_GetOutputAt (tx, 0, pOut); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + + } } } \ No newline at end of file diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index 71d82be5..9c88d876 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit 71d82be5c9f75e974d478f2f6e17433f839e0bd8 +Subproject commit 9c88d876fde3db0031692959bcee6cdf47cf61b1 From 88d487729b3ccc742504e70511f3b381264ea870 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Thu, 27 Sep 2018 22:17:15 -0400 Subject: [PATCH 38/73] [libdotnet][test] refs #8 Added test coin_transaction --- LibskycoinNet/skycoin/cipher_PubKey.cs | 8 +- LibskycoinNet/skycoin/cipher_SHA256.cs | 8 +- LibskycoinNet/skycoin/coin__Transaction.cs | 5 + LibskycoinNet/skycoin/skycoin.cs | 56 ++--- LibskycoinNet/skycoin/skycoinPINVOKE.cs | 46 ++-- LibskycoinNet/skycoin/skycoinnet_wrap.c | 252 +++++++++++-------- LibskycoinNetTest/check_coin_transactions.cs | 228 ++++++++++++++++- LibskycoinNetTest/transutils.cs | 16 +- gopath/src/github.com/skycoin/skycoin | 2 +- 9 files changed, 440 insertions(+), 181 deletions(-) diff --git a/LibskycoinNet/skycoin/cipher_PubKey.cs b/LibskycoinNet/skycoin/cipher_PubKey.cs index 83d6b5dd..a35adacb 100644 --- a/LibskycoinNet/skycoin/cipher_PubKey.cs +++ b/LibskycoinNet/skycoin/cipher_PubKey.cs @@ -45,12 +45,12 @@ public int isEqual(cipher_PubKey a) { return ret; } - public void assignFrom(SWIGTYPE_p_void data) { - skycoinPINVOKE.cipher_PubKey_assignFrom(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); + public void assignFrom(cipher_PubKey data) { + skycoinPINVOKE.cipher_PubKey_assignFrom(swigCPtr, cipher_PubKey.getCPtr(data)); } - public void assignTo(SWIGTYPE_p_void data) { - skycoinPINVOKE.cipher_PubKey_assignTo(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); + public void assignTo(cipher_PubKey data) { + skycoinPINVOKE.cipher_PubKey_assignTo(swigCPtr, cipher_PubKey.getCPtr(data)); } public SWIGTYPE_p_unsigned_char data { diff --git a/LibskycoinNet/skycoin/cipher_SHA256.cs b/LibskycoinNet/skycoin/cipher_SHA256.cs index b6be7c0b..6e7de086 100644 --- a/LibskycoinNet/skycoin/cipher_SHA256.cs +++ b/LibskycoinNet/skycoin/cipher_SHA256.cs @@ -45,12 +45,12 @@ public int isEqual(cipher_SHA256 a) { return ret; } - public void assignFrom(SWIGTYPE_p_void data) { - skycoinPINVOKE.cipher_SHA256_assignFrom(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); + public void assignFrom(cipher_SHA256 data) { + skycoinPINVOKE.cipher_SHA256_assignFrom(swigCPtr, cipher_SHA256.getCPtr(data)); } - public void assignTo(SWIGTYPE_p_void data) { - skycoinPINVOKE.cipher_SHA256_assignTo(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); + public void assignTo(cipher_SHA256 data) { + skycoinPINVOKE.cipher_SHA256_assignTo(swigCPtr, cipher_SHA256.getCPtr(data)); } public _GoString_ getStr() { diff --git a/LibskycoinNet/skycoin/coin__Transaction.cs b/LibskycoinNet/skycoin/coin__Transaction.cs index b7c70210..d702cff0 100644 --- a/LibskycoinNet/skycoin/coin__Transaction.cs +++ b/LibskycoinNet/skycoin/coin__Transaction.cs @@ -45,6 +45,11 @@ public int isEqual(coin__Transaction t) { return ret; } + public cipher_SHA256 getInnerHash() { + cipher_SHA256 ret = new cipher_SHA256(skycoinPINVOKE.coin__Transaction_getInnerHash(swigCPtr), true); + return ret; + } + public int setInnerHash(cipher_SHA256 h) { int ret = skycoinPINVOKE.coin__Transaction_setInnerHash(swigCPtr, cipher_SHA256.getCPtr(h)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs index f1c83439..2bb66d46 100644 --- a/LibskycoinNet/skycoin/skycoin.cs +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -141,31 +141,6 @@ public static SWIGTYPE_p_Transaction__Handle Transaction__Handlep_value(SWIGTYPE return ret; } - public static SWIGTYPE_p_Handle new_Handlep() { - global::System.IntPtr cPtr = skycoinPINVOKE.new_Handlep(); - SWIGTYPE_p_Handle ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Handle(cPtr, false); - return ret; - } - - public static SWIGTYPE_p_Handle copy_Handlep(SWIGTYPE_p_Handle value) { - global::System.IntPtr cPtr = skycoinPINVOKE.copy_Handlep(SWIGTYPE_p_Handle.getCPtr(value)); - SWIGTYPE_p_Handle ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Handle(cPtr, false); - return ret; - } - - public static void delete_Handlep(SWIGTYPE_p_Handle obj) { - skycoinPINVOKE.delete_Handlep(SWIGTYPE_p_Handle.getCPtr(obj)); - } - - public static void Handlep_assign(SWIGTYPE_p_Handle obj, SWIGTYPE_p_Handle value) { - skycoinPINVOKE.Handlep_assign(SWIGTYPE_p_Handle.getCPtr(obj), SWIGTYPE_p_Handle.getCPtr(value)); - } - - public static SWIGTYPE_p_Handle Handlep_value(SWIGTYPE_p_Handle obj) { - SWIGTYPE_p_Handle ret = new SWIGTYPE_p_Handle(skycoinPINVOKE.Handlep_value(SWIGTYPE_p_Handle.getCPtr(obj)), true); - return ret; - } - public static SWIGTYPE_p_unsigned_long_long new_GoUint64p() { global::System.IntPtr cPtr = skycoinPINVOKE.new_GoUint64p(); SWIGTYPE_p_unsigned_long_long ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_long_long(cPtr, false); @@ -609,6 +584,18 @@ public static uint SKY_coin_Transaction_HashInner(SWIGTYPE_p_Transaction__Handle return ret; } + public static uint SKY_coin_Transaction_Hash(SWIGTYPE_p_Transaction__Handle tx, cipher_SHA256 h) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_Hash__SWIG_0(SWIGTYPE_p_Transaction__Handle.getCPtr(tx), cipher_SHA256.getCPtr(h)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Transaction_SetInputAt(SWIGTYPE_p_Transaction__Handle tx, long p1, cipher_SHA256 h) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetInputAt__SWIG_0(SWIGTYPE_p_Transaction__Handle.getCPtr(tx), p1, cipher_SHA256.getCPtr(h)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + public static uint SKY_coin_Transaction_GetInputAt(SWIGTYPE_p_Transaction__Handle tx, long p1, cipher_SHA256 h) { uint ret = skycoinPINVOKE.SKY_coin_Transaction_GetInputAt__SWIG_0(SWIGTYPE_p_Transaction__Handle.getCPtr(tx), p1, cipher_SHA256.getCPtr(h)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); @@ -746,6 +733,17 @@ public static uint SKY_coin_UxOut_Hash(coin__UxOut ux, cipher_SHA256 sha) { return ret; } + public static uint SKY_cipher_AddSHA256(cipher_SHA256 p0, cipher_SHA256 p1, cipher_SHA256 p2) { + uint ret = skycoinPINVOKE.SKY_cipher_AddSHA256__SWIG_0(cipher_SHA256.getCPtr(p0), cipher_SHA256.getCPtr(p1), cipher_SHA256.getCPtr(p2)); + return ret; + } + + public static uint SKY_coin_GetTransactionObject(SWIGTYPE_p_Transaction__Handle tx, coin__Transaction p1) { + uint ret = skycoinPINVOKE.SKY_coin_GetTransactionObject__SWIG_0(SWIGTYPE_p_Transaction__Handle.getCPtr(tx), coin__Transaction.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + public static uint SKY_coin_NewBlock(SWIGTYPE_p_Block__Handle p0, ulong p1, cipher_SecKey p2, SWIGTYPE_p_Transactions__Handle p3, SWIGTYPE_p_FeeCalculator p4, SWIGTYPE_p_Block__Handle p5) { var tmpp2 = cipher_SecKey.getCPtr (p2); { @@ -3612,7 +3610,7 @@ public static uint SKY_cipher_AddSHA256(cipher_SecKey p0, cipher_SecKey p1, ciph var tmpp1 = cipher_SecKey.getCPtr (p1); var tmpp2 = cipher_SecKey.getCPtr (p2); { - uint ret = skycoinPINVOKE.SKY_cipher_AddSHA256(tmpp0, tmpp1, tmpp2); + uint ret = skycoinPINVOKE.SKY_cipher_AddSHA256__SWIG_1(tmpp0, tmpp1, tmpp2); return ret; } } @@ -3645,7 +3643,7 @@ public static uint SKY_coin_Transaction_Copy(SWIGTYPE_p_Transaction__Handle p0, } public static uint SKY_coin_GetTransactionObject(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_p_coin__Transaction p1) { - uint ret = skycoinPINVOKE.SKY_coin_GetTransactionObject(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_p_coin__Transaction.getCPtr(p1)); + uint ret = skycoinPINVOKE.SKY_coin_GetTransactionObject__SWIG_1(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_p_coin__Transaction.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -3674,7 +3672,7 @@ public static uint SKY_coin_Transaction_GetInputAt(SWIGTYPE_p_Transaction__Handl public static uint SKY_coin_Transaction_SetInputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, cipher_SecKey p2) { var tmpp2 = cipher_SecKey.getCPtr (p2); { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetInputAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, tmpp2); + uint ret = skycoinPINVOKE.SKY_coin_Transaction_SetInputAt__SWIG_1(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, tmpp2); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -3794,7 +3792,7 @@ public static uint SKY_coin_Transaction_Size(SWIGTYPE_p_Transaction__Handle p0, public static uint SKY_coin_Transaction_Hash(SWIGTYPE_p_Transaction__Handle p0, cipher_SecKey p1) { var tmpp1 = cipher_SecKey.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_Hash(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_coin_Transaction_Hash__SWIG_1(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), tmpp1); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index 8b4783df..4ffe30e0 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -263,21 +263,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Transaction__Handlep_value")] public static extern global::System.IntPtr Transaction__Handlep_value(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_Handlep")] - public static extern global::System.IntPtr new_Handlep(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_Handlep")] - public static extern global::System.IntPtr copy_Handlep(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_Handlep")] - public static extern void delete_Handlep(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Handlep_assign")] - public static extern void Handlep_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Handlep_value")] - public static extern global::System.IntPtr Handlep_value(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_GoUint64p")] public static extern global::System.IntPtr new_GoUint64p(); @@ -545,6 +530,12 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_HashInner__SWIG_0")] public static extern uint SKY_coin_Transaction_HashInner__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Hash__SWIG_0")] + public static extern uint SKY_coin_Transaction_Hash__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SetInputAt__SWIG_0")] + public static extern uint SKY_coin_Transaction_SetInputAt__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetInputAt__SWIG_0")] public static extern uint SKY_coin_Transaction_GetInputAt__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -620,6 +611,12 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxOut_Hash__SWIG_0")] public static extern uint SKY_coin_UxOut_Hash__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddSHA256__SWIG_0")] + public static extern uint SKY_cipher_AddSHA256__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetTransactionObject__SWIG_0")] + public static extern uint SKY_coin_GetTransactionObject__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKey_isEqual")] public static extern int cipher_PubKey_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -2207,8 +2204,8 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_DoubleSHA256")] public static extern uint SKY_cipher_DoubleSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddSHA256")] - public static extern uint SKY_cipher_AddSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddSHA256__SWIG_1")] + public static extern uint SKY_cipher_AddSHA256__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Merkle")] public static extern uint SKY_cipher_Merkle(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -2222,8 +2219,8 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Copy")] public static extern uint SKY_coin_Transaction_Copy(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetTransactionObject")] - public static extern uint SKY_coin_GetTransactionObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetTransactionObject__SWIG_1")] + public static extern uint SKY_coin_GetTransactionObject__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_ResetInputs")] public static extern uint SKY_coin_Transaction_ResetInputs(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); @@ -2234,8 +2231,8 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetInputAt__SWIG_1")] public static extern uint SKY_coin_Transaction_GetInputAt__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SetInputAt")] - public static extern uint SKY_coin_Transaction_SetInputAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SetInputAt__SWIG_1")] + public static extern uint SKY_coin_Transaction_SetInputAt__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_GetOutputsCount")] public static extern uint SKY_coin_Transaction_GetOutputsCount(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -2285,8 +2282,8 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Size")] public static extern uint SKY_coin_Transaction_Size(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Hash")] - public static extern uint SKY_coin_Transaction_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_Hash__SWIG_1")] + public static extern uint SKY_coin_Transaction_Hash__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transaction_SizeHash")] public static extern uint SKY_coin_Transaction_SizeHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -2519,6 +2516,9 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_isEqual")] public static extern int coin__Transaction_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_getInnerHash")] + public static extern global::System.IntPtr coin__Transaction_getInnerHash(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_setInnerHash")] public static extern int coin__Transaction_setInnerHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index 0e9cdf67..6d592d4d 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -429,29 +429,6 @@ static Transaction__Handle Transaction__Handlep_value(Transaction__Handle *obj) } -static Handle *new_Handlep() { - return (Handle *) calloc(1,sizeof(Handle)); -} - -static Handle *copy_Handlep(Handle value) { - Handle *obj = (Handle *) calloc(1,sizeof(Handle)); - *obj = value; - return obj; -} - -static void delete_Handlep(Handle *obj) { - if (obj) free(obj); -} - -static void Handlep_assign(Handle *obj, Handle value) { - *obj = value; -} - -static Handle Handlep_value(Handle *obj) { - return *obj; -} - - static unsigned long long *new_GoUint64p() { return (unsigned long long *) calloc(1,sizeof(unsigned long long)); } @@ -1086,6 +1063,18 @@ coin__Transaction* makeTransaction(Transaction__Handle* handle){ } + GoUint32 CSharp_skycoin_SKY_coin_Transaction_Hash(Transaction__Handle tx,cipher_SHA256 *h){ + GoUint32 result = SKY_coin_Transaction_Hash(tx,h); + return result; + } + + + GoUint32 CSharp_skycoin_SKY_coin_Transaction_SetInputAt(Transaction__Handle tx,GoInt p1,cipher_SHA256 *h){ + GoUint32 result = SKY_coin_Transaction_SetInputAt(tx,p1,h); + return result; + } + + GoUint32 CSharp_skycoin_SKY_coin_Transaction_GetInputAt(Transaction__Handle tx, GoInt p1,cipher_SHA256 *h){ GoUint32 result = SKY_coin_Transaction_GetInputAt(tx,p1,h); return result; @@ -1388,14 +1377,26 @@ coin__Transaction* makeTransaction(Transaction__Handle* handle){ return result; } + + GoUint32 CSharp_skycoin_SKY_cipher_AddSHA256(cipher_SHA256* p0, cipher_SHA256* p1, cipher_SHA256* p2){ + GoUint32 result = SKY_cipher_AddSHA256(p0,p1,p2); + return result; + } + + + GoUint32 CSharp_skycoin_SKY_coin_GetTransactionObject(Transaction__Handle tx, coin__Transaction *p1){ + GoUint32 result = SKY_coin_GetTransactionObject(tx,&p1); + return result; + } + SWIGINTERN int cipher_PubKey_isEqual(cipher_PubKey *self,cipher_PubKey *a){ return memcmp(self->data, a->data, sizeof(a->data)) == 0; } -SWIGINTERN void cipher_PubKey_assignFrom(cipher_PubKey *self,void *data){ - memcpy(&self->data, data, sizeof(self->data)); +SWIGINTERN void cipher_PubKey_assignFrom(cipher_PubKey *self,cipher_PubKey *data){ + memcpy(&self->data, data->data, sizeof(self->data)); } -SWIGINTERN void cipher_PubKey_assignTo(cipher_PubKey *self,void *data){ - memcpy(data, &self->data, sizeof(self->data)); +SWIGINTERN void cipher_PubKey_assignTo(cipher_PubKey *self,cipher_PubKey *data){ + memcpy(data->data, &self->data, sizeof(self->data)); } SWIGINTERN int cipher_SecKey_isEqual(cipher_SecKey *self,cipher_SecKey *a){ return memcmp(self->data, a->data, sizeof(a->data)) == 0; @@ -1434,11 +1435,11 @@ return slice; SWIGINTERN int cipher_SHA256_isEqual(cipher_SHA256 *self,cipher_SHA256 *a){ return memcmp(self->data, a->data, sizeof(a->data)) == 0; } -SWIGINTERN void cipher_SHA256_assignFrom(cipher_SHA256 *self,void *data){ - memcpy(&self->data, data, sizeof(self->data)); +SWIGINTERN void cipher_SHA256_assignFrom(cipher_SHA256 *self,cipher_SHA256 *data){ + memcpy(&self->data, data->data, sizeof(self->data)); } -SWIGINTERN void cipher_SHA256_assignTo(cipher_SHA256 *self,void *data){ - memcpy(data, &self->data, sizeof(self->data)); +SWIGINTERN void cipher_SHA256_assignTo(cipher_SHA256 *self,cipher_SHA256 *data){ + memcpy(data->data, &self->data, sizeof(self->data)); } SWIGINTERN _GoString_ cipher_SHA256_getStr(cipher_SHA256 *self){ _GoString_ str; @@ -1594,6 +1595,11 @@ SWIGINTERN void cipher__Address_setVersion(cipher__Address *self,char pValue){ SWIGINTERN int coin__Transaction_isEqual(coin__Transaction *self,coin__Transaction *t){ return equalTransactions(self, t); } +SWIGINTERN cipher_SHA256 coin__Transaction_getInnerHash(coin__Transaction *self){ + cipher_SHA256 h; + cipher_SHA256_assignFrom(&h,self->InnerHash); + return h; + } SWIGINTERN int coin__Transaction_setInnerHash(coin__Transaction *self,cipher_SHA256 h){ memset(self->InnerHash, 0, sizeof(cipher__SHA256)); cipher_SHA256_assignFrom(self->InnerHash,&h); @@ -1945,72 +1951,6 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_Transaction__Handlep_value(void * j } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_Handlep() { - void * jresult ; - Handle *result = 0 ; - - result = (Handle *)new_Handlep(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_Handlep(void * jarg1) { - void * jresult ; - Handle arg1 ; - Handle *result = 0 ; - - { - jarg1 = (long*)&arg1; - } - result = (Handle *)copy_Handlep(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_Handlep(void * jarg1) { - Handle *arg1 = (Handle *) 0 ; - - { - jarg1 = (long*)&arg1; - } - delete_Handlep(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_Handlep_assign(void * jarg1, void * jarg2) { - Handle *arg1 = (Handle *) 0 ; - Handle arg2 ; - - { - jarg1 = (long*)&arg1; - } - { - jarg2 = (long*)&arg2; - } - Handlep_assign(arg1,arg2); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_Handlep_value(void * jarg1) { - void * jresult ; - Handle *arg1 = (Handle *) 0 ; - Handle result; - - { - jarg1 = (long*)&arg1; - } - result = Handlep_value(arg1); - { - Handle * resultptr = (Handle *) malloc(sizeof(Handle)); - memmove(resultptr, &result, sizeof(Handle)); - jresult = resultptr; - } - return jresult; -} - - SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_GoUint64p() { void * jresult ; unsigned long long *result = 0 ; @@ -3127,6 +3067,48 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_HashInne } +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Hash__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; + Transaction__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher_SHA256 *)jarg2; + result = (GoUint32)CSharp_skycoin_SKY_coin_Transaction_Hash(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SetInputAt__SWIG_0(void * jarg1, long long jarg2, void * jarg3) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoInt arg2 ; + cipher_SHA256 *arg3 = (cipher_SHA256 *) 0 ; + Transaction__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt)jarg2; + arg3 = (cipher_SHA256 *)jarg3; + result = (GoUint32)CSharp_skycoin_SKY_coin_Transaction_SetInputAt(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetInputAt__SWIG_0(void * jarg1, long long jarg2, void * jarg3) { unsigned int jresult ; Transaction__Handle arg1 ; @@ -3584,6 +3566,42 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_Hash__SWIG_0(v } +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddSHA256__SWIG_0(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; + cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; + cipher_SHA256 *arg3 = (cipher_SHA256 *) 0 ; + GoUint32 result; + + arg1 = (cipher_SHA256 *)jarg1; + arg2 = (cipher_SHA256 *)jarg2; + arg3 = (cipher_SHA256 *)jarg3; + result = (GoUint32)CSharp_skycoin_SKY_cipher_AddSHA256(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetTransactionObject__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + Transaction__Handle arg1 ; + coin__Transaction *arg2 = (coin__Transaction *) 0 ; + Transaction__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__Transaction *)jarg2; + result = (GoUint32)CSharp_skycoin_SKY_coin_GetTransactionObject(arg1,arg2); + jresult = result; + return jresult; +} + + SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_PubKey_isEqual(void * jarg1, void * jarg2) { int jresult ; cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; @@ -3600,20 +3618,20 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_PubKey_isEqual(void * jarg1, vo SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKey_assignFrom(void * jarg1, void * jarg2) { cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; - void *arg2 = (void *) 0 ; + cipher_PubKey *arg2 = (cipher_PubKey *) 0 ; arg1 = (cipher_PubKey *)jarg1; - arg2 = (void *)jarg2; + arg2 = (cipher_PubKey *)jarg2; cipher_PubKey_assignFrom(arg1,arg2); } SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKey_assignTo(void * jarg1, void * jarg2) { cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; - void *arg2 = (void *) 0 ; + cipher_PubKey *arg2 = (cipher_PubKey *) 0 ; arg1 = (cipher_PubKey *)jarg1; - arg2 = (void *)jarg2; + arg2 = (cipher_PubKey *)jarg2; cipher_PubKey_assignTo(arg1,arg2); } @@ -3928,20 +3946,20 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_SHA256_isEqual(void * jarg1, vo SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SHA256_assignFrom(void * jarg1, void * jarg2) { cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; - void *arg2 = (void *) 0 ; + cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; arg1 = (cipher_SHA256 *)jarg1; - arg2 = (void *)jarg2; + arg2 = (cipher_SHA256 *)jarg2; cipher_SHA256_assignFrom(arg1,arg2); } SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SHA256_assignTo(void * jarg1, void * jarg2) { cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; - void *arg2 = (void *) 0 ; + cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; arg1 = (cipher_SHA256 *)jarg1; - arg2 = (void *)jarg2; + arg2 = (cipher_SHA256 *)jarg2; cipher_SHA256_assignTo(arg1,arg2); } @@ -12839,7 +12857,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DoubleSHA256(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddSHA256(cipher_SecKey* jarg1, cipher_SecKey* jarg2, cipher_SecKey* jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddSHA256__SWIG_1(cipher_SecKey* jarg1, cipher_SecKey* jarg2, cipher_SecKey* jarg3) { unsigned int jresult ; cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; @@ -12915,7 +12933,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Copy(voi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetTransactionObject(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetTransactionObject__SWIG_1(void * jarg1, void * jarg2) { unsigned int jresult ; Transaction__Handle arg1 ; coin__Transaction **arg2 = (coin__Transaction **) 0 ; @@ -12997,7 +13015,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_GetInput } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SetInputAt(void * jarg1, long long jarg2, cipher_SecKey* jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SetInputAt__SWIG_1(void * jarg1, long long jarg2, cipher_SecKey* jarg3) { unsigned int jresult ; Transaction__Handle arg1 ; GoInt arg2 ; @@ -13353,7 +13371,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Size(voi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Hash(void * jarg1, cipher_SecKey* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Hash__SWIG_1(void * jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; Transaction__Handle arg1 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; @@ -14497,6 +14515,22 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__Transaction_isEqual(void * jarg1 } +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Transaction_getInnerHash(void * jarg1) { + void * jresult ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + cipher_SHA256 result; + + arg1 = (coin__Transaction *)jarg1; + result = coin__Transaction_getInnerHash(arg1); + { + cipher_SHA256 * resultptr = (cipher_SHA256 *) malloc(sizeof(cipher_SHA256)); + memmove(resultptr, &result, sizeof(cipher_SHA256)); + jresult = resultptr; + } + return jresult; +} + + SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__Transaction_setInnerHash(void * jarg1, void * jarg2) { int jresult ; coin__Transaction *arg1 = (coin__Transaction *) 0 ; diff --git a/LibskycoinNetTest/check_coin_transactions.cs b/LibskycoinNetTest/check_coin_transactions.cs index 5a2b921c..1b8b899d 100644 --- a/LibskycoinNetTest/check_coin_transactions.cs +++ b/LibskycoinNetTest/check_coin_transactions.cs @@ -11,7 +11,7 @@ public class check_coin_transactions { public void TestTransactionVerify () { // Mismatch header hash - var tx = skycoin.skycoin.new_Transaction__Handlep (); + var tx = transutils.makeEmptyTransaction (); var ptx = skycoin.skycoin.makeTransaction (tx); ptx.setInnerHash (new cipher_SHA256 ()); var err = skycoin.skycoin.SKY_coin_Transaction_Verify (tx); @@ -217,10 +217,8 @@ public void TestTransactionPushInput () { [Test] public void TestTransactionPushOutput () { - var tx = skycoin.skycoin.new_Transaction__Handlep (); - transutils.makeEmptyTransaction (tx); - var a = new cipher__Address (); - transutils.makeAddress (a); + var tx = transutils.makeEmptyTransaction (); + var a = transutils.makeAddress (); var err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (tx, a, 100, 150); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); var count = skycoin.skycoin.new_Gointp (); @@ -232,12 +230,228 @@ public void TestTransactionPushOutput () { pOut1.Address = a; pOut1.Coins = 100; pOut1.Hours = 150; - err =skycoin.skycoin.SKY_coin_Transaction_GetOutputAt (tx, 0, pOut); + err = skycoin.skycoin.SKY_coin_Transaction_GetOutputAt (tx, 0, pOut); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - + Assert.AreEqual (pOut.isEqual (pOut1), 1); + for (int i = 1; i < 20; i++) { + a = transutils.makeAddress (); + err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (tx, a, (ulong) (i * 100), (ulong) (i * 50)); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + count = skycoin.skycoin.new_Gointp (); + err = skycoin.skycoin.SKY_coin_Transaction_GetOutputsCount (tx, count); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.Gointp_value (count), (i + 1)); + pOut1 = new coin__TransactionOutput (); + pOut = new coin__TransactionOutput (); + pOut1.Address = a; + pOut1.Coins = (ulong) (i * 100); + pOut1.Hours = (ulong) (i * 50); + err = skycoin.skycoin.SKY_coin_Transaction_GetOutputAt (tx, i, pOut); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (pOut.isEqual (pOut1), 1); + } + } + [Test] + public void TestTransactionSignInputs () { + var handle = transutils.makeEmptyTransaction (); + // Panics if txns already signed + var sig = new cipher_Sig (); + var err = skycoin.skycoin.SKY_coin_Transaction_PushSignature (handle, sig); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var seckeys = new cipher_SecKeys (); + seckeys.allocate (1); + seckeys.setAt (0, new cipher_SecKey ()); + // Panics if not enough keys + handle = transutils.makeEmptyTransaction (); + var s = new cipher_SecKey (); + var s2 = new cipher_SecKey (); + var ux = new coin__UxOut (); + var ux2 = new coin__UxOut (); + skycoin.skycoin.makeUxOutWithSecret (ux, s); + var h = new cipher_SHA256 (); + err = skycoin.skycoin.SKY_coin_UxOut_Hash (ux, h); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var r = skycoin.skycoin.new_GoUint16p (); + err = skycoin.skycoin.SKY_coin_Transaction_PushInput (handle, h, r); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + skycoin.skycoin.makeUxOutWithSecret (ux2, s2); + err = skycoin.skycoin.SKY_coin_UxOut_Hash (ux2, h); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_PushInput (handle, h, r); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (handle, transutils.makeAddress (), 40, 80); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var count = skycoin.skycoin.new_Gointp (); + err = skycoin.skycoin.SKY_coin_Transaction_GetSignaturesCount (handle, count); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.Gointp_value (count), 0); + // Valid signing + h = new cipher_SHA256 (); + skycoin.skycoin.SKY_coin_Transaction_HashInner (handle, h); + seckeys = new cipher_SecKeys (); + seckeys.allocate (2); + seckeys.setAt (0, s); + seckeys.setAt (1, s2); + err = skycoin.skycoin.SKY_coin_Transaction_SignInputs (handle, seckeys); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_GetSignaturesCount (handle, count); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.Gointp_value (count), 2); + var h2 = new cipher_SHA256 (); + err = skycoin.skycoin.SKY_coin_Transaction_HashInner (handle, h2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (h.isEqual (h2), 1); + var p = new cipher_PubKey (); + err = skycoin.skycoin.SKY_cipher_PubKeyFromSecKey (s, p); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var a = new cipher__Address (); + var a2 = new cipher__Address (); + err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, a); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_PubKeyFromSecKey (s2, p); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, a2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var sha1 = new cipher_SHA256 (); + var sha2 = new cipher_SHA256 (); + var txin0 = new cipher_SHA256 (); + var txin1 = new cipher_SHA256 (); + err = skycoin.skycoin.SKY_coin_Transaction_GetInputAt (handle, 0, txin0); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_GetInputAt (handle, 1, txin1); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_AddSHA256 (h, txin0, sha1); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_AddSHA256 (h, txin1, sha2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var txsig0 = new cipher_Sig (); + var txsig1 = new cipher_Sig (); + err = skycoin.skycoin.SKY_coin_Transaction_GetSignatureAt (handle, 0, txsig0); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_GetSignatureAt (handle, 1, txsig1); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_ChkSig (a, sha1, txsig0); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_ChkSig (a2, sha2, txsig1); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_ChkSig (a, h, txsig1); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidAddressForSig); + err = skycoin.skycoin.SKY_cipher_ChkSig (a2, h, txsig0); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidAddressForSig); + } + [Test] + public void TestTransactionHash () { + var handle = skycoin.skycoin.new_Transaction__Handlep (); + skycoin.skycoin.makeTransaction (handle); + var h = new cipher_SHA256 (); + var h2 = new cipher_SHA256 (); + var err = skycoin.skycoin.SKY_coin_Transaction_Hash (handle, h); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (h.isEqual (h2), 0); + err = skycoin.skycoin.SKY_coin_Transaction_HashInner (handle, h2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (h.isEqual (h2), 0); + } + + [Test] + public void TestTransactionUpdateHeader () { + var handle = skycoin.skycoin.new_Transaction__Handlep (); + var tx = skycoin.skycoin.makeTransaction (handle); + var h = new cipher_SHA256 (); + var h1 = new cipher_SHA256 (); + var h2 = new cipher_SHA256 (); + var err = skycoin.skycoin.SKY_coin_Transaction_HashInner (handle, h); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + tx.setInnerHash (new cipher_SHA256 ()); + err = skycoin.skycoin.SKY_coin_Transaction_UpdateHeader (handle); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + h1.assignFrom (tx.getInnerHash ()); + err = skycoin.skycoin.SKY_coin_Transaction_HashInner (handle, h2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (h1.isEqual (new cipher_SHA256 ()), 0); + Assert.AreEqual (h1.isEqual (h), 1); + Assert.AreEqual (h1.isEqual (h2), 1); + } + + [Test] + public void TestTransactionHashInner () { + var handle = skycoin.skycoin.new_Transaction__Handlep (); + skycoin.skycoin.makeTransaction (handle); + var h = new cipher_SHA256 (); + var err = skycoin.skycoin.SKY_coin_Transaction_HashInner (handle, h); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (h.isEqual (new cipher_SHA256 ()), 0); + + // If tx.In is changed, hash should change + var handle2 = transutils.copyTransaction (handle); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var ux = new coin__UxOut (); + skycoin.skycoin.makeUxOut (ux); + h = new cipher_SHA256 (); + var h1 = new cipher_SHA256 (); + err = skycoin.skycoin.SKY_coin_UxOut_Hash (ux, h); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_SetInputAt (handle2, 0, h); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_UxOut_Hash (ux, h1); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (h.isEqual (h1), 1); + err = skycoin.skycoin.SKY_coin_Transaction_HashInner (handle, h); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_HashInner (handle2, h1); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (h.isEqual (h1), 0); + + // If tx.Out is changed, hash should change + handle2 = transutils.copyTransaction (handle); + var a = transutils.makeAddress (); + var pOut = new coin__TransactionOutput (); + err = skycoin.skycoin.SKY_coin_Transaction_GetOutputAt (handle2, 0, pOut); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + pOut.Address = a; + err = skycoin.skycoin.SKY_coin_Transaction_SetOutputAt (handle2, 0, pOut); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var sha1 = new cipher_SHA256 (); + var sha2 = new cipher_SHA256 (); + err = skycoin.skycoin.SKY_coin_Transaction_HashInner (handle, sha1); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_HashInner (handle2, sha2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (sha1.isEqual (sha2), 0); + + // If tx.Head is changed, hash should not change + handle2 = transutils.copyTransaction (handle); + var sig = new cipher_Sig (); + err = skycoin.skycoin.SKY_coin_Transaction_PushSignature (handle, sig); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + sha1 = new cipher_SHA256 (); + sha2 = new cipher_SHA256 (); + err = skycoin.skycoin.SKY_coin_Transaction_HashInner (handle, sha1); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_HashInner (handle2, sha2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (sha1.isEqual (sha2), 1); + } + + [Test] + public void TestTransactionSerialization () { + var handle = skycoin.skycoin.new_Transaction__Handlep (); + var tx = skycoin.skycoin.makeTransaction (handle); + var b = new GoSlice (); + var err = skycoin.skycoin.SKY_coin_Transaction_Serialize (handle, b); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + // var handle2 = skycoin.skycoin.new_Transaction__Handlep (); + var handle2 = transutils.copyTransaction (handle); + // err = skycoin.skycoin.SKY_coin_TransactionDeserialize (b, handle2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var tx2 = new coin__Transaction (); + err = skycoin.skycoin.SKY_coin_GetTransactionObject (handle2, tx2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (tx.isEqual (tx2), 0); } + } } \ No newline at end of file diff --git a/LibskycoinNetTest/transutils.cs b/LibskycoinNetTest/transutils.cs index ea9f7045..48744a03 100644 --- a/LibskycoinNetTest/transutils.cs +++ b/LibskycoinNetTest/transutils.cs @@ -3,20 +3,28 @@ using skycoin; namespace utils { public class transutils { - public uint makeAddress (cipher__Address paddress) { + public cipher__Address makeAddress () { var pubkey = new cipher_PubKey (); var seckey = new cipher_SecKey (); var addr = new cipher__Address (); var result = skycoin.skycoin.SKY_cipher_GenerateKeyPair (pubkey, seckey); Assert.AreEqual (result, skycoin.skycoin.SKY_OK); result = skycoin.skycoin.SKY_cipher_AddressFromPubKey (pubkey, addr); - return result; + return addr; } - public uint makeEmptyTransaction (SWIGTYPE_p_Transaction__Handle txn) { + public SWIGTYPE_p_Transaction__Handle makeEmptyTransaction () { + var txn = skycoin.skycoin.new_Transaction__Handlep (); var result = skycoin.skycoin.SKY_coin_Create_Transaction (txn); Assert.AreEqual (result, skycoin.skycoin.SKY_OK); - return result; + return txn; + } + + public SWIGTYPE_p_Transaction__Handle copyTransaction (SWIGTYPE_p_Transaction__Handle handle) { + var handle2 = skycoin.skycoin.new_Transaction__Handlep (); + var err = skycoin.skycoin.SKY_coin_Transaction_Copy (handle, handle2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + return handle2; } } } \ No newline at end of file diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index 9c88d876..ea13d00c 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit 9c88d876fde3db0031692959bcee6cdf47cf61b1 +Subproject commit ea13d00c67218d59e09dee161485aab165c595a2 From 390e4cd20f12c5a0aa56e6e928a4e0c3b7ad25af Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Fri, 28 Sep 2018 00:29:32 -0400 Subject: [PATCH 39/73] [test] refs #8 Added functions in coin_transaction --- LibskycoinNet/skycoin/skycoin.cs | 19 +-- LibskycoinNet/skycoin/skycoinPINVOKE.cs | 9 +- LibskycoinNet/skycoin/skycoinnet_wrap.c | 70 +++++------ LibskycoinNetTest/check_coin_transactions.cs | 115 ++++++++++++++++++- Makefile | 1 + gopath/src/github.com/skycoin/skycoin | 2 +- swig/include/libskycoin.h | 14 --- 7 files changed, 150 insertions(+), 80 deletions(-) diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs index 2bb66d46..d7e27413 100644 --- a/LibskycoinNet/skycoin/skycoin.cs +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -522,6 +522,11 @@ public static coin__Transaction makeTransaction(SWIGTYPE_p_Transaction__Handle h return ret; } + public static int makeTransactions(int n, SWIGTYPE_p_Transactions__Handle handle) { + int ret = skycoinPINVOKE.makeTransactions(n, SWIGTYPE_p_Transactions__Handle.getCPtr(handle)); + return ret; + } + public static uint SKY_cipher_SumSHA256(GoSlice seed, cipher_SHA256 sha) { uint ret = skycoinPINVOKE.SKY_cipher_SumSHA256__SWIG_0(GoSlice.getCPtr(seed), cipher_SHA256.getCPtr(sha)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); @@ -1874,20 +1879,6 @@ public static uint SKY_iputil_SplitAddr(string p0, _GoString_ p1, SWIGTYPE_p_uns } } - public static uint SKY_encoder_StructField_String(encoder__StructField p0, _GoString_ p1) { -var tmpp1 = _GoString_.getCPtr (p1); - { - uint ret = skycoinPINVOKE.SKY_encoder_StructField_String(encoder__StructField.getCPtr(p0), tmpp1); - return ret; - } - } - - public static uint SKY_encoder_ParseFields(GoSlice p0, GoSlice p1, SWIGTYPE_p_GoStringMap_ p2) { - uint ret = skycoinPINVOKE.SKY_encoder_ParseFields(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_GoStringMap_.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - public static uint SKY_secp256k1_SumSHA256(GoSlice p0, GoSlice p1) { uint ret = skycoinPINVOKE.SKY_secp256k1_SumSHA256(GoSlice.getCPtr(p0), GoSlice.getCPtr (p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index 4ffe30e0..8cef58db 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -500,6 +500,9 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_makeTransaction")] public static extern global::System.IntPtr makeTransaction(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_makeTransactions")] + public static extern int makeTransactions(int jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SumSHA256__SWIG_0")] public static extern uint SKY_cipher_SumSHA256__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1442,12 +1445,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_iputil_SplitAddr")] public static extern uint SKY_iputil_SplitAddr(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encoder_StructField_String")] - public static extern uint SKY_encoder_StructField_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encoder_ParseFields")] - public static extern uint SKY_encoder_ParseFields(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_SumSHA256")] public static extern uint SKY_secp256k1_SumSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index 6d592d4d..e672a5e0 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -1001,6 +1001,20 @@ coin__Transaction* makeTransaction(Transaction__Handle* handle){ if(result != 0) return 1; return ptransaction; } + +int makeTransactions(int n, Transactions__Handle* handle){ + int result = SKY_coin_Create_Transactions(handle); + if(result != 0) return 1; + registerHandleClose(*handle); + for(int i = 0; i < n; i++){ + Transaction__Handle thandle; + makeTransaction(&thandle); + registerHandleClose(thandle); + result = SKY_coin_Transactions_Add(*handle, thandle); + if(result != 0) return 1; + } + return result; +} GoUint32 CSharp_skycoin_SKY_cipher_SumSHA256(GoSlice seed, cipher_SHA256* sha){ @@ -2901,6 +2915,20 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_makeTransaction(void * jarg1) { } +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_makeTransactions(int jarg1, void * jarg2) { + int jresult ; + int arg1 ; + Transactions__Handle *arg2 = (Transactions__Handle *) 0 ; + int result; + + arg1 = (int)jarg1; + arg2 = (Transactions__Handle *)jarg2; + result = (int)makeTransactions(arg1,arg2); + jresult = result; + return jresult; +} + + SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SumSHA256__SWIG_0(void * jarg1, void * jarg2) { unsigned int jresult ; GoSlice arg1 ; @@ -8189,48 +8217,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_iputil_SplitAddr(char* ja } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encoder_StructField_String(void * jarg1, GoString* jarg2) { - unsigned int jresult ; - encoder__StructField *arg1 = (encoder__StructField *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - arg1 = (encoder__StructField *)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_encoder_StructField_String(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encoder_ParseFields(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - GoStringMap_ *arg3 = (GoStringMap_ *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (GoStringMap_ *)jarg3; - result = (GoUint32)SKY_encoder_ParseFields(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_SumSHA256(void * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; GoSlice arg1 ; diff --git a/LibskycoinNetTest/check_coin_transactions.cs b/LibskycoinNetTest/check_coin_transactions.cs index 1b8b899d..de5c01fe 100644 --- a/LibskycoinNetTest/check_coin_transactions.cs +++ b/LibskycoinNetTest/check_coin_transactions.cs @@ -442,15 +442,124 @@ public void TestTransactionSerialization () { var b = new GoSlice (); var err = skycoin.skycoin.SKY_coin_Transaction_Serialize (handle, b); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - // var handle2 = skycoin.skycoin.new_Transaction__Handlep (); - var handle2 = transutils.copyTransaction (handle); - // err = skycoin.skycoin.SKY_coin_TransactionDeserialize (b, handle2); + var handle2 = skycoin.skycoin.new_Transaction__Handlep (); + err = skycoin.skycoin.SKY_coin_TransactionDeserialize (b, handle2); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); var tx2 = new coin__Transaction (); err = skycoin.skycoin.SKY_coin_GetTransactionObject (handle2, tx2); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); Assert.AreEqual (tx.isEqual (tx2), 0); + } + + [Test] + public void TestTransactionOutputHours () { + var handle = transutils.makeEmptyTransaction (); + var err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (handle, transutils.makeAddress (), (ulong) 1e6, 100); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (handle, transutils.makeAddress (), (ulong) 1e6, 200); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (handle, transutils.makeAddress (), (ulong) 1e6, 500); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (handle, transutils.makeAddress (), (ulong) 1e6, 0); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var hours = skycoin.skycoin.new_GoUint64p (); + err = skycoin.skycoin.SKY_coin_Transaction_OutputHours (handle, hours); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.GoUint64p_value (hours), 800); + err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (handle, transutils.makeAddress (), (ulong) 1e6, ulong.MaxValue - 700); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_OutputHours (handle, hours); + Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + } + + [Test] + public void TestTransactionsSize () { + var handle = skycoin.skycoin.new_Transactions__Handlep (); + var err = (uint) skycoin.skycoin.makeTransactions (10, handle); + var size = (long) 0; + for (int i = 0; i < 10; i++) { + var tx = transutils.makeEmptyTransaction (); + err = skycoin.skycoin.SKY_coin_Transactions_GetAt (handle, i, tx); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var b = new GoSlice (); + err = skycoin.skycoin.SKY_coin_Transaction_Serialize (tx, b); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + size += b.len; + } + Assert.AreNotEqual (size, 0); + var sizetx = skycoin.skycoin.new_Gointp (); + err = skycoin.skycoin.SKY_coin_Transactions_Size (handle, sizetx); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.Gointp_value (sizetx), size); + } + + [Test] + public void TestTransactionsHashes () { + var handle = skycoin.skycoin.new_Transactions__Handlep (); + skycoin.skycoin.makeTransactions (4, handle); + var hashes = new cipher_SHA256s (); + var err = skycoin.skycoin.SKY_coin_Transactions_Hashes (handle, hashes); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var len_hashes = hashes.count; + Assert.AreEqual (len_hashes, 4); + for (int i = 0; i < len_hashes; i++) { + var tx = skycoin.skycoin.new_Transaction__Handlep (); + err = skycoin.skycoin.SKY_coin_Transactions_GetAt (handle, i, tx); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var h = new cipher_SHA256 (); + err = skycoin.skycoin.SKY_coin_Transaction_Hash (tx, h); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (h.isEqual (hashes.getAt (i)), 1); + } + } + + [Test] + public void TestTransactionsTruncateBytesTo () { + var handles = skycoin.skycoin.new_Transactions__Handlep (); + var err = (uint) skycoin.skycoin.makeTransactions (10, handles); + var trunc = (long) 0; + var count = skycoin.skycoin.new_Gointp (); + var len_tnxs = skycoin.skycoin.new_Gointp (); + err = skycoin.skycoin.SKY_coin_Transactions_Length (handles, len_tnxs); + long len_tnxs_value = skycoin.skycoin.Gointp_value (len_tnxs); + for (long i = 0; i < (len_tnxs_value / 2); i++) { + count = skycoin.skycoin.new_Gointp (); + var handle = skycoin.skycoin.new_Transaction__Handlep (); + err = skycoin.skycoin.SKY_coin_Transactions_GetAt (handles, (long) i, handle); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_Size (handle, count); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + trunc += skycoin.skycoin.Gointp_value (count); + } + // Trucating halfway + var tnxs2 = skycoin.skycoin.new_Transactions__Handlep (); + err = skycoin.skycoin.SKY_coin_Transactions_TruncateBytesTo (handles, trunc, tnxs2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var len_tnxs2 = skycoin.skycoin.new_Gointp (); + + err = skycoin.skycoin.SKY_coin_Transactions_Length (tnxs2, len_tnxs2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.Gointp_value (len_tnxs2), len_tnxs_value / 2); + count = skycoin.skycoin.new_Gointp (); + err = skycoin.skycoin.SKY_coin_Transactions_Size (tnxs2, count); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.Gointp_value (count), trunc); + + // Stepping into next boundary has same cutoff, must exceed + trunc += 1; + err = skycoin.skycoin.SKY_coin_Transactions_TruncateBytesTo (handles, trunc, tnxs2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transactions_Length (tnxs2, count); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.Gointp_value (count), len_tnxs_value / 2); + err = skycoin.skycoin.SKY_coin_Transactions_Size (tnxs2, count); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.Gointp_value (count), trunc - 1); + // Moving to 1 before next level + } } diff --git a/Makefile b/Makefile index 8172ec12..156c31a0 100644 --- a/Makefile +++ b/Makefile @@ -59,5 +59,6 @@ test: install make build-libc make build-swig msbuild /p:Configuration=Release LibskycoinNet.sln + msbuild /p:Configuration=Debug LibskycoinNet.sln make build-libskycoin-net mono ./testrunner/NUnit.Runners.2.6.4/tools/nunit-console.exe ./LibskycoinNetTest/bin/Release/LibskycoinNetTest.dll -labels \ No newline at end of file diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index ea13d00c..e5b9b6aa 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit ea13d00c67218d59e09dee161485aab165c595a2 +Subproject commit e5b9b6aa3df91963a247c756c74afdb97e088902 diff --git a/swig/include/libskycoin.h b/swig/include/libskycoin.h index f9408a99..2785a8f9 100644 --- a/swig/include/libskycoin.h +++ b/swig/include/libskycoin.h @@ -158,16 +158,6 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 9 "cipher.encoder.field.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - #line 10 "cipher.secp256k1-go.secp256_rand.go" @@ -922,10 +912,6 @@ extern GoUint32 SKY_iputil_IsLocalhost(GoString p0, GoUint8* p1); extern GoUint32 SKY_iputil_SplitAddr(GoString p0, GoString_* p1, GoUint16* p2); -extern GoUint32 SKY_encoder_StructField_String(encoder__StructField* p0, GoString_* p1); - -extern GoUint32 SKY_encoder_ParseFields(GoSlice p0, GoSlice p1, GoStringMap_* p2); - extern GoUint32 SKY_secp256k1_SumSHA256(GoSlice p0, coin__UxArray* p1); extern GoUint32 SKY_secp256k1_RandByte(GoInt p0, coin__UxArray* p1); From cb39bca2a43a97fe27334ac88e04a50cca3bf050 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Fri, 28 Sep 2018 14:41:12 -0400 Subject: [PATCH 40/73] [test] refs #8 Finish coin.math and coin.coin Tests run: 62, Errors: 0, Failures: 0, Inconclusive: 0, Time: 14,2019396 seconds Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0 --- .vscode/settings.json | 5 + LibskycoinNet/LibskycoinNet.csproj | 6 +- ...ctionObjectHandle.cs => Fee_Calculator.cs} | 29 ++-- .../skycoin/SWIGTYPE_p_a_33__GoUint8_.cs | 29 ---- .../skycoin/SWIGTYPE_p_a_4__unsigned_char.cs | 29 ---- LibskycoinNet/skycoin/SWIGTYPE_p_byte.cs | 29 ---- ...__Handle_p_GoUint64__p_void__GoUint32_.cs} | 8 +- .../skycoin/SWIGTYPE_p_json_value.cs | 29 ---- LibskycoinNet/skycoin/SWIGTYPE_p_string.cs | 29 ---- LibskycoinNet/skycoin/coin_UxOutArray.cs | 4 + LibskycoinNet/skycoin/skycoinPINVOKE.cs | 21 +++ LibskycoinNet/skycoin/skycoinnet_wrap.c | 76 +++++++++ LibskycoinNetTest/LibskycoinNetTest.csproj | 12 +- LibskycoinNetTest/check_coin_coin.cs | 83 ++++++++++ LibskycoinNetTest/check_coin_math.cs | 63 ++++++++ LibskycoinNetTest/check_coin_transactions.cs | 145 +++++++++++++++++- LibskycoinNetTest/check_util_fee.cs | 22 +-- gopath/src/github.com/skycoin/skycoin | 2 +- 18 files changed, 432 insertions(+), 189 deletions(-) create mode 100644 .vscode/settings.json rename LibskycoinNet/skycoin/{TransactionObjectHandle.cs => Fee_Calculator.cs} (51%) delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_a_33__GoUint8_.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_a_4__unsigned_char.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_byte.cs rename LibskycoinNet/skycoin/{SWIGTYPE_p_a_32__GoUint8_.cs => SWIGTYPE_p_f_Transaction__Handle_p_GoUint64__p_void__GoUint32_.cs} (71%) delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_json_value.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_string.cs create mode 100644 LibskycoinNetTest/check_coin_coin.cs create mode 100644 LibskycoinNetTest/check_coin_math.cs diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..0dbf0cd6 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "files.associations": { + "transutil.h": "c" + } +} \ No newline at end of file diff --git a/LibskycoinNet/LibskycoinNet.csproj b/LibskycoinNet/LibskycoinNet.csproj index d9e8bc52..28b584e5 100644 --- a/LibskycoinNet/LibskycoinNet.csproj +++ b/LibskycoinNet/LibskycoinNet.csproj @@ -126,15 +126,13 @@ - - - - + + diff --git a/LibskycoinNet/skycoin/TransactionObjectHandle.cs b/LibskycoinNet/skycoin/Fee_Calculator.cs similarity index 51% rename from LibskycoinNet/skycoin/TransactionObjectHandle.cs rename to LibskycoinNet/skycoin/Fee_Calculator.cs index dd7169aa..81d90ad5 100644 --- a/LibskycoinNet/skycoin/TransactionObjectHandle.cs +++ b/LibskycoinNet/skycoin/Fee_Calculator.cs @@ -10,20 +10,20 @@ namespace skycoin { -public class TransactionObjectHandle : global::System.IDisposable { +public class Fee_Calculator : global::System.IDisposable { private global::System.Runtime.InteropServices.HandleRef swigCPtr; protected bool swigCMemOwn; - internal TransactionObjectHandle(global::System.IntPtr cPtr, bool cMemoryOwn) { + internal Fee_Calculator(global::System.IntPtr cPtr, bool cMemoryOwn) { swigCMemOwn = cMemoryOwn; swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TransactionObjectHandle obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Fee_Calculator obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } - ~TransactionObjectHandle() { + ~Fee_Calculator() { Dispose(); } @@ -32,7 +32,7 @@ public virtual void Dispose() { if (swigCPtr.Handle != global::System.IntPtr.Zero) { if (swigCMemOwn) { swigCMemOwn = false; - skycoinPINVOKE.delete_TransactionObjectHandle(swigCPtr); + skycoinPINVOKE.delete_Fee_Calculator(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } @@ -40,30 +40,29 @@ public virtual void Dispose() { } } - public SWIGTYPE_p_GoUint8_ hash { + public SWIGTYPE_p_f_Transaction__Handle_p_GoUint64__p_void__GoUint32_ callback { set { - skycoinPINVOKE.set_TransactionObjectHandle_hash(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); + skycoinPINVOKE.set_Fee_Calculator_callback(swigCPtr, SWIGTYPE_p_f_Transaction__Handle_p_GoUint64__p_void__GoUint32_.getCPtr(value)); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.get_TransactionObjectHandle_hash(swigCPtr); - SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); + global::System.IntPtr cPtr = skycoinPINVOKE.get_Fee_Calculator_callback(swigCPtr); + SWIGTYPE_p_f_Transaction__Handle_p_GoUint64__p_void__GoUint32_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_f_Transaction__Handle_p_GoUint64__p_void__GoUint32_(cPtr, false); return ret; } } - public SWIGTYPE_p_Transaction__Handle handle { + public SWIGTYPE_p_void context { set { - skycoinPINVOKE.set_TransactionObjectHandle_handle(swigCPtr, SWIGTYPE_p_Transaction__Handle.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + skycoinPINVOKE.set_Fee_Calculator_context(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); } get { - SWIGTYPE_p_Transaction__Handle ret = new SWIGTYPE_p_Transaction__Handle(skycoinPINVOKE.get_TransactionObjectHandle_handle(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + global::System.IntPtr cPtr = skycoinPINVOKE.get_Fee_Calculator_context(swigCPtr); + SWIGTYPE_p_void ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); return ret; } } - public TransactionObjectHandle() : this(skycoinPINVOKE.new_TransactionObjectHandle(), true) { + public Fee_Calculator() : this(skycoinPINVOKE.new_Fee_Calculator(), true) { } } diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_a_33__GoUint8_.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_a_33__GoUint8_.cs deleted file mode 100644 index 53b8410d..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_a_33__GoUint8_.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_a_33__GoUint8_ { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_a_33__GoUint8_(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_a_33__GoUint8_() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_a_33__GoUint8_ obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_a_4__unsigned_char.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_a_4__unsigned_char.cs deleted file mode 100644 index 0adc706b..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_a_4__unsigned_char.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_a_4__unsigned_char { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_a_4__unsigned_char(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_a_4__unsigned_char() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_a_4__unsigned_char obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_byte.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_byte.cs deleted file mode 100644 index 0da6feb4..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_byte.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_byte { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_byte(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_byte() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_byte obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_a_32__GoUint8_.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_f_Transaction__Handle_p_GoUint64__p_void__GoUint32_.cs similarity index 71% rename from LibskycoinNet/skycoin/SWIGTYPE_p_a_32__GoUint8_.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_f_Transaction__Handle_p_GoUint64__p_void__GoUint32_.cs index 31785e54..da9e37d8 100644 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_a_32__GoUint8_.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_f_Transaction__Handle_p_GoUint64__p_void__GoUint32_.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_a_32__GoUint8_ { +public class SWIGTYPE_p_f_Transaction__Handle_p_GoUint64__p_void__GoUint32_ { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_a_32__GoUint8_(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_f_Transaction__Handle_p_GoUint64__p_void__GoUint32_(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_a_32__GoUint8_() { + protected SWIGTYPE_p_f_Transaction__Handle_p_GoUint64__p_void__GoUint32_() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_a_32__GoUint8_ obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_f_Transaction__Handle_p_GoUint64__p_void__GoUint32_ obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_json_value.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_json_value.cs deleted file mode 100644 index 90d5479d..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_json_value.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_json_value { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_json_value(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_json_value() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_json_value obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_string.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_string.cs deleted file mode 100644 index 192c035e..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_string.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_string { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_string(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_string() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_string obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/coin_UxOutArray.cs b/LibskycoinNet/skycoin/coin_UxOutArray.cs index 0998db9d..8d5aab3f 100644 --- a/LibskycoinNet/skycoin/coin_UxOutArray.cs +++ b/LibskycoinNet/skycoin/coin_UxOutArray.cs @@ -60,6 +60,10 @@ public void allocate(int n) { skycoinPINVOKE.coin_UxOutArray_allocate(swigCPtr, n); } + public void append(coin__UxOut uxout) { + skycoinPINVOKE.coin_UxOutArray_append(swigCPtr, coin__UxOut.getCPtr(uxout)); + } + public void release() { skycoinPINVOKE.coin_UxOutArray_release(swigCPtr); } diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index 8cef58db..3f09f4b2 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -863,6 +863,9 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_allocate")] public static extern void coin_UxOutArray_allocate(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_append")] + public static extern void coin_UxOutArray_append(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin_UxOutArray_release")] public static extern void coin_UxOutArray_release(global::System.Runtime.InteropServices.HandleRef jarg1); @@ -902,6 +905,24 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_Addresses")] public static extern void delete_cipher_Addresses(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_Fee_Calculator_callback")] + public static extern void set_Fee_Calculator_callback(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_Fee_Calculator_callback")] + public static extern global::System.IntPtr get_Fee_Calculator_callback(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_Fee_Calculator_context")] + public static extern void set_Fee_Calculator_context(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_Fee_Calculator_context")] + public static extern global::System.IntPtr get_Fee_Calculator_context(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_Fee_Calculator")] + public static extern global::System.IntPtr new_Fee_Calculator(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_Fee_Calculator")] + public static extern void delete_Fee_Calculator(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin__GoString__SetString")] public static extern int _GoString__SetString(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index e672a5e0..df99d3c3 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -1568,6 +1568,10 @@ SWIGINTERN void coin_UxOutArray_allocate(coin_UxOutArray *self,int n){ self->data = malloc(n * sizeof(*(self->data))); self->count = n; } +SWIGINTERN void coin_UxOutArray_append(coin_UxOutArray *self,coin__UxOut *uxout){ + coin_UxOutArray_allocate(self,self->count+1); + coin_UxOutArray_setAt(self,self->count+1,uxout); + } SWIGINTERN void coin_UxOutArray_release(coin_UxOutArray *self){ if(self->data != NULL) free(self->data); @@ -4556,6 +4560,16 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_allocate(void * jarg1 } +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_append(void * jarg1, void * jarg2) { + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; + coin__UxOut *arg2 = (coin__UxOut *) 0 ; + + arg1 = (coin_UxOutArray *)jarg1; + arg2 = (coin__UxOut *)jarg2; + coin_UxOutArray_append(arg1,arg2); +} + + SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin_UxOutArray_release(void * jarg1) { coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; @@ -4688,6 +4702,68 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_Addresses(void * jarg1) } +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_Fee_Calculator_callback(void * jarg1, void * jarg2) { + Fee_Calculator *arg1 = (Fee_Calculator *) 0 ; + FeeCalcFunc arg2 = (FeeCalcFunc) 0 ; + + arg1 = (Fee_Calculator *)jarg1; + arg2 = (FeeCalcFunc)jarg2; + if (arg1) (arg1)->callback = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_Fee_Calculator_callback(void * jarg1) { + void * jresult ; + Fee_Calculator *arg1 = (Fee_Calculator *) 0 ; + FeeCalcFunc result; + + arg1 = (Fee_Calculator *)jarg1; + result = (FeeCalcFunc) ((arg1)->callback); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_Fee_Calculator_context(void * jarg1, void * jarg2) { + Fee_Calculator *arg1 = (Fee_Calculator *) 0 ; + void *arg2 = (void *) 0 ; + + arg1 = (Fee_Calculator *)jarg1; + arg2 = (void *)jarg2; + if (arg1) (arg1)->context = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_Fee_Calculator_context(void * jarg1) { + void * jresult ; + Fee_Calculator *arg1 = (Fee_Calculator *) 0 ; + void *result = 0 ; + + arg1 = (Fee_Calculator *)jarg1; + result = (void *) ((arg1)->context); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_Fee_Calculator() { + void * jresult ; + Fee_Calculator *result = 0 ; + + result = (Fee_Calculator *)calloc(1, sizeof(Fee_Calculator)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_Fee_Calculator(void * jarg1) { + Fee_Calculator *arg1 = (Fee_Calculator *) 0 ; + + arg1 = (Fee_Calculator *)jarg1; + free((char *) arg1); +} + + SWIGEXPORT int SWIGSTDCALL CSharp_skycoin__GoString__SetString(void * jarg1, char * jarg2) { int jresult ; _GoString_ *arg1 = (_GoString_ *) 0 ; diff --git a/LibskycoinNetTest/LibskycoinNetTest.csproj b/LibskycoinNetTest/LibskycoinNetTest.csproj index 09ad6662..dc8fa10f 100644 --- a/LibskycoinNetTest/LibskycoinNetTest.csproj +++ b/LibskycoinNetTest/LibskycoinNetTest.csproj @@ -35,11 +35,13 @@ - - - - - + + + + + + + diff --git a/LibskycoinNetTest/check_coin_coin.cs b/LibskycoinNetTest/check_coin_coin.cs new file mode 100644 index 00000000..c489308a --- /dev/null +++ b/LibskycoinNetTest/check_coin_coin.cs @@ -0,0 +1,83 @@ +using System; +using NUnit.Framework; +using skycoin; +using utils; +namespace LibskycoinNetTest { + [TestFixture ()] + public class check_coin_coin { + + utils.transutils transutils = new utils.transutils (); + + [Test] + public void TestAddress1 () { + var address_hex = "02fa939957e9fc52140e180264e621c2576a1bfe781f88792fb315ca3d1786afb8"; + var b = new GoSlice (); + var err = skycoin.skycoin.SKY_base58_String2Hex (address_hex, b); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var p = new cipher_PubKey (); + err = skycoin.skycoin.SKY_cipher_NewPubKey (b, p); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var a = new cipher__Address (); + err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, a); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + } + + [Test] + public void TestAddress2 () { + var address_hex = "5a42c0643bdb465d90bf673b99c14f5fa02db71513249d904573d2b8b63d353d"; + var p = new cipher_PubKey (); + var s = new cipher_SecKey (); + var b = new GoSlice (); + var err = skycoin.skycoin.SKY_base58_String2Hex (address_hex, b); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_NewSecKey (b, s); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_PubKeyFromSecKey (s, p); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var a = new cipher__Address (); + err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, a); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + } + + [Test] + public void TestCrypto1 () { + var p = new cipher_PubKey (); + var s = new cipher_SecKey (); + for (int i = 0; i < 10; i++) { + var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_TestSecKey (s); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + } + } + + [Test] + public void TestCrypto2 () { + var b = new GoSlice (); + var err = skycoin.skycoin.SKY_base58_String2Hex ("5a42c0643bdb465d90bf673b99c14f5fa02db71513249d904573d2b8b63d353d", b); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (b.len, 32); + var p = new cipher_PubKey (); + var s = new cipher_SecKey (); + err = skycoin.skycoin.SKY_cipher_NewSecKey (b, s); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_PubKeyFromSecKey (s, p); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var a = new cipher__Address (); + err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, a); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var text = "test message"; + var sha = new cipher_SHA256 (); + b = new GoSlice (); + var text_str = new _GoString_ (); + text_str.p = text; + b.convertString (text_str); + err = skycoin.skycoin.SKY_cipher_SumSHA256 (b, sha); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_TestSecKeyHash (s, sha); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + + } + + } +} \ No newline at end of file diff --git a/LibskycoinNetTest/check_coin_math.cs b/LibskycoinNetTest/check_coin_math.cs new file mode 100644 index 00000000..33f39e4e --- /dev/null +++ b/LibskycoinNetTest/check_coin_math.cs @@ -0,0 +1,63 @@ +using System; +using NUnit.Framework; +using skycoin; +using utils; +namespace LibskycoinNetTest { + [TestFixture ()] + public class check_coin_math { + + utils.transutils transutils = new utils.transutils (); + [Test] + public void TestAddUint64 () { + var r = skycoin.skycoin.new_GoUint64p (); + var err = skycoin.skycoin.SKY_coin_AddUint64 (10, 11, r); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.GoUint64p_value (r), 21); + err = skycoin.skycoin.SKY_coin_AddUint64 (ulong.MaxValue, 1, r); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrUint64AddOverflow); + } + struct math_test { + public ulong a; + public ulong b; + public int failure; + } + + math_test[] cases = new math_test[4]; + + public void FullCases () { + var c = new math_test (); + c.a = 0; + c.b = 0; + c.failure = skycoin.skycoin.SKY_OK; + cases[0] = c; + + c = new math_test (); + c.a = 1; + c.b = 1; + c.failure = skycoin.skycoin.SKY_OK; + cases[1] = c; + + c = new math_test (); + c.a = long.MaxValue; + c.b = long.MaxValue; + c.failure = skycoin.skycoin.SKY_OK; + cases[2] = c; + + c = new math_test (); + c.a = ulong.MaxValue; + c.b = 0; + c.failure = skycoin.skycoin.SKY_ERROR; + cases[3] = c; + } + + [Test] + public void TestUint64ToInt64 () { + for (int i = 0; i < cases.Length; i++) { + var r = skycoin.skycoin.new_Gointp (); + var err = skycoin.skycoin.SKY_coin_Uint64ToInt64 (cases[i].a, r); + Assert.AreEqual (err, cases[i].failure); + Assert.AreEqual (cases[i].b, skycoin.skycoin.Gointp_value (r)); + } + } + } +} \ No newline at end of file diff --git a/LibskycoinNetTest/check_coin_transactions.cs b/LibskycoinNetTest/check_coin_transactions.cs index de5c01fe..ab9b68ef 100644 --- a/LibskycoinNetTest/check_coin_transactions.cs +++ b/LibskycoinNetTest/check_coin_transactions.cs @@ -559,8 +559,151 @@ public void TestTransactionsTruncateBytesTo () { Assert.AreEqual (skycoin.skycoin.Gointp_value (count), trunc - 1); // Moving to 1 before next level - + var tnxs_5 = transutils.makeEmptyTransaction (); + err = skycoin.skycoin.SKY_coin_Transactions_GetAt (handles, 5, tnxs_5); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + count = skycoin.skycoin.new_Gointp (); + err = skycoin.skycoin.SKY_coin_Transaction_Size (tnxs_5, count); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + trunc += (skycoin.skycoin.Gointp_value (count) - 2); + err = skycoin.skycoin.SKY_coin_Transactions_TruncateBytesTo (handles, trunc, tnxs2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transactions_Length (tnxs2, count); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.Gointp_value (count), 5); + err = skycoin.skycoin.SKY_coin_Transactions_Size (tnxs2, count); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var count_tnxs5 = skycoin.skycoin.new_Gointp (); + err = skycoin.skycoin.SKY_coin_Transaction_Size (tnxs_5, count_tnxs5); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual ((trunc - skycoin.skycoin.Gointp_value (count_tnxs5) + 1), skycoin.skycoin.Gointp_value (count)); + + // Moving to next level + trunc += 1; + err = skycoin.skycoin.SKY_coin_Transactions_TruncateBytesTo (handles, trunc, tnxs2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transactions_Length (tnxs2, count); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.Gointp_value (count), 6); + err = skycoin.skycoin.SKY_coin_Transactions_Size (tnxs2, count); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.Gointp_value (count), trunc); + + // Truncating to full available amt + var trunc1 = skycoin.skycoin.new_Gointp (); + err = skycoin.skycoin.SKY_coin_Transactions_Size (handles, trunc1); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transactions_TruncateBytesTo (handles, skycoin.skycoin.Gointp_value (trunc1), tnxs2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transactions_Size (tnxs2, count); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.Gointp_value (count), skycoin.skycoin.Gointp_value (trunc1)); + + // Truncating to 0 + trunc = 0; + err = skycoin.skycoin.SKY_coin_Transactions_TruncateBytesTo (handles, 0, tnxs2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transactions_Length (tnxs2, count); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.Gointp_value (count), 0); + err = skycoin.skycoin.SKY_coin_Transactions_Size (tnxs2, count); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.Gointp_value (count), trunc); + } + + struct ux { + public ulong coins; + public ulong hours; + } + struct StrTest { + public string name; + public ux[] inUxs; + public ux[] outUxs; + public int err; + public long headTime; } + StrTest[] cases = new StrTest[1]; + public void FullCases () { + var c = new StrTest (); + c.name = "Input coins overflow"; + c.err = skycoin.skycoin.SKY_ERROR; + c.inUxs = new ux[2]; + c.inUxs[0].coins = (ulong) (ulong.MaxValue - 1e6 + 1); + c.inUxs[0].hours = 10; + c.inUxs[1].coins = (ulong) 1e6; + c.inUxs[1].hours = 0; + c.outUxs = new ux[0]; + c.headTime = 0; + cases[0] = c; + } + // TODO: Continuar llenado + [Test] + public void TestVerifyTransactionCoinsSpending () { + FullCases (); + var uxIn = new coin_UxOutArray (); + var uxOut = new coin_UxOutArray (); + for (int i = 0; i < cases.Length; i++) { + var tc = cases[i]; + for (int j = 0; j < tc.inUxs.Length; j++) { + var ch = tc.inUxs[j]; + var puxIn = new coin__UxOut (); + puxIn.Body.Coins = ch.coins; + puxIn.Body.Hours = ch.hours; + uxIn.append (puxIn); + } + for (int j = 0; j < tc.outUxs.Length; j++) { + var ch = tc.outUxs[j]; + var puxOut = new coin__UxOut (); + puxOut.Body.Coins = ch.coins; + puxOut.Body.Hours = ch.hours; + uxOut.append (puxOut); + } + var err = skycoin.skycoin.SKY_coin_VerifyTransactionCoinsSpending (uxIn, uxOut); + Assert.AreEqual (err, tc.err); + } + } + public void FullCases2 () { + var c = new StrTest (); + c.name = "Input coins overflow"; + c.err = skycoin.skycoin.SKY_ERROR; + c.inUxs = new ux[2]; + c.inUxs[0].coins = (ulong) (ulong.MaxValue - 1e6 + 1); + c.inUxs[0].hours = 10; + c.inUxs[1].coins = (ulong) 1e6; + c.inUxs[1].hours = 0; + c.outUxs = new ux[0]; + c.headTime = 0; + cases[0] = c; + } + + [Test] + public void TestVerifyTransactionHoursSpending () { + FullCases2 (); + var uxIn = new coin_UxOutArray (); + var uxOut = new coin_UxOutArray (); + for (int i = 0; i < cases.Length; i++) { + var tc = cases[i]; + for (int j = 0; j < tc.inUxs.Length; j++) { + var ch = tc.inUxs[j]; + var puxIn = new coin__UxOut (); + puxIn.Body.Coins = ch.coins; + puxIn.Body.Hours = ch.hours; + uxIn.append (puxIn); + } + for (int j = 0; j < tc.outUxs.Length; j++) { + var ch = tc.outUxs[j]; + var puxOut = new coin__UxOut (); + puxOut.Body.Coins = ch.coins; + puxOut.Body.Hours = ch.hours; + uxOut.append (puxOut); + } + var err = skycoin.skycoin.SKY_coin_VerifyTransactionCoinsSpending (uxIn, uxOut); + Assert.AreEqual (err, tc.err); + } + } + + // TODO: Fin del relleno + } } \ No newline at end of file diff --git a/LibskycoinNetTest/check_util_fee.cs b/LibskycoinNetTest/check_util_fee.cs index 22358069..afbea935 100644 --- a/LibskycoinNetTest/check_util_fee.cs +++ b/LibskycoinNetTest/check_util_fee.cs @@ -110,11 +110,9 @@ public void FullburnFactor2verifyTxFeeTestCase () { [Test] public void TestVerifyTransactionFee () { FullburnFactor2verifyTxFeeTestCase (); - var empty = skycoin.skycoin.new_Transaction__Handlep (); - var err = transutils.makeEmptyTransaction (empty); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var empty = transutils.makeEmptyTransaction (); var hours = skycoin.skycoin.new_GoUint64p (); - err = skycoin.skycoin.SKY_coin_Transaction_OutputHours (empty, hours); + var err = skycoin.skycoin.SKY_coin_Transaction_OutputHours (empty, hours); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); Assert.AreEqual (skycoin.skycoin.GoUint64p_value (hours), 0); @@ -128,7 +126,7 @@ public void TestVerifyTransactionFee () { var txn = skycoin.skycoin.new_Transaction__Handlep (); skycoin.skycoin.makeEmptyTransaction (txn); var addr = new cipher__Address (); - err = transutils.makeAddress (addr); + addr = transutils.makeAddress (); Assert.AreEqual (err, 0); err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (txn, addr, 0, 1000000); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); @@ -361,21 +359,17 @@ public void FullCases () { [Test] public void TestTransactionFee () { FullCases (); - var addr = new skycoin.cipher__Address (); - var err = transutils.makeAddress (addr); - Assert.AreEqual (err, 0); + var addr = transutils.makeAddress (); for (int i = 0; i < ListCases.Length; i++) { var tc = ListCases[i]; - var tx = skycoin.skycoin.new_Transaction__Handlep (); - err = transutils.makeEmptyTransaction (tx); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var tx = transutils.makeEmptyTransaction (); for (int j = 0; j < tc.outs.Length; j++) { var h = tc.outs[j]; - err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (tx, addr, (ulong) 0, (ulong) h); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var err1 = skycoin.skycoin.SKY_coin_Transaction_PushOutput (tx, addr, (ulong) 0, (ulong) h); + Assert.AreEqual (err1, skycoin.skycoin.SKY_OK); } var inUxs = new GoSlice (); - err = (uint) skycoin.skycoin.makeUxArray (inUxs, tc.ins.Length); + var err = (uint) skycoin.skycoin.makeUxArray (inUxs, tc.ins.Length); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); Assert.AreEqual (inUxs.len, tc.ins.Length); for (int j = 0; j < tc.ins.Length; j++) { diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index e5b9b6aa..897df706 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit e5b9b6aa3df91963a247c756c74afdb97e088902 +Subproject commit 897df706fcdf90c5112eac28975dc88e6e3acb2b From 973cdc06dc02d92b49092cb4d08f19cb51e2452b Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Mon, 1 Oct 2018 12:33:08 -0400 Subject: [PATCH 41/73] [test] refs #8 Added test coin.transaction Tests run: 76, Errors: 0, Failures: 0, Inconclusive: 0, Time: 17,0341541 seconds Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0 --- LibskycoinNet/LibskycoinNet.csproj | 5 +- .../SWIGTYPE_p_AddressUxOuts__Handle.cs | 29 + LibskycoinNet/skycoin/cipher_Addresses.cs | 24 + LibskycoinNet/skycoin/cipher__Address.cs | 4 +- LibskycoinNet/skycoin/coin__UxBody.cs | 4 + LibskycoinNet/skycoin/skycoin.cs | 123 +++- LibskycoinNet/skycoin/skycoinPINVOKE.cs | 100 ++- LibskycoinNet/skycoin/skycoinnet_wrap.c | 484 ++++++++++++- LibskycoinNetTest/LibskycoinNetTest.csproj | 3 +- ..._cipher_encrypt_scrypt_chacha20poly1305.cs | 5 +- LibskycoinNetTest/check_coin_outputs.cs | 634 ++++++++++++++++++ LibskycoinNetTest/check_coin_transactions.cs | 205 +++++- LibskycoinNetTest/check_util_fee.cs | 15 +- LibskycoinNetTest/transutils.cs | 104 ++- gopath/src/github.com/skycoin/skycoin | 2 +- 15 files changed, 1649 insertions(+), 92 deletions(-) create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_AddressUxOuts__Handle.cs create mode 100644 LibskycoinNetTest/check_coin_outputs.cs diff --git a/LibskycoinNet/LibskycoinNet.csproj b/LibskycoinNet/LibskycoinNet.csproj index 28b584e5..76bda554 100644 --- a/LibskycoinNet/LibskycoinNet.csproj +++ b/LibskycoinNet/LibskycoinNet.csproj @@ -127,12 +127,13 @@ + + - - + diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_AddressUxOuts__Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_AddressUxOuts__Handle.cs new file mode 100644 index 00000000..bbee6cc3 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_AddressUxOuts__Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_AddressUxOuts__Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_AddressUxOuts__Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_AddressUxOuts__Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_AddressUxOuts__Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/cipher_Addresses.cs b/LibskycoinNet/skycoin/cipher_Addresses.cs index f86592a1..1a4bc4c5 100644 --- a/LibskycoinNet/skycoin/cipher_Addresses.cs +++ b/LibskycoinNet/skycoin/cipher_Addresses.cs @@ -40,6 +40,30 @@ public virtual void Dispose() { } } + public cipher__Address getAt(int i) { + global::System.IntPtr cPtr = skycoinPINVOKE.cipher_Addresses_getAt(swigCPtr, i); + cipher__Address ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher__Address(cPtr, false); + return ret; + } + + public int setAt(int i, cipher_Addresses addr) { + int ret = skycoinPINVOKE.cipher_Addresses_setAt(swigCPtr, i, cipher_Addresses.getCPtr(addr)); + return ret; + } + + public int isEqual(cipher_Addresses a) { + int ret = skycoinPINVOKE.cipher_Addresses_isEqual(swigCPtr, cipher_Addresses.getCPtr(a)); + return ret; + } + + public void allocate(int n) { + skycoinPINVOKE.cipher_Addresses_allocate(swigCPtr, n); + } + + public void release() { + skycoinPINVOKE.cipher_Addresses_release(swigCPtr); + } + public cipher__Address data { set { skycoinPINVOKE.set_cipher_Addresses_data(swigCPtr, cipher__Address.getCPtr(value)); diff --git a/LibskycoinNet/skycoin/cipher__Address.cs b/LibskycoinNet/skycoin/cipher__Address.cs index 67534011..28dacedd 100644 --- a/LibskycoinNet/skycoin/cipher__Address.cs +++ b/LibskycoinNet/skycoin/cipher__Address.cs @@ -54,12 +54,12 @@ public void setVersion(char pValue) { skycoinPINVOKE.cipher__Address_setVersion(swigCPtr, pValue); } - public char Version { + public byte Version { set { skycoinPINVOKE.set_cipher__Address_Version(swigCPtr, value); } get { - char ret = skycoinPINVOKE.get_cipher__Address_Version(swigCPtr); + byte ret = skycoinPINVOKE.get_cipher__Address_Version(swigCPtr); return ret; } } diff --git a/LibskycoinNet/skycoin/coin__UxBody.cs b/LibskycoinNet/skycoin/coin__UxBody.cs index 4668aa70..f448c699 100644 --- a/LibskycoinNet/skycoin/coin__UxBody.cs +++ b/LibskycoinNet/skycoin/coin__UxBody.cs @@ -40,6 +40,10 @@ public virtual void Dispose() { } } + public void SetSrcTransaction(cipher_SHA256 o) { + skycoinPINVOKE.coin__UxBody_SetSrcTransaction(swigCPtr, cipher_SHA256.getCPtr(o)); + } + public SWIGTYPE_p_GoUint8_ SrcTransaction { set { skycoinPINVOKE.set_coin__UxBody_SrcTransaction(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs index d7e27413..d458d556 100644 --- a/LibskycoinNet/skycoin/skycoin.cs +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -114,6 +114,33 @@ public static int intp_value(SWIGTYPE_p_int obj) { return ret; } + public static coin__Transaction new_coin__Transactionp() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_coin__Transactionp(); + coin__Transaction ret = (cPtr == global::System.IntPtr.Zero) ? null : new coin__Transaction(cPtr, false); + return ret; + } + + public static coin__Transaction copy_coin__Transactionp(coin__Transaction value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_coin__Transactionp(coin__Transaction.getCPtr(value)); + coin__Transaction ret = (cPtr == global::System.IntPtr.Zero) ? null : new coin__Transaction(cPtr, false); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static void delete_coin__Transactionp(coin__Transaction obj) { + skycoinPINVOKE.delete_coin__Transactionp(coin__Transaction.getCPtr(obj)); + } + + public static void coin__Transactionp_assign(coin__Transaction obj, coin__Transaction value) { + skycoinPINVOKE.coin__Transactionp_assign(coin__Transaction.getCPtr(obj), coin__Transaction.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + + public static coin__Transaction coin__Transactionp_value(coin__Transaction obj) { + coin__Transaction ret = new coin__Transaction(skycoinPINVOKE.coin__Transactionp_value(coin__Transaction.getCPtr(obj)), true); + return ret; + } + public static SWIGTYPE_p_Transaction__Handle new_Transaction__Handlep() { global::System.IntPtr cPtr = skycoinPINVOKE.new_Transaction__Handlep(); SWIGTYPE_p_Transaction__Handle ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Transaction__Handle(cPtr, false); @@ -141,6 +168,33 @@ public static SWIGTYPE_p_Transaction__Handle Transaction__Handlep_value(SWIGTYPE return ret; } + public static SWIGTYPE_p_AddressUxOuts_Handle new_AddressUxOuts__HandlePtr() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_AddressUxOuts__HandlePtr(); + SWIGTYPE_p_AddressUxOuts_Handle ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_AddressUxOuts_Handle(cPtr, false); + return ret; + } + + public static SWIGTYPE_p_AddressUxOuts_Handle copy_AddressUxOuts__HandlePtr(SWIGTYPE_p_AddressUxOuts_Handle value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_AddressUxOuts__HandlePtr(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(value)); + SWIGTYPE_p_AddressUxOuts_Handle ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_AddressUxOuts_Handle(cPtr, false); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static void delete_AddressUxOuts__HandlePtr(SWIGTYPE_p_AddressUxOuts_Handle obj) { + skycoinPINVOKE.delete_AddressUxOuts__HandlePtr(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(obj)); + } + + public static void AddressUxOuts__HandlePtr_assign(SWIGTYPE_p_AddressUxOuts_Handle obj, SWIGTYPE_p_AddressUxOuts_Handle value) { + skycoinPINVOKE.AddressUxOuts__HandlePtr_assign(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(obj), SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + + public static SWIGTYPE_p_AddressUxOuts_Handle AddressUxOuts__HandlePtr_value(SWIGTYPE_p_AddressUxOuts_Handle obj) { + SWIGTYPE_p_AddressUxOuts_Handle ret = new SWIGTYPE_p_AddressUxOuts_Handle(skycoinPINVOKE.AddressUxOuts__HandlePtr_value(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(obj)), true); + return ret; + } + public static SWIGTYPE_p_unsigned_long_long new_GoUint64p() { global::System.IntPtr cPtr = skycoinPINVOKE.new_GoUint64p(); SWIGTYPE_p_unsigned_long_long ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_long_long(cPtr, false); @@ -270,6 +324,31 @@ public static SWIGTYPE_p_Transactions__Handle Transactions__Handlep_value(SWIGTY return ret; } + public static SWIGTYPE_p_unsigned_char new_charp() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_charp(); + SWIGTYPE_p_unsigned_char ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); + return ret; + } + + public static SWIGTYPE_p_unsigned_char copy_charp(byte value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_charp(value); + SWIGTYPE_p_unsigned_char ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); + return ret; + } + + public static void delete_charp(SWIGTYPE_p_unsigned_char obj) { + skycoinPINVOKE.delete_charp(SWIGTYPE_p_unsigned_char.getCPtr(obj)); + } + + public static void charp_assign(SWIGTYPE_p_unsigned_char obj, byte value) { + skycoinPINVOKE.charp_assign(SWIGTYPE_p_unsigned_char.getCPtr(obj), value); + } + + public static byte charp_value(SWIGTYPE_p_unsigned_char obj) { + byte ret = skycoinPINVOKE.charp_value(SWIGTYPE_p_unsigned_char.getCPtr(obj)); + return ret; + } + public static void SKY_handle_close(SWIGTYPE_p_Handle p0) { skycoinPINVOKE.SKY_handle_close(SWIGTYPE_p_Handle.getCPtr(p0)); } @@ -497,8 +576,8 @@ public static int makeUxOut(coin__UxOut puxOut) { return ret; } - public static int makeUxArray(GoSlice parray, int n) { - int ret = skycoinPINVOKE.makeUxArray(GoSlice.getCPtr(parray), n); + public static int makeUxArray(coin_UxOutArray parray, int n) { + int ret = skycoinPINVOKE.makeUxArray(coin_UxOutArray.getCPtr(parray), n); return ret; } @@ -721,8 +800,8 @@ public static uint SKY_coin_AddressUxOuts_Set(SWIGTYPE_p_AddressUxOuts_Handle p0 return ret; } - public static uint SKY_coin_AddressUxOuts_Keys(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher_SHA256s __out_hashes) { - uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Keys__SWIG_0(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher_SHA256s.getCPtr(__out_hashes)); + public static uint SKY_coin_AddressUxOuts_Keys(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher_Addresses __out_addr) { + uint ret = skycoinPINVOKE.SKY_coin_AddressUxOuts_Keys__SWIG_0(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher_Addresses.getCPtr(__out_addr)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -749,6 +828,22 @@ public static uint SKY_coin_GetTransactionObject(SWIGTYPE_p_Transaction__Handle return ret; } + public static uint SKY_coin_UxBody_Hash(coin__UxBody p0, cipher_SHA256 p1) { + uint ret = skycoinPINVOKE.SKY_coin_UxBody_Hash__SWIG_0(coin__UxBody.getCPtr(p0), cipher_SHA256.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_UxOut_SnapshotHash(coin__UxOut p0, cipher_SHA256 p1) { + uint ret = skycoinPINVOKE.SKY_coin_UxOut_SnapshotHash__SWIG_0(coin__UxOut.getCPtr(p0), cipher_SHA256.getCPtr(p1)); + return ret; + } + + public static uint SKY_fee_TransactionFee(SWIGTYPE_p_Transaction__Handle handle, ulong p1, coin_UxOutArray __uxIn, SWIGTYPE_p_unsigned_long_long p3) { + uint ret = skycoinPINVOKE.SKY_fee_TransactionFee__SWIG_0(SWIGTYPE_p_Transaction__Handle.getCPtr(handle), p1, coin_UxOutArray.getCPtr(__uxIn), SWIGTYPE_p_unsigned_long_long.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + public static uint SKY_coin_NewBlock(SWIGTYPE_p_Block__Handle p0, ulong p1, cipher_SecKey p2, SWIGTYPE_p_Transactions__Handle p3, SWIGTYPE_p_FeeCalculator p4, SWIGTYPE_p_Block__Handle p5) { var tmpp2 = cipher_SecKey.getCPtr (p2); { @@ -1361,7 +1456,7 @@ public static uint SKY_secp256k1go_XY_Neg(secp256k1go__XY p0, secp256k1go__XY p1 return ret; } - public static uint SKY_secp256k1go_XY_SetXO(secp256k1go__XY p0, secp256k1go__Field p1, char p2) { + public static uint SKY_secp256k1go_XY_SetXO(secp256k1go__XY p0, secp256k1go__Field p1, byte p2) { uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_SetXO(secp256k1go__XY.getCPtr(p0), secp256k1go__Field.getCPtr(p1), p2); return ret; } @@ -1532,7 +1627,7 @@ public static uint SKY_wallet_Wallet_AddEntry(SWIGTYPE_p_Wallet__Handle p0, wall return ret; } - public static uint SKY_wallet_DistributeSpendHours(ulong p0, ulong p1, char p2, SWIGTYPE_p_unsigned_long_long p3, GoSlice p4, SWIGTYPE_p_unsigned_long_long p5) { + public static uint SKY_wallet_DistributeSpendHours(ulong p0, ulong p1, byte p2, SWIGTYPE_p_unsigned_long_long p3, GoSlice p4, SWIGTYPE_p_unsigned_long_long p5) { uint ret = skycoinPINVOKE.SKY_wallet_DistributeSpendHours(p0, p1, p2, SWIGTYPE_p_unsigned_long_long.getCPtr(p3), GoSlice.getCPtr (p4), SWIGTYPE_p_unsigned_long_long.getCPtr(p5)); return ret; } @@ -1642,7 +1737,7 @@ public static uint SKY_wallet_ReadableWallet_Erase(SWIGTYPE_p_ReadableWallet__Ha return ret; } - public static uint SKY_secp256k1go_DecompressPoint(GoSlice p0, char p1, GoSlice p2) { + public static uint SKY_secp256k1go_DecompressPoint(GoSlice p0, byte p1, GoSlice p2) { uint ret = skycoinPINVOKE.SKY_secp256k1go_DecompressPoint(GoSlice.getCPtr(p0), p1, GoSlice.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; @@ -2384,7 +2479,7 @@ public static uint SKY_wallet_Entry_VerifyPublic(wallet__Entry p0) { return ret; } - public static uint SKY_wallet_CreateAddresses(string p0, string p1, long p2, char p3, SWIGTYPE_p_ReadableWallet__Handle p4) { + public static uint SKY_wallet_CreateAddresses(string p0, string p1, long p2, byte p3, SWIGTYPE_p_ReadableWallet__Handle p4) { var tmpp0 = p0; var tmpp1 = p1; { @@ -2542,10 +2637,10 @@ public static uint SKY_map_Get(SWIGTYPE_p_GoStringMap_ p0, string p1, _GoString_ } } - public static char SKY_map_HasKey(SWIGTYPE_p_GoStringMap_ p0, string p1) { + public static byte SKY_map_HasKey(SWIGTYPE_p_GoStringMap_ p0, string p1) { var tmpp1 = p1; { - char ret = skycoinPINVOKE.SKY_map_HasKey(SWIGTYPE_p_GoStringMap_.getCPtr(p0), tmpp1); + byte ret = skycoinPINVOKE.SKY_map_HasKey(SWIGTYPE_p_GoStringMap_.getCPtr(p0), tmpp1); return ret; } } @@ -2945,7 +3040,7 @@ public static uint SKY_coin_UxOut_Hash(coin__UxOut p0, cipher_SecKey p1) { public static uint SKY_coin_UxOut_SnapshotHash(coin__UxOut p0, cipher_SecKey p1) { var tmpp1 = cipher_SecKey.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_coin_UxOut_SnapshotHash(coin__UxOut.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_coin_UxOut_SnapshotHash__SWIG_1(coin__UxOut.getCPtr(p0), tmpp1); return ret; } } @@ -2953,7 +3048,7 @@ public static uint SKY_coin_UxOut_SnapshotHash(coin__UxOut p0, cipher_SecKey p1) public static uint SKY_coin_UxBody_Hash(coin__UxBody p0, cipher_SecKey p1) { var tmpp1 = cipher_SecKey.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_coin_UxBody_Hash(coin__UxBody.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_coin_UxBody_Hash__SWIG_1(coin__UxBody.getCPtr(p0), tmpp1); return ret; } } @@ -3084,7 +3179,7 @@ public static uint SKY_encrypt_ScryptChacha20poly1305_Decrypt(encrypt__ScryptCha return ret; } - public static uint SKY_wallet_CreateOptionsHandle(string p0, string p1, string p2, char p3, string p4, string p5, ulong p6, SWIGTYPE_p_Options__Handle p7) { + public static uint SKY_wallet_CreateOptionsHandle(string p0, string p1, string p2, byte p3, string p4, string p5, ulong p6, SWIGTYPE_p_Options__Handle p7) { var tmpp0 = p0; var tmpp1 = p1; var tmpp2 = p2; @@ -3261,7 +3356,7 @@ public static uint SKY_fee_RemainingHours(ulong p0, SWIGTYPE_p_unsigned_long_lon } public static uint SKY_fee_TransactionFee(SWIGTYPE_p_Transaction__Handle p0, ulong p1, GoSlice p2, SWIGTYPE_p_unsigned_long_long p3) { - uint ret = skycoinPINVOKE.SKY_fee_TransactionFee(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, GoSlice.getCPtr (p2), SWIGTYPE_p_unsigned_long_long.getCPtr(p3)); + uint ret = skycoinPINVOKE.SKY_fee_TransactionFee__SWIG_1(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, GoSlice.getCPtr (p2), SWIGTYPE_p_unsigned_long_long.getCPtr(p3)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index 3f09f4b2..8928a36f 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -248,6 +248,21 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_intp_value")] public static extern int intp_value(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__Transactionp")] + public static extern global::System.IntPtr new_coin__Transactionp(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_coin__Transactionp")] + public static extern global::System.IntPtr copy_coin__Transactionp(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__Transactionp")] + public static extern void delete_coin__Transactionp(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transactionp_assign")] + public static extern void coin__Transactionp_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transactionp_value")] + public static extern global::System.IntPtr coin__Transactionp_value(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_Transaction__Handlep")] public static extern global::System.IntPtr new_Transaction__Handlep(); @@ -263,6 +278,21 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Transaction__Handlep_value")] public static extern global::System.IntPtr Transaction__Handlep_value(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_AddressUxOuts__HandlePtr")] + public static extern global::System.IntPtr new_AddressUxOuts__HandlePtr(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_AddressUxOuts__HandlePtr")] + public static extern global::System.IntPtr copy_AddressUxOuts__HandlePtr(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_AddressUxOuts__HandlePtr")] + public static extern void delete_AddressUxOuts__HandlePtr(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_AddressUxOuts__HandlePtr_assign")] + public static extern void AddressUxOuts__HandlePtr_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_AddressUxOuts__HandlePtr_value")] + public static extern global::System.IntPtr AddressUxOuts__HandlePtr_value(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_GoUint64p")] public static extern global::System.IntPtr new_GoUint64p(); @@ -338,6 +368,21 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Transactions__Handlep_value")] public static extern global::System.IntPtr Transactions__Handlep_value(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_charp")] + public static extern global::System.IntPtr new_charp(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_charp")] + public static extern global::System.IntPtr copy_charp(byte jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_charp")] + public static extern void delete_charp(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_charp_assign")] + public static extern void charp_assign(global::System.Runtime.InteropServices.HandleRef jarg1, byte jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_charp_value")] + public static extern byte charp_value(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_handle_close")] public static extern void SKY_handle_close(global::System.Runtime.InteropServices.HandleRef jarg1); @@ -620,6 +665,15 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetTransactionObject__SWIG_0")] public static extern uint SKY_coin_GetTransactionObject__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxBody_Hash__SWIG_0")] + public static extern uint SKY_coin_UxBody_Hash__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxOut_SnapshotHash__SWIG_0")] + public static extern uint SKY_coin_UxOut_SnapshotHash__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_TransactionFee__SWIG_0")] + public static extern uint SKY_fee_TransactionFee__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKey_isEqual")] public static extern int cipher_PubKey_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -887,6 +941,21 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin_UxOutArray")] public static extern void delete_coin_UxOutArray(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Addresses_getAt")] + public static extern global::System.IntPtr cipher_Addresses_getAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Addresses_setAt")] + public static extern int cipher_Addresses_setAt(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Addresses_isEqual")] + public static extern int cipher_Addresses_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Addresses_allocate")] + public static extern void cipher_Addresses_allocate(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Addresses_release")] + public static extern void cipher_Addresses_release(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cipher_Addresses_data")] public static extern void set_cipher_Addresses_data(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1248,7 +1317,7 @@ static skycoinPINVOKE() { public static extern uint SKY_secp256k1go_XY_Neg(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_SetXO")] - public static extern uint SKY_secp256k1go_XY_SetXO(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, char jarg3); + public static extern uint SKY_secp256k1go_XY_SetXO(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, byte jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_AddXY")] public static extern uint SKY_secp256k1go_XY_AddXY(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1323,7 +1392,7 @@ static skycoinPINVOKE() { public static extern uint SKY_wallet_Wallet_AddEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_DistributeSpendHours")] - public static extern uint SKY_wallet_DistributeSpendHours(ulong jarg1, ulong jarg2, char jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); + public static extern uint SKY_wallet_DistributeSpendHours(ulong jarg1, ulong jarg2, byte jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_DistributeCoinHoursProportional")] public static extern uint SKY_wallet_DistributeCoinHoursProportional(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -1371,7 +1440,7 @@ static skycoinPINVOKE() { public static extern uint SKY_wallet_ReadableWallet_Erase(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_DecompressPoint")] - public static extern uint SKY_secp256k1go_DecompressPoint(global::System.Runtime.InteropServices.HandleRef jarg1, char jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_secp256k1go_DecompressPoint(global::System.Runtime.InteropServices.HandleRef jarg1, byte jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_RecoverPublicKey")] public static extern uint SKY_secp256k1go_RecoverPublicKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); @@ -1680,7 +1749,7 @@ static skycoinPINVOKE() { public static extern uint SKY_wallet_Entry_VerifyPublic(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_CreateAddresses")] - public static extern uint SKY_wallet_CreateAddresses(string jarg1, string jarg2, long jarg3, char jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); + public static extern uint SKY_wallet_CreateAddresses(string jarg1, string jarg2, long jarg3, byte jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_GetSkycoinWalletEntry")] public static extern uint SKY_wallet_GetSkycoinWalletEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -1755,7 +1824,7 @@ static skycoinPINVOKE() { public static extern uint SKY_map_Get(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_map_HasKey")] - public static extern char SKY_map_HasKey(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + public static extern byte SKY_map_HasKey(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_map_Close")] public static extern uint SKY_map_Close(global::System.Runtime.InteropServices.HandleRef jarg1); @@ -1922,11 +1991,11 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxOut_Hash__SWIG_1")] public static extern uint SKY_coin_UxOut_Hash__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxOut_SnapshotHash")] - public static extern uint SKY_coin_UxOut_SnapshotHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxOut_SnapshotHash__SWIG_1")] + public static extern uint SKY_coin_UxOut_SnapshotHash__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxBody_Hash")] - public static extern uint SKY_coin_UxBody_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxBody_Hash__SWIG_1")] + public static extern uint SKY_coin_UxBody_Hash__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxOut_CoinHours")] public static extern uint SKY_coin_UxOut_CoinHours(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -1998,7 +2067,7 @@ static skycoinPINVOKE() { public static extern uint SKY_encrypt_ScryptChacha20poly1305_Decrypt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_CreateOptionsHandle")] - public static extern uint SKY_wallet_CreateOptionsHandle(string jarg1, string jarg2, string jarg3, char jarg4, string jarg5, string jarg6, ulong jarg7, global::System.Runtime.InteropServices.HandleRef jarg8); + public static extern uint SKY_wallet_CreateOptionsHandle(string jarg1, string jarg2, string jarg3, byte jarg4, string jarg5, string jarg6, ulong jarg7, global::System.Runtime.InteropServices.HandleRef jarg8); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_AddPrivateKey")] public static extern uint SKY_cli_AddPrivateKey(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); @@ -2078,8 +2147,8 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_RemainingHours")] public static extern uint SKY_fee_RemainingHours(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_TransactionFee")] - public static extern uint SKY_fee_TransactionFee(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_TransactionFee__SWIG_1")] + public static extern uint SKY_fee_TransactionFee__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_LoadConfig")] public static extern uint SKY_cli_LoadConfig(global::System.Runtime.InteropServices.HandleRef jarg1); @@ -2388,10 +2457,10 @@ static skycoinPINVOKE() { public static extern void cipher__Address_setVersion(global::System.Runtime.InteropServices.HandleRef jarg1, char jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cipher__Address_Version")] - public static extern void set_cipher__Address_Version(global::System.Runtime.InteropServices.HandleRef jarg1, char jarg2); + public static extern void set_cipher__Address_Version(global::System.Runtime.InteropServices.HandleRef jarg1, byte jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_cipher__Address_Version")] - public static extern char get_cipher__Address_Version(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern byte get_cipher__Address_Version(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cipher__Address_Key")] public static extern void set_cipher__Address_Key(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -2729,6 +2798,9 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__UxHead")] public static extern void delete_coin__UxHead(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__UxBody_SetSrcTransaction")] + public static extern void coin__UxBody_SetSrcTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__UxBody_SrcTransaction")] public static extern void set_coin__UxBody_SrcTransaction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index df99d3c3..2bd54741 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -406,6 +406,29 @@ static int intp_value(int *obj) { } +static coin__Transaction *new_coin__Transactionp() { + return (coin__Transaction *) calloc(1,sizeof(coin__Transaction)); +} + +static coin__Transaction *copy_coin__Transactionp(coin__Transaction value) { + coin__Transaction *obj = (coin__Transaction *) calloc(1,sizeof(coin__Transaction)); + *obj = value; + return obj; +} + +static void delete_coin__Transactionp(coin__Transaction *obj) { + if (obj) free(obj); +} + +static void coin__Transactionp_assign(coin__Transaction *obj, coin__Transaction value) { + *obj = value; +} + +static coin__Transaction coin__Transactionp_value(coin__Transaction *obj) { + return *obj; +} + + static Transaction__Handle *new_Transaction__Handlep() { return (Transaction__Handle *) calloc(1,sizeof(Transaction__Handle)); } @@ -429,6 +452,29 @@ static Transaction__Handle Transaction__Handlep_value(Transaction__Handle *obj) } +static AddressUxOuts_Handle *new_AddressUxOuts__HandlePtr() { + return (AddressUxOuts_Handle *) calloc(1,sizeof(AddressUxOuts_Handle)); +} + +static AddressUxOuts_Handle *copy_AddressUxOuts__HandlePtr(AddressUxOuts_Handle value) { + AddressUxOuts_Handle *obj = (AddressUxOuts_Handle *) calloc(1,sizeof(AddressUxOuts_Handle)); + *obj = value; + return obj; +} + +static void delete_AddressUxOuts__HandlePtr(AddressUxOuts_Handle *obj) { + if (obj) free(obj); +} + +static void AddressUxOuts__HandlePtr_assign(AddressUxOuts_Handle *obj, AddressUxOuts_Handle value) { + *obj = value; +} + +static AddressUxOuts_Handle AddressUxOuts__HandlePtr_value(AddressUxOuts_Handle *obj) { + return *obj; +} + + static unsigned long long *new_GoUint64p() { return (unsigned long long *) calloc(1,sizeof(unsigned long long)); } @@ -544,6 +590,29 @@ static Transactions__Handle Transactions__Handlep_value(Transactions__Handle *ob } +static unsigned char *new_charp() { + return (unsigned char *) calloc(1,sizeof(unsigned char)); +} + +static unsigned char *copy_charp(unsigned char value) { + unsigned char *obj = (unsigned char *) calloc(1,sizeof(unsigned char)); + *obj = value; + return obj; +} + +static void delete_charp(unsigned char *obj) { + if (obj) free(obj); +} + +static void charp_assign(unsigned char *obj, unsigned char value) { + *obj = value; +} + +static unsigned char charp_value(unsigned char *obj) { + return *obj; +} + + #include "json.h" //Define function SKY_handle_close to avoid including libskycoin.h void SKY_handle_close(Handle p0); @@ -927,12 +996,12 @@ int makeUxOut(coin__UxOut* puxOut){ cipher__SecKey seckey; return makeUxOutWithSecret(puxOut, &seckey); } -int makeUxArray(GoSlice* parray, int n){ +int makeUxArray(coin_UxOutArray* parray, int n){ parray->data = malloc( sizeof(coin__UxOut) * n ); if(!parray->data) return 1; registerMemCleanup( parray->data ); - parray->cap = parray->len = n; + parray->count = parray->count = n; coin__UxOut* p = (coin__UxOut*)parray->data; int result = 0; for(int i = 0; i < n; i++){ @@ -1358,15 +1427,15 @@ int makeTransactions(int n, Transactions__Handle* handle){ } - GoUint32 CSharp_skycoin_SKY_coin_AddressUxOuts_Keys(AddressUxOuts_Handle p0, cipher_SHA256s* __out_hashes){ + GoUint32 CSharp_skycoin_SKY_coin_AddressUxOuts_Keys(AddressUxOuts_Handle p0, cipher_Addresses* __out_addr){ GoSlice_ data; data.data = NULL; data.len = 0; data.cap = 0; GoUint32 result = SKY_coin_AddressUxOuts_Keys(p0, &data); if( result == 0){ - __out_hashes->data = data.data; - __out_hashes->count = data.len; + __out_addr->data = data.data; + __out_addr->count = data.len; } return result; } @@ -1403,6 +1472,28 @@ int makeTransactions(int n, Transactions__Handle* handle){ return result; } + + GoUint32 CSharp_skycoin_SKY_coin_UxBody_Hash(coin__UxBody* p0, cipher_SHA256* p1){ + GoUint32 result = SKY_coin_UxBody_Hash(p0,p1); + return result; + } + + + GoUint32 CSharp_skycoin_SKY_coin_UxOut_SnapshotHash(coin__UxOut* p0, cipher_SHA256* p1){ + GoUint32 result = SKY_coin_UxOut_SnapshotHash(p0,p1); + return result; + } + + + GoUint32 CSharp_skycoin_SKY_fee_TransactionFee(Transaction__Handle handle , GoUint64 p1,coin_UxOutArray* __uxIn, GoUint64* p3){ + GoSlice_ dataIn; + dataIn.data = __uxIn->data; + dataIn.len = __uxIn->count; + dataIn.cap = __uxIn->count; + GoUint32 result = SKY_fee_TransactionFee(handle, p1,&dataIn,p3); + return result; + }; + SWIGINTERN int cipher_PubKey_isEqual(cipher_PubKey *self,cipher_PubKey *a){ return memcmp(self->data, a->data, sizeof(a->data)) == 0; } @@ -1569,13 +1660,42 @@ SWIGINTERN void coin_UxOutArray_allocate(coin_UxOutArray *self,int n){ self->count = n; } SWIGINTERN void coin_UxOutArray_append(coin_UxOutArray *self,coin__UxOut *uxout){ - coin_UxOutArray_allocate(self,self->count+1); - coin_UxOutArray_setAt(self,self->count+1,uxout); + int n = self->count+1; + self->data = malloc(n * sizeof(*(self->data))); + self->count =n ; + memcpy(&self->data[n-1], uxout, sizeof(*uxout)); + } SWIGINTERN void coin_UxOutArray_release(coin_UxOutArray *self){ if(self->data != NULL) free(self->data); } +SWIGINTERN cipher__Address *cipher_Addresses_getAt(cipher_Addresses *self,int i){ + if( i < self->count ){ + return &self->data[i]; + } + else + return NULL; + } +SWIGINTERN int cipher_Addresses_setAt(cipher_Addresses *self,int i,cipher_Addresses *addr){ + if( i < self->count){ + memcpy(&self->data[i], addr, sizeof(*addr)); + return i; + } else { + return -1; + } + } +SWIGINTERN int cipher_Addresses_isEqual(cipher_Addresses *self,cipher_Addresses *a){ + return self->count == a->count && memcmp(self->data, a->data, sizeof(cipher__Address) * self->count) == 0; + } +SWIGINTERN void cipher_Addresses_allocate(cipher_Addresses *self,int n){ + self->data = malloc(n * sizeof(*(self->data))); + self->count = n; + } +SWIGINTERN void cipher_Addresses_release(cipher_Addresses *self){ + if(self->data != NULL) + free(self->data); + } SWIGINTERN int _GoString__SetString(_GoString_ *self,char *str){ self->p = str; self->n = strlen(str); @@ -1639,6 +1759,10 @@ SWIGINTERN int coin__BlockHeader_isEqual(coin__BlockHeader *self,coin__BlockHead SWIGINTERN int coin__BlockBody_isEqual(coin__BlockBody *self,coin__BlockBody *b){ return equalTransactionsArrays(&self->Transactions, &b->Transactions); } +SWIGINTERN void coin__UxBody_SetSrcTransaction(coin__UxBody *self,cipher_SHA256 *o){ + cipher_SHA256* p = (cipher_SHA256*)o; + memcpy( &self->SrcTransaction, &p->data, sizeof(cipher__SHA256)); + } SWIGINTERN int coin__UxOut_isEqual(coin__UxOut *self,coin__UxOut *u){ return memcmp(&self, u, sizeof(coin__UxOut)) == 0; } @@ -1901,6 +2025,74 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_intp_value(void * jarg1) { } +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__Transactionp() { + void * jresult ; + coin__Transaction *result = 0 ; + + result = (coin__Transaction *)new_coin__Transactionp(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_coin__Transactionp(void * jarg1) { + void * jresult ; + coin__Transaction arg1 ; + coin__Transaction *argp1 ; + coin__Transaction *result = 0 ; + + argp1 = (coin__Transaction *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null coin__Transaction", 0); + return 0; + } + arg1 = *argp1; + result = (coin__Transaction *)copy_coin__Transactionp(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__Transactionp(void * jarg1) { + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + + arg1 = (coin__Transaction *)jarg1; + delete_coin__Transactionp(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__Transactionp_assign(void * jarg1, void * jarg2) { + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + coin__Transaction arg2 ; + coin__Transaction *argp2 ; + + arg1 = (coin__Transaction *)jarg1; + argp2 = (coin__Transaction *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null coin__Transaction", 0); + return ; + } + arg2 = *argp2; + coin__Transactionp_assign(arg1,arg2); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Transactionp_value(void * jarg1) { + void * jresult ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + coin__Transaction result; + + arg1 = (coin__Transaction *)jarg1; + result = coin__Transactionp_value(arg1); + { + coin__Transaction * resultptr = (coin__Transaction *) malloc(sizeof(coin__Transaction)); + memmove(resultptr, &result, sizeof(coin__Transaction)); + jresult = resultptr; + } + return jresult; +} + + SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_Transaction__Handlep() { void * jresult ; Transaction__Handle *result = 0 ; @@ -1969,6 +2161,74 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_Transaction__Handlep_value(void * j } +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_AddressUxOuts__HandlePtr() { + void * jresult ; + AddressUxOuts_Handle *result = 0 ; + + result = (AddressUxOuts_Handle *)new_AddressUxOuts__HandlePtr(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_AddressUxOuts__HandlePtr(void * jarg1) { + void * jresult ; + AddressUxOuts_Handle arg1 ; + AddressUxOuts_Handle *argp1 ; + AddressUxOuts_Handle *result = 0 ; + + argp1 = (AddressUxOuts_Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + return 0; + } + arg1 = *argp1; + result = (AddressUxOuts_Handle *)copy_AddressUxOuts__HandlePtr(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_AddressUxOuts__HandlePtr(void * jarg1) { + AddressUxOuts_Handle *arg1 = (AddressUxOuts_Handle *) 0 ; + + arg1 = (AddressUxOuts_Handle *)jarg1; + delete_AddressUxOuts__HandlePtr(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_AddressUxOuts__HandlePtr_assign(void * jarg1, void * jarg2) { + AddressUxOuts_Handle *arg1 = (AddressUxOuts_Handle *) 0 ; + AddressUxOuts_Handle arg2 ; + AddressUxOuts_Handle *argp2 ; + + arg1 = (AddressUxOuts_Handle *)jarg1; + argp2 = (AddressUxOuts_Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null AddressUxOuts_Handle", 0); + return ; + } + arg2 = *argp2; + AddressUxOuts__HandlePtr_assign(arg1,arg2); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_AddressUxOuts__HandlePtr_value(void * jarg1) { + void * jresult ; + AddressUxOuts_Handle *arg1 = (AddressUxOuts_Handle *) 0 ; + AddressUxOuts_Handle result; + + arg1 = (AddressUxOuts_Handle *)jarg1; + result = AddressUxOuts__HandlePtr_value(arg1); + { + AddressUxOuts_Handle * resultptr = (AddressUxOuts_Handle *) malloc(sizeof(AddressUxOuts_Handle)); + memmove(resultptr, &result, sizeof(AddressUxOuts_Handle)); + jresult = resultptr; + } + return jresult; +} + + SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_GoUint64p() { void * jresult ; unsigned long long *result = 0 ; @@ -2261,6 +2521,58 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_Transactions__Handlep_value(void * } +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_charp() { + void * jresult ; + unsigned char *result = 0 ; + + result = (unsigned char *)new_charp(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_charp(unsigned char jarg1) { + void * jresult ; + unsigned char arg1 ; + unsigned char *result = 0 ; + + arg1 = (unsigned char)jarg1; + result = (unsigned char *)copy_charp(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_charp(void * jarg1) { + unsigned char *arg1 = (unsigned char *) 0 ; + + arg1 = (unsigned char *)jarg1; + delete_charp(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_charp_assign(void * jarg1, unsigned char jarg2) { + unsigned char *arg1 = (unsigned char *) 0 ; + unsigned char arg2 ; + + arg1 = (unsigned char *)jarg1; + arg2 = (unsigned char)jarg2; + charp_assign(arg1,arg2); +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_skycoin_charp_value(void * jarg1) { + unsigned char jresult ; + unsigned char *arg1 = (unsigned char *) 0 ; + unsigned char result; + + arg1 = (unsigned char *)jarg1; + result = (unsigned char)charp_value(arg1); + jresult = result; + return jresult; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_handle_close(void * jarg1) { Handle arg1 ; @@ -2867,11 +3179,11 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_makeUxOut(void * jarg1) { SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_makeUxArray(void * jarg1, int jarg2) { int jresult ; - GoSlice *arg1 = (GoSlice *) 0 ; + coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; int arg2 ; int result; - arg1 = (GoSlice *)jarg1; + arg1 = (coin_UxOutArray *)jarg1; arg2 = (int)jarg2; result = (int)makeUxArray(arg1,arg2); jresult = result; @@ -3547,7 +3859,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Set__S SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Keys__SWIG_0(void * jarg1, void * jarg2) { unsigned int jresult ; AddressUxOuts_Handle arg1 ; - cipher_SHA256s *arg2 = (cipher_SHA256s *) 0 ; + cipher_Addresses *arg2 = (cipher_Addresses *) 0 ; AddressUxOuts_Handle *argp1 ; GoUint32 result; @@ -3557,7 +3869,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_AddressUxOuts_Keys__ return 0; } arg1 = *argp1; - arg2 = (cipher_SHA256s *)jarg2; + arg2 = (cipher_Addresses *)jarg2; result = (GoUint32)CSharp_skycoin_SKY_coin_AddressUxOuts_Keys(arg1,arg2); jresult = result; return jresult; @@ -3634,6 +3946,58 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetTransactionObject } +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxBody_Hash__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; + GoUint32 result; + + arg1 = (coin__UxBody *)jarg1; + arg2 = (cipher_SHA256 *)jarg2; + result = (GoUint32)CSharp_skycoin_SKY_coin_UxBody_Hash(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_SnapshotHash__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; + GoUint32 result; + + arg1 = (coin__UxOut *)jarg1; + arg2 = (cipher_SHA256 *)jarg2; + result = (GoUint32)CSharp_skycoin_SKY_coin_UxOut_SnapshotHash(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_TransactionFee__SWIG_0(void * jarg1, unsigned long long jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoUint64 arg2 ; + coin_UxOutArray *arg3 = (coin_UxOutArray *) 0 ; + GoUint64 *arg4 = (GoUint64 *) 0 ; + Transaction__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64)jarg2; + arg3 = (coin_UxOutArray *)jarg3; + arg4 = (GoUint64 *)jarg4; + result = (GoUint32)CSharp_skycoin_SKY_fee_TransactionFee(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_PubKey_isEqual(void * jarg1, void * jarg2) { int jresult ; cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; @@ -4640,6 +5004,68 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin_UxOutArray(void * jarg1) } +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_Addresses_getAt(void * jarg1, int jarg2) { + void * jresult ; + cipher_Addresses *arg1 = (cipher_Addresses *) 0 ; + int arg2 ; + cipher__Address *result = 0 ; + + arg1 = (cipher_Addresses *)jarg1; + arg2 = (int)jarg2; + result = (cipher__Address *)cipher_Addresses_getAt(arg1,arg2); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_Addresses_setAt(void * jarg1, int jarg2, void * jarg3) { + int jresult ; + cipher_Addresses *arg1 = (cipher_Addresses *) 0 ; + int arg2 ; + cipher_Addresses *arg3 = (cipher_Addresses *) 0 ; + int result; + + arg1 = (cipher_Addresses *)jarg1; + arg2 = (int)jarg2; + arg3 = (cipher_Addresses *)jarg3; + result = (int)cipher_Addresses_setAt(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_Addresses_isEqual(void * jarg1, void * jarg2) { + int jresult ; + cipher_Addresses *arg1 = (cipher_Addresses *) 0 ; + cipher_Addresses *arg2 = (cipher_Addresses *) 0 ; + int result; + + arg1 = (cipher_Addresses *)jarg1; + arg2 = (cipher_Addresses *)jarg2; + result = (int)cipher_Addresses_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Addresses_allocate(void * jarg1, int jarg2) { + cipher_Addresses *arg1 = (cipher_Addresses *) 0 ; + int arg2 ; + + arg1 = (cipher_Addresses *)jarg1; + arg2 = (int)jarg2; + cipher_Addresses_allocate(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Addresses_release(void * jarg1) { + cipher_Addresses *arg1 = (cipher_Addresses *) 0 ; + + arg1 = (cipher_Addresses *)jarg1; + cipher_Addresses_release(arg1); +} + + SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher_Addresses_data(void * jarg1, void * jarg2) { cipher_Addresses *arg1 = (cipher_Addresses *) 0 ; cipher__Address *arg2 = (cipher__Address *) 0 ; @@ -6849,7 +7275,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_Neg(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_SetXO(void * jarg1, void * jarg2, char jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_SetXO(void * jarg1, void * jarg2, unsigned char jarg3) { unsigned int jresult ; secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; @@ -7353,7 +7779,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Wallet_AddEntry(vo } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_DistributeSpendHours(unsigned long long jarg1, unsigned long long jarg2, char jarg3, void * jarg4, GoSlice_ * jarg5, void * jarg6) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_DistributeSpendHours(unsigned long long jarg1, unsigned long long jarg2, unsigned char jarg3, void * jarg4, GoSlice_ * jarg5, void * jarg6) { unsigned int jresult ; GoUint64 arg1 ; GoUint64 arg2 ; @@ -7661,7 +8087,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableWallet_Era } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_DecompressPoint(void * jarg1, char jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_DecompressPoint(void * jarg1, unsigned char jarg2, void * jarg3) { unsigned int jresult ; GoSlice arg1 ; GoUint8 arg2 ; @@ -9545,7 +9971,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Entry_VerifyPublic } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateAddresses(char* jarg1, char* jarg2, long long jarg3, char jarg4, void * jarg5) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateAddresses(char* jarg1, char* jarg2, long long jarg3, unsigned char jarg4, void * jarg5) { unsigned int jresult ; GoString arg1 ; GoString arg2 ; @@ -9953,8 +10379,8 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_map_Get(void * jarg1, cha } -SWIGEXPORT char SWIGSTDCALL CSharp_skycoin_SKY_map_HasKey(void * jarg1, char* jarg2) { - char jresult ; +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_skycoin_SKY_map_HasKey(void * jarg1, char* jarg2) { + unsigned char jresult ; GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; GoString arg2 ; GoUint8 result; @@ -10961,7 +11387,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_Hash__SWIG_1(v } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_SnapshotHash(void * jarg1, cipher_SecKey* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_SnapshotHash__SWIG_1(void * jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; coin__UxOut *arg1 = (coin__UxOut *) 0 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; @@ -10975,7 +11401,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_SnapshotHash(v } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxBody_Hash(void * jarg1, cipher_SecKey* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxBody_Hash__SWIG_1(void * jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; coin__UxBody *arg1 = (coin__UxBody *) 0 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; @@ -11433,7 +11859,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_ScryptChacha20pol } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateOptionsHandle(char* jarg1, char* jarg2, char* jarg3, char jarg4, char* jarg5, char* jarg6, unsigned long long jarg7, void * jarg8) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateOptionsHandle(char* jarg1, char* jarg2, char* jarg3, unsigned char jarg4, char* jarg5, char* jarg6, unsigned long long jarg7, void * jarg8) { unsigned int jresult ; GoString arg1 ; GoString arg2 ; @@ -12003,7 +12429,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_RemainingHours(unsign } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_TransactionFee(void * jarg1, unsigned long long jarg2, GoSlice_ * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_TransactionFee__SWIG_1(void * jarg1, unsigned long long jarg2, GoSlice_ * jarg3, void * jarg4) { unsigned int jresult ; Transaction__Handle arg1 ; GoUint64 arg2 ; @@ -13991,7 +14417,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher__Address_setVersion(void * jar } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher__Address_Version(void * jarg1, char jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher__Address_Version(void * jarg1, unsigned char jarg2) { cipher__Address *arg1 = (cipher__Address *) 0 ; GoUint8_ arg2 ; @@ -14001,8 +14427,8 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher__Address_Version(void * ja } -SWIGEXPORT char SWIGSTDCALL CSharp_skycoin_get_cipher__Address_Version(void * jarg1) { - char jresult ; +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_skycoin_get_cipher__Address_Version(void * jarg1) { + unsigned char jresult ; cipher__Address *arg1 = (cipher__Address *) 0 ; GoUint8_ result; @@ -15377,6 +15803,16 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__UxHead(void * jarg1) { } +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__UxBody_SetSrcTransaction(void * jarg1, void * jarg2) { + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; + + arg1 = (coin__UxBody *)jarg1; + arg2 = (cipher_SHA256 *)jarg2; + coin__UxBody_SetSrcTransaction(arg1,arg2); +} + + SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__UxBody_SrcTransaction(void * jarg1, void * jarg2) { coin__UxBody *arg1 = (coin__UxBody *) 0 ; GoUint8_ *arg2 ; diff --git a/LibskycoinNetTest/LibskycoinNetTest.csproj b/LibskycoinNetTest/LibskycoinNetTest.csproj index dc8fa10f..46118806 100644 --- a/LibskycoinNetTest/LibskycoinNetTest.csproj +++ b/LibskycoinNetTest/LibskycoinNetTest.csproj @@ -43,7 +43,8 @@ - + + diff --git a/LibskycoinNetTest/check_cipher_encrypt_scrypt_chacha20poly1305.cs b/LibskycoinNetTest/check_cipher_encrypt_scrypt_chacha20poly1305.cs index bff5dee6..45bf453f 100644 --- a/LibskycoinNetTest/check_cipher_encrypt_scrypt_chacha20poly1305.cs +++ b/LibskycoinNetTest/check_cipher_encrypt_scrypt_chacha20poly1305.cs @@ -5,7 +5,8 @@ namespace LibskycoinNetTest { [TestFixture ()] public class check_cipher_encrypt_scrypt_chacha20poly1305 { - [Test] + // [Test] + // [Test] public void TestScryptChacha20poly1305Encrypt () { for (int i = 1; i < 20; i++) { var name = "N=1<<" + i.ToString () + "(" + (1 << i).ToString () + ")" + ", R=8, p=1, keyLen=32"; @@ -27,7 +28,7 @@ public void TestScryptChacha20poly1305Encrypt () { var err = skycoin.skycoin.SKY_encrypt_ScryptChacha20poly1305_Encrypt (crypto, plain, passwd, encData); Assert.AreEqual (err, skycoin.skycoin.SKY_OK, name); Assert.AreEqual (encData.len > 2, true); - string str = (string) encData.toString ().p; + string str = (string) encData.ToString(); var base64 = Convert.FromBase64String (str); var meta = System.Text.ASCIIEncoding.ASCII.GetString (base64); Assert.AreEqual (base64.Length >= 2, true); diff --git a/LibskycoinNetTest/check_coin_outputs.cs b/LibskycoinNetTest/check_coin_outputs.cs new file mode 100644 index 00000000..a91bc558 --- /dev/null +++ b/LibskycoinNetTest/check_coin_outputs.cs @@ -0,0 +1,634 @@ +using System; +using NUnit.Framework; +using skycoin; +using utils; +namespace LibskycoinNetTest { + [TestFixture ()] + public class check_coin_outputs { + + utils.transutils transutils = new utils.transutils (); + + public void TestUxBodyHash () { + var uxb = transutils.makeUxBody (); + var hasx = new cipher_SHA256 (); + var err = skycoin.skycoin.SKY_coin_UxBody_Hash (uxb, hasx); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (hasx.isEqual (new cipher_SHA256 ()), 0); + } + + [Test] + public void TestUxOutHash () { + var uxb = transutils.makeUxBody (); + var uxo = transutils.makeUxOut (); + uxo.Body = uxb; + var hash_body = new cipher_SHA256 (); + var hash_out = new cipher_SHA256 (); + var err = skycoin.skycoin.SKY_coin_UxBody_Hash (uxb, hash_body); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_UxOut_Hash (uxo, hash_out); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (hash_body.isEqual (hash_out), 1); + // Head should not affect hash + var uxh = new coin__UxHead (); + uxh.Time = 0; + uxh.BkSeq = 1; + uxo.Head = uxh; + err = skycoin.skycoin.SKY_coin_UxOut_Hash (uxo, hash_out); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (hash_body.isEqual (hash_out), 1); + } + + [Test] + public void TestUxOutSnapshotHash () { + var p = new cipher_PubKey (); + var s = new cipher_SecKey (); + var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var uxb = new coin__UxBody (); + var b = new GoSlice (); + err = skycoin.skycoin.SKY_cipher_RandByte (128, b); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var h = new cipher_SHA256 (); + err = skycoin.skycoin.SKY_cipher_SumSHA256 (b, h); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + uxb.SetSrcTransaction (h); + var a = new cipher__Address (); + err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, a); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + uxb.Address = a; + uxb.Coins = (ulong) 1e6; + uxb.Hours = (ulong) 100; + var uxo = new coin__UxOut (); + var uxh = new coin__UxHead (); + uxh.Time = 100; + uxh.BkSeq = 2; + uxo.Head = uxh; + uxo.Body = uxb; + var hn = new cipher_SHA256 (); + err = skycoin.skycoin.SKY_coin_UxOut_SnapshotHash (uxo, hn); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + // snapshot hash should be dependent on every field in body and head + // Head Time + var uxo_2 = uxo; + uxh.Time = 20; + uxo_2.Head = uxh; + var hn_2 = new cipher_SHA256 (); + err = skycoin.skycoin.SKY_coin_UxOut_SnapshotHash (uxo_2, hn_2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (hn.isEqual (hn_2), 0); + // Head BkSeq + uxo_2 = uxo; + uxh.BkSeq = 4; + uxo_2.Head = uxh; + hn_2 = new cipher_SHA256 (); + err = skycoin.skycoin.SKY_coin_UxOut_SnapshotHash (uxo_2, hn_2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (hn.isEqual (hn_2), 0); + // Body SetSrcTransaction + uxo_2 = uxo; + uxb = new coin__UxBody (); + err = skycoin.skycoin.SKY_cipher_RandByte (128, b); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + h = new cipher_SHA256 (); + err = skycoin.skycoin.SKY_cipher_SumSHA256 (b, h); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + uxb.SetSrcTransaction (h); + uxo_2.Body = uxb; + hn_2 = new cipher_SHA256 (); + err = skycoin.skycoin.SKY_coin_UxOut_SnapshotHash (uxo_2, hn_2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (hn.isEqual (hn_2), 0); + // Body Address + var p_2 = new cipher_PubKey (); + var s_2 = new cipher_SecKey (); + err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p_2, s_2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var a_2 = new cipher__Address (); + err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p_2, a_2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + uxo_2 = uxo; + uxb = new coin__UxBody (); + uxb.Address = a_2; + uxo_2.Body = uxb; + hn_2 = new cipher_SHA256 (); + err = skycoin.skycoin.SKY_coin_UxOut_SnapshotHash (uxo_2, hn_2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (hn.isEqual (hn_2), 0); + // Body Coins + uxo_2 = uxo; + uxb = new coin__UxBody (); + uxb.Coins = 2; + uxo_2.Body = uxb; + hn_2 = new cipher_SHA256 (); + err = skycoin.skycoin.SKY_coin_UxOut_SnapshotHash (uxo_2, hn_2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (hn.isEqual (hn_2), 0); + // Body Hours + uxo_2 = uxo; + uxb = new coin__UxBody (); + uxb.Hours = 2; + uxo_2.Body = uxb; + hn_2 = new cipher_SHA256 (); + err = skycoin.skycoin.SKY_coin_UxOut_SnapshotHash (uxo_2, hn_2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (hn.isEqual (hn_2), 0); + } + + [Test] + public void TestUxOutCoinHours () { + var p = new cipher_PubKey (); + var s = new cipher_SecKey (); + skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); + var uxb = new coin__UxBody (); + var b = new GoSlice (); + skycoin.skycoin.SKY_cipher_RandByte (128, b); + var h = new cipher_SHA256 (); + var err = skycoin.skycoin.SKY_cipher_SumSHA256 (b, h); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + uxb.SetSrcTransaction (h); + var a = new cipher__Address (); + skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, a); + uxb.Address = a; + uxb.Coins = (ulong) 1e6; + uxb.Hours = 100; + var uxo = new coin__UxOut (); + var uxh = new coin__UxHead (); + uxh.Time = 100; + uxh.BkSeq = 2; + uxo.Head = uxh; + uxo.Body = uxb; + + // Less than an hour passed + var now = uxh.Time + 100; + var hours = skycoin.skycoin.new_GoUint64p (); + err = skycoin.skycoin.SKY_coin_UxOut_CoinHours (uxo, now, hours); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (uxh.Time, skycoin.skycoin.GoUint64p_value (hours), "Less than an hour passed"); + // 1 hours passed + now = uxh.Time + 3600; + err = skycoin.skycoin.SKY_coin_UxOut_CoinHours (uxo, now, hours); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.GoUint64p_value (hours), uxh.Time + (uxb.Coins / 1000000), "1 hours passed"); + // 6 hours passed + now = uxh.Time + 3600 * 6; + err = skycoin.skycoin.SKY_coin_UxOut_CoinHours (uxo, now, hours); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.GoUint64p_value (hours), uxh.Time + (uxb.Coins / 1000000) * 6, "1 hours passed"); + // Time is backwards (treated as no hours passed) + now = uxh.Time / 2; + err = skycoin.skycoin.SKY_coin_UxOut_CoinHours (uxo, now, hours); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.GoUint64p_value (hours), uxh.Time); + // 1 hour has passed, output has 1.5 coins, should gain 1 coinhour + uxb.Coins = 1500000; + now = uxh.Time + 3600; + err = skycoin.skycoin.SKY_coin_UxOut_CoinHours (uxo, now, hours); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.GoUint64p_value (hours), uxb.Hours + 1); + // 2 hours have passed, output has 1.5 coins, should gain 3 coin hours + uxb.Coins = 1500000; + uxo.Body = uxb; + now = uxh.Time + 3600 * 2; + err = skycoin.skycoin.SKY_coin_UxOut_CoinHours (uxo, now, hours); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + // 1 second has passed, output has 3600 coins, should gain 1 coin hour + uxb.Coins = 3600000000; + uxo.Body = uxb; + now = uxh.Time + 1; + err = skycoin.skycoin.SKY_coin_UxOut_CoinHours (uxo, now, hours); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.GoUint64p_value (hours), uxb.Hours + 1); + // 1000000 hours minus 1 second have passed, output has 1 droplet, should gain 0 coin hour + uxb.Coins = 1; + uxo.Body = uxb; + now = (ulong) (uxh.Time + (ulong) Convert.ToInt64 (1e6 * 3600) - 1); + err = skycoin.skycoin.SKY_coin_UxOut_CoinHours (uxo, now, hours); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.GoUint64p_value (hours), uxb.Hours); + // 1000000 hours have passed, output has 1 droplet, should gain 1 coin hour + uxb.Coins = 1; + uxo.Body = uxb; + now = uxh.Time + Convert.ToUInt64 (10e5 * 3600); + err = skycoin.skycoin.SKY_coin_UxOut_CoinHours (uxo, now, hours); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.GoUint64p_value (hours), uxb.Hours + 1); + // No hours passed, using initial coin hours + uxb.Coins = (ulong) 10e8; + uxb.Hours = 1000 * 1000; + uxo.Body = uxb; + now = uxh.Time; + err = skycoin.skycoin.SKY_coin_UxOut_CoinHours (uxo, now, hours); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.GoUint64p_value (hours), uxb.Hours); + // One hour passed, using initial coin hours + now = uxh.Time + 3600; + err = skycoin.skycoin.SKY_coin_UxOut_CoinHours (uxo, now, hours); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.GoUint64p_value (hours), uxb.Hours + (10e8 / 10e5)); + // No hours passed and no hours to begin with 0 + uxb.Hours = 0; + uxo.Body = uxb; + now = uxh.Time; + err = skycoin.skycoin.SKY_coin_UxOut_CoinHours (uxo, now, hours); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.GoUint64p_value (hours), 0); + // Centuries have passed, time-based calculation overflows uint64 when calculating the whole coin seconds + uxb.Coins = (ulong) 20e5; + uxo.Body = uxb; + now = 0xFFFFFFFFFFFFFFFF; + err = skycoin.skycoin.SKY_coin_UxOut_CoinHours (uxo, now, hours); + Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + // Centuries have passed, time-based calculation overflows uint64 when calculating the droplet seconds + uxb.Coins = (ulong) 15e5; + uxo.Body = uxb; + now = 0xFFFFFFFFFFFFFFFF; + err = skycoin.skycoin.SKY_coin_UxOut_CoinHours (uxo, now, hours); + Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + // Output would overflow if given more hours, has reached its limit + uxb.Coins = (ulong) 36e8; + uxo.Body = uxb; + now = 0xFFFFFFFFFFFFFFFF; + err = skycoin.skycoin.SKY_coin_UxOut_CoinHours (uxo, now, hours); + Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + } + + [Test] + public void TestUxArrayCoins () { + var uxa = transutils.makeUxOutArray (4); + for (int i = 0; i < uxa.count; i++) { + var x = uxa.getAt (i); + x.Body.Coins = (ulong) 1e6; + } + var coins = skycoin.skycoin.new_GoUint64p (); + var err = skycoin.skycoin.SKY_coin_UxArray_Coins (uxa, coins); + Assert.AreEqual (skycoin.skycoin.GoUint64p_value (coins), (ulong) 4e6); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var uxo = uxa.getAt (2); + uxo.Body.Coins = (ulong) (ulong.MaxValue - 1e6); + uxa.setAt (2, uxo); + err = skycoin.skycoin.SKY_coin_UxArray_Coins (uxa, coins); + Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + } + public ulong ux_Array_CoinsHours (coin_UxOutArray uxa, ulong now = 0, ulong slic = 0) { + ulong result = 0; + for (var i = slic; i < (ulong) uxa.count; i++) { + var x = uxa.getAt ((int) i); + var time = skycoin.skycoin.new_GoUint64p (); + var err = skycoin.skycoin.SKY_coin_UxOut_CoinHours (x, now, time); + result += skycoin.skycoin.GoUint64p_value (time); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + } + return result; + } + + [Test] + public void TestUxArrayCoinHours () { + var uxa = new coin_UxOutArray (); + skycoin.skycoin.makeUxArray (uxa, 4); + var count = skycoin.skycoin.new_GoUint64p (); + var uxo = uxa.getAt (0); + var err = skycoin.skycoin.SKY_coin_UxArray_CoinHours (uxa, uxo.Head.Time, count); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.GoUint64p_value (count), 400); + // 1 hour later + err = skycoin.skycoin.SKY_coin_UxArray_CoinHours (uxa, uxo.Head.Time + 3600, count); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.GoUint64p_value (count), 404); + // 1.5 hours later + err = skycoin.skycoin.SKY_coin_UxArray_CoinHours (uxa, uxo.Head.Time + 3600 + 1800, count); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.GoUint64p_value (count), 404); + // 2 hours later + err = skycoin.skycoin.SKY_coin_UxArray_CoinHours (uxa, uxo.Head.Time + 3600 + 4600, count); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.GoUint64p_value (count), 408); + + uxo = uxa.getAt (2); + uxo.Body.Hours = ulong.MaxValue - 100; + uxa.setAt (2, uxo); + uxo = uxa.getAt (0); + err = skycoin.skycoin.SKY_coin_UxArray_CoinHours (uxa, uxo.Head.Time, count); + Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + + err = skycoin.skycoin.SKY_coin_UxArray_CoinHours (uxa, Convert.ToUInt64 (uxo.Head.Time * 10e11), count); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrAddEarnedCoinHoursAdditionOverflow); + } + + [Test] + public void TestUxArrayHashArray () { + var uxa = new coin_UxOutArray (); + skycoin.skycoin.makeUxArray (uxa, 4); + var sha = new cipher_SHA256 (); + var hashes = new cipher_SHA256s (); + var err = skycoin.skycoin.SKY_coin_UxArray_Hashes (uxa, hashes); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (hashes.count, uxa.count); + var uxo = uxa.getAt (0); + err = skycoin.skycoin.SKY_coin_UxOut_Hash (uxo, sha); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (hashes.getAt (0).isEqual (sha), 1); + for (int i = 0; i < hashes.count; i++) { + err = skycoin.skycoin.SKY_coin_UxOut_Hash (uxa.getAt (i), sha); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (sha.isEqual (hashes.getAt (i)), 1); + } + } + + [Test] + public void TestUxArrayHasDupes () { + var uxa = new coin_UxOutArray (); + skycoin.skycoin.makeUxArray (uxa, 4); + var hasDupes = skycoin.skycoin.new_charp (); + var err = skycoin.skycoin.SKY_coin_UxArray_HasDupes (uxa, hasDupes); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.charp_value (hasDupes), 0); + uxa.setAt (0, uxa.getAt (1)); + err = skycoin.skycoin.SKY_coin_UxArray_HasDupes (uxa, hasDupes); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.charp_value (hasDupes), 1); + } + + [Test] + public void TestUxArraySub () { + var uxa = new coin_UxOutArray (); + var uxb = new coin_UxOutArray (); + var uxc = new coin_UxOutArray (); + var uxd = new coin_UxOutArray (); + skycoin.skycoin.makeUxArray (uxa, 4); + skycoin.skycoin.makeUxArray (uxb, 4); + uxc.allocate (6); + uxc.setAt (0, uxa.getAt (0)); + uxc.setAt (1, uxa.getAt (1)); + for (int i = 0; i < uxb.count; i++) { + uxc.setAt (i + 2, uxb.getAt (i)); + } + uxc.setAt (6, uxa.getAt (1)); + uxc.setAt (7, uxa.getAt (2)); + + var err = skycoin.skycoin.SKY_coin_UxArray_Sub (uxc, uxa, uxd); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (uxd.count, uxb.count); + Assert.AreEqual (uxd.isEqual (uxb), 1); + err = skycoin.skycoin.SKY_coin_UxArray_Sub (uxc, uxb, uxd); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (uxd.count, 2); + var test = new coin_UxOutArray (); + test.allocate (2); + test.setAt (0, uxa.getAt (0)); + test.setAt (1, uxa.getAt (1)); + Assert.AreEqual (test.isEqual (uxd), 1); + // No intersection + err = skycoin.skycoin.SKY_coin_UxArray_Sub (uxa, uxb, uxd); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (uxd.isEqual (uxa), 1); + err = skycoin.skycoin.SKY_coin_UxArray_Sub (uxb, uxa, uxd); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (uxd.isEqual (uxb), 1); + } + public bool manualUxArrayIsSorted (coin_UxOutArray uxa) { + var sha_1 = new cipher_SHA256 (); + var sha_2 = new cipher_SHA256 (); + var isSort = true; + for (int i = 0; i < uxa.count - 1; i++) { + var err = skycoin.skycoin.SKY_coin_UxOut_Hash (uxa.getAt (i), sha_1); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_UxOut_Hash (uxa.getAt (i + 1), sha_2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + if (sha_1.isEqual (sha_2) == 0) { + isSort = false; + } + } + return isSort; + } + + [Test] + public void TestUxArrayLen () { + var uxa = new coin_UxOutArray (); + skycoin.skycoin.makeUxArray (uxa, 4); + Assert.AreEqual (uxa.count, 4); + } + + [Test] + public void TestUxArrayLess () { + var uxa = new coin_UxOutArray (); + skycoin.skycoin.makeUxArray (uxa, 2); + var hashes = new cipher_SHA256s (); + var err = skycoin.skycoin.SKY_coin_UxArray_Hashes (uxa, hashes); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (hashes.count, uxa.count); + var less = skycoin.skycoin.new_charp (); + var less2 = skycoin.skycoin.new_charp (); + err = skycoin.skycoin.SKY_coin_UxArray_Less (uxa, 0, 1, less); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_UxArray_Less (uxa, 1, 0, less2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreNotEqual (skycoin.skycoin.charp_value (less), skycoin.skycoin.charp_value (less2)); + } + + [Test] + public void TestUxArraySwap () { + var uxa = new coin_UxOutArray (); + uxa.allocate (2); + var uxx = new coin__UxOut (); + var uxy = new coin__UxOut (); + skycoin.skycoin.makeUxOut (uxx); + skycoin.skycoin.makeUxOut (uxy); + uxa.setAt (0, uxx); + uxa.setAt (1, uxy); + var err = skycoin.skycoin.SKY_coin_UxArray_Swap (uxa, 0, 1); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (uxa.getAt (0).isEqual (uxy), 0); + Assert.AreEqual (uxa.getAt (1).isEqual (uxx), 0); + err = skycoin.skycoin.SKY_coin_UxArray_Swap (uxa, 0, 1); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (uxa.getAt (0).isEqual (uxx), 0); + Assert.AreEqual (uxa.getAt (1).isEqual (uxy), 0); + err = skycoin.skycoin.SKY_coin_UxArray_Swap (uxa, 1, 0); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (uxa.getAt (0).isEqual (uxx), 0); + Assert.AreEqual (uxa.getAt (1).isEqual (uxy), 0); + } + + [Test] + public void TestAddressUxOutsKeys () { + var uxa = new coin_UxOutArray (); + skycoin.skycoin.makeUxArray (uxa, 3); + var uxH = skycoin.skycoin.new_AddressUxOuts__HandlePtr (); + var err = skycoin.skycoin.SKY_coin_NewAddressUxOuts (uxa, uxH); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var keys = new cipher_Addresses (); + err = skycoin.skycoin.SKY_coin_AddressUxOuts_Keys (uxH, keys); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (keys.count, 3); + for (int i = 0; i < keys.count; i++) { + var k = keys.getAt (i); + var res = uxa.getAt (0).Body.Address.isEqual (k) + uxa.getAt (1).Body.Address.isEqual (k) + uxa.getAt (2).Body.Address.isEqual (k); + Assert.IsTrue (res > 0); + } + } + + [Test] + public void TestAddressUxOutsSub () { + var uxs = new coin_UxOutArray (); + var empty = new coin_UxOutArray (); + skycoin.skycoin.makeUxArray (uxs, 4); + skycoin.skycoin.makeUxArray (empty, 0); + + var up = skycoin.skycoin.new_AddressUxOuts__HandlePtr (); + var err = skycoin.skycoin.SKY_coin_NewAddressUxOuts (empty, up); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var up2 = skycoin.skycoin.new_AddressUxOuts__HandlePtr (); + err = skycoin.skycoin.SKY_coin_NewAddressUxOuts (empty, up2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + + var uxo = uxs.getAt (1); + uxo.Body.Address = uxs.getAt (0).Body.Address; + uxs.setAt (1, uxo); + + var arg = new coin_UxOutArray (); + arg.release (); + arg.allocate (1); + arg.setAt (0, uxs.getAt (0)); + err = skycoin.skycoin.SKY_coin_AddressUxOuts_Set (up, uxs.getAt (0).Body.Address, arg); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + arg.release (); + arg.allocate (1); + arg.setAt (0, uxs.getAt (2)); + err = skycoin.skycoin.SKY_coin_AddressUxOuts_Set (up, uxs.getAt (2).Body.Address, arg); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + arg.release (); + arg.allocate (1); + arg.setAt (0, uxs.getAt (3)); + err = skycoin.skycoin.SKY_coin_AddressUxOuts_Set (up, uxs.getAt (3).Body.Address, arg); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + + arg.release (); + arg.allocate (1); + arg.setAt (0, uxs.getAt (1)); + err = skycoin.skycoin.SKY_coin_AddressUxOuts_Set (up2, uxs.getAt (1).Body.Address, arg); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + arg.release (); + arg.allocate (1); + arg.setAt (0, uxs.getAt (2)); + err = skycoin.skycoin.SKY_coin_AddressUxOuts_Set (up2, uxs.getAt (2).Body.Address, arg); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + + var up3 = skycoin.skycoin.new_AddressUxOuts__HandlePtr (); + err = skycoin.skycoin.SKY_coin_AddressUxOuts_Add (up, up2, up3); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var len = skycoin.skycoin.new_Gointp (); + err = skycoin.skycoin.SKY_coin_AddressUxOuts_Length (up3, len); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.Gointp_value (len), 3); + err = skycoin.skycoin.SKY_coin_AddressUxOuts_Length (up2, len); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.Gointp_value (len), 2); + } + + [Test] + public void TestAddressUxOutsFlatten () { + var empty = new coin_UxOutArray (); + skycoin.skycoin.makeUxArray (empty, 0); + var up = skycoin.skycoin.new_AddressUxOuts__HandlePtr (); + var err = skycoin.skycoin.SKY_coin_NewAddressUxOuts (empty, up); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var uxs = new coin_UxOutArray (); + skycoin.skycoin.makeUxArray (uxs, 3); + var uxo = uxs.getAt (2); + uxo.Body.Address = uxs.getAt (1).Body.Address; + uxs.setAt (0, uxo); + var emptyAddr = new cipher__Address (); + skycoin.skycoin.makeAddress (emptyAddr); + + // An empty array + err = skycoin.skycoin.SKY_coin_AddressUxOuts_Set (up, emptyAddr, empty); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + // 1 element array + var arg = new coin_UxOutArray (); + arg.release (); + arg.allocate (1); + arg.setAt (0, uxs.getAt (0)); + err = skycoin.skycoin.SKY_coin_AddressUxOuts_Set (up, uxs.getAt (0).Body.Address, arg); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + arg.release (); + arg.allocate (2); + arg.setAt (0, uxs.getAt (1)); + arg.setAt (1, uxs.getAt (2)); + err = skycoin.skycoin.SKY_coin_AddressUxOuts_Set (up, uxs.getAt (1).Body.Address, arg); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + + var flat = new coin_UxOutArray (); + err = skycoin.skycoin.SKY_coin_AddressUxOuts_Flatten (up, flat); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (flat.count, 2); + + for (int i = 0; i < flat.count; i++) { + var ux = flat.getAt (i); + Assert.AreNotEqual (ux.Body.Address.isEqual (emptyAddr), 1, "Is equal " + i.ToString ()); + } + if (flat.getAt (0).Body.Address.isEqual (uxs.getAt (0).Body.Address) == 1) { + Assert.AreEqual (flat.getAt (0).isEqual (uxs.getAt (0)), 0); + Assert.AreEqual (flat.getAt (0).Body.Address.isEqual (uxs.getAt (0).Body.Address), 1); + Assert.AreEqual (flat.getAt (0 + 1).Body.Address.isEqual (uxs.getAt (0 + 1).Body.Address), 1); + Assert.AreEqual (flat.getAt (0 + 1).isEqual (uxs.getAt (1)), 0); + } + + } + + [Test] + public void TestNewAddressUxOuts () { + var uxs = new coin_UxOutArray (); + skycoin.skycoin.makeUxArray (uxs, 6); + var ux = uxs.getAt (1); + ux.Body.Address = uxs.getAt (0).Body.Address; + uxs.setAt (1, ux); + ux = uxs.getAt (3); + ux.Body.Address = uxs.getAt (2).Body.Address; + uxs.setAt (3, ux); + ux = uxs.getAt (4); + ux.Body.Address = uxs.getAt (2).Body.Address; + uxs.setAt (4, ux); + + var uxo = skycoin.skycoin.new_AddressUxOuts__HandlePtr (); + var err = skycoin.skycoin.SKY_coin_NewAddressUxOuts (uxs, uxo); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var len = skycoin.skycoin.new_Gointp (); + err = skycoin.skycoin.SKY_coin_AddressUxOuts_Length (uxo, len); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.Gointp_value (len), 3); + var uxa1 = new coin_UxOutArray (); + var uxa2 = new coin_UxOutArray (); + + skycoin.skycoin.SKY_coin_AddressUxOuts_Get (uxo, uxs.getAt (0).Body.Address, uxa1); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + uxa2.allocate (2); + uxa2.setAt (1, uxs.getAt (4)); + uxa2.setAt (0, uxs.getAt (0)); + uxa2.setAt (1, uxs.getAt (4)); + uxa2.setAt (1, uxs.getAt (1)); + uxa2.setAt (1, uxs.getAt (4)); + Assert.AreEqual (uxa1.isEqual (uxa2), 0); + + uxa2.setAt (1, uxs.getAt (4)); + uxa1.release(); + skycoin.skycoin.SKY_coin_AddressUxOuts_Get (uxo, uxs.getAt (3).Body.Address, uxa1); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + uxa2.release(); + uxa2.allocate (3); + uxa2.setAt (0, uxs.getAt (2)); + uxa2.setAt (1, uxs.getAt (3)); + uxa2.setAt (1, uxs.getAt (4)); + Assert.AreEqual (uxa1.isEqual (uxa2), 0); + + uxa1.release(); + skycoin.skycoin.SKY_coin_AddressUxOuts_Get (uxo, uxs.getAt (5).Body.Address, uxa1); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + uxa2.release(); + uxa2.allocate (1); + uxa2.setAt (0, uxs.getAt (5)); + Assert.AreEqual (uxa1.isEqual (uxa2), 1); + + + } + } +} \ No newline at end of file diff --git a/LibskycoinNetTest/check_coin_transactions.cs b/LibskycoinNetTest/check_coin_transactions.cs index ab9b68ef..3cb7f965 100644 --- a/LibskycoinNetTest/check_coin_transactions.cs +++ b/LibskycoinNetTest/check_coin_transactions.cs @@ -620,10 +620,10 @@ struct StrTest { public ux[] inUxs; public ux[] outUxs; public int err; - public long headTime; + public ulong headTime; } - StrTest[] cases = new StrTest[1]; + StrTest[] cases = new StrTest[5]; public void FullCases () { var c = new StrTest (); c.name = "Input coins overflow"; @@ -636,54 +636,215 @@ public void FullCases () { c.outUxs = new ux[0]; c.headTime = 0; cases[0] = c; + + c = new StrTest (); + c.name = "Output coins overflow"; + c.err = skycoin.skycoin.SKY_ERROR; + c.inUxs = new ux[1]; + c.inUxs[0].coins = (ulong) 10e6; + c.inUxs[0].hours = 10; + c.outUxs = new ux[2]; + c.outUxs[0].coins = (ulong) (ulong.MaxValue - 10e6 + 1); + c.outUxs[0].coins = 0; + c.outUxs[1].coins = (ulong) 20e6; + c.outUxs[1].hours = 1; + c.headTime = 0; + cases[1] = c; + + c = new StrTest (); + c.name = "Insufficient coins"; + c.err = skycoin.skycoin.SKY_ERROR; + // c.headTime = 0; + c.inUxs = new ux[2]; + c.inUxs[0].coins = (ulong) 10e6; + c.inUxs[0].hours = 10; + c.inUxs[1].coins = (ulong) 15e6; + c.inUxs[1].hours = 10; + c.outUxs = new ux[2]; + c.outUxs[0].coins = (ulong) 20e6; + c.outUxs[0].coins = 1; + c.outUxs[1].coins = (ulong) 10e6; + c.outUxs[1].hours = 1; + cases[2] = c; + + c = new StrTest (); + c.name = "Destroyed coins"; + c.err = skycoin.skycoin.SKY_ERROR; + c.inUxs = new ux[2]; + c.inUxs[0].coins = (ulong) 10e6; + c.inUxs[0].hours = 10; + c.inUxs[1].coins = (ulong) 15e6; + c.inUxs[1].hours = 10; + c.outUxs = new ux[2]; + c.outUxs[0].coins = (ulong) 5e6; + c.outUxs[0].coins = 1; + c.outUxs[1].coins = (ulong) 10e6; + c.outUxs[1].hours = 1; + c.headTime = 0; + cases[3] = c; + + c = new StrTest (); + c.name = "valid"; + c.inUxs = new ux[2]; + c.inUxs[0].coins = (ulong) 10e6; + c.inUxs[0].hours = 10; + c.inUxs[1].coins = (ulong) 15e6; + c.inUxs[1].hours = 10; + c.outUxs = new ux[3]; + c.outUxs[0].coins = (ulong) 10e6; + c.outUxs[0].coins = 11; + c.outUxs[1].coins = (ulong) 10e6; + c.outUxs[1].hours = 1; + c.outUxs[2].coins = (ulong) 5e6; + c.outUxs[2].hours = 0; + cases[4] = c; + } - // TODO: Continuar llenado - [Test] + + // [Test] public void TestVerifyTransactionCoinsSpending () { FullCases (); - var uxIn = new coin_UxOutArray (); - var uxOut = new coin_UxOutArray (); for (int i = 0; i < cases.Length; i++) { + var uxIn = new coin_UxOutArray (); + var uxOut = new coin_UxOutArray (); var tc = cases[i]; + uxIn.allocate (tc.inUxs.Length); + uxOut.allocate (tc.outUxs.Length); + for (int j = 0; j < tc.inUxs.Length; j++) { var ch = tc.inUxs[j]; var puxIn = new coin__UxOut (); + skycoin.skycoin.makeUxOut (puxIn); puxIn.Body.Coins = ch.coins; puxIn.Body.Hours = ch.hours; - uxIn.append (puxIn); + uxIn.setAt (j, puxIn); } - for (int j = 0; j < tc.outUxs.Length; j++) { - var ch = tc.outUxs[j]; + + for (int x = 0; x < tc.outUxs.Length; x++) { + var ch = tc.outUxs[x]; var puxOut = new coin__UxOut (); + skycoin.skycoin.makeUxOut (puxOut); puxOut.Body.Coins = ch.coins; puxOut.Body.Hours = ch.hours; - uxOut.append (puxOut); + uxOut.setAt (i, puxOut); } + Assert.AreEqual (tc.inUxs.Length, uxIn.count, "Comparacion de inUxs"); + Assert.AreEqual (tc.outUxs.Length, uxOut.count, "coparacion uxout"); var err = skycoin.skycoin.SKY_coin_VerifyTransactionCoinsSpending (uxIn, uxOut); - Assert.AreEqual (err, tc.err); + Assert.AreEqual (err, tc.err, "Iteration " + i.ToString () + tc.name); } } public void FullCases2 () { + + cases = new StrTest[7]; var c = new StrTest (); c.name = "Input coins overflow"; c.err = skycoin.skycoin.SKY_ERROR; c.inUxs = new ux[2]; - c.inUxs[0].coins = (ulong) (ulong.MaxValue - 1e6 + 1); - c.inUxs[0].hours = 10; + c.inUxs[0].hours = (ulong) (ulong.MaxValue - 1e6 + 1); + c.inUxs[0].coins = (ulong)3e6; c.inUxs[1].coins = (ulong) 1e6; - c.inUxs[1].hours = 0; + c.inUxs[1].hours = (ulong) 1e6; c.outUxs = new ux[0]; - c.headTime = 0; cases[0] = c; + + c = new StrTest (); + c.name = "Insufficient coin hours"; + c.inUxs = new ux[2]; + c.inUxs[0].coins = (ulong) 10e6; + c.inUxs[0].hours = 10; + c.inUxs[1].coins = (ulong) 15e6; + c.inUxs[1].hours = 10; + c.outUxs = new ux[2]; + c.outUxs[0].coins = (ulong) 15e6; + c.outUxs[0].hours = 10; + c.outUxs[1].coins = (ulong) 10e6; + c.outUxs[1].hours = 11; + c.headTime = 0; + cases[1] = c; + + c = new StrTest (); + c.name = "coin hours time calculation overflow"; + c.err = skycoin.skycoin.SKY_ERROR; + c.inUxs = new ux[2]; + c.inUxs[0].coins = (ulong) 10e6; + c.inUxs[0].hours = 10; + c.inUxs[1].coins = (ulong) 15e6; + c.inUxs[1].hours = 10; + c.outUxs = new ux[3]; + c.outUxs[0].coins = (ulong) 10e6; + c.outUxs[0].hours = 11; + c.outUxs[1].coins = (ulong) 10e6; + c.outUxs[1].hours = 1; + c.outUxs[2].coins = (ulong) 5e6; + c.outUxs[2].hours = 0; + c.headTime = long.MaxValue; + cases[2] = c; + + c = new StrTest (); + c.name = "Invalid (coin hours overflow when adding earned hours, which is treated as 0, and now enough coin hours)"; + c.err = skycoin.skycoin.SKY_ERROR; + c.inUxs = new ux[1]; + c.inUxs[0].coins = (ulong) 10e6; + c.inUxs[0].hours = long.MaxValue; + c.outUxs = new ux[1]; + c.outUxs[0].coins = (ulong) 10e6; + c.outUxs[0].hours = 1; + c.headTime = (long) 1e6; + cases[3] = c; + + c = new StrTest (); + c.name = "Valid (coin hours overflow when adding earned hours, which is treated as 0, but not sending any hours)"; + c.inUxs = new ux[1]; + c.inUxs[0].coins = (ulong) 10e6; + c.inUxs[0].hours = ulong.MaxValue; + c.outUxs = new ux[1]; + c.outUxs[0].coins = (ulong) 10e6; + c.outUxs[0].hours = 0; + c.headTime = (long) 1e6; + cases[4] = c; + + c = new StrTest (); + c.name = "Valid (base inputs have insufficient coin hours, but have sufficient after adjusting coinhours by headTime)"; + c.inUxs = new ux[2]; + c.inUxs[0].coins = (ulong) 10e6; + c.inUxs[0].hours = 10; + c.inUxs[1].coins = (ulong) 15e6; + c.inUxs[1].hours = 10; + c.outUxs = new ux[2]; + c.outUxs[0].coins = (ulong) 15e6; + c.outUxs[0].hours = 10; + c.outUxs[1].coins = (ulong) 10e6; + c.outUxs[1].hours = 11; + c.headTime = 1492707255; + cases[5] = c; + + c = new StrTest (); + c.name = "valid"; + c.inUxs = new ux[2]; + c.inUxs[0].coins = (ulong) 10e6; + c.inUxs[0].hours = 10; + c.inUxs[1].coins = (ulong) 15e6; + c.inUxs[1].hours = 10; + c.outUxs = new ux[3]; + c.outUxs[0].coins = (ulong) 10e6; + c.outUxs[0].hours = 11; + c.outUxs[1].coins = (ulong) 10e6; + c.outUxs[1].hours = 1; + c.outUxs[2].coins = (ulong) 5e6; + c.outUxs[2].hours = 0; + cases[6] = c; + } - [Test] + // [Test] public void TestVerifyTransactionHoursSpending () { FullCases2 (); - var uxIn = new coin_UxOutArray (); - var uxOut = new coin_UxOutArray (); + for (int i = 0; i < cases.Length; i++) { var tc = cases[i]; + var uxIn = new coin_UxOutArray (); + var uxOut = new coin_UxOutArray (); for (int j = 0; j < tc.inUxs.Length; j++) { var ch = tc.inUxs[j]; var puxIn = new coin__UxOut (); @@ -698,12 +859,12 @@ public void TestVerifyTransactionHoursSpending () { puxOut.Body.Hours = ch.hours; uxOut.append (puxOut); } - var err = skycoin.skycoin.SKY_coin_VerifyTransactionCoinsSpending (uxIn, uxOut); - Assert.AreEqual (err, tc.err); + Assert.AreEqual (tc.inUxs.Length, uxIn.count, "Comparacion de inUxs"); + Assert.AreEqual (tc.outUxs.Length, uxOut.count, "coparacion uxout"); + var err = skycoin.skycoin.SKY_coin_VerifyTransactionHoursSpending(tc.headTime,uxIn, uxOut); + Assert.AreEqual (err, tc.err, "Iter " + i.ToString () + tc.name); } } - // TODO: Fin del relleno - } } \ No newline at end of file diff --git a/LibskycoinNetTest/check_util_fee.cs b/LibskycoinNetTest/check_util_fee.cs index afbea935..fec796fe 100644 --- a/LibskycoinNetTest/check_util_fee.cs +++ b/LibskycoinNetTest/check_util_fee.cs @@ -123,8 +123,7 @@ public void TestVerifyTransactionFee () { // A txn with no outputs hours but with a coinhours burn fee is valid err = skycoin.skycoin.SKY_fee_VerifyTransactionFee (empty, 100); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var txn = skycoin.skycoin.new_Transaction__Handlep (); - skycoin.skycoin.makeEmptyTransaction (txn); + var txn = transutils.makeEmptyTransaction (); var addr = new cipher__Address (); addr = transutils.makeAddress (); Assert.AreEqual (err, 0); @@ -166,7 +165,7 @@ public void TestVerifyTransactionFee () { int len = burnFactor2verifyTxFeeTestCase.Length; for (int i = 0; i < len; i++) { txn = skycoin.skycoin.new_Transaction__Handlep (); - skycoin.skycoin.makeEmptyTransaction (txn); + txn = transutils.makeEmptyTransaction (); verifyTxFeeTestCase tc = burnFactor2verifyTxFeeTestCase[i]; err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (txn, addr, 0, tc.ouputHours); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); @@ -368,20 +367,18 @@ public void TestTransactionFee () { var err1 = skycoin.skycoin.SKY_coin_Transaction_PushOutput (tx, addr, (ulong) 0, (ulong) h); Assert.AreEqual (err1, skycoin.skycoin.SKY_OK); } - var inUxs = new GoSlice (); - var err = (uint) skycoin.skycoin.makeUxArray (inUxs, tc.ins.Length); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (inUxs.len, tc.ins.Length); + var inUxs = transutils.makeUxOutArray (tc.ins.Length); + Assert.AreEqual (inUxs.count, tc.ins.Length); for (int j = 0; j < tc.ins.Length; j++) { uxInput b = tc.ins[j]; coin__UxOut ux = new coin__UxOut (); ux.Head.Time = b.time; ux.Body.Coins = b.coins; ux.Body.Hours = b.hours; - inUxs.setcoin_UxOut (ux, j); + inUxs.setAt (j, ux); } var fee = skycoin.skycoin.new_GoUint64p (); - err = skycoin.skycoin.SKY_fee_TransactionFee (tx, tc.headTime, inUxs, fee); + var err = skycoin.skycoin.SKY_fee_TransactionFee (tx, tc.headTime, inUxs, fee); Assert.AreEqual (err, tc.err); var fee_v = skycoin.skycoin.GoUint64p_value (fee); Assert.AreEqual (fee_v, tc.fee); diff --git a/LibskycoinNetTest/transutils.cs b/LibskycoinNetTest/transutils.cs index 48744a03..282ff39e 100644 --- a/LibskycoinNetTest/transutils.cs +++ b/LibskycoinNetTest/transutils.cs @@ -22,9 +22,111 @@ public SWIGTYPE_p_Transaction__Handle makeEmptyTransaction () { public SWIGTYPE_p_Transaction__Handle copyTransaction (SWIGTYPE_p_Transaction__Handle handle) { var handle2 = skycoin.skycoin.new_Transaction__Handlep (); - var err = skycoin.skycoin.SKY_coin_Transaction_Copy (handle, handle2); + var err = skycoin.skycoin.SKY_coin_Transaction_Verify (handle); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK, "SKY_coin_Transaction_Verify failed"); + err = skycoin.skycoin.SKY_coin_Transaction_Copy (handle, handle2); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); return handle2; } + + public void makeTransactionFromUxOut (coin__UxOut ux, cipher_SecKey s, SWIGTYPE_p_Transaction__Handle handle, coin__Transaction ptx) { + handle = makeEmptyTransaction (); + var h = new cipher_SHA256 (); + Assert.AreEqual (skycoin.skycoin.SKY_cipher_SecKey_Verify (s), skycoin.skycoin.SKY_OK); + var err = skycoin.skycoin.SKY_coin_UxOut_Hash (ux, h); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var r = skycoin.skycoin.new_GoUint16p (); + skycoin.skycoin.SKY_coin_Transaction_PushInput (handle, h, r); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (handle, makeAddress (), (ulong) 1e6, 50); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (handle, makeAddress (), (ulong) 5e6, 50); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var seckeys = new cipher_SecKeys (); + seckeys.allocate (1); + seckeys.setAt (0, s); + err = skycoin.skycoin.SKY_coin_Transaction_SignInputs (handle, seckeys); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_UpdateHeader (handle); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_GetTransactionObject (handle, ptx); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transaction_Verify (handle); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + + } + + public void makeUxBodyWithSecret (coin__UxBody uxBody, cipher_SecKey secKey) { + var p = new cipher_PubKey (); + skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, secKey); + var b = new GoSlice (); + skycoin.skycoin.SKY_cipher_RandByte (128, b); + var h = new cipher_SHA256 (); + skycoin.skycoin.SKY_cipher_SumSHA256 (b, h); + uxBody.SetSrcTransaction (h); + var a = new cipher__Address (); + skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, a); + uxBody.Address = a; + uxBody.Coins = (ulong) (1e6); + uxBody.Hours = 100; + } + + public void makeUxOutWithSecret (coin__UxOut uxOut, cipher_SecKey secKey) { + var uxBody = new coin__UxBody (); + makeUxBodyWithSecret (uxBody, secKey); + uxOut = new coin__UxOut (); + var uxHead = new coin__UxHead (); + uxHead.Time = 100; + uxHead.BkSeq = 2; + uxOut.Body = uxBody; + uxOut.Head = uxHead; + } + + public void makeTransaction (SWIGTYPE_p_Transaction__Handle handle, coin__Transaction ptx) { + var s = new cipher_SecKey (); + var ux = new coin__UxOut (); + makeUxOutWithSecret (ux, s); + makeTransactionFromUxOut (ux, s, handle, ptx); + } + + public SWIGTYPE_p_Transactions__Handle makeTransactions (int n) { + var handle = skycoin.skycoin.new_Transactions__Handlep (); + skycoin.skycoin.SKY_coin_Create_Transactions (handle); + for (int i = 0; i < n; i++) { + var thandle = makeEmptyTransaction (); + var ptx = new coin__Transaction (); + makeTransaction (thandle, ptx); + skycoin.skycoin.SKY_coin_Transactions_Add (handle, thandle); + } + var count = skycoin.skycoin.new_Gointp (); + skycoin.skycoin.SKY_coin_Transactions_Length (handle, count); + Assert.AreEqual (n, skycoin.skycoin.Gointp_value (count)); + return handle; + } + + public coin__UxBody makeUxBody () { + var uxb = new coin__UxBody (); + var s = new cipher_SecKey (); + makeUxBodyWithSecret (uxb, s); + return uxb; + } + + public coin__UxOut makeUxOut () { + var uxb = new coin__UxOut (); + var s = new cipher_SecKey (); + makeUxOutWithSecret (uxb, s); + return uxb; + } + + public coin_UxOutArray makeUxOutArray (int n) { + var result = new coin_UxOutArray (); + + for (int i = 0; i < n; i++) { + result.append (makeUxOut ()); + } + Assert.AreEqual (result.count, n, "Not equal len"); + return result; + } } + } \ No newline at end of file diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index 897df706..24910b9e 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit 897df706fcdf90c5112eac28975dc88e6e3acb2b +Subproject commit 24910b9eda7db0344f97cd4b0fe6e9be82d4a482 From d84a9b401fd7ce256a7ca93247286029d9249f7c Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Tue, 2 Oct 2018 13:45:16 -0400 Subject: [PATCH 42/73] [test] refs #8 Finish encrypt_scrypt_chacha20poly1305 and transaction without a callback Tests run: 79, Errors: 0, Failures: 0, Inconclusive: 0, Time: 18,4297187 seconds Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0 --- LibskycoinNet/LibskycoinNet.csproj | 1 - LibskycoinNet/skycoin/GoSlice.cs | 6 +- LibskycoinNet/skycoin/_GoString_.cs | 8 +- LibskycoinNet/skycoin/cli__SendAmount.cs | 8 +- LibskycoinNet/skycoin/coin__Transaction.cs | 16 +- LibskycoinNet/skycoin/skycoin.cs | 10 +- LibskycoinNet/skycoin/skycoinPINVOKE.cs | 35 +-- LibskycoinNet/skycoin/skycoinnet_wrap.c | 258 ++++++++---------- LibskycoinNet/skycoin/wallet__UxBalance.cs | 24 +- LibskycoinNetTest/LibskycoinNetTest.csproj | 18 +- ..._cipher_encrypt_scrypt_chacha20poly1305.cs | 51 ++-- LibskycoinNetTest/check_coin_outputs.cs | 10 +- LibskycoinNetTest/check_coin_transactions.cs | 53 ++-- LibskycoinNetTest/packages.config | 4 + gopath/src/github.com/skycoin/skycoin | 2 +- 15 files changed, 253 insertions(+), 251 deletions(-) create mode 100644 LibskycoinNetTest/packages.config diff --git a/LibskycoinNet/LibskycoinNet.csproj b/LibskycoinNet/LibskycoinNet.csproj index 76bda554..024d94bf 100644 --- a/LibskycoinNet/LibskycoinNet.csproj +++ b/LibskycoinNet/LibskycoinNet.csproj @@ -128,7 +128,6 @@ - diff --git a/LibskycoinNet/skycoin/GoSlice.cs b/LibskycoinNet/skycoin/GoSlice.cs index 3e0f17a0..de828197 100644 --- a/LibskycoinNet/skycoin/GoSlice.cs +++ b/LibskycoinNet/skycoin/GoSlice.cs @@ -50,9 +50,9 @@ public void convertString(_GoString_ data) { if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } - public void setcoin_UxOut(coin__UxOut ux, int p) { - skycoinPINVOKE.GoSlice_setcoin_UxOut(swigCPtr, coin__UxOut.getCPtr(ux), p); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public _GoString_ getString() { + _GoString_ ret = new _GoString_(skycoinPINVOKE.GoSlice_getString(swigCPtr), true); + return ret; } public SWIGTYPE_p_void data { diff --git a/LibskycoinNet/skycoin/_GoString_.cs b/LibskycoinNet/skycoin/_GoString_.cs index 241454a3..62943190 100644 --- a/LibskycoinNet/skycoin/_GoString_.cs +++ b/LibskycoinNet/skycoin/_GoString_.cs @@ -55,14 +55,12 @@ public string p { } } - public SWIGTYPE_p_ptrdiff_t n { + public int n { set { - skycoinPINVOKE.set__GoString__n(swigCPtr, SWIGTYPE_p_ptrdiff_t.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + skycoinPINVOKE.set__GoString__n(swigCPtr, value); } get { - SWIGTYPE_p_ptrdiff_t ret = new SWIGTYPE_p_ptrdiff_t(skycoinPINVOKE.get__GoString__n(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + int ret = skycoinPINVOKE.get__GoString__n(swigCPtr); return ret; } } diff --git a/LibskycoinNet/skycoin/cli__SendAmount.cs b/LibskycoinNet/skycoin/cli__SendAmount.cs index bf2c0231..f850d8e1 100644 --- a/LibskycoinNet/skycoin/cli__SendAmount.cs +++ b/LibskycoinNet/skycoin/cli__SendAmount.cs @@ -52,14 +52,12 @@ public SWIGTYPE_p_GoString_ Addr { } } - public SWIGTYPE_p_GoInt64_ Coins { + public long Coins { set { - skycoinPINVOKE.set_cli__SendAmount_Coins(swigCPtr, SWIGTYPE_p_GoInt64_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + skycoinPINVOKE.set_cli__SendAmount_Coins(swigCPtr, value); } get { - SWIGTYPE_p_GoInt64_ ret = new SWIGTYPE_p_GoInt64_(skycoinPINVOKE.get_cli__SendAmount_Coins(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + long ret = skycoinPINVOKE.get_cli__SendAmount_Coins(swigCPtr); return ret; } } diff --git a/LibskycoinNet/skycoin/coin__Transaction.cs b/LibskycoinNet/skycoin/coin__Transaction.cs index d702cff0..0de34622 100644 --- a/LibskycoinNet/skycoin/coin__Transaction.cs +++ b/LibskycoinNet/skycoin/coin__Transaction.cs @@ -56,26 +56,22 @@ public int setInnerHash(cipher_SHA256 h) { return ret; } - public SWIGTYPE_p_GoInt32_ Length { + public int Length { set { - skycoinPINVOKE.set_coin__Transaction_Length(swigCPtr, SWIGTYPE_p_GoInt32_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + skycoinPINVOKE.set_coin__Transaction_Length(swigCPtr, value); } get { - SWIGTYPE_p_GoInt32_ ret = new SWIGTYPE_p_GoInt32_(skycoinPINVOKE.get_coin__Transaction_Length(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + int ret = skycoinPINVOKE.get_coin__Transaction_Length(swigCPtr); return ret; } } - public SWIGTYPE_p_GoInt8_ Type { + public sbyte Type { set { - skycoinPINVOKE.set_coin__Transaction_Type(swigCPtr, SWIGTYPE_p_GoInt8_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + skycoinPINVOKE.set_coin__Transaction_Type(swigCPtr, value); } get { - SWIGTYPE_p_GoInt8_ ret = new SWIGTYPE_p_GoInt8_(skycoinPINVOKE.get_coin__Transaction_Type(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + sbyte ret = skycoinPINVOKE.get_coin__Transaction_Type(swigCPtr); return ret; } } diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs index d458d556..4958b6e6 100644 --- a/LibskycoinNet/skycoin/skycoin.cs +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -349,6 +349,12 @@ public static byte charp_value(SWIGTYPE_p_unsigned_char obj) { return ret; } + public static SWIGTYPE_p_GoUint32_ FeeCalculatorcCall(SWIGTYPE_p_FeeCalculator feeCalc, SWIGTYPE_p_Transaction__Handle handle, SWIGTYPE_p_GoUint64_ pFee) { + SWIGTYPE_p_GoUint32_ ret = new SWIGTYPE_p_GoUint32_(skycoinPINVOKE.FeeCalculatorcCall(SWIGTYPE_p_FeeCalculator.getCPtr(feeCalc), SWIGTYPE_p_Transaction__Handle.getCPtr(handle), SWIGTYPE_p_GoUint64_.getCPtr(pFee)), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + public static void SKY_handle_close(SWIGTYPE_p_Handle p0) { skycoinPINVOKE.SKY_handle_close(SWIGTYPE_p_Handle.getCPtr(p0)); } @@ -540,8 +546,8 @@ public static int concatSlices(GoSlice slice1, GoSlice slice2, int elem_size, Go return ret; } - public static void parseJsonMetaData(string metadata, SWIGTYPE_p_int n, SWIGTYPE_p_int r, SWIGTYPE_p_int p, SWIGTYPE_p_int keyLen) { - skycoinPINVOKE.parseJsonMetaData(metadata, SWIGTYPE_p_int.getCPtr(n), SWIGTYPE_p_int.getCPtr(r), SWIGTYPE_p_int.getCPtr(p), SWIGTYPE_p_int.getCPtr(keyLen)); + public static void parseJsonMetaData(string metadata, SWIGTYPE_p_long_long n, SWIGTYPE_p_long_long r, SWIGTYPE_p_long_long p, SWIGTYPE_p_long_long keyLen) { + skycoinPINVOKE.parseJsonMetaData(metadata, SWIGTYPE_p_long_long.getCPtr(n), SWIGTYPE_p_long_long.getCPtr(r), SWIGTYPE_p_long_long.getCPtr(p), SWIGTYPE_p_long_long.getCPtr(keyLen)); } public static int cutSlice(GoSlice slice, int start, int end, int elem_size, GoSlice result) { diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index 8928a36f..937cc9b2 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -383,6 +383,9 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_charp_value")] public static extern byte charp_value(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_FeeCalculatorcCall")] + public static extern global::System.IntPtr FeeCalculatorcCall(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_handle_close")] public static extern void SKY_handle_close(global::System.Runtime.InteropServices.HandleRef jarg1); @@ -1002,10 +1005,10 @@ static skycoinPINVOKE() { public static extern string get__GoString__p(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set__GoString__n")] - public static extern void set__GoString__n(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern void set__GoString__n(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get__GoString__n")] - public static extern global::System.IntPtr get__GoString__n(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern int get__GoString__n(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new__GoString_")] public static extern global::System.IntPtr new__GoString_(); @@ -1037,8 +1040,8 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_convertString")] public static extern void GoSlice_convertString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_setcoin_UxOut")] - public static extern void GoSlice_setcoin_UxOut(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_getString")] + public static extern global::System.IntPtr GoSlice_getString(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_GoSlice_data")] public static extern void set_GoSlice_data(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -2610,16 +2613,16 @@ static skycoinPINVOKE() { public static extern int coin__Transaction_setInnerHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__Transaction_Length")] - public static extern void set_coin__Transaction_Length(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern void set_coin__Transaction_Length(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__Transaction_Length")] - public static extern global::System.IntPtr get_coin__Transaction_Length(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern int get_coin__Transaction_Length(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__Transaction_Type")] - public static extern void set_coin__Transaction_Type(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern void set_coin__Transaction_Type(global::System.Runtime.InteropServices.HandleRef jarg1, sbyte jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__Transaction_Type")] - public static extern global::System.IntPtr get_coin__Transaction_Type(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern sbyte get_coin__Transaction_Type(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__Transaction_InnerHash")] public static extern void set_coin__Transaction_InnerHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -2955,10 +2958,10 @@ static skycoinPINVOKE() { public static extern global::System.IntPtr get_wallet__UxBalance_Hash(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__UxBalance_BkSeq")] - public static extern void set_wallet__UxBalance_BkSeq(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern void set_wallet__UxBalance_BkSeq(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__UxBalance_BkSeq")] - public static extern global::System.IntPtr get_wallet__UxBalance_BkSeq(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern long get_wallet__UxBalance_BkSeq(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__UxBalance_Address")] public static extern void set_wallet__UxBalance_Address(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -2967,16 +2970,16 @@ static skycoinPINVOKE() { public static extern global::System.IntPtr get_wallet__UxBalance_Address(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__UxBalance_Coins")] - public static extern void set_wallet__UxBalance_Coins(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern void set_wallet__UxBalance_Coins(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__UxBalance_Coins")] - public static extern global::System.IntPtr get_wallet__UxBalance_Coins(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern long get_wallet__UxBalance_Coins(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__UxBalance_Hours")] - public static extern void set_wallet__UxBalance_Hours(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern void set_wallet__UxBalance_Hours(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_wallet__UxBalance_Hours")] - public static extern global::System.IntPtr get_wallet__UxBalance_Hours(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern long get_wallet__UxBalance_Hours(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_wallet__UxBalance")] public static extern global::System.IntPtr new_wallet__UxBalance(); @@ -3009,10 +3012,10 @@ static skycoinPINVOKE() { public static extern global::System.IntPtr get_cli__SendAmount_Addr(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cli__SendAmount_Coins")] - public static extern void set_cli__SendAmount_Coins(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern void set_cli__SendAmount_Coins(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_cli__SendAmount_Coins")] - public static extern global::System.IntPtr get_cli__SendAmount_Coins(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern long get_cli__SendAmount_Coins(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cli__SendAmount")] public static extern global::System.IntPtr new_cli__SendAmount(); diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index 2bd54741..e8793b0f 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -613,6 +613,10 @@ static unsigned char charp_value(unsigned char *obj) { } + + static inline GoUint32_ FeeCalculatorcCall(FeeCalculator* feeCalc, Transaction__Handle handle, GoUint64_* pFee){ + return feeCalc->callback(handle, pFee, feeCalc->context); +} #include "json.h" //Define function SKY_handle_close to avoid including libskycoin.h void SKY_handle_close(Handle p0); @@ -872,7 +876,7 @@ int concatSlices(GoSlice_* slice1, GoSlice_* slice2, int elem_size, GoSlice_* re } return 0; } - void parseJsonMetaData(char *metadata, int *n, int *r, int *p, int *keyLen) + void parseJsonMetaData(char *metadata, long long *n, long long *r, long long *p, long long *keyLen) { *n = *r = *p = *keyLen = 0; int length = strlen(metadata); @@ -1708,16 +1712,13 @@ SWIGINTERN void GoSlice_convertString(GoSlice *self,_GoString_ data){ self->len = strlen(data.p); self->cap = self->len; } -SWIGINTERN void GoSlice_setcoin_UxOut(GoSlice *self,coin__UxOut ux,int p){ - coin__UxOut *tmpOut = (coin__UxOut *)self->data; - for (int j = 0; j < self->len; j++) { - if(p == j){ - tmpOut->Head.Time = ux.Head.Time; - tmpOut->Body.Coins = ux.Body.Coins; - tmpOut->Body.Hours = ux.Body.Hours; - } - tmpOut++;} - } +SWIGINTERN _GoString_ GoSlice_getString(GoSlice *self){ + _GoString_ out; + char * a = (char *)self->data; + out.p = a; + out.n = strlen(a); +return out; +} SWIGINTERN int cipher__Address_isEqual(cipher__Address *self,cipher__Address *a){ if( self->Version == a->Version ){ return memcmp(self->Key, a->Key, sizeof(a->Key)) == 0; @@ -2573,6 +2574,37 @@ SWIGEXPORT unsigned char SWIGSTDCALL CSharp_skycoin_charp_value(void * jarg1) { } +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_FeeCalculatorcCall(void * jarg1, void * jarg2, void * jarg3) { + void * jresult ; + FeeCalculator *arg1 = (FeeCalculator *) 0 ; + Transaction__Handle arg2 ; + GoUint64_ *arg3 = (GoUint64_ *) 0 ; + FeeCalculator temp1 ; + Transaction__Handle *argp2 ; + GoUint32_ result; + + { + temp1.callback = FeeCalculatorcCall; + temp1.context = jarg1; + arg1 = &temp1; + } + argp2 = (Transaction__Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg2 = *argp2; + arg3 = (GoUint64_ *)jarg3; + result = FeeCalculatorcCall(arg1,arg2,arg3); + { + GoUint32_ * resultptr = (GoUint32_ *) malloc(sizeof(GoUint32_)); + memmove(resultptr, &result, sizeof(GoUint32_)); + jresult = resultptr; + } + return jresult; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_handle_close(void * jarg1) { Handle arg1 ; @@ -3091,16 +3123,16 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_concatSlices(GoSlice_ * jarg1, GoSlice SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_parseJsonMetaData(char * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5) { char *arg1 = (char *) 0 ; - int *arg2 = (int *) 0 ; - int *arg3 = (int *) 0 ; - int *arg4 = (int *) 0 ; - int *arg5 = (int *) 0 ; + long long *arg2 = (long long *) 0 ; + long long *arg3 = (long long *) 0 ; + long long *arg4 = (long long *) 0 ; + long long *arg5 = (long long *) 0 ; arg1 = (char *)jarg1; - arg2 = (int *)jarg2; - arg3 = (int *)jarg3; - arg4 = (int *)jarg4; - arg5 = (int *)jarg5; + arg2 = (long long *)jarg2; + arg3 = (long long *)jarg3; + arg4 = (long long *)jarg4; + arg5 = (long long *)jarg5; parseJsonMetaData(arg1,arg2,arg3,arg4,arg5); } @@ -5233,34 +5265,24 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_skycoin_get__GoString__p(void * jarg1) { } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set__GoString__n(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set__GoString__n(void * jarg1, int jarg2) { _GoString_ *arg1 = (_GoString_ *) 0 ; ptrdiff_t arg2 ; - ptrdiff_t *argp2 ; arg1 = (_GoString_ *)jarg1; - argp2 = (ptrdiff_t *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null ptrdiff_t", 0); - return ; - } - arg2 = *argp2; + arg2 = (ptrdiff_t)jarg2; if (arg1) (arg1)->n = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get__GoString__n(void * jarg1) { - void * jresult ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get__GoString__n(void * jarg1) { + int jresult ; _GoString_ *arg1 = (_GoString_ *) 0 ; ptrdiff_t result; arg1 = (_GoString_ *)jarg1; result = ((arg1)->n); - { - ptrdiff_t * resultptr = (ptrdiff_t *) malloc(sizeof(ptrdiff_t)); - memmove(resultptr, &result, sizeof(ptrdiff_t)); - jresult = resultptr; - } + jresult = result; return jresult; } @@ -5375,21 +5397,19 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoSlice_convertString(void * jarg1, v } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoSlice_setcoin_UxOut(void * jarg1, void * jarg2, int jarg3) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_GoSlice_getString(void * jarg1) { + void * jresult ; GoSlice *arg1 = (GoSlice *) 0 ; - coin__UxOut arg2 ; - int arg3 ; - coin__UxOut *argp2 ; + _GoString_ result; arg1 = (GoSlice *)jarg1; - argp2 = (coin__UxOut *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null coin__UxOut", 0); - return ; + result = GoSlice_getString(arg1); + { + _GoString_ * resultptr = (_GoString_ *) malloc(sizeof(_GoString_)); + memmove(resultptr, &result, sizeof(_GoString_)); + jresult = resultptr; } - arg2 = *argp2; - arg3 = (int)jarg3; - GoSlice_setcoin_UxOut(arg1,arg2,arg3); + return jresult; } @@ -5487,6 +5507,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock(void * jarg Block__Handle *arg6 = (Block__Handle *) 0 ; Block__Handle *argp1 ; Transactions__Handle *argp4 ; + FeeCalculator temp5 ; GoUint32 result; argp1 = (Block__Handle *)jarg1; @@ -5503,7 +5524,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock(void * jarg return 0; } arg4 = *argp4; - arg5 = (FeeCalculator *)jarg5; + { + temp5.callback = FeeCalculatorcCall; + temp5.context = jarg5; + arg5 = &temp5; + } arg6 = (Block__Handle *)jarg6; result = (GoUint32)SKY_coin_NewBlock(arg1,arg2,(GoUint8_ (*)[32])arg3,arg4,arg5,arg6); jresult = result; @@ -14123,6 +14148,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Fees(vo FeeCalculator *arg2 = (FeeCalculator *) 0 ; GoUint64 *arg3 = (GoUint64 *) 0 ; Transactions__Handle *argp1 ; + FeeCalculator temp2 ; GoUint32 result; argp1 = (Transactions__Handle *)jarg1; @@ -14131,7 +14157,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Fees(vo return 0; } arg1 = *argp1; - arg2 = (FeeCalculator *)jarg2; + { + temp2.callback = FeeCalculatorcCall; + temp2.context = jarg2; + arg2 = &temp2; + } arg3 = (GoUint64 *)jarg3; result = (GoUint32)SKY_coin_Transactions_Fees(arg1,arg2,arg3); jresult = result; @@ -14229,6 +14259,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortTransactions(voi FeeCalculator *arg2 = (FeeCalculator *) 0 ; Transactions__Handle *arg3 = (Transactions__Handle *) 0 ; Transactions__Handle *argp1 ; + FeeCalculator temp2 ; GoUint32 result; argp1 = (Transactions__Handle *)jarg1; @@ -14237,7 +14268,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortTransactions(voi return 0; } arg1 = *argp1; - arg2 = (FeeCalculator *)jarg2; + { + temp2.callback = FeeCalculatorcCall; + temp2.context = jarg2; + arg2 = &temp2; + } arg3 = (Transactions__Handle *)jarg3; result = (GoUint32)SKY_coin_SortTransactions(arg1,arg2,arg3); jresult = result; @@ -14251,6 +14286,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewSortableTransacti FeeCalculator *arg2 = (FeeCalculator *) 0 ; SortableTransactionResult_Handle *arg3 = (SortableTransactionResult_Handle *) 0 ; Transactions__Handle *argp1 ; + FeeCalculator temp2 ; GoUint32 result; argp1 = (Transactions__Handle *)jarg1; @@ -14259,7 +14295,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewSortableTransacti return 0; } arg1 = *argp1; - arg2 = (FeeCalculator *)jarg2; + { + temp2.callback = FeeCalculatorcCall; + temp2.context = jarg2; + arg2 = &temp2; + } arg3 = (SortableTransactionResult_Handle *)jarg3; result = (GoUint32)SKY_coin_NewSortableTransactions(arg1,arg2,arg3); jresult = result; @@ -15039,66 +15079,46 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__Transaction_setInnerHash(void * } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__Transaction_Length(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__Transaction_Length(void * jarg1, int jarg2) { coin__Transaction *arg1 = (coin__Transaction *) 0 ; GoInt32_ arg2 ; - GoInt32_ *argp2 ; arg1 = (coin__Transaction *)jarg1; - argp2 = (GoInt32_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt32_", 0); - return ; - } - arg2 = *argp2; + arg2 = (GoInt32_)jarg2; if (arg1) (arg1)->Length = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__Transaction_Length(void * jarg1) { - void * jresult ; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_coin__Transaction_Length(void * jarg1) { + int jresult ; coin__Transaction *arg1 = (coin__Transaction *) 0 ; GoInt32_ result; arg1 = (coin__Transaction *)jarg1; result = ((arg1)->Length); - { - GoInt32_ * resultptr = (GoInt32_ *) malloc(sizeof(GoInt32_)); - memmove(resultptr, &result, sizeof(GoInt32_)); - jresult = resultptr; - } + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__Transaction_Type(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__Transaction_Type(void * jarg1, signed char jarg2) { coin__Transaction *arg1 = (coin__Transaction *) 0 ; GoInt8_ arg2 ; - GoInt8_ *argp2 ; arg1 = (coin__Transaction *)jarg1; - argp2 = (GoInt8_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt8_", 0); - return ; - } - arg2 = *argp2; + arg2 = (GoInt8_)jarg2; if (arg1) (arg1)->Type = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__Transaction_Type(void * jarg1) { - void * jresult ; +SWIGEXPORT signed char SWIGSTDCALL CSharp_skycoin_get_coin__Transaction_Type(void * jarg1) { + signed char jresult ; coin__Transaction *arg1 = (coin__Transaction *) 0 ; GoInt8_ result; arg1 = (coin__Transaction *)jarg1; result = ((arg1)->Type); - { - GoInt8_ * resultptr = (GoInt8_ *) malloc(sizeof(GoInt8_)); - memmove(resultptr, &result, sizeof(GoInt8_)); - jresult = resultptr; - } + jresult = result; return jresult; } @@ -16405,34 +16425,24 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__UxBalance_Hash(void * j } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__UxBalance_BkSeq(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__UxBalance_BkSeq(void * jarg1, long long jarg2) { wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; GoInt64_ arg2 ; - GoInt64_ *argp2 ; arg1 = (wallet__UxBalance *)jarg1; - argp2 = (GoInt64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt64_", 0); - return ; - } - arg2 = *argp2; + arg2 = (GoInt64_)jarg2; if (arg1) (arg1)->BkSeq = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__UxBalance_BkSeq(void * jarg1) { - void * jresult ; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_wallet__UxBalance_BkSeq(void * jarg1) { + long long jresult ; wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; GoInt64_ result; arg1 = (wallet__UxBalance *)jarg1; result = ((arg1)->BkSeq); - { - GoInt64_ * resultptr = (GoInt64_ *) malloc(sizeof(GoInt64_)); - memmove(resultptr, &result, sizeof(GoInt64_)); - jresult = resultptr; - } + jresult = result; return jresult; } @@ -16459,66 +16469,46 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__UxBalance_Address(void } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__UxBalance_Coins(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__UxBalance_Coins(void * jarg1, long long jarg2) { wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; GoInt64_ arg2 ; - GoInt64_ *argp2 ; arg1 = (wallet__UxBalance *)jarg1; - argp2 = (GoInt64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt64_", 0); - return ; - } - arg2 = *argp2; + arg2 = (GoInt64_)jarg2; if (arg1) (arg1)->Coins = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__UxBalance_Coins(void * jarg1) { - void * jresult ; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_wallet__UxBalance_Coins(void * jarg1) { + long long jresult ; wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; GoInt64_ result; arg1 = (wallet__UxBalance *)jarg1; result = ((arg1)->Coins); - { - GoInt64_ * resultptr = (GoInt64_ *) malloc(sizeof(GoInt64_)); - memmove(resultptr, &result, sizeof(GoInt64_)); - jresult = resultptr; - } + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__UxBalance_Hours(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__UxBalance_Hours(void * jarg1, long long jarg2) { wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; GoInt64_ arg2 ; - GoInt64_ *argp2 ; arg1 = (wallet__UxBalance *)jarg1; - argp2 = (GoInt64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt64_", 0); - return ; - } - arg2 = *argp2; + arg2 = (GoInt64_)jarg2; if (arg1) (arg1)->Hours = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__UxBalance_Hours(void * jarg1) { - void * jresult ; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_wallet__UxBalance_Hours(void * jarg1) { + long long jresult ; wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; GoInt64_ result; arg1 = (wallet__UxBalance *)jarg1; result = ((arg1)->Hours); - { - GoInt64_ * resultptr = (GoInt64_ *) malloc(sizeof(GoInt64_)); - memmove(resultptr, &result, sizeof(GoInt64_)); - jresult = resultptr; - } + jresult = result; return jresult; } @@ -16645,34 +16635,24 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_cli__SendAmount_Addr(void * jar } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cli__SendAmount_Coins(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cli__SendAmount_Coins(void * jarg1, long long jarg2) { cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; GoInt64_ arg2 ; - GoInt64_ *argp2 ; arg1 = (cli__SendAmount *)jarg1; - argp2 = (GoInt64_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoInt64_", 0); - return ; - } - arg2 = *argp2; + arg2 = (GoInt64_)jarg2; if (arg1) (arg1)->Coins = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_cli__SendAmount_Coins(void * jarg1) { - void * jresult ; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_cli__SendAmount_Coins(void * jarg1) { + long long jresult ; cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; GoInt64_ result; arg1 = (cli__SendAmount *)jarg1; result = ((arg1)->Coins); - { - GoInt64_ * resultptr = (GoInt64_ *) malloc(sizeof(GoInt64_)); - memmove(resultptr, &result, sizeof(GoInt64_)); - jresult = resultptr; - } + jresult = result; return jresult; } diff --git a/LibskycoinNet/skycoin/wallet__UxBalance.cs b/LibskycoinNet/skycoin/wallet__UxBalance.cs index 4773e63e..cb19eb2b 100644 --- a/LibskycoinNet/skycoin/wallet__UxBalance.cs +++ b/LibskycoinNet/skycoin/wallet__UxBalance.cs @@ -51,14 +51,12 @@ public SWIGTYPE_p_GoUint8_ Hash { } } - public SWIGTYPE_p_GoInt64_ BkSeq { + public long BkSeq { set { - skycoinPINVOKE.set_wallet__UxBalance_BkSeq(swigCPtr, SWIGTYPE_p_GoInt64_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + skycoinPINVOKE.set_wallet__UxBalance_BkSeq(swigCPtr, value); } get { - SWIGTYPE_p_GoInt64_ ret = new SWIGTYPE_p_GoInt64_(skycoinPINVOKE.get_wallet__UxBalance_BkSeq(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + long ret = skycoinPINVOKE.get_wallet__UxBalance_BkSeq(swigCPtr); return ret; } } @@ -74,26 +72,22 @@ public cipher__Address Address { } } - public SWIGTYPE_p_GoInt64_ Coins { + public long Coins { set { - skycoinPINVOKE.set_wallet__UxBalance_Coins(swigCPtr, SWIGTYPE_p_GoInt64_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + skycoinPINVOKE.set_wallet__UxBalance_Coins(swigCPtr, value); } get { - SWIGTYPE_p_GoInt64_ ret = new SWIGTYPE_p_GoInt64_(skycoinPINVOKE.get_wallet__UxBalance_Coins(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + long ret = skycoinPINVOKE.get_wallet__UxBalance_Coins(swigCPtr); return ret; } } - public SWIGTYPE_p_GoInt64_ Hours { + public long Hours { set { - skycoinPINVOKE.set_wallet__UxBalance_Hours(swigCPtr, SWIGTYPE_p_GoInt64_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + skycoinPINVOKE.set_wallet__UxBalance_Hours(swigCPtr, value); } get { - SWIGTYPE_p_GoInt64_ ret = new SWIGTYPE_p_GoInt64_(skycoinPINVOKE.get_wallet__UxBalance_Hours(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + long ret = skycoinPINVOKE.get_wallet__UxBalance_Hours(swigCPtr); return ret; } } diff --git a/LibskycoinNetTest/LibskycoinNetTest.csproj b/LibskycoinNetTest/LibskycoinNetTest.csproj index 46118806..88fb5e68 100644 --- a/LibskycoinNetTest/LibskycoinNetTest.csproj +++ b/LibskycoinNetTest/LibskycoinNetTest.csproj @@ -31,20 +31,25 @@ nunit + + ..\packages\Newtonsoft.Json.11.0.2\lib\net40\Newtonsoft.Json.dll + - - + - - + + - + + + + @@ -52,5 +57,8 @@ LibskycoinNet + + + \ No newline at end of file diff --git a/LibskycoinNetTest/check_cipher_encrypt_scrypt_chacha20poly1305.cs b/LibskycoinNetTest/check_cipher_encrypt_scrypt_chacha20poly1305.cs index 45bf453f..2b4514f4 100644 --- a/LibskycoinNetTest/check_cipher_encrypt_scrypt_chacha20poly1305.cs +++ b/LibskycoinNetTest/check_cipher_encrypt_scrypt_chacha20poly1305.cs @@ -1,18 +1,29 @@ using System; +using System.IO; +using Newtonsoft.Json; +using Newtonsoft.Json.Linq; using NUnit.Framework; using skycoin; namespace LibskycoinNetTest { [TestFixture ()] public class check_cipher_encrypt_scrypt_chacha20poly1305 { - // [Test] - // [Test] + private String cutString (String str, String ini, String end) { + int endIndex = str.LastIndexOf (end); + String outs = str.Substring (0, endIndex); + int offset = ini.Length; + int initIndex = outs.LastIndexOf (ini) + offset; + int cut = outs.Length - initIndex; + outs = outs.Substring (initIndex, cut); + return outs; + } + + [Test] public void TestScryptChacha20poly1305Encrypt () { for (int i = 1; i < 20; i++) { var name = "N=1<<" + i.ToString () + "(" + (1 << i).ToString () + ")" + ", R=8, p=1, keyLen=32"; - Console.WriteLine ("----------------Iteracion----------------- " + i.ToString () + name); var crypto = new encrypt__ScryptChacha20poly1305 (); - crypto.N = ((long) (1 << i)); + crypto.N = Convert.ToInt64 (1 << i); crypto.R = 8; crypto.P = 1; crypto.KeyLen = 32; @@ -28,23 +39,23 @@ public void TestScryptChacha20poly1305Encrypt () { var err = skycoin.skycoin.SKY_encrypt_ScryptChacha20poly1305_Encrypt (crypto, plain, passwd, encData); Assert.AreEqual (err, skycoin.skycoin.SKY_OK, name); Assert.AreEqual (encData.len > 2, true); - string str = (string) encData.ToString(); - var base64 = Convert.FromBase64String (str); - var meta = System.Text.ASCIIEncoding.ASCII.GetString (base64); - Assert.AreEqual (base64.Length >= 2, true); - Assert.AreEqual (base64.Length < 1024, true); + var str = encData.getString (); + Console.WriteLine (name); - - var n = skycoin.skycoin.new_intp (); - var r = skycoin.skycoin.new_intp (); - var p = skycoin.skycoin.new_intp (); - var keyLen = skycoin.skycoin.new_intp (); - Console.WriteLine (meta); - skycoin.skycoin.parseJsonMetaData (meta, n, r, p, keyLen); - Console.WriteLine ("N =" + skycoin.skycoin.intp_value (n)); - Console.WriteLine ("R =" + skycoin.skycoin.intp_value (r)); - Console.WriteLine ("P = " + skycoin.skycoin.intp_value (p)); - Console.WriteLine ("keyLen= " + skycoin.skycoin.intp_value (keyLen)); + if (str.n <= 188) { + var base64 = Convert.FromBase64String (str.p); + var meta = System.Text.Encoding.UTF8.GetString (base64); + var n = skycoin.skycoin.new_Gointp (); + var r = skycoin.skycoin.new_Gointp (); + var p = skycoin.skycoin.new_Gointp (); + var keyLen = skycoin.skycoin.new_Gointp (); + meta = cutString (meta, "{", "}"); + skycoin.skycoin.parseJsonMetaData (meta, n, r, p, keyLen); + Assert.AreEqual (1 << i, skycoin.skycoin.Gointp_value (n), name); + Assert.AreEqual (8, skycoin.skycoin.Gointp_value (r), name); + Assert.AreEqual (1, skycoin.skycoin.Gointp_value (p), name); + Assert.AreEqual (32, skycoin.skycoin.Gointp_value (keyLen), name); + } } } diff --git a/LibskycoinNetTest/check_coin_outputs.cs b/LibskycoinNetTest/check_coin_outputs.cs index a91bc558..c95c5759 100644 --- a/LibskycoinNetTest/check_coin_outputs.cs +++ b/LibskycoinNetTest/check_coin_outputs.cs @@ -610,25 +610,23 @@ public void TestNewAddressUxOuts () { Assert.AreEqual (uxa1.isEqual (uxa2), 0); uxa2.setAt (1, uxs.getAt (4)); - uxa1.release(); + uxa1.release (); skycoin.skycoin.SKY_coin_AddressUxOuts_Get (uxo, uxs.getAt (3).Body.Address, uxa1); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - uxa2.release(); + uxa2.release (); uxa2.allocate (3); uxa2.setAt (0, uxs.getAt (2)); uxa2.setAt (1, uxs.getAt (3)); uxa2.setAt (1, uxs.getAt (4)); Assert.AreEqual (uxa1.isEqual (uxa2), 0); - uxa1.release(); + uxa1.release (); skycoin.skycoin.SKY_coin_AddressUxOuts_Get (uxo, uxs.getAt (5).Body.Address, uxa1); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - uxa2.release(); + uxa2.release (); uxa2.allocate (1); uxa2.setAt (0, uxs.getAt (5)); Assert.AreEqual (uxa1.isEqual (uxa2), 1); - - } } } \ No newline at end of file diff --git a/LibskycoinNetTest/check_coin_transactions.cs b/LibskycoinNetTest/check_coin_transactions.cs index 3cb7f965..de2cfc36 100644 --- a/LibskycoinNetTest/check_coin_transactions.cs +++ b/LibskycoinNetTest/check_coin_transactions.cs @@ -623,8 +623,10 @@ struct StrTest { public ulong headTime; } - StrTest[] cases = new StrTest[5]; + StrTest[] cases; public void FullCases () { + cases = new StrTest[5]; + var c = new StrTest (); c.name = "Input coins overflow"; c.err = skycoin.skycoin.SKY_ERROR; @@ -692,44 +694,43 @@ public void FullCases () { c.inUxs[1].hours = 10; c.outUxs = new ux[3]; c.outUxs[0].coins = (ulong) 10e6; - c.outUxs[0].coins = 11; + c.outUxs[0].hours = 11; c.outUxs[1].coins = (ulong) 10e6; c.outUxs[1].hours = 1; c.outUxs[2].coins = (ulong) 5e6; c.outUxs[2].hours = 0; + c.headTime = 0; + c.err = skycoin.skycoin.SKY_OK; cases[4] = c; } - // [Test] + [Test] public void TestVerifyTransactionCoinsSpending () { FullCases (); for (int i = 0; i < cases.Length; i++) { + var tc = cases[i]; var uxIn = new coin_UxOutArray (); var uxOut = new coin_UxOutArray (); - var tc = cases[i]; + uxIn.allocate (tc.inUxs.Length); uxOut.allocate (tc.outUxs.Length); - for (int j = 0; j < tc.inUxs.Length; j++) { var ch = tc.inUxs[j]; var puxIn = new coin__UxOut (); - skycoin.skycoin.makeUxOut (puxIn); puxIn.Body.Coins = ch.coins; puxIn.Body.Hours = ch.hours; uxIn.setAt (j, puxIn); } - - for (int x = 0; x < tc.outUxs.Length; x++) { - var ch = tc.outUxs[x]; + for (int j = 0; j < tc.outUxs.Length; j++) { + var ch = tc.outUxs[j]; var puxOut = new coin__UxOut (); - skycoin.skycoin.makeUxOut (puxOut); puxOut.Body.Coins = ch.coins; puxOut.Body.Hours = ch.hours; - uxOut.setAt (i, puxOut); + uxOut.setAt (j, puxOut); } - Assert.AreEqual (tc.inUxs.Length, uxIn.count, "Comparacion de inUxs"); - Assert.AreEqual (tc.outUxs.Length, uxOut.count, "coparacion uxout"); + Assert.AreEqual (tc.inUxs.Length, uxIn.count); + Assert.AreEqual (tc.outUxs.Length, uxOut.count); var err = skycoin.skycoin.SKY_coin_VerifyTransactionCoinsSpending (uxIn, uxOut); Assert.AreEqual (err, tc.err, "Iteration " + i.ToString () + tc.name); } @@ -742,7 +743,7 @@ public void FullCases2 () { c.err = skycoin.skycoin.SKY_ERROR; c.inUxs = new ux[2]; c.inUxs[0].hours = (ulong) (ulong.MaxValue - 1e6 + 1); - c.inUxs[0].coins = (ulong)3e6; + c.inUxs[0].coins = (ulong) 3e6; c.inUxs[1].coins = (ulong) 1e6; c.inUxs[1].hours = (ulong) 1e6; c.outUxs = new ux[0]; @@ -761,6 +762,7 @@ public void FullCases2 () { c.outUxs[1].coins = (ulong) 10e6; c.outUxs[1].hours = 11; c.headTime = 0; + c.err = skycoin.skycoin.SKY_ERROR; cases[1] = c; c = new StrTest (); @@ -778,7 +780,7 @@ public void FullCases2 () { c.outUxs[1].hours = 1; c.outUxs[2].coins = (ulong) 5e6; c.outUxs[2].hours = 0; - c.headTime = long.MaxValue; + c.headTime = ulong.MaxValue; cases[2] = c; c = new StrTest (); @@ -786,7 +788,7 @@ public void FullCases2 () { c.err = skycoin.skycoin.SKY_ERROR; c.inUxs = new ux[1]; c.inUxs[0].coins = (ulong) 10e6; - c.inUxs[0].hours = long.MaxValue; + c.inUxs[0].hours = ulong.MaxValue; c.outUxs = new ux[1]; c.outUxs[0].coins = (ulong) 10e6; c.outUxs[0].hours = 1; @@ -837,7 +839,7 @@ public void FullCases2 () { } - // [Test] + [Test] public void TestVerifyTransactionHoursSpending () { FullCases2 (); @@ -845,26 +847,31 @@ public void TestVerifyTransactionHoursSpending () { var tc = cases[i]; var uxIn = new coin_UxOutArray (); var uxOut = new coin_UxOutArray (); + + uxIn.allocate (tc.inUxs.Length); + uxOut.allocate (tc.outUxs.Length); for (int j = 0; j < tc.inUxs.Length; j++) { var ch = tc.inUxs[j]; var puxIn = new coin__UxOut (); puxIn.Body.Coins = ch.coins; puxIn.Body.Hours = ch.hours; - uxIn.append (puxIn); + uxIn.setAt (j, puxIn); } for (int j = 0; j < tc.outUxs.Length; j++) { var ch = tc.outUxs[j]; var puxOut = new coin__UxOut (); puxOut.Body.Coins = ch.coins; puxOut.Body.Hours = ch.hours; - uxOut.append (puxOut); + uxOut.setAt (j, puxOut); } - Assert.AreEqual (tc.inUxs.Length, uxIn.count, "Comparacion de inUxs"); - Assert.AreEqual (tc.outUxs.Length, uxOut.count, "coparacion uxout"); - var err = skycoin.skycoin.SKY_coin_VerifyTransactionHoursSpending(tc.headTime,uxIn, uxOut); - Assert.AreEqual (err, tc.err, "Iter " + i.ToString () + tc.name); + Assert.AreEqual (tc.inUxs.Length, uxIn.count); + Assert.AreEqual (tc.outUxs.Length, uxOut.count); + var err = skycoin.skycoin.SKY_coin_VerifyTransactionHoursSpending (tc.headTime, uxIn, uxOut); + Assert.AreEqual (err, tc.err); } } + + } } \ No newline at end of file diff --git a/LibskycoinNetTest/packages.config b/LibskycoinNetTest/packages.config new file mode 100644 index 00000000..07048c7e --- /dev/null +++ b/LibskycoinNetTest/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index 24910b9e..5e19b8be 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit 24910b9eda7db0344f97cd4b0fe6e9be82d4a482 +Subproject commit 5e19b8be83dcc1a22ae569ac44538946b289456a From 919c86f427734c9ff36065d0e4d3f7e9825bb263 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Tue, 2 Oct 2018 22:58:29 -0400 Subject: [PATCH 43/73] [swig] refs #1660 Init typemap callback --- LibskycoinNet/skycoin/skycoin.cs | 79 +++-- LibskycoinNet/skycoin/skycoinPINVOKE.cs | 46 +-- LibskycoinNet/skycoin/skycoinnet_wrap.c | 306 +++++++++++-------- LibskycoinNetTest/LibskycoinNetTest.csproj | 18 +- LibskycoinNetTest/check_coin_transactions.cs | 9 +- gopath/src/github.com/skycoin/skycoin | 2 +- 6 files changed, 267 insertions(+), 193 deletions(-) diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs index 4958b6e6..4ec1d44b 100644 --- a/LibskycoinNet/skycoin/skycoin.cs +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -141,33 +141,6 @@ public static coin__Transaction coin__Transactionp_value(coin__Transaction obj) return ret; } - public static SWIGTYPE_p_Transaction__Handle new_Transaction__Handlep() { - global::System.IntPtr cPtr = skycoinPINVOKE.new_Transaction__Handlep(); - SWIGTYPE_p_Transaction__Handle ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Transaction__Handle(cPtr, false); - return ret; - } - - public static SWIGTYPE_p_Transaction__Handle copy_Transaction__Handlep(SWIGTYPE_p_Transaction__Handle value) { - global::System.IntPtr cPtr = skycoinPINVOKE.copy_Transaction__Handlep(SWIGTYPE_p_Transaction__Handle.getCPtr(value)); - SWIGTYPE_p_Transaction__Handle ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Transaction__Handle(cPtr, false); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static void delete_Transaction__Handlep(SWIGTYPE_p_Transaction__Handle obj) { - skycoinPINVOKE.delete_Transaction__Handlep(SWIGTYPE_p_Transaction__Handle.getCPtr(obj)); - } - - public static void Transaction__Handlep_assign(SWIGTYPE_p_Transaction__Handle obj, SWIGTYPE_p_Transaction__Handle value) { - skycoinPINVOKE.Transaction__Handlep_assign(SWIGTYPE_p_Transaction__Handle.getCPtr(obj), SWIGTYPE_p_Transaction__Handle.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - - public static SWIGTYPE_p_Transaction__Handle Transaction__Handlep_value(SWIGTYPE_p_Transaction__Handle obj) { - SWIGTYPE_p_Transaction__Handle ret = new SWIGTYPE_p_Transaction__Handle(skycoinPINVOKE.Transaction__Handlep_value(SWIGTYPE_p_Transaction__Handle.getCPtr(obj)), true); - return ret; - } - public static SWIGTYPE_p_AddressUxOuts_Handle new_AddressUxOuts__HandlePtr() { global::System.IntPtr cPtr = skycoinPINVOKE.new_AddressUxOuts__HandlePtr(); SWIGTYPE_p_AddressUxOuts_Handle ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_AddressUxOuts_Handle(cPtr, false); @@ -324,6 +297,33 @@ public static SWIGTYPE_p_Transactions__Handle Transactions__Handlep_value(SWIGTY return ret; } + public static SWIGTYPE_p_Transaction__Handle new_Transaction__Handlep() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_Transaction__Handlep(); + SWIGTYPE_p_Transaction__Handle ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Transaction__Handle(cPtr, false); + return ret; + } + + public static SWIGTYPE_p_Transaction__Handle copy_Transaction__Handlep(SWIGTYPE_p_Transaction__Handle value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_Transaction__Handlep(SWIGTYPE_p_Transaction__Handle.getCPtr(value)); + SWIGTYPE_p_Transaction__Handle ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Transaction__Handle(cPtr, false); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static void delete_Transaction__Handlep(SWIGTYPE_p_Transaction__Handle obj) { + skycoinPINVOKE.delete_Transaction__Handlep(SWIGTYPE_p_Transaction__Handle.getCPtr(obj)); + } + + public static void Transaction__Handlep_assign(SWIGTYPE_p_Transaction__Handle obj, SWIGTYPE_p_Transaction__Handle value) { + skycoinPINVOKE.Transaction__Handlep_assign(SWIGTYPE_p_Transaction__Handle.getCPtr(obj), SWIGTYPE_p_Transaction__Handle.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + + public static SWIGTYPE_p_Transaction__Handle Transaction__Handlep_value(SWIGTYPE_p_Transaction__Handle obj) { + SWIGTYPE_p_Transaction__Handle ret = new SWIGTYPE_p_Transaction__Handle(skycoinPINVOKE.Transaction__Handlep_value(SWIGTYPE_p_Transaction__Handle.getCPtr(obj)), true); + return ret; + } + public static SWIGTYPE_p_unsigned_char new_charp() { global::System.IntPtr cPtr = skycoinPINVOKE.new_charp(); SWIGTYPE_p_unsigned_char ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); @@ -349,12 +349,33 @@ public static byte charp_value(SWIGTYPE_p_unsigned_char obj) { return ret; } - public static SWIGTYPE_p_GoUint32_ FeeCalculatorcCall(SWIGTYPE_p_FeeCalculator feeCalc, SWIGTYPE_p_Transaction__Handle handle, SWIGTYPE_p_GoUint64_ pFee) { - SWIGTYPE_p_GoUint32_ ret = new SWIGTYPE_p_GoUint32_(skycoinPINVOKE.FeeCalculatorcCall(SWIGTYPE_p_FeeCalculator.getCPtr(feeCalc), SWIGTYPE_p_Transaction__Handle.getCPtr(handle), SWIGTYPE_p_GoUint64_.getCPtr(pFee)), true); + public static SWIGTYPE_p_FeeCalculator new_FeeCalculatorPtr() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_FeeCalculatorPtr(); + SWIGTYPE_p_FeeCalculator ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_FeeCalculator(cPtr, false); + return ret; + } + + public static SWIGTYPE_p_FeeCalculator copy_FeeCalculatorPtr(SWIGTYPE_p_FeeCalculator value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_FeeCalculatorPtr(SWIGTYPE_p_FeeCalculator.getCPtr(value)); + SWIGTYPE_p_FeeCalculator ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_FeeCalculator(cPtr, false); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } + public static void delete_FeeCalculatorPtr(SWIGTYPE_p_FeeCalculator obj) { + skycoinPINVOKE.delete_FeeCalculatorPtr(SWIGTYPE_p_FeeCalculator.getCPtr(obj)); + } + + public static void FeeCalculatorPtr_assign(SWIGTYPE_p_FeeCalculator obj, SWIGTYPE_p_FeeCalculator value) { + skycoinPINVOKE.FeeCalculatorPtr_assign(SWIGTYPE_p_FeeCalculator.getCPtr(obj), SWIGTYPE_p_FeeCalculator.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + + public static SWIGTYPE_p_FeeCalculator FeeCalculatorPtr_value(SWIGTYPE_p_FeeCalculator obj) { + SWIGTYPE_p_FeeCalculator ret = new SWIGTYPE_p_FeeCalculator(skycoinPINVOKE.FeeCalculatorPtr_value(SWIGTYPE_p_FeeCalculator.getCPtr(obj)), true); + return ret; + } + public static void SKY_handle_close(SWIGTYPE_p_Handle p0) { skycoinPINVOKE.SKY_handle_close(SWIGTYPE_p_Handle.getCPtr(p0)); } diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index 937cc9b2..8d36c564 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -263,21 +263,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transactionp_value")] public static extern global::System.IntPtr coin__Transactionp_value(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_Transaction__Handlep")] - public static extern global::System.IntPtr new_Transaction__Handlep(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_Transaction__Handlep")] - public static extern global::System.IntPtr copy_Transaction__Handlep(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_Transaction__Handlep")] - public static extern void delete_Transaction__Handlep(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Transaction__Handlep_assign")] - public static extern void Transaction__Handlep_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Transaction__Handlep_value")] - public static extern global::System.IntPtr Transaction__Handlep_value(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_AddressUxOuts__HandlePtr")] public static extern global::System.IntPtr new_AddressUxOuts__HandlePtr(); @@ -368,6 +353,21 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Transactions__Handlep_value")] public static extern global::System.IntPtr Transactions__Handlep_value(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_Transaction__Handlep")] + public static extern global::System.IntPtr new_Transaction__Handlep(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_Transaction__Handlep")] + public static extern global::System.IntPtr copy_Transaction__Handlep(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_Transaction__Handlep")] + public static extern void delete_Transaction__Handlep(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Transaction__Handlep_assign")] + public static extern void Transaction__Handlep_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Transaction__Handlep_value")] + public static extern global::System.IntPtr Transaction__Handlep_value(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_charp")] public static extern global::System.IntPtr new_charp(); @@ -383,8 +383,20 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_charp_value")] public static extern byte charp_value(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_FeeCalculatorcCall")] - public static extern global::System.IntPtr FeeCalculatorcCall(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_FeeCalculatorPtr")] + public static extern global::System.IntPtr new_FeeCalculatorPtr(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_FeeCalculatorPtr")] + public static extern global::System.IntPtr copy_FeeCalculatorPtr(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_FeeCalculatorPtr")] + public static extern void delete_FeeCalculatorPtr(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_FeeCalculatorPtr_assign")] + public static extern void FeeCalculatorPtr_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_FeeCalculatorPtr_value")] + public static extern global::System.IntPtr FeeCalculatorPtr_value(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_handle_close")] public static extern void SKY_handle_close(global::System.Runtime.InteropServices.HandleRef jarg1); diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index e8793b0f..07748510 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -429,29 +429,6 @@ static coin__Transaction coin__Transactionp_value(coin__Transaction *obj) { } -static Transaction__Handle *new_Transaction__Handlep() { - return (Transaction__Handle *) calloc(1,sizeof(Transaction__Handle)); -} - -static Transaction__Handle *copy_Transaction__Handlep(Transaction__Handle value) { - Transaction__Handle *obj = (Transaction__Handle *) calloc(1,sizeof(Transaction__Handle)); - *obj = value; - return obj; -} - -static void delete_Transaction__Handlep(Transaction__Handle *obj) { - if (obj) free(obj); -} - -static void Transaction__Handlep_assign(Transaction__Handle *obj, Transaction__Handle value) { - *obj = value; -} - -static Transaction__Handle Transaction__Handlep_value(Transaction__Handle *obj) { - return *obj; -} - - static AddressUxOuts_Handle *new_AddressUxOuts__HandlePtr() { return (AddressUxOuts_Handle *) calloc(1,sizeof(AddressUxOuts_Handle)); } @@ -590,6 +567,29 @@ static Transactions__Handle Transactions__Handlep_value(Transactions__Handle *ob } +static Transaction__Handle *new_Transaction__Handlep() { + return (Transaction__Handle *) calloc(1,sizeof(Transaction__Handle)); +} + +static Transaction__Handle *copy_Transaction__Handlep(Transaction__Handle value) { + Transaction__Handle *obj = (Transaction__Handle *) calloc(1,sizeof(Transaction__Handle)); + *obj = value; + return obj; +} + +static void delete_Transaction__Handlep(Transaction__Handle *obj) { + if (obj) free(obj); +} + +static void Transaction__Handlep_assign(Transaction__Handle *obj, Transaction__Handle value) { + *obj = value; +} + +static Transaction__Handle Transaction__Handlep_value(Transaction__Handle *obj) { + return *obj; +} + + static unsigned char *new_charp() { return (unsigned char *) calloc(1,sizeof(unsigned char)); } @@ -613,10 +613,29 @@ static unsigned char charp_value(unsigned char *obj) { } +static FeeCalculator *new_FeeCalculatorPtr() { + return (FeeCalculator *) calloc(1,sizeof(FeeCalculator)); +} + +static FeeCalculator *copy_FeeCalculatorPtr(FeeCalculator value) { + FeeCalculator *obj = (FeeCalculator *) calloc(1,sizeof(FeeCalculator)); + *obj = value; + return obj; +} - static inline GoUint32_ FeeCalculatorcCall(FeeCalculator* feeCalc, Transaction__Handle handle, GoUint64_* pFee){ - return feeCalc->callback(handle, pFee, feeCalc->context); +static void delete_FeeCalculatorPtr(FeeCalculator *obj) { + if (obj) free(obj); } + +static void FeeCalculatorPtr_assign(FeeCalculator *obj, FeeCalculator value) { + *obj = value; +} + +static FeeCalculator FeeCalculatorPtr_value(FeeCalculator *obj) { + return *obj; +} + + #include "json.h" //Define function SKY_handle_close to avoid including libskycoin.h void SKY_handle_close(Handle p0); @@ -2094,74 +2113,6 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Transactionp_value(void * jar } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_Transaction__Handlep() { - void * jresult ; - Transaction__Handle *result = 0 ; - - result = (Transaction__Handle *)new_Transaction__Handlep(); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_Transaction__Handlep(void * jarg1) { - void * jresult ; - Transaction__Handle arg1 ; - Transaction__Handle *argp1 ; - Transaction__Handle *result = 0 ; - - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; - } - arg1 = *argp1; - result = (Transaction__Handle *)copy_Transaction__Handlep(arg1); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_Transaction__Handlep(void * jarg1) { - Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; - - arg1 = (Transaction__Handle *)jarg1; - delete_Transaction__Handlep(arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_Transaction__Handlep_assign(void * jarg1, void * jarg2) { - Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; - Transaction__Handle arg2 ; - Transaction__Handle *argp2 ; - - arg1 = (Transaction__Handle *)jarg1; - argp2 = (Transaction__Handle *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return ; - } - arg2 = *argp2; - Transaction__Handlep_assign(arg1,arg2); -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_Transaction__Handlep_value(void * jarg1) { - void * jresult ; - Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; - Transaction__Handle result; - - arg1 = (Transaction__Handle *)jarg1; - result = Transaction__Handlep_value(arg1); - { - Transaction__Handle * resultptr = (Transaction__Handle *) malloc(sizeof(Transaction__Handle)); - memmove(resultptr, &result, sizeof(Transaction__Handle)); - jresult = resultptr; - } - return jresult; -} - - SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_AddressUxOuts__HandlePtr() { void * jresult ; AddressUxOuts_Handle *result = 0 ; @@ -2522,6 +2473,74 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_Transactions__Handlep_value(void * } +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_Transaction__Handlep() { + void * jresult ; + Transaction__Handle *result = 0 ; + + result = (Transaction__Handle *)new_Transaction__Handlep(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_Transaction__Handlep(void * jarg1) { + void * jresult ; + Transaction__Handle arg1 ; + Transaction__Handle *argp1 ; + Transaction__Handle *result = 0 ; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + result = (Transaction__Handle *)copy_Transaction__Handlep(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_Transaction__Handlep(void * jarg1) { + Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; + + arg1 = (Transaction__Handle *)jarg1; + delete_Transaction__Handlep(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_Transaction__Handlep_assign(void * jarg1, void * jarg2) { + Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; + Transaction__Handle arg2 ; + Transaction__Handle *argp2 ; + + arg1 = (Transaction__Handle *)jarg1; + argp2 = (Transaction__Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return ; + } + arg2 = *argp2; + Transaction__Handlep_assign(arg1,arg2); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_Transaction__Handlep_value(void * jarg1) { + void * jresult ; + Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; + Transaction__Handle result; + + arg1 = (Transaction__Handle *)jarg1; + result = Transaction__Handlep_value(arg1); + { + Transaction__Handle * resultptr = (Transaction__Handle *) malloc(sizeof(Transaction__Handle)); + memmove(resultptr, &result, sizeof(Transaction__Handle)); + jresult = resultptr; + } + return jresult; +} + + SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_charp() { void * jresult ; unsigned char *result = 0 ; @@ -2574,31 +2593,68 @@ SWIGEXPORT unsigned char SWIGSTDCALL CSharp_skycoin_charp_value(void * jarg1) { } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_FeeCalculatorcCall(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_FeeCalculatorPtr() { void * jresult ; - FeeCalculator *arg1 = (FeeCalculator *) 0 ; - Transaction__Handle arg2 ; - GoUint64_ *arg3 = (GoUint64_ *) 0 ; - FeeCalculator temp1 ; - Transaction__Handle *argp2 ; - GoUint32_ result; + FeeCalculator *result = 0 ; - { - temp1.callback = FeeCalculatorcCall; - temp1.context = jarg1; - arg1 = &temp1; + result = (FeeCalculator *)new_FeeCalculatorPtr(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_FeeCalculatorPtr(void * jarg1) { + void * jresult ; + FeeCalculator arg1 ; + FeeCalculator *argp1 ; + FeeCalculator *result = 0 ; + + argp1 = (FeeCalculator *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null FeeCalculator", 0); + return 0; } - argp2 = (Transaction__Handle *)jarg2; + arg1 = *argp1; + result = (FeeCalculator *)copy_FeeCalculatorPtr(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_FeeCalculatorPtr(void * jarg1) { + FeeCalculator *arg1 = (FeeCalculator *) 0 ; + + arg1 = (FeeCalculator *)jarg1; + delete_FeeCalculatorPtr(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_FeeCalculatorPtr_assign(void * jarg1, void * jarg2) { + FeeCalculator *arg1 = (FeeCalculator *) 0 ; + FeeCalculator arg2 ; + FeeCalculator *argp2 ; + + arg1 = (FeeCalculator *)jarg1; + argp2 = (FeeCalculator *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null FeeCalculator", 0); + return ; } arg2 = *argp2; - arg3 = (GoUint64_ *)jarg3; - result = FeeCalculatorcCall(arg1,arg2,arg3); + FeeCalculatorPtr_assign(arg1,arg2); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_FeeCalculatorPtr_value(void * jarg1) { + void * jresult ; + FeeCalculator *arg1 = (FeeCalculator *) 0 ; + FeeCalculator result; + + arg1 = (FeeCalculator *)jarg1; + result = FeeCalculatorPtr_value(arg1); { - GoUint32_ * resultptr = (GoUint32_ *) malloc(sizeof(GoUint32_)); - memmove(resultptr, &result, sizeof(GoUint32_)); + FeeCalculator * resultptr = (FeeCalculator *) malloc(sizeof(FeeCalculator)); + memmove(resultptr, &result, sizeof(FeeCalculator)); jresult = resultptr; } return jresult; @@ -5507,7 +5563,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock(void * jarg Block__Handle *arg6 = (Block__Handle *) 0 ; Block__Handle *argp1 ; Transactions__Handle *argp4 ; - FeeCalculator temp5 ; GoUint32 result; argp1 = (Block__Handle *)jarg1; @@ -5524,11 +5579,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock(void * jarg return 0; } arg4 = *argp4; - { - temp5.callback = FeeCalculatorcCall; - temp5.context = jarg5; - arg5 = &temp5; - } + arg5 = (FeeCalculator *)jarg5; arg6 = (Block__Handle *)jarg6; result = (GoUint32)SKY_coin_NewBlock(arg1,arg2,(GoUint8_ (*)[32])arg3,arg4,arg5,arg6); jresult = result; @@ -14148,7 +14199,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Fees(vo FeeCalculator *arg2 = (FeeCalculator *) 0 ; GoUint64 *arg3 = (GoUint64 *) 0 ; Transactions__Handle *argp1 ; - FeeCalculator temp2 ; GoUint32 result; argp1 = (Transactions__Handle *)jarg1; @@ -14157,11 +14207,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Fees(vo return 0; } arg1 = *argp1; - { - temp2.callback = FeeCalculatorcCall; - temp2.context = jarg2; - arg2 = &temp2; - } + arg2 = (FeeCalculator *)jarg2; arg3 = (GoUint64 *)jarg3; result = (GoUint32)SKY_coin_Transactions_Fees(arg1,arg2,arg3); jresult = result; @@ -14259,7 +14305,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortTransactions(voi FeeCalculator *arg2 = (FeeCalculator *) 0 ; Transactions__Handle *arg3 = (Transactions__Handle *) 0 ; Transactions__Handle *argp1 ; - FeeCalculator temp2 ; GoUint32 result; argp1 = (Transactions__Handle *)jarg1; @@ -14268,11 +14313,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortTransactions(voi return 0; } arg1 = *argp1; - { - temp2.callback = FeeCalculatorcCall; - temp2.context = jarg2; - arg2 = &temp2; - } + arg2 = (FeeCalculator *)jarg2; arg3 = (Transactions__Handle *)jarg3; result = (GoUint32)SKY_coin_SortTransactions(arg1,arg2,arg3); jresult = result; @@ -14286,7 +14327,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewSortableTransacti FeeCalculator *arg2 = (FeeCalculator *) 0 ; SortableTransactionResult_Handle *arg3 = (SortableTransactionResult_Handle *) 0 ; Transactions__Handle *argp1 ; - FeeCalculator temp2 ; GoUint32 result; argp1 = (Transactions__Handle *)jarg1; @@ -14295,11 +14335,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewSortableTransacti return 0; } arg1 = *argp1; - { - temp2.callback = FeeCalculatorcCall; - temp2.context = jarg2; - arg2 = &temp2; - } + arg2 = (FeeCalculator *)jarg2; arg3 = (SortableTransactionResult_Handle *)jarg3; result = (GoUint32)SKY_coin_NewSortableTransactions(arg1,arg2,arg3); jresult = result; diff --git a/LibskycoinNetTest/LibskycoinNetTest.csproj b/LibskycoinNetTest/LibskycoinNetTest.csproj index 88fb5e68..60028bbe 100644 --- a/LibskycoinNetTest/LibskycoinNetTest.csproj +++ b/LibskycoinNetTest/LibskycoinNetTest.csproj @@ -38,16 +38,16 @@ - - - - - - + + + + + + - - - + + + diff --git a/LibskycoinNetTest/check_coin_transactions.cs b/LibskycoinNetTest/check_coin_transactions.cs index de2cfc36..e548184d 100644 --- a/LibskycoinNetTest/check_coin_transactions.cs +++ b/LibskycoinNetTest/check_coin_transactions.cs @@ -2,6 +2,7 @@ using NUnit.Framework; using skycoin; using utils; + namespace LibskycoinNetTest { [TestFixture ()] public class check_coin_transactions { @@ -871,7 +872,11 @@ public void TestVerifyTransactionHoursSpending () { } } - - + [Test] + public void TestTransactionsFees () { + var fee = skycoin.skycoin.new_FeeCalculatorPtr(); + + } } + } \ No newline at end of file diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index 5e19b8be..5cb6c300 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit 5e19b8be83dcc1a22ae569ac44538946b289456a +Subproject commit 5cb6c300cf72788a113ab213ba7e98ddc66cfe38 From eab6c48781f6a81c90e5ca521c593bb9693f4251 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Wed, 3 Oct 2018 23:29:40 -0400 Subject: [PATCH 44/73] [test] refs #8 Finish coin without callback --- LibskycoinNet/LibskycoinNet.csproj | 2 + LibskycoinNet/skycoin/Fee_Calculator.cs | 12 +- ..._p_unsigned_long_long_p_void__GoUint32_.cs | 29 +++ LibskycoinNet/skycoin/coin__BlockHeader.cs | 8 +- LibskycoinNet/skycoin/encoder__StructField.cs | 8 +- LibskycoinNet/skycoin/skycoin.cs | 43 +++- LibskycoinNet/skycoin/skycoinPINVOKE.cs | 40 +++- LibskycoinNet/skycoin/skycoinnet_wrap.c | 219 +++++++++++++++--- LibskycoinNetTest/LibskycoinNetTest.csproj | 4 +- LibskycoinNetTest/check_coin_block.cs | 72 ++++++ LibskycoinNetTest/check_coin_transactions.cs | 10 +- LibskycoinNetTest/transutils.cs | 10 + gopath/src/github.com/skycoin/skycoin | 2 +- 13 files changed, 400 insertions(+), 59 deletions(-) create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_.cs create mode 100644 LibskycoinNetTest/check_coin_block.cs diff --git a/LibskycoinNet/LibskycoinNet.csproj b/LibskycoinNet/LibskycoinNet.csproj index 024d94bf..96207d17 100644 --- a/LibskycoinNet/LibskycoinNet.csproj +++ b/LibskycoinNet/LibskycoinNet.csproj @@ -133,6 +133,8 @@ + + diff --git a/LibskycoinNet/skycoin/Fee_Calculator.cs b/LibskycoinNet/skycoin/Fee_Calculator.cs index 81d90ad5..7109660c 100644 --- a/LibskycoinNet/skycoin/Fee_Calculator.cs +++ b/LibskycoinNet/skycoin/Fee_Calculator.cs @@ -40,13 +40,19 @@ public virtual void Dispose() { } } - public SWIGTYPE_p_f_Transaction__Handle_p_GoUint64__p_void__GoUint32_ callback { + public uint callFeeCalculator(SWIGTYPE_p_FeeCalculator feeCalc, SWIGTYPE_p_Transaction__Handle handle, SWIGTYPE_p_unsigned_long_long pFee) { + uint ret = skycoinPINVOKE.Fee_Calculator_callFeeCalculator(swigCPtr, SWIGTYPE_p_FeeCalculator.getCPtr(feeCalc), SWIGTYPE_p_Transaction__Handle.getCPtr(handle), SWIGTYPE_p_unsigned_long_long.getCPtr(pFee)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public SWIGTYPE_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_ callback { set { - skycoinPINVOKE.set_Fee_Calculator_callback(swigCPtr, SWIGTYPE_p_f_Transaction__Handle_p_GoUint64__p_void__GoUint32_.getCPtr(value)); + skycoinPINVOKE.set_Fee_Calculator_callback(swigCPtr, SWIGTYPE_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_.getCPtr(value)); } get { global::System.IntPtr cPtr = skycoinPINVOKE.get_Fee_Calculator_callback(swigCPtr); - SWIGTYPE_p_f_Transaction__Handle_p_GoUint64__p_void__GoUint32_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_f_Transaction__Handle_p_GoUint64__p_void__GoUint32_(cPtr, false); + SWIGTYPE_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_(cPtr, false); return ret; } } diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_.cs new file mode 100644 index 00000000..684adf20 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_ { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/coin__BlockHeader.cs b/LibskycoinNet/skycoin/coin__BlockHeader.cs index 9d704c7d..f1c405ea 100644 --- a/LibskycoinNet/skycoin/coin__BlockHeader.cs +++ b/LibskycoinNet/skycoin/coin__BlockHeader.cs @@ -45,14 +45,12 @@ public int isEqual(coin__BlockHeader bh) { return ret; } - public SWIGTYPE_p_GoUint32_ Version { + public uint Version { set { - skycoinPINVOKE.set_coin__BlockHeader_Version(swigCPtr, SWIGTYPE_p_GoUint32_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + skycoinPINVOKE.set_coin__BlockHeader_Version(swigCPtr, value); } get { - SWIGTYPE_p_GoUint32_ ret = new SWIGTYPE_p_GoUint32_(skycoinPINVOKE.get_coin__BlockHeader_Version(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + uint ret = skycoinPINVOKE.get_coin__BlockHeader_Version(swigCPtr); return ret; } } diff --git a/LibskycoinNet/skycoin/encoder__StructField.cs b/LibskycoinNet/skycoin/encoder__StructField.cs index 7c50022f..ba01c69f 100644 --- a/LibskycoinNet/skycoin/encoder__StructField.cs +++ b/LibskycoinNet/skycoin/encoder__StructField.cs @@ -52,14 +52,12 @@ public SWIGTYPE_p_GoString_ Name { } } - public SWIGTYPE_p_GoUint32_ Kind { + public uint Kind { set { - skycoinPINVOKE.set_encoder__StructField_Kind(swigCPtr, SWIGTYPE_p_GoUint32_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + skycoinPINVOKE.set_encoder__StructField_Kind(swigCPtr, value); } get { - SWIGTYPE_p_GoUint32_ ret = new SWIGTYPE_p_GoUint32_(skycoinPINVOKE.get_encoder__StructField_Kind(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + uint ret = skycoinPINVOKE.get_encoder__StructField_Kind(swigCPtr); return ret; } } diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs index 4ec1d44b..4d0bd0f0 100644 --- a/LibskycoinNet/skycoin/skycoin.cs +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -324,6 +324,33 @@ public static SWIGTYPE_p_Transaction__Handle Transaction__Handlep_value(SWIGTYPE return ret; } + public static SWIGTYPE_p_Block__Handle new_Block__HandlePtr() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_Block__HandlePtr(); + SWIGTYPE_p_Block__Handle ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Block__Handle(cPtr, false); + return ret; + } + + public static SWIGTYPE_p_Block__Handle copy_Block__HandlePtr(SWIGTYPE_p_Block__Handle value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_Block__HandlePtr(SWIGTYPE_p_Block__Handle.getCPtr(value)); + SWIGTYPE_p_Block__Handle ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Block__Handle(cPtr, false); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static void delete_Block__HandlePtr(SWIGTYPE_p_Block__Handle obj) { + skycoinPINVOKE.delete_Block__HandlePtr(SWIGTYPE_p_Block__Handle.getCPtr(obj)); + } + + public static void Block__HandlePtr_assign(SWIGTYPE_p_Block__Handle obj, SWIGTYPE_p_Block__Handle value) { + skycoinPINVOKE.Block__HandlePtr_assign(SWIGTYPE_p_Block__Handle.getCPtr(obj), SWIGTYPE_p_Block__Handle.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + + public static SWIGTYPE_p_Block__Handle Block__HandlePtr_value(SWIGTYPE_p_Block__Handle obj) { + SWIGTYPE_p_Block__Handle ret = new SWIGTYPE_p_Block__Handle(skycoinPINVOKE.Block__HandlePtr_value(SWIGTYPE_p_Block__Handle.getCPtr(obj)), true); + return ret; + } + public static SWIGTYPE_p_unsigned_char new_charp() { global::System.IntPtr cPtr = skycoinPINVOKE.new_charp(); SWIGTYPE_p_unsigned_char ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); @@ -871,6 +898,18 @@ public static uint SKY_fee_TransactionFee(SWIGTYPE_p_Transaction__Handle handle, return ret; } + public static uint SKY_coin_Transactions_Fees(SWIGTYPE_p_Transactions__Handle handle, Fee_Calculator pFeeCalc, SWIGTYPE_p_unsigned_long_long p3) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_Fees__SWIG_0(SWIGTYPE_p_Transactions__Handle.getCPtr(handle), Fee_Calculator.getCPtr(pFeeCalc), SWIGTYPE_p_unsigned_long_long.getCPtr(p3)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_GetBlockObject(SWIGTYPE_p_Block__Handle handle, coin__Block outBlock) { + uint ret = skycoinPINVOKE.SKY_coin_GetBlockObject__SWIG_0(SWIGTYPE_p_Block__Handle.getCPtr(handle), coin__Block.getCPtr(outBlock)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + public static uint SKY_coin_NewBlock(SWIGTYPE_p_Block__Handle p0, ulong p1, cipher_SecKey p2, SWIGTYPE_p_Transactions__Handle p3, SWIGTYPE_p_FeeCalculator p4, SWIGTYPE_p_Block__Handle p5) { var tmpp2 = cipher_SecKey.getCPtr (p2); { @@ -1019,7 +1058,7 @@ public static uint SKY_coin_CreateUnspent(coin__BlockHeader p0, SWIGTYPE_p_Trans } public static uint SKY_coin_GetBlockObject(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_p_coin__Block p1) { - uint ret = skycoinPINVOKE.SKY_coin_GetBlockObject(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_p_coin__Block.getCPtr(p1)); + uint ret = skycoinPINVOKE.SKY_coin_GetBlockObject__SWIG_1(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_p_coin__Block.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -3992,7 +4031,7 @@ public static uint SKY_coin_Transactions_Add(SWIGTYPE_p_Transactions__Handle p0, } public static uint SKY_coin_Transactions_Fees(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_FeeCalculator p1, SWIGTYPE_p_unsigned_long_long p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transactions_Fees(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1), SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); + uint ret = skycoinPINVOKE.SKY_coin_Transactions_Fees__SWIG_1(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1), SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index 8d36c564..f80a50a2 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -368,6 +368,21 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Transaction__Handlep_value")] public static extern global::System.IntPtr Transaction__Handlep_value(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_Block__HandlePtr")] + public static extern global::System.IntPtr new_Block__HandlePtr(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_Block__HandlePtr")] + public static extern global::System.IntPtr copy_Block__HandlePtr(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_Block__HandlePtr")] + public static extern void delete_Block__HandlePtr(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Block__HandlePtr_assign")] + public static extern void Block__HandlePtr_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Block__HandlePtr_value")] + public static extern global::System.IntPtr Block__HandlePtr_value(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_charp")] public static extern global::System.IntPtr new_charp(); @@ -689,6 +704,12 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_TransactionFee__SWIG_0")] public static extern uint SKY_fee_TransactionFee__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Fees__SWIG_0")] + public static extern uint SKY_coin_Transactions_Fees__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetBlockObject__SWIG_0")] + public static extern uint SKY_coin_GetBlockObject__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKey_isEqual")] public static extern int cipher_PubKey_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -989,6 +1010,9 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_Addresses")] public static extern void delete_cipher_Addresses(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Fee_Calculator_callFeeCalculator")] + public static extern uint Fee_Calculator_callFeeCalculator(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_Fee_Calculator_callback")] public static extern void set_Fee_Calculator_callback(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1139,8 +1163,8 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_CreateUnspent")] public static extern uint SKY_coin_CreateUnspent(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetBlockObject")] - public static extern uint SKY_coin_GetBlockObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetBlockObject__SWIG_1")] + public static extern uint SKY_coin_GetBlockObject__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetBlockBody")] public static extern uint SKY_coin_GetBlockBody(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -2423,8 +2447,8 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Add")] public static extern uint SKY_coin_Transactions_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Fees")] - public static extern uint SKY_coin_Transactions_Fees(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Fees__SWIG_1")] + public static extern uint SKY_coin_Transactions_Fees__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_GetAt")] public static extern uint SKY_coin_Transactions_GetAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -2496,10 +2520,10 @@ static skycoinPINVOKE() { public static extern global::System.IntPtr get_encoder__StructField_Name(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_encoder__StructField_Kind")] - public static extern void set_encoder__StructField_Kind(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern void set_encoder__StructField_Kind(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_encoder__StructField_Kind")] - public static extern global::System.IntPtr get_encoder__StructField_Kind(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint get_encoder__StructField_Kind(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_encoder__StructField_Type")] public static extern void set_encoder__StructField_Type(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -2697,10 +2721,10 @@ static skycoinPINVOKE() { public static extern int coin__BlockHeader_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__BlockHeader_Version")] - public static extern void set_coin__BlockHeader_Version(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern void set_coin__BlockHeader_Version(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_coin__BlockHeader_Version")] - public static extern global::System.IntPtr get_coin__BlockHeader_Version(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern uint get_coin__BlockHeader_Version(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__BlockHeader_Time")] public static extern void set_coin__BlockHeader_Time(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index 07748510..019bf21d 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -590,6 +590,29 @@ static Transaction__Handle Transaction__Handlep_value(Transaction__Handle *obj) } +static Block__Handle *new_Block__HandlePtr() { + return (Block__Handle *) calloc(1,sizeof(Block__Handle)); +} + +static Block__Handle *copy_Block__HandlePtr(Block__Handle value) { + Block__Handle *obj = (Block__Handle *) calloc(1,sizeof(Block__Handle)); + *obj = value; + return obj; +} + +static void delete_Block__HandlePtr(Block__Handle *obj) { + if (obj) free(obj); +} + +static void Block__HandlePtr_assign(Block__Handle *obj, Block__Handle value) { + *obj = value; +} + +static Block__Handle Block__HandlePtr_value(Block__Handle *obj) { + return *obj; +} + + static unsigned char *new_charp() { return (unsigned char *) calloc(1,sizeof(unsigned char)); } @@ -1517,6 +1540,21 @@ int makeTransactions(int n, Transactions__Handle* handle){ return result; }; + + GoUint32 CSharp_skycoin_SKY_coin_Transactions_Fees(Transactions__Handle handle ,Fee_Calculator *pFeeCalc, GoUint64* p3){ + FeeCalculator *out = {callFeeCalculator,NULL} ; + + GoUint32 result = SKY_coin_Transactions_Fees(handle, out,p3); + *p3 = 3; + return result; + }; + + + GoUint32 CSharp_skycoin_SKY_coin_GetBlockObject(Block__Handle handle, coin__Block* outBlock ){ + GoUint32 result = SKY_coin_GetBlockObject(handle, &outBlock); + return result; + }; + SWIGINTERN int cipher_PubKey_isEqual(cipher_PubKey *self,cipher_PubKey *a){ return memcmp(self->data, a->data, sizeof(a->data)) == 0; } @@ -1719,6 +1757,9 @@ SWIGINTERN void cipher_Addresses_release(cipher_Addresses *self){ if(self->data != NULL) free(self->data); } +SWIGINTERN GoUint32_ Fee_Calculator_callFeeCalculator(Fee_Calculator *self,FeeCalculator *feeCalc,Transaction__Handle handle,unsigned long long *pFee){ + return feeCalc->callback(handle, pFee, feeCalc->context); + } SWIGINTERN int _GoString__SetString(_GoString_ *self,char *str){ self->p = str; self->n = strlen(str); @@ -2541,6 +2582,74 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_Transaction__Handlep_value(void * j } +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_Block__HandlePtr() { + void * jresult ; + Block__Handle *result = 0 ; + + result = (Block__Handle *)new_Block__HandlePtr(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_Block__HandlePtr(void * jarg1) { + void * jresult ; + Block__Handle arg1 ; + Block__Handle *argp1 ; + Block__Handle *result = 0 ; + + argp1 = (Block__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); + return 0; + } + arg1 = *argp1; + result = (Block__Handle *)copy_Block__HandlePtr(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_Block__HandlePtr(void * jarg1) { + Block__Handle *arg1 = (Block__Handle *) 0 ; + + arg1 = (Block__Handle *)jarg1; + delete_Block__HandlePtr(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_Block__HandlePtr_assign(void * jarg1, void * jarg2) { + Block__Handle *arg1 = (Block__Handle *) 0 ; + Block__Handle arg2 ; + Block__Handle *argp2 ; + + arg1 = (Block__Handle *)jarg1; + argp2 = (Block__Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); + return ; + } + arg2 = *argp2; + Block__HandlePtr_assign(arg1,arg2); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_Block__HandlePtr_value(void * jarg1) { + void * jresult ; + Block__Handle *arg1 = (Block__Handle *) 0 ; + Block__Handle result; + + arg1 = (Block__Handle *)jarg1; + result = Block__HandlePtr_value(arg1); + { + Block__Handle * resultptr = (Block__Handle *) malloc(sizeof(Block__Handle)); + memmove(resultptr, &result, sizeof(Block__Handle)); + jresult = resultptr; + } + return jresult; +} + + SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_charp() { void * jresult ; unsigned char *result = 0 ; @@ -4086,6 +4195,48 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_TransactionFee__SWIG_ } +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Fees__SWIG_0(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Transactions__Handle arg1 ; + Fee_Calculator *arg2 = (Fee_Calculator *) 0 ; + GoUint64 *arg3 = (GoUint64 *) 0 ; + Transactions__Handle *argp1 ; + GoUint32 result; + + argp1 = (Transactions__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (Fee_Calculator *)jarg2; + arg3 = (GoUint64 *)jarg3; + result = (GoUint32)CSharp_skycoin_SKY_coin_Transactions_Fees(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetBlockObject__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + Block__Handle arg1 ; + coin__Block *arg2 = (coin__Block *) 0 ; + Block__Handle *argp1 ; + GoUint32 result; + + argp1 = (Block__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (coin__Block *)jarg2; + result = (GoUint32)CSharp_skycoin_SKY_coin_GetBlockObject(arg1,arg2); + jresult = result; + return jresult; +} + + SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_PubKey_isEqual(void * jarg1, void * jarg2) { int jresult ; cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; @@ -5216,6 +5367,30 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_Addresses(void * jarg1) } +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_Fee_Calculator_callFeeCalculator(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { + unsigned int jresult ; + Fee_Calculator *arg1 = (Fee_Calculator *) 0 ; + FeeCalculator *arg2 = (FeeCalculator *) 0 ; + Transaction__Handle arg3 ; + unsigned long long *arg4 = (unsigned long long *) 0 ; + Transaction__Handle *argp3 ; + GoUint32_ result; + + arg1 = (Fee_Calculator *)jarg1; + arg2 = (FeeCalculator *)jarg2; + argp3 = (Transaction__Handle *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg3 = *argp3; + arg4 = (unsigned long long *)jarg4; + result = Fee_Calculator_callFeeCalculator(arg1,arg2,arg3,arg4); + jresult = result; + return jresult; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_Fee_Calculator_callback(void * jarg1, void * jarg2) { Fee_Calculator *arg1 = (Fee_Calculator *) 0 ; FeeCalcFunc arg2 = (FeeCalcFunc) 0 ; @@ -5953,7 +6128,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_CreateUnspent(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetBlockObject(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetBlockObject__SWIG_1(void * jarg1, void * jarg2) { unsigned int jresult ; Block__Handle arg1 ; coin__Block **arg2 = (coin__Block **) 0 ; @@ -14193,7 +14368,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Add(voi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Fees(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Fees__SWIG_1(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; Transactions__Handle arg1 ; FeeCalculator *arg2 = (FeeCalculator *) 0 ; @@ -14591,34 +14766,24 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_encoder__StructField_Name(void } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encoder__StructField_Kind(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encoder__StructField_Kind(void * jarg1, unsigned int jarg2) { encoder__StructField *arg1 = (encoder__StructField *) 0 ; GoUint32_ arg2 ; - GoUint32_ *argp2 ; arg1 = (encoder__StructField *)jarg1; - argp2 = (GoUint32_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint32_", 0); - return ; - } - arg2 = *argp2; + arg2 = (GoUint32_)jarg2; if (arg1) (arg1)->Kind = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_encoder__StructField_Kind(void * jarg1) { - void * jresult ; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_get_encoder__StructField_Kind(void * jarg1) { + unsigned int jresult ; encoder__StructField *arg1 = (encoder__StructField *) 0 ; GoUint32_ result; arg1 = (encoder__StructField *)jarg1; result = ((arg1)->Kind); - { - GoUint32_ * resultptr = (GoUint32_ *) malloc(sizeof(GoUint32_)); - memmove(resultptr, &result, sizeof(GoUint32_)); - jresult = resultptr; - } + jresult = result; return jresult; } @@ -15411,34 +15576,24 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__BlockHeader_isEqual(void * jarg1 } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__BlockHeader_Version(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__BlockHeader_Version(void * jarg1, unsigned int jarg2) { coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; GoUint32_ arg2 ; - GoUint32_ *argp2 ; arg1 = (coin__BlockHeader *)jarg1; - argp2 = (GoUint32_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint32_", 0); - return ; - } - arg2 = *argp2; + arg2 = (GoUint32_)jarg2; if (arg1) (arg1)->Version = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_coin__BlockHeader_Version(void * jarg1) { - void * jresult ; +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_get_coin__BlockHeader_Version(void * jarg1) { + unsigned int jresult ; coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; GoUint32_ result; arg1 = (coin__BlockHeader *)jarg1; result = ((arg1)->Version); - { - GoUint32_ * resultptr = (GoUint32_ *) malloc(sizeof(GoUint32_)); - memmove(resultptr, &result, sizeof(GoUint32_)); - jresult = resultptr; - } + jresult = result; return jresult; } diff --git a/LibskycoinNetTest/LibskycoinNetTest.csproj b/LibskycoinNetTest/LibskycoinNetTest.csproj index 60028bbe..00ec6b27 100644 --- a/LibskycoinNetTest/LibskycoinNetTest.csproj +++ b/LibskycoinNetTest/LibskycoinNetTest.csproj @@ -44,10 +44,12 @@ - + + + diff --git a/LibskycoinNetTest/check_coin_block.cs b/LibskycoinNetTest/check_coin_block.cs new file mode 100644 index 00000000..7b90ca6b --- /dev/null +++ b/LibskycoinNetTest/check_coin_block.cs @@ -0,0 +1,72 @@ +using System; +using NUnit.Framework; +using skycoin; +using utils; +namespace LibskycoinNetTest { + [TestFixture ()] + public class check_coin_block { + + utils.transutils transutils = new utils.transutils (); + public SWIGTYPE_p_Transactions__Handle makeTestTransactions () { + var txns = skycoin.skycoin.new_Transactions__Handlep (); + var err = skycoin.skycoin.SKY_coin_Create_Transactions (txns); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var txn = transutils.makeEmptyTransaction (); + err = skycoin.skycoin.SKY_coin_Transactions_Add (txns, txn); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + return txns; + } + + [Test] + public void TestNewBlock () { + var txns = makeTestTransactions (); + var block = skycoin.skycoin.new_Block__HandlePtr (); + var err = skycoin.skycoin.SKY_coin_NewEmptyBlock (txns, block); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var pBlock = new coin__Block (); + err = skycoin.skycoin.SKY_coin_GetBlockObject (block, pBlock); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + pBlock.Head.Version = 0x02; + pBlock.Head.Time = 100; + pBlock.Head.BkSeq = 98; + var uxHash = transutils.RandSHA256 (); + // TODO: Not complete by callback + } + + [Test] + public void TestBlockHashBody () { + // TODO: not complete by callback + } + + [Test] + public void TestNewGenesisBlock () { + var pubkey = new cipher_PubKey (); + var seckey = new cipher_SecKey (); + ulong genTime = 1000; + ulong genCoins = (ulong) 1000e6; + + var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (pubkey, seckey); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var addr = new cipher__Address (); + err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (pubkey, addr); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var block = skycoin.skycoin.new_Block__HandlePtr (); + err = skycoin.skycoin.SKY_coin_NewGenesisBlock (addr, genCoins, genTime, block); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var pBlock = new coin__Block (); + err = skycoin.skycoin.SKY_coin_GetBlockObject (block, pBlock); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var nullHash = new cipher_SHA256 (); + var Head = new GoSlice (); + err = skycoin.skycoin.SKY_coin_BlockHeader_Bytes (pBlock.Head, Head); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.IsTrue (nullHash.getStr ().p == Head.getString ().p); + // Assert.AreEqual (genTime, pBlock.Head.Time); + Assert.AreEqual (0, pBlock.Head.BkSeq); + Assert.AreEqual (0, pBlock.Head.Version); + Assert.AreEqual (0, pBlock.Head.Fee); + } + + } + +} \ No newline at end of file diff --git a/LibskycoinNetTest/check_coin_transactions.cs b/LibskycoinNetTest/check_coin_transactions.cs index e548184d..04c7c24f 100644 --- a/LibskycoinNetTest/check_coin_transactions.cs +++ b/LibskycoinNetTest/check_coin_transactions.cs @@ -874,8 +874,14 @@ public void TestVerifyTransactionHoursSpending () { [Test] public void TestTransactionsFees () { - var fee = skycoin.skycoin.new_FeeCalculatorPtr(); - + var fees = new Fee_Calculator (); + var txns = skycoin.skycoin.new_Transactions__Handlep (); + skycoin.skycoin.makeTransactions (4, txns); + var fee = skycoin.skycoin.new_GoUint64p (); + var err = skycoin.skycoin.SKY_coin_Transactions_Fees (txns, fees, fee); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Console.WriteLine (skycoin.skycoin.GoUint64p_value (fee)); + } } diff --git a/LibskycoinNetTest/transutils.cs b/LibskycoinNetTest/transutils.cs index 282ff39e..0405f8bd 100644 --- a/LibskycoinNetTest/transutils.cs +++ b/LibskycoinNetTest/transutils.cs @@ -127,6 +127,16 @@ public coin_UxOutArray makeUxOutArray (int n) { Assert.AreEqual (result.count, n, "Not equal len"); return result; } + + public cipher_SHA256 RandSHA256 () { + var sha = new cipher_SHA256 (); + var b = new GoSlice (); + var err = skycoin.skycoin.SKY_cipher_RandByte (128, b); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_SumSHA256 (b, sha); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + return sha; + } } } \ No newline at end of file diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index 5cb6c300..ab74ca78 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit 5cb6c300cf72788a113ab213ba7e98ddc66cfe38 +Subproject commit ab74ca781280686194fe5d008dfc90d7514a70d5 From 9aea56e13313e0a1af82a8a87414b6f31bb2879f Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Thu, 4 Oct 2018 12:22:41 -0400 Subject: [PATCH 45/73] [test] refs #8 Changes in functions by generate --- LibskycoinNetTest/check_coin_block.cs | 68 +++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/LibskycoinNetTest/check_coin_block.cs b/LibskycoinNetTest/check_coin_block.cs index 7b90ca6b..2cfbbbdb 100644 --- a/LibskycoinNetTest/check_coin_block.cs +++ b/LibskycoinNetTest/check_coin_block.cs @@ -67,6 +67,74 @@ public void TestNewGenesisBlock () { Assert.AreEqual (0, pBlock.Head.Fee); } + struct testcase { + public int index; + public int failure; + } + + [Test] + public void TestCreateUnspent () { + var p = new cipher_PubKey (); + var s = new cipher_SecKey (); + var a = new cipher__Address (); + + var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, a); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var h = new cipher_SHA256 (); + var handle = skycoin.skycoin.new_Transaction__Handlep (); + skycoin.skycoin.makeEmptyTransaction (handle); + err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (handle, a, 11000000, 255); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var bh = new coin__BlockHeader (); + bh.Time = 0; + bh.BkSeq = 1; + testcase[] t = new testcase[2]; + var tc = new testcase (); + tc.index = 0; + tc.failure = skycoin.skycoin.SKY_OK; + t[0] = tc; + tc = new testcase (); + tc.failure = skycoin.skycoin.SKY_ERROR; + tc.index = 10; + t[1] = tc; + var ux = new coin__UxOut (); + var tests_count = t.Length; + for (int i = 0; i < tests_count; i++) { + err = skycoin.skycoin.SKY_coin_CreateUnspent (bh, handle, t[i].index, ux); + if (t[i].failure == skycoin.skycoin.SKY_ERROR) { + continue; + } + Assert.AreEqual (bh.Time, ux.Head.Time); + Assert.AreEqual (bh.BkSeq, ux.Head.BkSeq); + } + } + + [Test] + public void TestCreateUnspents () { + var a = new cipher__Address (); + var p = new cipher_PubKey (); + var s = new cipher_SecKey (); + + var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, a); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var h = new cipher_SHA256 (); + var txn = skycoin.skycoin.new_Transaction__Handlep (); + skycoin.skycoin.makeEmptyTransaction (txn); + err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (txn, a, (ulong) 11e6, 255); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var bh = new coin__BlockHeader (); + bh.Time = 0; + bh.BkSeq = 1; + var uxouts = new coin_UxOutArray (); + err = skycoin.skycoin.SKY_coin_CreateUnspents (bh, txn, uxouts); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (uxouts.count, 1); + } + } } \ No newline at end of file From 15ca3e11321b37cc3d00495a3c12cd83de9c0522 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Sun, 7 Oct 2018 02:51:04 -0400 Subject: [PATCH 46/73] [test] refs #8 Added test cipher.bip39 Tests run: 93, Errors: 0, Failures: 0, Inconclusive: 0, Time: 17,9846792 seconds Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0 --- .vscode/settings.json | 3 +- LibskycoinNet/skycoin/GoSlice.cs | 5 +- LibskycoinNet/skycoin/cipher_Sig.cs | 5 - LibskycoinNet/skycoin/skycoin.cs | 135 +- LibskycoinNet/skycoin/skycoinPINVOKE.cs | 89 +- LibskycoinNet/skycoin/skycoinnet_wrap.c | 1603 +++++++++++------ LibskycoinNetTest/LibskycoinNetTest.csproj | 25 +- LibskycoinNetTest/check_cipher_bip39.cs | 84 + LibskycoinNetTest/check_cipher_ec.cs | 60 + ..._cipher_encrypt_scrypt_chacha20poly1305.cs | 9 +- LibskycoinNetTest/check_cipher_field.cs | 30 + LibskycoinNetTest/check_cipher_sha256xor.cs | 197 ++ LibskycoinNetTest/check_cipher_sig.cs | 164 ++ LibskycoinNetTest/check_coin_block.cs | 5 +- LibskycoinNetTest/check_coin_outputs.cs | 12 +- LibskycoinNetTest/check_coin_transactions.cs | 26 +- LibskycoinNetTest/transutils.cs | 41 +- gopath/src/github.com/skycoin/skycoin | 2 +- 18 files changed, 1831 insertions(+), 664 deletions(-) create mode 100644 LibskycoinNetTest/check_cipher_bip39.cs create mode 100644 LibskycoinNetTest/check_cipher_ec.cs create mode 100644 LibskycoinNetTest/check_cipher_field.cs create mode 100644 LibskycoinNetTest/check_cipher_sha256xor.cs create mode 100644 LibskycoinNetTest/check_cipher_sig.cs diff --git a/.vscode/settings.json b/.vscode/settings.json index 0dbf0cd6..9f5c07d4 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,6 @@ { "files.associations": { - "transutil.h": "c" + "transutil.h": "c", + "base64.h": "c" } } \ No newline at end of file diff --git a/LibskycoinNet/skycoin/GoSlice.cs b/LibskycoinNet/skycoin/GoSlice.cs index de828197..ad5bd9ca 100644 --- a/LibskycoinNet/skycoin/GoSlice.cs +++ b/LibskycoinNet/skycoin/GoSlice.cs @@ -50,9 +50,8 @@ public void convertString(_GoString_ data) { if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } - public _GoString_ getString() { - _GoString_ ret = new _GoString_(skycoinPINVOKE.GoSlice_getString(swigCPtr), true); - return ret; + public void getString(_GoString_ arg0) { + skycoinPINVOKE.GoSlice_getString(swigCPtr, _GoString_.getCPtr(arg0)); } public SWIGTYPE_p_void data { diff --git a/LibskycoinNet/skycoin/cipher_Sig.cs b/LibskycoinNet/skycoin/cipher_Sig.cs index bb5f6afb..ee28bf80 100644 --- a/LibskycoinNet/skycoin/cipher_Sig.cs +++ b/LibskycoinNet/skycoin/cipher_Sig.cs @@ -53,11 +53,6 @@ public void assignTo(SWIGTYPE_p_void data) { skycoinPINVOKE.cipher_Sig_assignTo(swigCPtr, SWIGTYPE_p_void.getCPtr(data)); } - public GoSlice toGoSlice() { - GoSlice ret = new GoSlice(skycoinPINVOKE.cipher_Sig_toGoSlice(swigCPtr), true); - return ret; - } - public SWIGTYPE_p_unsigned_char data { set { skycoinPINVOKE.set_cipher_Sig_data(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs index 4d0bd0f0..3183a79d 100644 --- a/LibskycoinNet/skycoin/skycoin.cs +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -351,28 +351,82 @@ public static SWIGTYPE_p_Block__Handle Block__HandlePtr_value(SWIGTYPE_p_Block__ return ret; } - public static SWIGTYPE_p_unsigned_char new_charp() { - global::System.IntPtr cPtr = skycoinPINVOKE.new_charp(); + public static SWIGTYPE_p_Signature_Handle new_Signature_HandlePtr() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_Signature_HandlePtr(); + SWIGTYPE_p_Signature_Handle ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Signature_Handle(cPtr, false); + return ret; + } + + public static SWIGTYPE_p_Signature_Handle copy_Signature_HandlePtr(SWIGTYPE_p_Signature_Handle value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_Signature_HandlePtr(SWIGTYPE_p_Signature_Handle.getCPtr(value)); + SWIGTYPE_p_Signature_Handle ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Signature_Handle(cPtr, false); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static void delete_Signature_HandlePtr(SWIGTYPE_p_Signature_Handle obj) { + skycoinPINVOKE.delete_Signature_HandlePtr(SWIGTYPE_p_Signature_Handle.getCPtr(obj)); + } + + public static void Signature_HandlePtr_assign(SWIGTYPE_p_Signature_Handle obj, SWIGTYPE_p_Signature_Handle value) { + skycoinPINVOKE.Signature_HandlePtr_assign(SWIGTYPE_p_Signature_Handle.getCPtr(obj), SWIGTYPE_p_Signature_Handle.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + + public static SWIGTYPE_p_Signature_Handle Signature_HandlePtr_value(SWIGTYPE_p_Signature_Handle obj) { + SWIGTYPE_p_Signature_Handle ret = new SWIGTYPE_p_Signature_Handle(skycoinPINVOKE.Signature_HandlePtr_value(SWIGTYPE_p_Signature_Handle.getCPtr(obj)), true); + return ret; + } + + public static SWIGTYPE_p_Number_Handle new_Number_HandlePtr() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_Number_HandlePtr(); + SWIGTYPE_p_Number_Handle ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Number_Handle(cPtr, false); + return ret; + } + + public static SWIGTYPE_p_Number_Handle copy_Number_HandlePtr(SWIGTYPE_p_Number_Handle value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_Number_HandlePtr(SWIGTYPE_p_Number_Handle.getCPtr(value)); + SWIGTYPE_p_Number_Handle ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Number_Handle(cPtr, false); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static void delete_Number_HandlePtr(SWIGTYPE_p_Number_Handle obj) { + skycoinPINVOKE.delete_Number_HandlePtr(SWIGTYPE_p_Number_Handle.getCPtr(obj)); + } + + public static void Number_HandlePtr_assign(SWIGTYPE_p_Number_Handle obj, SWIGTYPE_p_Number_Handle value) { + skycoinPINVOKE.Number_HandlePtr_assign(SWIGTYPE_p_Number_Handle.getCPtr(obj), SWIGTYPE_p_Number_Handle.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + + public static SWIGTYPE_p_Number_Handle Number_HandlePtr_value(SWIGTYPE_p_Number_Handle obj) { + SWIGTYPE_p_Number_Handle ret = new SWIGTYPE_p_Number_Handle(skycoinPINVOKE.Number_HandlePtr_value(SWIGTYPE_p_Number_Handle.getCPtr(obj)), true); + return ret; + } + + public static SWIGTYPE_p_unsigned_char new_CharPtr() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_CharPtr(); SWIGTYPE_p_unsigned_char ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); return ret; } - public static SWIGTYPE_p_unsigned_char copy_charp(byte value) { - global::System.IntPtr cPtr = skycoinPINVOKE.copy_charp(value); + public static SWIGTYPE_p_unsigned_char copy_CharPtr(byte value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_CharPtr(value); SWIGTYPE_p_unsigned_char ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_char(cPtr, false); return ret; } - public static void delete_charp(SWIGTYPE_p_unsigned_char obj) { - skycoinPINVOKE.delete_charp(SWIGTYPE_p_unsigned_char.getCPtr(obj)); + public static void delete_CharPtr(SWIGTYPE_p_unsigned_char obj) { + skycoinPINVOKE.delete_CharPtr(SWIGTYPE_p_unsigned_char.getCPtr(obj)); } - public static void charp_assign(SWIGTYPE_p_unsigned_char obj, byte value) { - skycoinPINVOKE.charp_assign(SWIGTYPE_p_unsigned_char.getCPtr(obj), value); + public static void CharPtr_assign(SWIGTYPE_p_unsigned_char obj, byte value) { + skycoinPINVOKE.CharPtr_assign(SWIGTYPE_p_unsigned_char.getCPtr(obj), value); } - public static byte charp_value(SWIGTYPE_p_unsigned_char obj) { - byte ret = skycoinPINVOKE.charp_value(SWIGTYPE_p_unsigned_char.getCPtr(obj)); + public static byte CharPtr_value(SWIGTYPE_p_unsigned_char obj) { + byte ret = skycoinPINVOKE.CharPtr_value(SWIGTYPE_p_unsigned_char.getCPtr(obj)); return ret; } @@ -660,6 +714,49 @@ public static int makeTransactions(int n, SWIGTYPE_p_Transactions__Handle handle return ret; } + public static int b64_int(uint ch) { + int ret = skycoinPINVOKE.b64_int(ch); + return ret; + } + + public static int b64_decode(SWIGTYPE_p_unsigned_char arg0, uint in_len, SWIGTYPE_p_unsigned_char arg2) { + int ret = skycoinPINVOKE.b64_decode(SWIGTYPE_p_unsigned_char.getCPtr(arg0), in_len, SWIGTYPE_p_unsigned_char.getCPtr(arg2)); + return ret; + } + + public static int DecodeBase64(GoSlice encrypted, _GoString_ outs) { +var tmpouts = _GoString_.getCPtr (outs); + { + int ret = skycoinPINVOKE.DecodeBase64(GoSlice.getCPtr(encrypted), tmpouts); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public static int putUvarint(GoSlice buf, ulong x) { + int ret = skycoinPINVOKE.putUvarint(GoSlice.getCPtr(buf), x); + return ret; + } + + public static int putVarint(GoSlice buf, long x) { + int ret = skycoinPINVOKE.putVarint(GoSlice.getCPtr(buf), x); + return ret; + } + + public static void hashKeyIndexNonce(SWIGTYPE_p_GoSlice_ key, long index, cipher_SecKey nonceHash, cipher_SecKey resultHash) { +var tmpnonceHash = cipher_SecKey.getCPtr (nonceHash); +var tmpresultHash = cipher_SecKey.getCPtr (resultHash); + { + skycoinPINVOKE.hashKeyIndexNonce(SWIGTYPE_p_GoSlice_.getCPtr(key), index, tmpnonceHash, tmpresultHash); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + } + + public static void makeEncryptedData(GoSlice data, uint dataLength, GoSlice pwd, GoSlice encrypted) { + skycoinPINVOKE.makeEncryptedData(GoSlice.getCPtr(data), dataLength, GoSlice.getCPtr(pwd), GoSlice.getCPtr (encrypted)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + public static uint SKY_cipher_SumSHA256(GoSlice seed, cipher_SHA256 sha) { uint ret = skycoinPINVOKE.SKY_cipher_SumSHA256__SWIG_0(GoSlice.getCPtr(seed), cipher_SHA256.getCPtr(sha)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); @@ -898,12 +995,6 @@ public static uint SKY_fee_TransactionFee(SWIGTYPE_p_Transaction__Handle handle, return ret; } - public static uint SKY_coin_Transactions_Fees(SWIGTYPE_p_Transactions__Handle handle, Fee_Calculator pFeeCalc, SWIGTYPE_p_unsigned_long_long p3) { - uint ret = skycoinPINVOKE.SKY_coin_Transactions_Fees__SWIG_0(SWIGTYPE_p_Transactions__Handle.getCPtr(handle), Fee_Calculator.getCPtr(pFeeCalc), SWIGTYPE_p_unsigned_long_long.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - public static uint SKY_coin_GetBlockObject(SWIGTYPE_p_Block__Handle handle, coin__Block outBlock) { uint ret = skycoinPINVOKE.SKY_coin_GetBlockObject__SWIG_0(SWIGTYPE_p_Block__Handle.getCPtr(handle), coin__Block.getCPtr(outBlock)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); @@ -4031,7 +4122,7 @@ public static uint SKY_coin_Transactions_Add(SWIGTYPE_p_Transactions__Handle p0, } public static uint SKY_coin_Transactions_Fees(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_FeeCalculator p1, SWIGTYPE_p_unsigned_long_long p2) { - uint ret = skycoinPINVOKE.SKY_coin_Transactions_Fees__SWIG_1(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1), SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); + uint ret = skycoinPINVOKE.SKY_coin_Transactions_Fees(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1), SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -4106,11 +4197,6 @@ public static uint SKY_coin_VerifyTransactionHoursSpending(ulong p0, GoSlice p1, return ret; } - public static int b64_int(uint ch) { - int ret = skycoinPINVOKE.b64_int(ch); - return ret; - } - public static uint b64e_size(uint in_size) { uint ret = skycoinPINVOKE.b64e_size(in_size); return ret; @@ -4126,11 +4212,6 @@ public static uint b64_encode(SWIGTYPE_p_unsigned_char arg0, uint in_len, SWIGTY return ret; } - public static int b64_decode(SWIGTYPE_p_unsigned_char arg0, uint in_len, SWIGTYPE_p_unsigned_char arg2) { - int ret = skycoinPINVOKE.b64_decode(SWIGTYPE_p_unsigned_char.getCPtr(arg0), in_len, SWIGTYPE_p_unsigned_char.getCPtr(arg2)); - return ret; - } - public static uint b64_encodef(string InFile, string OutFile) { uint ret = skycoinPINVOKE.b64_encodef(InFile, OutFile); return ret; diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index f80a50a2..8075e52b 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -383,20 +383,50 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Block__HandlePtr_value")] public static extern global::System.IntPtr Block__HandlePtr_value(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_charp")] - public static extern global::System.IntPtr new_charp(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_Signature_HandlePtr")] + public static extern global::System.IntPtr new_Signature_HandlePtr(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_charp")] - public static extern global::System.IntPtr copy_charp(byte jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_Signature_HandlePtr")] + public static extern global::System.IntPtr copy_Signature_HandlePtr(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_charp")] - public static extern void delete_charp(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_Signature_HandlePtr")] + public static extern void delete_Signature_HandlePtr(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_charp_assign")] - public static extern void charp_assign(global::System.Runtime.InteropServices.HandleRef jarg1, byte jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Signature_HandlePtr_assign")] + public static extern void Signature_HandlePtr_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_charp_value")] - public static extern byte charp_value(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Signature_HandlePtr_value")] + public static extern global::System.IntPtr Signature_HandlePtr_value(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_Number_HandlePtr")] + public static extern global::System.IntPtr new_Number_HandlePtr(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_Number_HandlePtr")] + public static extern global::System.IntPtr copy_Number_HandlePtr(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_Number_HandlePtr")] + public static extern void delete_Number_HandlePtr(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Number_HandlePtr_assign")] + public static extern void Number_HandlePtr_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Number_HandlePtr_value")] + public static extern global::System.IntPtr Number_HandlePtr_value(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_CharPtr")] + public static extern global::System.IntPtr new_CharPtr(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_CharPtr")] + public static extern global::System.IntPtr copy_CharPtr(byte jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_CharPtr")] + public static extern void delete_CharPtr(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_CharPtr_assign")] + public static extern void CharPtr_assign(global::System.Runtime.InteropServices.HandleRef jarg1, byte jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_CharPtr_value")] + public static extern byte CharPtr_value(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_FeeCalculatorPtr")] public static extern global::System.IntPtr new_FeeCalculatorPtr(); @@ -578,6 +608,27 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_makeTransactions")] public static extern int makeTransactions(int jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_b64_int")] + public static extern int b64_int(uint jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_b64_decode")] + public static extern int b64_decode(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_DecodeBase64")] + public static extern int DecodeBase64(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_putUvarint")] + public static extern int putUvarint(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_putVarint")] + public static extern int putVarint(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_hashKeyIndexNonce")] + public static extern void hashKeyIndexNonce(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_makeEncryptedData")] + public static extern void makeEncryptedData(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SumSHA256__SWIG_0")] public static extern uint SKY_cipher_SumSHA256__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -704,9 +755,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_TransactionFee__SWIG_0")] public static extern uint SKY_fee_TransactionFee__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Fees__SWIG_0")] - public static extern uint SKY_coin_Transactions_Fees__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetBlockObject__SWIG_0")] public static extern uint SKY_coin_GetBlockObject__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -782,9 +830,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Sig_assignTo")] public static extern void cipher_Sig_assignTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_Sig_toGoSlice")] - public static extern global::System.IntPtr cipher_Sig_toGoSlice(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cipher_Sig_data")] public static extern void set_cipher_Sig_data(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1077,7 +1122,7 @@ static skycoinPINVOKE() { public static extern void GoSlice_convertString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_getString")] - public static extern global::System.IntPtr GoSlice_getString(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern void GoSlice_getString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_GoSlice_data")] public static extern void set_GoSlice_data(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -2447,8 +2492,8 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Add")] public static extern uint SKY_coin_Transactions_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Fees__SWIG_1")] - public static extern uint SKY_coin_Transactions_Fees__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_Fees")] + public static extern uint SKY_coin_Transactions_Fees(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_GetAt")] public static extern uint SKY_coin_Transactions_GetAt(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -3539,9 +3584,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrVerifySignatureInvalidPubkeysLength")] public static extern int get_SKY_ErrVerifySignatureInvalidPubkeysLength(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_b64_int")] - public static extern int b64_int(uint jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_b64e_size")] public static extern uint b64e_size(uint jarg1); @@ -3551,9 +3593,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_b64_encode")] public static extern uint b64_encode(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_b64_decode")] - public static extern int b64_decode(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_b64_encodef")] public static extern uint b64_encodef(string jarg1, string jarg2); diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index 019bf21d..344e53c0 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -613,25 +613,71 @@ static Block__Handle Block__HandlePtr_value(Block__Handle *obj) { } -static unsigned char *new_charp() { +static Signature_Handle *new_Signature_HandlePtr() { + return (Signature_Handle *) calloc(1,sizeof(Signature_Handle)); +} + +static Signature_Handle *copy_Signature_HandlePtr(Signature_Handle value) { + Signature_Handle *obj = (Signature_Handle *) calloc(1,sizeof(Signature_Handle)); + *obj = value; + return obj; +} + +static void delete_Signature_HandlePtr(Signature_Handle *obj) { + if (obj) free(obj); +} + +static void Signature_HandlePtr_assign(Signature_Handle *obj, Signature_Handle value) { + *obj = value; +} + +static Signature_Handle Signature_HandlePtr_value(Signature_Handle *obj) { + return *obj; +} + + +static Number_Handle *new_Number_HandlePtr() { + return (Number_Handle *) calloc(1,sizeof(Number_Handle)); +} + +static Number_Handle *copy_Number_HandlePtr(Number_Handle value) { + Number_Handle *obj = (Number_Handle *) calloc(1,sizeof(Number_Handle)); + *obj = value; + return obj; +} + +static void delete_Number_HandlePtr(Number_Handle *obj) { + if (obj) free(obj); +} + +static void Number_HandlePtr_assign(Number_Handle *obj, Number_Handle value) { + *obj = value; +} + +static Number_Handle Number_HandlePtr_value(Number_Handle *obj) { + return *obj; +} + + +static unsigned char *new_CharPtr() { return (unsigned char *) calloc(1,sizeof(unsigned char)); } -static unsigned char *copy_charp(unsigned char value) { +static unsigned char *copy_CharPtr(unsigned char value) { unsigned char *obj = (unsigned char *) calloc(1,sizeof(unsigned char)); *obj = value; return obj; } -static void delete_charp(unsigned char *obj) { +static void delete_CharPtr(unsigned char *obj) { if (obj) free(obj); } -static void charp_assign(unsigned char *obj, unsigned char value) { +static void CharPtr_assign(unsigned char *obj, unsigned char value) { *obj = value; } -static unsigned char charp_value(unsigned char *obj) { +static unsigned char CharPtr_value(unsigned char *obj) { return *obj; } @@ -661,476 +707,730 @@ static FeeCalculator FeeCalculatorPtr_value(FeeCalculator *obj) { #include "json.h" //Define function SKY_handle_close to avoid including libskycoin.h -void SKY_handle_close(Handle p0); + void SKY_handle_close(Handle p0); -int MEMPOOLIDX = 0; -void *MEMPOOL[1024 * 256]; + int MEMPOOLIDX = 0; + void *MEMPOOL[1024 * 256]; -int JSONPOOLIDX = 0; -json_value* JSON_POOL[128]; + int JSONPOOLIDX = 0; + json_value *JSON_POOL[128]; -int HANDLEPOOLIDX = 0; -Handle HANDLE_POOL[128]; + int HANDLEPOOLIDX = 0; + Handle HANDLE_POOL[128]; -typedef struct { - Client__Handle client; - WalletResponse__Handle wallet; -} wallet_register; - -int WALLETPOOLIDX = 0; -wallet_register WALLET_POOL[64]; - -int stdout_backup; -int pipefd[2]; - -void * registerMemCleanup(void *p) { - int i; - for (i = 0; i < MEMPOOLIDX; i++) { - if(MEMPOOL[i] == NULL){ - MEMPOOL[i] = p; - return p; - } - } - MEMPOOL[MEMPOOLIDX++] = p; - return p; -} + typedef struct + { + Client__Handle client; + WalletResponse__Handle wallet; + } wallet_register; + + int WALLETPOOLIDX = 0; + wallet_register WALLET_POOL[64]; -void freeRegisteredMemCleanup(void *p){ - int i; - for (i = 0; i < MEMPOOLIDX; i++) { - if(MEMPOOL[i] == p){ - free(p); - MEMPOOL[i] = NULL; - break; + int stdout_backup; + int pipefd[2]; + + void *registerMemCleanup(void *p) + { + int i; + for (i = 0; i < MEMPOOLIDX; i++) + { + if (MEMPOOL[i] == NULL) + { + MEMPOOL[i] = p; + return p; + } } + MEMPOOL[MEMPOOLIDX++] = p; + return p; } -} -int registerJsonFree(void *p){ - int i; - for (i = 0; i < JSONPOOLIDX; i++) { - if(JSON_POOL[i] == NULL){ - JSON_POOL[i] = p; - return i; + void freeRegisteredMemCleanup(void *p) + { + int i; + for (i = 0; i < MEMPOOLIDX; i++) + { + if (MEMPOOL[i] == p) + { + free(p); + MEMPOOL[i] = NULL; + break; + } } } - JSON_POOL[JSONPOOLIDX++] = p; - return JSONPOOLIDX-1; -} -void freeRegisteredJson(void *p){ - int i; - for (i = 0; i < JSONPOOLIDX; i++) { - if(JSON_POOL[i] == p){ - JSON_POOL[i] = NULL; - json_value_free( (json_value*)p ); - break; + int registerJsonFree(void *p) + { + int i; + for (i = 0; i < JSONPOOLIDX; i++) + { + if (JSON_POOL[i] == NULL) + { + JSON_POOL[i] = p; + return i; + } } + JSON_POOL[JSONPOOLIDX++] = p; + return JSONPOOLIDX - 1; } -} -int registerWalletClean(Client__Handle clientHandle, - WalletResponse__Handle walletHandle){ - int i; - for (i = 0; i < WALLETPOOLIDX; i++) { - if(WALLET_POOL[i].wallet == 0 && WALLET_POOL[i].client == 0){ - WALLET_POOL[i].wallet = walletHandle; - WALLET_POOL[i].client = clientHandle; - return i; + void freeRegisteredJson(void *p) + { + int i; + for (i = 0; i < JSONPOOLIDX; i++) + { + if (JSON_POOL[i] == p) + { + JSON_POOL[i] = NULL; + json_value_free((json_value *)p); + break; + } } } - WALLET_POOL[WALLETPOOLIDX].wallet = walletHandle; - WALLET_POOL[WALLETPOOLIDX].client = clientHandle; - return WALLETPOOLIDX++; -} -int registerHandleClose(Handle handle){ - int i; - for (i = 0; i < HANDLEPOOLIDX; i++) { - if(HANDLE_POOL[i] == 0){ - HANDLE_POOL[i] = handle; - return i; + int registerWalletClean(Client__Handle clientHandle, + WalletResponse__Handle walletHandle) + { + int i; + for (i = 0; i < WALLETPOOLIDX; i++) + { + if (WALLET_POOL[i].wallet == 0 && WALLET_POOL[i].client == 0) + { + WALLET_POOL[i].wallet = walletHandle; + WALLET_POOL[i].client = clientHandle; + return i; + } } + WALLET_POOL[WALLETPOOLIDX].wallet = walletHandle; + WALLET_POOL[WALLETPOOLIDX].client = clientHandle; + return WALLETPOOLIDX++; } - HANDLE_POOL[HANDLEPOOLIDX++] = handle; - return HANDLEPOOLIDX - 1; -} -void closeRegisteredHandle(Handle handle){ - int i; - for (i = 0; i < HANDLEPOOLIDX; i++) { - if(HANDLE_POOL[i] == handle){ - HANDLE_POOL[i] = 0; - SKY_handle_close(handle); - break; + int registerHandleClose(Handle handle) + { + int i; + for (i = 0; i < HANDLEPOOLIDX; i++) + { + if (HANDLE_POOL[i] == 0) + { + HANDLE_POOL[i] = handle; + return i; + } } + HANDLE_POOL[HANDLEPOOLIDX++] = handle; + return HANDLEPOOLIDX - 1; } -} -void cleanupWallet(Client__Handle client, WalletResponse__Handle wallet){ - int result; - GoString_ strWalletDir; - GoString_ strFileName; - memset(&strWalletDir, 0, sizeof(GoString_)); - memset(&strFileName, 0, sizeof(GoString_)); - - - result = SKY_api_Handle_Client_GetWalletDir(client, &strWalletDir); - if( result != 0 ){ - return; - } - result = SKY_api_Handle_Client_GetWalletFileName(wallet, &strFileName); - if( result != 0 ){ - free( (void*)strWalletDir.p ); - return; - } - char fullPath[128]; - if( strWalletDir.n + strFileName.n < 126){ - strcpy( fullPath, strWalletDir.p ); - if( fullPath[0] == 0 || fullPath[strlen(fullPath) - 1] != '/' ) - strcat(fullPath, "/"); - strcat( fullPath, strFileName.p ); - result = unlink( fullPath ); - if( strlen(fullPath) < 123 ){ - strcat( fullPath, ".bak" ); - result = unlink( fullPath ); + void closeRegisteredHandle(Handle handle) + { + int i; + for (i = 0; i < HANDLEPOOLIDX; i++) + { + if (HANDLE_POOL[i] == handle) + { + HANDLE_POOL[i] = 0; + SKY_handle_close(handle); + break; + } } } - GoString str = { strFileName.p, strFileName.n }; - result = SKY_api_Client_UnloadWallet( client, str ); - GoString strFullPath = { fullPath, strlen(fullPath) }; - free( (void*)strWalletDir.p ); - free( (void*)strFileName.p ); -} - -void cleanRegisteredWallet( - Client__Handle client, - WalletResponse__Handle wallet){ - - int i; - for (i = 0; i < WALLETPOOLIDX; i++) { - if(WALLET_POOL[i].wallet == wallet && WALLET_POOL[i].client == client){ - WALLET_POOL[i].wallet = 0; - WALLET_POOL[i].client = 0; - cleanupWallet( client, wallet ); +#include +#include +#include +#include +#include + void cleanupWallet(Client__Handle client, WalletResponse__Handle wallet) + { + int result; + GoString_ strWalletDir; + GoString_ strFileName; + memset(&strWalletDir, 0, sizeof(GoString_)); + memset(&strFileName, 0, sizeof(GoString_)); + + result = SKY_api_Handle_Client_GetWalletDir(client, &strWalletDir); + if (result != 0) + { + return; + } + result = SKY_api_Handle_Client_GetWalletFileName(wallet, &strFileName); + if (result != 0) + { + free((void *)strWalletDir.p); return; } + char fullPath[128]; + if (strWalletDir.n + strFileName.n < 126) + { + strcpy(fullPath, strWalletDir.p); + if (fullPath[0] == 0 || fullPath[strlen(fullPath) - 1] != '/') + strcat(fullPath, "/"); + strcat(fullPath, strFileName.p); + result = unlink(fullPath); + if (strlen(fullPath) < 123) + { + strcat(fullPath, ".bak"); + result = unlink(fullPath); + } + } + GoString str = {strFileName.p, strFileName.n}; + result = SKY_api_Client_UnloadWallet(client, str); + GoString strFullPath = {fullPath, strlen(fullPath)}; + free((void *)strWalletDir.p); + free((void *)strFileName.p); } -} -void cleanupMem() { - int i; + void cleanRegisteredWallet( + Client__Handle client, + WalletResponse__Handle wallet) + { - for (i = 0; i < WALLETPOOLIDX; i++) { - if(WALLET_POOL[i].client != 0 && WALLET_POOL[i].wallet != 0){ - cleanupWallet( WALLET_POOL[i].client, WALLET_POOL[i].wallet ); + int i; + for (i = 0; i < WALLETPOOLIDX; i++) + { + if (WALLET_POOL[i].wallet == wallet && WALLET_POOL[i].client == client) + { + WALLET_POOL[i].wallet = 0; + WALLET_POOL[i].client = 0; + cleanupWallet(client, wallet); + return; + } } } - void **ptr; - for (i = MEMPOOLIDX, ptr = MEMPOOL; i; --i) { - if( *ptr ) - free(*ptr); - ptr++; - } - for (i = JSONPOOLIDX, ptr = (void*)JSON_POOL; i; --i) { - if( *ptr ) - json_value_free(*ptr); - ptr++; - } - for (i = 0; i < HANDLEPOOLIDX; i++) { - if( HANDLE_POOL[i] ) - SKY_handle_close(HANDLE_POOL[i]); - } -} - - -void setup(void) { - srand ((unsigned int) time (NULL)); -} + void cleanupMem() + { + int i; -void teardown(void) { - cleanupMem(); -} + for (i = 0; i < WALLETPOOLIDX; i++) + { + if (WALLET_POOL[i].client != 0 && WALLET_POOL[i].wallet != 0) + { + cleanupWallet(WALLET_POOL[i].client, WALLET_POOL[i].wallet); + } + } -// TODO: Move to libsky_io.c -void fprintbuff(FILE *f, void *buff, size_t n) { - unsigned char *ptr = (unsigned char *) buff; - fprintf(f, "[ "); - for (; n; --n, ptr++) { - fprintf(f, "%02d ", *ptr); - } - fprintf(f, "]"); -} + void **ptr; + for (i = MEMPOOLIDX, ptr = MEMPOOL; i; --i) + { + if (*ptr) + free(*ptr); + ptr++; + } + for (i = JSONPOOLIDX, ptr = (void *)JSON_POOL; i; --i) + { + if (*ptr) + json_value_free(*ptr); + ptr++; + } + for (i = 0; i < HANDLEPOOLIDX; i++) + { + if (HANDLE_POOL[i]) + SKY_handle_close(HANDLE_POOL[i]); + } + } -int parseBoolean(const char* str, int length){ - int result = 0; - if(length == 1){ - result = str[0] == '1' || str[0] == 't' || str[0] == 'T'; - } else { - result = strncmp(str, "true", length) == 0 || - strncmp(str, "True", length) == 0 || - strncmp(str, "TRUE", length) == 0; + void setup(void) + { + srand((unsigned int)time(NULL)); } - return result; -} -void toGoString(GoString_ *s, GoString *r){ -GoString * tmp = r; + void teardown(void) + { + cleanupMem(); + } - *tmp = (*(GoString *) s); -} + // TODO: Move to libsky_io.c + void fprintbuff(FILE * f, void *buff, size_t n) + { + unsigned char *ptr = (unsigned char *)buff; + fprintf(f, "[ "); + for (; n; --n, ptr++) + { + fprintf(f, "%02d ", *ptr); + } + fprintf(f, "]"); + } -int copySlice(GoSlice_* pdest, GoSlice_* psource, int elem_size){ - pdest->len = psource->len; - pdest->cap = psource->len; - int size = pdest->len * elem_size; - pdest->data = malloc(size); - if( pdest->data == NULL ) - return 1; - registerMemCleanup( pdest->data ); - memcpy(pdest->data, psource->data, size ); - return 0; -} + int parseBoolean(const char *str, int length) + { + int result = 0; + if (length == 1) + { + result = str[0] == '1' || str[0] == 't' || str[0] == 'T'; + } + else + { + result = strncmp(str, "true", length) == 0 || + strncmp(str, "True", length) == 0 || + strncmp(str, "TRUE", length) == 0; + } + return result; + } + void toGoString(GoString_ * s, GoString * r) + { + GoString *tmp = r; + *tmp = (*(GoString *)s); + } -int concatSlices(GoSlice_* slice1, GoSlice_* slice2, int elem_size, GoSlice_* result){ - int size1 = slice1->len; - int size2 = slice2->len; - int size = size1 + size2; - if (size <= 0) - return 1; - void* data = malloc(size * elem_size); - if( data == NULL ) - return 1; - registerMemCleanup( data ); - result->data = data; - result->len = size; - result->cap = size; - char* p = data; - if(size1 > 0){ - memcpy( p, slice1->data, size1 * elem_size ); - p += (elem_size * size1); + int copySlice(GoSlice_ * pdest, GoSlice_ * psource, int elem_size) + { + pdest->len = psource->len; + pdest->cap = psource->len; + int size = pdest->len * elem_size; + pdest->data = malloc(size); + if (pdest->data == NULL) + return 1; + registerMemCleanup(pdest->data); + memcpy(pdest->data, psource->data, size); + return 0; } - if(size2 > 0){ - memcpy( p, slice2->data, size2 * elem_size ); + + int concatSlices(GoSlice_ * slice1, GoSlice_ * slice2, int elem_size, GoSlice_ *result) + { + int size1 = slice1->len; + int size2 = slice2->len; + int size = size1 + size2; + if (size <= 0) + return 1; + void *data = malloc(size * elem_size); + if (data == NULL) + return 1; + registerMemCleanup(data); + result->data = data; + result->len = size; + result->cap = size; + char *p = data; + if (size1 > 0) + { + memcpy(p, slice1->data, size1 * elem_size); + p += (elem_size * size1); + } + if (size2 > 0) + { + memcpy(p, slice2->data, size2 * elem_size); + } + return 0; } - return 0; -} - void parseJsonMetaData(char *metadata, long long *n, long long *r, long long *p, long long *keyLen) -{ - *n = *r = *p = *keyLen = 0; - int length = strlen(metadata); - int openingQuote = -1; - const char *keys[] = {"n", "r", "p", "keyLen"}; - int keysCount = 4; - int keyIndex = -1; - int startNumber = -1; - for (int i = 0; i < length; i++) + void parseJsonMetaData(char *metadata, long long *n, long long *r, long long *p, long long *keyLen) { - if (metadata[i] == '\"') + *n = *r = *p = *keyLen = 0; + int length = strlen(metadata); + int openingQuote = -1; + const char *keys[] = {"n", "r", "p", "keyLen"}; + int keysCount = 4; + int keyIndex = -1; + int startNumber = -1; + for (int i = 0; i < length; i++) { - startNumber = -1; - if (openingQuote >= 0) + if (metadata[i] == '\"') { - keyIndex = -1; - metadata[i] = 0; - for (int k = 0; k < keysCount; k++) + startNumber = -1; + if (openingQuote >= 0) { - if (strcmp(metadata + openingQuote + 1, keys[k]) == 0) + keyIndex = -1; + metadata[i] = 0; + for (int k = 0; k < keysCount; k++) { - keyIndex = k; + if (strcmp(metadata + openingQuote + 1, keys[k]) == 0) + { + keyIndex = k; + } } + openingQuote = -1; + } + else + { + openingQuote = i; + } + } + else if (metadata[i] >= '0' && metadata[i] <= '9') + { + if (startNumber < 0) + startNumber = i; + } + else if (metadata[i] == ',') + { + if (startNumber >= 0) + { + metadata[i] = 0; + int number = atoi(metadata + startNumber); + startNumber = -1; + if (keyIndex == 0) + *n = number; + else if (keyIndex == 1) + *r = number; + else if (keyIndex == 2) + *p = number; + else if (keyIndex == 3) + *keyLen = number; } - openingQuote = -1; } else { - openingQuote = i; + startNumber = -1; } } - else if (metadata[i] >= '0' && metadata[i] <= '9') + } + + int cutSlice(GoSlice_ * slice, int start, int end, int elem_size, GoSlice_ *result) + { + int size = end - start; + if (size <= 0) + return 1; + void *data = malloc(size * elem_size); + if (data == NULL) + return 1; + registerMemCleanup(data); + result->data = data; + result->len = size; + result->cap = size; + char *p = slice->data; + p += (elem_size * start); + memcpy(data, p, elem_size * size); + return 0; + } + + coin__Transaction *makeEmptyTransaction(Transaction__Handle * handle) + { + int result; + coin__Transaction *ptransaction = NULL; + result = SKY_coin_Create_Transaction(handle); + registerHandleClose(*handle); + result = SKY_coin_GetTransactionObject(*handle, &ptransaction); + return ptransaction; + } + int makeUxBodyWithSecret(coin__UxBody * puxBody, cipher__SecKey * pseckey) + { + cipher__PubKey pubkey; + cipher__Address address; + int result; + + memset(puxBody, 0, sizeof(coin__UxBody)); + puxBody->Coins = 1000000; + puxBody->Hours = 100; + + result = SKY_cipher_GenerateKeyPair(&pubkey, pseckey); + if (result != 0) + { + return 1; + } + + GoSlice slice; + memset(&slice, 0, sizeof(GoSlice)); + cipher__SHA256 hash; + + result = SKY_cipher_RandByte(128, (coin__UxArray *)&slice); + registerMemCleanup(slice.data); + if (result != 0) { - if (startNumber < 0) - startNumber = i; + return 1; } - else if (metadata[i] == ',') + result = SKY_cipher_SumSHA256(slice, &puxBody->SrcTransaction); + if (result != 0) { - if (startNumber >= 0) - { - metadata[i] = 0; - int number = atoi(metadata + startNumber); - startNumber = -1; - if (keyIndex == 0) - *n = number; - else if (keyIndex == 1) - *r = number; - else if (keyIndex == 2) - *p = number; - else if (keyIndex == 3) - *keyLen = number; - } + return 1; } - else + + result = SKY_cipher_AddressFromPubKey(&pubkey, &puxBody->Address); + if (result != 0) { - startNumber = -1; + return 1; } + return result; + } + int makeUxOutWithSecret(coin__UxOut * puxOut, cipher__SecKey * pseckey) + { + int result; + memset(puxOut, 0, sizeof(coin__UxOut)); + result = makeUxBodyWithSecret(&puxOut->Body, pseckey); + puxOut->Head.Time = 100; + puxOut->Head.BkSeq = 2; + return result; + } + int makeUxOut(coin__UxOut * puxOut) + { + cipher__SecKey seckey; + return makeUxOutWithSecret(puxOut, &seckey); + } + int makeUxArray(coin_UxOutArray * parray, int n) + { + parray->data = malloc(sizeof(coin__UxOut) * n); + if (!parray->data) + return 1; + registerMemCleanup(parray->data); + parray->count = parray->count = n; + coin__UxOut *p = (coin__UxOut *)parray->data; + int result = 0; + for (int i = 0; i < n; i++) + { + result = makeUxOut(p); + if (result != 0) + break; + p++; + } + return result; + } + int makeAddress(cipher__Address * paddress) + { + cipher__PubKey pubkey; + cipher__SecKey seckey; + cipher__Address address; + int result; + + result = SKY_cipher_GenerateKeyPair(&pubkey, &seckey); + if (result != 0) + return 1; + + result = SKY_cipher_AddressFromPubKey(&pubkey, paddress); + if (result != 0) + return 1; + return result; + } + coin__Transaction *makeTransactionFromUxOut(coin__UxOut * puxOut, cipher__SecKey * pseckey, Transaction__Handle * handle) + { + int result; + coin__Transaction *ptransaction = NULL; + result = SKY_coin_Create_Transaction(handle); + // cr_assert(result == SKY_OK, "SKY_coin_Create_Transaction failed"); + registerHandleClose(*handle); + result = SKY_coin_GetTransactionObject(*handle, &ptransaction); + // cr_assert(result == SKY_OK, "SKY_coin_GetTransactionObject failed"); + cipher__SHA256 sha256; + result = SKY_coin_UxOut_Hash(puxOut, &sha256); + // cr_assert(result == SKY_OK, "SKY_coin_UxOut_Hash failed"); + GoUint16 r; + result = SKY_coin_Transaction_PushInput(*handle, &sha256, &r); + // cr_assert(result == SKY_OK, "SKY_coin_Transaction_PushInput failed"); + + cipher__Address address1, address2; + result = makeAddress(&address1); + // cr_assert(result == SKY_OK, "makeAddress failed"); + result = makeAddress(&address2); + // cr_assert(result == SKY_OK, "makeAddress failed"); + + result = SKY_coin_Transaction_PushOutput(*handle, &address1, 1000000, 50); + // cr_assert(result == SKY_OK, "SKY_coin_Transaction_PushOutput failed"); + result = SKY_coin_Transaction_PushOutput(*handle, &address2, 5000000, 50); + // cr_assert(result == SKY_OK, "SKY_coin_Transaction_PushOutput failed"); + + GoSlice secKeys = {pseckey, 1, 1}; + result = SKY_coin_Transaction_SignInputs(*handle, secKeys); + // cr_assert(result == SKY_OK, "SKY_coin_Transaction_SignInputs failed"); + result = SKY_coin_Transaction_UpdateHeader(*handle); + // cr_assert(result == SKY_OK, "SKY_coin_Transaction_UpdateHeader failed"); + return ptransaction; } -} -int cutSlice(GoSlice_* slice, int start, int end, int elem_size, GoSlice_* result){ - int size = end - start; - if( size <= 0) - return 1; - void* data = malloc(size * elem_size); - if( data == NULL ) - return 1; - registerMemCleanup( data ); - result->data = data; - result->len = size; - result->cap = size; - char* p = slice->data; - p += (elem_size * start); - memcpy( data, p, elem_size * size ); - return 0; -} + coin__Transaction *makeTransaction(Transaction__Handle * handle) + { + int result; + coin__UxOut uxOut; + cipher__SecKey seckey; + coin__Transaction *ptransaction = NULL; + result = makeUxOutWithSecret(&uxOut, &seckey); + ptransaction = makeTransactionFromUxOut(&uxOut, &seckey, handle); + return ptransaction; + } -coin__Transaction* makeEmptyTransaction(Transaction__Handle* handle){ - int result; - coin__Transaction* ptransaction = NULL; - result = SKY_coin_Create_Transaction(handle); - registerHandleClose(*handle); - result = SKY_coin_GetTransactionObject( *handle, &ptransaction ); - return ptransaction; -} -int makeUxBodyWithSecret(coin__UxBody* puxBody, cipher__SecKey* pseckey){ - cipher__PubKey pubkey; - cipher__Address address; - int result; + int makeTransactions(int n, Transactions__Handle *handle) + { + int result = SKY_coin_Create_Transactions(handle); + if (result != 0) + return 1; + registerHandleClose(*handle); + for (int i = 0; i < n; i++) + { + Transaction__Handle thandle; + makeTransaction(&thandle); + registerHandleClose(thandle); + result = SKY_coin_Transactions_Add(*handle, thandle); + if (result != 0) + return 1; + } + return result; + } - memset( puxBody, 0, sizeof(coin__UxBody) ); - puxBody->Coins = 1000000; - puxBody->Hours = 100; + // Base 64 - result = SKY_cipher_GenerateKeyPair(&pubkey, pseckey); - if(result != 0){ return 1;} + int b64_int(unsigned int ch) + { + // ASCII to base64_int + // 65-90 Upper Case >> 0-25 + // 97-122 Lower Case >> 26-51 + // 48-57 Numbers >> 52-61 + // 43 Plus (+) >> 62 + // 47 Slash (/) >> 63 + // 61 Equal (=) >> 64~ + if (ch == 43) + return 62; + if (ch == 47) + return 63; + if (ch == 61) + return 64; + if ((ch > 47) && (ch < 58)) + return ch + 4; + if ((ch > 64) && (ch < 91)) + return ch - 'A'; + if ((ch > 96) && (ch < 123)) + return (ch - 'a') + 26; + return -1; + } - GoSlice slice; - memset(&slice, 0, sizeof(GoSlice)); - cipher__SHA256 hash; + int b64_decode(const unsigned char *in, unsigned int in_len, unsigned char *out) + { - result = SKY_cipher_RandByte( 128, (coin__UxArray*)&slice ); - registerMemCleanup( slice.data ); - if(result != 0){ return 1;} - result = SKY_cipher_SumSHA256( slice, &puxBody->SrcTransaction ); - if(result != 0){ return 1;} + unsigned int i = 0, j = 0, k = 0, s[4]; + for (i = 0; i < in_len; i++) + { + int n = b64_int(*(in + i)); + if (n < 0) + return -1; + s[j++] = n; + if (j == 4) + { + out[k + 0] = ((s[0] & 255) << 2) + ((s[1] & 0x30) >> 4); + if (s[2] != 64) + { + out[k + 1] = ((s[1] & 0x0F) << 4) + ((s[2] & 0x3C) >> 2); + if ((s[3] != 64)) + { + out[k + 2] = ((s[2] & 0x03) << 6) + (s[3]); + k += 3; + } + else + { + k += 2; + } + } + else + { + k += 1; + } + j = 0; + } + } - result = SKY_cipher_AddressFromPubKey( &pubkey, &puxBody->Address ); - if(result != 0){ return 1;} - return result; -} -int makeUxOutWithSecret(coin__UxOut* puxOut, cipher__SecKey* pseckey){ - int result; - memset( puxOut, 0, sizeof(coin__UxOut) ); - result = makeUxBodyWithSecret(&puxOut->Body, pseckey); - puxOut->Head.Time = 100; - puxOut->Head.BkSeq = 2; - return result; -} -int makeUxOut(coin__UxOut* puxOut){ - cipher__SecKey seckey; - return makeUxOutWithSecret(puxOut, &seckey); -} -int makeUxArray(coin_UxOutArray* parray, int n){ - parray->data = malloc( sizeof(coin__UxOut) * n ); - if(!parray->data) - return 1; - registerMemCleanup( parray->data ); - parray->count = parray->count = n; - coin__UxOut* p = (coin__UxOut*)parray->data; - int result = 0; - for(int i = 0; i < n; i++){ - result = makeUxOut(p); - if( result != 0 ) - break; - p++; - } - return result; -} -int makeAddress(cipher__Address* paddress){ - cipher__PubKey pubkey; - cipher__SecKey seckey; - cipher__Address address; - int result; + return k; + } - result = SKY_cipher_GenerateKeyPair(&pubkey, &seckey); - if(result != 0) return 1; + int DecodeBase64(GoSlice encrypted, GoString_ * outs) + { + char encryptedText[1024]; + int decode_length = b64_decode((unsigned char *)encrypted.data, + encrypted.len, encryptedText); + + outs->p=encryptedText; + outs->n = decode_length; + return decode_length; + } - result = SKY_cipher_AddressFromPubKey( &pubkey, paddress ); - if(result != 0) return 1; - return result; +int putUvarint(GoSlice* buf , GoUint64 x){ + int i = 0; + while( x >= 0x80 && i < buf->cap) { + ((unsigned char*)buf->data)[i] = ((GoUint8)x) | 0x80; + x >>= 7; + i++; + } + if( i < buf->cap ){ + ((unsigned char*)buf->data)[i] = (GoUint8)(x); + buf->len = i + 1; + } else { + buf->len = i; + } + return buf->len; } -coin__Transaction* makeTransactionFromUxOut(coin__UxOut* puxOut, cipher__SecKey* pseckey, Transaction__Handle* handle ){ - int result; - coin__Transaction* ptransaction = NULL; - result = SKY_coin_Create_Transaction(handle); -// cr_assert(result == SKY_OK, "SKY_coin_Create_Transaction failed"); - registerHandleClose(*handle); - result = SKY_coin_GetTransactionObject( *handle, &ptransaction ); -// cr_assert(result == SKY_OK, "SKY_coin_GetTransactionObject failed"); - cipher__SHA256 sha256; - result = SKY_coin_UxOut_Hash(puxOut, &sha256); -// cr_assert(result == SKY_OK, "SKY_coin_UxOut_Hash failed"); - GoUint16 r; - result = SKY_coin_Transaction_PushInput(*handle, &sha256, &r); -// cr_assert(result == SKY_OK, "SKY_coin_Transaction_PushInput failed"); - - cipher__Address address1, address2; - result = makeAddress(&address1); -// cr_assert(result == SKY_OK, "makeAddress failed"); - result = makeAddress(&address2); -// cr_assert(result == SKY_OK, "makeAddress failed"); - - result = SKY_coin_Transaction_PushOutput(*handle, &address1, 1000000, 50); -// cr_assert(result == SKY_OK, "SKY_coin_Transaction_PushOutput failed"); - result = SKY_coin_Transaction_PushOutput(*handle, &address2, 5000000, 50); -// cr_assert(result == SKY_OK, "SKY_coin_Transaction_PushOutput failed"); - - GoSlice secKeys = { pseckey, 1, 1 }; - result = SKY_coin_Transaction_SignInputs( *handle, secKeys ); -// cr_assert(result == SKY_OK, "SKY_coin_Transaction_SignInputs failed"); - result = SKY_coin_Transaction_UpdateHeader( *handle ); -// cr_assert(result == SKY_OK, "SKY_coin_Transaction_UpdateHeader failed"); - return ptransaction; -} - -coin__Transaction* makeTransaction(Transaction__Handle* handle){ - int result; - coin__UxOut uxOut; - cipher__SecKey seckey; - coin__Transaction* ptransaction = NULL; - result = makeUxOutWithSecret( &uxOut, &seckey ); - if(result != 0) return 1; - ptransaction = makeTransactionFromUxOut( &uxOut, &seckey, handle ); - if(result != 0) return 1; - return ptransaction; -} - -int makeTransactions(int n, Transactions__Handle* handle){ - int result = SKY_coin_Create_Transactions(handle); - if(result != 0) return 1; - registerHandleClose(*handle); - for(int i = 0; i < n; i++){ - Transaction__Handle thandle; - makeTransaction(&thandle); - registerHandleClose(thandle); - result = SKY_coin_Transactions_Add(*handle, thandle); - if(result != 0) return 1; - } - return result; -} - + +int putVarint(GoSlice* buf , GoInt64 x){ + GoUint64 ux = (GoUint64)x << 1; + if ( x < 0 ) { + ux = ~ux; + } + return putUvarint(buf, ux); +} + +void hashKeyIndexNonce(GoSlice_ key, GoInt64 index, + cipher__SHA256 *nonceHash, cipher__SHA256 *resultHash){ + GoUint32 errcode; + int length = 32 + sizeof(cipher__SHA256); + unsigned char buff[length]; + GoSlice slice = {buff, 0, length}; + memset(buff, 0, length * sizeof(char)); + putVarint( &slice, index ); + memcpy(buff + 32, *nonceHash, sizeof(cipher__SHA256)); + slice.len = length; + cipher__SHA256 indexNonceHash; + errcode = SKY_cipher_SumSHA256(slice, &indexNonceHash); + SKY_cipher_AddSHA256(key.data, &indexNonceHash, resultHash); +} + +void makeEncryptedData(GoSlice data, GoUint32 dataLength, GoSlice pwd, coin__UxArray* encrypted){ + GoUint32 fullLength = dataLength + 4; + GoUint32 n = fullLength / 32; + GoUint32 m = fullLength % 32; + GoUint32 errcode; + + if( m > 0 ){ + fullLength += 32 - m; + } + if(32 == sizeof(cipher__SHA256)){ return ;} + fullLength += 32; + char* buffer = malloc(fullLength); + if(buffer != NULL){return;} + //Add data length to the beginning, saving space for the checksum + for(int i = 0; i < 4; i++){ + int shift = i * 8; + buffer[i + 32] = (dataLength & (0xFF << shift)) >> shift; + } + //Add the data + memcpy(buffer + 4 + 32, + data.data, dataLength); + //Add padding + for(int i = dataLength + 4 + 32; i < fullLength; i++){ + buffer[i] = 0; + } + //Buffer with space for the checksum, then data length, then data, and then padding + GoSlice _data = {buffer + 32, + fullLength - 32, + fullLength - 32}; + //GoSlice _hash = {buffer, 0, 32}; + errcode = SKY_cipher_SumSHA256(_data, (cipher__SHA256*)buffer); + char bufferNonce[32]; + GoSlice sliceNonce = {bufferNonce, 0, 32}; + randBytes(&sliceNonce, 32); + cipher__SHA256 hashNonce; + errcode = SKY_cipher_SumSHA256(sliceNonce, &hashNonce); + char bufferHash[1024]; + coin__UxArray hashPassword = {bufferHash, 0, 1024}; + errcode = SKY_secp256k1_Secp256k1Hash(pwd, &hashPassword); + cipher__SHA256 h; + + + int fullDestLength = fullLength + sizeof(cipher__SHA256) + 32; + int destBufferStart = sizeof(cipher__SHA256) + 32; + unsigned char* dest_buffer = malloc(fullDestLength); + if(dest_buffer != NULL){return;} + for(int i = 0; i < n; i++){ + hashKeyIndexNonce(hashPassword, i, &hashNonce, &h); + cipher__SHA256* pBuffer = (cipher__SHA256*)(buffer + i *32); + cipher__SHA256* xorResult = (cipher__SHA256*)(dest_buffer + destBufferStart + i *32); + SKY_cipher_SHA256_Xor(pBuffer, &h, xorResult); + } + // Prefix the nonce + memcpy(dest_buffer + sizeof(cipher__SHA256), bufferNonce, 32); + // Calculates the checksum + GoSlice nonceAndDataBytes = {dest_buffer + sizeof(cipher__SHA256), + fullLength + 32, + fullLength + 32 + }; + cipher__SHA256* checksum = (cipher__SHA256*)dest_buffer; + errcode = SKY_cipher_SumSHA256(nonceAndDataBytes, checksum); + unsigned char bufferb64[1024]; + unsigned int size = b64_encode((const unsigned char*)dest_buffer, fullDestLength, encrypted->data); + encrypted->len = size; +} + GoUint32 CSharp_skycoin_SKY_cipher_SumSHA256(GoSlice seed, cipher_SHA256* sha){ GoUint32 result = SKY_cipher_SumSHA256(seed, sha); @@ -1541,15 +1841,6 @@ int makeTransactions(int n, Transactions__Handle* handle){ }; - GoUint32 CSharp_skycoin_SKY_coin_Transactions_Fees(Transactions__Handle handle ,Fee_Calculator *pFeeCalc, GoUint64* p3){ - FeeCalculator *out = {callFeeCalculator,NULL} ; - - GoUint32 result = SKY_coin_Transactions_Fees(handle, out,p3); - *p3 = 3; - return result; - }; - - GoUint32 CSharp_skycoin_SKY_coin_GetBlockObject(Block__Handle handle, coin__Block* outBlock ){ GoUint32 result = SKY_coin_GetBlockObject(handle, &outBlock); return result; @@ -1591,13 +1882,6 @@ SWIGINTERN void cipher_Sig_assignFrom(cipher_Sig *self,void *data){ SWIGINTERN void cipher_Sig_assignTo(cipher_Sig *self,void *data){ memcpy(data, &self->data, sizeof(self->data)); } -SWIGINTERN GoSlice cipher_Sig_toGoSlice(cipher_Sig *self){ - GoSlice slice; -slice.len = sizeof(cipher_Sig); -slice.cap = sizeof(cipher_Sig)+1; -slice.data = (cipher_Sig*)&self; -return slice; - } SWIGINTERN int cipher_SHA256_isEqual(cipher_SHA256 *self,cipher_SHA256 *a){ return memcmp(self->data, a->data, sizeof(a->data)) == 0; } @@ -1772,12 +2056,9 @@ SWIGINTERN void GoSlice_convertString(GoSlice *self,_GoString_ data){ self->len = strlen(data.p); self->cap = self->len; } -SWIGINTERN _GoString_ GoSlice_getString(GoSlice *self){ - _GoString_ out; - char * a = (char *)self->data; - out.p = a; - out.n = strlen(a); -return out; +SWIGINTERN void GoSlice_getString(GoSlice *self,_GoString_ *out){ + out->p = (char *)self->data; + out->n = strlen((char *)self->data); } SWIGINTERN int cipher__Address_isEqual(cipher__Address *self,cipher__Address *a){ if( self->Version == a->Version ){ @@ -2514,189 +2795,325 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_Transactions__Handlep_value(void * } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_Transaction__Handlep() { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_Transaction__Handlep() { + void * jresult ; + Transaction__Handle *result = 0 ; + + result = (Transaction__Handle *)new_Transaction__Handlep(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_Transaction__Handlep(void * jarg1) { + void * jresult ; + Transaction__Handle arg1 ; + Transaction__Handle *argp1 ; + Transaction__Handle *result = 0 ; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + result = (Transaction__Handle *)copy_Transaction__Handlep(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_Transaction__Handlep(void * jarg1) { + Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; + + arg1 = (Transaction__Handle *)jarg1; + delete_Transaction__Handlep(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_Transaction__Handlep_assign(void * jarg1, void * jarg2) { + Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; + Transaction__Handle arg2 ; + Transaction__Handle *argp2 ; + + arg1 = (Transaction__Handle *)jarg1; + argp2 = (Transaction__Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return ; + } + arg2 = *argp2; + Transaction__Handlep_assign(arg1,arg2); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_Transaction__Handlep_value(void * jarg1) { + void * jresult ; + Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; + Transaction__Handle result; + + arg1 = (Transaction__Handle *)jarg1; + result = Transaction__Handlep_value(arg1); + { + Transaction__Handle * resultptr = (Transaction__Handle *) malloc(sizeof(Transaction__Handle)); + memmove(resultptr, &result, sizeof(Transaction__Handle)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_Block__HandlePtr() { + void * jresult ; + Block__Handle *result = 0 ; + + result = (Block__Handle *)new_Block__HandlePtr(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_Block__HandlePtr(void * jarg1) { + void * jresult ; + Block__Handle arg1 ; + Block__Handle *argp1 ; + Block__Handle *result = 0 ; + + argp1 = (Block__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); + return 0; + } + arg1 = *argp1; + result = (Block__Handle *)copy_Block__HandlePtr(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_Block__HandlePtr(void * jarg1) { + Block__Handle *arg1 = (Block__Handle *) 0 ; + + arg1 = (Block__Handle *)jarg1; + delete_Block__HandlePtr(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_Block__HandlePtr_assign(void * jarg1, void * jarg2) { + Block__Handle *arg1 = (Block__Handle *) 0 ; + Block__Handle arg2 ; + Block__Handle *argp2 ; + + arg1 = (Block__Handle *)jarg1; + argp2 = (Block__Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); + return ; + } + arg2 = *argp2; + Block__HandlePtr_assign(arg1,arg2); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_Block__HandlePtr_value(void * jarg1) { + void * jresult ; + Block__Handle *arg1 = (Block__Handle *) 0 ; + Block__Handle result; + + arg1 = (Block__Handle *)jarg1; + result = Block__HandlePtr_value(arg1); + { + Block__Handle * resultptr = (Block__Handle *) malloc(sizeof(Block__Handle)); + memmove(resultptr, &result, sizeof(Block__Handle)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_Signature_HandlePtr() { void * jresult ; - Transaction__Handle *result = 0 ; + Signature_Handle *result = 0 ; - result = (Transaction__Handle *)new_Transaction__Handlep(); + result = (Signature_Handle *)new_Signature_HandlePtr(); jresult = (void *)result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_Transaction__Handlep(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_Signature_HandlePtr(void * jarg1) { void * jresult ; - Transaction__Handle arg1 ; - Transaction__Handle *argp1 ; - Transaction__Handle *result = 0 ; + Signature_Handle arg1 ; + Signature_Handle *argp1 ; + Signature_Handle *result = 0 ; - argp1 = (Transaction__Handle *)jarg1; + argp1 = (Signature_Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); return 0; } arg1 = *argp1; - result = (Transaction__Handle *)copy_Transaction__Handlep(arg1); + result = (Signature_Handle *)copy_Signature_HandlePtr(arg1); jresult = (void *)result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_Transaction__Handlep(void * jarg1) { - Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_Signature_HandlePtr(void * jarg1) { + Signature_Handle *arg1 = (Signature_Handle *) 0 ; - arg1 = (Transaction__Handle *)jarg1; - delete_Transaction__Handlep(arg1); + arg1 = (Signature_Handle *)jarg1; + delete_Signature_HandlePtr(arg1); } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_Transaction__Handlep_assign(void * jarg1, void * jarg2) { - Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; - Transaction__Handle arg2 ; - Transaction__Handle *argp2 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_Signature_HandlePtr_assign(void * jarg1, void * jarg2) { + Signature_Handle *arg1 = (Signature_Handle *) 0 ; + Signature_Handle arg2 ; + Signature_Handle *argp2 ; - arg1 = (Transaction__Handle *)jarg1; - argp2 = (Transaction__Handle *)jarg2; + arg1 = (Signature_Handle *)jarg1; + argp2 = (Signature_Handle *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); return ; } arg2 = *argp2; - Transaction__Handlep_assign(arg1,arg2); + Signature_HandlePtr_assign(arg1,arg2); } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_Transaction__Handlep_value(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_Signature_HandlePtr_value(void * jarg1) { void * jresult ; - Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; - Transaction__Handle result; + Signature_Handle *arg1 = (Signature_Handle *) 0 ; + Signature_Handle result; - arg1 = (Transaction__Handle *)jarg1; - result = Transaction__Handlep_value(arg1); + arg1 = (Signature_Handle *)jarg1; + result = Signature_HandlePtr_value(arg1); { - Transaction__Handle * resultptr = (Transaction__Handle *) malloc(sizeof(Transaction__Handle)); - memmove(resultptr, &result, sizeof(Transaction__Handle)); + Signature_Handle * resultptr = (Signature_Handle *) malloc(sizeof(Signature_Handle)); + memmove(resultptr, &result, sizeof(Signature_Handle)); jresult = resultptr; } return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_Block__HandlePtr() { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_Number_HandlePtr() { void * jresult ; - Block__Handle *result = 0 ; + Number_Handle *result = 0 ; - result = (Block__Handle *)new_Block__HandlePtr(); + result = (Number_Handle *)new_Number_HandlePtr(); jresult = (void *)result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_Block__HandlePtr(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_Number_HandlePtr(void * jarg1) { void * jresult ; - Block__Handle arg1 ; - Block__Handle *argp1 ; - Block__Handle *result = 0 ; + Number_Handle arg1 ; + Number_Handle *argp1 ; + Number_Handle *result = 0 ; - argp1 = (Block__Handle *)jarg1; + argp1 = (Number_Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); return 0; } arg1 = *argp1; - result = (Block__Handle *)copy_Block__HandlePtr(arg1); + result = (Number_Handle *)copy_Number_HandlePtr(arg1); jresult = (void *)result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_Block__HandlePtr(void * jarg1) { - Block__Handle *arg1 = (Block__Handle *) 0 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_Number_HandlePtr(void * jarg1) { + Number_Handle *arg1 = (Number_Handle *) 0 ; - arg1 = (Block__Handle *)jarg1; - delete_Block__HandlePtr(arg1); + arg1 = (Number_Handle *)jarg1; + delete_Number_HandlePtr(arg1); } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_Block__HandlePtr_assign(void * jarg1, void * jarg2) { - Block__Handle *arg1 = (Block__Handle *) 0 ; - Block__Handle arg2 ; - Block__Handle *argp2 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_Number_HandlePtr_assign(void * jarg1, void * jarg2) { + Number_Handle *arg1 = (Number_Handle *) 0 ; + Number_Handle arg2 ; + Number_Handle *argp2 ; - arg1 = (Block__Handle *)jarg1; - argp2 = (Block__Handle *)jarg2; + arg1 = (Number_Handle *)jarg1; + argp2 = (Number_Handle *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); return ; } arg2 = *argp2; - Block__HandlePtr_assign(arg1,arg2); + Number_HandlePtr_assign(arg1,arg2); } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_Block__HandlePtr_value(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_Number_HandlePtr_value(void * jarg1) { void * jresult ; - Block__Handle *arg1 = (Block__Handle *) 0 ; - Block__Handle result; + Number_Handle *arg1 = (Number_Handle *) 0 ; + Number_Handle result; - arg1 = (Block__Handle *)jarg1; - result = Block__HandlePtr_value(arg1); + arg1 = (Number_Handle *)jarg1; + result = Number_HandlePtr_value(arg1); { - Block__Handle * resultptr = (Block__Handle *) malloc(sizeof(Block__Handle)); - memmove(resultptr, &result, sizeof(Block__Handle)); + Number_Handle * resultptr = (Number_Handle *) malloc(sizeof(Number_Handle)); + memmove(resultptr, &result, sizeof(Number_Handle)); jresult = resultptr; } return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_charp() { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_CharPtr() { void * jresult ; unsigned char *result = 0 ; - result = (unsigned char *)new_charp(); + result = (unsigned char *)new_CharPtr(); jresult = (void *)result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_charp(unsigned char jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_CharPtr(unsigned char jarg1) { void * jresult ; unsigned char arg1 ; unsigned char *result = 0 ; arg1 = (unsigned char)jarg1; - result = (unsigned char *)copy_charp(arg1); + result = (unsigned char *)copy_CharPtr(arg1); jresult = (void *)result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_charp(void * jarg1) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_CharPtr(void * jarg1) { unsigned char *arg1 = (unsigned char *) 0 ; arg1 = (unsigned char *)jarg1; - delete_charp(arg1); + delete_CharPtr(arg1); } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_charp_assign(void * jarg1, unsigned char jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_CharPtr_assign(void * jarg1, unsigned char jarg2) { unsigned char *arg1 = (unsigned char *) 0 ; unsigned char arg2 ; arg1 = (unsigned char *)jarg1; arg2 = (unsigned char)jarg2; - charp_assign(arg1,arg2); + CharPtr_assign(arg1,arg2); } -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_skycoin_charp_value(void * jarg1) { +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_skycoin_CharPtr_value(void * jarg1) { unsigned char jresult ; unsigned char *arg1 = (unsigned char *) 0 ; unsigned char result; arg1 = (unsigned char *)jarg1; - result = (unsigned char)charp_value(arg1); + result = (unsigned char)CharPtr_value(arg1); jresult = result; return jresult; } @@ -3442,6 +3859,128 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_makeTransactions(int jarg1, void * jar } +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_b64_int(unsigned int jarg1) { + int jresult ; + unsigned int arg1 ; + int result; + + arg1 = (unsigned int)jarg1; + result = (int)b64_int(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_b64_decode(void * jarg1, unsigned int jarg2, void * jarg3) { + int jresult ; + unsigned char *arg1 = (unsigned char *) 0 ; + unsigned int arg2 ; + unsigned char *arg3 = (unsigned char *) 0 ; + int result; + + arg1 = (unsigned char *)jarg1; + arg2 = (unsigned int)jarg2; + arg3 = (unsigned char *)jarg3; + result = (int)b64_decode((unsigned char const *)arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_DecodeBase64(void * jarg1, GoString* jarg2) { + int jresult ; + GoSlice arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoSlice *argp1 ; + int result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoString_ *)jarg2; + result = (int)DecodeBase64(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_putUvarint(void * jarg1, unsigned long long jarg2) { + int jresult ; + GoSlice *arg1 = (GoSlice *) 0 ; + GoUint64 arg2 ; + int result; + + arg1 = (GoSlice *)jarg1; + arg2 = (GoUint64)jarg2; + result = (int)putUvarint(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_putVarint(void * jarg1, long long jarg2) { + int jresult ; + GoSlice *arg1 = (GoSlice *) 0 ; + GoInt64 arg2 ; + int result; + + arg1 = (GoSlice *)jarg1; + arg2 = (GoInt64)jarg2; + result = (int)putVarint(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_hashKeyIndexNonce(void * jarg1, long long jarg2, cipher_SecKey* jarg3, cipher_SecKey* jarg4) { + GoSlice_ arg1 ; + GoInt64 arg2 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + cipher__SHA256 *arg4 = (cipher__SHA256 *) 0 ; + GoSlice_ *argp1 ; + + argp1 = (GoSlice_ *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice_", 0); + return ; + } + arg1 = *argp1; + arg2 = (GoInt64)jarg2; + arg3 = (cipher__SHA256 *)jarg3; + arg4 = (cipher__SHA256 *)jarg4; + hashKeyIndexNonce(arg1,arg2,(GoUint8_ (*)[32])arg3,(GoUint8_ (*)[32])arg4); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_makeEncryptedData(void * jarg1, unsigned int jarg2, void * jarg3, GoSlice_ * jarg4) { + GoSlice arg1 ; + GoUint32 arg2 ; + GoSlice arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; + GoSlice *argp3 ; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return ; + } + arg1 = *argp1; + arg2 = (GoUint32)jarg2; + argp3 = (GoSlice *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return ; + } + arg3 = *argp3; + arg4 = (coin__UxArray *)jarg4; + makeEncryptedData(arg1,arg2,arg3,arg4); +} + + SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SumSHA256__SWIG_0(void * jarg1, void * jarg2) { unsigned int jresult ; GoSlice arg1 ; @@ -4195,28 +4734,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_TransactionFee__SWIG_ } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Fees__SWIG_0(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - Transactions__Handle arg1 ; - Fee_Calculator *arg2 = (Fee_Calculator *) 0 ; - GoUint64 *arg3 = (GoUint64 *) 0 ; - Transactions__Handle *argp1 ; - GoUint32 result; - - argp1 = (Transactions__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (Fee_Calculator *)jarg2; - arg3 = (GoUint64 *)jarg3; - result = (GoUint32)CSharp_skycoin_SKY_coin_Transactions_Fees(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetBlockObject__SWIG_0(void * jarg1, void * jarg2) { unsigned int jresult ; Block__Handle arg1 ; @@ -4505,22 +5022,6 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_Sig_assignTo(void * jarg1, voi } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_Sig_toGoSlice(void * jarg1) { - void * jresult ; - cipher_Sig *arg1 = (cipher_Sig *) 0 ; - GoSlice result; - - arg1 = (cipher_Sig *)jarg1; - result = cipher_Sig_toGoSlice(arg1); - { - GoSlice * resultptr = (GoSlice *) malloc(sizeof(GoSlice)); - memmove(resultptr, &result, sizeof(GoSlice)); - jresult = resultptr; - } - return jresult; -} - - SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher_Sig_data(void * jarg1, void * jarg2) { cipher_Sig *arg1 = (cipher_Sig *) 0 ; GoUint8 *arg2 ; @@ -5628,19 +6129,13 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoSlice_convertString(void * jarg1, v } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_GoSlice_getString(void * jarg1) { - void * jresult ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoSlice_getString(void * jarg1, void * jarg2) { GoSlice *arg1 = (GoSlice *) 0 ; - _GoString_ result; + _GoString_ *arg2 = (_GoString_ *) 0 ; arg1 = (GoSlice *)jarg1; - result = GoSlice_getString(arg1); - { - _GoString_ * resultptr = (_GoString_ *) malloc(sizeof(_GoString_)); - memmove(resultptr, &result, sizeof(_GoString_)); - jresult = resultptr; - } - return jresult; + arg2 = (_GoString_ *)jarg2; + GoSlice_getString(arg1,arg2); } @@ -14368,7 +14863,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Add(voi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Fees__SWIG_1(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Fees(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; Transactions__Handle arg1 ; FeeCalculator *arg2 = (FeeCalculator *) 0 ; @@ -18466,18 +18961,6 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrVerifySignatureInvalidPubke } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_b64_int(unsigned int jarg1) { - int jresult ; - unsigned int arg1 ; - int result; - - arg1 = (unsigned int)jarg1; - result = (int)b64_int(arg1); - jresult = result; - return jresult; -} - - SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_b64e_size(unsigned int jarg1) { unsigned int jresult ; unsigned int arg1 ; @@ -18518,22 +19001,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_b64_encode(void * jarg1, unsi } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_b64_decode(void * jarg1, unsigned int jarg2, void * jarg3) { - int jresult ; - unsigned char *arg1 = (unsigned char *) 0 ; - unsigned int arg2 ; - unsigned char *arg3 = (unsigned char *) 0 ; - int result; - - arg1 = (unsigned char *)jarg1; - arg2 = (unsigned int)jarg2; - arg3 = (unsigned char *)jarg3; - result = (int)b64_decode((unsigned char const *)arg1,arg2,arg3); - jresult = result; - return jresult; -} - - SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_b64_encodef(char * jarg1, char * jarg2) { unsigned int jresult ; char *arg1 = (char *) 0 ; diff --git a/LibskycoinNetTest/LibskycoinNetTest.csproj b/LibskycoinNetTest/LibskycoinNetTest.csproj index 00ec6b27..47b560f8 100644 --- a/LibskycoinNetTest/LibskycoinNetTest.csproj +++ b/LibskycoinNetTest/LibskycoinNetTest.csproj @@ -38,17 +38,22 @@ - - - - - - - - + + + + + + + + + + + + + - - + + diff --git a/LibskycoinNetTest/check_cipher_bip39.cs b/LibskycoinNetTest/check_cipher_bip39.cs new file mode 100644 index 00000000..c52d1e8f --- /dev/null +++ b/LibskycoinNetTest/check_cipher_bip39.cs @@ -0,0 +1,84 @@ +using System; +using NUnit.Framework; +using skycoin; +using utils; +namespace LibskycoinNetTest { + [TestFixture ()] + public class check_cipher_bip39 { + utils.transutils utils = new transutils (); + [Test] + public void TestIsMnemonicValid () { + var m = new _GoString_ (); + var err = skycoin.skycoin.SKY_bip39_NewDefaultMnemomic (m); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var val = skycoin.skycoin.new_CharPtr (); + err = skycoin.skycoin.SKY_bip39_IsMnemonicValid (m.p, val); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.IsTrue (Convert.ToBoolean (skycoin.skycoin.CharPtr_value (val))); + + // Truncated + var str = m.p; + str = str.Substring (0, str.Length - 15); + err = skycoin.skycoin.SKY_bip39_IsMnemonicValid (str, val); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.IsFalse (Convert.ToBoolean (skycoin.skycoin.CharPtr_value (val))); + + // Trailing whitespace + str = m.p; + str += " "; + err = skycoin.skycoin.SKY_bip39_IsMnemonicValid (str, val); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.IsFalse (Convert.ToBoolean (skycoin.skycoin.CharPtr_value (val))); + + str = m.p; + str += "/n"; + err = skycoin.skycoin.SKY_bip39_IsMnemonicValid (str, val); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.IsFalse (Convert.ToBoolean (skycoin.skycoin.CharPtr_value (val))); + + // Preceding whitespace + str = m.p; + str = String.Concat (str, " "); + str = String.Concat (str, str); + err = skycoin.skycoin.SKY_bip39_IsMnemonicValid (str, val); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.IsFalse (Convert.ToBoolean (skycoin.skycoin.CharPtr_value (val))); + + str = m.p; + str += "/n" + str; + err = skycoin.skycoin.SKY_bip39_IsMnemonicValid (str, val); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.IsFalse (Convert.ToBoolean (skycoin.skycoin.CharPtr_value (val))); + + // Extra whitespace between words + str = m.p; + var ms = str.Split (' '); + str = String.Join (" ", ms); + err = skycoin.skycoin.SKY_bip39_IsMnemonicValid (str, val); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.IsFalse (Convert.ToBoolean (skycoin.skycoin.CharPtr_value (val))); + + // Contains invalid word + str = m.p; + ms = str.Split (' '); + ms[2] = "foo"; + str = String.Join (" ", ms); + err = skycoin.skycoin.SKY_bip39_IsMnemonicValid (str, val); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.IsFalse (Convert.ToBoolean (skycoin.skycoin.CharPtr_value (val))); + + // Invalid number of words + str = m.p; + ms = str.Split (' '); + var ms1 = new string[ms.Length - 1]; + for (int i = 0; i < ms1.Length; i++) { + ms1[i] = ms[i]; + } + str = String.Join (" ", ms1); + err = skycoin.skycoin.SKY_bip39_IsMnemonicValid (str, val); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.IsFalse (Convert.ToBoolean (skycoin.skycoin.CharPtr_value (val))); + + } + } +} \ No newline at end of file diff --git a/LibskycoinNetTest/check_cipher_ec.cs b/LibskycoinNetTest/check_cipher_ec.cs new file mode 100644 index 00000000..ffadedee --- /dev/null +++ b/LibskycoinNetTest/check_cipher_ec.cs @@ -0,0 +1,60 @@ +using System; +using NUnit.Framework; +using skycoin; +using utils; +namespace LibskycoinNetTest { + [TestFixture ()] + public class check_cipher_ec { + utils.transutils utils = new transutils (); + + [Test] + public void TestECmult () { + var u1 = skycoin.skycoin.new_Number_HandlePtr (); + var u2 = skycoin.skycoin.new_Number_HandlePtr (); + skycoin.skycoin.SKY_secp256k1go_Number_Create (u1); + skycoin.skycoin.SKY_secp256k1go_Number_Create (u2); + var public_kej = new secp256k1go__XYZ (); + var expres = new secp256k1go__XYZ (); + var pr = new secp256k1go__XYZ (); + skycoin.skycoin.SKY_secp256k1go_Field_SetHex (public_kej.X, "0EAEBCD1DF2DF853D66CE0E1B0FDA07F67D1CABEFDE98514AAD795B86A6EA66D"); + skycoin.skycoin.SKY_secp256k1go_Field_SetHex (public_kej.Y, "BEB26B67D7A00E2447BAECCC8A4CEF7CD3CAD67376AC1C5785AEEBB4F6441C16"); + skycoin.skycoin.SKY_secp256k1go_Field_SetHex (public_kej.Z, "0000000000000000000000000000000000000000000000000000000000000001"); + skycoin.skycoin.SKY_secp256k1go_Number_SetHex (u1, "B618EBA71EC03638693405C75FC1C9ABB1A74471BAAF1A3A8B9005821491C4B4"); + skycoin.skycoin.SKY_secp256k1go_Number_SetHex (u2, "8554470195DE4678B06EDE9F9286545B51FF2D9AA756CE35A39011783563EA60"); + skycoin.skycoin.SKY_secp256k1go_Field_SetHex (expres.X, "EB6752420B6BDB40A760AC26ADD7E7BBD080BF1DF6C0B009A0D310E4511BDF49"); + skycoin.skycoin.SKY_secp256k1go_Field_SetHex (expres.Y, "8E8CEB84E1502FC536FFE67967BC44314270A0B38C79865FFED5A85D138DCA6B"); + skycoin.skycoin.SKY_secp256k1go_Field_SetHex (expres.Z, "813925AF112AAB8243F8CCBADE4CC7F63DF387263028DE6E679232A73A7F3C31"); + + Assert.AreEqual (skycoin.skycoin.SKY_secp256k1go_XYZ_ECmult (public_kej, pr, u2, u1), skycoin.skycoin.SKY_OK); + var val = skycoin.skycoin.new_CharPtr (); + Assert.AreEqual (skycoin.skycoin.SKY_secp256k1go_XYZ_Equals (pr, expres, val), skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.CharPtr_value (val), 1); + } + + [Test] + public void TestMultGen () { + var noce = skycoin.skycoin.new_Number_HandlePtr (); + var err = skycoin.skycoin.SKY_secp256k1go_Number_Create (noce); + var x = new secp256k1go__Field (); + var y = new secp256k1go__Field (); + var z = new secp256k1go__Field (); + var pr = new secp256k1go__XYZ (); + skycoin.skycoin.SKY_secp256k1go_Number_SetHex (noce, "9E3CD9AB0F32911BFDE39AD155F527192CE5ED1F51447D63C4F154C118DA598E"); + skycoin.skycoin.SKY_secp256k1go_Field_SetHex (x, "02D1BF36D37ACD68E4DD00DB3A707FD176A37E42F81AEF9386924032D3428FF0"); + skycoin.skycoin.SKY_secp256k1go_Field_SetHex (y, "FD52E285D33EC835230EA69F89D9C38673BD5B995716A4063C893AF02F938454"); + skycoin.skycoin.SKY_secp256k1go_Field_SetHex (z, "4C6ACE7C8C062A1E046F66FD8E3981DC4E8E844ED856B5415C62047129268C1B"); + skycoin.skycoin.SKY_secp256k1go_ECmultGen (pr, noce); + skycoin.skycoin.SKY_secp256k1go_Field_Normalize (pr.X); + skycoin.skycoin.SKY_secp256k1go_Field_Normalize (pr.Y); + skycoin.skycoin.SKY_secp256k1go_Field_Normalize (pr.Z); + var val = skycoin.skycoin.new_CharPtr (); + Assert.AreEqual (skycoin.skycoin.SKY_secp256k1go_Field_Equals (pr.X, x, val), skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.CharPtr_value (val), 1); + Assert.AreEqual (skycoin.skycoin.SKY_secp256k1go_Field_Equals (pr.Y, y, val), skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.CharPtr_value (val), 1); + Assert.AreEqual (skycoin.skycoin.SKY_secp256k1go_Field_Equals (pr.Z, z, val), skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.CharPtr_value (val), 1); + + } + } +} \ No newline at end of file diff --git a/LibskycoinNetTest/check_cipher_encrypt_scrypt_chacha20poly1305.cs b/LibskycoinNetTest/check_cipher_encrypt_scrypt_chacha20poly1305.cs index 2b4514f4..951f7e16 100644 --- a/LibskycoinNetTest/check_cipher_encrypt_scrypt_chacha20poly1305.cs +++ b/LibskycoinNetTest/check_cipher_encrypt_scrypt_chacha20poly1305.cs @@ -4,10 +4,11 @@ using Newtonsoft.Json.Linq; using NUnit.Framework; using skycoin; +using utils; namespace LibskycoinNetTest { [TestFixture ()] public class check_cipher_encrypt_scrypt_chacha20poly1305 { - + utils.transutils utils = new utils.transutils (); private String cutString (String str, String ini, String end) { int endIndex = str.LastIndexOf (end); String outs = str.Substring (0, endIndex); @@ -39,12 +40,12 @@ public void TestScryptChacha20poly1305Encrypt () { var err = skycoin.skycoin.SKY_encrypt_ScryptChacha20poly1305_Encrypt (crypto, plain, passwd, encData); Assert.AreEqual (err, skycoin.skycoin.SKY_OK, name); Assert.AreEqual (encData.len > 2, true); - var str = encData.getString (); + var str = new _GoString_ (); + encData.getString (str); Console.WriteLine (name); if (str.n <= 188) { - var base64 = Convert.FromBase64String (str.p); - var meta = System.Text.Encoding.UTF8.GetString (base64); + var meta = utils.base64Decode (str.p); var n = skycoin.skycoin.new_Gointp (); var r = skycoin.skycoin.new_Gointp (); var p = skycoin.skycoin.new_Gointp (); diff --git a/LibskycoinNetTest/check_cipher_field.cs b/LibskycoinNetTest/check_cipher_field.cs new file mode 100644 index 00000000..ab44d927 --- /dev/null +++ b/LibskycoinNetTest/check_cipher_field.cs @@ -0,0 +1,30 @@ +using System; +using NUnit.Framework; +using skycoin; +using utils; +namespace LibskycoinNetTest { + [TestFixture ()] + public class check_cipher_field { + utils.transutils utils = new transutils (); + [Test] + public void TestFeInv () { + var in_ = new secp256k1go__Field (); + var out_ = new secp256k1go__Field (); + var exp = new secp256k1go__Field (); + + var in_hex = "813925AF112AAB8243F8CCBADE4CC7F63DF387263028DE6E679232A73A7F3C31"; + var exp_hex = "7F586430EA30F914965770F6098E492699C62EE1DF6CAFFA77681C179FDF3117"; + + var err = skycoin.skycoin.SKY_secp256k1go_Field_SetHex (in_, in_hex); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_secp256k1go_Field_SetHex (exp, exp_hex); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_secp256k1go_Field_Inv (in_, out_); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var val = skycoin.skycoin.new_CharPtr (); + err = skycoin.skycoin.SKY_secp256k1go_Field_Equals (out_, exp, val); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.IsTrue (Convert.ToBoolean (skycoin.skycoin.CharPtr_value (val))); + } + } +} \ No newline at end of file diff --git a/LibskycoinNetTest/check_cipher_sha256xor.cs b/LibskycoinNetTest/check_cipher_sha256xor.cs new file mode 100644 index 00000000..4354d469 --- /dev/null +++ b/LibskycoinNetTest/check_cipher_sha256xor.cs @@ -0,0 +1,197 @@ +using System; +using NUnit.Framework; +using skycoin; +using utils; +namespace LibskycoinNetTest { + [TestFixture ()] + public class check_cipher_sha256xor { + utils.transutils utils = new transutils (); + int sha256XorDataLengthSize = 4; + int sha256XorBlockSize = 32; + int sha256XorNonceSize = 32; + int sha256XorChecksumSize = 32; + + struct StrTest { + public string name; + public int data; + public GoSlice password; + public int error; + } + + StrTest[] cases; + + public void FullCase1 () { + cases = new StrTest[5]; + var c = new StrTest (); + var str = new _GoString_ (); + c.name = "data length=1 password is empty=true"; + c.data = 1; + c.password = new GoSlice (); + c.error = skycoin.skycoin.SKY_ErrSHA256orMissingPassword; + cases[0] = c; + + c = new StrTest (); + str = new _GoString_ (); + c.name = "data length=1 password is empty=false"; + c.data = 1; + c.password = new GoSlice (); + str.p = "key"; + c.password.convertString (str); + c.error = skycoin.skycoin.SKY_OK; + cases[1] = c; + + c = new StrTest (); + str = new _GoString_ (); + c.name = "data length<32 password is empty=false"; + c.data = 2; + c.password = new GoSlice (); + str.p = "pwd"; + c.password.convertString (str); + c.error = skycoin.skycoin.SKY_OK; + cases[2] = c; + + c = new StrTest (); + str = new _GoString_ (); + c.name = "data length=2*32 password is empty=false"; + c.data = 64; + c.password = new GoSlice (); + str.SetString ("9JMkCPphe73NQvGhmab"); + c.password.convertString (str); + c.error = skycoin.skycoin.SKY_OK; + cases[3] = c; + + c = new StrTest (); + str = new _GoString_ (); + c.name = "data length>2*32 password is empty=false"; + c.data = 65; + c.password = new GoSlice (); + str.p = "9JMkCPphe73NQvGhmab"; + c.password.convertString (str); + c.error = skycoin.skycoin.SKY_OK; + cases[4] = c; + + } + + [Test] + public void TestEncrypt () { + FullCase1 (); + + for (int i = 0; i < cases.Length; i++) { + var t = cases[i]; + Console.WriteLine (t.name + " " + i); + var encrypted = new GoSlice (); + var data = new GoSlice (); + var err = skycoin.skycoin.SKY_cipher_RandByte (t.data, data); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_encrypt_Sha256Xor_Encrypt (data, t.password, encrypted); + Assert.AreEqual (t.error, err); + if (t.error == skycoin.skycoin.SKY_OK) { + var n = (sha256XorDataLengthSize + t.data) / sha256XorBlockSize; + var m = (sha256XorDataLengthSize + t.data) % sha256XorBlockSize; + if (m > 0) { + n += 1; + } + var str = new _GoString_ (); + encrypted.getString (str); + Console.WriteLine (str.p); + Console.WriteLine (str.n); + if (utils.IsBase64String (str.p)) { + var rdata = utils.base64Decode (str.p); + var totalEncryptedDataLen = sha256XorBlockSize + sha256XorNonceSize + 32 + n * sha256XorBlockSize; + Assert.AreEqual (rdata.Length, totalEncryptedDataLen, t.name); + } + } + + } + } + public void FullCase2 () { + cases = new StrTest[5]; + var str = new _GoString_ (); + var c = new StrTest (); + c.name = "invalid data length"; + c.error = skycoin.skycoin.SKY_ERROR; + c.data = 32; + c.password = new GoSlice (); + str.p = "pwd"; + c.password.convertString (str); + cases[0] = c; + + str = new _GoString_ (); + c = new StrTest (); + c.name = "invalid checksum"; + c.error = skycoin.skycoin.SKY_ERROR; + c.data = 32; + c.password = new GoSlice (); + str.p = "pwd"; + c.password.convertString (str); + cases[1] = c; + + str = new _GoString_ (); + c = new StrTest (); + c.name = "empty password"; + c.error = skycoin.skycoin.SKY_ErrSHA256orMissingPassword; + c.data = 32; + c.password = new GoSlice (); + str.p = string.Empty; + c.password.convertString (str); + cases[2] = c; + + str = new _GoString_ (); + c = new StrTest (); + c.name = "nil password"; + c.error = skycoin.skycoin.SKY_ErrSHA256orMissingPassword; + c.data = 32; + c.password = new GoSlice (); + str.p = string.Empty; + c.password.convertString (str); + cases[3] = c; + + str = new _GoString_ (); + c = new StrTest (); + c.name = "invalid password"; + c.error = skycoin.skycoin.SKY_ERROR; + c.data = 32; + c.password = new GoSlice (); + str.p = "wrong password"; + c.password.convertString (str); + cases[4] = c; + + } + + [Test] + public void TestDecrypt () { + FullCase2 (); + for (int i = 0; i < cases.Length; i++) { + var tc = cases[i]; + var d = new GoSlice (); + var data = new GoSlice (); + var edata = new GoSlice (); + skycoin.skycoin.SKY_cipher_RandByte (32, data); + skycoin.skycoin.makeEncryptedData (data, 65, tc.password, edata); + var err = skycoin.skycoin.SKY_encrypt_Sha256Xor_Decrypt (edata, tc.password, d); + Assert.AreEqual (err, tc.error, tc.name + " " + i); + if (err == skycoin.skycoin.SKY_OK) { + Assert.AreEqual (d.isEqual (data), 1); + } + } + + for (int i = 0; i < 64; i++) { + var data = new GoSlice (); + var err = skycoin.skycoin.SKY_cipher_RandByte (32, data); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (data.len, 32); + var pwd = new GoSlice (); + var encrypted = new GoSlice (); + var decrypted = new GoSlice (); + var pwdStr = new _GoString_ (); + pwdStr.SetString ("pwd"); + pwd.convertString (pwdStr); + err = skycoin.skycoin.SKY_encrypt_Sha256Xor_Encrypt (data, pwd, encrypted); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_encrypt_Sha256Xor_Decrypt (encrypted, pwd, decrypted); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (data.isEqual (decrypted), 1); + } + } + } +} \ No newline at end of file diff --git a/LibskycoinNetTest/check_cipher_sig.cs b/LibskycoinNetTest/check_cipher_sig.cs new file mode 100644 index 00000000..f5f02677 --- /dev/null +++ b/LibskycoinNetTest/check_cipher_sig.cs @@ -0,0 +1,164 @@ +using System; +using NUnit.Framework; +using skycoin; +using utils; +namespace LibskycoinNetTest { + [TestFixture ()] + public class check_cipher_sig { + bool forceLowS = true; + utils.transutils utils = new transutils (); + [Test] + public void TestSigRecover () { + string[][] vs = new string[2][]; + + vs[0] = new string[] { + "6028b9e3a31c9e725fcbd7d5d16736aaaafcc9bf157dfb4be62bcbcf0969d488", + "036d4a36fa235b8f9f815aa6f5457a607f956a71a035bf0970d8578bf218bb5a", + "9cff3da1a4f86caf3683f865232c64992b5ed002af42b321b8d8a48420680487", + "0", + "56dc5df245955302893d8dda0677cc9865d8011bc678c7803a18b5f6faafec08", + "54b5fbdcd8fac6468dac2de88fadce6414f5f3afbb103753e25161bef77705a6", + }; + + vs[1] = new string[] { + "b470e02f834a3aaafa27bd2b49e07269e962a51410f364e9e195c31351a05e50", + "560978aed76de9d5d781f87ed2068832ed545f2b21bf040654a2daff694c8b09", + "9ce428d58e8e4caf619dc6fc7b2c2c28f0561654d1f80f322c038ad5e67ff8a6", + "1", + "15b7e7d00f024bffcd2e47524bb7b7d3a6b251e23a3a43191ed7f0a418d9a578", + "bf29a25e2d1f32c5afb18b41ae60112723278a8af31275965a6ec1d95334e840", + }; + + var xp = new secp256k1go__XY (); + var public_key = new secp256k1go__XY (); + var sig = skycoin.skycoin.new_Signature_HandlePtr (); + var err = skycoin.skycoin.SKY_secp256k1go_Signature_Create (sig); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var msg = skycoin.skycoin.new_Number_HandlePtr (); + err = skycoin.skycoin.SKY_secp256k1go_Number_Create (msg); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + for (int i = 0; i < vs.Length; i++) { + var v = vs[i]; + var r = skycoin.skycoin.new_Number_HandlePtr (); + var s = skycoin.skycoin.new_Number_HandlePtr (); + err = skycoin.skycoin.SKY_secp256k1go_Signature_GetR (sig, r); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + skycoin.skycoin.SKY_secp256k1go_Number_SetHex (r, v[0]); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_secp256k1go_Signature_GetR (sig, s); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + skycoin.skycoin.SKY_secp256k1go_Number_SetHex (s, v[1]); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + skycoin.skycoin.SKY_secp256k1go_Number_SetHex (msg, v[2]); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var rid = Convert.ToInt64 (v[3]); + skycoin.skycoin.SKY_secp256k1go_Field_SetHex (xp.X, v[4]); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + skycoin.skycoin.SKY_secp256k1go_Field_SetHex (xp.Y, v[5]); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var val = skycoin.skycoin.new_CharPtr (); + skycoin.skycoin.SKY_secp256k1go_Signature_Recover (sig, public_key, msg, rid, val); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.IsTrue (skycoin.skycoin.CharPtr_value (val) == 1); + Assert.AreEqual (skycoin.skycoin.SKY_secp256k1go_Field_Equals (xp.X, public_key.X, val), skycoin.skycoin.SKY_OK, i.ToString ()); + Assert.AreEqual (skycoin.skycoin.SKY_secp256k1go_Field_Equals (xp.Y, public_key.Y, val), skycoin.skycoin.SKY_OK, i.ToString ()); + } + } + + [Test] + public void TestSigVerify () { + var key = new secp256k1go__XY (); + var sig = skycoin.skycoin.new_Signature_HandlePtr (); + var err = skycoin.skycoin.SKY_secp256k1go_Signature_Create (sig); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var msg = skycoin.skycoin.new_Number_HandlePtr (); + err = skycoin.skycoin.SKY_secp256k1go_Number_Create (msg); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var arg = "D474CBF2203C1A55A411EEC4404AF2AFB2FE942C434B23EFE46E9F04DA8433CA"; + err = skycoin.skycoin.SKY_secp256k1go_Number_SetHex (msg, arg); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var r = skycoin.skycoin.new_Number_HandlePtr (); + err = skycoin.skycoin.SKY_secp256k1go_Signature_GetR (sig, r); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + arg = "98F9D784BA6C5C77BB7323D044C0FC9F2B27BAA0A5B0718FE88596CC56681980"; + err = skycoin.skycoin.SKY_secp256k1go_Number_SetHex (r, arg); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var s = skycoin.skycoin.new_Number_HandlePtr (); + err = skycoin.skycoin.SKY_secp256k1go_Signature_GetS (sig, s); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + arg = "E3599D551029336A745B9FB01566624D870780F363356CEE1425ED67D1294480"; + err = skycoin.skycoin.SKY_secp256k1go_Number_SetHex (s, arg); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + arg = "7d709f85a331813f9ae6046c56b3a42737abf4eb918b2e7afee285070e968b93"; + err = skycoin.skycoin.SKY_secp256k1go_Field_SetHex (key.X, arg); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + arg = "26150d1a63b342986c373977b00131950cb5fc194643cad6ea36b5157eba4602"; + err = skycoin.skycoin.SKY_secp256k1go_Field_SetHex (key.Y, arg); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var val = skycoin.skycoin.new_CharPtr (); + err = skycoin.skycoin.SKY_secp256k1go_Signature_Verify (sig, key, msg, val); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.IsTrue (Convert.ToBoolean (skycoin.skycoin.CharPtr_value (val))); + + arg = "2c43a883f4edc2b66c67a7a355b9312a565bb3d33bb854af36a06669e2028377"; + err = skycoin.skycoin.SKY_secp256k1go_Number_SetHex (msg, arg); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_secp256k1go_Signature_GetR (sig, r); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + arg = "6b2fa9344462c958d4a674c2a42fbedf7d6159a5276eb658887e2e1b3915329b"; + err = skycoin.skycoin.SKY_secp256k1go_Number_SetHex (r, arg); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_secp256k1go_Signature_GetS (sig, s); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + arg = "eddc6ea7f190c14a0aa74e41519d88d2681314f011d253665f301425caf86b86"; + err = skycoin.skycoin.SKY_secp256k1go_Number_SetHex (s, arg); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + arg = "02a60d70cfba37177d8239d018185d864b2bdd0caf5e175fd4454cc006fd2d75ac"; + var xy = new GoSlice (); + err = skycoin.skycoin.SKY_base58_String2Hex (arg, xy); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_secp256k1go_XY_ParsePubkey (key, xy, val); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_secp256k1go_Signature_Verify (sig, key, msg, val); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.IsTrue (Convert.ToBoolean (skycoin.skycoin.CharPtr_value (val))); + } + + [Test] + public void TestSigSign () { + var sig = skycoin.skycoin.new_Signature_HandlePtr (); + var msg = skycoin.skycoin.new_Number_HandlePtr (); + var sec = skycoin.skycoin.new_Number_HandlePtr (); + var non = skycoin.skycoin.new_Number_HandlePtr (); + var r = skycoin.skycoin.new_Number_HandlePtr (); + var s = skycoin.skycoin.new_Number_HandlePtr (); + var val = skycoin.skycoin.new_CharPtr (); + skycoin.skycoin.SKY_secp256k1go_Signature_Create (sig); + skycoin.skycoin.SKY_secp256k1go_Number_Create (sec); + skycoin.skycoin.SKY_secp256k1go_Number_Create (msg); + skycoin.skycoin.SKY_secp256k1go_Number_Create (non); + skycoin.skycoin.SKY_secp256k1go_Number_SetHex (sec, "73641C99F7719F57D8F4BEB11A303AFCD190243A51CED8782CA6D3DBE014D146"); + skycoin.skycoin.SKY_secp256k1go_Number_SetHex (sec, "D474CBF2203C1A55A411EEC4404AF2AFB2FE942C434B23EFE46E9F04DA8433CA"); + skycoin.skycoin.SKY_secp256k1go_Number_SetHex (sec, "9E3CD9AB0F32911BFDE39AD155F527192CE5ED1F51447D63C4F154C118DA598E"); + var recid = skycoin.skycoin.new_Gointp (); + var res = skycoin.skycoin.new_Gointp (); + var err = skycoin.skycoin.SKY_secp256k1go_Signature_Sign (sig, sec, msg, non, res, recid); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.Gointp_value (res), 1); + Assert.AreEqual (skycoin.skycoin.Gointp_value (recid), 0); + + skycoin.skycoin.SKY_secp256k1go_Number_SetHex (non, "98f9d784ba6c5c77bb7323d044c0fc9f2b27baa0a5b0718fe88596cc56681980"); + skycoin.skycoin.SKY_secp256k1go_Signature_GetR (sig, r); + err = skycoin.skycoin.SKY_secp256k1go_Number_IsEqual (r, non, val); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + // Assert.IsTrue (Convert.ToBoolean (skycoin.skycoin.CharPtr_value (val))); + err = skycoin.skycoin.SKY_secp256k1go_Number_SetHex (non, "1ca662aaefd6cc958ba4604fea999db133a75bf34c13334dabac7124ff0cfcc1"); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + skycoin.skycoin.SKY_secp256k1go_Signature_GetS (sig, s); + err = skycoin.skycoin.SKY_secp256k1go_Number_IsEqual (s, non, val); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + // Assert.IsTrue (Convert.ToBoolean (skycoin.skycoin.CharPtr_value (val))); + + } + } +} \ No newline at end of file diff --git a/LibskycoinNetTest/check_coin_block.cs b/LibskycoinNetTest/check_coin_block.cs index 2cfbbbdb..b56d978e 100644 --- a/LibskycoinNetTest/check_coin_block.cs +++ b/LibskycoinNetTest/check_coin_block.cs @@ -60,7 +60,10 @@ public void TestNewGenesisBlock () { var Head = new GoSlice (); err = skycoin.skycoin.SKY_coin_BlockHeader_Bytes (pBlock.Head, Head); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.IsTrue (nullHash.getStr ().p == Head.getString ().p); + var strnullHash = nullHash.getStr (); + var strHead = new _GoString_ (); + Head.getString (strHead); + Assert.AreEqual (strnullHash.p, strHead.p); // Assert.AreEqual (genTime, pBlock.Head.Time); Assert.AreEqual (0, pBlock.Head.BkSeq); Assert.AreEqual (0, pBlock.Head.Version); diff --git a/LibskycoinNetTest/check_coin_outputs.cs b/LibskycoinNetTest/check_coin_outputs.cs index c95c5759..a1c3589d 100644 --- a/LibskycoinNetTest/check_coin_outputs.cs +++ b/LibskycoinNetTest/check_coin_outputs.cs @@ -338,14 +338,14 @@ public void TestUxArrayHashArray () { public void TestUxArrayHasDupes () { var uxa = new coin_UxOutArray (); skycoin.skycoin.makeUxArray (uxa, 4); - var hasDupes = skycoin.skycoin.new_charp (); + var hasDupes = skycoin.skycoin.new_CharPtr(); var err = skycoin.skycoin.SKY_coin_UxArray_HasDupes (uxa, hasDupes); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.charp_value (hasDupes), 0); + Assert.AreEqual (skycoin.skycoin.CharPtr_value(hasDupes), 0); uxa.setAt (0, uxa.getAt (1)); err = skycoin.skycoin.SKY_coin_UxArray_HasDupes (uxa, hasDupes); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.charp_value (hasDupes), 1); + Assert.AreEqual (skycoin.skycoin.CharPtr_value (hasDupes), 1); } [Test] @@ -416,13 +416,13 @@ public void TestUxArrayLess () { var err = skycoin.skycoin.SKY_coin_UxArray_Hashes (uxa, hashes); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); Assert.AreEqual (hashes.count, uxa.count); - var less = skycoin.skycoin.new_charp (); - var less2 = skycoin.skycoin.new_charp (); + var less = skycoin.skycoin.new_CharPtr (); + var less2 = skycoin.skycoin.new_CharPtr (); err = skycoin.skycoin.SKY_coin_UxArray_Less (uxa, 0, 1, less); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); err = skycoin.skycoin.SKY_coin_UxArray_Less (uxa, 1, 0, less2); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreNotEqual (skycoin.skycoin.charp_value (less), skycoin.skycoin.charp_value (less2)); + Assert.AreNotEqual (skycoin.skycoin.CharPtr_value (less), skycoin.skycoin.CharPtr_value (less2)); } [Test] diff --git a/LibskycoinNetTest/check_coin_transactions.cs b/LibskycoinNetTest/check_coin_transactions.cs index 04c7c24f..23e436a7 100644 --- a/LibskycoinNetTest/check_coin_transactions.cs +++ b/LibskycoinNetTest/check_coin_transactions.cs @@ -368,7 +368,9 @@ public void TestTransactionUpdateHeader () { tx.setInnerHash (new cipher_SHA256 ()); err = skycoin.skycoin.SKY_coin_Transaction_UpdateHeader (handle); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - h1.assignFrom (tx.getInnerHash ()); + var arg = new cipher_SHA256 (); + arg = tx.getInnerHash (); + h1.assignFrom (arg); err = skycoin.skycoin.SKY_coin_Transaction_HashInner (handle, h2); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); Assert.AreEqual (h1.isEqual (new cipher_SHA256 ()), 0); @@ -872,17 +874,17 @@ public void TestVerifyTransactionHoursSpending () { } } - [Test] - public void TestTransactionsFees () { - var fees = new Fee_Calculator (); - var txns = skycoin.skycoin.new_Transactions__Handlep (); - skycoin.skycoin.makeTransactions (4, txns); - var fee = skycoin.skycoin.new_GoUint64p (); - var err = skycoin.skycoin.SKY_coin_Transactions_Fees (txns, fees, fee); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Console.WriteLine (skycoin.skycoin.GoUint64p_value (fee)); - - } + // [Test] + // public void TestTransactionsFees () { + // var fees = new Fee_Calculator (); + // var txns = skycoin.skycoin.new_Transactions__Handlep (); + // skycoin.skycoin.makeTransactions (4, txns); + // var fee = skycoin.skycoin.new_GoUint64p (); + // var err = skycoin.skycoin.SKY_coin_Transactions_Fees (txns, fees, fee); + // Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + // Console.WriteLine (skycoin.skycoin.GoUint64p_value (fee)); + + // } } } \ No newline at end of file diff --git a/LibskycoinNetTest/transutils.cs b/LibskycoinNetTest/transutils.cs index 0405f8bd..1904fdde 100644 --- a/LibskycoinNetTest/transutils.cs +++ b/LibskycoinNetTest/transutils.cs @@ -1,6 +1,7 @@ using System; using NUnit.Framework; using skycoin; +using System.Text.RegularExpressions; namespace utils { public class transutils { public cipher__Address makeAddress () { @@ -137,6 +138,44 @@ public cipher_SHA256 RandSHA256 () { Assert.AreEqual (err, skycoin.skycoin.SKY_OK); return sha; } - } + public GoSlice RandBytes (int n) { + var b = new GoSlice (); + var err = skycoin.skycoin.SKY_cipher_RandByte (n, b); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + return b; + } + + public bool IsBase64String (string s) { + s = s.Trim (); + return (s.Length % 4 == 0) && Regex.IsMatch (s, @"^[a-zA-Z0-9\+/]*={0,3}$", RegexOptions.None); + + } + public string base64Encode (string data) { + try { + byte[] encData_byte = new byte[data.Length]; + encData_byte = System.Text.Encoding.ASCII.GetBytes (data); + string encodedData = Convert.ToBase64String (encData_byte); + return encodedData; + } catch (Exception e) { + throw new Exception ("Error in base64Encode " + e.Message); + } + } + + public string base64Decode (string data) { + try { + System.Text.ASCIIEncoding encoder = new System.Text.ASCIIEncoding (); + System.Text.Decoder utf8Decode = encoder.GetDecoder (); + + byte[] todecode_byte = Convert.FromBase64String (data); + int charCount = utf8Decode.GetCharCount (todecode_byte, 0, todecode_byte.Length); + char[] decoded_char = new char[charCount]; + utf8Decode.GetChars (todecode_byte, 0, todecode_byte.Length, decoded_char, 0); + string result = new String (decoded_char); + return result; + } catch (Exception e) { + throw new Exception ("Error in base64Decode " + e.Message); + } + } + } } \ No newline at end of file diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index ab74ca78..57013f32 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit ab74ca781280686194fe5d008dfc90d7514a70d5 +Subproject commit 57013f3210a4342ef96c6cc49f0ca4f4e9b907e9 From ad7e225492f536943533482859707dd2a968be4c Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Wed, 10 Oct 2018 14:14:52 -0400 Subject: [PATCH 47/73] [test] Added test cipher.bitcoin Tests run: 93, Errors: 0, Failures: 0, Inconclusive: 0, Time: 15,9708025 seconds Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0 --- LibskycoinNet/LibskycoinNet.csproj | 3 +- LibskycoinNet/skycoin/GoSlice.cs | 4 + ..._p_ReadableUnspentOutputsSummary_Handle.cs | 29 + LibskycoinNet/skycoin/SWIGTYPE_p_ulong.cs | 29 + LibskycoinNet/skycoin/cipher_PubKey.cs | 10 + .../skycoin/cipher__BitcoinAddress.cs | 74 + LibskycoinNet/skycoin/skycoin.cs | 267 ++- LibskycoinNet/skycoin/skycoinPINVOKE.cs | 323 ++-- LibskycoinNet/skycoin/skycoinnet_wrap.c | 1483 +++++++++-------- LibskycoinNetTest/LibskycoinNetTest.csproj | 3 +- LibskycoinNetTest/check_cipher_address.cs | 62 +- LibskycoinNetTest/check_cipher_bitcoin.cs | 188 +++ LibskycoinNetTest/check_cipher_crypto.cs | 127 +- gopath/src/github.com/skycoin/skycoin | 2 +- swig/include/libskycoin.h | 88 +- 15 files changed, 1555 insertions(+), 1137 deletions(-) create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_ReadableUnspentOutputsSummary_Handle.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_ulong.cs create mode 100644 LibskycoinNet/skycoin/cipher__BitcoinAddress.cs create mode 100644 LibskycoinNetTest/check_cipher_bitcoin.cs diff --git a/LibskycoinNet/LibskycoinNet.csproj b/LibskycoinNet/LibskycoinNet.csproj index 96207d17..79ea8b51 100644 --- a/LibskycoinNet/LibskycoinNet.csproj +++ b/LibskycoinNet/LibskycoinNet.csproj @@ -110,7 +110,6 @@ - @@ -135,6 +134,8 @@ + + diff --git a/LibskycoinNet/skycoin/GoSlice.cs b/LibskycoinNet/skycoin/GoSlice.cs index ad5bd9ca..2e701716 100644 --- a/LibskycoinNet/skycoin/GoSlice.cs +++ b/LibskycoinNet/skycoin/GoSlice.cs @@ -50,6 +50,10 @@ public void convertString(_GoString_ data) { if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } + public void setAtChar(char p, ulong i) { + skycoinPINVOKE.GoSlice_setAtChar(swigCPtr, p, i); + } + public void getString(_GoString_ arg0) { skycoinPINVOKE.GoSlice_getString(swigCPtr, _GoString_.getCPtr(arg0)); } diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_ReadableUnspentOutputsSummary_Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_ReadableUnspentOutputsSummary_Handle.cs new file mode 100644 index 00000000..c98835d2 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_ReadableUnspentOutputsSummary_Handle.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_ReadableUnspentOutputsSummary_Handle { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_ReadableUnspentOutputsSummary_Handle(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_ReadableUnspentOutputsSummary_Handle() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_ReadableUnspentOutputsSummary_Handle obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_ulong.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_ulong.cs new file mode 100644 index 00000000..64bf6e24 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_ulong.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_ulong { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_ulong(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_ulong() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_ulong obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/cipher_PubKey.cs b/LibskycoinNet/skycoin/cipher_PubKey.cs index a35adacb..46c4117e 100644 --- a/LibskycoinNet/skycoin/cipher_PubKey.cs +++ b/LibskycoinNet/skycoin/cipher_PubKey.cs @@ -53,6 +53,16 @@ public void assignTo(cipher_PubKey data) { skycoinPINVOKE.cipher_PubKey_assignTo(swigCPtr, cipher_PubKey.getCPtr(data)); } + public void assignSlice(GoSlice slice) { + skycoinPINVOKE.cipher_PubKey_assignSlice(swigCPtr, GoSlice.getCPtr(slice)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + + public GoSlice toSlice() { + GoSlice ret = new GoSlice(skycoinPINVOKE.cipher_PubKey_toSlice(swigCPtr), true); + return ret; + } + public SWIGTYPE_p_unsigned_char data { set { skycoinPINVOKE.set_cipher_PubKey_data(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); diff --git a/LibskycoinNet/skycoin/cipher__BitcoinAddress.cs b/LibskycoinNet/skycoin/cipher__BitcoinAddress.cs new file mode 100644 index 00000000..99b0313a --- /dev/null +++ b/LibskycoinNet/skycoin/cipher__BitcoinAddress.cs @@ -0,0 +1,74 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class cipher__BitcoinAddress : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal cipher__BitcoinAddress(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(cipher__BitcoinAddress obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~cipher__BitcoinAddress() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_cipher__BitcoinAddress(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public int isEqual(cipher__BitcoinAddress a) { + int ret = skycoinPINVOKE.cipher__BitcoinAddress_isEqual(swigCPtr, cipher__BitcoinAddress.getCPtr(a)); + return ret; + } + + public byte Version { + set { + skycoinPINVOKE.set_cipher__BitcoinAddress_Version(swigCPtr, value); + } + get { + byte ret = skycoinPINVOKE.get_cipher__BitcoinAddress_Version(swigCPtr); + return ret; + } + } + + public SWIGTYPE_p_GoUint8_ Key { + set { + skycoinPINVOKE.set_cipher__BitcoinAddress_Key(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.get_cipher__BitcoinAddress_Key(swigCPtr); + SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); + return ret; + } + } + + public cipher__BitcoinAddress() : this(skycoinPINVOKE.new_cipher__BitcoinAddress(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs index 3183a79d..08a4e065 100644 --- a/LibskycoinNet/skycoin/skycoin.cs +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -786,11 +786,6 @@ public static uint SKY_cipher_VerifySignature(cipher_PubKey p, cipher_Sig sig, c return ret; } - public static uint SKY_cipher_TestSecKeyHash(cipher_SecKey s, cipher_SHA256 h) { - uint ret = skycoinPINVOKE.SKY_cipher_TestSecKeyHash__SWIG_0(cipher_SecKey.getCPtr(s), cipher_SHA256.getCPtr(h)); - return ret; - } - public static uint SKY_cipher_SHA256_Set(cipher_SHA256 h, GoSlice s) { uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Set__SWIG_0(cipher_SHA256.getCPtr(h), GoSlice.getCPtr(s)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); @@ -861,11 +856,6 @@ public static uint SKY_cipher_GenerateDeterministicKeyPairsSeed(GoSlice seed, lo return ret; } - public static uint SKY_cipher_PubKeySlice_Swap(cipher_PubKeys __in_pubKeys, long p1, long p2) { - uint ret = skycoinPINVOKE.SKY_cipher_PubKeySlice_Swap__SWIG_0(cipher_PubKeys.getCPtr(__in_pubKeys), p1, p2); - return ret; - } - public static uint SKY_coin_VerifyTransactionCoinsSpending(coin_UxOutArray __uxIn, coin_UxOutArray __uxOut) { uint ret = skycoinPINVOKE.SKY_coin_VerifyTransactionCoinsSpending__SWIG_0(coin_UxOutArray.getCPtr(__uxIn), coin_UxOutArray.getCPtr(__uxOut)); return ret; @@ -1001,6 +991,11 @@ public static uint SKY_coin_GetBlockObject(SWIGTYPE_p_Block__Handle handle, coin return ret; } + public static uint SKY_cipher_CheckSecKeyHash(cipher_SecKey s, cipher_SHA256 sha) { + uint ret = skycoinPINVOKE.SKY_cipher_CheckSecKeyHash__SWIG_0(cipher_SecKey.getCPtr(s), cipher_SHA256.getCPtr(sha)); + return ret; + } + public static uint SKY_coin_NewBlock(SWIGTYPE_p_Block__Handle p0, ulong p1, cipher_SecKey p2, SWIGTYPE_p_Transactions__Handle p3, SWIGTYPE_p_FeeCalculator p4, SWIGTYPE_p_Block__Handle p5) { var tmpp2 = cipher_SecKey.getCPtr (p2); { @@ -1266,8 +1261,8 @@ public static uint SKY_api_Client_BlockBySeq(SWIGTYPE_p_Client__Handle p0, ulong return ret; } - public static uint SKY_api_Client_Blocks(SWIGTYPE_p_Client__Handle p0, ulong p1, ulong p2, SWIGTYPE_p_Handle p3) { - uint ret = skycoinPINVOKE.SKY_api_Client_Blocks(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1, p2, SWIGTYPE_p_Handle.getCPtr(p3)); + public static uint SKY_api_Client_Blocks(SWIGTYPE_p_Client__Handle p0, GoSlice p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_Blocks(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -1411,12 +1406,12 @@ public static uint SKY_api_Client_NewSeed(SWIGTYPE_p_Client__Handle p0, long p1, } } - public static uint SKY_api_Client_GetWalletSeed(SWIGTYPE_p_Client__Handle p0, string p1, string p2, _GoString_ p3) { + public static uint SKY_api_Client_WalletSeed(SWIGTYPE_p_Client__Handle p0, string p1, string p2, _GoString_ p3) { var tmpp1 = p1; var tmpp2 = p2; var tmpp3 = _GoString_.getCPtr (p3); { - uint ret = skycoinPINVOKE.SKY_api_Client_GetWalletSeed(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1, tmpp2, tmpp3); + uint ret = skycoinPINVOKE.SKY_api_Client_WalletSeed(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1, tmpp2, tmpp3); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -2088,8 +2083,8 @@ public static uint SKY_webrpc_Client_GetAddressUxOuts(SWIGTYPE_p_WebRpcClient__H return ret; } - public static uint SKY_webrpc_Client_GetBlocks(SWIGTYPE_p_WebRpcClient__Handle p0, ulong p1, ulong p2, GoSlice p3) { - uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetBlocks(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), p1, p2, GoSlice.getCPtr (p3)); + public static uint SKY_webrpc_Client_GetBlocksInRange(SWIGTYPE_p_WebRpcClient__Handle p0, ulong p1, ulong p2, GoSlice p3) { + uint ret = skycoinPINVOKE.SKY_webrpc_Client_GetBlocksInRange(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), p1, p2, GoSlice.getCPtr (p3)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -2190,21 +2185,6 @@ public static uint SKY_coin_Int64ToUint64(long p0, SWIGTYPE_p_unsigned_long_long return ret; } - public static uint SKY_cipher_PubKeySlice_Len(GoSlice p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_cipher_PubKeySlice_Len(GoSlice.getCPtr (p0), SWIGTYPE_p_long_long.getCPtr(p1)); - return ret; - } - - public static uint SKY_cipher_PubKeySlice_Less(GoSlice p0, long p1, long p2, SWIGTYPE_p_unsigned_char p3) { - uint ret = skycoinPINVOKE.SKY_cipher_PubKeySlice_Less(GoSlice.getCPtr (p0), p1, p2, SWIGTYPE_p_unsigned_char.getCPtr(p3)); - return ret; - } - - public static uint SKY_cipher_PubKeySlice_Swap(GoSlice p0, long p1, long p2) { - uint ret = skycoinPINVOKE.SKY_cipher_PubKeySlice_Swap__SWIG_1(GoSlice.getCPtr (p0), p1, p2); - return ret; - } - public static uint SKY_cipher_RandByte(long p0, GoSlice p1) { uint ret = skycoinPINVOKE.SKY_cipher_RandByte(p0, GoSlice.getCPtr (p1)); return ret; @@ -2264,11 +2244,11 @@ public static uint SKY_cipher_PubKey_Hex(cipher_PubKey p0, _GoString_ p1) { } } - public static uint SKY_cipher_PubKey_ToAddressHash(cipher_PubKey p0, cipher_Ripemd160 p1) { + public static uint SKY_cipher_PubKeyRipemd160(cipher_PubKey p0, cipher_Ripemd160 p1) { var tmpp0 = cipher_PubKey.getCPtr (p0); var tmpp1 = cipher_Ripemd160.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_cipher_PubKey_ToAddressHash(tmpp0, tmpp1); + uint ret = skycoinPINVOKE.SKY_cipher_PubKeyRipemd160(tmpp0, tmpp1); return ret; } } @@ -2382,6 +2362,15 @@ public static uint SKY_cipher_VerifySignature(cipher_PubKey p0, cipher_Sig p1, c } } + public static uint SKY_cipher_GenerateKeyPair(cipher_PubKey p0, cipher_SecKey p1) { +var tmpp0 = cipher_PubKey.getCPtr (p0); +var tmpp1 = cipher_SecKey.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_cipher_GenerateKeyPair(tmpp0, tmpp1); + return ret; + } + } + public static uint SKY_cipher_GenerateDeterministicKeyPair(GoSlice p0, cipher_PubKey p1, cipher_SecKey p2) { var tmpp1 = cipher_PubKey.getCPtr (p1); var tmpp2 = cipher_SecKey.getCPtr (p2); @@ -2414,28 +2403,19 @@ public static uint SKY_cipher_GenerateDeterministicKeyPairsSeed(GoSlice p0, long return ret; } - public static uint SKY_cipher_TestSecKey(cipher_SecKey p0) { + public static uint SKY_cipher_CheckSecKey(cipher_SecKey p0) { var tmpp0 = cipher_SecKey.getCPtr (p0); { - uint ret = skycoinPINVOKE.SKY_cipher_TestSecKey(tmpp0); + uint ret = skycoinPINVOKE.SKY_cipher_CheckSecKey(tmpp0); return ret; } } - public static uint SKY_cipher_TestSecKeyHash(cipher_SecKey p0, cipher_SecKey p1) { + public static uint SKY_cipher_CheckSecKeyHash(cipher_SecKey p0, cipher_SecKey p1) { var tmpp0 = cipher_SecKey.getCPtr (p0); var tmpp1 = cipher_SecKey.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_cipher_TestSecKeyHash__SWIG_1(tmpp0, tmpp1); - return ret; - } - } - - public static uint SKY_cipher_GenerateKeyPair(cipher_PubKey p0, cipher_SecKey p1) { -var tmpp0 = cipher_PubKey.getCPtr (p0); -var tmpp1 = cipher_SecKey.getCPtr (p1); - { - uint ret = skycoinPINVOKE.SKY_cipher_GenerateKeyPair(tmpp0, tmpp1); + uint ret = skycoinPINVOKE.SKY_cipher_CheckSecKeyHash__SWIG_1(tmpp0, tmpp1); return ret; } } @@ -2645,24 +2625,6 @@ public static uint SKY_wallet_CreateAddresses(string p0, string p1, long p2, byt } } - public static uint SKY_wallet_GetSkycoinWalletEntry(cipher_PubKey p0, cipher_SecKey p1, SWIGTYPE_p_ReadableEntry__Handle p2) { -var tmpp0 = cipher_PubKey.getCPtr (p0); -var tmpp1 = cipher_SecKey.getCPtr (p1); - { - uint ret = skycoinPINVOKE.SKY_wallet_GetSkycoinWalletEntry(tmpp0, tmpp1, SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p2)); - return ret; - } - } - - public static uint SKY_wallet_GetBitcoinWalletEntry(cipher_PubKey p0, cipher_SecKey p1, SWIGTYPE_p_ReadableEntry__Handle p2) { -var tmpp0 = cipher_PubKey.getCPtr (p0); -var tmpp1 = cipher_SecKey.getCPtr (p1); - { - uint ret = skycoinPINVOKE.SKY_wallet_GetBitcoinWalletEntry(tmpp0, tmpp1, SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p2)); - return ret; - } - } - public static uint SKY_secp256k1go_XYZ_Print(secp256k1go__XYZ p0, string p1) { var tmpp1 = p1; { @@ -2837,14 +2799,6 @@ public static uint SKY_cipher_AddressFromSecKey(cipher_SecKey p0, cipher__Addres } } - public static uint SKY_cipher_BitcoinDecodeBase58Address(string p0, cipher__Address p1) { -var tmpp0 = p0; - { - uint ret = skycoinPINVOKE.SKY_cipher_BitcoinDecodeBase58Address(tmpp0, cipher__Address.getCPtr(p1)); - return ret; - } - } - public static uint SKY_cipher_Address_Null(cipher__Address p0, SWIGTYPE_p_unsigned_char p1) { uint ret = skycoinPINVOKE.SKY_cipher_Address_Null(cipher__Address.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); return ret; @@ -2855,11 +2809,6 @@ public static uint SKY_cipher_Address_Bytes(cipher__Address p0, GoSlice p1) { return ret; } - public static uint SKY_cipher_Address_BitcoinBytes(cipher__Address p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_cipher_Address_BitcoinBytes(cipher__Address.getCPtr(p0), GoSlice.getCPtr (p1)); - return ret; - } - public static uint SKY_cipher_Address_Verify(cipher__Address p0, cipher_PubKey p1) { var tmpp1 = cipher_PubKey.getCPtr (p1); { @@ -2876,57 +2825,11 @@ public static uint SKY_cipher_Address_String(cipher__Address p0, _GoString_ p1) } } - public static uint SKY_cipher_Address_BitcoinString(cipher__Address p0, _GoString_ p1) { -var tmpp1 = _GoString_.getCPtr (p1); - { - uint ret = skycoinPINVOKE.SKY_cipher_Address_BitcoinString(cipher__Address.getCPtr(p0), tmpp1); - return ret; - } - } - public static uint SKY_cipher_Address_Checksum(cipher__Address p0, SWIGTYPE_p_a_4__GoUint8_ p1) { uint ret = skycoinPINVOKE.SKY_cipher_Address_Checksum(cipher__Address.getCPtr(p0), SWIGTYPE_p_a_4__GoUint8_.getCPtr(p1)); return ret; } - public static uint SKY_cipher_Address_BitcoinChecksum(cipher__Address p0, SWIGTYPE_p_a_4__GoUint8_ p1) { - uint ret = skycoinPINVOKE.SKY_cipher_Address_BitcoinChecksum(cipher__Address.getCPtr(p0), SWIGTYPE_p_a_4__GoUint8_.getCPtr(p1)); - return ret; - } - - public static uint SKY_cipher_BitcoinAddressFromPubkey(cipher_PubKey p0, _GoString_ p1) { -var tmpp0 = cipher_PubKey.getCPtr (p0); -var tmpp1 = _GoString_.getCPtr (p1); - { - uint ret = skycoinPINVOKE.SKY_cipher_BitcoinAddressFromPubkey(tmpp0, tmpp1); - return ret; - } - } - - public static uint SKY_cipher_BitcoinWalletImportFormatFromSeckey(cipher_SecKey p0, _GoString_ p1) { -var tmpp0 = cipher_SecKey.getCPtr (p0); -var tmpp1 = _GoString_.getCPtr (p1); - { - uint ret = skycoinPINVOKE.SKY_cipher_BitcoinWalletImportFormatFromSeckey(tmpp0, tmpp1); - return ret; - } - } - - public static uint SKY_cipher_BitcoinAddressFromBytes(GoSlice p0, cipher__Address p1) { - uint ret = skycoinPINVOKE.SKY_cipher_BitcoinAddressFromBytes(GoSlice.getCPtr(p0), cipher__Address.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_cipher_SecKeyFromWalletImportFormat(string p0, cipher_SecKey p1) { -var tmpp0 = p0; -var tmpp1 = cipher_SecKey.getCPtr (p1); - { - uint ret = skycoinPINVOKE.SKY_cipher_SecKeyFromWalletImportFormat(tmpp0, tmpp1); - return ret; - } - } - public static uint SKY_JsonEncode_Handle(SWIGTYPE_p_Handle p0, _GoString_ p1) { var tmpp1 = _GoString_.getCPtr (p1); { @@ -3480,17 +3383,6 @@ public static uint SKY_apputil_PrintProgramStatus() { return ret; } - public static uint SKY_cert_CreateCertIfNotExists(string p0, string p1, string p2, string p3) { -var tmpp0 = p0; -var tmpp1 = p1; -var tmpp2 = p2; -var tmpp3 = p3; - { - uint ret = skycoinPINVOKE.SKY_cert_CreateCertIfNotExists(tmpp0, tmpp1, tmpp2, tmpp3); - return ret; - } - } - public static uint SKY_fee_VerifyTransactionFee(SWIGTYPE_p_Transaction__Handle p0, ulong p1) { uint ret = skycoinPINVOKE.SKY_fee_VerifyTransactionFee(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); @@ -3642,17 +3534,91 @@ public static uint SKY_file_DetermineResourcePath(string p0, string p1, string p } } - public static uint SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_WebRpcClient__Handle p0, string p1, SWIGTYPE_p_ReadableOutputSet_Handle p2) { + public static uint SKY_cipher_DecodeBase58BitcoinAddress(string p0, cipher__BitcoinAddress p1) { +var tmpp0 = p0; + { + uint ret = skycoinPINVOKE.SKY_cipher_DecodeBase58BitcoinAddress(tmpp0, cipher__BitcoinAddress.getCPtr(p1)); + return ret; + } + } + + public static void SKY_cipher_BitcoinAddressFromPubKey(cipher_PubKey p0, cipher__BitcoinAddress p1) { +var tmpp0 = cipher_PubKey.getCPtr (p0); + { + skycoinPINVOKE.SKY_cipher_BitcoinAddressFromPubKey(tmpp0, cipher__BitcoinAddress.getCPtr(p1)); + } + } + + public static uint SKY_cipher_BitcoinAddressFromSecKey(cipher_SecKey p0, cipher__BitcoinAddress p1) { +var tmpp0 = cipher_SecKey.getCPtr (p0); + { + uint ret = skycoinPINVOKE.SKY_cipher_BitcoinAddressFromSecKey(tmpp0, cipher__BitcoinAddress.getCPtr(p1)); + return ret; + } + } + + public static void SKY_cipher_BitcoinWalletImportFormatFromSeckey(cipher_SecKey p0, _GoString_ p1) { +var tmpp0 = cipher_SecKey.getCPtr (p0); +var tmpp1 = _GoString_.getCPtr (p1); + { + skycoinPINVOKE.SKY_cipher_BitcoinWalletImportFormatFromSeckey(tmpp0, tmpp1); + } + } + + public static uint SKY_cipher_BitcoinAddressFromBytes(GoSlice p0, cipher__BitcoinAddress p1) { + uint ret = skycoinPINVOKE.SKY_cipher_BitcoinAddressFromBytes(GoSlice.getCPtr(p0), cipher__BitcoinAddress.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_cipher_SecKeyFromBitcoinWalletImportFormat(string p0, cipher_SecKey p1) { +var tmpp0 = p0; +var tmpp1 = cipher_SecKey.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_cipher_SecKeyFromBitcoinWalletImportFormat(tmpp0, tmpp1); + return ret; + } + } + + public static byte SKY_cipher_BitcoinAddress_Null(cipher__BitcoinAddress p0) { + byte ret = skycoinPINVOKE.SKY_cipher_BitcoinAddress_Null(cipher__BitcoinAddress.getCPtr(p0)); + return ret; + } + + public static void SKY_cipher_BitcoinAddress_Bytes(cipher__BitcoinAddress p0, GoSlice p1) { + skycoinPINVOKE.SKY_cipher_BitcoinAddress_Bytes(cipher__BitcoinAddress.getCPtr(p0), GoSlice.getCPtr (p1)); + } + + public static uint SKY_cipher_BitcoinAddress_Verify(cipher__BitcoinAddress p0, cipher_PubKey p1) { +var tmpp1 = cipher_PubKey.getCPtr (p1); + { + uint ret = skycoinPINVOKE.SKY_cipher_BitcoinAddress_Verify(cipher__BitcoinAddress.getCPtr(p0), tmpp1); + return ret; + } + } + + public static void SKY_cipher_BitcoinAddress_String(cipher__BitcoinAddress p0, _GoString_ p1) { +var tmpp1 = _GoString_.getCPtr (p1); + { + skycoinPINVOKE.SKY_cipher_BitcoinAddress_String(cipher__BitcoinAddress.getCPtr(p0), tmpp1); + } + } + + public static void SKY_cipher_BitcoinAddress_Checksum(cipher__BitcoinAddress p0, SWIGTYPE_p_a_4__GoUint8_ p1) { + skycoinPINVOKE.SKY_cipher_BitcoinAddress_Checksum(cipher__BitcoinAddress.getCPtr(p0), SWIGTYPE_p_a_4__GoUint8_.getCPtr(p1)); + } + + public static uint SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_WebRpcClient__Handle p0, string p1, SWIGTYPE_p_ReadableUnspentOutputsSummary_Handle p2) { var tmpp1 = p1; { - uint ret = skycoinPINVOKE.SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), tmpp1, SWIGTYPE_p_ReadableOutputSet_Handle.getCPtr(p2)); + uint ret = skycoinPINVOKE.SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), tmpp1, SWIGTYPE_p_ReadableUnspentOutputsSummary_Handle.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } - public static uint SKY_cli_GetWalletOutputs(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_Wallet__Handle p1, SWIGTYPE_p_UnspentOutputsSummary_Handle p2) { - uint ret = skycoinPINVOKE.SKY_cli_GetWalletOutputs(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_Wallet__Handle.getCPtr(p1), SWIGTYPE_p_UnspentOutputsSummary_Handle.getCPtr(p2)); + public static uint SKY_cli_GetWalletOutputs(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_Wallet__Handle p1, SWIGTYPE_p_ReadableUnspentOutputsSummary_Handle p2) { + uint ret = skycoinPINVOKE.SKY_cli_GetWalletOutputs(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_Wallet__Handle.getCPtr(p1), SWIGTYPE_p_ReadableUnspentOutputsSummary_Handle.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -4224,6 +4190,8 @@ public static int b64_decodef(string InFile, string OutFile) { public static readonly int SKY_OK = skycoinPINVOKE.get_SKY_OK(); public static readonly int SKY_ERROR = skycoinPINVOKE.get_SKY_ERROR(); + public static readonly int SKY_BAD_HANDLE = skycoinPINVOKE.get_SKY_BAD_HANDLE(); + public static readonly int SKY_API_LOCKED = skycoinPINVOKE.get_SKY_API_LOCKED(); public static readonly int SKY_PKG_API = skycoinPINVOKE.get_SKY_PKG_API(); public static readonly int SKY_PKG_CIPHER = skycoinPINVOKE.get_SKY_PKG_CIPHER(); public static readonly int SKY_PKG_CLI = skycoinPINVOKE.get_SKY_PKG_CLI(); @@ -4235,6 +4203,7 @@ public static int b64_decodef(string InFile, string OutFile) { public static readonly int SKY_PKG_UTIL = skycoinPINVOKE.get_SKY_PKG_UTIL(); public static readonly int SKY_PKG_VISOR = skycoinPINVOKE.get_SKY_PKG_VISOR(); public static readonly int SKY_PKG_WALLET = skycoinPINVOKE.get_SKY_PKG_WALLET(); + public static readonly int SKY_PKG_LIBCGO = skycoinPINVOKE.get_SKY_PKG_LIBCGO(); public static readonly int SKY_ErrAddressInvalidLength = skycoinPINVOKE.get_SKY_ErrAddressInvalidLength(); public static readonly int SKY_ErrAddressInvalidChecksum = skycoinPINVOKE.get_SKY_ErrAddressInvalidChecksum(); public static readonly int SKY_ErrAddressInvalidVersion = skycoinPINVOKE.get_SKY_ErrAddressInvalidVersion(); @@ -4271,7 +4240,23 @@ public static int b64_decodef(string InFile, string OutFile) { public static readonly int SKY_ErrNullPubKeyFromSecKey = skycoinPINVOKE.get_SKY_ErrNullPubKeyFromSecKey(); public static readonly int SKY_ErrInvalidDerivedPubKeyFromSecKey = skycoinPINVOKE.get_SKY_ErrInvalidDerivedPubKeyFromSecKey(); public static readonly int SKY_ErrInvalidPubKeyFromHash = skycoinPINVOKE.get_SKY_ErrInvalidPubKeyFromHash(); - public static readonly int SKY_ErrPubKeyFromSecKeyMissmatch = skycoinPINVOKE.get_SKY_ErrPubKeyFromSecKeyMissmatch(); + public static readonly int SKY_ErrPubKeyFromSecKeyMismatch = skycoinPINVOKE.get_SKY_ErrPubKeyFromSecKeyMismatch(); + public static readonly int SKY_ErrInvalidLength = skycoinPINVOKE.get_SKY_ErrInvalidLength(); + public static readonly int SKY_ErrBitcoinWIFInvalidFirstByte = skycoinPINVOKE.get_SKY_ErrBitcoinWIFInvalidFirstByte(); + public static readonly int SKY_ErrBitcoinWIFInvalidSuffix = skycoinPINVOKE.get_SKY_ErrBitcoinWIFInvalidSuffix(); + public static readonly int SKY_ErrBitcoinWIFInvalidChecksum = skycoinPINVOKE.get_SKY_ErrBitcoinWIFInvalidChecksum(); + public static readonly int SKY_ErrEmptySeed = skycoinPINVOKE.get_SKY_ErrEmptySeed(); + public static readonly int SKY_ErrInvalidSig = skycoinPINVOKE.get_SKY_ErrInvalidSig(); + public static readonly int SKY_ErrSHA256orMissingPassword = skycoinPINVOKE.get_SKY_ErrSHA256orMissingPassword(); + public static readonly int SKY_ErrLenghtDataOverflowMaxUint32 = skycoinPINVOKE.get_SKY_ErrLenghtDataOverflowMaxUint32(); + public static readonly int SKY_ErrInvalidChecksumLength = skycoinPINVOKE.get_SKY_ErrInvalidChecksumLength(); + public static readonly int SKY_ErrInvalidDataChecksumNotMatched = skycoinPINVOKE.get_SKY_ErrInvalidDataChecksumNotMatched(); + public static readonly int SKY_ErrInvalidNonceLength = skycoinPINVOKE.get_SKY_ErrInvalidNonceLength(); + public static readonly int SKY_ErrInvalidBlockSizeMultiple32Bytes = skycoinPINVOKE.get_SKY_ErrInvalidBlockSizeMultiple32Bytes(); + public static readonly int SKY_ErrReadDataHashFailedLength = skycoinPINVOKE.get_SKY_ErrReadDataHashFailedLength(); + public static readonly int SKY_ErrSHA256orInvalidPassword = skycoinPINVOKE.get_SKY_ErrSHA256orInvalidPassword(); + public static readonly int SKY_ErrReadDataLengthFailed = skycoinPINVOKE.get_SKY_ErrReadDataLengthFailed(); + public static readonly int SKY_ErrInvalidDataLength = skycoinPINVOKE.get_SKY_ErrInvalidDataLength(); public static readonly int SKY_ErrTemporaryInsufficientBalance = skycoinPINVOKE.get_SKY_ErrTemporaryInsufficientBalance(); public static readonly int SKY_ErrAddress = skycoinPINVOKE.get_SKY_ErrAddress(); public static readonly int SKY_ErrWalletName = skycoinPINVOKE.get_SKY_ErrWalletName(); @@ -4375,8 +4360,8 @@ public static int b64_decodef(string InFile, string OutFile) { public static readonly int SKY_ErrWalletConstraint = skycoinPINVOKE.get_SKY_ErrWalletConstraint(); public static readonly int SKY_ErrDuplicateUxOuts = skycoinPINVOKE.get_SKY_ErrDuplicateUxOuts(); public static readonly int SKY_ErrUnknownWalletID = skycoinPINVOKE.get_SKY_ErrUnknownWalletID(); - public static readonly int SKY_ErrSHA256orMissingPassword = skycoinPINVOKE.get_SKY_ErrSHA256orMissingPassword(); - public static readonly int SKY_ErrSHA256LenghtDataOverflowMaxUint32 = skycoinPINVOKE.get_SKY_ErrSHA256LenghtDataOverflowMaxUint32(); + public static readonly int SKY_ErrVerifySignatureInvalidInputsNils = skycoinPINVOKE.get_SKY_ErrVerifySignatureInvalidInputsNils(); + public static readonly int SKY_ErrVerifySignatureInvalidSigLength = skycoinPINVOKE.get_SKY_ErrVerifySignatureInvalidSigLength(); public static readonly int SKY_ErrVerifySignatureInvalidPubkeysLength = skycoinPINVOKE.get_SKY_ErrVerifySignatureInvalidPubkeysLength(); } diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index 8075e52b..7f0915a3 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -644,9 +644,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_VerifySignature__SWIG_0")] public static extern uint SKY_cipher_VerifySignature__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_TestSecKeyHash__SWIG_0")] - public static extern uint SKY_cipher_TestSecKeyHash__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Set__SWIG_0")] public static extern uint SKY_cipher_SHA256_Set__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -680,9 +677,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairsSeed__SWIG_0")] public static extern uint SKY_cipher_GenerateDeterministicKeyPairsSeed__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeySlice_Swap__SWIG_0")] - public static extern uint SKY_cipher_PubKeySlice_Swap__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_VerifyTransactionCoinsSpending__SWIG_0")] public static extern uint SKY_coin_VerifyTransactionCoinsSpending__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -758,6 +752,9 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetBlockObject__SWIG_0")] public static extern uint SKY_coin_GetBlockObject__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_CheckSecKeyHash__SWIG_0")] + public static extern uint SKY_cipher_CheckSecKeyHash__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKey_isEqual")] public static extern int cipher_PubKey_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -767,6 +764,12 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKey_assignTo")] public static extern void cipher_PubKey_assignTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKey_assignSlice")] + public static extern void cipher_PubKey_assignSlice(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKey_toSlice")] + public static extern global::System.IntPtr cipher_PubKey_toSlice(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cipher_PubKey_data")] public static extern void set_cipher_PubKey_data(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1121,6 +1124,9 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_convertString")] public static extern void GoSlice_convertString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_setAtChar")] + public static extern void GoSlice_setAtChar(global::System.Runtime.InteropServices.HandleRef jarg1, char jarg2, ulong jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_getString")] public static extern void GoSlice_getString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1260,7 +1266,7 @@ static skycoinPINVOKE() { public static extern uint SKY_api_Client_BlockBySeq(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_Blocks")] - public static extern uint SKY_api_Client_Blocks(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + public static extern uint SKY_api_Client_Blocks(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_LastBlocks")] public static extern uint SKY_api_Client_LastBlocks(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -1313,8 +1319,8 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NewSeed")] public static extern uint SKY_api_Client_NewSeed(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_GetWalletSeed")] - public static extern uint SKY_api_Client_GetWalletSeed(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_WalletSeed")] + public static extern uint SKY_api_Client_WalletSeed(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkConnection")] public static extern uint SKY_api_Client_NetworkConnection(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -1601,8 +1607,8 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetAddressUxOuts")] public static extern uint SKY_webrpc_Client_GetAddressUxOuts(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetBlocks")] - public static extern uint SKY_webrpc_Client_GetBlocks(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetBlocksInRange")] + public static extern uint SKY_webrpc_Client_GetBlocksInRange(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_webrpc_Client_GetBlocksBySeq")] public static extern uint SKY_webrpc_Client_GetBlocksBySeq(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -1646,15 +1652,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Int64ToUint64")] public static extern uint SKY_coin_Int64ToUint64(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeySlice_Len")] - public static extern uint SKY_cipher_PubKeySlice_Len(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeySlice_Less")] - public static extern uint SKY_cipher_PubKeySlice_Less(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeySlice_Swap__SWIG_1")] - public static extern uint SKY_cipher_PubKeySlice_Swap__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, long jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_RandByte")] public static extern uint SKY_cipher_RandByte(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1676,8 +1673,8 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKey_Hex")] public static extern uint SKY_cipher_PubKey_Hex(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKey_ToAddressHash")] - public static extern uint SKY_cipher_PubKey_ToAddressHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyRipemd160")] + public static extern uint SKY_cipher_PubKeyRipemd160(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_NewSecKey")] public static extern uint SKY_cipher_NewSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1715,6 +1712,9 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_VerifySignature__SWIG_1")] public static extern uint SKY_cipher_VerifySignature__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateKeyPair")] + public static extern uint SKY_cipher_GenerateKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPair")] public static extern uint SKY_cipher_GenerateDeterministicKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -1727,14 +1727,11 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairsSeed__SWIG_1")] public static extern uint SKY_cipher_GenerateDeterministicKeyPairsSeed__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_TestSecKey")] - public static extern uint SKY_cipher_TestSecKey(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_CheckSecKey")] + public static extern uint SKY_cipher_CheckSecKey(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_TestSecKeyHash__SWIG_1")] - public static extern uint SKY_cipher_TestSecKeyHash__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateKeyPair")] - public static extern uint SKY_cipher_GenerateKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_CheckSecKeyHash__SWIG_1")] + public static extern uint SKY_cipher_CheckSecKeyHash__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Create")] public static extern uint SKY_secp256k1go_Signature_Create(global::System.Runtime.InteropServices.HandleRef jarg1); @@ -1835,12 +1832,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_CreateAddresses")] public static extern uint SKY_wallet_CreateAddresses(string jarg1, string jarg2, long jarg3, byte jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_GetSkycoinWalletEntry")] - public static extern uint SKY_wallet_GetSkycoinWalletEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_GetBitcoinWalletEntry")] - public static extern uint SKY_wallet_GetBitcoinWalletEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Print")] public static extern uint SKY_secp256k1go_XYZ_Print(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); @@ -1925,45 +1916,21 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_AddressFromSecKey")] public static extern uint SKY_cipher_AddressFromSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinDecodeBase58Address")] - public static extern uint SKY_cipher_BitcoinDecodeBase58Address(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_Null")] public static extern uint SKY_cipher_Address_Null(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_Bytes")] public static extern uint SKY_cipher_Address_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_BitcoinBytes")] - public static extern uint SKY_cipher_Address_BitcoinBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_Verify")] public static extern uint SKY_cipher_Address_Verify(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_String")] public static extern uint SKY_cipher_Address_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_BitcoinString")] - public static extern uint SKY_cipher_Address_BitcoinString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_Checksum")] public static extern uint SKY_cipher_Address_Checksum(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Address_BitcoinChecksum")] - public static extern uint SKY_cipher_Address_BitcoinChecksum(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinAddressFromPubkey")] - public static extern uint SKY_cipher_BitcoinAddressFromPubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinWalletImportFormatFromSeckey")] - public static extern uint SKY_cipher_BitcoinWalletImportFormatFromSeckey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinAddressFromBytes")] - public static extern uint SKY_cipher_BitcoinAddressFromBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKeyFromWalletImportFormat")] - public static extern uint SKY_cipher_SecKeyFromWalletImportFormat(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_JsonEncode_Handle")] public static extern uint SKY_JsonEncode_Handle(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -2216,9 +2183,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_apputil_PrintProgramStatus")] public static extern uint SKY_apputil_PrintProgramStatus(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cert_CreateCertIfNotExists")] - public static extern uint SKY_cert_CreateCertIfNotExists(string jarg1, string jarg2, string jarg3, string jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_VerifyTransactionFee")] public static extern uint SKY_fee_VerifyTransactionFee(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); @@ -2282,6 +2246,39 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_file_DetermineResourcePath")] public static extern uint SKY_file_DetermineResourcePath(string jarg1, string jarg2, string jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_DecodeBase58BitcoinAddress")] + public static extern uint SKY_cipher_DecodeBase58BitcoinAddress(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinAddressFromPubKey")] + public static extern void SKY_cipher_BitcoinAddressFromPubKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinAddressFromSecKey")] + public static extern uint SKY_cipher_BitcoinAddressFromSecKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinWalletImportFormatFromSeckey")] + public static extern void SKY_cipher_BitcoinWalletImportFormatFromSeckey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinAddressFromBytes")] + public static extern uint SKY_cipher_BitcoinAddressFromBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SecKeyFromBitcoinWalletImportFormat")] + public static extern uint SKY_cipher_SecKeyFromBitcoinWalletImportFormat(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinAddress_Null")] + public static extern byte SKY_cipher_BitcoinAddress_Null(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinAddress_Bytes")] + public static extern void SKY_cipher_BitcoinAddress_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinAddress_Verify")] + public static extern uint SKY_cipher_BitcoinAddress_Verify(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinAddress_String")] + public static extern void SKY_cipher_BitcoinAddress_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_BitcoinAddress_Checksum")] + public static extern void SKY_cipher_BitcoinAddress_Checksum(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GetWalletOutputsFromFile")] public static extern uint SKY_cli_GetWalletOutputsFromFile(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -2531,6 +2528,24 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_VerifyTransactionHoursSpending__SWIG_1")] public static extern uint SKY_coin_VerifyTransactionHoursSpending__SWIG_1(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_api__RichlistParams_N")] + public static extern void set_api__RichlistParams_N(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_api__RichlistParams_N")] + public static extern long get_api__RichlistParams_N(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_api__RichlistParams_IncludeDistribution")] + public static extern void set_api__RichlistParams_IncludeDistribution(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_api__RichlistParams_IncludeDistribution")] + public static extern global::System.IntPtr get_api__RichlistParams_IncludeDistribution(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_api__RichlistParams")] + public static extern global::System.IntPtr new_api__RichlistParams(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_api__RichlistParams")] + public static extern void delete_api__RichlistParams(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Address_isEqual")] public static extern int cipher__Address_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -2558,35 +2573,26 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher__Address")] public static extern void delete_cipher__Address(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_encoder__StructField_Name")] - public static extern void set_encoder__StructField_Name(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_encoder__StructField_Name")] - public static extern global::System.IntPtr get_encoder__StructField_Name(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_encoder__StructField_Kind")] - public static extern void set_encoder__StructField_Kind(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__BitcoinAddress_isEqual")] + public static extern int cipher__BitcoinAddress_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_encoder__StructField_Kind")] - public static extern uint get_encoder__StructField_Kind(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cipher__BitcoinAddress_Version")] + public static extern void set_cipher__BitcoinAddress_Version(global::System.Runtime.InteropServices.HandleRef jarg1, byte jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_encoder__StructField_Type")] - public static extern void set_encoder__StructField_Type(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_cipher__BitcoinAddress_Version")] + public static extern byte get_cipher__BitcoinAddress_Version(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_encoder__StructField_Type")] - public static extern global::System.IntPtr get_encoder__StructField_Type(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cipher__BitcoinAddress_Key")] + public static extern void set_cipher__BitcoinAddress_Key(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_encoder__StructField_Tag")] - public static extern void set_encoder__StructField_Tag(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_cipher__BitcoinAddress_Key")] + public static extern global::System.IntPtr get_cipher__BitcoinAddress_Key(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_encoder__StructField_Tag")] - public static extern global::System.IntPtr get_encoder__StructField_Tag(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cipher__BitcoinAddress")] + public static extern global::System.IntPtr new_cipher__BitcoinAddress(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_encoder__StructField")] - public static extern global::System.IntPtr new_encoder__StructField(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_encoder__StructField")] - public static extern void delete_encoder__StructField(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher__BitcoinAddress")] + public static extern void delete_cipher__BitcoinAddress(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_encrypt__ScryptChacha20poly1305_N")] public static extern void set_encrypt__ScryptChacha20poly1305_N(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); @@ -2684,6 +2690,24 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_secp256k1go__XYZ")] public static extern void delete_secp256k1go__XYZ(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cli__SendAmount_Addr")] + public static extern void set_cli__SendAmount_Addr(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_cli__SendAmount_Addr")] + public static extern global::System.IntPtr get_cli__SendAmount_Addr(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cli__SendAmount_Coins")] + public static extern void set_cli__SendAmount_Coins(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_cli__SendAmount_Coins")] + public static extern long get_cli__SendAmount_Coins(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cli__SendAmount")] + public static extern global::System.IntPtr new_cli__SendAmount(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cli__SendAmount")] + public static extern void delete_cli__SendAmount(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_isEqual")] public static extern int coin__Transaction_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -2936,6 +2960,18 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__UxOut")] public static extern void delete_coin__UxOut(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_httphelper__Address__unnamed")] + public static extern void set_httphelper__Address__unnamed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_httphelper__Address__unnamed")] + public static extern global::System.IntPtr get_httphelper__Address__unnamed(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_httphelper__Address")] + public static extern global::System.IntPtr new_httphelper__Address(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_httphelper__Address")] + public static extern void delete_httphelper__Address(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_wallet__Balance_Coins")] public static extern void set_wallet__Balance_Coins(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); @@ -3068,60 +3104,18 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_wallet__UxBalance")] public static extern void delete_wallet__UxBalance(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_api__RichlistParams_N")] - public static extern void set_api__RichlistParams_N(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_api__RichlistParams_N")] - public static extern long get_api__RichlistParams_N(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_api__RichlistParams_IncludeDistribution")] - public static extern void set_api__RichlistParams_IncludeDistribution(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_api__RichlistParams_IncludeDistribution")] - public static extern global::System.IntPtr get_api__RichlistParams_IncludeDistribution(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_api__RichlistParams")] - public static extern global::System.IntPtr new_api__RichlistParams(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_api__RichlistParams")] - public static extern void delete_api__RichlistParams(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cli__SendAmount_Addr")] - public static extern void set_cli__SendAmount_Addr(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_cli__SendAmount_Addr")] - public static extern global::System.IntPtr get_cli__SendAmount_Addr(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cli__SendAmount_Coins")] - public static extern void set_cli__SendAmount_Coins(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_cli__SendAmount_Coins")] - public static extern long get_cli__SendAmount_Coins(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_cli__SendAmount")] - public static extern global::System.IntPtr new_cli__SendAmount(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cli__SendAmount")] - public static extern void delete_cli__SendAmount(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_httphelper__Address__unnamed")] - public static extern void set_httphelper__Address__unnamed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_httphelper__Address__unnamed")] - public static extern global::System.IntPtr get_httphelper__Address__unnamed(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_httphelper__Address")] - public static extern global::System.IntPtr new_httphelper__Address(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_httphelper__Address")] - public static extern void delete_httphelper__Address(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_OK")] public static extern int get_SKY_OK(); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ERROR")] public static extern int get_SKY_ERROR(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_BAD_HANDLE")] + public static extern int get_SKY_BAD_HANDLE(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_API_LOCKED")] + public static extern int get_SKY_API_LOCKED(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_API")] public static extern int get_SKY_PKG_API(); @@ -3155,6 +3149,9 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_WALLET")] public static extern int get_SKY_PKG_WALLET(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_LIBCGO")] + public static extern int get_SKY_PKG_LIBCGO(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrAddressInvalidLength")] public static extern int get_SKY_ErrAddressInvalidLength(); @@ -3263,8 +3260,56 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidPubKeyFromHash")] public static extern int get_SKY_ErrInvalidPubKeyFromHash(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrPubKeyFromSecKeyMissmatch")] - public static extern int get_SKY_ErrPubKeyFromSecKeyMissmatch(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrPubKeyFromSecKeyMismatch")] + public static extern int get_SKY_ErrPubKeyFromSecKeyMismatch(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidLength")] + public static extern int get_SKY_ErrInvalidLength(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrBitcoinWIFInvalidFirstByte")] + public static extern int get_SKY_ErrBitcoinWIFInvalidFirstByte(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrBitcoinWIFInvalidSuffix")] + public static extern int get_SKY_ErrBitcoinWIFInvalidSuffix(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrBitcoinWIFInvalidChecksum")] + public static extern int get_SKY_ErrBitcoinWIFInvalidChecksum(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrEmptySeed")] + public static extern int get_SKY_ErrEmptySeed(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidSig")] + public static extern int get_SKY_ErrInvalidSig(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrSHA256orMissingPassword")] + public static extern int get_SKY_ErrSHA256orMissingPassword(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrLenghtDataOverflowMaxUint32")] + public static extern int get_SKY_ErrLenghtDataOverflowMaxUint32(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidChecksumLength")] + public static extern int get_SKY_ErrInvalidChecksumLength(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidDataChecksumNotMatched")] + public static extern int get_SKY_ErrInvalidDataChecksumNotMatched(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidNonceLength")] + public static extern int get_SKY_ErrInvalidNonceLength(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidBlockSizeMultiple32Bytes")] + public static extern int get_SKY_ErrInvalidBlockSizeMultiple32Bytes(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrReadDataHashFailedLength")] + public static extern int get_SKY_ErrReadDataHashFailedLength(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrSHA256orInvalidPassword")] + public static extern int get_SKY_ErrSHA256orInvalidPassword(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrReadDataLengthFailed")] + public static extern int get_SKY_ErrReadDataLengthFailed(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidDataLength")] + public static extern int get_SKY_ErrInvalidDataLength(); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrTemporaryInsufficientBalance")] public static extern int get_SKY_ErrTemporaryInsufficientBalance(); @@ -3575,11 +3620,11 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrUnknownWalletID")] public static extern int get_SKY_ErrUnknownWalletID(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrSHA256orMissingPassword")] - public static extern int get_SKY_ErrSHA256orMissingPassword(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrVerifySignatureInvalidInputsNils")] + public static extern int get_SKY_ErrVerifySignatureInvalidInputsNils(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrSHA256LenghtDataOverflowMaxUint32")] - public static extern int get_SKY_ErrSHA256LenghtDataOverflowMaxUint32(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrVerifySignatureInvalidSigLength")] + public static extern int get_SKY_ErrVerifySignatureInvalidSigLength(); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrVerifySignatureInvalidPubkeysLength")] public static extern int get_SKY_ErrVerifySignatureInvalidPubkeysLength(); diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index 344e53c0..936fb60e 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -1462,12 +1462,6 @@ void makeEncryptedData(GoSlice data, GoUint32 dataLength, GoSlice pwd, coin__UxA } - GoUint32 CSharp_skycoin_SKY_cipher_TestSecKeyHash(cipher_SecKey *s,cipher_SHA256 *h){ - GoUint32 result = SKY_cipher_TestSecKeyHash(s,h); - return result; - } - - GoUint32 CSharp_skycoin_SKY_cipher_SHA256_Set(cipher_SHA256 *h,GoSlice s){ GoUint32 result = SKY_cipher_SHA256_Set(h,s); return result; @@ -1557,16 +1551,6 @@ void makeEncryptedData(GoSlice data, GoUint32 dataLength, GoSlice pwd, coin__UxA } - GoUint32 CSharp_skycoin_SKY_cipher_PubKeySlice_Swap(cipher_PubKeys* __in_pubKeys, GoInt p1, GoInt p2){ - GoSlice_ data; - data.data = __in_pubKeys->data; - data.len = __in_pubKeys->count; - data.cap = __in_pubKeys->count; - GoUint32 result = SKY_cipher_PubKeySlice_Swap(&data, p1, p2); - return result; - } - - GoUint32 CSharp_skycoin_SKY_coin_VerifyTransactionCoinsSpending(coin_UxOutArray* __uxIn, coin_UxOutArray* __uxOut){ GoSlice_ dataIn; dataIn.data = __uxIn->data; @@ -1846,6 +1830,12 @@ void makeEncryptedData(GoSlice data, GoUint32 dataLength, GoSlice pwd, coin__UxA return result; }; + + GoUint32 CSharp_skycoin_SKY_cipher_CheckSecKeyHash(cipher_SecKey *s, cipher_SHA256* sha){ + GoUint32 result = SKY_cipher_CheckSecKeyHash(s, sha); + return result; + } + SWIGINTERN int cipher_PubKey_isEqual(cipher_PubKey *self,cipher_PubKey *a){ return memcmp(self->data, a->data, sizeof(a->data)) == 0; } @@ -1855,6 +1845,13 @@ SWIGINTERN void cipher_PubKey_assignFrom(cipher_PubKey *self,cipher_PubKey *data SWIGINTERN void cipher_PubKey_assignTo(cipher_PubKey *self,cipher_PubKey *data){ memcpy(data->data, &self->data, sizeof(self->data)); } +SWIGINTERN void cipher_PubKey_assignSlice(cipher_PubKey *self,GoSlice slice){ + memcpy((void *) &self->data, slice.data, 33); + } +SWIGINTERN GoSlice cipher_PubKey_toSlice(cipher_PubKey *self){ + GoSlice buffer = {self, sizeof(self->data), sizeof(self->data)}; + return buffer; + } SWIGINTERN int cipher_SecKey_isEqual(cipher_SecKey *self,cipher_SecKey *a){ return memcmp(self->data, a->data, sizeof(a->data)) == 0; } @@ -2056,6 +2053,9 @@ SWIGINTERN void GoSlice_convertString(GoSlice *self,_GoString_ data){ self->len = strlen(data.p); self->cap = self->len; } +SWIGINTERN void GoSlice_setAtChar(GoSlice *self,char p,unsigned long long i){ + ((char *) self->data)[i] = p; + } SWIGINTERN void GoSlice_getString(GoSlice *self,_GoString_ *out){ out->p = (char *)self->data; out->n = strlen((char *)self->data); @@ -2072,6 +2072,12 @@ SWIGINTERN char cipher__Address_getVersion(cipher__Address *self){ SWIGINTERN void cipher__Address_setVersion(cipher__Address *self,char pValue){ self->Version = pValue; } +SWIGINTERN int cipher__BitcoinAddress_isEqual(cipher__BitcoinAddress *self,cipher__BitcoinAddress *a){ + if( self->Version == a->Version ){ + return memcmp(self->Key, a->Key, sizeof(a->Key)) == 0; + } + return 0; + } SWIGINTERN int coin__Transaction_isEqual(coin__Transaction *self,coin__Transaction *t){ return equalTransactions(self, t); } @@ -4065,20 +4071,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignature__S } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_TestSecKeyHash__SWIG_0(void * jarg1, void * jarg2) { - unsigned int jresult ; - cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; - cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; - GoUint32 result; - - arg1 = (cipher_SecKey *)jarg1; - arg2 = (cipher_SHA256 *)jarg2; - result = (GoUint32)CSharp_skycoin_SKY_cipher_TestSecKeyHash(arg1,arg2); - jresult = result; - return jresult; -} - - SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Set__SWIG_0(void * jarg1, void * jarg2) { unsigned int jresult ; cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; @@ -4299,25 +4291,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterminis } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Swap__SWIG_0(void * jarg1, long long jarg2, long long jarg3) { - unsigned int jresult ; - cipher_PubKeys *arg1 = (cipher_PubKeys *) 0 ; - GoInt arg2 ; - GoInt arg3 ; - GoUint32 result; - - arg1 = (cipher_PubKeys *)jarg1; - arg2 = (GoInt)jarg2; - arg3 = (GoInt)jarg3; - result = (GoUint32)CSharp_skycoin_SKY_cipher_PubKeySlice_Swap(arg1,arg2,arg3); - jresult = result; - { - if (arg1->data) free(arg1->data); - } - return jresult; -} - - SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_VerifyTransactionCoinsSpending__SWIG_0(void * jarg1, void * jarg2) { unsigned int jresult ; coin_UxOutArray *arg1 = (coin_UxOutArray *) 0 ; @@ -4754,6 +4727,20 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetBlockObject__SWIG } +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_CheckSecKeyHash__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; + cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; + GoUint32 result; + + arg1 = (cipher_SecKey *)jarg1; + arg2 = (cipher_SHA256 *)jarg2; + result = (GoUint32)CSharp_skycoin_SKY_cipher_CheckSecKeyHash(arg1,arg2); + jresult = result; + return jresult; +} + + SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_PubKey_isEqual(void * jarg1, void * jarg2) { int jresult ; cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; @@ -4788,6 +4775,38 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKey_assignTo(void * jarg1, } +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_PubKey_assignSlice(void * jarg1, void * jarg2) { + cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; + GoSlice arg2 ; + GoSlice *argp2 ; + + arg1 = (cipher_PubKey *)jarg1; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return ; + } + arg2 = *argp2; + cipher_PubKey_assignSlice(arg1,arg2); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_PubKey_toSlice(void * jarg1) { + void * jresult ; + cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; + GoSlice result; + + arg1 = (cipher_PubKey *)jarg1; + result = cipher_PubKey_toSlice(arg1); + { + GoSlice * resultptr = (GoSlice *) malloc(sizeof(GoSlice)); + memmove(resultptr, &result, sizeof(GoSlice)); + jresult = resultptr; + } + return jresult; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher_PubKey_data(void * jarg1, void * jarg2) { cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; GoUint8 *arg2 ; @@ -6129,6 +6148,18 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoSlice_convertString(void * jarg1, v } +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoSlice_setAtChar(void * jarg1, char jarg2, unsigned long long jarg3) { + GoSlice *arg1 = (GoSlice *) 0 ; + char arg2 ; + unsigned long long arg3 ; + + arg1 = (GoSlice *)jarg1; + arg2 = (char)jarg2; + arg3 = (unsigned long long)jarg3; + GoSlice_setAtChar(arg1,arg2,arg3); +} + + SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoSlice_getString(void * jarg1, void * jarg2) { GoSlice *arg1 = (GoSlice *) 0 ; _GoString_ *arg2 = (_GoString_ *) 0 ; @@ -6965,13 +6996,13 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_BlockBySeq(voi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Blocks(void * jarg1, unsigned long long jarg2, unsigned long long jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Blocks(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; Client__Handle arg1 ; - GoUint64 arg2 ; - GoUint64 arg3 ; - Handle *arg4 = (Handle *) 0 ; + GoSlice arg2 ; + Handle *arg3 = (Handle *) 0 ; Client__Handle *argp1 ; + GoSlice *argp2 ; GoUint32 result; argp1 = (Client__Handle *)jarg1; @@ -6980,12 +7011,16 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_Blocks(void * return 0; } arg1 = *argp1; - arg2 = (GoUint64)jarg2; - arg3 = (GoUint64)jarg3; + argp2 = (GoSlice *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg2 = *argp2; { - jarg4 = (long*)&arg4; + jarg3 = (long*)&arg3; } - result = (GoUint32)SKY_api_Client_Blocks(arg1,arg2,arg3,arg4); + result = (GoUint32)SKY_api_Client_Blocks(arg1,arg2,arg3); jresult = result; return jresult; } @@ -7397,7 +7432,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NewSeed(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_GetWalletSeed(void * jarg1, char* jarg2, char* jarg3, GoString* jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_WalletSeed(void * jarg1, char* jarg2, char* jarg3, GoString* jarg4) { unsigned int jresult ; Client__Handle arg1 ; GoString arg2 ; @@ -7415,7 +7450,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_GetWalletSeed( (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); (&arg3)->p=jarg3;(&arg3)->n=strlen(jarg3); arg4 = (GoString_ *)jarg4; - result = (GoUint32)SKY_api_Client_GetWalletSeed(arg1,arg2,arg3,arg4); + result = (GoUint32)SKY_api_Client_WalletSeed(arg1,arg2,arg3,arg4); jresult = result; return jresult; } @@ -9349,7 +9384,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetAddressU } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetBlocks(void * jarg1, unsigned long long jarg2, unsigned long long jarg3, GoSlice_ * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetBlocksInRange(void * jarg1, unsigned long long jarg2, unsigned long long jarg3, GoSlice_ * jarg4) { unsigned int jresult ; WebRpcClient__Handle arg1 ; GoUint64 arg2 ; @@ -9367,7 +9402,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_webrpc_Client_GetBlocks(v arg2 = (GoUint64)jarg2; arg3 = (GoUint64)jarg3; arg4 = (coin__UxArray *)jarg4; - result = (GoUint32)SKY_webrpc_Client_GetBlocks(arg1,arg2,arg3,arg4); + result = (GoUint32)SKY_webrpc_Client_GetBlocksInRange(arg1,arg2,arg3,arg4); jresult = result; return jresult; } @@ -9627,54 +9662,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Int64ToUint64(long l } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Len(GoSlice_ * jarg1, void * jarg2) { - unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoInt *arg2 = (GoInt *) 0 ; - GoUint32 result; - - arg1 = (coin__UxArray *)jarg1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_cipher_PubKeySlice_Len(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Less(GoSlice_ * jarg1, long long jarg2, long long jarg3, void * jarg4) { - unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoInt arg2 ; - GoInt arg3 ; - GoUint8 *arg4 = (GoUint8 *) 0 ; - GoUint32 result; - - arg1 = (coin__UxArray *)jarg1; - arg2 = (GoInt)jarg2; - arg3 = (GoInt)jarg3; - arg4 = (GoUint8 *)jarg4; - result = (GoUint32)SKY_cipher_PubKeySlice_Less(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeySlice_Swap__SWIG_1(GoSlice_ * jarg1, long long jarg2, long long jarg3) { - unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoInt arg2 ; - GoInt arg3 ; - GoUint32 result; - - arg1 = (coin__UxArray *)jarg1; - arg2 = (GoInt)jarg2; - arg3 = (GoInt)jarg3; - result = (GoUint32)SKY_cipher_PubKeySlice_Swap(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_RandByte(long long jarg1, GoSlice_ * jarg2) { unsigned int jresult ; GoInt arg1 ; @@ -9779,7 +9766,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_Hex(cipher_ } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_ToAddressHash(cipher__PubKey* jarg1, cipher_Ripemd160* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyRipemd160(cipher__PubKey* jarg1, cipher_Ripemd160* jarg2) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; cipher__Ripemd160 *arg2 = (cipher__Ripemd160 *) 0 ; @@ -9787,7 +9774,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKey_ToAddressHa arg1 = (cipher__PubKey *)jarg1; arg2 = (cipher__Ripemd160 *)jarg2; - result = (GoUint32)SKY_cipher_PubKey_ToAddressHash((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[20])arg2); + result = (GoUint32)SKY_cipher_PubKeyRipemd160((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[20])arg2); jresult = result; return jresult; } @@ -9979,6 +9966,20 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignature__S } +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateKeyPair(cipher__PubKey* jarg1, cipher_SecKey* jarg2) { + unsigned int jresult ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + GoUint32 result; + + arg1 = (cipher__PubKey *)jarg1; + arg2 = (cipher__SecKey *)jarg2; + result = (GoUint32)SKY_cipher_GenerateKeyPair((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPair(void * jarg1, cipher__PubKey* jarg2, cipher_SecKey* jarg3) { unsigned int jresult ; GoSlice arg1 ; @@ -10071,19 +10072,19 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateDeterminis } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_TestSecKey(cipher_SecKey* jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_CheckSecKey(cipher_SecKey* jarg1) { unsigned int jresult ; cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; GoUint32 result; arg1 = (cipher__SecKey *)jarg1; - result = (GoUint32)SKY_cipher_TestSecKey((GoUint8_ (*)[32])arg1); + result = (GoUint32)SKY_cipher_CheckSecKey((GoUint8_ (*)[32])arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_TestSecKeyHash__SWIG_1(cipher_SecKey* jarg1, cipher_SecKey* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_CheckSecKeyHash__SWIG_1(cipher_SecKey* jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; @@ -10091,21 +10092,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_TestSecKeyHash__SW arg1 = (cipher__SecKey *)jarg1; arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_cipher_TestSecKeyHash((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[32])arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_GenerateKeyPair(cipher__PubKey* jarg1, cipher_SecKey* jarg2) { - unsigned int jresult ; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - GoUint32 result; - - arg1 = (cipher__PubKey *)jarg1; - arg2 = (cipher__SecKey *)jarg2; - result = (GoUint32)SKY_cipher_GenerateKeyPair((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2); + result = (GoUint32)SKY_cipher_CheckSecKeyHash((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[32])arg2); jresult = result; return jresult; } @@ -10737,38 +10724,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateAddresses(ch } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_GetSkycoinWalletEntry(cipher__PubKey* jarg1, cipher_SecKey* jarg2, void * jarg3) { - unsigned int jresult ; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - ReadableEntry__Handle *arg3 = (ReadableEntry__Handle *) 0 ; - GoUint32 result; - - arg1 = (cipher__PubKey *)jarg1; - arg2 = (cipher__SecKey *)jarg2; - arg3 = (ReadableEntry__Handle *)jarg3; - result = (GoUint32)SKY_wallet_GetSkycoinWalletEntry((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_GetBitcoinWalletEntry(cipher__PubKey* jarg1, cipher_SecKey* jarg2, void * jarg3) { - unsigned int jresult ; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - ReadableEntry__Handle *arg3 = (ReadableEntry__Handle *) 0 ; - GoUint32 result; - - arg1 = (cipher__PubKey *)jarg1; - arg2 = (cipher__SecKey *)jarg2; - arg3 = (ReadableEntry__Handle *)jarg3; - result = (GoUint32)SKY_wallet_GetBitcoinWalletEntry((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2,arg3); - jresult = result; - return jresult; -} - - SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Print(void * jarg1, char* jarg2) { unsigned int jresult ; secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; @@ -11213,20 +11168,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_AddressFromSecKey( } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinDecodeBase58Address(char* jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - GoUint32 result; - - (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); - arg2 = (cipher__Address *)jarg2; - result = (GoUint32)SKY_cipher_BitcoinDecodeBase58Address(arg1,arg2); - jresult = result; - return jresult; -} - - SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Null(void * jarg1, void * jarg2) { unsigned int jresult ; cipher__Address *arg1 = (cipher__Address *) 0 ; @@ -11255,20 +11196,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Bytes(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_BitcoinBytes(void * jarg1, GoSlice_ * jarg2) { - unsigned int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint32 result; - - arg1 = (cipher__Address *)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_cipher_Address_BitcoinBytes(arg1,arg2); - jresult = result; - return jresult; -} - - SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Verify(void * jarg1, cipher__PubKey* jarg2) { unsigned int jresult ; cipher__Address *arg1 = (cipher__Address *) 0 ; @@ -11297,20 +11224,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_String(voi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_BitcoinString(void * jarg1, GoString* jarg2) { - unsigned int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - arg1 = (cipher__Address *)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cipher_Address_BitcoinString(arg1,arg2); - jresult = result; - return jresult; -} - - SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Checksum(void * jarg1, void * jarg2) { unsigned int jresult ; cipher__Address *arg1 = (cipher__Address *) 0 ; @@ -11325,93 +11238,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_Checksum(v } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_Address_BitcoinChecksum(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_JsonEncode_Handle(void * jarg1, GoString* jarg2) { unsigned int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - cipher__Checksum *arg2 = (cipher__Checksum *) 0 ; + Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; - arg1 = (cipher__Address *)jarg1; - arg2 = (cipher__Checksum *)jarg2; - result = (GoUint32)SKY_cipher_Address_BitcoinChecksum(arg1,(GoUint8_ (*)[4])arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddressFromPubkey(cipher__PubKey* jarg1, GoString* jarg2) { - unsigned int jresult ; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - arg1 = (cipher__PubKey *)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cipher_BitcoinAddressFromPubkey((GoUint8_ (*)[33])arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinWalletImportFormatFromSeckey(cipher_SecKey* jarg1, GoString* jarg2) { - unsigned int jresult ; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - arg1 = (cipher__SecKey *)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cipher_BitcoinWalletImportFormatFromSeckey((GoUint8_ (*)[32])arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddressFromBytes(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher__Address *)jarg2; - result = (GoUint32)SKY_cipher_BitcoinAddressFromBytes(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKeyFromWalletImportFormat(char* jarg1, cipher_SecKey* jarg2) { - unsigned int jresult ; - GoString arg1 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - GoUint32 result; - - (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); - arg2 = (cipher__SecKey *)jarg2; - result = (GoUint32)SKY_cipher_SecKeyFromWalletImportFormat(arg1,(GoUint8_ (*)[32])arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_JsonEncode_Handle(void * jarg1, GoString* jarg2) { - unsigned int jresult ; - Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - { - jarg1 = (long*)&arg1; - } - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_JsonEncode_Handle(arg1,arg2); + { + jarg1 = (long*)&arg1; + } + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_JsonEncode_Handle(arg1,arg2); jresult = result; return jresult; } @@ -13095,24 +12932,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_apputil_PrintProgramStatu } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cert_CreateCertIfNotExists(char* jarg1, char* jarg2, char* jarg3, char* jarg4) { - unsigned int jresult ; - GoString arg1 ; - GoString arg2 ; - GoString arg3 ; - GoString arg4 ; - GoUint32 result; - - (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); - (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); - (&arg3)->p=jarg3;(&arg3)->n=strlen(jarg3); - (&arg4)->p=jarg4;(&arg4)->n=strlen(jarg4); - result = (GoUint32)SKY_cert_CreateCertIfNotExists(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_VerifyTransactionFee(void * jarg1, unsigned long long jarg2) { unsigned int jresult ; Transaction__Handle arg1 ; @@ -13567,11 +13386,149 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_DetermineResourcePat } +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DecodeBase58BitcoinAddress(char* jarg1, void * jarg2) { + unsigned int jresult ; + GoString arg1 ; + cipher__BitcoinAddress *arg2 = (cipher__BitcoinAddress *) 0 ; + GoUint32 result; + + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); + arg2 = (cipher__BitcoinAddress *)jarg2; + result = (GoUint32)SKY_cipher_DecodeBase58BitcoinAddress(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddressFromPubKey(cipher__PubKey* jarg1, void * jarg2) { + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__BitcoinAddress *arg2 = (cipher__BitcoinAddress *) 0 ; + + arg1 = (cipher__PubKey *)jarg1; + arg2 = (cipher__BitcoinAddress *)jarg2; + SKY_cipher_BitcoinAddressFromPubKey((GoUint8_ (*)[33])arg1,arg2); +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddressFromSecKey(cipher_SecKey* jarg1, void * jarg2) { + unsigned int jresult ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + cipher__BitcoinAddress *arg2 = (cipher__BitcoinAddress *) 0 ; + GoUint32 result; + + arg1 = (cipher__SecKey *)jarg1; + arg2 = (cipher__BitcoinAddress *)jarg2; + result = (GoUint32)SKY_cipher_BitcoinAddressFromSecKey((GoUint8_ (*)[32])arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinWalletImportFormatFromSeckey(cipher_SecKey* jarg1, GoString* jarg2) { + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + + arg1 = (cipher__SecKey *)jarg1; + arg2 = (GoString_ *)jarg2; + SKY_cipher_BitcoinWalletImportFormatFromSeckey((GoUint8_ (*)[32])arg1,arg2); +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddressFromBytes(void * jarg1, void * jarg2) { + unsigned int jresult ; + GoSlice arg1 ; + cipher__BitcoinAddress *arg2 = (cipher__BitcoinAddress *) 0 ; + GoSlice *argp1 ; + GoUint32 result; + + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__BitcoinAddress *)jarg2; + result = (GoUint32)SKY_cipher_BitcoinAddressFromBytes(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKeyFromBitcoinWalletImportFormat(char* jarg1, cipher_SecKey* jarg2) { + unsigned int jresult ; + GoString arg1 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + GoUint32 result; + + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); + arg2 = (cipher__SecKey *)jarg2; + result = (GoUint32)SKY_cipher_SecKeyFromBitcoinWalletImportFormat(arg1,(GoUint8_ (*)[32])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddress_Null(void * jarg1) { + unsigned char jresult ; + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + GoUint8 result; + + arg1 = (cipher__BitcoinAddress *)jarg1; + result = (GoUint8)SKY_cipher_BitcoinAddress_Null(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddress_Bytes(void * jarg1, GoSlice_ * jarg2) { + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + + arg1 = (cipher__BitcoinAddress *)jarg1; + arg2 = (coin__UxArray *)jarg2; + SKY_cipher_BitcoinAddress_Bytes(arg1,arg2); +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddress_Verify(void * jarg1, cipher__PubKey* jarg2) { + unsigned int jresult ; + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + GoUint32 result; + + arg1 = (cipher__BitcoinAddress *)jarg1; + arg2 = (cipher__PubKey *)jarg2; + result = (GoUint32)SKY_cipher_BitcoinAddress_Verify(arg1,(GoUint8_ (*)[33])arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddress_String(void * jarg1, GoString* jarg2) { + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + + arg1 = (cipher__BitcoinAddress *)jarg1; + arg2 = (GoString_ *)jarg2; + SKY_cipher_BitcoinAddress_String(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddress_Checksum(void * jarg1, void * jarg2) { + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + cipher__Checksum *arg2 = (cipher__Checksum *) 0 ; + + arg1 = (cipher__BitcoinAddress *)jarg1; + arg2 = (cipher__Checksum *)jarg2; + SKY_cipher_BitcoinAddress_Checksum(arg1,(GoUint8_ (*)[4])arg2); +} + + SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetWalletOutputsFromFile(void * jarg1, char* jarg2, void * jarg3) { unsigned int jresult ; WebRpcClient__Handle arg1 ; GoString arg2 ; - ReadableOutputSet_Handle *arg3 = (ReadableOutputSet_Handle *) 0 ; + ReadableUnspentOutputsSummary_Handle *arg3 = (ReadableUnspentOutputsSummary_Handle *) 0 ; WebRpcClient__Handle *argp1 ; GoUint32 result; @@ -13582,7 +13539,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetWalletOutputsFromF } arg1 = *argp1; (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); - arg3 = (ReadableOutputSet_Handle *)jarg3; + arg3 = (ReadableUnspentOutputsSummary_Handle *)jarg3; result = (GoUint32)SKY_cli_GetWalletOutputsFromFile(arg1,arg2,arg3); jresult = result; return jresult; @@ -13593,7 +13550,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetWalletOutputs(void unsigned int jresult ; WebRpcClient__Handle arg1 ; Wallet__Handle *arg2 = (Wallet__Handle *) 0 ; - UnspentOutputsSummary_Handle *arg3 = (UnspentOutputsSummary_Handle *) 0 ; + ReadableUnspentOutputsSummary_Handle *arg3 = (ReadableUnspentOutputsSummary_Handle *) 0 ; WebRpcClient__Handle *argp1 ; GoUint32 result; @@ -13604,7 +13561,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetWalletOutputs(void } arg1 = *argp1; arg2 = (Wallet__Handle *)jarg2; - arg3 = (UnspentOutputsSummary_Handle *)jarg3; + arg3 = (ReadableUnspentOutputsSummary_Handle *)jarg3; result = (GoUint32)SKY_cli_GetWalletOutputs(arg1,arg2,arg3); jresult = result; return jresult; @@ -15127,56 +15084,128 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_VerifyTransactionHou } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher__Address_isEqual(void * jarg1, void * jarg2) { - int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - int result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_api__RichlistParams_N(void * jarg1, long long jarg2) { + api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; + GoInt_ arg2 ; - arg1 = (cipher__Address *)jarg1; - arg2 = (cipher__Address *)jarg2; - result = (int)cipher__Address_isEqual(arg1,arg2); - jresult = result; - return jresult; + arg1 = (api__RichlistParams *)jarg1; + arg2 = (GoInt_)jarg2; + if (arg1) (arg1)->N = arg2; } -SWIGEXPORT char SWIGSTDCALL CSharp_skycoin_cipher__Address_getVersion(void * jarg1) { - char jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - char result; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_api__RichlistParams_N(void * jarg1) { + long long jresult ; + api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; + GoInt_ result; - arg1 = (cipher__Address *)jarg1; - result = (char)cipher__Address_getVersion(arg1); + arg1 = (api__RichlistParams *)jarg1; + result = ((arg1)->N); jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher__Address_setVersion(void * jarg1, char jarg2) { - cipher__Address *arg1 = (cipher__Address *) 0 ; - char arg2 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_api__RichlistParams_IncludeDistribution(void * jarg1, void * jarg2) { + api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; + BOOL arg2 ; + BOOL *argp2 ; - arg1 = (cipher__Address *)jarg1; - arg2 = (char)jarg2; - cipher__Address_setVersion(arg1,arg2); + arg1 = (api__RichlistParams *)jarg1; + argp2 = (BOOL *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null BOOL", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->IncludeDistribution = arg2; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher__Address_Version(void * jarg1, unsigned char jarg2) { - cipher__Address *arg1 = (cipher__Address *) 0 ; - GoUint8_ arg2 ; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_api__RichlistParams_IncludeDistribution(void * jarg1) { + void * jresult ; + api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; + BOOL result; - arg1 = (cipher__Address *)jarg1; - arg2 = (GoUint8_)jarg2; - if (arg1) (arg1)->Version = arg2; + arg1 = (api__RichlistParams *)jarg1; + result = ((arg1)->IncludeDistribution); + { + BOOL * resultptr = (BOOL *) malloc(sizeof(BOOL)); + memmove(resultptr, &result, sizeof(BOOL)); + jresult = resultptr; + } + return jresult; } -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_skycoin_get_cipher__Address_Version(void * jarg1) { - unsigned char jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - GoUint8_ result; +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_api__RichlistParams() { + void * jresult ; + api__RichlistParams *result = 0 ; + + result = (api__RichlistParams *)calloc(1, sizeof(api__RichlistParams)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_api__RichlistParams(void * jarg1) { + api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; + + arg1 = (api__RichlistParams *)jarg1; + free((char *) arg1); +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher__Address_isEqual(void * jarg1, void * jarg2) { + int jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + int result; + + arg1 = (cipher__Address *)jarg1; + arg2 = (cipher__Address *)jarg2; + result = (int)cipher__Address_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT char SWIGSTDCALL CSharp_skycoin_cipher__Address_getVersion(void * jarg1) { + char jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + char result; + + arg1 = (cipher__Address *)jarg1; + result = (char)cipher__Address_getVersion(arg1); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher__Address_setVersion(void * jarg1, char jarg2) { + cipher__Address *arg1 = (cipher__Address *) 0 ; + char arg2 ; + + arg1 = (cipher__Address *)jarg1; + arg2 = (char)jarg2; + cipher__Address_setVersion(arg1,arg2); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher__Address_Version(void * jarg1, unsigned char jarg2) { + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoUint8_ arg2 ; + + arg1 = (cipher__Address *)jarg1; + arg2 = (GoUint8_)jarg2; + if (arg1) (arg1)->Version = arg2; +} + + +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_skycoin_get_cipher__Address_Version(void * jarg1) { + unsigned char jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoUint8_ result; arg1 = (cipher__Address *)jarg1; result = ((arg1)->Version); @@ -15229,138 +15258,82 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher__Address(void * jarg1) } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encoder__StructField_Name(void * jarg1, void * jarg2) { - encoder__StructField *arg1 = (encoder__StructField *) 0 ; - GoString_ arg2 ; - GoString_ *argp2 ; - - arg1 = (encoder__StructField *)jarg1; - argp2 = (GoString_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Name = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_encoder__StructField_Name(void * jarg1) { - void * jresult ; - encoder__StructField *arg1 = (encoder__StructField *) 0 ; - GoString_ result; +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher__BitcoinAddress_isEqual(void * jarg1, void * jarg2) { + int jresult ; + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + cipher__BitcoinAddress *arg2 = (cipher__BitcoinAddress *) 0 ; + int result; - arg1 = (encoder__StructField *)jarg1; - result = ((arg1)->Name); - { - GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); - memmove(resultptr, &result, sizeof(GoString_)); - jresult = resultptr; - } + arg1 = (cipher__BitcoinAddress *)jarg1; + arg2 = (cipher__BitcoinAddress *)jarg2; + result = (int)cipher__BitcoinAddress_isEqual(arg1,arg2); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encoder__StructField_Kind(void * jarg1, unsigned int jarg2) { - encoder__StructField *arg1 = (encoder__StructField *) 0 ; - GoUint32_ arg2 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher__BitcoinAddress_Version(void * jarg1, unsigned char jarg2) { + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + unsigned char arg2 ; - arg1 = (encoder__StructField *)jarg1; - arg2 = (GoUint32_)jarg2; - if (arg1) (arg1)->Kind = arg2; + arg1 = (cipher__BitcoinAddress *)jarg1; + arg2 = (unsigned char)jarg2; + if (arg1) (arg1)->Version = arg2; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_get_encoder__StructField_Kind(void * jarg1) { - unsigned int jresult ; - encoder__StructField *arg1 = (encoder__StructField *) 0 ; - GoUint32_ result; +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_skycoin_get_cipher__BitcoinAddress_Version(void * jarg1) { + unsigned char jresult ; + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + unsigned char result; - arg1 = (encoder__StructField *)jarg1; - result = ((arg1)->Kind); + arg1 = (cipher__BitcoinAddress *)jarg1; + result = (unsigned char) ((arg1)->Version); jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encoder__StructField_Type(void * jarg1, void * jarg2) { - encoder__StructField *arg1 = (encoder__StructField *) 0 ; - GoString_ arg2 ; - GoString_ *argp2 ; - - arg1 = (encoder__StructField *)jarg1; - argp2 = (GoString_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Type = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_encoder__StructField_Type(void * jarg1) { - void * jresult ; - encoder__StructField *arg1 = (encoder__StructField *) 0 ; - GoString_ result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher__BitcoinAddress_Key(void * jarg1, void * jarg2) { + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + GoUint8_ *arg2 ; - arg1 = (encoder__StructField *)jarg1; - result = ((arg1)->Type); + arg1 = (cipher__BitcoinAddress *)jarg1; + arg2 = (GoUint8_ *)jarg2; { - GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); - memmove(resultptr, &result, sizeof(GoString_)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_encoder__StructField_Tag(void * jarg1, void * jarg2) { - encoder__StructField *arg1 = (encoder__StructField *) 0 ; - GoString_ arg2 ; - GoString_ *argp2 ; - - arg1 = (encoder__StructField *)jarg1; - argp2 = (GoString_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); - return ; + size_t ii; + GoUint8_ *b = (GoUint8_ *) arg1->Key; + for (ii = 0; ii < (size_t)20; ii++) b[ii] = *((GoUint8_ *) arg2 + ii); } - arg2 = *argp2; - if (arg1) (arg1)->Tag = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_encoder__StructField_Tag(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_cipher__BitcoinAddress_Key(void * jarg1) { void * jresult ; - encoder__StructField *arg1 = (encoder__StructField *) 0 ; - GoString_ result; + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + GoUint8_ *result = 0 ; - arg1 = (encoder__StructField *)jarg1; - result = ((arg1)->Tag); - { - GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); - memmove(resultptr, &result, sizeof(GoString_)); - jresult = resultptr; - } + arg1 = (cipher__BitcoinAddress *)jarg1; + result = (GoUint8_ *) ((arg1)->Key); + jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_encoder__StructField() { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cipher__BitcoinAddress() { void * jresult ; - encoder__StructField *result = 0 ; + cipher__BitcoinAddress *result = 0 ; - result = (encoder__StructField *)calloc(1, sizeof(encoder__StructField)); + result = (cipher__BitcoinAddress *)calloc(1, sizeof(cipher__BitcoinAddress)); jresult = (void *)result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_encoder__StructField(void * jarg1) { - encoder__StructField *arg1 = (encoder__StructField *) 0 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher__BitcoinAddress(void * jarg1) { + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; - arg1 = (encoder__StructField *)jarg1; + arg1 = (cipher__BitcoinAddress *)jarg1; free((char *) arg1); } @@ -15725,6 +15698,78 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_secp256k1go__XYZ(void * jarg1) } +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cli__SendAmount_Addr(void * jarg1, void * jarg2) { + cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; + GoString_ arg2 ; + GoString_ *argp2 ; + + arg1 = (cli__SendAmount *)jarg1; + argp2 = (GoString_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Addr = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_cli__SendAmount_Addr(void * jarg1) { + void * jresult ; + cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; + GoString_ result; + + arg1 = (cli__SendAmount *)jarg1; + result = ((arg1)->Addr); + { + GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); + memmove(resultptr, &result, sizeof(GoString_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cli__SendAmount_Coins(void * jarg1, long long jarg2) { + cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; + GoInt64_ arg2 ; + + arg1 = (cli__SendAmount *)jarg1; + arg2 = (GoInt64_)jarg2; + if (arg1) (arg1)->Coins = arg2; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_cli__SendAmount_Coins(void * jarg1) { + long long jresult ; + cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; + GoInt64_ result; + + arg1 = (cli__SendAmount *)jarg1; + result = ((arg1)->Coins); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cli__SendAmount() { + void * jresult ; + cli__SendAmount *result = 0 ; + + result = (cli__SendAmount *)calloc(1, sizeof(cli__SendAmount)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cli__SendAmount(void * jarg1) { + cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; + + arg1 = (cli__SendAmount *)jarg1; + free((char *) arg1); +} + + SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__Transaction_isEqual(void * jarg1, void * jarg2) { int jresult ; coin__Transaction *arg1 = (coin__Transaction *) 0 ; @@ -16705,6 +16750,46 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__UxOut(void * jarg1) { } +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_httphelper__Address__unnamed(void * jarg1, void * jarg2) { + httphelper__Address *arg1 = (httphelper__Address *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + + arg1 = (httphelper__Address *)jarg1; + arg2 = (cipher__Address *)jarg2; + if (arg1) (arg1)->_unnamed = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_httphelper__Address__unnamed(void * jarg1) { + void * jresult ; + httphelper__Address *arg1 = (httphelper__Address *) 0 ; + cipher__Address *result = 0 ; + + arg1 = (httphelper__Address *)jarg1; + result = (cipher__Address *)& ((arg1)->_unnamed); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_httphelper__Address() { + void * jresult ; + httphelper__Address *result = 0 ; + + result = (httphelper__Address *)calloc(1, sizeof(httphelper__Address)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_httphelper__Address(void * jarg1) { + httphelper__Address *arg1 = (httphelper__Address *) 0 ; + + arg1 = (httphelper__Address *)jarg1; + free((char *) arg1); +} + + SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__Balance_Coins(void * jarg1, unsigned long long jarg2) { wallet__Balance *arg1 = (wallet__Balance *) 0 ; GoUint64_ arg2 ; @@ -17099,304 +17184,120 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__UxBalance_Hash(void * jar } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__UxBalance_Hash(void * jarg1) { - void * jresult ; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - GoUint8_ *result = 0 ; - - arg1 = (wallet__UxBalance *)jarg1; - result = (GoUint8_ *) ((arg1)->Hash); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__UxBalance_BkSeq(void * jarg1, long long jarg2) { - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - GoInt64_ arg2 ; - - arg1 = (wallet__UxBalance *)jarg1; - arg2 = (GoInt64_)jarg2; - if (arg1) (arg1)->BkSeq = arg2; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_wallet__UxBalance_BkSeq(void * jarg1) { - long long jresult ; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - GoInt64_ result; - - arg1 = (wallet__UxBalance *)jarg1; - result = ((arg1)->BkSeq); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__UxBalance_Address(void * jarg1, void * jarg2) { - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - - arg1 = (wallet__UxBalance *)jarg1; - arg2 = (cipher__Address *)jarg2; - if (arg1) (arg1)->Address = *arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__UxBalance_Address(void * jarg1) { - void * jresult ; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - cipher__Address *result = 0 ; - - arg1 = (wallet__UxBalance *)jarg1; - result = (cipher__Address *)& ((arg1)->Address); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__UxBalance_Coins(void * jarg1, long long jarg2) { - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - GoInt64_ arg2 ; - - arg1 = (wallet__UxBalance *)jarg1; - arg2 = (GoInt64_)jarg2; - if (arg1) (arg1)->Coins = arg2; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_wallet__UxBalance_Coins(void * jarg1) { - long long jresult ; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - GoInt64_ result; - - arg1 = (wallet__UxBalance *)jarg1; - result = ((arg1)->Coins); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__UxBalance_Hours(void * jarg1, long long jarg2) { - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - GoInt64_ arg2 ; - - arg1 = (wallet__UxBalance *)jarg1; - arg2 = (GoInt64_)jarg2; - if (arg1) (arg1)->Hours = arg2; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_wallet__UxBalance_Hours(void * jarg1) { - long long jresult ; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - GoInt64_ result; - - arg1 = (wallet__UxBalance *)jarg1; - result = ((arg1)->Hours); - jresult = result; - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_wallet__UxBalance() { - void * jresult ; - wallet__UxBalance *result = 0 ; - - result = (wallet__UxBalance *)calloc(1, sizeof(wallet__UxBalance)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__UxBalance(void * jarg1) { - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - - arg1 = (wallet__UxBalance *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_api__RichlistParams_N(void * jarg1, long long jarg2) { - api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; - GoInt_ arg2 ; - - arg1 = (api__RichlistParams *)jarg1; - arg2 = (GoInt_)jarg2; - if (arg1) (arg1)->N = arg2; -} - - -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_api__RichlistParams_N(void * jarg1) { - long long jresult ; - api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; - GoInt_ result; - - arg1 = (api__RichlistParams *)jarg1; - result = ((arg1)->N); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_api__RichlistParams_IncludeDistribution(void * jarg1, void * jarg2) { - api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; - BOOL arg2 ; - BOOL *argp2 ; - - arg1 = (api__RichlistParams *)jarg1; - argp2 = (BOOL *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null BOOL", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->IncludeDistribution = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_api__RichlistParams_IncludeDistribution(void * jarg1) { - void * jresult ; - api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; - BOOL result; - - arg1 = (api__RichlistParams *)jarg1; - result = ((arg1)->IncludeDistribution); - { - BOOL * resultptr = (BOOL *) malloc(sizeof(BOOL)); - memmove(resultptr, &result, sizeof(BOOL)); - jresult = resultptr; - } - return jresult; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_api__RichlistParams() { - void * jresult ; - api__RichlistParams *result = 0 ; - - result = (api__RichlistParams *)calloc(1, sizeof(api__RichlistParams)); - jresult = (void *)result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_api__RichlistParams(void * jarg1) { - api__RichlistParams *arg1 = (api__RichlistParams *) 0 ; - - arg1 = (api__RichlistParams *)jarg1; - free((char *) arg1); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cli__SendAmount_Addr(void * jarg1, void * jarg2) { - cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; - GoString_ arg2 ; - GoString_ *argp2 ; - - arg1 = (cli__SendAmount *)jarg1; - argp2 = (GoString_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); - return ; - } - arg2 = *argp2; - if (arg1) (arg1)->Addr = arg2; -} - - -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_cli__SendAmount_Addr(void * jarg1) { - void * jresult ; - cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; - GoString_ result; - - arg1 = (cli__SendAmount *)jarg1; - result = ((arg1)->Addr); - { - GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); - memmove(resultptr, &result, sizeof(GoString_)); - jresult = resultptr; - } +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__UxBalance_Hash(void * jarg1) { + void * jresult ; + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + GoUint8_ *result = 0 ; + + arg1 = (wallet__UxBalance *)jarg1; + result = (GoUint8_ *) ((arg1)->Hash); + jresult = result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cli__SendAmount_Coins(void * jarg1, long long jarg2) { - cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__UxBalance_BkSeq(void * jarg1, long long jarg2) { + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; GoInt64_ arg2 ; - arg1 = (cli__SendAmount *)jarg1; + arg1 = (wallet__UxBalance *)jarg1; arg2 = (GoInt64_)jarg2; - if (arg1) (arg1)->Coins = arg2; + if (arg1) (arg1)->BkSeq = arg2; } -SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_cli__SendAmount_Coins(void * jarg1) { +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_wallet__UxBalance_BkSeq(void * jarg1) { long long jresult ; - cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; GoInt64_ result; - arg1 = (cli__SendAmount *)jarg1; - result = ((arg1)->Coins); + arg1 = (wallet__UxBalance *)jarg1; + result = ((arg1)->BkSeq); jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_cli__SendAmount() { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__UxBalance_Address(void * jarg1, void * jarg2) { + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + + arg1 = (wallet__UxBalance *)jarg1; + arg2 = (cipher__Address *)jarg2; + if (arg1) (arg1)->Address = *arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_wallet__UxBalance_Address(void * jarg1) { void * jresult ; - cli__SendAmount *result = 0 ; + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + cipher__Address *result = 0 ; - result = (cli__SendAmount *)calloc(1, sizeof(cli__SendAmount)); + arg1 = (wallet__UxBalance *)jarg1; + result = (cipher__Address *)& ((arg1)->Address); jresult = (void *)result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cli__SendAmount(void * jarg1) { - cli__SendAmount *arg1 = (cli__SendAmount *) 0 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__UxBalance_Coins(void * jarg1, long long jarg2) { + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + GoInt64_ arg2 ; - arg1 = (cli__SendAmount *)jarg1; - free((char *) arg1); + arg1 = (wallet__UxBalance *)jarg1; + arg2 = (GoInt64_)jarg2; + if (arg1) (arg1)->Coins = arg2; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_httphelper__Address__unnamed(void * jarg1, void * jarg2) { - httphelper__Address *arg1 = (httphelper__Address *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_wallet__UxBalance_Coins(void * jarg1) { + long long jresult ; + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + GoInt64_ result; - arg1 = (httphelper__Address *)jarg1; - arg2 = (cipher__Address *)jarg2; - if (arg1) (arg1)->_unnamed = *arg2; + arg1 = (wallet__UxBalance *)jarg1; + result = ((arg1)->Coins); + jresult = result; + return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_httphelper__Address__unnamed(void * jarg1) { - void * jresult ; - httphelper__Address *arg1 = (httphelper__Address *) 0 ; - cipher__Address *result = 0 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_wallet__UxBalance_Hours(void * jarg1, long long jarg2) { + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + GoInt64_ arg2 ; - arg1 = (httphelper__Address *)jarg1; - result = (cipher__Address *)& ((arg1)->_unnamed); - jresult = (void *)result; + arg1 = (wallet__UxBalance *)jarg1; + arg2 = (GoInt64_)jarg2; + if (arg1) (arg1)->Hours = arg2; +} + + +SWIGEXPORT long long SWIGSTDCALL CSharp_skycoin_get_wallet__UxBalance_Hours(void * jarg1) { + long long jresult ; + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + GoInt64_ result; + + arg1 = (wallet__UxBalance *)jarg1; + result = ((arg1)->Hours); + jresult = result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_httphelper__Address() { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_wallet__UxBalance() { void * jresult ; - httphelper__Address *result = 0 ; + wallet__UxBalance *result = 0 ; - result = (httphelper__Address *)calloc(1, sizeof(httphelper__Address)); + result = (wallet__UxBalance *)calloc(1, sizeof(wallet__UxBalance)); jresult = (void *)result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_httphelper__Address(void * jarg1) { - httphelper__Address *arg1 = (httphelper__Address *) 0 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_wallet__UxBalance(void * jarg1) { + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - arg1 = (httphelper__Address *)jarg1; + arg1 = (wallet__UxBalance *)jarg1; free((char *) arg1); } @@ -17421,6 +17322,26 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ERROR() { } +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_BAD_HANDLE() { + int jresult ; + int result; + + result = (int)(0x7F000001); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_API_LOCKED() { + int jresult ; + int result; + + result = (int)(0x7F000002); + jresult = result; + return jresult; +} + + SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_PKG_API() { int jresult ; int result; @@ -17531,6 +17452,16 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_PKG_WALLET() { } +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_PKG_LIBCGO() { + int jresult ; + int result; + + result = (int)(0x7F000000); + jresult = result; + return jresult; +} + + SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrAddressInvalidLength() { int jresult ; int result; @@ -17891,7 +17822,7 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidPubKeyFromHash() { } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrPubKeyFromSecKeyMissmatch() { +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrPubKeyFromSecKeyMismatch() { int jresult ; int result; @@ -17901,6 +17832,166 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrPubKeyFromSecKeyMissmatch() } +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidLength() { + int jresult ; + int result; + + result = (int)(0x02000025); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrBitcoinWIFInvalidFirstByte() { + int jresult ; + int result; + + result = (int)(0x02000026); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrBitcoinWIFInvalidSuffix() { + int jresult ; + int result; + + result = (int)(0x02000027); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrBitcoinWIFInvalidChecksum() { + int jresult ; + int result; + + result = (int)(0x02000028); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrEmptySeed() { + int jresult ; + int result; + + result = (int)(0x02000029); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidSig() { + int jresult ; + int result; + + result = (int)(0x0200002A); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrSHA256orMissingPassword() { + int jresult ; + int result; + + result = (int)(0x0200002B); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrLenghtDataOverflowMaxUint32() { + int jresult ; + int result; + + result = (int)(0x0200002C); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidChecksumLength() { + int jresult ; + int result; + + result = (int)(0x0200002D); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidDataChecksumNotMatched() { + int jresult ; + int result; + + result = (int)(0x0200002E); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidNonceLength() { + int jresult ; + int result; + + result = (int)(0x0200002F); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidBlockSizeMultiple32Bytes() { + int jresult ; + int result; + + result = (int)(0x02000030); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrReadDataHashFailedLength() { + int jresult ; + int result; + + result = (int)(0x02000031); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrSHA256orInvalidPassword() { + int jresult ; + int result; + + result = (int)(0x02000032); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrReadDataLengthFailed() { + int jresult ; + int result; + + result = (int)(0x02000033); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidDataLength() { + int jresult ; + int result; + + result = (int)(0x02000034); + jresult = result; + return jresult; +} + + SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrTemporaryInsufficientBalance() { int jresult ; int result; @@ -18931,21 +19022,21 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrUnknownWalletID() { } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrSHA256orMissingPassword() { +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrVerifySignatureInvalidInputsNils() { int jresult ; int result; - result = (int)(0x0B00002A); + result = (int)(0x0B000033); jresult = result; return jresult; } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrSHA256LenghtDataOverflowMaxUint32() { +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrVerifySignatureInvalidSigLength() { int jresult ; int result; - result = (int)(0x0B00002B); + result = (int)(0x0B000034); jresult = result; return jresult; } @@ -18955,7 +19046,7 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrVerifySignatureInvalidPubke int jresult ; int result; - result = (int)(0X0b000036); + result = (int)(0x0B000035); jresult = result; return jresult; } diff --git a/LibskycoinNetTest/LibskycoinNetTest.csproj b/LibskycoinNetTest/LibskycoinNetTest.csproj index 47b560f8..a77b0fb2 100644 --- a/LibskycoinNetTest/LibskycoinNetTest.csproj +++ b/LibskycoinNetTest/LibskycoinNetTest.csproj @@ -47,8 +47,9 @@ + - + diff --git a/LibskycoinNetTest/check_cipher_address.cs b/LibskycoinNetTest/check_cipher_address.cs index d74b0195..d6e7c3f4 100644 --- a/LibskycoinNetTest/check_cipher_address.cs +++ b/LibskycoinNetTest/check_cipher_address.cs @@ -78,40 +78,6 @@ public void TestAddressFromBytes () { Assert.AreEqual (skycoin.skycoin.SKY_ErrAddressInvalidVersion, err); } - [Test] - public void TestBitcoinAddressFromBytes () { - var s = new skycoin.cipher_SecKey (); - var p = new skycoin.cipher_PubKey (); - var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK, "Failed SKY_cipher_GenerateKeyPair"); - var a = new skycoin.cipher__Address (); - err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, a); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK, "Failed SKY_cipher_AddressFromPubKey"); - var pk = new skycoin.GoSlice (); - err = skycoin.skycoin.SKY_cipher_Address_BitcoinBytes (a, pk); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK, "Failed SKY_cipher_Address_BitcoinBytes"); - var a2 = new skycoin.cipher__Address (); - err = skycoin.skycoin.SKY_cipher_BitcoinAddressFromBytes (pk, a2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK, "Failed SKY_cipher_BitcoinAddressFromBytes"); - Assert.AreEqual (a2.isEqual (a), 1); - - // Invalid number of bytes - var b = new skycoin.GoSlice (); - err = skycoin.skycoin.SKY_cipher_Address_BitcoinBytes (a, b); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK, "Failed SKY_cipher_Address_BitcoinBytes"); - var b_len = b.len; - b.len = b.len - 2; - var a3 = new skycoin.cipher__Address (); - err = skycoin.skycoin.SKY_cipher_BitcoinAddressFromBytes (b, a3); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrAddressInvalidLength); - - a.setVersion ('2'); - err = skycoin.skycoin.SKY_cipher_Address_BitcoinBytes (a, b); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_BitcoinAddressFromBytes (b, a3); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrAddressInvalidVersion); - } - [Test] public void TestAddressRoundtrip () { // Tests encode and decode @@ -153,7 +119,7 @@ public void TestAddressVerify () { err = skycoin.skycoin.SKY_cipher_Address_Verify (a, p); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); // Invalid pubkey - err = skycoin.skycoin.SKY_cipher_Address_Verify (a, new skycoin.cipher_PubKey()); + err = skycoin.skycoin.SKY_cipher_Address_Verify (a, new skycoin.cipher_PubKey ()); Assert.AreEqual (err, skycoin.skycoin.SKY_ErrAddressInvalidPubKey); var p2 = new skycoin.cipher_PubKey (); var s2 = new skycoin.cipher_SecKey (); @@ -167,32 +133,6 @@ public void TestAddressVerify () { Assert.AreEqual (err, skycoin.skycoin.SKY_ErrAddressInvalidVersion); } - [Test] - public void TestBitcoinWIPRoundTrio () { - var p = new skycoin.cipher_PubKey (); - var seckey1 = new skycoin.cipher_SecKey (); - var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, seckey1); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var wip1 = new _GoString_ (); - err = skycoin.skycoin.SKY_cipher_BitcoinWalletImportFormatFromSeckey (seckey1, wip1); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var seckey2 = new skycoin.cipher_SecKey (); - err = skycoin.skycoin.SKY_cipher_SecKeyFromWalletImportFormat (wip1.p, seckey2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var wip2 = new _GoString_ (); - err = skycoin.skycoin.SKY_cipher_BitcoinWalletImportFormatFromSeckey (seckey2, wip2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (seckey1.isEqual (seckey2), 1); - var seckey1_hex = new _GoString_ (); - var seckey2_hex = new _GoString_ (); - err = skycoin.skycoin.SKY_cipher_SecKey_Hex (seckey1, seckey1_hex); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_SecKey_Hex (seckey2, seckey2_hex); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (seckey1_hex.p == seckey2_hex.p, true); - Assert.AreEqual (wip1.p == wip2.p, true); - } - [Test] public void TestAddressBulk () { diff --git a/LibskycoinNetTest/check_cipher_bitcoin.cs b/LibskycoinNetTest/check_cipher_bitcoin.cs new file mode 100644 index 00000000..79063342 --- /dev/null +++ b/LibskycoinNetTest/check_cipher_bitcoin.cs @@ -0,0 +1,188 @@ +using System; +using NUnit.Framework; +using skycoin; +using utils; +namespace LibskycoinNetTest { + [TestFixture ()] + public class check_cipher_bitcoin { + utils.transutils utils = new transutils (); + + [Test] + public void TestDecodeBase58BitcoinAddress () { + var p = new cipher_PubKey (); + var s = new cipher_SecKey (); + var a = new cipher__BitcoinAddress (); + var addrTmp = new cipher__BitcoinAddress (); + + var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + skycoin.skycoin.SKY_cipher_BitcoinAddressFromPubKey (p, a); + err = skycoin.skycoin.SKY_cipher_BitcoinAddress_Verify (a, p); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + + err = skycoin.skycoin.SKY_cipher_DecodeBase58BitcoinAddress ("", addrTmp); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidBase58String); + + err = skycoin.skycoin.SKY_cipher_DecodeBase58BitcoinAddress ("cascs", addrTmp); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrAddressInvalidLength); + + var b = new GoSlice (); + skycoin.skycoin.SKY_cipher_BitcoinAddress_Bytes (a, b); + b.len = b.len / 2; + var h = new _GoString_ (); + skycoin.skycoin.SKY_base58_Hex2Base58Str (b, h); + err = skycoin.skycoin.SKY_cipher_DecodeBase58BitcoinAddress (h.p, addrTmp); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrAddressInvalidLength); + + b = new GoSlice (); + skycoin.skycoin.SKY_cipher_BitcoinAddress_Bytes (a, b); + h = new _GoString_ (); + skycoin.skycoin.SKY_base58_Hex2Base58Str (b, h); + err = skycoin.skycoin.SKY_cipher_DecodeBase58BitcoinAddress (h.p, addrTmp); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (a.isEqual (addrTmp), 1); + + var As = new _GoString_ (); + skycoin.skycoin.SKY_cipher_BitcoinAddress_String (a, As); + err = skycoin.skycoin.SKY_cipher_DecodeBase58BitcoinAddress (As.p, addrTmp); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (a.isEqual (addrTmp), 1); + + // preceding whitespace is invalid + var as2 = " " + As.p; + err = skycoin.skycoin.SKY_cipher_DecodeBase58BitcoinAddress (as2, addrTmp); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidBase58Char); + + // preceding zeroes are invalid + as2 = "000" + As.p; + err = skycoin.skycoin.SKY_cipher_DecodeBase58BitcoinAddress (as2, addrTmp); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidBase58Char); + + // trailing whitespace is invalid + as2 = As.p + " "; + err = skycoin.skycoin.SKY_cipher_DecodeBase58BitcoinAddress (as2, addrTmp); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidBase58Char); + + // trailing zeroes are invalid + as2 = As.p + "000"; + err = skycoin.skycoin.SKY_cipher_DecodeBase58BitcoinAddress (as2, addrTmp); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidBase58Char); + + } + + [Test] + public void TestBitcoinAddressFromBytes () { + var s = new skycoin.cipher_SecKey (); + var p = new skycoin.cipher_PubKey (); + var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK, "Failed SKY_cipher_GenerateKeyPair"); + var a = new skycoin.cipher__BitcoinAddress (); + skycoin.skycoin.SKY_cipher_BitcoinAddressFromPubKey (p, a); + var pk = new GoSlice (); + var b = new GoSlice (); + var a2 = new skycoin.cipher__BitcoinAddress (); + skycoin.skycoin.SKY_cipher_BitcoinAddress_Bytes (a, b); + err = skycoin.skycoin.SKY_cipher_BitcoinAddressFromBytes (b, a2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK, "Failed SKY_cipher_BitcoinAddressFromBytes"); + Assert.AreEqual (a2.isEqual (a), 1); + + // Invalid number of bytes + skycoin.skycoin.SKY_cipher_BitcoinAddress_Bytes (a, b); + b.len = b.len - 2; + err = skycoin.skycoin.SKY_cipher_BitcoinAddressFromBytes (b, a2); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrAddressInvalidLength); + + // Invalid checksum + skycoin.skycoin.SKY_cipher_BitcoinAddress_Bytes (a, b); + b.setAtChar ('2', (ulong) b.len - 1); + err = skycoin.skycoin.SKY_cipher_BitcoinAddressFromBytes (b, a2); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrAddressInvalidChecksum); + + a.Version = 2; + skycoin.skycoin.SKY_cipher_BitcoinAddress_Bytes (a, b); + err = skycoin.skycoin.SKY_cipher_BitcoinAddressFromBytes (b, a2); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrAddressInvalidVersion); + } + + [Test] + public void TestBitcoinAddressFromSecKey () { + var p = new cipher_PubKey (); + var s = new cipher_SecKey (); + var a = new cipher__BitcoinAddress (); + var a2 = new cipher__BitcoinAddress (); + skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); + var err = skycoin.skycoin.SKY_cipher_BitcoinAddressFromSecKey (s, a); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + // Valid pubkey+address + err = skycoin.skycoin.SKY_cipher_BitcoinAddress_Verify (a, p); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + + err = skycoin.skycoin.SKY_cipher_BitcoinAddressFromSecKey (new cipher_SecKey (), a2); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrPubKeyFromNullSecKey); + } + + [Test] + public void TestBitcoinAddressNull () { + var a = new cipher__BitcoinAddress (); + Assert.IsTrue (Convert.ToBoolean (skycoin.skycoin.SKY_cipher_BitcoinAddress_Null (a))); + + var p = new cipher_PubKey (); + var s = new cipher_SecKey (); + var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); + skycoin.skycoin.SKY_cipher_BitcoinAddressFromPubKey (p, a); + Assert.IsFalse (Convert.ToBoolean (skycoin.skycoin.SKY_cipher_BitcoinAddress_Null (a))); + } + + [Test] + public void TestBitcoinAddressVerify () { + var p = new cipher_PubKey (); + var s = new cipher_SecKey (); + var a = new cipher__BitcoinAddress (); + skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); + skycoin.skycoin.SKY_cipher_BitcoinAddressFromPubKey (p, a); + + // Valid pubkey+address + var err = skycoin.skycoin.SKY_cipher_BitcoinAddress_Verify (a, p); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + + // Invalid pubkey + err = skycoin.skycoin.SKY_cipher_BitcoinAddress_Verify (a, new cipher_PubKey ()); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrAddressInvalidPubKey); + var p2 = new cipher_PubKey (); + var s2 = new cipher_SecKey (); + skycoin.skycoin.SKY_cipher_GenerateKeyPair (p2, s2); + err = skycoin.skycoin.SKY_cipher_BitcoinAddress_Verify (a, p2); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrAddressInvalidPubKey); + + // Bad Version + a.Version = 0x01; + err = skycoin.skycoin.SKY_cipher_BitcoinAddress_Verify (a, p2); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrAddressInvalidVersion); + } + + [Test] + public void TestBitcoinWIPRoundTrio () { + var p = new cipher_PubKey (); + var seckey1 = new cipher_SecKey (); + var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, seckey1); + var wip1 = new _GoString_ (); + skycoin.skycoin.SKY_cipher_BitcoinWalletImportFormatFromSeckey (seckey1, wip1); + var seckey2 = new skycoin.cipher_SecKey (); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_SecKeyFromBitcoinWalletImportFormat (wip1.p, seckey2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var wip2 = new _GoString_ (); + skycoin.skycoin.SKY_cipher_BitcoinWalletImportFormatFromSeckey (seckey2, wip2); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (seckey1.isEqual (seckey2), 1); + var seckey1_hex = new _GoString_ (); + var seckey2_hex = new _GoString_ (); + err = skycoin.skycoin.SKY_cipher_SecKey_Hex (seckey1, seckey1_hex); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_SecKey_Hex (seckey2, seckey2_hex); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (seckey1_hex.p == seckey2_hex.p, true); + Assert.AreEqual (wip1.p == wip2.p, true); + } + } +} \ No newline at end of file diff --git a/LibskycoinNetTest/check_cipher_crypto.cs b/LibskycoinNetTest/check_cipher_crypto.cs index 32d0a8d5..26ef74c8 100644 --- a/LibskycoinNetTest/check_cipher_crypto.cs +++ b/LibskycoinNetTest/check_cipher_crypto.cs @@ -12,45 +12,53 @@ public void TestNewPubKey () { Assert.AreEqual (err, skycoin.skycoin.SKY_OK); err = skycoin.skycoin.SKY_cipher_NewPubKey (b, p); Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthPubKey); + b = new GoSlice (); err = skycoin.skycoin.SKY_cipher_RandByte (32, b); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); err = skycoin.skycoin.SKY_cipher_NewPubKey (b, p); Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthPubKey); + b = new GoSlice (); err = skycoin.skycoin.SKY_cipher_RandByte (34, b); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); err = skycoin.skycoin.SKY_cipher_NewPubKey (b, p); Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthPubKey); + b = new GoSlice (); err = skycoin.skycoin.SKY_cipher_RandByte (0, b); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); err = skycoin.skycoin.SKY_cipher_NewPubKey (b, p); Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthPubKey); + b = new GoSlice (); err = skycoin.skycoin.SKY_cipher_RandByte (100, b); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); err = skycoin.skycoin.SKY_cipher_NewPubKey (b, p); Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthPubKey); b = new GoSlice (); - err = skycoin.skycoin.SKY_cipher_RandByte (33, b); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + p = new cipher_PubKey (); err = skycoin.skycoin.SKY_cipher_NewPubKey (b, p); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthPubKey); + + var s = new cipher_SecKey (); + var pTemp = new GoSlice (); + err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); + pTemp = p.toSlice (); + Console.WriteLine (pTemp.len); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var b1 = new GoSlice (); - var p1 = new cipher_PubKey (); - err = skycoin.skycoin.SKY_cipher_RandByte (33, b1); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_NewPubKey (b1, p1); + var p2 = new cipher_PubKey (); + err = skycoin.skycoin.SKY_cipher_NewPubKey (pTemp, p2); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (p.isEqual (p2), 1); } [Test] public void TestPubKeyVerify () { + // Random bytes should not be valid, most of the time var failed = false; for (int i = 0; i < 10; i++) { var b = new GoSlice (); var err = skycoin.skycoin.SKY_cipher_RandByte (33, b); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); var p = new cipher_PubKey (); - err = skycoin.skycoin.SKY_cipher_NewPubKey (b, p); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + p.assignSlice (b); err = skycoin.skycoin.SKY_cipher_PubKey_Verify (p); if (err != skycoin.skycoin.SKY_OK) { failed = true; @@ -364,24 +372,10 @@ public void TestPubKeyFromSecKey () { err = skycoin.skycoin.SKY_cipher_PubKeyFromSecKey (s, p1); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); Assert.AreEqual (p1.isEqual (p), 1); - p1 = new cipher_PubKey (); - err = skycoin.skycoin.SKY_cipher_PubKeyFromSecKey (new cipher_SecKey (), p1); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrPubKeyFromNullSecKey); - var b = new GoSlice (); - err = skycoin.skycoin.SKY_cipher_RandByte (99, b); - s = new cipher_SecKey (); - err = skycoin.skycoin.SKY_cipher_NewSecKey (b, s); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthSecKey); - err = skycoin.skycoin.SKY_cipher_PubKeyFromSecKey (s, p); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrPubKeyFromNullSecKey); - b = new GoSlice (); - err = skycoin.skycoin.SKY_cipher_RandByte (33, b); + s = new cipher_SecKey (); - err = skycoin.skycoin.SKY_cipher_NewSecKey (b, s); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthSecKey); err = skycoin.skycoin.SKY_cipher_PubKeyFromSecKey (s, p); Assert.AreEqual (err, skycoin.skycoin.SKY_ErrPubKeyFromNullSecKey); - } [Test] @@ -467,32 +461,6 @@ public void TestGenerateDeterministicKeyPair () { Assert.AreEqual (err, skycoin.skycoin.SKY_OK); } - [Test] - public void TestSecKeTest () { - var p = new cipher_PubKey (); - var s = new cipher_SecKey (); - var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); - err = skycoin.skycoin.SKY_cipher_TestSecKey (s); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_TestSecKey (new cipher_SecKey ()); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidSecKyVerification); - } - - [Test] - public void TestSecKeyHashTest () { - var p = new cipher_PubKey (); - var s = new cipher_SecKey (); - var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); - var b = new GoSlice (); - var h = new cipher_SHA256 (); - err = skycoin.skycoin.SKY_cipher_RandByte (256, b); - err = skycoin.skycoin.SKY_cipher_SumSHA256 (b, h); - err = skycoin.skycoin.SKY_cipher_TestSecKeyHash (s, h); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_TestSecKeyHash (new cipher_SecKey (), h); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidSecKyVerification); - } - [Test] public void TestGenerateDeterministicKeyPairsUsesAllBytes () { // Tests that if a seed >128 bits is used, the generator does not ignore bits >128 @@ -510,5 +478,64 @@ public void TestGenerateDeterministicKeyPairsUsesAllBytes () { Assert.AreEqual (err, skycoin.skycoin.SKY_OK); Assert.AreEqual (seckeys.isEqual (seckeys2), 0); } + + [Test] + public void TestPubkey1 () { + // This was migrated from coin/coin_test.go + var a = "02fa939957e9fc52140e180264e621c2576a1bfe781f88792fb315ca3d1786afb8"; + var b = new GoSlice (); + var err = skycoin.skycoin.SKY_base58_String2Hex (a, b); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + + var p = new cipher_PubKey (); + err = skycoin.skycoin.SKY_cipher_NewPubKey (b, p); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_PubKey_Verify (p); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + + var addr = new cipher__Address (); + err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, addr); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_Address_Verify (addr, p); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + + } + + [Test] + public void TestSecKey1 () { + // This was migrated from coin/coin_test.go + var a = "5a42c0643bdb465d90bf673b99c14f5fa02db71513249d904573d2b8b63d353d"; + var b = new GoSlice (); + var err = skycoin.skycoin.SKY_base58_String2Hex (a, b); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (b.len, 32); + + var seckey = new cipher_SecKey (); + err = skycoin.skycoin.SKY_cipher_NewSecKey (b, seckey); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_SecKey_Verify (seckey); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + + var p = new cipher_PubKey (); + err = skycoin.skycoin.SKY_cipher_PubKeyFromSecKey (seckey, p); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_cipher_PubKey_Verify (p); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + + var addr = new cipher__Address (); + err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, addr); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + skycoin.skycoin.SKY_cipher_Address_Verify (addr, p); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + + var test = new GoSlice (); + var strTest = new _GoString_ (); + strTest.SetString ("test message"); + test.convertString (strTest); + var hash = new cipher_SHA256 (); + skycoin.skycoin.SKY_cipher_SumSHA256 (test, hash); + err = skycoin.skycoin.SKY_cipher_CheckSecKeyHash (seckey, hash); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + } } } \ No newline at end of file diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index 57013f32..7e453f37 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit 57013f3210a4342ef96c6cc49f0ca4f4e9b907e9 +Subproject commit 7e453f37a839f4b5ce95b9fbcbb29a66695caaed diff --git a/swig/include/libskycoin.h b/swig/include/libskycoin.h index 2785a8f9..52311070 100644 --- a/swig/include/libskycoin.h +++ b/swig/include/libskycoin.h @@ -258,7 +258,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "wallet.addresses.go" +#line 7 "wallet.addresses.go" #include @@ -440,7 +440,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 5 "util.cert.cert.go" +#line 10 "util.fee.fee.go" #include @@ -450,7 +450,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "util.fee.fee.go" +#line 11 "cli.cli.go" #include @@ -460,7 +460,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 11 "cli.cli.go" +#line 12 "cli.create_rawtx.go" #include @@ -470,7 +470,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 12 "cli.create_rawtx.go" +#line 5 "util.file.file.go" #include @@ -480,13 +480,13 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 5 "util.file.file.go" +#line 3 "cipher.bitcoin.go" +#include +#include - #include - #include +#include "skytypes.h" - #include "skytypes.h" #line 1 "cgo-generated-wrapper" @@ -672,7 +672,7 @@ extern GoUint32 SKY_api_Client_BlockByHash(Client__Handle p0, GoString p1, Handl extern GoUint32 SKY_api_Client_BlockBySeq(Client__Handle p0, GoUint64 p1, Handle* p2); -extern GoUint32 SKY_api_Client_Blocks(Client__Handle p0, GoUint64 p1, GoUint64 p2, Handle* p3); +extern GoUint32 SKY_api_Client_Blocks(Client__Handle p0, GoSlice p1, Handle* p2); extern GoUint32 SKY_api_Client_LastBlocks(Client__Handle p0, GoUint64 p1, Handle* p2); @@ -708,7 +708,7 @@ extern GoUint32 SKY_api_Client_WalletFolderName(Client__Handle p0, Handle* p1); extern GoUint32 SKY_api_Client_NewSeed(Client__Handle p0, GoInt p1, GoString_* p2); -extern GoUint32 SKY_api_Client_GetWalletSeed(Client__Handle p0, GoString p1, GoString p2, GoString_* p3); +extern GoUint32 SKY_api_Client_WalletSeed(Client__Handle p0, GoString p1, GoString p2, GoString_* p3); extern GoUint32 SKY_api_Client_NetworkConnection(Client__Handle p0, GoString p1, Handle* p2); @@ -900,7 +900,7 @@ extern GoUint32 SKY_webrpc_Client_GetTransactionByID(WebRpcClient__Handle p0, Go extern GoUint32 SKY_webrpc_Client_GetAddressUxOuts(WebRpcClient__Handle p0, GoSlice p1, coin__UxArray* p2); -extern GoUint32 SKY_webrpc_Client_GetBlocks(WebRpcClient__Handle p0, GoUint64 p1, GoUint64 p2, coin__UxArray* p3); +extern GoUint32 SKY_webrpc_Client_GetBlocksInRange(WebRpcClient__Handle p0, GoUint64 p1, GoUint64 p2, coin__UxArray* p3); extern GoUint32 SKY_webrpc_Client_GetBlocksBySeq(WebRpcClient__Handle p0, GoSlice p1, coin__UxArray* p2); @@ -930,12 +930,6 @@ extern GoUint32 SKY_coin_Uint64ToInt64(GoUint64 p0, GoInt64* p1); extern GoUint32 SKY_coin_Int64ToUint64(GoInt64 p0, GoUint64* p1); -extern GoUint32 SKY_cipher_PubKeySlice_Len(coin__UxArray* p0, GoInt* p1); - -extern GoUint32 SKY_cipher_PubKeySlice_Less(coin__UxArray* p0, GoInt p1, GoInt p2, GoUint8* p3); - -extern GoUint32 SKY_cipher_PubKeySlice_Swap(coin__UxArray* p0, GoInt p1, GoInt p2); - extern GoUint32 SKY_cipher_RandByte(GoInt p0, coin__UxArray* p1); extern GoUint32 SKY_cipher_NewPubKey(GoSlice p0, cipher__PubKey* p1); @@ -950,7 +944,7 @@ extern GoUint32 SKY_cipher_PubKey_Verify(cipher__PubKey* p0); extern GoUint32 SKY_cipher_PubKey_Hex(cipher__PubKey* p0, GoString_* p1); -extern GoUint32 SKY_cipher_PubKey_ToAddressHash(cipher__PubKey* p0, cipher__Ripemd160* p1); +extern GoUint32 SKY_cipher_PubKeyRipemd160(cipher__PubKey* p0, cipher__Ripemd160* p1); extern GoUint32 SKY_cipher_NewSecKey(GoSlice p0, cipher__SecKey* p1); @@ -976,6 +970,8 @@ extern GoUint32 SKY_cipher_VerifySignedHash(cipher__Sig* p0, cipher__SHA256* p1) extern GoUint32 SKY_cipher_VerifySignature(cipher__PubKey* p0, cipher__Sig* p1, cipher__SHA256* p2); +extern GoUint32 SKY_cipher_GenerateKeyPair(cipher__PubKey* p0, cipher__SecKey* p1); + extern GoUint32 SKY_cipher_GenerateDeterministicKeyPair(GoSlice p0, cipher__PubKey* p1, cipher__SecKey* p2); extern GoUint32 SKY_cipher_DeterministicKeyPairIterator(GoSlice p0, coin__UxArray* p1, cipher__PubKey* p2, cipher__SecKey* p3); @@ -984,11 +980,9 @@ extern GoUint32 SKY_cipher_GenerateDeterministicKeyPairs(GoSlice p0, GoInt p1, c extern GoUint32 SKY_cipher_GenerateDeterministicKeyPairsSeed(GoSlice p0, GoInt p1, coin__UxArray* p2, coin__UxArray* p3); -extern GoUint32 SKY_cipher_TestSecKey(cipher__SecKey* p0); +extern GoUint32 SKY_cipher_CheckSecKey(cipher__SecKey* p0); -extern GoUint32 SKY_cipher_TestSecKeyHash(cipher__SecKey* p0, cipher__SHA256* p1); - -extern GoUint32 SKY_cipher_GenerateKeyPair(cipher__PubKey* p0, cipher__SecKey* p1); +extern GoUint32 SKY_cipher_CheckSecKeyHash(cipher__SecKey* p0, cipher__SHA256* p1); extern GoUint32 SKY_secp256k1go_Signature_Create(Signature_Handle* p0); @@ -1056,10 +1050,6 @@ extern GoUint32 SKY_wallet_Entry_VerifyPublic(wallet__Entry* p0); extern GoUint32 SKY_wallet_CreateAddresses(GoString p0, GoString p1, GoInt p2, GoUint8 p3, ReadableWallet__Handle* p4); -extern GoUint32 SKY_wallet_GetSkycoinWalletEntry(cipher__PubKey* p0, cipher__SecKey* p1, ReadableEntry__Handle* p2); - -extern GoUint32 SKY_wallet_GetBitcoinWalletEntry(cipher__PubKey* p0, cipher__SecKey* p1, ReadableEntry__Handle* p2); - extern GoUint32 SKY_secp256k1go_XYZ_Print(secp256k1go__XYZ* p0, GoString p1); extern GoUint32 SKY_secp256k1go_XYZ_SetXY(secp256k1go__XYZ* p0, secp256k1go__XY* p1); @@ -1118,32 +1108,16 @@ extern GoUint32 SKY_cipher_AddressFromPubKey(cipher__PubKey* p0, cipher__Address extern GoUint32 SKY_cipher_AddressFromSecKey(cipher__SecKey* p0, cipher__Address* p1); -extern GoUint32 SKY_cipher_BitcoinDecodeBase58Address(GoString p0, cipher__Address* p1); - extern GoUint32 SKY_cipher_Address_Null(cipher__Address* p0, GoUint8* p1); extern GoUint32 SKY_cipher_Address_Bytes(cipher__Address* p0, coin__UxArray* p1); -extern GoUint32 SKY_cipher_Address_BitcoinBytes(cipher__Address* p0, coin__UxArray* p1); - extern GoUint32 SKY_cipher_Address_Verify(cipher__Address* p0, cipher__PubKey* p1); extern GoUint32 SKY_cipher_Address_String(cipher__Address* p0, GoString_* p1); -extern GoUint32 SKY_cipher_Address_BitcoinString(cipher__Address* p0, GoString_* p1); - extern GoUint32 SKY_cipher_Address_Checksum(cipher__Address* p0, cipher__Checksum* p1); -extern GoUint32 SKY_cipher_Address_BitcoinChecksum(cipher__Address* p0, cipher__Checksum* p1); - -extern GoUint32 SKY_cipher_BitcoinAddressFromPubkey(cipher__PubKey* p0, GoString_* p1); - -extern GoUint32 SKY_cipher_BitcoinWalletImportFormatFromSeckey(cipher__SecKey* p0, GoString_* p1); - -extern GoUint32 SKY_cipher_BitcoinAddressFromBytes(GoSlice p0, cipher__Address* p1); - -extern GoUint32 SKY_cipher_SecKeyFromWalletImportFormat(GoString p0, cipher__SecKey* p1); - extern GoUint32 SKY_JsonEncode_Handle(Handle p0, GoString_* p1); extern GoUint32 SKY_Handle_Progress_GetCurrent(Handle p0, GoUint64* p1); @@ -1312,8 +1286,6 @@ extern GoUint32 SKY_apputil_CatchDebug(); extern GoUint32 SKY_apputil_PrintProgramStatus(); -extern GoUint32 SKY_cert_CreateCertIfNotExists(GoString p0, GoString p1, GoString p2, GoString p3); - extern GoUint32 SKY_fee_VerifyTransactionFee(Transaction__Handle p0, GoUint64 p1); extern GoUint32 SKY_fee_VerifyTransactionFeeForHours(GoUint64 p0, GoUint64 p1); @@ -1356,9 +1328,31 @@ extern GoUint32 SKY_file_ResolveResourceDirectory(GoString p0, GoString_* p1); extern GoUint32 SKY_file_DetermineResourcePath(GoString p0, GoString p1, GoString p2, GoString_* p3); -extern GoUint32 SKY_cli_GetWalletOutputsFromFile(WebRpcClient__Handle p0, GoString p1, ReadableOutputSet_Handle* p2); +extern GoUint32 SKY_cipher_DecodeBase58BitcoinAddress(GoString p0, cipher__BitcoinAddress* p1); + +extern void SKY_cipher_BitcoinAddressFromPubKey(cipher__PubKey* p0, cipher__BitcoinAddress* p1); + +extern GoUint32 SKY_cipher_BitcoinAddressFromSecKey(cipher__SecKey* p0, cipher__BitcoinAddress* p1); + +extern void SKY_cipher_BitcoinWalletImportFormatFromSeckey(cipher__SecKey* p0, GoString_* p1); + +extern GoUint32 SKY_cipher_BitcoinAddressFromBytes(GoSlice p0, cipher__BitcoinAddress* p1); + +extern GoUint32 SKY_cipher_SecKeyFromBitcoinWalletImportFormat(GoString p0, cipher__SecKey* p1); + +extern GoUint8 SKY_cipher_BitcoinAddress_Null(cipher__BitcoinAddress* p0); + +extern void SKY_cipher_BitcoinAddress_Bytes(cipher__BitcoinAddress* p0, coin__UxArray* p1); + +extern GoUint32 SKY_cipher_BitcoinAddress_Verify(cipher__BitcoinAddress* p0, cipher__PubKey* p1); + +extern void SKY_cipher_BitcoinAddress_String(cipher__BitcoinAddress* p0, GoString_* p1); + +extern void SKY_cipher_BitcoinAddress_Checksum(cipher__BitcoinAddress* p0, cipher__Checksum* p1); + +extern GoUint32 SKY_cli_GetWalletOutputsFromFile(WebRpcClient__Handle p0, GoString p1, ReadableUnspentOutputsSummary_Handle* p2); -extern GoUint32 SKY_cli_GetWalletOutputs(WebRpcClient__Handle p0, Wallet__Handle* p1, UnspentOutputsSummary_Handle* p2); +extern GoUint32 SKY_cli_GetWalletOutputs(WebRpcClient__Handle p0, Wallet__Handle* p1, ReadableUnspentOutputsSummary_Handle* p2); extern GoUint32 SKY_testutil_MakeAddress(cipher__Address* p0); From 5a304a5b64771ff94a60128aa6a7627fc337a2ad Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Sat, 13 Oct 2018 07:49:44 -0400 Subject: [PATCH 48/73] [test] refs #8 Added submodule and test Tests run: 93, Errors: 0, Failures: 0, Inconclusive: 0, Time: 19,5567226 seconds Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0 --- LibskycoinNet/skycoin/skycoin.cs | 70 ++------ LibskycoinNet/skycoin/skycoinPINVOKE.cs | 32 +--- LibskycoinNet/skycoin/skycoinnet_wrap.c | 174 ++++---------------- LibskycoinNetTest/check_cipher_sha256xor.cs | 4 +- gopath/src/github.com/skycoin/skycoin | 2 +- swig/include/libskycoin.h | 40 ++--- 6 files changed, 68 insertions(+), 254 deletions(-) diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs index 08a4e065..1e341396 100644 --- a/LibskycoinNet/skycoin/skycoin.cs +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -1827,32 +1827,10 @@ public static uint SKY_cli_GetBalanceOfAddresses(SWIGTYPE_p_WebRpcClient__Handle return ret; } - public static uint SKY_wallet_NewReadableEntry(wallet__Entry p0, SWIGTYPE_p_ReadableEntry__Handle p1) { - uint ret = skycoinPINVOKE.SKY_wallet_NewReadableEntry(wallet__Entry.getCPtr(p0), SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p1)); - return ret; - } - - public static uint SKY_wallet_LoadReadableEntry(string p0, SWIGTYPE_p_ReadableEntry__Handle p1) { -var tmpp0 = p0; - { - uint ret = skycoinPINVOKE.SKY_wallet_LoadReadableEntry(tmpp0, SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p1)); - return ret; - } - } - - public static uint SKY_wallet_NewReadableEntryFromPubkey(string p0, SWIGTYPE_p_ReadableEntry__Handle p1) { + public static uint SKY_wallet_NewReadableEntry(string p0, wallet__Entry p1, SWIGTYPE_p_ReadableEntry__Handle p2) { var tmpp0 = p0; { - uint ret = skycoinPINVOKE.SKY_wallet_NewReadableEntryFromPubkey(tmpp0, SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p1)); - return ret; - } - } - - public static uint SKY_wallet_ReadableEntry_Save(SWIGTYPE_p_ReadableEntry__Handle p0, string p1) { -var tmpp1 = p1; - { - uint ret = skycoinPINVOKE.SKY_wallet_ReadableEntry_Save(SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p0), tmpp1); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + uint ret = skycoinPINVOKE.SKY_wallet_NewReadableEntry(tmpp0, wallet__Entry.getCPtr(p1), SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p2)); return ret; } } @@ -2616,15 +2594,6 @@ public static uint SKY_wallet_Entry_VerifyPublic(wallet__Entry p0) { return ret; } - public static uint SKY_wallet_CreateAddresses(string p0, string p1, long p2, byte p3, SWIGTYPE_p_ReadableWallet__Handle p4) { -var tmpp0 = p0; -var tmpp1 = p1; - { - uint ret = skycoinPINVOKE.SKY_wallet_CreateAddresses(tmpp0, tmpp1, p2, p3, SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p4)); - return ret; - } - } - public static uint SKY_secp256k1go_XYZ_Print(secp256k1go__XYZ p0, string p1) { var tmpp1 = p1; { @@ -3383,6 +3352,16 @@ public static uint SKY_apputil_PrintProgramStatus() { return ret; } + public static uint SKY_certutil_NewTLSCertPair(string p0, string p1, GoSlice p2, GoSlice p3, GoSlice p4) { +var tmpp0 = p0; +var tmpp1 = p1; + { + uint ret = skycoinPINVOKE.SKY_certutil_NewTLSCertPair(tmpp0, tmpp1, GoSlice.getCPtr(p2), GoSlice.getCPtr (p3), GoSlice.getCPtr (p4)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + public static uint SKY_fee_VerifyTransactionFee(SWIGTYPE_p_Transaction__Handle p0, ulong p1) { uint ret = skycoinPINVOKE.SKY_fee_VerifyTransactionFee(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); @@ -4163,31 +4142,6 @@ public static uint SKY_coin_VerifyTransactionHoursSpending(ulong p0, GoSlice p1, return ret; } - public static uint b64e_size(uint in_size) { - uint ret = skycoinPINVOKE.b64e_size(in_size); - return ret; - } - - public static uint b64d_size(uint in_size) { - uint ret = skycoinPINVOKE.b64d_size(in_size); - return ret; - } - - public static uint b64_encode(SWIGTYPE_p_unsigned_char arg0, uint in_len, SWIGTYPE_p_unsigned_char arg2) { - uint ret = skycoinPINVOKE.b64_encode(SWIGTYPE_p_unsigned_char.getCPtr(arg0), in_len, SWIGTYPE_p_unsigned_char.getCPtr(arg2)); - return ret; - } - - public static uint b64_encodef(string InFile, string OutFile) { - uint ret = skycoinPINVOKE.b64_encodef(InFile, OutFile); - return ret; - } - - public static int b64_decodef(string InFile, string OutFile) { - int ret = skycoinPINVOKE.b64_decodef(InFile, OutFile); - return ret; - } - public static readonly int SKY_OK = skycoinPINVOKE.get_SKY_OK(); public static readonly int SKY_ERROR = skycoinPINVOKE.get_SKY_ERROR(); public static readonly int SKY_BAD_HANDLE = skycoinPINVOKE.get_SKY_BAD_HANDLE(); diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index 7f0915a3..f133a499 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -1506,16 +1506,7 @@ static skycoinPINVOKE() { public static extern uint SKY_cli_GetBalanceOfAddresses(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewReadableEntry")] - public static extern uint SKY_wallet_NewReadableEntry(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_LoadReadableEntry")] - public static extern uint SKY_wallet_LoadReadableEntry(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewReadableEntryFromPubkey")] - public static extern uint SKY_wallet_NewReadableEntryFromPubkey(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableEntry_Save")] - public static extern uint SKY_wallet_ReadableEntry_Save(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + public static extern uint SKY_wallet_NewReadableEntry(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_LoadReadableWallet")] public static extern uint SKY_wallet_LoadReadableWallet(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1829,9 +1820,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Entry_VerifyPublic")] public static extern uint SKY_wallet_Entry_VerifyPublic(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_CreateAddresses")] - public static extern uint SKY_wallet_CreateAddresses(string jarg1, string jarg2, long jarg3, byte jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Print")] public static extern uint SKY_secp256k1go_XYZ_Print(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); @@ -2183,6 +2171,9 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_apputil_PrintProgramStatus")] public static extern uint SKY_apputil_PrintProgramStatus(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_certutil_NewTLSCertPair")] + public static extern uint SKY_certutil_NewTLSCertPair(string jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_VerifyTransactionFee")] public static extern uint SKY_fee_VerifyTransactionFee(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); @@ -3628,21 +3619,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrVerifySignatureInvalidPubkeysLength")] public static extern int get_SKY_ErrVerifySignatureInvalidPubkeysLength(); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_b64e_size")] - public static extern uint b64e_size(uint jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_b64d_size")] - public static extern uint b64d_size(uint jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_b64_encode")] - public static extern uint b64_encode(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_b64_encodef")] - public static extern uint b64_encodef(string jarg1, string jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_b64_decodef")] - public static extern int b64_decodef(string jarg1, string jarg2); } } diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index 936fb60e..5b27e532 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -278,7 +278,7 @@ SWIGEXPORT void SWIGSTDCALL SWIGRegisterStringCallback_skycoin(SWIG_CSharpString #define SWIG_FILE_WITH_INIT #include "libskycoin.h" #include "swig.h" - #include "base64.h" + // #include "base64.h" void destroy_cipher_SecKeys(cipher_SecKeys* p){ @@ -8734,63 +8734,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetBalanceOfAddresses } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewReadableEntry(void * jarg1, void * jarg2) { - unsigned int jresult ; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; - ReadableEntry__Handle *arg2 = (ReadableEntry__Handle *) 0 ; - GoUint32 result; - - arg1 = (wallet__Entry *)jarg1; - arg2 = (ReadableEntry__Handle *)jarg2; - result = (GoUint32)SKY_wallet_NewReadableEntry(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_LoadReadableEntry(char* jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewReadableEntry(char* jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; GoString arg1 ; - ReadableEntry__Handle *arg2 = (ReadableEntry__Handle *) 0 ; - GoUint32 result; - - (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); - arg2 = (ReadableEntry__Handle *)jarg2; - result = (GoUint32)SKY_wallet_LoadReadableEntry(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewReadableEntryFromPubkey(char* jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - ReadableEntry__Handle *arg2 = (ReadableEntry__Handle *) 0 ; + wallet__Entry *arg2 = (wallet__Entry *) 0 ; + ReadableEntry__Handle *arg3 = (ReadableEntry__Handle *) 0 ; GoUint32 result; (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); - arg2 = (ReadableEntry__Handle *)jarg2; - result = (GoUint32)SKY_wallet_NewReadableEntryFromPubkey(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableEntry_Save(void * jarg1, char* jarg2) { - unsigned int jresult ; - ReadableEntry__Handle arg1 ; - GoString arg2 ; - ReadableEntry__Handle *argp1 ; - GoUint32 result; - - argp1 = (ReadableEntry__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null ReadableEntry__Handle", 0); - return 0; - } - arg1 = *argp1; - (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); - result = (GoUint32)SKY_wallet_ReadableEntry_Save(arg1,arg2); + arg2 = (wallet__Entry *)jarg2; + arg3 = (ReadableEntry__Handle *)jarg3; + result = (GoUint32)SKY_wallet_NewReadableEntry(arg1,arg2,arg3); jresult = result; return jresult; } @@ -10704,26 +10658,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Entry_VerifyPublic } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CreateAddresses(char* jarg1, char* jarg2, long long jarg3, unsigned char jarg4, void * jarg5) { - unsigned int jresult ; - GoString arg1 ; - GoString arg2 ; - GoInt arg3 ; - GoUint8 arg4 ; - ReadableWallet__Handle *arg5 = (ReadableWallet__Handle *) 0 ; - GoUint32 result; - - (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); - (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); - arg3 = (GoInt)jarg3; - arg4 = (GoUint8)jarg4; - arg5 = (ReadableWallet__Handle *)jarg5; - result = (GoUint32)SKY_wallet_CreateAddresses(arg1,arg2,arg3,arg4,arg5); - jresult = result; - return jresult; -} - - SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Print(void * jarg1, char* jarg2) { unsigned int jresult ; secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; @@ -12932,6 +12866,32 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_apputil_PrintProgramStatu } +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_certutil_NewTLSCertPair(char* jarg1, char* jarg2, void * jarg3, GoSlice_ * jarg4, GoSlice_ * jarg5) { + unsigned int jresult ; + GoString arg1 ; + GoString arg2 ; + GoSlice arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + coin__UxArray *arg5 = (coin__UxArray *) 0 ; + GoSlice *argp3 ; + GoUint32 result; + + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); + argp3 = (GoSlice *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg3 = *argp3; + arg4 = (coin__UxArray *)jarg4; + arg5 = (coin__UxArray *)jarg5; + result = (GoUint32)SKY_certutil_NewTLSCertPair(arg1,arg2,arg3,arg4,arg5); + jresult = result; + return jresult; +} + + SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_VerifyTransactionFee(void * jarg1, unsigned long long jarg2) { unsigned int jresult ; Transaction__Handle arg1 ; @@ -19052,74 +19012,6 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrVerifySignatureInvalidPubke } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_b64e_size(unsigned int jarg1) { - unsigned int jresult ; - unsigned int arg1 ; - unsigned int result; - - arg1 = (unsigned int)jarg1; - result = (unsigned int)b64e_size(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_b64d_size(unsigned int jarg1) { - unsigned int jresult ; - unsigned int arg1 ; - unsigned int result; - - arg1 = (unsigned int)jarg1; - result = (unsigned int)b64d_size(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_b64_encode(void * jarg1, unsigned int jarg2, void * jarg3) { - unsigned int jresult ; - unsigned char *arg1 = (unsigned char *) 0 ; - unsigned int arg2 ; - unsigned char *arg3 = (unsigned char *) 0 ; - unsigned int result; - - arg1 = (unsigned char *)jarg1; - arg2 = (unsigned int)jarg2; - arg3 = (unsigned char *)jarg3; - result = (unsigned int)b64_encode((unsigned char const *)arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_b64_encodef(char * jarg1, char * jarg2) { - unsigned int jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - unsigned int result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - result = (unsigned int)b64_encodef(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_b64_decodef(char * jarg1, char * jarg2) { - int jresult ; - char *arg1 = (char *) 0 ; - char *arg2 = (char *) 0 ; - int result; - - arg1 = (char *)jarg1; - arg2 = (char *)jarg2; - result = (int)b64_decodef(arg1,arg2); - jresult = result; - return jresult; -} - - #ifdef __cplusplus } #endif diff --git a/LibskycoinNetTest/check_cipher_sha256xor.cs b/LibskycoinNetTest/check_cipher_sha256xor.cs index 4354d469..51364dbd 100644 --- a/LibskycoinNetTest/check_cipher_sha256xor.cs +++ b/LibskycoinNetTest/check_cipher_sha256xor.cs @@ -187,9 +187,9 @@ public void TestDecrypt () { pwdStr.SetString ("pwd"); pwd.convertString (pwdStr); err = skycoin.skycoin.SKY_encrypt_Sha256Xor_Encrypt (data, pwd, encrypted); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK, i.ToString () + " failed SKY_encrypt_Sha256Xor_Encrypt"); err = skycoin.skycoin.SKY_encrypt_Sha256Xor_Decrypt (encrypted, pwd, decrypted); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK, i.ToString () + " failed SKY_encrypt_Sha256Xor_Decrypt"); Assert.AreEqual (data.isEqual (decrypted), 1); } } diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index 7e453f37..9db63491 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit 7e453f37a839f4b5ce95b9fbcbb29a66695caaed +Subproject commit 9db6349143a28b59787a87f6b87d97648e5ab99a diff --git a/swig/include/libskycoin.h b/swig/include/libskycoin.h index 52311070..d3bad5aa 100644 --- a/swig/include/libskycoin.h +++ b/swig/include/libskycoin.h @@ -24,7 +24,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #include #include "skytypes.h" - #include "feecalc.h" + #include "skyfee.h" #line 1 "cgo-generated-wrapper" @@ -258,16 +258,6 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 7 "wallet.addresses.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - #line 9 "cipher.secp256k1-go.secp256k1-go2.xyz.go" @@ -346,8 +336,6 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #include #include "skytypes.h" - #include "skytypes.h" - #line 1 "cgo-generated-wrapper" #line 3 "libsky_handle_helper.go" @@ -440,6 +428,16 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" +#line 9 "util.cert.cert.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + #line 10 "util.fee.fee.go" @@ -540,14 +538,14 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 12 "coin.transactions.go" +#line 13 "coin.transactions.go" #include #include #include "skytypes.h" - #include "feecalc.h" + #include "skyfee.h" #line 1 "cgo-generated-wrapper" @@ -832,13 +830,7 @@ extern GoUint32 SKY_cli_CheckWalletBalance(WebRpcClient__Handle p0, GoString p1, extern GoUint32 SKY_cli_GetBalanceOfAddresses(WebRpcClient__Handle p0, GoSlice p1, BalanceResult_Handle* p2); -extern GoUint32 SKY_wallet_NewReadableEntry(wallet__Entry* p0, ReadableEntry__Handle* p1); - -extern GoUint32 SKY_wallet_LoadReadableEntry(GoString p0, ReadableEntry__Handle* p1); - -extern GoUint32 SKY_wallet_NewReadableEntryFromPubkey(GoString p0, ReadableEntry__Handle* p1); - -extern GoUint32 SKY_wallet_ReadableEntry_Save(ReadableEntry__Handle p0, GoString p1); +extern GoUint32 SKY_wallet_NewReadableEntry(GoString p0, wallet__Entry* p1, ReadableEntry__Handle* p2); extern GoUint32 SKY_wallet_LoadReadableWallet(GoString p0, ReadableWallet__Handle* p1); @@ -1048,8 +1040,6 @@ extern GoUint32 SKY_wallet_Entry_Verify(wallet__Entry* p0); extern GoUint32 SKY_wallet_Entry_VerifyPublic(wallet__Entry* p0); -extern GoUint32 SKY_wallet_CreateAddresses(GoString p0, GoString p1, GoInt p2, GoUint8 p3, ReadableWallet__Handle* p4); - extern GoUint32 SKY_secp256k1go_XYZ_Print(secp256k1go__XYZ* p0, GoString p1); extern GoUint32 SKY_secp256k1go_XYZ_SetXY(secp256k1go__XYZ* p0, secp256k1go__XY* p1); @@ -1286,6 +1276,8 @@ extern GoUint32 SKY_apputil_CatchDebug(); extern GoUint32 SKY_apputil_PrintProgramStatus(); +extern GoUint32 SKY_certutil_NewTLSCertPair(GoString p0, GoString p1, GoSlice p2, coin__UxArray* p3, coin__UxArray* p4); + extern GoUint32 SKY_fee_VerifyTransactionFee(Transaction__Handle p0, GoUint64 p1); extern GoUint32 SKY_fee_VerifyTransactionFeeForHours(GoUint64 p0, GoUint64 p1); From 8de0b15861f390ce16d0b6a27129e51c9d1aa9f4 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Sat, 13 Oct 2018 08:02:53 -0400 Subject: [PATCH 49/73] [test] refs #8 Added submodule and test Tests run: 93, Errors: 0, Failures: 0, Inconclusive: 0, Time: 19,5567226 seconds Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0 --- LibskycoinNet/skycoin/skycoin.cs | 2 +- LibskycoinNet/skycoin/skycoinPINVOKE.cs | 4 ++-- LibskycoinNet/skycoin/skycoinnet_wrap.c | 10 +++++----- gopath/src/github.com/skycoin/skycoin | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs index 1e341396..8fd6d4d2 100644 --- a/LibskycoinNet/skycoin/skycoin.cs +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -4145,7 +4145,7 @@ public static uint SKY_coin_VerifyTransactionHoursSpending(ulong p0, GoSlice p1, public static readonly int SKY_OK = skycoinPINVOKE.get_SKY_OK(); public static readonly int SKY_ERROR = skycoinPINVOKE.get_SKY_ERROR(); public static readonly int SKY_BAD_HANDLE = skycoinPINVOKE.get_SKY_BAD_HANDLE(); - public static readonly int SKY_API_LOCKED = skycoinPINVOKE.get_SKY_API_LOCKED(); + public static readonly int SKY_INVALID_TIMESTRING = skycoinPINVOKE.get_SKY_INVALID_TIMESTRING(); public static readonly int SKY_PKG_API = skycoinPINVOKE.get_SKY_PKG_API(); public static readonly int SKY_PKG_CIPHER = skycoinPINVOKE.get_SKY_PKG_CIPHER(); public static readonly int SKY_PKG_CLI = skycoinPINVOKE.get_SKY_PKG_CLI(); diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index f133a499..01061833 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -3104,8 +3104,8 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_BAD_HANDLE")] public static extern int get_SKY_BAD_HANDLE(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_API_LOCKED")] - public static extern int get_SKY_API_LOCKED(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_INVALID_TIMESTRING")] + public static extern int get_SKY_INVALID_TIMESTRING(); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_API")] public static extern int get_SKY_PKG_API(); diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index 5b27e532..91fc68a1 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -15234,10 +15234,10 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher__BitcoinAddress_isEqual(void * SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher__BitcoinAddress_Version(void * jarg1, unsigned char jarg2) { cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; - unsigned char arg2 ; + GoUint8_ arg2 ; arg1 = (cipher__BitcoinAddress *)jarg1; - arg2 = (unsigned char)jarg2; + arg2 = (GoUint8_)jarg2; if (arg1) (arg1)->Version = arg2; } @@ -15245,10 +15245,10 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher__BitcoinAddress_Version(vo SWIGEXPORT unsigned char SWIGSTDCALL CSharp_skycoin_get_cipher__BitcoinAddress_Version(void * jarg1) { unsigned char jresult ; cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; - unsigned char result; + GoUint8_ result; arg1 = (cipher__BitcoinAddress *)jarg1; - result = (unsigned char) ((arg1)->Version); + result = ((arg1)->Version); jresult = result; return jresult; } @@ -17292,7 +17292,7 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_BAD_HANDLE() { } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_API_LOCKED() { +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_INVALID_TIMESTRING() { int jresult ; int result; diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index 9db63491..85682f19 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit 9db6349143a28b59787a87f6b87d97648e5ab99a +Subproject commit 85682f190b91237e4704382a962b53116a3135ea From c80803648aea0f3482fed4f1a92af906f2e11552 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Sat, 13 Oct 2018 15:27:41 -0400 Subject: [PATCH 50/73] [test][libdotnet] refs #8 Added update submodule and remove test sha256xor --- LibskycoinNet/skycoin/InputTestData.cs | 59 ++++++ LibskycoinNet/skycoin/InputTestDataJSON.cs | 59 ++++++ LibskycoinNet/skycoin/KeysTestData.cs | 92 +++++++++ LibskycoinNet/skycoin/KeysTestDataJSON.cs | 0 LibskycoinNet/skycoin/skycoinnet_wrap.c | 1 - LibskycoinNetTest/LibskycoinNetTest.csproj | 2 - LibskycoinNetTest/check_cipher_sha256xor.cs | 197 -------------------- LibskycoinNetTest/check_coin_coin.cs | 83 --------- gopath/src/github.com/skycoin/skycoin | 2 +- 9 files changed, 211 insertions(+), 284 deletions(-) create mode 100644 LibskycoinNet/skycoin/InputTestData.cs create mode 100644 LibskycoinNet/skycoin/InputTestDataJSON.cs create mode 100644 LibskycoinNet/skycoin/KeysTestData.cs create mode 100644 LibskycoinNet/skycoin/KeysTestDataJSON.cs delete mode 100644 LibskycoinNetTest/check_cipher_sha256xor.cs delete mode 100644 LibskycoinNetTest/check_coin_coin.cs diff --git a/LibskycoinNet/skycoin/InputTestData.cs b/LibskycoinNet/skycoin/InputTestData.cs new file mode 100644 index 00000000..378e402d --- /dev/null +++ b/LibskycoinNet/skycoin/InputTestData.cs @@ -0,0 +1,59 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class InputTestData : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal InputTestData(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(InputTestData obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~InputTestData() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_InputTestData(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public GoSlice Hashes { + set { + skycoinPINVOKE.set_InputTestData_Hashes(swigCPtr, GoSlice.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.get_InputTestData_Hashes(swigCPtr); + GoSlice ret = (cPtr == global::System.IntPtr.Zero) ? null : new GoSlice(cPtr, false); + return ret; + } + } + + public InputTestData() : this(skycoinPINVOKE.new_InputTestData(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/InputTestDataJSON.cs b/LibskycoinNet/skycoin/InputTestDataJSON.cs new file mode 100644 index 00000000..2e47c12b --- /dev/null +++ b/LibskycoinNet/skycoin/InputTestDataJSON.cs @@ -0,0 +1,59 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class InputTestDataJSON : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal InputTestDataJSON(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(InputTestDataJSON obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~InputTestDataJSON() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_InputTestDataJSON(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public GoSlice Hashes { + set { + skycoinPINVOKE.set_InputTestDataJSON_Hashes(swigCPtr, GoSlice.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.get_InputTestDataJSON_Hashes(swigCPtr); + GoSlice ret = (cPtr == global::System.IntPtr.Zero) ? null : new GoSlice(cPtr, false); + return ret; + } + } + + public InputTestDataJSON() : this(skycoinPINVOKE.new_InputTestDataJSON(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/KeysTestData.cs b/LibskycoinNet/skycoin/KeysTestData.cs new file mode 100644 index 00000000..e792ea41 --- /dev/null +++ b/LibskycoinNet/skycoin/KeysTestData.cs @@ -0,0 +1,92 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class KeysTestData : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal KeysTestData(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(KeysTestData obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~KeysTestData() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_KeysTestData(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public cipher__Address Address { + set { + skycoinPINVOKE.set_KeysTestData_Address(swigCPtr, cipher__Address.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.get_KeysTestData_Address(swigCPtr); + cipher__Address ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher__Address(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_GoUint8_ Secret { + set { + skycoinPINVOKE.set_KeysTestData_Secret(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.get_KeysTestData_Secret(swigCPtr); + SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_GoUint8_ Public { + set { + skycoinPINVOKE.set_KeysTestData_Public(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.get_KeysTestData_Public(swigCPtr); + SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); + return ret; + } + } + + public GoSlice Signatures { + set { + skycoinPINVOKE.set_KeysTestData_Signatures(swigCPtr, GoSlice.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.get_KeysTestData_Signatures(swigCPtr); + GoSlice ret = (cPtr == global::System.IntPtr.Zero) ? null : new GoSlice(cPtr, false); + return ret; + } + } + + public KeysTestData() : this(skycoinPINVOKE.new_KeysTestData(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/KeysTestDataJSON.cs b/LibskycoinNet/skycoin/KeysTestDataJSON.cs new file mode 100644 index 00000000..e69de29b diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index 91fc68a1..044efbde 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -278,7 +278,6 @@ SWIGEXPORT void SWIGSTDCALL SWIGRegisterStringCallback_skycoin(SWIG_CSharpString #define SWIG_FILE_WITH_INIT #include "libskycoin.h" #include "swig.h" - // #include "base64.h" void destroy_cipher_SecKeys(cipher_SecKeys* p){ diff --git a/LibskycoinNetTest/LibskycoinNetTest.csproj b/LibskycoinNetTest/LibskycoinNetTest.csproj index a77b0fb2..3a396152 100644 --- a/LibskycoinNetTest/LibskycoinNetTest.csproj +++ b/LibskycoinNetTest/LibskycoinNetTest.csproj @@ -44,12 +44,10 @@ - - diff --git a/LibskycoinNetTest/check_cipher_sha256xor.cs b/LibskycoinNetTest/check_cipher_sha256xor.cs deleted file mode 100644 index 51364dbd..00000000 --- a/LibskycoinNetTest/check_cipher_sha256xor.cs +++ /dev/null @@ -1,197 +0,0 @@ -using System; -using NUnit.Framework; -using skycoin; -using utils; -namespace LibskycoinNetTest { - [TestFixture ()] - public class check_cipher_sha256xor { - utils.transutils utils = new transutils (); - int sha256XorDataLengthSize = 4; - int sha256XorBlockSize = 32; - int sha256XorNonceSize = 32; - int sha256XorChecksumSize = 32; - - struct StrTest { - public string name; - public int data; - public GoSlice password; - public int error; - } - - StrTest[] cases; - - public void FullCase1 () { - cases = new StrTest[5]; - var c = new StrTest (); - var str = new _GoString_ (); - c.name = "data length=1 password is empty=true"; - c.data = 1; - c.password = new GoSlice (); - c.error = skycoin.skycoin.SKY_ErrSHA256orMissingPassword; - cases[0] = c; - - c = new StrTest (); - str = new _GoString_ (); - c.name = "data length=1 password is empty=false"; - c.data = 1; - c.password = new GoSlice (); - str.p = "key"; - c.password.convertString (str); - c.error = skycoin.skycoin.SKY_OK; - cases[1] = c; - - c = new StrTest (); - str = new _GoString_ (); - c.name = "data length<32 password is empty=false"; - c.data = 2; - c.password = new GoSlice (); - str.p = "pwd"; - c.password.convertString (str); - c.error = skycoin.skycoin.SKY_OK; - cases[2] = c; - - c = new StrTest (); - str = new _GoString_ (); - c.name = "data length=2*32 password is empty=false"; - c.data = 64; - c.password = new GoSlice (); - str.SetString ("9JMkCPphe73NQvGhmab"); - c.password.convertString (str); - c.error = skycoin.skycoin.SKY_OK; - cases[3] = c; - - c = new StrTest (); - str = new _GoString_ (); - c.name = "data length>2*32 password is empty=false"; - c.data = 65; - c.password = new GoSlice (); - str.p = "9JMkCPphe73NQvGhmab"; - c.password.convertString (str); - c.error = skycoin.skycoin.SKY_OK; - cases[4] = c; - - } - - [Test] - public void TestEncrypt () { - FullCase1 (); - - for (int i = 0; i < cases.Length; i++) { - var t = cases[i]; - Console.WriteLine (t.name + " " + i); - var encrypted = new GoSlice (); - var data = new GoSlice (); - var err = skycoin.skycoin.SKY_cipher_RandByte (t.data, data); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_encrypt_Sha256Xor_Encrypt (data, t.password, encrypted); - Assert.AreEqual (t.error, err); - if (t.error == skycoin.skycoin.SKY_OK) { - var n = (sha256XorDataLengthSize + t.data) / sha256XorBlockSize; - var m = (sha256XorDataLengthSize + t.data) % sha256XorBlockSize; - if (m > 0) { - n += 1; - } - var str = new _GoString_ (); - encrypted.getString (str); - Console.WriteLine (str.p); - Console.WriteLine (str.n); - if (utils.IsBase64String (str.p)) { - var rdata = utils.base64Decode (str.p); - var totalEncryptedDataLen = sha256XorBlockSize + sha256XorNonceSize + 32 + n * sha256XorBlockSize; - Assert.AreEqual (rdata.Length, totalEncryptedDataLen, t.name); - } - } - - } - } - public void FullCase2 () { - cases = new StrTest[5]; - var str = new _GoString_ (); - var c = new StrTest (); - c.name = "invalid data length"; - c.error = skycoin.skycoin.SKY_ERROR; - c.data = 32; - c.password = new GoSlice (); - str.p = "pwd"; - c.password.convertString (str); - cases[0] = c; - - str = new _GoString_ (); - c = new StrTest (); - c.name = "invalid checksum"; - c.error = skycoin.skycoin.SKY_ERROR; - c.data = 32; - c.password = new GoSlice (); - str.p = "pwd"; - c.password.convertString (str); - cases[1] = c; - - str = new _GoString_ (); - c = new StrTest (); - c.name = "empty password"; - c.error = skycoin.skycoin.SKY_ErrSHA256orMissingPassword; - c.data = 32; - c.password = new GoSlice (); - str.p = string.Empty; - c.password.convertString (str); - cases[2] = c; - - str = new _GoString_ (); - c = new StrTest (); - c.name = "nil password"; - c.error = skycoin.skycoin.SKY_ErrSHA256orMissingPassword; - c.data = 32; - c.password = new GoSlice (); - str.p = string.Empty; - c.password.convertString (str); - cases[3] = c; - - str = new _GoString_ (); - c = new StrTest (); - c.name = "invalid password"; - c.error = skycoin.skycoin.SKY_ERROR; - c.data = 32; - c.password = new GoSlice (); - str.p = "wrong password"; - c.password.convertString (str); - cases[4] = c; - - } - - [Test] - public void TestDecrypt () { - FullCase2 (); - for (int i = 0; i < cases.Length; i++) { - var tc = cases[i]; - var d = new GoSlice (); - var data = new GoSlice (); - var edata = new GoSlice (); - skycoin.skycoin.SKY_cipher_RandByte (32, data); - skycoin.skycoin.makeEncryptedData (data, 65, tc.password, edata); - var err = skycoin.skycoin.SKY_encrypt_Sha256Xor_Decrypt (edata, tc.password, d); - Assert.AreEqual (err, tc.error, tc.name + " " + i); - if (err == skycoin.skycoin.SKY_OK) { - Assert.AreEqual (d.isEqual (data), 1); - } - } - - for (int i = 0; i < 64; i++) { - var data = new GoSlice (); - var err = skycoin.skycoin.SKY_cipher_RandByte (32, data); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (data.len, 32); - var pwd = new GoSlice (); - var encrypted = new GoSlice (); - var decrypted = new GoSlice (); - var pwdStr = new _GoString_ (); - pwdStr.SetString ("pwd"); - pwd.convertString (pwdStr); - err = skycoin.skycoin.SKY_encrypt_Sha256Xor_Encrypt (data, pwd, encrypted); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK, i.ToString () + " failed SKY_encrypt_Sha256Xor_Encrypt"); - err = skycoin.skycoin.SKY_encrypt_Sha256Xor_Decrypt (encrypted, pwd, decrypted); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK, i.ToString () + " failed SKY_encrypt_Sha256Xor_Decrypt"); - Assert.AreEqual (data.isEqual (decrypted), 1); - } - } - } -} \ No newline at end of file diff --git a/LibskycoinNetTest/check_coin_coin.cs b/LibskycoinNetTest/check_coin_coin.cs deleted file mode 100644 index c489308a..00000000 --- a/LibskycoinNetTest/check_coin_coin.cs +++ /dev/null @@ -1,83 +0,0 @@ -using System; -using NUnit.Framework; -using skycoin; -using utils; -namespace LibskycoinNetTest { - [TestFixture ()] - public class check_coin_coin { - - utils.transutils transutils = new utils.transutils (); - - [Test] - public void TestAddress1 () { - var address_hex = "02fa939957e9fc52140e180264e621c2576a1bfe781f88792fb315ca3d1786afb8"; - var b = new GoSlice (); - var err = skycoin.skycoin.SKY_base58_String2Hex (address_hex, b); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var p = new cipher_PubKey (); - err = skycoin.skycoin.SKY_cipher_NewPubKey (b, p); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var a = new cipher__Address (); - err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, a); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - } - - [Test] - public void TestAddress2 () { - var address_hex = "5a42c0643bdb465d90bf673b99c14f5fa02db71513249d904573d2b8b63d353d"; - var p = new cipher_PubKey (); - var s = new cipher_SecKey (); - var b = new GoSlice (); - var err = skycoin.skycoin.SKY_base58_String2Hex (address_hex, b); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_NewSecKey (b, s); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_PubKeyFromSecKey (s, p); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var a = new cipher__Address (); - err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, a); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - } - - [Test] - public void TestCrypto1 () { - var p = new cipher_PubKey (); - var s = new cipher_SecKey (); - for (int i = 0; i < 10; i++) { - var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_TestSecKey (s); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - } - } - - [Test] - public void TestCrypto2 () { - var b = new GoSlice (); - var err = skycoin.skycoin.SKY_base58_String2Hex ("5a42c0643bdb465d90bf673b99c14f5fa02db71513249d904573d2b8b63d353d", b); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (b.len, 32); - var p = new cipher_PubKey (); - var s = new cipher_SecKey (); - err = skycoin.skycoin.SKY_cipher_NewSecKey (b, s); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_PubKeyFromSecKey (s, p); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var a = new cipher__Address (); - err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, a); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var text = "test message"; - var sha = new cipher_SHA256 (); - b = new GoSlice (); - var text_str = new _GoString_ (); - text_str.p = text; - b.convertString (text_str); - err = skycoin.skycoin.SKY_cipher_SumSHA256 (b, sha); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_TestSecKeyHash (s, sha); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - - } - - } -} \ No newline at end of file diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index 85682f19..e8ef2c46 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit 85682f190b91237e4704382a962b53116a3135ea +Subproject commit e8ef2c46b2f29103e92fa94b6e92b8599ace9ad0 From 059709537c382410a1ca4108aab35cd70eef3a36 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Sun, 14 Oct 2018 03:52:02 -0400 Subject: [PATCH 51/73] [test] refs #8 Test in typemap callback --- LibskycoinNet/LibskycoinNet.csproj | 4 +- LibskycoinNet/skycoin/FeeCalculator_.cs | 70 +++++ .../skycoin/SWIGTYPE_p_FeeCalcFunc.cs | 29 ++ .../skycoin/SWIGTYPE_p_zeroFeeCalculator.cs | 29 ++ LibskycoinNet/skycoin/skycoin.cs | 41 ++- LibskycoinNet/skycoin/skycoinPINVOKE.cs | 52 ++-- LibskycoinNet/skycoin/skycoinnet_wrap.c | 280 ++++++++++++++---- LibskycoinNet/skycoin/skycoinnet_wrap.h | 15 + LibskycoinNetTest/LibskycoinNetTest.csproj | 28 +- LibskycoinNetTest/check_coin_block.cs | 7 + gopath/src/github.com/skycoin/skycoin | 2 +- 11 files changed, 469 insertions(+), 88 deletions(-) create mode 100644 LibskycoinNet/skycoin/FeeCalculator_.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_FeeCalcFunc.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_zeroFeeCalculator.cs create mode 100644 LibskycoinNet/skycoin/skycoinnet_wrap.h diff --git a/LibskycoinNet/LibskycoinNet.csproj b/LibskycoinNet/LibskycoinNet.csproj index 79ea8b51..e4ea06fe 100644 --- a/LibskycoinNet/LibskycoinNet.csproj +++ b/LibskycoinNet/LibskycoinNet.csproj @@ -132,7 +132,9 @@ - + + + diff --git a/LibskycoinNet/skycoin/FeeCalculator_.cs b/LibskycoinNet/skycoin/FeeCalculator_.cs new file mode 100644 index 00000000..f8a5201f --- /dev/null +++ b/LibskycoinNet/skycoin/FeeCalculator_.cs @@ -0,0 +1,70 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class FeeCalculator_ : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal FeeCalculator_(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FeeCalculator_ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~FeeCalculator_() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_FeeCalculator_(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_f_Transaction__Handle_p_GoUint64__p_void__GoUint32_ callback { + set { + skycoinPINVOKE.set_FeeCalculator__callback(swigCPtr, SWIGTYPE_p_f_Transaction__Handle_p_GoUint64__p_void__GoUint32_.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.get_FeeCalculator__callback(swigCPtr); + SWIGTYPE_p_f_Transaction__Handle_p_GoUint64__p_void__GoUint32_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_f_Transaction__Handle_p_GoUint64__p_void__GoUint32_(cPtr, false); + return ret; + } + } + + public SWIGTYPE_p_void context { + set { + skycoinPINVOKE.set_FeeCalculator__context(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); + } + get { + global::System.IntPtr cPtr = skycoinPINVOKE.get_FeeCalculator__context(swigCPtr); + SWIGTYPE_p_void ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); + return ret; + } + } + + public FeeCalculator_() : this(skycoinPINVOKE.new_FeeCalculator_(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_FeeCalcFunc.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_FeeCalcFunc.cs new file mode 100644 index 00000000..a3c2f082 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_FeeCalcFunc.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_FeeCalcFunc { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_FeeCalcFunc(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_FeeCalcFunc() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_FeeCalcFunc obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_zeroFeeCalculator.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_zeroFeeCalculator.cs new file mode 100644 index 00000000..ea56e204 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_zeroFeeCalculator.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_zeroFeeCalculator { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_zeroFeeCalculator(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_zeroFeeCalculator() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_zeroFeeCalculator obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs index 8fd6d4d2..d6723f10 100644 --- a/LibskycoinNet/skycoin/skycoin.cs +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -457,10 +457,43 @@ public static SWIGTYPE_p_FeeCalculator FeeCalculatorPtr_value(SWIGTYPE_p_FeeCalc return ret; } + public static SWIGTYPE_p_FeeCalcFunc new_FeeCalcFuncPtr() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_FeeCalcFuncPtr(); + SWIGTYPE_p_FeeCalcFunc ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_FeeCalcFunc(cPtr, false); + return ret; + } + + public static SWIGTYPE_p_FeeCalcFunc copy_FeeCalcFuncPtr(SWIGTYPE_p_FeeCalcFunc value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_FeeCalcFuncPtr(SWIGTYPE_p_FeeCalcFunc.getCPtr(value)); + SWIGTYPE_p_FeeCalcFunc ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_FeeCalcFunc(cPtr, false); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static void delete_FeeCalcFuncPtr(SWIGTYPE_p_FeeCalcFunc obj) { + skycoinPINVOKE.delete_FeeCalcFuncPtr(SWIGTYPE_p_FeeCalcFunc.getCPtr(obj)); + } + + public static void FeeCalcFuncPtr_assign(SWIGTYPE_p_FeeCalcFunc obj, SWIGTYPE_p_FeeCalcFunc value) { + skycoinPINVOKE.FeeCalcFuncPtr_assign(SWIGTYPE_p_FeeCalcFunc.getCPtr(obj), SWIGTYPE_p_FeeCalcFunc.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + + public static SWIGTYPE_p_FeeCalcFunc FeeCalcFuncPtr_value(SWIGTYPE_p_FeeCalcFunc obj) { + SWIGTYPE_p_FeeCalcFunc ret = new SWIGTYPE_p_FeeCalcFunc(skycoinPINVOKE.FeeCalcFuncPtr_value(SWIGTYPE_p_FeeCalcFunc.getCPtr(obj)), true); + return ret; + } + public static void SKY_handle_close(SWIGTYPE_p_Handle p0) { skycoinPINVOKE.SKY_handle_close(SWIGTYPE_p_Handle.getCPtr(p0)); } + public static uint zeroFeeCalculator(SWIGTYPE_p_Transaction__Handle handle, SWIGTYPE_p_GoUint64_ pFee, SWIGTYPE_p_void context) { + uint ret = skycoinPINVOKE.zeroFeeCalculator(SWIGTYPE_p_Transaction__Handle.getCPtr(handle), SWIGTYPE_p_GoUint64_.getCPtr(pFee), SWIGTYPE_p_void.getCPtr(context)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + public static int MEMPOOLIDX { set { skycoinPINVOKE.set_MEMPOOLIDX(value); @@ -996,10 +1029,16 @@ public static uint SKY_cipher_CheckSecKeyHash(cipher_SecKey s, cipher_SHA256 sha return ret; } + public static uint SKY_coin_NewBlock(SWIGTYPE_p_Block__Handle p0, ulong p1, cipher_SHA256 p2, SWIGTYPE_p_Transactions__Handle p3, SWIGTYPE_p_FeeCalculator p4, SWIGTYPE_p_Block__Handle p5) { + uint ret = skycoinPINVOKE.SKY_coin_NewBlock__SWIG_0(SWIGTYPE_p_Block__Handle.getCPtr(p0), p1, cipher_SHA256.getCPtr(p2), SWIGTYPE_p_Transactions__Handle.getCPtr(p3), SWIGTYPE_p_FeeCalculator.getCPtr(p4), SWIGTYPE_p_Block__Handle.getCPtr(p5)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + public static uint SKY_coin_NewBlock(SWIGTYPE_p_Block__Handle p0, ulong p1, cipher_SecKey p2, SWIGTYPE_p_Transactions__Handle p3, SWIGTYPE_p_FeeCalculator p4, SWIGTYPE_p_Block__Handle p5) { var tmpp2 = cipher_SecKey.getCPtr (p2); { - uint ret = skycoinPINVOKE.SKY_coin_NewBlock(SWIGTYPE_p_Block__Handle.getCPtr(p0), p1, tmpp2, SWIGTYPE_p_Transactions__Handle.getCPtr(p3), SWIGTYPE_p_FeeCalculator.getCPtr(p4), SWIGTYPE_p_Block__Handle.getCPtr(p5)); + uint ret = skycoinPINVOKE.SKY_coin_NewBlock__SWIG_1(SWIGTYPE_p_Block__Handle.getCPtr(p0), p1, tmpp2, SWIGTYPE_p_Transactions__Handle.getCPtr(p3), SWIGTYPE_p_FeeCalculator.getCPtr(p4), SWIGTYPE_p_Block__Handle.getCPtr(p5)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index 01061833..a2ca3a0b 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -443,9 +443,27 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_FeeCalculatorPtr_value")] public static extern global::System.IntPtr FeeCalculatorPtr_value(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_FeeCalcFuncPtr")] + public static extern global::System.IntPtr new_FeeCalcFuncPtr(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_FeeCalcFuncPtr")] + public static extern global::System.IntPtr copy_FeeCalcFuncPtr(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_FeeCalcFuncPtr")] + public static extern void delete_FeeCalcFuncPtr(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_FeeCalcFuncPtr_assign")] + public static extern void FeeCalcFuncPtr_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_FeeCalcFuncPtr_value")] + public static extern global::System.IntPtr FeeCalcFuncPtr_value(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_handle_close")] public static extern void SKY_handle_close(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_zeroFeeCalculator")] + public static extern uint zeroFeeCalculator(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_MEMPOOLIDX")] public static extern void set_MEMPOOLIDX(int jarg1); @@ -755,6 +773,9 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_CheckSecKeyHash__SWIG_0")] public static extern uint SKY_cipher_CheckSecKeyHash__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewBlock__SWIG_0")] + public static extern uint SKY_coin_NewBlock__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKey_isEqual")] public static extern int cipher_PubKey_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1058,26 +1079,23 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_Addresses")] public static extern void delete_cipher_Addresses(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Fee_Calculator_callFeeCalculator")] - public static extern uint Fee_Calculator_callFeeCalculator(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_Fee_Calculator_callback")] - public static extern void set_Fee_Calculator_callback(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_FeeCalculator__callback")] + public static extern void set_FeeCalculator__callback(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_Fee_Calculator_callback")] - public static extern global::System.IntPtr get_Fee_Calculator_callback(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_FeeCalculator__callback")] + public static extern global::System.IntPtr get_FeeCalculator__callback(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_Fee_Calculator_context")] - public static extern void set_Fee_Calculator_context(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_FeeCalculator__context")] + public static extern void set_FeeCalculator__context(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_Fee_Calculator_context")] - public static extern global::System.IntPtr get_Fee_Calculator_context(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_FeeCalculator__context")] + public static extern global::System.IntPtr get_FeeCalculator__context(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_Fee_Calculator")] - public static extern global::System.IntPtr new_Fee_Calculator(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_FeeCalculator_")] + public static extern global::System.IntPtr new_FeeCalculator_(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_Fee_Calculator")] - public static extern void delete_Fee_Calculator(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_FeeCalculator_")] + public static extern void delete_FeeCalculator_(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin__GoString__SetString")] public static extern int _GoString__SetString(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); @@ -1154,8 +1172,8 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_GoSlice")] public static extern void delete_GoSlice(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewBlock")] - public static extern uint SKY_coin_NewBlock(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewBlock__SWIG_1")] + public static extern uint SKY_coin_NewBlock__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SignedBlock_VerifySignature")] public static extern uint SKY_coin_SignedBlock_VerifySignature(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index 044efbde..71f07225 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -704,10 +704,38 @@ static FeeCalculator FeeCalculatorPtr_value(FeeCalculator *obj) { } +static FeeCalcFunc *new_FeeCalcFuncPtr() { + return (FeeCalcFunc *) calloc(1,sizeof(FeeCalcFunc)); +} + +static FeeCalcFunc *copy_FeeCalcFuncPtr(FeeCalcFunc value) { + FeeCalcFunc *obj = (FeeCalcFunc *) calloc(1,sizeof(FeeCalcFunc)); + *obj = value; + return obj; +} + +static void delete_FeeCalcFuncPtr(FeeCalcFunc *obj) { + if (obj) free(obj); +} + +static void FeeCalcFuncPtr_assign(FeeCalcFunc *obj, FeeCalcFunc value) { + *obj = value; +} + +static FeeCalcFunc FeeCalcFuncPtr_value(FeeCalcFunc *obj) { + return *obj; +} + + #include "json.h" //Define function SKY_handle_close to avoid including libskycoin.h void SKY_handle_close(Handle p0); + GoUint32_ zeroFeeCalculator(Transaction__Handle handle, GoUint64_ *pFee, void* context){ + *pFee = 0; + return 0; +} + int MEMPOOLIDX = 0; void *MEMPOOL[1024 * 256]; @@ -1835,6 +1863,29 @@ void makeEncryptedData(GoSlice data, GoUint32 dataLength, GoSlice pwd, coin__UxA return result; } + + GoUint32 CSharp_skycoin_SKY_coin_NewBlock(Block__Handle p0, GoUint64 p1, cipher_SHA256* p2, Transactions__Handle p3, FeeCalculator* p4, Block__Handle* p5){ + FeeCalculator temp; + FeeCalculator *arg2 = (FeeCalculator *) 0 ; + temp.callback = zeroFeeCalculator; + temp.context = p4; + arg2 = &temp; + GoUint32 result = SKY_coin_NewBlock(p0, p1,p2,p3,arg2,p5); + return result; + } + + + +GoUint32_ _WrapperFeeCalculator(Transaction__Handle handle, GoUint64_* pFee, void* context){ + FeeCalcFunc* feeCalc = (FeeCalcFunc*)context; + int *result = callFeeCalculator(feeCalc, handle, pFee); + GoUint32_ error = 0; + if(result != 0) + return error; + + return 0; +} + SWIGINTERN int cipher_PubKey_isEqual(cipher_PubKey *self,cipher_PubKey *a){ return memcmp(self->data, a->data, sizeof(a->data)) == 0; } @@ -2037,9 +2088,6 @@ SWIGINTERN void cipher_Addresses_release(cipher_Addresses *self){ if(self->data != NULL) free(self->data); } -SWIGINTERN GoUint32_ Fee_Calculator_callFeeCalculator(Fee_Calculator *self,FeeCalculator *feeCalc,Transaction__Handle handle,unsigned long long *pFee){ - return feeCalc->callback(handle, pFee, feeCalc->context); - } SWIGINTERN int _GoString__SetString(_GoString_ *self,char *str){ self->p = str; self->n = strlen(str); @@ -3192,6 +3240,74 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_FeeCalculatorPtr_value(void * jarg1 } +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_FeeCalcFuncPtr() { + void * jresult ; + FeeCalcFunc *result = 0 ; + + result = (FeeCalcFunc *)new_FeeCalcFuncPtr(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_FeeCalcFuncPtr(void * jarg1) { + void * jresult ; + FeeCalcFunc arg1 ; + FeeCalcFunc *argp1 ; + FeeCalcFunc *result = 0 ; + + argp1 = (FeeCalcFunc *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null FeeCalcFunc", 0); + return 0; + } + arg1 = *argp1; + result = (FeeCalcFunc *)copy_FeeCalcFuncPtr(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_FeeCalcFuncPtr(void * jarg1) { + FeeCalcFunc *arg1 = (FeeCalcFunc *) 0 ; + + arg1 = (FeeCalcFunc *)jarg1; + delete_FeeCalcFuncPtr(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_FeeCalcFuncPtr_assign(void * jarg1, void * jarg2) { + FeeCalcFunc *arg1 = (FeeCalcFunc *) 0 ; + FeeCalcFunc arg2 ; + FeeCalcFunc *argp2 ; + + arg1 = (FeeCalcFunc *)jarg1; + argp2 = (FeeCalcFunc *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null FeeCalcFunc", 0); + return ; + } + arg2 = *argp2; + FeeCalcFuncPtr_assign(arg1,arg2); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_FeeCalcFuncPtr_value(void * jarg1) { + void * jresult ; + FeeCalcFunc *arg1 = (FeeCalcFunc *) 0 ; + FeeCalcFunc result; + + arg1 = (FeeCalcFunc *)jarg1; + result = FeeCalcFuncPtr_value(arg1); + { + FeeCalcFunc * resultptr = (FeeCalcFunc *) malloc(sizeof(FeeCalcFunc)); + memmove(resultptr, &result, sizeof(FeeCalcFunc)); + jresult = resultptr; + } + return jresult; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_handle_close(void * jarg1) { Handle arg1 ; @@ -3202,6 +3318,28 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_handle_close(void * jarg1) { } +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_zeroFeeCalculator(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoUint64_ *arg2 = (GoUint64_ *) 0 ; + void *arg3 = (void *) 0 ; + Transaction__Handle *argp1 ; + GoUint32_ result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64_ *)jarg2; + arg3 = (void *)jarg3; + result = zeroFeeCalculator(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_MEMPOOLIDX(int jarg1) { int arg1 ; @@ -4740,6 +4878,40 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_CheckSecKeyHash__S } +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock__SWIG_0(void * jarg1, unsigned long long jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) { + unsigned int jresult ; + Block__Handle arg1 ; + GoUint64 arg2 ; + cipher_SHA256 *arg3 = (cipher_SHA256 *) 0 ; + Transactions__Handle arg4 ; + FeeCalculator *arg5 = (FeeCalculator *) 0 ; + Block__Handle *arg6 = (Block__Handle *) 0 ; + Block__Handle *argp1 ; + Transactions__Handle *argp4 ; + GoUint32 result; + + argp1 = (Block__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64)jarg2; + arg3 = (cipher_SHA256 *)jarg3; + argp4 = (Transactions__Handle *)jarg4; + if (!argp4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transactions__Handle", 0); + return 0; + } + arg4 = *argp4; + arg5 = (FeeCalculator *)jarg5; + arg6 = (Block__Handle *)jarg6; + result = (GoUint32)CSharp_skycoin_SKY_coin_NewBlock(arg1,arg2,arg3,arg4,arg5,arg6); + jresult = result; + return jresult; +} + + SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_PubKey_isEqual(void * jarg1, void * jarg2) { int jresult ; cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; @@ -5886,88 +6058,64 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_Addresses(void * jarg1) } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_Fee_Calculator_callFeeCalculator(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { - unsigned int jresult ; - Fee_Calculator *arg1 = (Fee_Calculator *) 0 ; - FeeCalculator *arg2 = (FeeCalculator *) 0 ; - Transaction__Handle arg3 ; - unsigned long long *arg4 = (unsigned long long *) 0 ; - Transaction__Handle *argp3 ; - GoUint32_ result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_FeeCalculator__callback(void * jarg1, void * jarg2) { + FeeCalculator_ *arg1 = (FeeCalculator_ *) 0 ; + FeeCalcFunc_ arg2 = (FeeCalcFunc_) 0 ; - arg1 = (Fee_Calculator *)jarg1; - arg2 = (FeeCalculator *)jarg2; - argp3 = (Transaction__Handle *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; - } - arg3 = *argp3; - arg4 = (unsigned long long *)jarg4; - result = Fee_Calculator_callFeeCalculator(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_Fee_Calculator_callback(void * jarg1, void * jarg2) { - Fee_Calculator *arg1 = (Fee_Calculator *) 0 ; - FeeCalcFunc arg2 = (FeeCalcFunc) 0 ; - - arg1 = (Fee_Calculator *)jarg1; - arg2 = (FeeCalcFunc)jarg2; + arg1 = (FeeCalculator_ *)jarg1; + arg2 = (FeeCalcFunc_)jarg2; if (arg1) (arg1)->callback = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_Fee_Calculator_callback(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_FeeCalculator__callback(void * jarg1) { void * jresult ; - Fee_Calculator *arg1 = (Fee_Calculator *) 0 ; - FeeCalcFunc result; + FeeCalculator_ *arg1 = (FeeCalculator_ *) 0 ; + FeeCalcFunc_ result; - arg1 = (Fee_Calculator *)jarg1; - result = (FeeCalcFunc) ((arg1)->callback); + arg1 = (FeeCalculator_ *)jarg1; + result = (FeeCalcFunc_) ((arg1)->callback); jresult = (void *)result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_Fee_Calculator_context(void * jarg1, void * jarg2) { - Fee_Calculator *arg1 = (Fee_Calculator *) 0 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_FeeCalculator__context(void * jarg1, void * jarg2) { + FeeCalculator_ *arg1 = (FeeCalculator_ *) 0 ; void *arg2 = (void *) 0 ; - arg1 = (Fee_Calculator *)jarg1; + arg1 = (FeeCalculator_ *)jarg1; arg2 = (void *)jarg2; if (arg1) (arg1)->context = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_Fee_Calculator_context(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_FeeCalculator__context(void * jarg1) { void * jresult ; - Fee_Calculator *arg1 = (Fee_Calculator *) 0 ; + FeeCalculator_ *arg1 = (FeeCalculator_ *) 0 ; void *result = 0 ; - arg1 = (Fee_Calculator *)jarg1; + arg1 = (FeeCalculator_ *)jarg1; result = (void *) ((arg1)->context); jresult = (void *)result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_Fee_Calculator() { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_FeeCalculator_() { void * jresult ; - Fee_Calculator *result = 0 ; + FeeCalculator_ *result = 0 ; - result = (Fee_Calculator *)calloc(1, sizeof(Fee_Calculator)); + result = (FeeCalculator_ *)calloc(1, sizeof(FeeCalculator_)); jresult = (void *)result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_Fee_Calculator(void * jarg1) { - Fee_Calculator *arg1 = (Fee_Calculator *) 0 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_FeeCalculator_(void * jarg1) { + FeeCalculator_ *arg1 = (FeeCalculator_ *) 0 ; - arg1 = (Fee_Calculator *)jarg1; + arg1 = (FeeCalculator_ *)jarg1; free((char *) arg1); } @@ -6253,7 +6401,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_GoSlice(void * jarg1) { } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock(void * jarg1, unsigned long long jarg2, cipher_SecKey* jarg3, void * jarg4, void * jarg5, void * jarg6) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock__SWIG_1(void * jarg1, unsigned long long jarg2, cipher_SecKey* jarg3, void * jarg4, void * jarg5, void * jarg6) { unsigned int jresult ; Block__Handle arg1 ; GoUint64 arg2 ; @@ -6263,6 +6411,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock(void * jarg Block__Handle *arg6 = (Block__Handle *) 0 ; Block__Handle *argp1 ; Transactions__Handle *argp4 ; + FeeCalculator temp5 ; GoUint32 result; argp1 = (Block__Handle *)jarg1; @@ -6279,7 +6428,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock(void * jarg return 0; } arg4 = *argp4; - arg5 = (FeeCalculator *)jarg5; + { + if (!PyCallable_Check(jarg5)) return ; + temp5.callback = _WrapperFeeCalculator; + temp5.context = jarg5; + arg5 = &temp5; + } arg6 = (Block__Handle *)jarg6; result = (GoUint32)SKY_coin_NewBlock(arg1,arg2,(GoUint8_ (*)[32])arg3,arg4,arg5,arg6); jresult = result; @@ -14785,6 +14939,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Fees(vo FeeCalculator *arg2 = (FeeCalculator *) 0 ; GoUint64 *arg3 = (GoUint64 *) 0 ; Transactions__Handle *argp1 ; + FeeCalculator temp2 ; GoUint32 result; argp1 = (Transactions__Handle *)jarg1; @@ -14793,7 +14948,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Fees(vo return 0; } arg1 = *argp1; - arg2 = (FeeCalculator *)jarg2; + { + if (!PyCallable_Check(jarg2)) return ; + temp2.callback = _WrapperFeeCalculator; + temp2.context = jarg2; + arg2 = &temp2; + } arg3 = (GoUint64 *)jarg3; result = (GoUint32)SKY_coin_Transactions_Fees(arg1,arg2,arg3); jresult = result; @@ -14891,6 +15051,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortTransactions(voi FeeCalculator *arg2 = (FeeCalculator *) 0 ; Transactions__Handle *arg3 = (Transactions__Handle *) 0 ; Transactions__Handle *argp1 ; + FeeCalculator temp2 ; GoUint32 result; argp1 = (Transactions__Handle *)jarg1; @@ -14899,7 +15060,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortTransactions(voi return 0; } arg1 = *argp1; - arg2 = (FeeCalculator *)jarg2; + { + if (!PyCallable_Check(jarg2)) return ; + temp2.callback = _WrapperFeeCalculator; + temp2.context = jarg2; + arg2 = &temp2; + } arg3 = (Transactions__Handle *)jarg3; result = (GoUint32)SKY_coin_SortTransactions(arg1,arg2,arg3); jresult = result; @@ -14913,6 +15079,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewSortableTransacti FeeCalculator *arg2 = (FeeCalculator *) 0 ; SortableTransactionResult_Handle *arg3 = (SortableTransactionResult_Handle *) 0 ; Transactions__Handle *argp1 ; + FeeCalculator temp2 ; GoUint32 result; argp1 = (Transactions__Handle *)jarg1; @@ -14921,7 +15088,12 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewSortableTransacti return 0; } arg1 = *argp1; - arg2 = (FeeCalculator *)jarg2; + { + if (!PyCallable_Check(jarg2)) return ; + temp2.callback = _WrapperFeeCalculator; + temp2.context = jarg2; + arg2 = &temp2; + } arg3 = (SortableTransactionResult_Handle *)jarg3; result = (GoUint32)SKY_coin_NewSortableTransactions(arg1,arg2,arg3); jresult = result; diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.h b/LibskycoinNet/skycoin/skycoinnet_wrap.h new file mode 100644 index 00000000..ca9c7383 --- /dev/null +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.h @@ -0,0 +1,15 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 3.0.12 + * + * This file is not intended to be easily readable and contains a number of + * coding conventions designed to improve portability and efficiency. Do not make + * changes to this file unless you know what you are doing--modify the SWIG + * interface file instead. + * ----------------------------------------------------------------------------- */ + +#ifndef SWIG_skycoin_WRAP_H_ +#define SWIG_skycoin_WRAP_H_ + + +#endif diff --git a/LibskycoinNetTest/LibskycoinNetTest.csproj b/LibskycoinNetTest/LibskycoinNetTest.csproj index 3a396152..a44a139d 100644 --- a/LibskycoinNetTest/LibskycoinNetTest.csproj +++ b/LibskycoinNetTest/LibskycoinNetTest.csproj @@ -38,21 +38,21 @@ - - - - - - - - - - - - + + + + + + + + + + + + - - + + diff --git a/LibskycoinNetTest/check_coin_block.cs b/LibskycoinNetTest/check_coin_block.cs index b56d978e..37a9706e 100644 --- a/LibskycoinNetTest/check_coin_block.cs +++ b/LibskycoinNetTest/check_coin_block.cs @@ -2,6 +2,8 @@ using NUnit.Framework; using skycoin; using utils; + +public delegate uint call (object sender, object fee, object context); namespace LibskycoinNetTest { [TestFixture ()] public class check_coin_block { @@ -31,6 +33,11 @@ public void TestNewBlock () { pBlock.Head.BkSeq = 98; var uxHash = transutils.RandSHA256 (); // TODO: Not complete by callback + var zf = skycoin.skycoin.new_FeeCalculatorPtr(); + // var a = skycoin.skycoin.new_FeeCalcFuncPtr (); + // zf.setCallBack (a); + err = skycoin.skycoin.SKY_coin_NewBlock (block, 133, uxHash, txns, zf, block); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); } [Test] diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index e8ef2c46..02be5560 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit e8ef2c46b2f29103e92fa94b6e92b8599ace9ad0 +Subproject commit 02be5560c7b87abe79d5e44e4b6d4166b78e6913 From f0da310ae7720f23a4c720293aab46d0ff846ef7 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Sun, 14 Oct 2018 10:04:12 -0400 Subject: [PATCH 52/73] [test] refs #8 Testing data type callback --- LibskycoinNet/skycoin/skycoinnet_wrap.c | 44 +++---------------------- LibskycoinNetTest/check_coin_block.cs | 12 ++++--- LibskycoinNetTest/transutils.cs | 5 +-- gopath/src/github.com/skycoin/skycoin | 2 +- 4 files changed, 15 insertions(+), 48 deletions(-) diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index 71f07225..cb5c23cb 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -1874,18 +1874,6 @@ void makeEncryptedData(GoSlice data, GoUint32 dataLength, GoSlice pwd, coin__UxA return result; } - - -GoUint32_ _WrapperFeeCalculator(Transaction__Handle handle, GoUint64_* pFee, void* context){ - FeeCalcFunc* feeCalc = (FeeCalcFunc*)context; - int *result = callFeeCalculator(feeCalc, handle, pFee); - GoUint32_ error = 0; - if(result != 0) - return error; - - return 0; -} - SWIGINTERN int cipher_PubKey_isEqual(cipher_PubKey *self,cipher_PubKey *a){ return memcmp(self->data, a->data, sizeof(a->data)) == 0; } @@ -6411,7 +6399,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock__SWIG_1(voi Block__Handle *arg6 = (Block__Handle *) 0 ; Block__Handle *argp1 ; Transactions__Handle *argp4 ; - FeeCalculator temp5 ; GoUint32 result; argp1 = (Block__Handle *)jarg1; @@ -6428,12 +6415,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock__SWIG_1(voi return 0; } arg4 = *argp4; - { - if (!PyCallable_Check(jarg5)) return ; - temp5.callback = _WrapperFeeCalculator; - temp5.context = jarg5; - arg5 = &temp5; - } + arg5 = (FeeCalculator *)jarg5; arg6 = (Block__Handle *)jarg6; result = (GoUint32)SKY_coin_NewBlock(arg1,arg2,(GoUint8_ (*)[32])arg3,arg4,arg5,arg6); jresult = result; @@ -14939,7 +14921,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Fees(vo FeeCalculator *arg2 = (FeeCalculator *) 0 ; GoUint64 *arg3 = (GoUint64 *) 0 ; Transactions__Handle *argp1 ; - FeeCalculator temp2 ; GoUint32 result; argp1 = (Transactions__Handle *)jarg1; @@ -14948,12 +14929,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Fees(vo return 0; } arg1 = *argp1; - { - if (!PyCallable_Check(jarg2)) return ; - temp2.callback = _WrapperFeeCalculator; - temp2.context = jarg2; - arg2 = &temp2; - } + arg2 = (FeeCalculator *)jarg2; arg3 = (GoUint64 *)jarg3; result = (GoUint32)SKY_coin_Transactions_Fees(arg1,arg2,arg3); jresult = result; @@ -15051,7 +15027,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortTransactions(voi FeeCalculator *arg2 = (FeeCalculator *) 0 ; Transactions__Handle *arg3 = (Transactions__Handle *) 0 ; Transactions__Handle *argp1 ; - FeeCalculator temp2 ; GoUint32 result; argp1 = (Transactions__Handle *)jarg1; @@ -15060,12 +15035,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortTransactions(voi return 0; } arg1 = *argp1; - { - if (!PyCallable_Check(jarg2)) return ; - temp2.callback = _WrapperFeeCalculator; - temp2.context = jarg2; - arg2 = &temp2; - } + arg2 = (FeeCalculator *)jarg2; arg3 = (Transactions__Handle *)jarg3; result = (GoUint32)SKY_coin_SortTransactions(arg1,arg2,arg3); jresult = result; @@ -15079,7 +15049,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewSortableTransacti FeeCalculator *arg2 = (FeeCalculator *) 0 ; SortableTransactionResult_Handle *arg3 = (SortableTransactionResult_Handle *) 0 ; Transactions__Handle *argp1 ; - FeeCalculator temp2 ; GoUint32 result; argp1 = (Transactions__Handle *)jarg1; @@ -15088,12 +15057,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewSortableTransacti return 0; } arg1 = *argp1; - { - if (!PyCallable_Check(jarg2)) return ; - temp2.callback = _WrapperFeeCalculator; - temp2.context = jarg2; - arg2 = &temp2; - } + arg2 = (FeeCalculator *)jarg2; arg3 = (SortableTransactionResult_Handle *)jarg3; result = (GoUint32)SKY_coin_NewSortableTransactions(arg1,arg2,arg3); jresult = result; diff --git a/LibskycoinNetTest/check_coin_block.cs b/LibskycoinNetTest/check_coin_block.cs index 37a9706e..a483b037 100644 --- a/LibskycoinNetTest/check_coin_block.cs +++ b/LibskycoinNetTest/check_coin_block.cs @@ -3,7 +3,6 @@ using skycoin; using utils; -public delegate uint call (object sender, object fee, object context); namespace LibskycoinNetTest { [TestFixture ()] public class check_coin_block { @@ -19,6 +18,12 @@ public SWIGTYPE_p_Transactions__Handle makeTestTransactions () { return txns; } + public uint zeroFeeCalculator (SWIGTYPE_p_Transaction__Handle tranas, SWIGTYPE_p_unsigned_long_long fee, SWIGTYPE_p_FeeCalcFunc context) { + skycoin.skycoin.GoUint64p_assign (fee, 0); + return 0; + + } + [Test] public void TestNewBlock () { var txns = makeTestTransactions (); @@ -32,10 +37,7 @@ public void TestNewBlock () { pBlock.Head.Time = 100; pBlock.Head.BkSeq = 98; var uxHash = transutils.RandSHA256 (); - // TODO: Not complete by callback - var zf = skycoin.skycoin.new_FeeCalculatorPtr(); - // var a = skycoin.skycoin.new_FeeCalcFuncPtr (); - // zf.setCallBack (a); + var zf = skycoin.skycoin.new_FeeCalculatorPtr (); err = skycoin.skycoin.SKY_coin_NewBlock (block, 133, uxHash, txns, zf, block); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); } diff --git a/LibskycoinNetTest/transutils.cs b/LibskycoinNetTest/transutils.cs index 1904fdde..8fabe5d9 100644 --- a/LibskycoinNetTest/transutils.cs +++ b/LibskycoinNetTest/transutils.cs @@ -1,9 +1,10 @@ using System; +using System.Text.RegularExpressions; using NUnit.Framework; using skycoin; -using System.Text.RegularExpressions; namespace utils { public class transutils { + public delegate uint call (SWIGTYPE_p_Transaction__Handle tranas, SWIGTYPE_p_GoInt64_ fee, SWIGTYPE_p_FeeCalcFunc context); public cipher__Address makeAddress () { var pubkey = new cipher_PubKey (); var seckey = new cipher_SecKey (); @@ -146,7 +147,7 @@ public GoSlice RandBytes (int n) { return b; } - public bool IsBase64String (string s) { + public bool IsBase64String (string s) { s = s.Trim (); return (s.Length % 4 == 0) && Regex.IsMatch (s, @"^[a-zA-Z0-9\+/]*={0,3}$", RegexOptions.None); diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index 02be5560..9a67e2b8 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit 02be5560c7b87abe79d5e44e4b6d4166b78e6913 +Subproject commit 9a67e2b8b4db7c49ed1d2391044513def77589a9 From 6153c1647ebb4b01068b7222b21e3101847997d5 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Sun, 14 Oct 2018 10:56:26 -0400 Subject: [PATCH 53/73] [test] refs #8 Adapted data typein callback --- LibskycoinNet/LibskycoinNet.csproj | 1 - LibskycoinNet/skycoin/FeeCalculator_.cs | 9 +-- LibskycoinNet/skycoin/skycoinnet_wrap.c | 81 ++++++++++++++++++++----- gopath/src/github.com/skycoin/skycoin | 2 +- 4 files changed, 72 insertions(+), 21 deletions(-) diff --git a/LibskycoinNet/LibskycoinNet.csproj b/LibskycoinNet/LibskycoinNet.csproj index e4ea06fe..71d52c64 100644 --- a/LibskycoinNet/LibskycoinNet.csproj +++ b/LibskycoinNet/LibskycoinNet.csproj @@ -132,7 +132,6 @@ - diff --git a/LibskycoinNet/skycoin/FeeCalculator_.cs b/LibskycoinNet/skycoin/FeeCalculator_.cs index f8a5201f..3e303cd3 100644 --- a/LibskycoinNet/skycoin/FeeCalculator_.cs +++ b/LibskycoinNet/skycoin/FeeCalculator_.cs @@ -40,13 +40,14 @@ public virtual void Dispose() { } } - public SWIGTYPE_p_f_Transaction__Handle_p_GoUint64__p_void__GoUint32_ callback { + public SWIGTYPE_p_FeeCalcFunc callback { set { - skycoinPINVOKE.set_FeeCalculator__callback(swigCPtr, SWIGTYPE_p_f_Transaction__Handle_p_GoUint64__p_void__GoUint32_.getCPtr(value)); + skycoinPINVOKE.set_FeeCalculator__callback(swigCPtr, SWIGTYPE_p_FeeCalcFunc.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } get { - global::System.IntPtr cPtr = skycoinPINVOKE.get_FeeCalculator__callback(swigCPtr); - SWIGTYPE_p_f_Transaction__Handle_p_GoUint64__p_void__GoUint32_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_f_Transaction__Handle_p_GoUint64__p_void__GoUint32_(cPtr, false); + SWIGTYPE_p_FeeCalcFunc ret = new SWIGTYPE_p_FeeCalcFunc(skycoinPINVOKE.get_FeeCalculator__callback(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } } diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index cb5c23cb..b1ccbfa5 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -1874,6 +1874,17 @@ void makeEncryptedData(GoSlice data, GoUint32 dataLength, GoSlice pwd, coin__UxA return result; } + + +GoUint32_ _WrapperFeeCalculator(Transaction__Handle handle, GoUint64_* pFee, void* context){ + FeeCalcFunc* feeCalc = (FeeCalcFunc*)context; + int *result = callFeeCalculator(feeCalc, handle, pFee); + GoUint32_ error = 0; + if(result != 0) + return error; + return 0; +} + SWIGINTERN int cipher_PubKey_isEqual(cipher_PubKey *self,cipher_PubKey *a){ return memcmp(self->data, a->data, sizeof(a->data)) == 0; } @@ -4866,7 +4877,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_CheckSecKeyHash__S } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock__SWIG_0(void * jarg1, unsigned long long jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock__SWIG_0(void * jarg1, unsigned long long jarg2, void * jarg3, void * jarg4, FeeCalculator_ * jarg5, void * jarg6) { unsigned int jresult ; Block__Handle arg1 ; GoUint64 arg2 ; @@ -6048,10 +6059,22 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_Addresses(void * jarg1) SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_FeeCalculator__callback(void * jarg1, void * jarg2) { FeeCalculator_ *arg1 = (FeeCalculator_ *) 0 ; - FeeCalcFunc_ arg2 = (FeeCalcFunc_) 0 ; + FeeCalcFunc arg2 ; + FeeCalculator temp1 ; + FeeCalcFunc *argp2 ; - arg1 = (FeeCalculator_ *)jarg1; - arg2 = (FeeCalcFunc_)jarg2; + { + if (!PyCallable_Check(jarg1)) return ; + temp1.callback = _WrapperFeeCalculator; + temp1.context = jarg1; + arg1 = &temp1; + } + argp2 = (FeeCalcFunc *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null FeeCalcFunc", 0); + return ; + } + arg2 = *argp2; if (arg1) (arg1)->callback = arg2; } @@ -6059,11 +6082,21 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_FeeCalculator__callback(void * ja SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_FeeCalculator__callback(void * jarg1) { void * jresult ; FeeCalculator_ *arg1 = (FeeCalculator_ *) 0 ; - FeeCalcFunc_ result; + FeeCalculator temp1 ; + FeeCalcFunc result; - arg1 = (FeeCalculator_ *)jarg1; - result = (FeeCalcFunc_) ((arg1)->callback); - jresult = (void *)result; + { + if (!PyCallable_Check(jarg1)) return ; + temp1.callback = _WrapperFeeCalculator; + temp1.context = jarg1; + arg1 = &temp1; + } + result = ((arg1)->callback); + { + FeeCalcFunc * resultptr = (FeeCalcFunc *) malloc(sizeof(FeeCalcFunc)); + memmove(resultptr, &result, sizeof(FeeCalcFunc)); + jresult = resultptr; + } return jresult; } @@ -6071,8 +6104,14 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_FeeCalculator__callback(void * SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_FeeCalculator__context(void * jarg1, void * jarg2) { FeeCalculator_ *arg1 = (FeeCalculator_ *) 0 ; void *arg2 = (void *) 0 ; + FeeCalculator temp1 ; - arg1 = (FeeCalculator_ *)jarg1; + { + if (!PyCallable_Check(jarg1)) return ; + temp1.callback = _WrapperFeeCalculator; + temp1.context = jarg1; + arg1 = &temp1; + } arg2 = (void *)jarg2; if (arg1) (arg1)->context = arg2; } @@ -6081,9 +6120,15 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_FeeCalculator__context(void * jar SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_FeeCalculator__context(void * jarg1) { void * jresult ; FeeCalculator_ *arg1 = (FeeCalculator_ *) 0 ; + FeeCalculator temp1 ; void *result = 0 ; - arg1 = (FeeCalculator_ *)jarg1; + { + if (!PyCallable_Check(jarg1)) return ; + temp1.callback = _WrapperFeeCalculator; + temp1.context = jarg1; + arg1 = &temp1; + } result = (void *) ((arg1)->context); jresult = (void *)result; return jresult; @@ -6102,8 +6147,14 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_FeeCalculator_() { SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_FeeCalculator_(void * jarg1) { FeeCalculator_ *arg1 = (FeeCalculator_ *) 0 ; + FeeCalculator temp1 ; - arg1 = (FeeCalculator_ *)jarg1; + { + if (!PyCallable_Check(jarg1)) return ; + temp1.callback = _WrapperFeeCalculator; + temp1.context = jarg1; + arg1 = &temp1; + } free((char *) arg1); } @@ -6389,7 +6440,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_GoSlice(void * jarg1) { } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock__SWIG_1(void * jarg1, unsigned long long jarg2, cipher_SecKey* jarg3, void * jarg4, void * jarg5, void * jarg6) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock__SWIG_1(void * jarg1, unsigned long long jarg2, cipher_SecKey* jarg3, void * jarg4, FeeCalculator_ * jarg5, void * jarg6) { unsigned int jresult ; Block__Handle arg1 ; GoUint64 arg2 ; @@ -14915,7 +14966,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Add(voi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Fees(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Fees(void * jarg1, FeeCalculator_ * jarg2, void * jarg3) { unsigned int jresult ; Transactions__Handle arg1 ; FeeCalculator *arg2 = (FeeCalculator *) 0 ; @@ -15021,7 +15072,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Truncat } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortTransactions(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortTransactions(void * jarg1, FeeCalculator_ * jarg2, void * jarg3) { unsigned int jresult ; Transactions__Handle arg1 ; FeeCalculator *arg2 = (FeeCalculator *) 0 ; @@ -15043,7 +15094,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortTransactions(voi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewSortableTransactions(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewSortableTransactions(void * jarg1, FeeCalculator_ * jarg2, void * jarg3) { unsigned int jresult ; Transactions__Handle arg1 ; FeeCalculator *arg2 = (FeeCalculator *) 0 ; diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index 9a67e2b8..0aebb3d6 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit 9a67e2b8b4db7c49ed1d2391044513def77589a9 +Subproject commit 0aebb3d6f014ddcb96c34934ce61398df922c504 From 08bed62ce786a35375c186bf7204a7ccacb949d5 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Mon, 15 Oct 2018 18:28:30 -0400 Subject: [PATCH 54/73] [test] refs #8 Added integrate callback --- LibskycoinNet/skycoin/skycoin.cs | 131 ++++++- LibskycoinNet/skycoin/skycoinPINVOKE.cs | 73 +++- LibskycoinNet/skycoin/skycoinnet_wrap.c | 470 ++++++++++++++++++----- LibskycoinNetTest/check_cipher_crypto.cs | 1 - LibskycoinNetTest/check_coin_block.cs | 44 ++- LibskycoinNetTest/transutils.cs | 5 +- gopath/src/github.com/skycoin/skycoin | 2 +- swig/include/libskycoin.h | 14 - 8 files changed, 582 insertions(+), 158 deletions(-) diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs index d6723f10..b9b34210 100644 --- a/LibskycoinNet/skycoin/skycoin.cs +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -62,6 +62,33 @@ public static GoSlice GoSlicep_value(GoSlice obj) { return ret; } + public static SWIGTYPE_p_GoUint8_ new_GoUint8Ptr() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_GoUint8Ptr(); + SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); + return ret; + } + + public static SWIGTYPE_p_GoUint8_ copy_GoUint8Ptr(SWIGTYPE_p_GoUint8_ value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_GoUint8Ptr(SWIGTYPE_p_GoUint8_.getCPtr(value)); + SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static void delete_GoUint8Ptr(SWIGTYPE_p_GoUint8_ obj) { + skycoinPINVOKE.delete_GoUint8Ptr(SWIGTYPE_p_GoUint8_.getCPtr(obj)); + } + + public static void GoUint8Ptr_assign(SWIGTYPE_p_GoUint8_ obj, SWIGTYPE_p_GoUint8_ value) { + skycoinPINVOKE.GoUint8Ptr_assign(SWIGTYPE_p_GoUint8_.getCPtr(obj), SWIGTYPE_p_GoUint8_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + + public static SWIGTYPE_p_GoUint8_ GoUint8Ptr_value(SWIGTYPE_p_GoUint8_ obj) { + SWIGTYPE_p_GoUint8_ ret = new SWIGTYPE_p_GoUint8_(skycoinPINVOKE.GoUint8Ptr_value(SWIGTYPE_p_GoUint8_.getCPtr(obj)), true); + return ret; + } + public static _GoString_ new_GoStringp() { global::System.IntPtr cPtr = skycoinPINVOKE.new_GoStringp(); _GoString_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new _GoString_(cPtr, false); @@ -351,6 +378,33 @@ public static SWIGTYPE_p_Block__Handle Block__HandlePtr_value(SWIGTYPE_p_Block__ return ret; } + public static SWIGTYPE_p_BlockBody__Handle new_BlockBody__HandlePtr() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_BlockBody__HandlePtr(); + SWIGTYPE_p_BlockBody__Handle ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_BlockBody__Handle(cPtr, false); + return ret; + } + + public static SWIGTYPE_p_BlockBody__Handle copy_BlockBody__HandlePtr(SWIGTYPE_p_BlockBody__Handle value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_BlockBody__HandlePtr(SWIGTYPE_p_BlockBody__Handle.getCPtr(value)); + SWIGTYPE_p_BlockBody__Handle ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_BlockBody__Handle(cPtr, false); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static void delete_BlockBody__HandlePtr(SWIGTYPE_p_BlockBody__Handle obj) { + skycoinPINVOKE.delete_BlockBody__HandlePtr(SWIGTYPE_p_BlockBody__Handle.getCPtr(obj)); + } + + public static void BlockBody__HandlePtr_assign(SWIGTYPE_p_BlockBody__Handle obj, SWIGTYPE_p_BlockBody__Handle value) { + skycoinPINVOKE.BlockBody__HandlePtr_assign(SWIGTYPE_p_BlockBody__Handle.getCPtr(obj), SWIGTYPE_p_BlockBody__Handle.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + + public static SWIGTYPE_p_BlockBody__Handle BlockBody__HandlePtr_value(SWIGTYPE_p_BlockBody__Handle obj) { + SWIGTYPE_p_BlockBody__Handle ret = new SWIGTYPE_p_BlockBody__Handle(skycoinPINVOKE.BlockBody__HandlePtr_value(SWIGTYPE_p_BlockBody__Handle.getCPtr(obj)), true); + return ret; + } + public static SWIGTYPE_p_Signature_Handle new_Signature_HandlePtr() { global::System.IntPtr cPtr = skycoinPINVOKE.new_Signature_HandlePtr(); SWIGTYPE_p_Signature_Handle ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_Signature_Handle(cPtr, false); @@ -484,6 +538,32 @@ public static SWIGTYPE_p_FeeCalcFunc FeeCalcFuncPtr_value(SWIGTYPE_p_FeeCalcFunc return ret; } + public static SWIGTYPE_p_p_coin__Block new_coin__BlockPtrPtr() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_coin__BlockPtrPtr(); + SWIGTYPE_p_p_coin__Block ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_p_coin__Block(cPtr, false); + return ret; + } + + public static SWIGTYPE_p_p_coin__Block copy_coin__BlockPtrPtr(coin__Block value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_coin__BlockPtrPtr(coin__Block.getCPtr(value)); + SWIGTYPE_p_p_coin__Block ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_p_coin__Block(cPtr, false); + return ret; + } + + public static void delete_coin__BlockPtrPtr(SWIGTYPE_p_p_coin__Block obj) { + skycoinPINVOKE.delete_coin__BlockPtrPtr(SWIGTYPE_p_p_coin__Block.getCPtr(obj)); + } + + public static void coin__BlockPtrPtr_assign(SWIGTYPE_p_p_coin__Block obj, coin__Block value) { + skycoinPINVOKE.coin__BlockPtrPtr_assign(SWIGTYPE_p_p_coin__Block.getCPtr(obj), coin__Block.getCPtr(value)); + } + + public static coin__Block coin__BlockPtrPtr_value(SWIGTYPE_p_p_coin__Block obj) { + global::System.IntPtr cPtr = skycoinPINVOKE.coin__BlockPtrPtr_value(SWIGTYPE_p_p_coin__Block.getCPtr(obj)); + coin__Block ret = (cPtr == global::System.IntPtr.Zero) ? null : new coin__Block(cPtr, false); + return ret; + } + public static void SKY_handle_close(SWIGTYPE_p_Handle p0) { skycoinPINVOKE.SKY_handle_close(SWIGTYPE_p_Handle.getCPtr(p0)); } @@ -494,6 +574,33 @@ public static uint zeroFeeCalculator(SWIGTYPE_p_Transaction__Handle handle, SWIG return ret; } + public static uint fix121FeeCalculator(SWIGTYPE_p_Transaction__Handle handle, SWIGTYPE_p_GoUint64_ pFee, SWIGTYPE_p_void context) { + uint ret = skycoinPINVOKE.fix121FeeCalculator(SWIGTYPE_p_Transaction__Handle.getCPtr(handle), SWIGTYPE_p_GoUint64_.getCPtr(pFee), SWIGTYPE_p_void.getCPtr(context)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint badFeeCalculator(SWIGTYPE_p_Transaction__Handle handle, SWIGTYPE_p_GoUint64_ pFee, SWIGTYPE_p_void context) { + uint ret = skycoinPINVOKE.badFeeCalculator(SWIGTYPE_p_Transaction__Handle.getCPtr(handle), SWIGTYPE_p_GoUint64_.getCPtr(pFee), SWIGTYPE_p_void.getCPtr(context)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static SWIGTYPE_p_FeeCalculator feeCalc() { + SWIGTYPE_p_FeeCalculator ret = new SWIGTYPE_p_FeeCalculator(skycoinPINVOKE.feeCalc(), true); + return ret; + } + + public static SWIGTYPE_p_FeeCalculator fix121() { + SWIGTYPE_p_FeeCalculator ret = new SWIGTYPE_p_FeeCalculator(skycoinPINVOKE.fix121(), true); + return ret; + } + + public static SWIGTYPE_p_FeeCalculator badCalc() { + SWIGTYPE_p_FeeCalculator ret = new SWIGTYPE_p_FeeCalculator(skycoinPINVOKE.badCalc(), true); + return ret; + } + public static int MEMPOOLIDX { set { skycoinPINVOKE.set_MEMPOOLIDX(value); @@ -1018,12 +1125,6 @@ public static uint SKY_fee_TransactionFee(SWIGTYPE_p_Transaction__Handle handle, return ret; } - public static uint SKY_coin_GetBlockObject(SWIGTYPE_p_Block__Handle handle, coin__Block outBlock) { - uint ret = skycoinPINVOKE.SKY_coin_GetBlockObject__SWIG_0(SWIGTYPE_p_Block__Handle.getCPtr(handle), coin__Block.getCPtr(outBlock)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - public static uint SKY_cipher_CheckSecKeyHash(cipher_SecKey s, cipher_SHA256 sha) { uint ret = skycoinPINVOKE.SKY_cipher_CheckSecKeyHash__SWIG_0(cipher_SecKey.getCPtr(s), cipher_SHA256.getCPtr(sha)); return ret; @@ -1183,7 +1284,7 @@ public static uint SKY_coin_CreateUnspent(coin__BlockHeader p0, SWIGTYPE_p_Trans } public static uint SKY_coin_GetBlockObject(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_p_coin__Block p1) { - uint ret = skycoinPINVOKE.SKY_coin_GetBlockObject__SWIG_1(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_p_coin__Block.getCPtr(p1)); + uint ret = skycoinPINVOKE.SKY_coin_GetBlockObject(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_p_coin__Block.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -2698,18 +2799,6 @@ public static uint SKY_secp256k1go_ECmultGen(secp256k1go__XYZ p0, SWIGTYPE_p_Num return ret; } - public static uint SKY_encrypt_Sha256Xor_Encrypt(GoSlice p0, GoSlice p1, GoSlice p2) { - uint ret = skycoinPINVOKE.SKY_encrypt_Sha256Xor_Encrypt(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr (p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_encrypt_Sha256Xor_Decrypt(GoSlice p0, GoSlice p1, GoSlice p2) { - uint ret = skycoinPINVOKE.SKY_encrypt_Sha256Xor_Decrypt(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr (p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - public static uint SKY_droplet_FromString(string p0, SWIGTYPE_p_unsigned_long_long p1) { var tmpp0 = p0; { @@ -4087,8 +4176,8 @@ public static uint SKY_coin_Create_Transactions(SWIGTYPE_p_Transactions__Handle return ret; } - public static uint SKY_coin_GetTransactionsObject(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_p_GoSlice_ p1) { - uint ret = skycoinPINVOKE.SKY_coin_GetTransactionsObject(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_p_GoSlice_.getCPtr(p1)); + public static uint SKY_coin_GetTransactionsObject(SWIGTYPE_p_Transactions__Handle p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_coin_GetTransactionsObject(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), GoSlice.getCPtr (p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index a2ca3a0b..c3f3010a 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -218,6 +218,21 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlicep_value")] public static extern global::System.IntPtr GoSlicep_value(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_GoUint8Ptr")] + public static extern global::System.IntPtr new_GoUint8Ptr(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_GoUint8Ptr")] + public static extern global::System.IntPtr copy_GoUint8Ptr(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_GoUint8Ptr")] + public static extern void delete_GoUint8Ptr(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoUint8Ptr_assign")] + public static extern void GoUint8Ptr_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoUint8Ptr_value")] + public static extern global::System.IntPtr GoUint8Ptr_value(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_GoStringp")] public static extern global::System.IntPtr new_GoStringp(); @@ -383,6 +398,21 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_Block__HandlePtr_value")] public static extern global::System.IntPtr Block__HandlePtr_value(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_BlockBody__HandlePtr")] + public static extern global::System.IntPtr new_BlockBody__HandlePtr(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_BlockBody__HandlePtr")] + public static extern global::System.IntPtr copy_BlockBody__HandlePtr(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_BlockBody__HandlePtr")] + public static extern void delete_BlockBody__HandlePtr(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_BlockBody__HandlePtr_assign")] + public static extern void BlockBody__HandlePtr_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_BlockBody__HandlePtr_value")] + public static extern global::System.IntPtr BlockBody__HandlePtr_value(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_Signature_HandlePtr")] public static extern global::System.IntPtr new_Signature_HandlePtr(); @@ -458,12 +488,42 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_FeeCalcFuncPtr_value")] public static extern global::System.IntPtr FeeCalcFuncPtr_value(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__BlockPtrPtr")] + public static extern global::System.IntPtr new_coin__BlockPtrPtr(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_coin__BlockPtrPtr")] + public static extern global::System.IntPtr copy_coin__BlockPtrPtr(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__BlockPtrPtr")] + public static extern void delete_coin__BlockPtrPtr(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockPtrPtr_assign")] + public static extern void coin__BlockPtrPtr_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockPtrPtr_value")] + public static extern global::System.IntPtr coin__BlockPtrPtr_value(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_handle_close")] public static extern void SKY_handle_close(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_zeroFeeCalculator")] public static extern uint zeroFeeCalculator(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_fix121FeeCalculator")] + public static extern uint fix121FeeCalculator(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_badFeeCalculator")] + public static extern uint badFeeCalculator(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_feeCalc")] + public static extern global::System.IntPtr feeCalc(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_fix121")] + public static extern global::System.IntPtr fix121(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_badCalc")] + public static extern global::System.IntPtr badCalc(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_MEMPOOLIDX")] public static extern void set_MEMPOOLIDX(int jarg1); @@ -767,9 +827,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_TransactionFee__SWIG_0")] public static extern uint SKY_fee_TransactionFee__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetBlockObject__SWIG_0")] - public static extern uint SKY_coin_GetBlockObject__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_CheckSecKeyHash__SWIG_0")] public static extern uint SKY_cipher_CheckSecKeyHash__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1232,8 +1289,8 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_CreateUnspent")] public static extern uint SKY_coin_CreateUnspent(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetBlockObject__SWIG_1")] - public static extern uint SKY_coin_GetBlockObject__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetBlockObject")] + public static extern uint SKY_coin_GetBlockObject(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_GetBlockBody")] public static extern uint SKY_coin_GetBlockBody(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1874,12 +1931,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_ECmultGen")] public static extern uint SKY_secp256k1go_ECmultGen(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encrypt_Sha256Xor_Encrypt")] - public static extern uint SKY_encrypt_Sha256Xor_Encrypt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_encrypt_Sha256Xor_Decrypt")] - public static extern uint SKY_encrypt_Sha256Xor_Decrypt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_droplet_FromString")] public static extern uint SKY_droplet_FromString(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index b1ccbfa5..6549de23 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -359,6 +359,29 @@ static GoSlice GoSlicep_value(GoSlice *obj) { } +static GoUint8_ *new_GoUint8Ptr() { + return (GoUint8_ *) calloc(1,sizeof(GoUint8_)); +} + +static GoUint8_ *copy_GoUint8Ptr(GoUint8_ value) { + GoUint8_ *obj = (GoUint8_ *) calloc(1,sizeof(GoUint8_)); + *obj = value; + return obj; +} + +static void delete_GoUint8Ptr(GoUint8_ *obj) { + if (obj) free(obj); +} + +static void GoUint8Ptr_assign(GoUint8_ *obj, GoUint8_ value) { + *obj = value; +} + +static GoUint8_ GoUint8Ptr_value(GoUint8_ *obj) { + return *obj; +} + + static _GoString_ *new_GoStringp() { return (_GoString_ *) calloc(1,sizeof(_GoString_)); } @@ -612,6 +635,29 @@ static Block__Handle Block__HandlePtr_value(Block__Handle *obj) { } +static BlockBody__Handle *new_BlockBody__HandlePtr() { + return (BlockBody__Handle *) calloc(1,sizeof(BlockBody__Handle)); +} + +static BlockBody__Handle *copy_BlockBody__HandlePtr(BlockBody__Handle value) { + BlockBody__Handle *obj = (BlockBody__Handle *) calloc(1,sizeof(BlockBody__Handle)); + *obj = value; + return obj; +} + +static void delete_BlockBody__HandlePtr(BlockBody__Handle *obj) { + if (obj) free(obj); +} + +static void BlockBody__HandlePtr_assign(BlockBody__Handle *obj, BlockBody__Handle value) { + *obj = value; +} + +static BlockBody__Handle BlockBody__HandlePtr_value(BlockBody__Handle *obj) { + return *obj; +} + + static Signature_Handle *new_Signature_HandlePtr() { return (Signature_Handle *) calloc(1,sizeof(Signature_Handle)); } @@ -727,6 +773,29 @@ static FeeCalcFunc FeeCalcFuncPtr_value(FeeCalcFunc *obj) { } +static coin__Block* *new_coin__BlockPtrPtr() { + return (coin__Block* *) calloc(1,sizeof(coin__Block*)); +} + +static coin__Block* *copy_coin__BlockPtrPtr(coin__Block* value) { + coin__Block* *obj = (coin__Block* *) calloc(1,sizeof(coin__Block*)); + *obj = value; + return obj; +} + +static void delete_coin__BlockPtrPtr(coin__Block* *obj) { + if (obj) free(obj); +} + +static void coin__BlockPtrPtr_assign(coin__Block* *obj, coin__Block* value) { + *obj = value; +} + +static coin__Block* coin__BlockPtrPtr_value(coin__Block* *obj) { + return *obj; +} + + #include "json.h" //Define function SKY_handle_close to avoid including libskycoin.h void SKY_handle_close(Handle p0); @@ -736,6 +805,30 @@ static FeeCalcFunc FeeCalcFuncPtr_value(FeeCalcFunc *obj) { return 0; } + GoUint32_ fix121FeeCalculator(Transaction__Handle handle, GoUint64_ *pFee, void* context){ + *pFee = 121; + return 0; +} + + GoUint32_ badFeeCalculator(Transaction__Handle handle, GoUint64_ *pFee, void* context){ + return 0x7FFFFFFF; +} + +FeeCalculator feeCalc(){ + FeeCalculator feeCalc = {zeroFeeCalculator, NULL}; + return feeCalc; +} + +FeeCalculator fix121(){ + FeeCalculator feeCalc = {fix121FeeCalculator, NULL}; + return feeCalc; +} + +FeeCalculator badCalc(){ + FeeCalculator feeCalc = {badFeeCalculator, NULL}; + return feeCalc; +} + int MEMPOOLIDX = 0; void *MEMPOOL[1024 * 256]; @@ -1852,12 +1945,6 @@ void makeEncryptedData(GoSlice data, GoUint32 dataLength, GoSlice pwd, coin__UxA }; - GoUint32 CSharp_skycoin_SKY_coin_GetBlockObject(Block__Handle handle, coin__Block* outBlock ){ - GoUint32 result = SKY_coin_GetBlockObject(handle, &outBlock); - return result; - }; - - GoUint32 CSharp_skycoin_SKY_cipher_CheckSecKeyHash(cipher_SecKey *s, cipher_SHA256* sha){ GoUint32 result = SKY_cipher_CheckSecKeyHash(s, sha); return result; @@ -1865,12 +1952,7 @@ void makeEncryptedData(GoSlice data, GoUint32 dataLength, GoSlice pwd, coin__UxA GoUint32 CSharp_skycoin_SKY_coin_NewBlock(Block__Handle p0, GoUint64 p1, cipher_SHA256* p2, Transactions__Handle p3, FeeCalculator* p4, Block__Handle* p5){ - FeeCalculator temp; - FeeCalculator *arg2 = (FeeCalculator *) 0 ; - temp.callback = zeroFeeCalculator; - temp.context = p4; - arg2 = &temp; - GoUint32 result = SKY_coin_NewBlock(p0, p1,p2,p3,arg2,p5); + GoUint32 result = SKY_coin_NewBlock(p0, p1,p2,p3,p4,p5); return result; } @@ -2299,6 +2381,74 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_GoSlicep_value(void * jarg1) { } +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_GoUint8Ptr() { + void * jresult ; + GoUint8_ *result = 0 ; + + result = (GoUint8_ *)new_GoUint8Ptr(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_GoUint8Ptr(void * jarg1) { + void * jresult ; + GoUint8_ arg1 ; + GoUint8_ *argp1 ; + GoUint8_ *result = 0 ; + + argp1 = (GoUint8_ *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint8_", 0); + return 0; + } + arg1 = *argp1; + result = (GoUint8_ *)copy_GoUint8Ptr(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_GoUint8Ptr(void * jarg1) { + GoUint8_ *arg1 = (GoUint8_ *) 0 ; + + arg1 = (GoUint8_ *)jarg1; + delete_GoUint8Ptr(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoUint8Ptr_assign(void * jarg1, void * jarg2) { + GoUint8_ *arg1 = (GoUint8_ *) 0 ; + GoUint8_ arg2 ; + GoUint8_ *argp2 ; + + arg1 = (GoUint8_ *)jarg1; + argp2 = (GoUint8_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint8_", 0); + return ; + } + arg2 = *argp2; + GoUint8Ptr_assign(arg1,arg2); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_GoUint8Ptr_value(void * jarg1) { + void * jresult ; + GoUint8_ *arg1 = (GoUint8_ *) 0 ; + GoUint8_ result; + + arg1 = (GoUint8_ *)jarg1; + result = GoUint8Ptr_value(arg1); + { + GoUint8_ * resultptr = (GoUint8_ *) malloc(sizeof(GoUint8_)); + memmove(resultptr, &result, sizeof(GoUint8_)); + jresult = resultptr; + } + return jresult; +} + + SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_GoStringp() { void * jresult ; _GoString_ *result = 0 ; @@ -2983,6 +3133,74 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_Block__HandlePtr_value(void * jarg1 } +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_BlockBody__HandlePtr() { + void * jresult ; + BlockBody__Handle *result = 0 ; + + result = (BlockBody__Handle *)new_BlockBody__HandlePtr(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_BlockBody__HandlePtr(void * jarg1) { + void * jresult ; + BlockBody__Handle arg1 ; + BlockBody__Handle *argp1 ; + BlockBody__Handle *result = 0 ; + + argp1 = (BlockBody__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null BlockBody__Handle", 0); + return 0; + } + arg1 = *argp1; + result = (BlockBody__Handle *)copy_BlockBody__HandlePtr(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_BlockBody__HandlePtr(void * jarg1) { + BlockBody__Handle *arg1 = (BlockBody__Handle *) 0 ; + + arg1 = (BlockBody__Handle *)jarg1; + delete_BlockBody__HandlePtr(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_BlockBody__HandlePtr_assign(void * jarg1, void * jarg2) { + BlockBody__Handle *arg1 = (BlockBody__Handle *) 0 ; + BlockBody__Handle arg2 ; + BlockBody__Handle *argp2 ; + + arg1 = (BlockBody__Handle *)jarg1; + argp2 = (BlockBody__Handle *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null BlockBody__Handle", 0); + return ; + } + arg2 = *argp2; + BlockBody__HandlePtr_assign(arg1,arg2); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_BlockBody__HandlePtr_value(void * jarg1) { + void * jresult ; + BlockBody__Handle *arg1 = (BlockBody__Handle *) 0 ; + BlockBody__Handle result; + + arg1 = (BlockBody__Handle *)jarg1; + result = BlockBody__HandlePtr_value(arg1); + { + BlockBody__Handle * resultptr = (BlockBody__Handle *) malloc(sizeof(BlockBody__Handle)); + memmove(resultptr, &result, sizeof(BlockBody__Handle)); + jresult = resultptr; + } + return jresult; +} + + SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_Signature_HandlePtr() { void * jresult ; Signature_Handle *result = 0 ; @@ -3307,6 +3525,58 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_FeeCalcFuncPtr_value(void * jarg1) } +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__BlockPtrPtr() { + void * jresult ; + coin__Block **result = 0 ; + + result = (coin__Block **)new_coin__BlockPtrPtr(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_coin__BlockPtrPtr(void * jarg1) { + void * jresult ; + coin__Block *arg1 = (coin__Block *) 0 ; + coin__Block **result = 0 ; + + arg1 = (coin__Block *)jarg1; + result = (coin__Block **)copy_coin__BlockPtrPtr(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__BlockPtrPtr(void * jarg1) { + coin__Block **arg1 = (coin__Block **) 0 ; + + arg1 = (coin__Block **)jarg1; + delete_coin__BlockPtrPtr(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockPtrPtr_assign(void * jarg1, void * jarg2) { + coin__Block **arg1 = (coin__Block **) 0 ; + coin__Block *arg2 = (coin__Block *) 0 ; + + arg1 = (coin__Block **)jarg1; + arg2 = (coin__Block *)jarg2; + coin__BlockPtrPtr_assign(arg1,arg2); +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__BlockPtrPtr_value(void * jarg1) { + void * jresult ; + coin__Block **arg1 = (coin__Block **) 0 ; + coin__Block *result = 0 ; + + arg1 = (coin__Block **)jarg1; + result = (coin__Block *)coin__BlockPtrPtr_value(arg1); + jresult = (void *)result; + return jresult; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_handle_close(void * jarg1) { Handle arg1 ; @@ -3339,6 +3609,92 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_zeroFeeCalculator(void * jarg } +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_fix121FeeCalculator(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoUint64_ *arg2 = (GoUint64_ *) 0 ; + void *arg3 = (void *) 0 ; + Transaction__Handle *argp1 ; + GoUint32_ result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64_ *)jarg2; + arg3 = (void *)jarg3; + result = fix121FeeCalculator(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_badFeeCalculator(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoUint64_ *arg2 = (GoUint64_ *) 0 ; + void *arg3 = (void *) 0 ; + Transaction__Handle *argp1 ; + GoUint32_ result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64_ *)jarg2; + arg3 = (void *)jarg3; + result = badFeeCalculator(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_feeCalc() { + void * jresult ; + FeeCalculator result; + + result = feeCalc(); + { + FeeCalculator * resultptr = (FeeCalculator *) malloc(sizeof(FeeCalculator)); + memmove(resultptr, &result, sizeof(FeeCalculator)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_fix121() { + void * jresult ; + FeeCalculator result; + + result = fix121(); + { + FeeCalculator * resultptr = (FeeCalculator *) malloc(sizeof(FeeCalculator)); + memmove(resultptr, &result, sizeof(FeeCalculator)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_badCalc() { + void * jresult ; + FeeCalculator result; + + result = badCalc(); + { + FeeCalculator * resultptr = (FeeCalculator *) malloc(sizeof(FeeCalculator)); + memmove(resultptr, &result, sizeof(FeeCalculator)); + jresult = resultptr; + } + return jresult; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_MEMPOOLIDX(int jarg1) { int arg1 ; @@ -4843,26 +5199,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_TransactionFee__SWIG_ } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetBlockObject__SWIG_0(void * jarg1, void * jarg2) { - unsigned int jresult ; - Block__Handle arg1 ; - coin__Block *arg2 = (coin__Block *) 0 ; - Block__Handle *argp1 ; - GoUint32 result; - - argp1 = (Block__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (coin__Block *)jarg2; - result = (GoUint32)CSharp_skycoin_SKY_coin_GetBlockObject(arg1,arg2); - jresult = result; - return jresult; -} - - SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_CheckSecKeyHash__SWIG_0(void * jarg1, void * jarg2) { unsigned int jresult ; cipher_SecKey *arg1 = (cipher_SecKey *) 0 ; @@ -4877,7 +5213,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_CheckSecKeyHash__S } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock__SWIG_0(void * jarg1, unsigned long long jarg2, void * jarg3, void * jarg4, FeeCalculator_ * jarg5, void * jarg6) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock__SWIG_0(void * jarg1, unsigned long long jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) { unsigned int jresult ; Block__Handle arg1 ; GoUint64 arg2 ; @@ -6440,7 +6776,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_GoSlice(void * jarg1) { } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock__SWIG_1(void * jarg1, unsigned long long jarg2, cipher_SecKey* jarg3, void * jarg4, FeeCalculator_ * jarg5, void * jarg6) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock__SWIG_1(void * jarg1, unsigned long long jarg2, cipher_SecKey* jarg3, void * jarg4, void * jarg5, void * jarg6) { unsigned int jresult ; Block__Handle arg1 ; GoUint64 arg2 ; @@ -6840,7 +7176,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_CreateUnspent(void * } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetBlockObject__SWIG_1(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetBlockObject(void * jarg1, void * jarg2) { unsigned int jresult ; Block__Handle arg1 ; coin__Block **arg2 = (coin__Block **) 0 ; @@ -11038,62 +11374,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_ECmultGen(voi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_Sha256Xor_Encrypt(void * jarg1, void * jarg2, GoSlice_ * jarg3) { - unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_encrypt_Sha256Xor_Encrypt(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_encrypt_Sha256Xor_Decrypt(void * jarg1, void * jarg2, GoSlice_ * jarg3) { - unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_encrypt_Sha256Xor_Decrypt(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_droplet_FromString(char* jarg1, void * jarg2) { unsigned int jresult ; GoString arg1 ; @@ -14900,7 +15180,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Create_Transactions( } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetTransactionsObject(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetTransactionsObject(void * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; Transactions__Handle arg1 ; coin__UxArray **arg2 = (coin__UxArray **) 0 ; @@ -14966,7 +15246,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Add(voi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Fees(void * jarg1, FeeCalculator_ * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Fees(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; Transactions__Handle arg1 ; FeeCalculator *arg2 = (FeeCalculator *) 0 ; @@ -15072,7 +15352,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Truncat } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortTransactions(void * jarg1, FeeCalculator_ * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortTransactions(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; Transactions__Handle arg1 ; FeeCalculator *arg2 = (FeeCalculator *) 0 ; @@ -15094,7 +15374,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_SortTransactions(voi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewSortableTransactions(void * jarg1, FeeCalculator_ * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewSortableTransactions(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; Transactions__Handle arg1 ; FeeCalculator *arg2 = (FeeCalculator *) 0 ; diff --git a/LibskycoinNetTest/check_cipher_crypto.cs b/LibskycoinNetTest/check_cipher_crypto.cs index 26ef74c8..566be5c5 100644 --- a/LibskycoinNetTest/check_cipher_crypto.cs +++ b/LibskycoinNetTest/check_cipher_crypto.cs @@ -41,7 +41,6 @@ public void TestNewPubKey () { var pTemp = new GoSlice (); err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); pTemp = p.toSlice (); - Console.WriteLine (pTemp.len); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); var p2 = new cipher_PubKey (); err = skycoin.skycoin.SKY_cipher_NewPubKey (pTemp, p2); diff --git a/LibskycoinNetTest/check_coin_block.cs b/LibskycoinNetTest/check_coin_block.cs index a483b037..4ca157fd 100644 --- a/LibskycoinNetTest/check_coin_block.cs +++ b/LibskycoinNetTest/check_coin_block.cs @@ -18,28 +18,43 @@ public SWIGTYPE_p_Transactions__Handle makeTestTransactions () { return txns; } - public uint zeroFeeCalculator (SWIGTYPE_p_Transaction__Handle tranas, SWIGTYPE_p_unsigned_long_long fee, SWIGTYPE_p_FeeCalcFunc context) { - skycoin.skycoin.GoUint64p_assign (fee, 0); - return 0; - - } - [Test] public void TestNewBlock () { - var txns = makeTestTransactions (); + var txns = transutils.makeTransactions (1); var block = skycoin.skycoin.new_Block__HandlePtr (); var err = skycoin.skycoin.SKY_coin_NewEmptyBlock (txns, block); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var pBlock = new coin__Block (); - err = skycoin.skycoin.SKY_coin_GetBlockObject (block, pBlock); + var pBlockP = skycoin.skycoin.new_coin__BlockPtrPtr (); + err = skycoin.skycoin.SKY_coin_GetBlockObject (block, pBlockP); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var pBlock = skycoin.skycoin.coin__BlockPtrPtr_value (pBlockP); pBlock.Head.Version = 0x02; pBlock.Head.Time = 100; pBlock.Head.BkSeq = 98; var uxHash = transutils.RandSHA256 (); - var zf = skycoin.skycoin.new_FeeCalculatorPtr (); - err = skycoin.skycoin.SKY_coin_NewBlock (block, 133, uxHash, txns, zf, block); + // invalid txn fees panics + err = skycoin.skycoin.SKY_coin_NewBlock (block, 133, uxHash, txns, transutils.badCalc, block); + Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + // no txns panics + var tnxs1 = skycoin.skycoin.new_Transactions__Handlep (); + skycoin.skycoin.SKY_coin_Create_Transactions (tnxs1); + err = skycoin.skycoin.SKY_coin_NewBlock (block, 133, uxHash, tnxs1, transutils.feeCalc, block); + Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + + // Valid block in fine + ulong fee = 121; + ulong currentTime = 133; + var b = skycoin.skycoin.new_Block__HandlePtr (); + err = skycoin.skycoin.SKY_coin_NewBlock (block, currentTime, uxHash, txns, transutils.fix121, b); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + + var pBlock2P = skycoin.skycoin.new_coin__BlockPtrPtr (); + err = skycoin.skycoin.SKY_coin_GetBlockObject (b, pBlock2P); + var pBlock2 = skycoin.skycoin.coin__BlockPtrPtr_value (pBlock2P); + Assert.AreEqual (pBlock2.Head.Fee, fee); + var hashs = skycoin.skycoin.GoUint8Ptr_value (pBlock2.Head.PrevHash); + Console.WriteLine (hashs.ToString ()); + } [Test] @@ -62,8 +77,9 @@ public void TestNewGenesisBlock () { var block = skycoin.skycoin.new_Block__HandlePtr (); err = skycoin.skycoin.SKY_coin_NewGenesisBlock (addr, genCoins, genTime, block); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var pBlock = new coin__Block (); - err = skycoin.skycoin.SKY_coin_GetBlockObject (block, pBlock); + var pBlockPP = skycoin.skycoin.new_coin__BlockPtrPtr (); + err = skycoin.skycoin.SKY_coin_GetBlockObject (block, pBlockPP); + var pBlock = skycoin.skycoin.coin__BlockPtrPtr_value (pBlockPP); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); var nullHash = new cipher_SHA256 (); var Head = new GoSlice (); @@ -73,7 +89,7 @@ public void TestNewGenesisBlock () { var strHead = new _GoString_ (); Head.getString (strHead); Assert.AreEqual (strnullHash.p, strHead.p); - // Assert.AreEqual (genTime, pBlock.Head.Time); + Assert.AreEqual (genTime, pBlock.Head.Time); Assert.AreEqual (0, pBlock.Head.BkSeq); Assert.AreEqual (0, pBlock.Head.Version); Assert.AreEqual (0, pBlock.Head.Fee); diff --git a/LibskycoinNetTest/transutils.cs b/LibskycoinNetTest/transutils.cs index 8fabe5d9..d7826e7b 100644 --- a/LibskycoinNetTest/transutils.cs +++ b/LibskycoinNetTest/transutils.cs @@ -4,7 +4,6 @@ using skycoin; namespace utils { public class transutils { - public delegate uint call (SWIGTYPE_p_Transaction__Handle tranas, SWIGTYPE_p_GoInt64_ fee, SWIGTYPE_p_FeeCalcFunc context); public cipher__Address makeAddress () { var pubkey = new cipher_PubKey (); var seckey = new cipher_SecKey (); @@ -163,6 +162,10 @@ public string base64Encode (string data) { } } + public SWIGTYPE_p_FeeCalculator feeCalc = skycoin.skycoin.feeCalc (); + public SWIGTYPE_p_FeeCalculator badCalc = skycoin.skycoin.badCalc (); + public SWIGTYPE_p_FeeCalculator fix121 = skycoin.skycoin.fix121 (); + public string base64Decode (string data) { try { System.Text.ASCIIEncoding encoder = new System.Text.ASCIIEncoding (); diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index 0aebb3d6..f56d6381 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit 0aebb3d6f014ddcb96c34934ce61398df922c504 +Subproject commit f56d638133af6ad8e151cd67a75a2422e5037255 diff --git a/swig/include/libskycoin.h b/swig/include/libskycoin.h index d3bad5aa..304e90ad 100644 --- a/swig/include/libskycoin.h +++ b/swig/include/libskycoin.h @@ -268,16 +268,6 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "cipher.encrypt.sha256xor.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - #line 5 "util.droplet.droplet.go" @@ -1064,10 +1054,6 @@ extern GoUint32 SKY_secp256k1go_XYZ_Add(secp256k1go__XYZ* p0, secp256k1go__XYZ* extern GoUint32 SKY_secp256k1go_ECmultGen(secp256k1go__XYZ* p0, Number_Handle p1); -extern GoUint32 SKY_encrypt_Sha256Xor_Encrypt(GoSlice p0, GoSlice p1, coin__UxArray* p2); - -extern GoUint32 SKY_encrypt_Sha256Xor_Decrypt(GoSlice p0, GoSlice p1, coin__UxArray* p2); - extern GoUint32 SKY_droplet_FromString(GoString p0, GoUint64* p1); extern GoUint32 SKY_droplet_ToString(GoUint64 p0, GoString_* p1); From 79bd953e9b01ac7b3ac442cfa9f81e70488e9935 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Mon, 15 Oct 2018 18:56:05 -0400 Subject: [PATCH 55/73] [test] refs #8 Rename in function --- LibskycoinNet/skycoin/skycoin.cs | 20 ++++++++--------- LibskycoinNet/skycoin/skycoinPINVOKE.cs | 20 ++++++++--------- LibskycoinNet/skycoin/skycoinnet_wrap.c | 30 ++++++++++++------------- LibskycoinNetTest/check_coin_block.cs | 12 +++++----- gopath/src/github.com/skycoin/skycoin | 2 +- 5 files changed, 42 insertions(+), 42 deletions(-) diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs index b9b34210..2eca91a6 100644 --- a/LibskycoinNet/skycoin/skycoin.cs +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -538,28 +538,28 @@ public static SWIGTYPE_p_FeeCalcFunc FeeCalcFuncPtr_value(SWIGTYPE_p_FeeCalcFunc return ret; } - public static SWIGTYPE_p_p_coin__Block new_coin__BlockPtrPtr() { - global::System.IntPtr cPtr = skycoinPINVOKE.new_coin__BlockPtrPtr(); + public static SWIGTYPE_p_p_coin__Block new_coin__BlockPtr() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_coin__BlockPtr(); SWIGTYPE_p_p_coin__Block ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_p_coin__Block(cPtr, false); return ret; } - public static SWIGTYPE_p_p_coin__Block copy_coin__BlockPtrPtr(coin__Block value) { - global::System.IntPtr cPtr = skycoinPINVOKE.copy_coin__BlockPtrPtr(coin__Block.getCPtr(value)); + public static SWIGTYPE_p_p_coin__Block copy_coin__BlockPtr(coin__Block value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_coin__BlockPtr(coin__Block.getCPtr(value)); SWIGTYPE_p_p_coin__Block ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_p_coin__Block(cPtr, false); return ret; } - public static void delete_coin__BlockPtrPtr(SWIGTYPE_p_p_coin__Block obj) { - skycoinPINVOKE.delete_coin__BlockPtrPtr(SWIGTYPE_p_p_coin__Block.getCPtr(obj)); + public static void delete_coin__BlockPtr(SWIGTYPE_p_p_coin__Block obj) { + skycoinPINVOKE.delete_coin__BlockPtr(SWIGTYPE_p_p_coin__Block.getCPtr(obj)); } - public static void coin__BlockPtrPtr_assign(SWIGTYPE_p_p_coin__Block obj, coin__Block value) { - skycoinPINVOKE.coin__BlockPtrPtr_assign(SWIGTYPE_p_p_coin__Block.getCPtr(obj), coin__Block.getCPtr(value)); + public static void coin__BlockPtr_assign(SWIGTYPE_p_p_coin__Block obj, coin__Block value) { + skycoinPINVOKE.coin__BlockPtr_assign(SWIGTYPE_p_p_coin__Block.getCPtr(obj), coin__Block.getCPtr(value)); } - public static coin__Block coin__BlockPtrPtr_value(SWIGTYPE_p_p_coin__Block obj) { - global::System.IntPtr cPtr = skycoinPINVOKE.coin__BlockPtrPtr_value(SWIGTYPE_p_p_coin__Block.getCPtr(obj)); + public static coin__Block coin__BlockPtr_value(SWIGTYPE_p_p_coin__Block obj) { + global::System.IntPtr cPtr = skycoinPINVOKE.coin__BlockPtr_value(SWIGTYPE_p_p_coin__Block.getCPtr(obj)); coin__Block ret = (cPtr == global::System.IntPtr.Zero) ? null : new coin__Block(cPtr, false); return ret; } diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index c3f3010a..781b1593 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -488,20 +488,20 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_FeeCalcFuncPtr_value")] public static extern global::System.IntPtr FeeCalcFuncPtr_value(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__BlockPtrPtr")] - public static extern global::System.IntPtr new_coin__BlockPtrPtr(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__BlockPtr")] + public static extern global::System.IntPtr new_coin__BlockPtr(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_coin__BlockPtrPtr")] - public static extern global::System.IntPtr copy_coin__BlockPtrPtr(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_coin__BlockPtr")] + public static extern global::System.IntPtr copy_coin__BlockPtr(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__BlockPtrPtr")] - public static extern void delete_coin__BlockPtrPtr(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_coin__BlockPtr")] + public static extern void delete_coin__BlockPtr(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockPtrPtr_assign")] - public static extern void coin__BlockPtrPtr_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockPtr_assign")] + public static extern void coin__BlockPtr_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockPtrPtr_value")] - public static extern global::System.IntPtr coin__BlockPtrPtr_value(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__BlockPtr_value")] + public static extern global::System.IntPtr coin__BlockPtr_value(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_handle_close")] public static extern void SKY_handle_close(global::System.Runtime.InteropServices.HandleRef jarg1); diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index 6549de23..9c20aee5 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -773,25 +773,25 @@ static FeeCalcFunc FeeCalcFuncPtr_value(FeeCalcFunc *obj) { } -static coin__Block* *new_coin__BlockPtrPtr() { +static coin__Block* *new_coin__BlockPtr() { return (coin__Block* *) calloc(1,sizeof(coin__Block*)); } -static coin__Block* *copy_coin__BlockPtrPtr(coin__Block* value) { +static coin__Block* *copy_coin__BlockPtr(coin__Block* value) { coin__Block* *obj = (coin__Block* *) calloc(1,sizeof(coin__Block*)); *obj = value; return obj; } -static void delete_coin__BlockPtrPtr(coin__Block* *obj) { +static void delete_coin__BlockPtr(coin__Block* *obj) { if (obj) free(obj); } -static void coin__BlockPtrPtr_assign(coin__Block* *obj, coin__Block* value) { +static void coin__BlockPtr_assign(coin__Block* *obj, coin__Block* value) { *obj = value; } -static coin__Block* coin__BlockPtrPtr_value(coin__Block* *obj) { +static coin__Block* coin__BlockPtr_value(coin__Block* *obj) { return *obj; } @@ -3525,53 +3525,53 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_FeeCalcFuncPtr_value(void * jarg1) } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__BlockPtrPtr() { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__BlockPtr() { void * jresult ; coin__Block **result = 0 ; - result = (coin__Block **)new_coin__BlockPtrPtr(); + result = (coin__Block **)new_coin__BlockPtr(); jresult = (void *)result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_coin__BlockPtrPtr(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_coin__BlockPtr(void * jarg1) { void * jresult ; coin__Block *arg1 = (coin__Block *) 0 ; coin__Block **result = 0 ; arg1 = (coin__Block *)jarg1; - result = (coin__Block **)copy_coin__BlockPtrPtr(arg1); + result = (coin__Block **)copy_coin__BlockPtr(arg1); jresult = (void *)result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__BlockPtrPtr(void * jarg1) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_coin__BlockPtr(void * jarg1) { coin__Block **arg1 = (coin__Block **) 0 ; arg1 = (coin__Block **)jarg1; - delete_coin__BlockPtrPtr(arg1); + delete_coin__BlockPtr(arg1); } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockPtrPtr_assign(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_coin__BlockPtr_assign(void * jarg1, void * jarg2) { coin__Block **arg1 = (coin__Block **) 0 ; coin__Block *arg2 = (coin__Block *) 0 ; arg1 = (coin__Block **)jarg1; arg2 = (coin__Block *)jarg2; - coin__BlockPtrPtr_assign(arg1,arg2); + coin__BlockPtr_assign(arg1,arg2); } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__BlockPtrPtr_value(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__BlockPtr_value(void * jarg1) { void * jresult ; coin__Block **arg1 = (coin__Block **) 0 ; coin__Block *result = 0 ; arg1 = (coin__Block **)jarg1; - result = (coin__Block *)coin__BlockPtrPtr_value(arg1); + result = (coin__Block *)coin__BlockPtr_value(arg1); jresult = (void *)result; return jresult; } diff --git a/LibskycoinNetTest/check_coin_block.cs b/LibskycoinNetTest/check_coin_block.cs index 4ca157fd..89f8f056 100644 --- a/LibskycoinNetTest/check_coin_block.cs +++ b/LibskycoinNetTest/check_coin_block.cs @@ -24,10 +24,10 @@ public void TestNewBlock () { var block = skycoin.skycoin.new_Block__HandlePtr (); var err = skycoin.skycoin.SKY_coin_NewEmptyBlock (txns, block); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var pBlockP = skycoin.skycoin.new_coin__BlockPtrPtr (); + var pBlockP = skycoin.skycoin.new_coin__BlockPtr (); err = skycoin.skycoin.SKY_coin_GetBlockObject (block, pBlockP); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var pBlock = skycoin.skycoin.coin__BlockPtrPtr_value (pBlockP); + var pBlock = skycoin.skycoin.coin__BlockPtr_value (pBlockP); pBlock.Head.Version = 0x02; pBlock.Head.Time = 100; pBlock.Head.BkSeq = 98; @@ -48,9 +48,9 @@ public void TestNewBlock () { err = skycoin.skycoin.SKY_coin_NewBlock (block, currentTime, uxHash, txns, transutils.fix121, b); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var pBlock2P = skycoin.skycoin.new_coin__BlockPtrPtr (); + var pBlock2P = skycoin.skycoin.new_coin__BlockPtr (); err = skycoin.skycoin.SKY_coin_GetBlockObject (b, pBlock2P); - var pBlock2 = skycoin.skycoin.coin__BlockPtrPtr_value (pBlock2P); + var pBlock2 = skycoin.skycoin.coin__BlockPtr_value (pBlock2P); Assert.AreEqual (pBlock2.Head.Fee, fee); var hashs = skycoin.skycoin.GoUint8Ptr_value (pBlock2.Head.PrevHash); Console.WriteLine (hashs.ToString ()); @@ -77,9 +77,9 @@ public void TestNewGenesisBlock () { var block = skycoin.skycoin.new_Block__HandlePtr (); err = skycoin.skycoin.SKY_coin_NewGenesisBlock (addr, genCoins, genTime, block); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var pBlockPP = skycoin.skycoin.new_coin__BlockPtrPtr (); + var pBlockPP = skycoin.skycoin.new_coin__BlockPtr (); err = skycoin.skycoin.SKY_coin_GetBlockObject (block, pBlockPP); - var pBlock = skycoin.skycoin.coin__BlockPtrPtr_value (pBlockPP); + var pBlock = skycoin.skycoin.coin__BlockPtr_value (pBlockPP); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); var nullHash = new cipher_SHA256 (); var Head = new GoSlice (); diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index f56d6381..b307e618 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit f56d638133af6ad8e151cd67a75a2422e5037255 +Subproject commit b307e618524a85308760d58a5257b0c44964f27d From 916aee6a6feae0a42462651e3c3ab4391d6cab4c Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Tue, 16 Oct 2018 01:17:59 -0400 Subject: [PATCH 56/73] [test] #8 Finish cipher , coin and util Tests run: 93, Errors: 0, Failures: 0, Inconclusive: 0, Time: 15,4956304 seconds Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0 --- LibskycoinNet/skycoin/skycoin.cs | 65 ++++- LibskycoinNet/skycoin/skycoinPINVOKE.cs | 50 +++- LibskycoinNet/skycoin/skycoinnet_wrap.c | 240 ++++++++++++++++++- LibskycoinNetTest/LibskycoinNetTest.csproj | 28 +-- LibskycoinNetTest/check_coin_block.cs | 73 +++++- LibskycoinNetTest/check_coin_transactions.cs | 45 +++- LibskycoinNetTest/transutils.cs | 2 + gopath/src/github.com/skycoin/skycoin | 2 +- 8 files changed, 457 insertions(+), 48 deletions(-) diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs index 2eca91a6..6e984321 100644 --- a/LibskycoinNet/skycoin/skycoin.cs +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -574,6 +574,12 @@ public static uint zeroFeeCalculator(SWIGTYPE_p_Transaction__Handle handle, SWIG return ret; } + public static uint calcFeeCalculator(SWIGTYPE_p_Transaction__Handle handle, SWIGTYPE_p_GoUint64_ pFee, SWIGTYPE_p_void context) { + uint ret = skycoinPINVOKE.calcFeeCalculator(SWIGTYPE_p_Transaction__Handle.getCPtr(handle), SWIGTYPE_p_GoUint64_.getCPtr(pFee), SWIGTYPE_p_void.getCPtr(context)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + public static uint fix121FeeCalculator(SWIGTYPE_p_Transaction__Handle handle, SWIGTYPE_p_GoUint64_ pFee, SWIGTYPE_p_void context) { uint ret = skycoinPINVOKE.fix121FeeCalculator(SWIGTYPE_p_Transaction__Handle.getCPtr(handle), SWIGTYPE_p_GoUint64_.getCPtr(pFee), SWIGTYPE_p_void.getCPtr(context)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); @@ -586,6 +592,12 @@ public static uint badFeeCalculator(SWIGTYPE_p_Transaction__Handle handle, SWIGT return ret; } + public static uint overflowFeeCalculator(SWIGTYPE_p_Transaction__Handle handle, SWIGTYPE_p_GoUint64_ pFee, SWIGTYPE_p_void context) { + uint ret = skycoinPINVOKE.overflowFeeCalculator(SWIGTYPE_p_Transaction__Handle.getCPtr(handle), SWIGTYPE_p_GoUint64_.getCPtr(pFee), SWIGTYPE_p_void.getCPtr(context)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + public static SWIGTYPE_p_FeeCalculator feeCalc() { SWIGTYPE_p_FeeCalculator ret = new SWIGTYPE_p_FeeCalculator(skycoinPINVOKE.feeCalc(), true); return ret; @@ -601,6 +613,16 @@ public static SWIGTYPE_p_FeeCalculator badCalc() { return ret; } + public static SWIGTYPE_p_FeeCalculator calcCalc() { + SWIGTYPE_p_FeeCalculator ret = new SWIGTYPE_p_FeeCalculator(skycoinPINVOKE.calcCalc(), true); + return ret; + } + + public static SWIGTYPE_p_FeeCalculator overflow() { + SWIGTYPE_p_FeeCalculator ret = new SWIGTYPE_p_FeeCalculator(skycoinPINVOKE.overflow(), true); + return ret; + } + public static int MEMPOOLIDX { set { skycoinPINVOKE.set_MEMPOOLIDX(value); @@ -897,6 +919,10 @@ public static void makeEncryptedData(GoSlice data, uint dataLength, GoSlice pwd, if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); } + public static void convertGoUint8toSHA256(SWIGTYPE_p_GoUint8_ __in, cipher_SHA256 __out) { + skycoinPINVOKE.convertGoUint8toSHA256(SWIGTYPE_p_GoUint8_.getCPtr(__in), cipher_SHA256.getCPtr(__out)); + } + public static uint SKY_cipher_SumSHA256(GoSlice seed, cipher_SHA256 sha) { uint ret = skycoinPINVOKE.SKY_cipher_SumSHA256__SWIG_0(GoSlice.getCPtr(seed), cipher_SHA256.getCPtr(sha)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); @@ -1136,6 +1162,35 @@ public static uint SKY_coin_NewBlock(SWIGTYPE_p_Block__Handle p0, ulong p1, ciph return ret; } + public static uint SKY_coin_Block_HashHeader(SWIGTYPE_p_Block__Handle p0, cipher_SHA256 p1) { + uint ret = skycoinPINVOKE.SKY_coin_Block_HashHeader__SWIG_0(SWIGTYPE_p_Block__Handle.getCPtr(p0), cipher_SHA256.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_Block_PreHashHeader(SWIGTYPE_p_Block__Handle p0, cipher_SHA256 p1) { + uint ret = skycoinPINVOKE.SKY_coin_Block_PreHashHeader__SWIG_0(SWIGTYPE_p_Block__Handle.getCPtr(p0), cipher_SHA256.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_BlockBody_Hash(SWIGTYPE_p_BlockBody__Handle p0, cipher_SHA256 p1) { + uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Hash__SWIG_0(SWIGTYPE_p_BlockBody__Handle.getCPtr(p0), cipher_SHA256.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + public static uint SKY_coin_BlockHeader_Hash(coin__BlockHeader p0, cipher_SHA256 p1) { + uint ret = skycoinPINVOKE.SKY_coin_BlockHeader_Hash__SWIG_0(coin__BlockHeader.getCPtr(p0), cipher_SHA256.getCPtr(p1)); + return ret; + } + + public static uint SKY_coin_Block_HashBody(SWIGTYPE_p_Block__Handle p0, cipher_SHA256 p1) { + uint ret = skycoinPINVOKE.SKY_coin_Block_HashBody__SWIG_0(SWIGTYPE_p_Block__Handle.getCPtr(p0), cipher_SHA256.getCPtr(p1)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + public static uint SKY_coin_NewBlock(SWIGTYPE_p_Block__Handle p0, ulong p1, cipher_SecKey p2, SWIGTYPE_p_Transactions__Handle p3, SWIGTYPE_p_FeeCalculator p4, SWIGTYPE_p_Block__Handle p5) { var tmpp2 = cipher_SecKey.getCPtr (p2); { @@ -1161,7 +1216,7 @@ public static uint SKY_coin_NewGenesisBlock(cipher__Address p0, ulong p1, ulong public static uint SKY_coin_Block_HashHeader(SWIGTYPE_p_Block__Handle p0, cipher_SecKey p1) { var tmpp1 = cipher_SecKey.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_coin_Block_HashHeader(SWIGTYPE_p_Block__Handle.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_coin_Block_HashHeader__SWIG_1(SWIGTYPE_p_Block__Handle.getCPtr(p0), tmpp1); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -1170,7 +1225,7 @@ public static uint SKY_coin_Block_HashHeader(SWIGTYPE_p_Block__Handle p0, cipher public static uint SKY_coin_Block_PreHashHeader(SWIGTYPE_p_Block__Handle p0, cipher_SecKey p1) { var tmpp1 = cipher_SecKey.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_coin_Block_PreHashHeader(SWIGTYPE_p_Block__Handle.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_coin_Block_PreHashHeader__SWIG_1(SWIGTYPE_p_Block__Handle.getCPtr(p0), tmpp1); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -1191,7 +1246,7 @@ public static uint SKY_coin_Block_Seq(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_un public static uint SKY_coin_Block_HashBody(SWIGTYPE_p_Block__Handle p0, cipher_SecKey p1) { var tmpp1 = cipher_SecKey.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_coin_Block_HashBody(SWIGTYPE_p_Block__Handle.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_coin_Block_HashBody__SWIG_1(SWIGTYPE_p_Block__Handle.getCPtr(p0), tmpp1); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -1233,7 +1288,7 @@ public static uint SKY_coin_NewBlockHeader(coin__BlockHeader p0, cipher_SecKey p public static uint SKY_coin_BlockHeader_Hash(coin__BlockHeader p0, cipher_SecKey p1) { var tmpp1 = cipher_SecKey.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_coin_BlockHeader_Hash(coin__BlockHeader.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_coin_BlockHeader_Hash__SWIG_1(coin__BlockHeader.getCPtr(p0), tmpp1); return ret; } } @@ -1254,7 +1309,7 @@ public static uint SKY_coin_BlockHeader_String(coin__BlockHeader p0, _GoString_ public static uint SKY_coin_BlockBody_Hash(SWIGTYPE_p_BlockBody__Handle p0, cipher_SecKey p1) { var tmpp1 = cipher_SecKey.getCPtr (p1); { - uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Hash(SWIGTYPE_p_BlockBody__Handle.getCPtr(p0), tmpp1); + uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Hash__SWIG_1(SWIGTYPE_p_BlockBody__Handle.getCPtr(p0), tmpp1); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index 781b1593..f37a2c64 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -509,12 +509,18 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_zeroFeeCalculator")] public static extern uint zeroFeeCalculator(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_calcFeeCalculator")] + public static extern uint calcFeeCalculator(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_fix121FeeCalculator")] public static extern uint fix121FeeCalculator(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_badFeeCalculator")] public static extern uint badFeeCalculator(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_overflowFeeCalculator")] + public static extern uint overflowFeeCalculator(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_feeCalc")] public static extern global::System.IntPtr feeCalc(); @@ -524,6 +530,12 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_badCalc")] public static extern global::System.IntPtr badCalc(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_calcCalc")] + public static extern global::System.IntPtr calcCalc(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_overflow")] + public static extern global::System.IntPtr overflow(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_MEMPOOLIDX")] public static extern void set_MEMPOOLIDX(int jarg1); @@ -707,6 +719,9 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_makeEncryptedData")] public static extern void makeEncryptedData(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_convertGoUint8toSHA256")] + public static extern void convertGoUint8toSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SumSHA256__SWIG_0")] public static extern uint SKY_cipher_SumSHA256__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -833,6 +848,21 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewBlock__SWIG_0")] public static extern uint SKY_coin_NewBlock__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_HashHeader__SWIG_0")] + public static extern uint SKY_coin_Block_HashHeader__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_PreHashHeader__SWIG_0")] + public static extern uint SKY_coin_Block_PreHashHeader__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockBody_Hash__SWIG_0")] + public static extern uint SKY_coin_BlockBody_Hash__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockHeader_Hash__SWIG_0")] + public static extern uint SKY_coin_BlockHeader_Hash__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_HashBody__SWIG_0")] + public static extern uint SKY_coin_Block_HashBody__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKey_isEqual")] public static extern int cipher_PubKey_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1238,11 +1268,11 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewGenesisBlock")] public static extern uint SKY_coin_NewGenesisBlock(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_HashHeader")] - public static extern uint SKY_coin_Block_HashHeader(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_HashHeader__SWIG_1")] + public static extern uint SKY_coin_Block_HashHeader__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_PreHashHeader")] - public static extern uint SKY_coin_Block_PreHashHeader(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_PreHashHeader__SWIG_1")] + public static extern uint SKY_coin_Block_PreHashHeader__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_Time")] public static extern uint SKY_coin_Block_Time(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1250,8 +1280,8 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_Seq")] public static extern uint SKY_coin_Block_Seq(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_HashBody")] - public static extern uint SKY_coin_Block_HashBody(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_HashBody__SWIG_1")] + public static extern uint SKY_coin_Block_HashBody__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_Size")] public static extern uint SKY_coin_Block_Size(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1265,8 +1295,8 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_NewBlockHeader")] public static extern uint SKY_coin_NewBlockHeader(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, ulong jarg3, ulong jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockHeader_Hash")] - public static extern uint SKY_coin_BlockHeader_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockHeader_Hash__SWIG_1")] + public static extern uint SKY_coin_BlockHeader_Hash__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockHeader_Bytes")] public static extern uint SKY_coin_BlockHeader_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1274,8 +1304,8 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockHeader_String")] public static extern uint SKY_coin_BlockHeader_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockBody_Hash")] - public static extern uint SKY_coin_BlockBody_Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockBody_Hash__SWIG_1")] + public static extern uint SKY_coin_BlockBody_Hash__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_BlockBody_Size")] public static extern uint SKY_coin_BlockBody_Size(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index 9c20aee5..a616187f 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -805,6 +805,11 @@ static coin__Block* coin__BlockPtr_value(coin__Block* *obj) { return 0; } + GoUint32_ calcFeeCalculator(Transaction__Handle handle, GoUint64_ *pFee, void* context){ + *pFee = 1; + return 0; +} + GoUint32_ fix121FeeCalculator(Transaction__Handle handle, GoUint64_ *pFee, void* context){ *pFee = 121; return 0; @@ -814,6 +819,12 @@ static coin__Block* coin__BlockPtr_value(coin__Block* *obj) { return 0x7FFFFFFF; } +GoUint32_ overflowFeeCalculator(Transaction__Handle handle, GoUint64_ *pFee, void *context) +{ + *pFee = 0xFFFFFFFFFFFFFFFF; + return 0; +} + FeeCalculator feeCalc(){ FeeCalculator feeCalc = {zeroFeeCalculator, NULL}; return feeCalc; @@ -829,6 +840,15 @@ FeeCalculator badCalc(){ return feeCalc; } +FeeCalculator calcCalc(){ + FeeCalculator feeCalc = {calcFeeCalculator, NULL}; + return feeCalc; +} + +FeeCalculator overflow(){ + FeeCalculator feeCalc = {overflowFeeCalculator, NULL}; + return feeCalc; +} int MEMPOOLIDX = 0; void *MEMPOOL[1024 * 256]; @@ -1550,6 +1570,10 @@ void makeEncryptedData(GoSlice data, GoUint32 dataLength, GoSlice pwd, coin__UxA unsigned int size = b64_encode((const unsigned char*)dest_buffer, fullDestLength, encrypted->data); encrypted->len = size; } + +void convertGoUint8toSHA256(GoUint8_* __in, cipher_SHA256* __out){ +memcpy(__out->data, __in, 32); +} GoUint32 CSharp_skycoin_SKY_cipher_SumSHA256(GoSlice seed, cipher_SHA256* sha){ @@ -1957,6 +1981,36 @@ void makeEncryptedData(GoSlice data, GoUint32 dataLength, GoSlice pwd, coin__UxA } + GoUint32 CSharp_skycoin_SKY_coin_Block_HashHeader(Block__Handle p0, cipher_SHA256* p1){ + GoUint32 result = SKY_coin_Block_HashHeader(p0, p1); + return result; + } + + + GoUint32 CSharp_skycoin_SKY_coin_Block_PreHashHeader(Block__Handle p0, cipher_SHA256* p1){ + GoUint32 result = SKY_coin_Block_PreHashHeader(p0, p1); + return result; + } + + + GoUint32 CSharp_skycoin_SKY_coin_BlockBody_Hash(BlockBody__Handle p0, cipher_SHA256* p1){ + GoUint32 result = SKY_coin_BlockBody_Hash(p0, p1); + return result; + } + + + GoUint32 CSharp_skycoin_SKY_coin_BlockHeader_Hash(coin__BlockHeader* p0, cipher_SHA256* p1){ + GoUint32 result = SKY_coin_BlockHeader_Hash(p0, p1); + return result; + } + + + GoUint32 CSharp_skycoin_SKY_coin_Block_HashBody(Block__Handle p0, cipher_SHA256* p1){ + GoUint32 result = SKY_coin_Block_HashBody(p0, p1); + return result; + } + + GoUint32_ _WrapperFeeCalculator(Transaction__Handle handle, GoUint64_* pFee, void* context){ FeeCalcFunc* feeCalc = (FeeCalcFunc*)context; @@ -3609,6 +3663,28 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_zeroFeeCalculator(void * jarg } +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_calcFeeCalculator(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoUint64_ *arg2 = (GoUint64_ *) 0 ; + void *arg3 = (void *) 0 ; + Transaction__Handle *argp1 ; + GoUint32_ result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64_ *)jarg2; + arg3 = (void *)jarg3; + result = calcFeeCalculator(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_fix121FeeCalculator(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; Transaction__Handle arg1 ; @@ -3653,6 +3729,28 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_badFeeCalculator(void * jarg1 } +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_overflowFeeCalculator(void * jarg1, void * jarg2, void * jarg3) { + unsigned int jresult ; + Transaction__Handle arg1 ; + GoUint64_ *arg2 = (GoUint64_ *) 0 ; + void *arg3 = (void *) 0 ; + Transaction__Handle *argp1 ; + GoUint32_ result; + + argp1 = (Transaction__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (GoUint64_ *)jarg2; + arg3 = (void *)jarg3; + result = overflowFeeCalculator(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_feeCalc() { void * jresult ; FeeCalculator result; @@ -3695,6 +3793,34 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_badCalc() { } +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_calcCalc() { + void * jresult ; + FeeCalculator result; + + result = calcCalc(); + { + FeeCalculator * resultptr = (FeeCalculator *) malloc(sizeof(FeeCalculator)); + memmove(resultptr, &result, sizeof(FeeCalculator)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_overflow() { + void * jresult ; + FeeCalculator result; + + result = overflow(); + { + FeeCalculator * resultptr = (FeeCalculator *) malloc(sizeof(FeeCalculator)); + memmove(resultptr, &result, sizeof(FeeCalculator)); + jresult = resultptr; + } + return jresult; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_MEMPOOLIDX(int jarg1) { int arg1 ; @@ -4479,6 +4605,16 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_makeEncryptedData(void * jarg1, unsig } +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_convertGoUint8toSHA256(void * jarg1, void * jarg2) { + GoUint8_ *arg1 = (GoUint8_ *) 0 ; + cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; + + arg1 = (GoUint8_ *)jarg1; + arg2 = (cipher_SHA256 *)jarg2; + convertGoUint8toSHA256(arg1,arg2); +} + + SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SumSHA256__SWIG_0(void * jarg1, void * jarg2) { unsigned int jresult ; GoSlice arg1 ; @@ -5247,6 +5383,100 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlock__SWIG_0(voi } +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_HashHeader__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + Block__Handle arg1 ; + cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; + Block__Handle *argp1 ; + GoUint32 result; + + argp1 = (Block__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher_SHA256 *)jarg2; + result = (GoUint32)CSharp_skycoin_SKY_coin_Block_HashHeader(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_PreHashHeader__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + Block__Handle arg1 ; + cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; + Block__Handle *argp1 ; + GoUint32 result; + + argp1 = (Block__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher_SHA256 *)jarg2; + result = (GoUint32)CSharp_skycoin_SKY_coin_Block_PreHashHeader(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Hash__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + BlockBody__Handle arg1 ; + cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; + BlockBody__Handle *argp1 ; + GoUint32 result; + + argp1 = (BlockBody__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null BlockBody__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher_SHA256 *)jarg2; + result = (GoUint32)CSharp_skycoin_SKY_coin_BlockBody_Hash(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockHeader_Hash__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; + GoUint32 result; + + arg1 = (coin__BlockHeader *)jarg1; + arg2 = (cipher_SHA256 *)jarg2; + result = (GoUint32)CSharp_skycoin_SKY_coin_BlockHeader_Hash(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_HashBody__SWIG_0(void * jarg1, void * jarg2) { + unsigned int jresult ; + Block__Handle arg1 ; + cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; + Block__Handle *argp1 ; + GoUint32 result; + + argp1 = (Block__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Block__Handle", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher_SHA256 *)jarg2; + result = (GoUint32)CSharp_skycoin_SKY_coin_Block_HashBody(arg1,arg2); + jresult = result; + return jresult; +} + + SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_PubKey_isEqual(void * jarg1, void * jarg2) { int jresult ; cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; @@ -6842,7 +7072,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewGenesisBlock(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_HashHeader(void * jarg1, cipher_SecKey* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_HashHeader__SWIG_1(void * jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; Block__Handle arg1 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; @@ -6862,7 +7092,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_HashHeader(voi } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_PreHashHeader(void * jarg1, cipher_SecKey* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_PreHashHeader__SWIG_1(void * jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; Block__Handle arg1 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; @@ -6922,7 +7152,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_Seq(void * jar } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_HashBody(void * jarg1, cipher_SecKey* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_HashBody__SWIG_1(void * jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; Block__Handle arg1 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; @@ -7034,7 +7264,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_NewBlockHeader(void } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockHeader_Hash(void * jarg1, cipher_SecKey* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockHeader_Hash__SWIG_1(void * jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; @@ -7076,7 +7306,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockHeader_String(v } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Hash(void * jarg1, cipher_SecKey* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Hash__SWIG_1(void * jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; BlockBody__Handle arg1 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; diff --git a/LibskycoinNetTest/LibskycoinNetTest.csproj b/LibskycoinNetTest/LibskycoinNetTest.csproj index a44a139d..3a396152 100644 --- a/LibskycoinNetTest/LibskycoinNetTest.csproj +++ b/LibskycoinNetTest/LibskycoinNetTest.csproj @@ -38,21 +38,21 @@ - - - - - - - - - - - - + + + + + + + + + + + + - - + + diff --git a/LibskycoinNetTest/check_coin_block.cs b/LibskycoinNetTest/check_coin_block.cs index 89f8f056..8a204cdf 100644 --- a/LibskycoinNetTest/check_coin_block.cs +++ b/LibskycoinNetTest/check_coin_block.cs @@ -8,6 +8,7 @@ namespace LibskycoinNetTest { public class check_coin_block { utils.transutils transutils = new utils.transutils (); + public SWIGTYPE_p_Transactions__Handle makeTestTransactions () { var txns = skycoin.skycoin.new_Transactions__Handlep (); var err = skycoin.skycoin.SKY_coin_Create_Transactions (txns); @@ -17,6 +18,30 @@ public SWIGTYPE_p_Transactions__Handle makeTestTransactions () { Assert.AreEqual (err, skycoin.skycoin.SKY_OK); return txns; } + public uint makeNewBlock (cipher_SHA256 uxHash, SWIGTYPE_p_Block__Handle newBlock) { + var bodyhash = new cipher_SHA256 (); + var block = skycoin.skycoin.new_Block__HandlePtr (); + var transactions = makeTestTransactions (); + var err = skycoin.skycoin.SKY_coin_NewEmptyBlock (transactions, block); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + + var pBlockP = skycoin.skycoin.new_coin__BlockPtr (); + err = skycoin.skycoin.SKY_coin_GetBlockObject (block, pBlockP); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var pBlock = skycoin.skycoin.coin__BlockPtr_value (pBlockP); + pBlock.Head.Version = 0x02; + pBlock.Head.Time = 100; + pBlock.Head.BkSeq = 0; + pBlock.Head.Fee = 10; + var body = skycoin.skycoin.new_BlockBody__HandlePtr (); + err = skycoin.skycoin.SKY_coin_GetBlockBody (block, body); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_BlockBody_Hash (body, bodyhash); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_NewBlock (block, 100 + 200, uxHash, transactions, transutils.feeCalc, newBlock); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + return err; + } [Test] public void TestNewBlock () { @@ -53,13 +78,57 @@ public void TestNewBlock () { var pBlock2 = skycoin.skycoin.coin__BlockPtr_value (pBlock2P); Assert.AreEqual (pBlock2.Head.Fee, fee); var hashs = skycoin.skycoin.GoUint8Ptr_value (pBlock2.Head.PrevHash); - Console.WriteLine (hashs.ToString ()); + var prevHash = new cipher_SHA256 (); + var prevHashP = new cipher_SHA256 (); + skycoin.skycoin.SKY_coin_Block_PreHashHeader (block, prevHash); + skycoin.skycoin.SKY_coin_Block_HashHeader (b, prevHashP); + Assert.AreEqual (prevHash.isEqual (prevHashP), 0); + Assert.AreEqual (pBlock2.Head.Time, currentTime); + Assert.AreEqual (pBlock2.Head.BkSeq, pBlock.Head.BkSeq + 1); + var pUxHash = new cipher_SHA256 (); + skycoin.skycoin.convertGoUint8toSHA256 (pBlock2.Head.UxHash, pUxHash); + Assert.AreEqual (uxHash.isEqual (pUxHash), 1); + } + + [Test] + public void TestBlockHashHeader () { + var uxHash = transutils.RandSHA256 (); + var b = skycoin.skycoin.new_Block__HandlePtr (); + var err = makeNewBlock (uxHash, b); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + + var sha1 = new cipher_SHA256 (); + var sha2 = new cipher_SHA256 (); + err = skycoin.skycoin.SKY_coin_Block_HashHeader (b, sha1); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var chP = skycoin.skycoin.new_coin__BlockPtr (); + skycoin.skycoin.SKY_coin_GetBlockObject (b, chP); + var ch = skycoin.skycoin.coin__BlockPtr_value (chP); + skycoin.skycoin.SKY_coin_BlockHeader_Hash (ch.Head, sha2); + Assert.AreEqual (sha1.isEqual (sha2), 1); + Assert.AreEqual (sha1.isEqual (new cipher_SHA256 ()), 0); } [Test] public void TestBlockHashBody () { - // TODO: not complete by callback + var uxHash = transutils.RandSHA256 (); + var b = skycoin.skycoin.new_Block__HandlePtr (); + var err = makeNewBlock (uxHash, b); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + + var sha1 = new cipher_SHA256 (); + var sha2 = new cipher_SHA256 (); + skycoin.skycoin.SKY_coin_Block_HashBody (b, sha1); + var body = skycoin.skycoin.new_BlockBody__HandlePtr (); + skycoin.skycoin.SKY_coin_GetBlockBody (b, body); + skycoin.skycoin.SKY_coin_BlockBody_Hash (body, sha2); + Assert.AreEqual (sha1.isEqual (sha2), 1); + var hb = new cipher_SHA256 (); + skycoin.skycoin.SKY_coin_Block_HashBody (b, hb); + var bh = new cipher_SHA256 (); + skycoin.skycoin.SKY_coin_BlockBody_Hash (body, bh); + Assert.AreEqual (bh.isEqual (hb), 1); } [Test] diff --git a/LibskycoinNetTest/check_coin_transactions.cs b/LibskycoinNetTest/check_coin_transactions.cs index 23e436a7..3611aca8 100644 --- a/LibskycoinNetTest/check_coin_transactions.cs +++ b/LibskycoinNetTest/check_coin_transactions.cs @@ -874,17 +874,40 @@ public void TestVerifyTransactionHoursSpending () { } } - // [Test] - // public void TestTransactionsFees () { - // var fees = new Fee_Calculator (); - // var txns = skycoin.skycoin.new_Transactions__Handlep (); - // skycoin.skycoin.makeTransactions (4, txns); - // var fee = skycoin.skycoin.new_GoUint64p (); - // var err = skycoin.skycoin.SKY_coin_Transactions_Fees (txns, fees, fee); - // Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - // Console.WriteLine (skycoin.skycoin.GoUint64p_value (fee)); - - // } + [Test] + public void TestTransactionsFees () { + var txns = skycoin.skycoin.new_Transactions__Handlep (); + skycoin.skycoin.SKY_coin_Create_Transactions (txns); + + // Nil txns + var fee = skycoin.skycoin.new_GoUint64p (); + var err = skycoin.skycoin.SKY_coin_Transactions_Fees (txns, transutils.calc, fee); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.GoUint64p_value (fee), 0); + + var txn = skycoin.skycoin.new_Transaction__Handlep (); + skycoin.skycoin.SKY_coin_Create_Transaction (txn); + err = skycoin.skycoin.SKY_coin_Transactions_Add (txns, txn); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = skycoin.skycoin.SKY_coin_Transactions_Add (txns, txn); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + + // 2 transactions, calc() always returns 1 + fee = skycoin.skycoin.new_GoUint64p (); + err = skycoin.skycoin.SKY_coin_Transactions_Fees (txns, transutils.calc, fee); + Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (skycoin.skycoin.GoUint64p_value (fee), 2); + + // calc error + fee = skycoin.skycoin.new_GoUint64p (); + err = skycoin.skycoin.SKY_coin_Transactions_Fees (txns, transutils.badCalc, fee); + Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + + // summing of calculated fees overflows + fee = skycoin.skycoin.new_GoUint64p (); + err = skycoin.skycoin.SKY_coin_Transactions_Fees (txns, transutils.overflow, fee); + Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + } } } \ No newline at end of file diff --git a/LibskycoinNetTest/transutils.cs b/LibskycoinNetTest/transutils.cs index d7826e7b..b90e7fbf 100644 --- a/LibskycoinNetTest/transutils.cs +++ b/LibskycoinNetTest/transutils.cs @@ -165,6 +165,8 @@ public string base64Encode (string data) { public SWIGTYPE_p_FeeCalculator feeCalc = skycoin.skycoin.feeCalc (); public SWIGTYPE_p_FeeCalculator badCalc = skycoin.skycoin.badCalc (); public SWIGTYPE_p_FeeCalculator fix121 = skycoin.skycoin.fix121 (); + public SWIGTYPE_p_FeeCalculator calc = skycoin.skycoin.calcCalc (); + public SWIGTYPE_p_FeeCalculator overflow = skycoin.skycoin.overflow(); public string base64Decode (string data) { try { diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index b307e618..59fc6016 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit b307e618524a85308760d58a5257b0c44964f27d +Subproject commit 59fc6016f3c60351451d0e4bfd5b4f67e3fd6f4c From 37035be7821eeff4a74e5b11df0e9e5ffb9a7548 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Tue, 16 Oct 2018 20:05:22 -0400 Subject: [PATCH 57/73] [submodule] Update submodule --- LibskycoinNet/skycoin/skycoinnet_wrap.c | 7 ++++--- gopath/src/github.com/skycoin/skycoin | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index a616187f..b25386f4 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -1519,7 +1519,8 @@ void makeEncryptedData(GoSlice data, GoUint32 dataLength, GoSlice pwd, coin__UxA char* buffer = malloc(fullLength); if(buffer != NULL){return;} //Add data length to the beginning, saving space for the checksum - for(int i = 0; i < 4; i++){ + int i; + for(i = 0; i < 4; i++){ int shift = i * 8; buffer[i + 32] = (dataLength & (0xFF << shift)) >> shift; } @@ -1527,7 +1528,7 @@ void makeEncryptedData(GoSlice data, GoUint32 dataLength, GoSlice pwd, coin__UxA memcpy(buffer + 4 + 32, data.data, dataLength); //Add padding - for(int i = dataLength + 4 + 32; i < fullLength; i++){ + for(i = dataLength + 4 + 32; i < fullLength; i++){ buffer[i] = 0; } //Buffer with space for the checksum, then data length, then data, and then padding @@ -1551,7 +1552,7 @@ void makeEncryptedData(GoSlice data, GoUint32 dataLength, GoSlice pwd, coin__UxA int destBufferStart = sizeof(cipher__SHA256) + 32; unsigned char* dest_buffer = malloc(fullDestLength); if(dest_buffer != NULL){return;} - for(int i = 0; i < n; i++){ + for(i = 0; i < n; i++){ hashKeyIndexNonce(hashPassword, i, &hashNonce, &h); cipher__SHA256* pBuffer = (cipher__SHA256*)(buffer + i *32); cipher__SHA256* xorResult = (cipher__SHA256*)(dest_buffer + destBufferStart + i *32); diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index 59fc6016..33cb6b94 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit 59fc6016f3c60351451d0e4bfd5b4f67e3fd6f4c +Subproject commit 33cb6b94f0346e2835dd5b11fb0dc2ff3cdad3ef From ea53d20fbac3776b23418a38af0e219c6d83410d Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Tue, 16 Oct 2018 20:20:35 -0400 Subject: [PATCH 58/73] [submodule] refs #8 Update submodule --- LibskycoinNet/skycoin/skycoinnet_wrap.c | 12 ++++++++---- gopath/src/github.com/skycoin/skycoin | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index b25386f4..7787e3d2 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -1162,7 +1162,9 @@ FeeCalculator overflow(){ int keysCount = 4; int keyIndex = -1; int startNumber = -1; - for (int i = 0; i < length; i++) + int i; + int k; + for (i = 0; i < length; i++) { if (metadata[i] == '\"') { @@ -1171,7 +1173,7 @@ FeeCalculator overflow(){ { keyIndex = -1; metadata[i] = 0; - for (int k = 0; k < keysCount; k++) + for (k = 0; k < keysCount; k++) { if (strcmp(metadata + openingQuote + 1, keys[k]) == 0) { @@ -1303,7 +1305,8 @@ FeeCalculator overflow(){ parray->count = parray->count = n; coin__UxOut *p = (coin__UxOut *)parray->data; int result = 0; - for (int i = 0; i < n; i++) + int i; + for (i = 0; i < n; i++) { result = makeUxOut(p); if (result != 0) @@ -1380,7 +1383,8 @@ FeeCalculator overflow(){ if (result != 0) return 1; registerHandleClose(*handle); - for (int i = 0; i < n; i++) + int i; + for (i = 0; i < n; i++) { Transaction__Handle thandle; makeTransaction(&thandle); diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index 33cb6b94..2548b5fe 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit 33cb6b94f0346e2835dd5b11fb0dc2ff3cdad3ef +Subproject commit 2548b5fe83f7d72929639d6f4148ddd3fa1e1b51 From 29be4a312757f890b27bc2a9c5bf89a939181b2c Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Mon, 5 Nov 2018 16:50:26 -0500 Subject: [PATCH 59/73] [test][libdotnet] Update submodule and change in test Tests run: 85, Errors: 0, Failures: 0, Inconclusive: 0, Time: 18,7982045 seconds Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0 --- LibskycoinNet/LibskycoinNet.csproj | 4 +- .../skycoin/api__NetworkConnectionsFilter.cs | 72 + LibskycoinNet/skycoin/coin__Transaction.cs | 10 +- LibskycoinNet/skycoin/skycoin.cs | 586 +--- LibskycoinNet/skycoin/skycoinPINVOKE.cs | 373 +- LibskycoinNet/skycoin/skycoinnet_wrap.c | 3008 ++++------------- LibskycoinNetTest/LibskycoinNetTest.csproj | 3 - LibskycoinNetTest/check_cipher_crypto.cs | 121 +- LibskycoinNetTest/check_cipher_ec.cs | 60 - LibskycoinNetTest/check_cipher_field.cs | 30 - LibskycoinNetTest/check_cipher_sig.cs | 164 - LibskycoinNetTest/check_coin_transactions.cs | 10 +- LibskycoinNetTest/check_util_fee.cs | 22 +- gopath/src/github.com/skycoin/skycoin | 2 +- swig/include/libskycoin.h | 306 +- 15 files changed, 836 insertions(+), 3935 deletions(-) create mode 100644 LibskycoinNet/skycoin/api__NetworkConnectionsFilter.cs delete mode 100644 LibskycoinNetTest/check_cipher_ec.cs delete mode 100644 LibskycoinNetTest/check_cipher_field.cs delete mode 100644 LibskycoinNetTest/check_cipher_sig.cs diff --git a/LibskycoinNet/LibskycoinNet.csproj b/LibskycoinNet/LibskycoinNet.csproj index 71d52c64..cb0c2f03 100644 --- a/LibskycoinNet/LibskycoinNet.csproj +++ b/LibskycoinNet/LibskycoinNet.csproj @@ -112,9 +112,6 @@ - - - @@ -137,6 +134,7 @@ + diff --git a/LibskycoinNet/skycoin/api__NetworkConnectionsFilter.cs b/LibskycoinNet/skycoin/api__NetworkConnectionsFilter.cs new file mode 100644 index 00000000..8f5c5fce --- /dev/null +++ b/LibskycoinNet/skycoin/api__NetworkConnectionsFilter.cs @@ -0,0 +1,72 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class api__NetworkConnectionsFilter : global::System.IDisposable { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + protected bool swigCMemOwn; + + internal api__NetworkConnectionsFilter(global::System.IntPtr cPtr, bool cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(api__NetworkConnectionsFilter obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } + + ~api__NetworkConnectionsFilter() { + Dispose(); + } + + public virtual void Dispose() { + lock(this) { + if (swigCPtr.Handle != global::System.IntPtr.Zero) { + if (swigCMemOwn) { + swigCMemOwn = false; + skycoinPINVOKE.delete_api__NetworkConnectionsFilter(swigCPtr); + } + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + global::System.GC.SuppressFinalize(this); + } + } + + public SWIGTYPE_p_GoString_ States { + set { + skycoinPINVOKE.set_api__NetworkConnectionsFilter_States(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.get_api__NetworkConnectionsFilter_States(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public SWIGTYPE_p_GoString_ Direction { + set { + skycoinPINVOKE.set_api__NetworkConnectionsFilter_Direction(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + } + get { + SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.get_api__NetworkConnectionsFilter_Direction(swigCPtr), true); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + } + + public api__NetworkConnectionsFilter() : this(skycoinPINVOKE.new_api__NetworkConnectionsFilter(), true) { + } + +} + +} diff --git a/LibskycoinNet/skycoin/coin__Transaction.cs b/LibskycoinNet/skycoin/coin__Transaction.cs index 0de34622..1de47e03 100644 --- a/LibskycoinNet/skycoin/coin__Transaction.cs +++ b/LibskycoinNet/skycoin/coin__Transaction.cs @@ -45,17 +45,17 @@ public int isEqual(coin__Transaction t) { return ret; } - public cipher_SHA256 getInnerHash() { - cipher_SHA256 ret = new cipher_SHA256(skycoinPINVOKE.coin__Transaction_getInnerHash(swigCPtr), true); - return ret; - } - public int setInnerHash(cipher_SHA256 h) { int ret = skycoinPINVOKE.coin__Transaction_setInnerHash(swigCPtr, cipher_SHA256.getCPtr(h)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } + public cipher_SHA256 GetInnerHash() { + cipher_SHA256 ret = new cipher_SHA256(skycoinPINVOKE.coin__Transaction_GetInnerHash(swigCPtr), true); + return ret; + } + public int Length { set { skycoinPINVOKE.set_coin__Transaction_Length(swigCPtr, value); diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs index 6e984321..82587c1e 100644 --- a/LibskycoinNet/skycoin/skycoin.cs +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -937,21 +937,11 @@ public static uint SKY_cipher_SignHash(cipher_SHA256 sha, cipher_SecKey sec, cip } } - public static uint SKY_cipher_ChkSig(cipher__Address a, cipher_SHA256 sha, cipher_Sig s) { - uint ret = skycoinPINVOKE.SKY_cipher_ChkSig__SWIG_0(cipher__Address.getCPtr(a), cipher_SHA256.getCPtr(sha), cipher_Sig.getCPtr(s)); - return ret; - } - public static uint SKY_cipher_PubKeyFromSig(cipher_Sig sig, cipher_SHA256 h, cipher_PubKey p) { uint ret = skycoinPINVOKE.SKY_cipher_PubKeyFromSig__SWIG_0(cipher_Sig.getCPtr(sig), cipher_SHA256.getCPtr(h), cipher_PubKey.getCPtr(p)); return ret; } - public static uint SKY_cipher_VerifySignature(cipher_PubKey p, cipher_Sig sig, cipher_SHA256 h) { - uint ret = skycoinPINVOKE.SKY_cipher_VerifySignature__SWIG_0(cipher_PubKey.getCPtr(p), cipher_Sig.getCPtr(sig), cipher_SHA256.getCPtr(h)); - return ret; - } - public static uint SKY_cipher_SHA256_Set(cipher_SHA256 h, GoSlice s) { uint ret = skycoinPINVOKE.SKY_cipher_SHA256_Set__SWIG_0(cipher_SHA256.getCPtr(h), GoSlice.getCPtr(s)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); @@ -1621,26 +1611,26 @@ public static uint SKY_api_Client_NetworkConnection(SWIGTYPE_p_Client__Handle p0 } } - public static uint SKY_api_Client_NetworkConnections(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_NetworkConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + public static uint SKY_api_Client_NetworkConnections(SWIGTYPE_p_Client__Handle p0, api__NetworkConnectionsFilter p1, SWIGTYPE_p_Handle p2) { + uint ret = skycoinPINVOKE.SKY_api_Client_NetworkConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0), api__NetworkConnectionsFilter.getCPtr(p1), SWIGTYPE_p_Handle.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_NetworkDefaultConnections(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_NetworkDefaultConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + public static uint SKY_api_Client_NetworkDefaultPeers(SWIGTYPE_p_Client__Handle p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_NetworkDefaultPeers(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr (p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_NetworkTrustedConnections(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_NetworkTrustedConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + public static uint SKY_api_Client_NetworkTrustedPeers(SWIGTYPE_p_Client__Handle p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_NetworkTrustedPeers(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr (p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_api_Client_NetworkExchangeableConnections(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { - uint ret = skycoinPINVOKE.SKY_api_Client_NetworkExchangeableConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + public static uint SKY_api_Client_NetworkExchangedPeers(SWIGTYPE_p_Client__Handle p0, GoSlice p1) { + uint ret = skycoinPINVOKE.SKY_api_Client_NetworkExchangedPeers(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr (p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -1759,65 +1749,6 @@ public static uint SKY_api_Client_DecryptWallet(SWIGTYPE_p_Client__Handle p0, st } } - public static uint SKY_secp256k1go_XY_Print(secp256k1go__XY p0, string p1) { -var tmpp1 = p1; - { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_Print(secp256k1go__XY.getCPtr(p0), tmpp1); - return ret; - } - } - - public static uint SKY_secp256k1go_XY_ParsePubkey(secp256k1go__XY p0, GoSlice p1, SWIGTYPE_p_unsigned_char p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_ParsePubkey(secp256k1go__XY.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1go_XY_Bytes(secp256k1go__XY p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_Bytes(secp256k1go__XY.getCPtr(p0), GoSlice.getCPtr (p1)); - return ret; - } - - public static uint SKY_secp256k1go_XY_BytesUncompressed(secp256k1go__XY p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_BytesUncompressed(secp256k1go__XY.getCPtr(p0), GoSlice.getCPtr (p1)); - return ret; - } - - public static uint SKY_secp256k1go_XY_SetXY(secp256k1go__XY p0, secp256k1go__Field p1, secp256k1go__Field p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_SetXY(secp256k1go__XY.getCPtr(p0), secp256k1go__Field.getCPtr(p1), secp256k1go__Field.getCPtr(p2)); - return ret; - } - - public static uint SKY_secp256k1go_XY_IsValid(secp256k1go__XY p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_IsValid(secp256k1go__XY.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); - return ret; - } - - public static uint SKY_secp256k1go_XY_SetXYZ(secp256k1go__XY p0, secp256k1go__XYZ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_SetXYZ(secp256k1go__XY.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1)); - return ret; - } - - public static uint SKY_secp256k1go_XY_Neg(secp256k1go__XY p0, secp256k1go__XY p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_Neg(secp256k1go__XY.getCPtr(p0), secp256k1go__XY.getCPtr(p1)); - return ret; - } - - public static uint SKY_secp256k1go_XY_SetXO(secp256k1go__XY p0, secp256k1go__Field p1, byte p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_SetXO(secp256k1go__XY.getCPtr(p0), secp256k1go__Field.getCPtr(p1), p2); - return ret; - } - - public static uint SKY_secp256k1go_XY_AddXY(secp256k1go__XY p0, secp256k1go__XY p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_AddXY(secp256k1go__XY.getCPtr(p0), secp256k1go__XY.getCPtr(p1)); - return ret; - } - - public static uint SKY_secp256k1go_XY_GetPublicKey(secp256k1go__XY p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XY_GetPublicKey(secp256k1go__XY.getCPtr(p0), GoSlice.getCPtr (p1)); - return ret; - } - public static uint SKY_api_NewWalletResponse(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_WalletResponse__Handle p1) { uint ret = skycoinPINVOKE.SKY_api_NewWalletResponse(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); @@ -2062,54 +1993,6 @@ public static uint SKY_wallet_ReadableWallet_Erase(SWIGTYPE_p_ReadableWallet__Ha return ret; } - public static uint SKY_secp256k1go_DecompressPoint(GoSlice p0, byte p1, GoSlice p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_DecompressPoint(GoSlice.getCPtr(p0), p1, GoSlice.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1go_RecoverPublicKey(GoSlice p0, GoSlice p1, long p2, GoSlice p3, SWIGTYPE_p_long_long p4) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_RecoverPublicKey(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), p2, GoSlice.getCPtr (p3), SWIGTYPE_p_long_long.getCPtr(p4)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1go_Multiply(GoSlice p0, GoSlice p1, GoSlice p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Multiply(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr (p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1go_BaseMultiply(GoSlice p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_BaseMultiply(GoSlice.getCPtr(p0), GoSlice.getCPtr (p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1go_BaseMultiplyAdd(GoSlice p0, GoSlice p1, GoSlice p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_BaseMultiplyAdd(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr (p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1go_GeneratePublicKey(GoSlice p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_GeneratePublicKey(GoSlice.getCPtr(p0), GoSlice.getCPtr (p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1go_SeckeyIsValid(GoSlice p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_SeckeyIsValid(GoSlice.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1go_PubkeyIsValid(GoSlice p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_PubkeyIsValid(GoSlice.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - public static uint SKY_base58_String2Hex(string p0, GoSlice p1) { var tmpp0 = p0; { @@ -2299,17 +2182,6 @@ public static uint SKY_iputil_SplitAddr(string p0, _GoString_ p1, SWIGTYPE_p_uns } } - public static uint SKY_secp256k1_SumSHA256(GoSlice p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1_SumSHA256(GoSlice.getCPtr(p0), GoSlice.getCPtr (p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1_RandByte(long p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1_RandByte(p0, GoSlice.getCPtr (p1)); - return ret; - } - public static uint SKY_cli_GenerateAddressesInFile(string p0, ulong p1, SWIGTYPE_p_PasswordReader__Handle p2, GoSlice p3) { var tmpp0 = p0; { @@ -2507,11 +2379,11 @@ public static uint SKY_cipher_SignHash(cipher_SecKey p0, cipher_SecKey p1, ciphe } } - public static uint SKY_cipher_ChkSig(cipher__Address p0, cipher_SecKey p1, cipher_Sig p2) { -var tmpp1 = cipher_SecKey.getCPtr (p1); -var tmpp2 = cipher_Sig.getCPtr (p2); + public static uint SKY_cipher_VerifyAddressSignedHash(cipher__Address p0, cipher_Sig p1, cipher_SecKey p2) { +var tmpp1 = cipher_Sig.getCPtr (p1); +var tmpp2 = cipher_SecKey.getCPtr (p2); { - uint ret = skycoinPINVOKE.SKY_cipher_ChkSig__SWIG_1(cipher__Address.getCPtr(p0), tmpp1, tmpp2); + uint ret = skycoinPINVOKE.SKY_cipher_VerifyAddressSignedHash(cipher__Address.getCPtr(p0), tmpp1, tmpp2); return ret; } } @@ -2525,12 +2397,12 @@ public static uint SKY_cipher_VerifySignedHash(cipher_Sig p0, cipher_SecKey p1) } } - public static uint SKY_cipher_VerifySignature(cipher_PubKey p0, cipher_Sig p1, cipher_SecKey p2) { + public static uint SKY_cipher_VerifyPubKeySignedHash(cipher_PubKey p0, cipher_Sig p1, cipher_SecKey p2) { var tmpp0 = cipher_PubKey.getCPtr (p0); var tmpp1 = cipher_Sig.getCPtr (p1); var tmpp2 = cipher_SecKey.getCPtr (p2); { - uint ret = skycoinPINVOKE.SKY_cipher_VerifySignature__SWIG_1(tmpp0, tmpp1, tmpp2); + uint ret = skycoinPINVOKE.SKY_cipher_VerifyPubKeySignedHash(tmpp0, tmpp1, tmpp2); return ret; } } @@ -2593,62 +2465,6 @@ public static uint SKY_cipher_CheckSecKeyHash(cipher_SecKey p0, cipher_SecKey p1 } } - public static uint SKY_secp256k1go_Signature_Create(SWIGTYPE_p_Signature_Handle p0) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Create(SWIGTYPE_p_Signature_Handle.getCPtr(p0)); - return ret; - } - - public static uint SKY_secp256k1go_Signature_GetR(SWIGTYPE_p_Signature_Handle p0, SWIGTYPE_p_Number_Handle p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_GetR(SWIGTYPE_p_Signature_Handle.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1go_Signature_GetS(SWIGTYPE_p_Signature_Handle p0, SWIGTYPE_p_Number_Handle p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_GetS(SWIGTYPE_p_Signature_Handle.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1go_Signature_Print(SWIGTYPE_p_Signature_Handle p0, string p1) { -var tmpp1 = p1; - { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Print(SWIGTYPE_p_Signature_Handle.getCPtr(p0), tmpp1); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public static uint SKY_secp256k1go_Signature_Verify(SWIGTYPE_p_Signature_Handle p0, secp256k1go__XY p1, SWIGTYPE_p_Number_Handle p2, SWIGTYPE_p_unsigned_char p3) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Verify(SWIGTYPE_p_Signature_Handle.getCPtr(p0), secp256k1go__XY.getCPtr(p1), SWIGTYPE_p_Number_Handle.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1go_Signature_Recover(SWIGTYPE_p_Signature_Handle p0, secp256k1go__XY p1, SWIGTYPE_p_Number_Handle p2, long p3, SWIGTYPE_p_unsigned_char p4) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Recover(SWIGTYPE_p_Signature_Handle.getCPtr(p0), secp256k1go__XY.getCPtr(p1), SWIGTYPE_p_Number_Handle.getCPtr(p2), p3, SWIGTYPE_p_unsigned_char.getCPtr(p4)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1go_Signature_Sign(SWIGTYPE_p_Signature_Handle p0, SWIGTYPE_p_Number_Handle p1, SWIGTYPE_p_Number_Handle p2, SWIGTYPE_p_Number_Handle p3, SWIGTYPE_p_long_long p4, SWIGTYPE_p_long_long p5) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Sign(SWIGTYPE_p_Signature_Handle.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1), SWIGTYPE_p_Number_Handle.getCPtr(p2), SWIGTYPE_p_Number_Handle.getCPtr(p3), SWIGTYPE_p_long_long.getCPtr(p4), SWIGTYPE_p_long_long.getCPtr(p5)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1go_Signature_ParseBytes(SWIGTYPE_p_Signature_Handle p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_ParseBytes(SWIGTYPE_p_Signature_Handle.getCPtr(p0), GoSlice.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1go_Signature_Bytes(SWIGTYPE_p_Signature_Handle p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Signature_Bytes(SWIGTYPE_p_Signature_Handle.getCPtr(p0), GoSlice.getCPtr (p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - public static uint SKY_cli_App_Run(SWIGTYPE_p_App__Handle p0, string p1) { var tmpp1 = p1; { @@ -2700,12 +2516,6 @@ public static uint SKY_cli_Setenv(string p0, string p1) { } } - public static uint SKY_poly1305_Verify(GoSlice p0, GoSlice p1, GoSlice p2, SWIGTYPE_p_unsigned_char p3) { - uint ret = skycoinPINVOKE.SKY_poly1305_Verify(GoSlice.getCPtr (p0), GoSlice.getCPtr(p1), GoSlice.getCPtr (p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - public static uint SKY_wallet_NewBalance(ulong p0, ulong p1, wallet__Balance p2) { uint ret = skycoinPINVOKE.SKY_wallet_NewBalance(p0, p1, wallet__Balance.getCPtr(p2)); return ret; @@ -2789,71 +2599,6 @@ public static uint SKY_wallet_Entry_VerifyPublic(wallet__Entry p0) { return ret; } - public static uint SKY_secp256k1go_XYZ_Print(secp256k1go__XYZ p0, string p1) { -var tmpp1 = p1; - { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_Print(secp256k1go__XYZ.getCPtr(p0), tmpp1); - return ret; - } - } - - public static uint SKY_secp256k1go_XYZ_SetXY(secp256k1go__XYZ p0, secp256k1go__XY p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_SetXY(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XY.getCPtr(p1)); - return ret; - } - - public static uint SKY_secp256k1go_XYZ_IsInfinity(secp256k1go__XYZ p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_IsInfinity(secp256k1go__XYZ.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); - return ret; - } - - public static uint SKY_secp256k1go_XYZ_IsValid(secp256k1go__XYZ p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_IsValid(secp256k1go__XYZ.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); - return ret; - } - - public static uint SKY_secp256k1go_XYZ_Normalize(secp256k1go__XYZ p0) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_Normalize(secp256k1go__XYZ.getCPtr(p0)); - return ret; - } - - public static uint SKY_secp256k1go_XYZ_Equals(secp256k1go__XYZ p0, secp256k1go__XYZ p1, SWIGTYPE_p_unsigned_char p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_Equals(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); - return ret; - } - - public static uint SKY_secp256k1go_XYZ_ECmult(secp256k1go__XYZ p0, secp256k1go__XYZ p1, SWIGTYPE_p_Number_Handle p2, SWIGTYPE_p_Number_Handle p3) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_ECmult(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1), SWIGTYPE_p_Number_Handle.getCPtr(p2), SWIGTYPE_p_Number_Handle.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1go_XYZ_Neg(secp256k1go__XYZ p0, secp256k1go__XYZ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_Neg(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1)); - return ret; - } - - public static uint SKY_secp256k1go_XYZ_Double(secp256k1go__XYZ p0, secp256k1go__XYZ p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_Double(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1)); - return ret; - } - - public static uint SKY_secp256k1go_XYZ_AddXY(secp256k1go__XYZ p0, secp256k1go__XYZ p1, secp256k1go__XY p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_AddXY(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1), secp256k1go__XY.getCPtr(p2)); - return ret; - } - - public static uint SKY_secp256k1go_XYZ_Add(secp256k1go__XYZ p0, secp256k1go__XYZ p1, secp256k1go__XYZ p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_XYZ_Add(secp256k1go__XYZ.getCPtr(p0), secp256k1go__XYZ.getCPtr(p1), secp256k1go__XYZ.getCPtr(p2)); - return ret; - } - - public static uint SKY_secp256k1go_ECmultGen(secp256k1go__XYZ p0, SWIGTYPE_p_Number_Handle p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_ECmultGen(secp256k1go__XYZ.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - public static uint SKY_droplet_FromString(string p0, SWIGTYPE_p_unsigned_long_long p1) { var tmpp0 = p0; { @@ -3189,58 +2934,6 @@ public static uint SKY_api_Handle_GetBuildInfoData(SWIGTYPE_p_BuildInfo_Handle p } } - public static uint SKY_ripemd160_New(SWIGTYPE_p_Hash_Handle p0) { - uint ret = skycoinPINVOKE.SKY_ripemd160_New(SWIGTYPE_p_Hash_Handle.getCPtr(p0)); - return ret; - } - - public static uint SKY_ripemd160_Write(SWIGTYPE_p_Hash_Handle p0, GoSlice p1, SWIGTYPE_p_long_long p2) { - uint ret = skycoinPINVOKE.SKY_ripemd160_Write(SWIGTYPE_p_Hash_Handle.getCPtr(p0), GoSlice.getCPtr(p1), SWIGTYPE_p_long_long.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_ripemd160_Sum(SWIGTYPE_p_Hash_Handle p0, GoSlice p1, GoSlice p2) { - uint ret = skycoinPINVOKE.SKY_ripemd160_Sum(SWIGTYPE_p_Hash_Handle.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr (p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1go_Number_Create(SWIGTYPE_p_Number_Handle p0) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_Create(SWIGTYPE_p_Number_Handle.getCPtr(p0)); - return ret; - } - - public static uint SKY_secp256k1go_Number_Print(SWIGTYPE_p_Number_Handle p0, string p1) { -var tmpp1 = p1; - { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_Print(SWIGTYPE_p_Number_Handle.getCPtr(p0), tmpp1); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public static uint SKY_secp256k1go_Number_SetHex(SWIGTYPE_p_Number_Handle p0, string p1) { -var tmpp1 = p1; - { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_SetHex(SWIGTYPE_p_Number_Handle.getCPtr(p0), tmpp1); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public static uint SKY_secp256k1go_Number_IsOdd(SWIGTYPE_p_Number_Handle p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_IsOdd(SWIGTYPE_p_Number_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1go_Number_IsEqual(SWIGTYPE_p_Number_Handle p0, SWIGTYPE_p_Number_Handle p1, SWIGTYPE_p_unsigned_char p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Number_IsEqual(SWIGTYPE_p_Number_Handle.getCPtr(p0), SWIGTYPE_p_Number_Handle.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - public static uint SKY_coin_UxOut_Hash(coin__UxOut p0, cipher_SecKey p1) { var tmpp1 = cipher_SecKey.getCPtr (p1); { @@ -3422,104 +3115,6 @@ public static uint SKY_cli_AddPrivateKeyToFile(string p0, string p1, SWIGTYPE_p_ } } - public static uint SKY_secp256k1_GenerateKeyPair(GoSlice p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1_GenerateKeyPair(GoSlice.getCPtr (p0), GoSlice.getCPtr (p1)); - return ret; - } - - public static uint SKY_secp256k1_PubkeyFromSeckey(GoSlice p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1_PubkeyFromSeckey(GoSlice.getCPtr(p0), GoSlice.getCPtr (p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1_UncompressPubkey(GoSlice p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1_UncompressPubkey(GoSlice.getCPtr(p0), GoSlice.getCPtr (p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1_UncompressedPubkeyFromSeckey(GoSlice p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1_UncompressedPubkeyFromSeckey(GoSlice.getCPtr(p0), GoSlice.getCPtr (p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1_Secp256k1Hash(GoSlice p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1_Secp256k1Hash(GoSlice.getCPtr(p0), GoSlice.getCPtr (p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1_GenerateDeterministicKeyPair(GoSlice p0, GoSlice p1, GoSlice p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1_GenerateDeterministicKeyPair(GoSlice.getCPtr(p0), GoSlice.getCPtr (p1), GoSlice.getCPtr (p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1_DeterministicKeyPairIterator(GoSlice p0, GoSlice p1, GoSlice p2, GoSlice p3) { - uint ret = skycoinPINVOKE.SKY_secp256k1_DeterministicKeyPairIterator(GoSlice.getCPtr(p0), GoSlice.getCPtr (p1), GoSlice.getCPtr (p2), GoSlice.getCPtr (p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1_Sign(GoSlice p0, GoSlice p1, GoSlice p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1_Sign(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr (p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1_SignDeterministic(GoSlice p0, GoSlice p1, GoSlice p2, GoSlice p3) { - uint ret = skycoinPINVOKE.SKY_secp256k1_SignDeterministic(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), GoSlice.getCPtr (p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1_VerifySeckey(GoSlice p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1_VerifySeckey(GoSlice.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1_VerifyPubkey(GoSlice p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1_VerifyPubkey(GoSlice.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1_VerifySignatureValidity(GoSlice p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1_VerifySignatureValidity(GoSlice.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1_VerifySignature(GoSlice p0, GoSlice p1, GoSlice p2, SWIGTYPE_p_long_long p3) { - uint ret = skycoinPINVOKE.SKY_secp256k1_VerifySignature(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), SWIGTYPE_p_long_long.getCPtr(p3)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1_SignatureErrorString(GoSlice p0, GoSlice p1, GoSlice p2, _GoString_ p3) { -var tmpp3 = _GoString_.getCPtr (p3); - { - uint ret = skycoinPINVOKE.SKY_secp256k1_SignatureErrorString(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr(p2), tmpp3); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public static uint SKY_secp256k1_RecoverPubkey(GoSlice p0, GoSlice p1, GoSlice p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1_RecoverPubkey(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr (p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1_ECDH(GoSlice p0, GoSlice p1, GoSlice p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1_ECDH(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), GoSlice.getCPtr (p2)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - public static uint SKY_apputil_CatchInterruptPanic() { uint ret = skycoinPINVOKE.SKY_apputil_CatchInterruptPanic(); return ret; @@ -3545,24 +3140,24 @@ public static uint SKY_certutil_NewTLSCertPair(string p0, string p1, GoSlice p2, } } - public static uint SKY_fee_VerifyTransactionFee(SWIGTYPE_p_Transaction__Handle p0, ulong p1) { - uint ret = skycoinPINVOKE.SKY_fee_VerifyTransactionFee(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); + public static uint SKY_fee_VerifyTransactionFee(SWIGTYPE_p_Transaction__Handle p0, ulong p1, ulong p2) { + uint ret = skycoinPINVOKE.SKY_fee_VerifyTransactionFee(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, p2); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_fee_VerifyTransactionFeeForHours(ulong p0, ulong p1) { - uint ret = skycoinPINVOKE.SKY_fee_VerifyTransactionFeeForHours(p0, p1); + public static uint SKY_fee_VerifyTransactionFeeForHours(ulong p0, ulong p1, ulong p2) { + uint ret = skycoinPINVOKE.SKY_fee_VerifyTransactionFeeForHours(p0, p1, p2); return ret; } - public static uint SKY_fee_RequiredFee(ulong p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_fee_RequiredFee(p0, SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static uint SKY_fee_RequiredFee(ulong p0, ulong p1, SWIGTYPE_p_unsigned_long_long p2) { + uint ret = skycoinPINVOKE.SKY_fee_RequiredFee(p0, p1, SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); return ret; } - public static uint SKY_fee_RemainingHours(ulong p0, SWIGTYPE_p_unsigned_long_long p1) { - uint ret = skycoinPINVOKE.SKY_fee_RemainingHours(p0, SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static uint SKY_fee_RemainingHours(ulong p0, ulong p1, SWIGTYPE_p_unsigned_long_long p2) { + uint ret = skycoinPINVOKE.SKY_fee_RemainingHours(p0, p1, SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); return ret; } @@ -3790,119 +3385,6 @@ public static uint SKY_testutil_MakeAddress(cipher__Address p0) { return ret; } - public static uint SKY_secp256k1go_Field_String(secp256k1go__Field p0, _GoString_ p1) { -var tmpp1 = _GoString_.getCPtr (p1); - { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_String(secp256k1go__Field.getCPtr(p0), tmpp1); - return ret; - } - } - - public static uint SKY_secp256k1go_Field_Print(secp256k1go__Field p0, string p1) { -var tmpp1 = p1; - { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Print(secp256k1go__Field.getCPtr(p0), tmpp1); - return ret; - } - } - - public static uint SKY_secp256k1go_Field_SetB32(secp256k1go__Field p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_SetB32(secp256k1go__Field.getCPtr(p0), GoSlice.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1go_Field_SetBytes(secp256k1go__Field p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_SetBytes(secp256k1go__Field.getCPtr(p0), GoSlice.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1go_Field_SetHex(secp256k1go__Field p0, string p1) { -var tmpp1 = p1; - { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_SetHex(secp256k1go__Field.getCPtr(p0), tmpp1); - return ret; - } - } - - public static uint SKY_secp256k1go_Field_IsOdd(secp256k1go__Field p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_IsOdd(secp256k1go__Field.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); - return ret; - } - - public static uint SKY_secp256k1go_Field_IsZero(secp256k1go__Field p0, SWIGTYPE_p_unsigned_char p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_IsZero(secp256k1go__Field.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); - return ret; - } - - public static uint SKY_secp256k1go_Field_SetInt(secp256k1go__Field p0, uint p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_SetInt(secp256k1go__Field.getCPtr(p0), p1); - return ret; - } - - public static uint SKY_secp256k1go_Field_Normalize(secp256k1go__Field p0) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Normalize(secp256k1go__Field.getCPtr(p0)); - return ret; - } - - public static uint SKY_secp256k1go_Field_GetB32(secp256k1go__Field p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_GetB32(secp256k1go__Field.getCPtr(p0), GoSlice.getCPtr(p1)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public static uint SKY_secp256k1go_Field_Equals(secp256k1go__Field p0, secp256k1go__Field p1, SWIGTYPE_p_unsigned_char p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Equals(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1), SWIGTYPE_p_unsigned_char.getCPtr(p2)); - return ret; - } - - public static uint SKY_secp256k1go_Field_SetAdd(secp256k1go__Field p0, secp256k1go__Field p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_SetAdd(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1)); - return ret; - } - - public static uint SKY_secp256k1go_Field_MulInt(secp256k1go__Field p0, uint p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_MulInt(secp256k1go__Field.getCPtr(p0), p1); - return ret; - } - - public static uint SKY_secp256k1go_Field_Negate(secp256k1go__Field p0, secp256k1go__Field p1, uint p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Negate(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1), p2); - return ret; - } - - public static uint SKY_secp256k1go_Field_Inv(secp256k1go__Field p0, secp256k1go__Field p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Inv(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1)); - return ret; - } - - public static uint SKY_secp256k1go_Field_Sqrt(secp256k1go__Field p0, secp256k1go__Field p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Sqrt(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1)); - return ret; - } - - public static uint SKY_secp256k1go_Field_InvVar(secp256k1go__Field p0, secp256k1go__Field p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_InvVar(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1)); - return ret; - } - - public static uint SKY_secp256k1go_Field_Mul(secp256k1go__Field p0, secp256k1go__Field p1, secp256k1go__Field p2) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Mul(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1), secp256k1go__Field.getCPtr(p2)); - return ret; - } - - public static uint SKY_secp256k1go_Field_Sqr(secp256k1go__Field p0, secp256k1go__Field p1) { - uint ret = skycoinPINVOKE.SKY_secp256k1go_Field_Sqr(secp256k1go__Field.getCPtr(p0), secp256k1go__Field.getCPtr(p1)); - return ret; - } - - public static uint SKY_scrypt_Key(GoSlice p0, GoSlice p1, long p2, long p3, long p4, long p5, GoSlice p6) { - uint ret = skycoinPINVOKE.SKY_scrypt_Key(GoSlice.getCPtr(p0), GoSlice.getCPtr(p1), p2, p3, p4, p5, GoSlice.getCPtr (p6)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - public static uint SKY_cipher_Ripemd160_Set(cipher_Ripemd160 p0, GoSlice p1) { var tmpp0 = cipher_Ripemd160.getCPtr (p0); { @@ -4365,7 +3847,7 @@ public static uint SKY_coin_VerifyTransactionHoursSpending(ulong p0, GoSlice p1, public static readonly int SKY_ErrInvalidBytesLength = skycoinPINVOKE.get_SKY_ErrInvalidBytesLength(); public static readonly int SKY_ErrInvalidPubKey = skycoinPINVOKE.get_SKY_ErrInvalidPubKey(); public static readonly int SKY_ErrInvalidSecKey = skycoinPINVOKE.get_SKY_ErrInvalidSecKey(); - public static readonly int SKY_ErrInvalidSigForPubKey = skycoinPINVOKE.get_SKY_ErrInvalidSigForPubKey(); + public static readonly int SKY_ErrInvalidSigPubKeyRecovery = skycoinPINVOKE.get_SKY_ErrInvalidSigPubKeyRecovery(); public static readonly int SKY_ErrInvalidSecKeyHex = skycoinPINVOKE.get_SKY_ErrInvalidSecKeyHex(); public static readonly int SKY_ErrInvalidAddressForSig = skycoinPINVOKE.get_SKY_ErrInvalidAddressForSig(); public static readonly int SKY_ErrInvalidHashForSig = skycoinPINVOKE.get_SKY_ErrInvalidHashForSig(); @@ -4384,14 +3866,14 @@ public static uint SKY_coin_VerifyTransactionHoursSpending(ulong p0, GoSlice p1, public static readonly int SKY_ErrBitcoinWIFInvalidChecksum = skycoinPINVOKE.get_SKY_ErrBitcoinWIFInvalidChecksum(); public static readonly int SKY_ErrEmptySeed = skycoinPINVOKE.get_SKY_ErrEmptySeed(); public static readonly int SKY_ErrInvalidSig = skycoinPINVOKE.get_SKY_ErrInvalidSig(); - public static readonly int SKY_ErrSHA256orMissingPassword = skycoinPINVOKE.get_SKY_ErrSHA256orMissingPassword(); - public static readonly int SKY_ErrLenghtDataOverflowMaxUint32 = skycoinPINVOKE.get_SKY_ErrLenghtDataOverflowMaxUint32(); + public static readonly int SKY_ErrMissingPassword = skycoinPINVOKE.get_SKY_ErrMissingPassword(); + public static readonly int SKY_ErrDataTooLarge = skycoinPINVOKE.get_SKY_ErrDataTooLarge(); public static readonly int SKY_ErrInvalidChecksumLength = skycoinPINVOKE.get_SKY_ErrInvalidChecksumLength(); - public static readonly int SKY_ErrInvalidDataChecksumNotMatched = skycoinPINVOKE.get_SKY_ErrInvalidDataChecksumNotMatched(); + public static readonly int SKY_ErrInvalidChecksum = skycoinPINVOKE.get_SKY_ErrInvalidChecksum(); public static readonly int SKY_ErrInvalidNonceLength = skycoinPINVOKE.get_SKY_ErrInvalidNonceLength(); - public static readonly int SKY_ErrInvalidBlockSizeMultiple32Bytes = skycoinPINVOKE.get_SKY_ErrInvalidBlockSizeMultiple32Bytes(); - public static readonly int SKY_ErrReadDataHashFailedLength = skycoinPINVOKE.get_SKY_ErrReadDataHashFailedLength(); - public static readonly int SKY_ErrSHA256orInvalidPassword = skycoinPINVOKE.get_SKY_ErrSHA256orInvalidPassword(); + public static readonly int SKY_ErrInvalidBlockSize = skycoinPINVOKE.get_SKY_ErrInvalidBlockSize(); + public static readonly int SKY_ErrReadDataHashFailed = skycoinPINVOKE.get_SKY_ErrReadDataHashFailed(); + public static readonly int SKY_ErrInvalidPassword = skycoinPINVOKE.get_SKY_ErrInvalidPassword(); public static readonly int SKY_ErrReadDataLengthFailed = skycoinPINVOKE.get_SKY_ErrReadDataLengthFailed(); public static readonly int SKY_ErrInvalidDataLength = skycoinPINVOKE.get_SKY_ErrInvalidDataLength(); public static readonly int SKY_ErrTemporaryInsufficientBalance = skycoinPINVOKE.get_SKY_ErrTemporaryInsufficientBalance(); @@ -4412,27 +3894,23 @@ public static uint SKY_coin_VerifyTransactionHoursSpending(ulong p0, GoSlice p1, public static readonly int SKY_ErrNotExternalIP = skycoinPINVOKE.get_SKY_ErrNotExternalIP(); public static readonly int SKY_ErrPortTooLow = skycoinPINVOKE.get_SKY_ErrPortTooLow(); public static readonly int SKY_ErrBlacklistedAddress = skycoinPINVOKE.get_SKY_ErrBlacklistedAddress(); - public static readonly int SKY_ErrDisconnectReadFailed = skycoinPINVOKE.get_SKY_ErrDisconnectReadFailed(); public static readonly int SKY_ErrDisconnectWriteFailed = skycoinPINVOKE.get_SKY_ErrDisconnectWriteFailed(); public static readonly int SKY_ErrDisconnectSetReadDeadlineFailed = skycoinPINVOKE.get_SKY_ErrDisconnectSetReadDeadlineFailed(); public static readonly int SKY_ErrDisconnectInvalidMessageLength = skycoinPINVOKE.get_SKY_ErrDisconnectInvalidMessageLength(); public static readonly int SKY_ErrDisconnectMalformedMessage = skycoinPINVOKE.get_SKY_ErrDisconnectMalformedMessage(); public static readonly int SKY_ErrDisconnectUnknownMessage = skycoinPINVOKE.get_SKY_ErrDisconnectUnknownMessage(); - public static readonly int SKY_ErrDisconnectUnexpectedError = skycoinPINVOKE.get_SKY_ErrDisconnectUnexpectedError(); public static readonly int SKY_ErrConnectionPoolClosed = skycoinPINVOKE.get_SKY_ErrConnectionPoolClosed(); public static readonly int SKY_ErrWriteQueueFull = skycoinPINVOKE.get_SKY_ErrWriteQueueFull(); public static readonly int SKY_ErrNoReachableConnections = skycoinPINVOKE.get_SKY_ErrNoReachableConnections(); public static readonly int SKY_ErrMaxDefaultConnectionsReached = skycoinPINVOKE.get_SKY_ErrMaxDefaultConnectionsReached(); - public static readonly int SKY_ErrDisconnectInvalidVersion = skycoinPINVOKE.get_SKY_ErrDisconnectInvalidVersion(); + public static readonly int SKY_ErrDisconnectVersionNotSupported = skycoinPINVOKE.get_SKY_ErrDisconnectVersionNotSupported(); public static readonly int SKY_ErrDisconnectIntroductionTimeout = skycoinPINVOKE.get_SKY_ErrDisconnectIntroductionTimeout(); - public static readonly int SKY_ErrDisconnectVersionSendFailed = skycoinPINVOKE.get_SKY_ErrDisconnectVersionSendFailed(); public static readonly int SKY_ErrDisconnectIsBlacklisted = skycoinPINVOKE.get_SKY_ErrDisconnectIsBlacklisted(); public static readonly int SKY_ErrDisconnectSelf = skycoinPINVOKE.get_SKY_ErrDisconnectSelf(); public static readonly int SKY_ErrDisconnectConnectedTwice = skycoinPINVOKE.get_SKY_ErrDisconnectConnectedTwice(); public static readonly int SKY_ErrDisconnectIdle = skycoinPINVOKE.get_SKY_ErrDisconnectIdle(); public static readonly int SKY_ErrDisconnectNoIntroduction = skycoinPINVOKE.get_SKY_ErrDisconnectNoIntroduction(); public static readonly int SKY_ErrDisconnectIPLimitReached = skycoinPINVOKE.get_SKY_ErrDisconnectIPLimitReached(); - public static readonly int SKY_ErrDisconnectOtherError = skycoinPINVOKE.get_SKY_ErrDisconnectOtherError(); public static readonly int SKY_ErrDisconnectMaxDefaultConnectionReached = skycoinPINVOKE.get_SKY_ErrDisconnectMaxDefaultConnectionReached(); public static readonly int SKY_ErrDisconnectMaxOutgoingConnectionsReached = skycoinPINVOKE.get_SKY_ErrDisconnectMaxOutgoingConnectionsReached(); public static readonly int SKY_ConnectionError = skycoinPINVOKE.get_SKY_ConnectionError(); @@ -4462,9 +3940,9 @@ public static uint SKY_coin_VerifyTransactionHoursSpending(ulong p0, GoSlice p1, public static readonly int SKY_ErrInvalidEncryptedField = skycoinPINVOKE.get_SKY_ErrInvalidEncryptedField(); public static readonly int SKY_ErrWalletEncrypted = skycoinPINVOKE.get_SKY_ErrWalletEncrypted(); public static readonly int SKY_ErrWalletNotEncrypted = skycoinPINVOKE.get_SKY_ErrWalletNotEncrypted(); - public static readonly int SKY_ErrMissingPassword = skycoinPINVOKE.get_SKY_ErrMissingPassword(); + public static readonly int SKY_ErrWalletMissingPassword = skycoinPINVOKE.get_SKY_ErrWalletMissingPassword(); public static readonly int SKY_ErrMissingEncrypt = skycoinPINVOKE.get_SKY_ErrMissingEncrypt(); - public static readonly int SKY_ErrInvalidPassword = skycoinPINVOKE.get_SKY_ErrInvalidPassword(); + public static readonly int SKY_ErrWalletInvalidPassword = skycoinPINVOKE.get_SKY_ErrWalletInvalidPassword(); public static readonly int SKY_ErrMissingSeed = skycoinPINVOKE.get_SKY_ErrMissingSeed(); public static readonly int SKY_ErrMissingAuthenticated = skycoinPINVOKE.get_SKY_ErrMissingAuthenticated(); public static readonly int SKY_ErrWrongCryptoType = skycoinPINVOKE.get_SKY_ErrWrongCryptoType(); diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index f37a2c64..56421143 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -728,15 +728,9 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SignHash__SWIG_0")] public static extern uint SKY_cipher_SignHash__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_ChkSig__SWIG_0")] - public static extern uint SKY_cipher_ChkSig__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_PubKeyFromSig__SWIG_0")] public static extern uint SKY_cipher_PubKeyFromSig__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_VerifySignature__SWIG_0")] - public static extern uint SKY_cipher_VerifySignature__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SHA256_Set__SWIG_0")] public static extern uint SKY_cipher_SHA256_Set__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1431,16 +1425,16 @@ static skycoinPINVOKE() { public static extern uint SKY_api_Client_NetworkConnection(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkConnections")] - public static extern uint SKY_api_Client_NetworkConnections(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_api_Client_NetworkConnections(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkDefaultConnections")] - public static extern uint SKY_api_Client_NetworkDefaultConnections(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkDefaultPeers")] + public static extern uint SKY_api_Client_NetworkDefaultPeers(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkTrustedConnections")] - public static extern uint SKY_api_Client_NetworkTrustedConnections(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkTrustedPeers")] + public static extern uint SKY_api_Client_NetworkTrustedPeers(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkExchangeableConnections")] - public static extern uint SKY_api_Client_NetworkExchangeableConnections(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_NetworkExchangedPeers")] + public static extern uint SKY_api_Client_NetworkExchangedPeers(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_PendingTransactions")] public static extern uint SKY_api_Client_PendingTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1487,39 +1481,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Client_DecryptWallet")] public static extern uint SKY_api_Client_DecryptWallet(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2, string jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_Print")] - public static extern uint SKY_secp256k1go_XY_Print(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_ParsePubkey")] - public static extern uint SKY_secp256k1go_XY_ParsePubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_Bytes")] - public static extern uint SKY_secp256k1go_XY_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_BytesUncompressed")] - public static extern uint SKY_secp256k1go_XY_BytesUncompressed(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_SetXY")] - public static extern uint SKY_secp256k1go_XY_SetXY(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_IsValid")] - public static extern uint SKY_secp256k1go_XY_IsValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_SetXYZ")] - public static extern uint SKY_secp256k1go_XY_SetXYZ(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_Neg")] - public static extern uint SKY_secp256k1go_XY_Neg(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_SetXO")] - public static extern uint SKY_secp256k1go_XY_SetXO(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, byte jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_AddXY")] - public static extern uint SKY_secp256k1go_XY_AddXY(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XY_GetPublicKey")] - public static extern uint SKY_secp256k1go_XY_GetPublicKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_NewWalletResponse")] public static extern uint SKY_api_NewWalletResponse(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1625,30 +1586,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_ReadableWallet_Erase")] public static extern uint SKY_wallet_ReadableWallet_Erase(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_DecompressPoint")] - public static extern uint SKY_secp256k1go_DecompressPoint(global::System.Runtime.InteropServices.HandleRef jarg1, byte jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_RecoverPublicKey")] - public static extern uint SKY_secp256k1go_RecoverPublicKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Multiply")] - public static extern uint SKY_secp256k1go_Multiply(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_BaseMultiply")] - public static extern uint SKY_secp256k1go_BaseMultiply(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_BaseMultiplyAdd")] - public static extern uint SKY_secp256k1go_BaseMultiplyAdd(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_GeneratePublicKey")] - public static extern uint SKY_secp256k1go_GeneratePublicKey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_SeckeyIsValid")] - public static extern uint SKY_secp256k1go_SeckeyIsValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_PubkeyIsValid")] - public static extern uint SKY_secp256k1go_PubkeyIsValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_base58_String2Hex")] public static extern uint SKY_base58_String2Hex(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1721,12 +1658,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_iputil_SplitAddr")] public static extern uint SKY_iputil_SplitAddr(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_SumSHA256")] - public static extern uint SKY_secp256k1_SumSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_RandByte")] - public static extern uint SKY_secp256k1_RandByte(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GenerateAddressesInFile")] public static extern uint SKY_cli_GenerateAddressesInFile(string jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); @@ -1799,14 +1730,14 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_SignHash__SWIG_1")] public static extern uint SKY_cipher_SignHash__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_ChkSig__SWIG_1")] - public static extern uint SKY_cipher_ChkSig__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_VerifyAddressSignedHash")] + public static extern uint SKY_cipher_VerifyAddressSignedHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_VerifySignedHash")] public static extern uint SKY_cipher_VerifySignedHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_VerifySignature__SWIG_1")] - public static extern uint SKY_cipher_VerifySignature__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_VerifyPubKeySignedHash")] + public static extern uint SKY_cipher_VerifyPubKeySignedHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_GenerateKeyPair")] public static extern uint SKY_cipher_GenerateKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1829,33 +1760,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_CheckSecKeyHash__SWIG_1")] public static extern uint SKY_cipher_CheckSecKeyHash__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Create")] - public static extern uint SKY_secp256k1go_Signature_Create(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_GetR")] - public static extern uint SKY_secp256k1go_Signature_GetR(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_GetS")] - public static extern uint SKY_secp256k1go_Signature_GetS(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Print")] - public static extern uint SKY_secp256k1go_Signature_Print(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Verify")] - public static extern uint SKY_secp256k1go_Signature_Verify(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Recover")] - public static extern uint SKY_secp256k1go_Signature_Recover(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, long jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Sign")] - public static extern uint SKY_secp256k1go_Signature_Sign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5, global::System.Runtime.InteropServices.HandleRef jarg6); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_ParseBytes")] - public static extern uint SKY_secp256k1go_Signature_ParseBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Signature_Bytes")] - public static extern uint SKY_secp256k1go_Signature_Bytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_App_Run")] public static extern uint SKY_cli_App_Run(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); @@ -1874,9 +1778,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_Setenv")] public static extern uint SKY_cli_Setenv(string jarg1, string jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_poly1305_Verify")] - public static extern uint SKY_poly1305_Verify(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_NewBalance")] public static extern uint SKY_wallet_NewBalance(ulong jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -1925,42 +1826,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_wallet_Entry_VerifyPublic")] public static extern uint SKY_wallet_Entry_VerifyPublic(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Print")] - public static extern uint SKY_secp256k1go_XYZ_Print(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_SetXY")] - public static extern uint SKY_secp256k1go_XYZ_SetXY(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_IsInfinity")] - public static extern uint SKY_secp256k1go_XYZ_IsInfinity(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_IsValid")] - public static extern uint SKY_secp256k1go_XYZ_IsValid(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Normalize")] - public static extern uint SKY_secp256k1go_XYZ_Normalize(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Equals")] - public static extern uint SKY_secp256k1go_XYZ_Equals(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_ECmult")] - public static extern uint SKY_secp256k1go_XYZ_ECmult(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Neg")] - public static extern uint SKY_secp256k1go_XYZ_Neg(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Double")] - public static extern uint SKY_secp256k1go_XYZ_Double(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_AddXY")] - public static extern uint SKY_secp256k1go_XYZ_AddXY(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_XYZ_Add")] - public static extern uint SKY_secp256k1go_XYZ_Add(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_ECmultGen")] - public static extern uint SKY_secp256k1go_ECmultGen(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_droplet_FromString")] public static extern uint SKY_droplet_FromString(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -2102,30 +1967,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_api_Handle_GetBuildInfoData")] public static extern uint SKY_api_Handle_GetBuildInfoData(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ripemd160_New")] - public static extern uint SKY_ripemd160_New(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ripemd160_Write")] - public static extern uint SKY_ripemd160_Write(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_ripemd160_Sum")] - public static extern uint SKY_ripemd160_Sum(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_Create")] - public static extern uint SKY_secp256k1go_Number_Create(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_Print")] - public static extern uint SKY_secp256k1go_Number_Print(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_SetHex")] - public static extern uint SKY_secp256k1go_Number_SetHex(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_IsOdd")] - public static extern uint SKY_secp256k1go_Number_IsOdd(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Number_IsEqual")] - public static extern uint SKY_secp256k1go_Number_IsEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_UxOut_Hash__SWIG_1")] public static extern uint SKY_coin_UxOut_Hash__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -2213,54 +2054,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_AddPrivateKeyToFile")] public static extern uint SKY_cli_AddPrivateKeyToFile(string jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_GenerateKeyPair")] - public static extern uint SKY_secp256k1_GenerateKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_PubkeyFromSeckey")] - public static extern uint SKY_secp256k1_PubkeyFromSeckey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_UncompressPubkey")] - public static extern uint SKY_secp256k1_UncompressPubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_UncompressedPubkeyFromSeckey")] - public static extern uint SKY_secp256k1_UncompressedPubkeyFromSeckey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_Secp256k1Hash")] - public static extern uint SKY_secp256k1_Secp256k1Hash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_GenerateDeterministicKeyPair")] - public static extern uint SKY_secp256k1_GenerateDeterministicKeyPair(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_DeterministicKeyPairIterator")] - public static extern uint SKY_secp256k1_DeterministicKeyPairIterator(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_Sign")] - public static extern uint SKY_secp256k1_Sign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_SignDeterministic")] - public static extern uint SKY_secp256k1_SignDeterministic(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_VerifySeckey")] - public static extern uint SKY_secp256k1_VerifySeckey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_VerifyPubkey")] - public static extern uint SKY_secp256k1_VerifyPubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_VerifySignatureValidity")] - public static extern uint SKY_secp256k1_VerifySignatureValidity(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_VerifySignature")] - public static extern uint SKY_secp256k1_VerifySignature(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_SignatureErrorString")] - public static extern uint SKY_secp256k1_SignatureErrorString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_RecoverPubkey")] - public static extern uint SKY_secp256k1_RecoverPubkey(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1_ECDH")] - public static extern uint SKY_secp256k1_ECDH(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_apputil_CatchInterruptPanic")] public static extern uint SKY_apputil_CatchInterruptPanic(); @@ -2274,16 +2067,16 @@ static skycoinPINVOKE() { public static extern uint SKY_certutil_NewTLSCertPair(string jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_VerifyTransactionFee")] - public static extern uint SKY_fee_VerifyTransactionFee(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2); + public static extern uint SKY_fee_VerifyTransactionFee(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_VerifyTransactionFeeForHours")] - public static extern uint SKY_fee_VerifyTransactionFeeForHours(ulong jarg1, ulong jarg2); + public static extern uint SKY_fee_VerifyTransactionFeeForHours(ulong jarg1, ulong jarg2, ulong jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_RequiredFee")] - public static extern uint SKY_fee_RequiredFee(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_fee_RequiredFee(ulong jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_RemainingHours")] - public static extern uint SKY_fee_RemainingHours(ulong jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern uint SKY_fee_RemainingHours(ulong jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_TransactionFee__SWIG_1")] public static extern uint SKY_fee_TransactionFee__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); @@ -2378,66 +2171,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_testutil_MakeAddress")] public static extern uint SKY_testutil_MakeAddress(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_String")] - public static extern uint SKY_secp256k1go_Field_String(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Print")] - public static extern uint SKY_secp256k1go_Field_Print(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_SetB32")] - public static extern uint SKY_secp256k1go_Field_SetB32(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_SetBytes")] - public static extern uint SKY_secp256k1go_Field_SetBytes(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_SetHex")] - public static extern uint SKY_secp256k1go_Field_SetHex(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_IsOdd")] - public static extern uint SKY_secp256k1go_Field_IsOdd(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_IsZero")] - public static extern uint SKY_secp256k1go_Field_IsZero(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_SetInt")] - public static extern uint SKY_secp256k1go_Field_SetInt(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Normalize")] - public static extern uint SKY_secp256k1go_Field_Normalize(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_GetB32")] - public static extern uint SKY_secp256k1go_Field_GetB32(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Equals")] - public static extern uint SKY_secp256k1go_Field_Equals(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_SetAdd")] - public static extern uint SKY_secp256k1go_Field_SetAdd(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_MulInt")] - public static extern uint SKY_secp256k1go_Field_MulInt(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Negate")] - public static extern uint SKY_secp256k1go_Field_Negate(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, uint jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Inv")] - public static extern uint SKY_secp256k1go_Field_Inv(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Sqrt")] - public static extern uint SKY_secp256k1go_Field_Sqrt(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_InvVar")] - public static extern uint SKY_secp256k1go_Field_InvVar(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Mul")] - public static extern uint SKY_secp256k1go_Field_Mul(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_secp256k1go_Field_Sqr")] - public static extern uint SKY_secp256k1go_Field_Sqr(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_scrypt_Key")] - public static extern uint SKY_scrypt_Key(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, long jarg3, long jarg4, long jarg5, long jarg6, global::System.Runtime.InteropServices.HandleRef jarg7); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_Ripemd160_Set")] public static extern uint SKY_cipher_Ripemd160_Set(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -2636,6 +2369,24 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_api__RichlistParams")] public static extern void delete_api__RichlistParams(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_api__NetworkConnectionsFilter_States")] + public static extern void set_api__NetworkConnectionsFilter_States(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_api__NetworkConnectionsFilter_States")] + public static extern global::System.IntPtr get_api__NetworkConnectionsFilter_States(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_api__NetworkConnectionsFilter_Direction")] + public static extern void set_api__NetworkConnectionsFilter_Direction(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_api__NetworkConnectionsFilter_Direction")] + public static extern global::System.IntPtr get_api__NetworkConnectionsFilter_Direction(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_api__NetworkConnectionsFilter")] + public static extern global::System.IntPtr new_api__NetworkConnectionsFilter(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_api__NetworkConnectionsFilter")] + public static extern void delete_api__NetworkConnectionsFilter(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Address_isEqual")] public static extern int cipher__Address_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -2801,12 +2552,12 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_isEqual")] public static extern int coin__Transaction_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_getInnerHash")] - public static extern global::System.IntPtr coin__Transaction_getInnerHash(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_setInnerHash")] public static extern int coin__Transaction_setInnerHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_GetInnerHash")] + public static extern global::System.IntPtr coin__Transaction_GetInnerHash(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__Transaction_Length")] public static extern void set_coin__Transaction_Length(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); @@ -3314,8 +3065,8 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidSecKey")] public static extern int get_SKY_ErrInvalidSecKey(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidSigForPubKey")] - public static extern int get_SKY_ErrInvalidSigForPubKey(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidSigPubKeyRecovery")] + public static extern int get_SKY_ErrInvalidSigPubKeyRecovery(); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidSecKeyHex")] public static extern int get_SKY_ErrInvalidSecKeyHex(); @@ -3371,29 +3122,29 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidSig")] public static extern int get_SKY_ErrInvalidSig(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrSHA256orMissingPassword")] - public static extern int get_SKY_ErrSHA256orMissingPassword(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrMissingPassword")] + public static extern int get_SKY_ErrMissingPassword(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrLenghtDataOverflowMaxUint32")] - public static extern int get_SKY_ErrLenghtDataOverflowMaxUint32(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDataTooLarge")] + public static extern int get_SKY_ErrDataTooLarge(); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidChecksumLength")] public static extern int get_SKY_ErrInvalidChecksumLength(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidDataChecksumNotMatched")] - public static extern int get_SKY_ErrInvalidDataChecksumNotMatched(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidChecksum")] + public static extern int get_SKY_ErrInvalidChecksum(); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidNonceLength")] public static extern int get_SKY_ErrInvalidNonceLength(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidBlockSizeMultiple32Bytes")] - public static extern int get_SKY_ErrInvalidBlockSizeMultiple32Bytes(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidBlockSize")] + public static extern int get_SKY_ErrInvalidBlockSize(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrReadDataHashFailedLength")] - public static extern int get_SKY_ErrReadDataHashFailedLength(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrReadDataHashFailed")] + public static extern int get_SKY_ErrReadDataHashFailed(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrSHA256orInvalidPassword")] - public static extern int get_SKY_ErrSHA256orInvalidPassword(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidPassword")] + public static extern int get_SKY_ErrInvalidPassword(); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrReadDataLengthFailed")] public static extern int get_SKY_ErrReadDataLengthFailed(); @@ -3455,9 +3206,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrBlacklistedAddress")] public static extern int get_SKY_ErrBlacklistedAddress(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectReadFailed")] - public static extern int get_SKY_ErrDisconnectReadFailed(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectWriteFailed")] public static extern int get_SKY_ErrDisconnectWriteFailed(); @@ -3473,9 +3221,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectUnknownMessage")] public static extern int get_SKY_ErrDisconnectUnknownMessage(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectUnexpectedError")] - public static extern int get_SKY_ErrDisconnectUnexpectedError(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrConnectionPoolClosed")] public static extern int get_SKY_ErrConnectionPoolClosed(); @@ -3488,15 +3233,12 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrMaxDefaultConnectionsReached")] public static extern int get_SKY_ErrMaxDefaultConnectionsReached(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectInvalidVersion")] - public static extern int get_SKY_ErrDisconnectInvalidVersion(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectVersionNotSupported")] + public static extern int get_SKY_ErrDisconnectVersionNotSupported(); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectIntroductionTimeout")] public static extern int get_SKY_ErrDisconnectIntroductionTimeout(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectVersionSendFailed")] - public static extern int get_SKY_ErrDisconnectVersionSendFailed(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectIsBlacklisted")] public static extern int get_SKY_ErrDisconnectIsBlacklisted(); @@ -3515,9 +3257,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectIPLimitReached")] public static extern int get_SKY_ErrDisconnectIPLimitReached(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectOtherError")] - public static extern int get_SKY_ErrDisconnectOtherError(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrDisconnectMaxDefaultConnectionReached")] public static extern int get_SKY_ErrDisconnectMaxDefaultConnectionReached(); @@ -3605,14 +3344,14 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrWalletNotEncrypted")] public static extern int get_SKY_ErrWalletNotEncrypted(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrMissingPassword")] - public static extern int get_SKY_ErrMissingPassword(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrWalletMissingPassword")] + public static extern int get_SKY_ErrWalletMissingPassword(); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrMissingEncrypt")] public static extern int get_SKY_ErrMissingEncrypt(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidPassword")] - public static extern int get_SKY_ErrInvalidPassword(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrWalletInvalidPassword")] + public static extern int get_SKY_ErrWalletInvalidPassword(); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrMissingSeed")] public static extern int get_SKY_ErrMissingSeed(); diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index 7787e3d2..4475a6be 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -278,6 +278,7 @@ SWIGEXPORT void SWIGSTDCALL SWIGRegisterStringCallback_skycoin(SWIG_CSharpString #define SWIG_FILE_WITH_INIT #include "libskycoin.h" #include "swig.h" + #include "skyerrors.h" void destroy_cipher_SecKeys(cipher_SecKeys* p){ @@ -1593,24 +1594,12 @@ memcpy(__out->data, __in, 32); } - GoUint32 CSharp_skycoin_SKY_cipher_ChkSig(cipher__Address *a,cipher_SHA256 *sha,cipher_Sig *s){ - GoUint32 result = SKY_cipher_ChkSig(a,sha,s); - return result; - } - - GoUint32 CSharp_skycoin_SKY_cipher_PubKeyFromSig(cipher_Sig *sig,cipher_SHA256 *h,cipher_PubKey *p){ GoUint32 result = SKY_cipher_PubKeyFromSig(sig,h,p); return result; } - GoUint32 CSharp_skycoin_SKY_cipher_VerifySignature(cipher_PubKey *p,cipher_Sig *sig,cipher_SHA256 *h){ - GoUint32 result = SKY_cipher_VerifySignature(p,sig,h); - return result; - } - - GoUint32 CSharp_skycoin_SKY_cipher_SHA256_Set(cipher_SHA256 *h,GoSlice s){ GoUint32 result = SKY_cipher_SHA256_Set(h,s); return result; @@ -2268,16 +2257,17 @@ SWIGINTERN int cipher__BitcoinAddress_isEqual(cipher__BitcoinAddress *self,ciphe SWIGINTERN int coin__Transaction_isEqual(coin__Transaction *self,coin__Transaction *t){ return equalTransactions(self, t); } -SWIGINTERN cipher_SHA256 coin__Transaction_getInnerHash(coin__Transaction *self){ - cipher_SHA256 h; - cipher_SHA256_assignFrom(&h,self->InnerHash); - return h; - } SWIGINTERN int coin__Transaction_setInnerHash(coin__Transaction *self,cipher_SHA256 h){ memset(self->InnerHash, 0, sizeof(cipher__SHA256)); cipher_SHA256_assignFrom(self->InnerHash,&h); return 0; } +SWIGINTERN cipher_SHA256 coin__Transaction_GetInnerHash(coin__Transaction *self){ + cipher_SHA256 h; +memset(&h, 0, sizeof(cipher__SHA256)); + cipher_SHA256_assignFrom(&h,&self->InnerHash); + return h; + } SWIGINTERN int coin__TransactionOutput_isEqual(coin__TransactionOutput *self,coin__TransactionOutput *t){ if( self->Coins != t->Coins || self->Hours != t->Hours ){ @@ -4656,22 +4646,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SignHash__SWIG_0(v } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_ChkSig__SWIG_0(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; - cipher_Sig *arg3 = (cipher_Sig *) 0 ; - GoUint32 result; - - arg1 = (cipher__Address *)jarg1; - arg2 = (cipher_SHA256 *)jarg2; - arg3 = (cipher_Sig *)jarg3; - result = (GoUint32)CSharp_skycoin_SKY_cipher_ChkSig(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSig__SWIG_0(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; cipher_Sig *arg1 = (cipher_Sig *) 0 ; @@ -4688,22 +4662,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_PubKeyFromSig__SWI } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignature__SWIG_0(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; - cipher_Sig *arg2 = (cipher_Sig *) 0 ; - cipher_SHA256 *arg3 = (cipher_SHA256 *) 0 ; - GoUint32 result; - - arg1 = (cipher_PubKey *)jarg1; - arg2 = (cipher_Sig *)jarg2; - arg3 = (cipher_SHA256 *)jarg3; - result = (GoUint32)CSharp_skycoin_SKY_cipher_VerifySignature(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SHA256_Set__SWIG_0(void * jarg1, void * jarg2) { unsigned int jresult ; cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; @@ -8237,10 +8195,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkConnect } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkConnections(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkConnections(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; + api__NetworkConnectionsFilter *arg2 = (api__NetworkConnectionsFilter *) 0 ; + Handle *arg3 = (Handle *) 0 ; Client__Handle *argp1 ; GoUint32 result; @@ -8250,19 +8209,20 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkConnect return 0; } arg1 = *argp1; + arg2 = (api__NetworkConnectionsFilter *)jarg2; { - jarg2 = (long*)&arg2; + jarg3 = (long*)&arg3; } - result = (GoUint32)SKY_api_Client_NetworkConnections(arg1,arg2); + result = (GoUint32)SKY_api_Client_NetworkConnections(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkDefaultConnections(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkDefaultPeers(void * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; Client__Handle *argp1 ; GoUint32 result; @@ -8272,19 +8232,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkDefault return 0; } arg1 = *argp1; - { - jarg2 = (long*)&arg2; - } - result = (GoUint32)SKY_api_Client_NetworkDefaultConnections(arg1,arg2); + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_api_Client_NetworkDefaultPeers(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkTrustedConnections(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkTrustedPeers(void * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; Client__Handle *argp1 ; GoUint32 result; @@ -8294,19 +8252,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkTrusted return 0; } arg1 = *argp1; - { - jarg2 = (long*)&arg2; - } - result = (GoUint32)SKY_api_Client_NetworkTrustedConnections(arg1,arg2); + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_api_Client_NetworkTrustedPeers(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkExchangeableConnections(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkExchangedPeers(void * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; Client__Handle *argp1 ; GoUint32 result; @@ -8316,10 +8272,8 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_NetworkExchang return 0; } arg1 = *argp1; - { - jarg2 = (long*)&arg2; - } - result = (GoUint32)SKY_api_Client_NetworkExchangeableConnections(arg1,arg2); + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_api_Client_NetworkExchangedPeers(arg1,arg2); jresult = result; return jresult; } @@ -8691,172 +8645,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Client_DecryptWallet( } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_Print(void * jarg1, char* jarg2) { - unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - GoString arg2 ; - GoUint32 result; - - arg1 = (secp256k1go__XY *)jarg1; - (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); - result = (GoUint32)SKY_secp256k1go_XY_Print(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_ParsePubkey(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - GoSlice arg2 ; - GoUint8 *arg3 = (GoUint8 *) 0 ; - GoSlice *argp2 ; - GoUint32 result; - - arg1 = (secp256k1go__XY *)jarg1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (GoUint8 *)jarg3; - result = (GoUint32)SKY_secp256k1go_XY_ParsePubkey(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_Bytes(void * jarg1, GoSlice_ * jarg2) { - unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint32 result; - - arg1 = (secp256k1go__XY *)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1go_XY_Bytes(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_BytesUncompressed(void * jarg1, GoSlice_ * jarg2) { - unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint32 result; - - arg1 = (secp256k1go__XY *)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1go_XY_BytesUncompressed(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_SetXY(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg3 = (secp256k1go__Field *) 0 ; - GoUint32 result; - - arg1 = (secp256k1go__XY *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - arg3 = (secp256k1go__Field *)jarg3; - result = (GoUint32)SKY_secp256k1go_XY_SetXY(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_IsValid(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoUint32 result; - - arg1 = (secp256k1go__XY *)jarg1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_secp256k1go_XY_IsValid(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_SetXYZ(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; - GoUint32 result; - - arg1 = (secp256k1go__XY *)jarg1; - arg2 = (secp256k1go__XYZ *)jarg2; - result = (GoUint32)SKY_secp256k1go_XY_SetXYZ(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_Neg(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; - GoUint32 result; - - arg1 = (secp256k1go__XY *)jarg1; - arg2 = (secp256k1go__XY *)jarg2; - result = (GoUint32)SKY_secp256k1go_XY_Neg(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_SetXO(void * jarg1, void * jarg2, unsigned char jarg3) { - unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - GoUint8 arg3 ; - GoUint32 result; - - arg1 = (secp256k1go__XY *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - arg3 = (GoUint8)jarg3; - result = (GoUint32)SKY_secp256k1go_XY_SetXO(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_AddXY(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; - GoUint32 result; - - arg1 = (secp256k1go__XY *)jarg1; - arg2 = (secp256k1go__XY *)jarg2; - result = (GoUint32)SKY_secp256k1go_XY_AddXY(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XY_GetPublicKey(void * jarg1, GoSlice_ * jarg2) { - unsigned int jresult ; - secp256k1go__XY *arg1 = (secp256k1go__XY *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint32 result; - - arg1 = (secp256k1go__XY *)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1go_XY_GetPublicKey(arg1,arg2); - jresult = result; - return jresult; -} - - SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_NewWalletResponse(void * jarg1, void * jarg2) { unsigned int jresult ; Wallet__Handle arg1 ; @@ -9579,234 +9367,38 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_ReadableWallet_Era } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_DecompressPoint(void * jarg1, unsigned char jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_String2Hex(char* jarg1, GoSlice_ * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - GoUint8 arg2 ; - GoSlice arg3 ; - GoSlice *argp1 ; - GoSlice *argp3 ; + GoString arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoUint8)jarg2; - argp3 = (GoSlice *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg3 = *argp3; - result = (GoUint32)SKY_secp256k1go_DecompressPoint(arg1,arg2,arg3); + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_base58_String2Hex(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_RecoverPublicKey(void * jarg1, void * jarg2, long long jarg3, GoSlice_ * jarg4, void * jarg5) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_ToInt(char* jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - GoInt arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - GoInt *arg5 = (GoInt *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; + GoString arg1 ; + GoInt *arg2 = (GoInt *) 0 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (GoInt)jarg3; - arg4 = (coin__UxArray *)jarg4; - arg5 = (GoInt *)jarg5; - result = (GoUint32)SKY_secp256k1go_RecoverPublicKey(arg1,arg2,arg3,arg4,arg5); + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); + arg2 = (GoInt *)jarg2; + result = (GoUint32)SKY_base58_Base58_ToInt(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Multiply(void * jarg1, void * jarg2, GoSlice_ * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_ToHex(char* jarg1, GoSlice_ * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_secp256k1go_Multiply(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_BaseMultiply(void * jarg1, GoSlice_ * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1go_BaseMultiply(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_BaseMultiplyAdd(void * jarg1, void * jarg2, GoSlice_ * jarg3) { - unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_secp256k1go_BaseMultiplyAdd(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_GeneratePublicKey(void * jarg1, GoSlice_ * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1go_GeneratePublicKey(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_SeckeyIsValid(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_secp256k1go_SeckeyIsValid(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_PubkeyIsValid(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_secp256k1go_PubkeyIsValid(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_String2Hex(char* jarg1, GoSlice_ * jarg2) { - unsigned int jresult ; - GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint32 result; - - (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_base58_String2Hex(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_ToInt(char* jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoUint32 result; - - (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_base58_Base58_ToInt(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_base58_Base58_ToHex(char* jarg1, GoSlice_ * jarg2) { - unsigned int jresult ; - GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoString arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoUint32 result; (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); @@ -10211,40 +9803,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_iputil_SplitAddr(char* ja } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_SumSHA256(void * jarg1, GoSlice_ * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1_SumSHA256(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_RandByte(long long jarg1, GoSlice_ * jarg2) { - unsigned int jresult ; - GoInt arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint32 result; - - arg1 = (GoInt)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1_RandByte(arg1,arg2); - jresult = result; - return jresult; -} - - SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GenerateAddressesInFile(char* jarg1, unsigned long long jarg2, void * jarg3, GoSlice_ * jarg4) { unsigned int jresult ; GoString arg1 ; @@ -10631,17 +10189,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SignHash__SWIG_1(c } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_ChkSig__SWIG_1(void * jarg1, cipher_SecKey* jarg2, cipher_Sig* jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifyAddressSignedHash(void * jarg1, cipher_Sig* jarg2, cipher_SecKey* jarg3) { unsigned int jresult ; cipher__Address *arg1 = (cipher__Address *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - cipher__Sig *arg3 = (cipher__Sig *) 0 ; + cipher__Sig *arg2 = (cipher__Sig *) 0 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; GoUint32 result; arg1 = (cipher__Address *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - arg3 = (cipher__Sig *)jarg3; - result = (GoUint32)SKY_cipher_ChkSig(arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[65])arg3); + arg2 = (cipher__Sig *)jarg2; + arg3 = (cipher__SHA256 *)jarg3; + result = (GoUint32)SKY_cipher_VerifyAddressSignedHash(arg1,(GoUint8_ (*)[65])arg2,(GoUint8_ (*)[32])arg3); jresult = result; return jresult; } @@ -10661,7 +10219,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignedHash(c } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignature__SWIG_1(cipher__PubKey* jarg1, cipher_Sig* jarg2, cipher_SecKey* jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifyPubKeySignedHash(cipher__PubKey* jarg1, cipher_Sig* jarg2, cipher_SecKey* jarg3) { unsigned int jresult ; cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; cipher__Sig *arg2 = (cipher__Sig *) 0 ; @@ -10671,7 +10229,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_VerifySignature__S arg1 = (cipher__PubKey *)jarg1; arg2 = (cipher__Sig *)jarg2; arg3 = (cipher__SHA256 *)jarg3; - result = (GoUint32)SKY_cipher_VerifySignature((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[65])arg2,(GoUint8_ (*)[32])arg3); + result = (GoUint32)SKY_cipher_VerifyPubKeySignedHash((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[65])arg2,(GoUint8_ (*)[32])arg3); jresult = result; return jresult; } @@ -10809,313 +10367,87 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_CheckSecKeyHash__S } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Create(void * jarg1) { - unsigned int jresult ; - Signature_Handle *arg1 = (Signature_Handle *) 0 ; - GoUint32 result; - - arg1 = (Signature_Handle *)jarg1; - result = (GoUint32)SKY_secp256k1go_Signature_Create(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_GetR(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_App_Run(void * jarg1, char* jarg2) { unsigned int jresult ; - Signature_Handle arg1 ; - Number_Handle *arg2 = (Number_Handle *) 0 ; - Signature_Handle *argp1 ; + App__Handle arg1 ; + GoString arg2 ; + App__Handle *argp1 ; GoUint32 result; - argp1 = (Signature_Handle *)jarg1; + argp1 = (App__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null App__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (Number_Handle *)jarg2; - result = (GoUint32)SKY_secp256k1go_Signature_GetR(arg1,arg2); + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); + result = (GoUint32)SKY_cli_App_Run(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_GetS(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_GetCoin(void * jarg1, GoString* jarg2) { unsigned int jresult ; - Signature_Handle arg1 ; - Number_Handle *arg2 = (Number_Handle *) 0 ; - Signature_Handle *argp1 ; + Config__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Config__Handle *argp1 ; GoUint32 result; - argp1 = (Signature_Handle *)jarg1; + argp1 = (Config__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Config__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (Number_Handle *)jarg2; - result = (GoUint32)SKY_secp256k1go_Signature_GetS(arg1,arg2); + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cli_Config_GetCoin(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Print(void * jarg1, char* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_GetRPCAddress(void * jarg1, GoString* jarg2) { unsigned int jresult ; - Signature_Handle arg1 ; - GoString arg2 ; - Signature_Handle *argp1 ; + Config__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Config__Handle *argp1 ; GoUint32 result; - argp1 = (Signature_Handle *)jarg1; + argp1 = (Config__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Config__Handle", 0); return 0; } arg1 = *argp1; - (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); - result = (GoUint32)SKY_secp256k1go_Signature_Print(arg1,arg2); + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cli_Config_GetRPCAddress(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Verify(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_RPCClientFromApp(void * jarg1, void * jarg2) { unsigned int jresult ; - Signature_Handle arg1 ; - secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; - Number_Handle arg3 ; - GoUint8 *arg4 = (GoUint8 *) 0 ; - Signature_Handle *argp1 ; - Number_Handle *argp3 ; + App__Handle arg1 ; + WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; + App__Handle *argp1 ; GoUint32 result; - argp1 = (Signature_Handle *)jarg1; + argp1 = (App__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null App__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (secp256k1go__XY *)jarg2; - argp3 = (Number_Handle *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); - return 0; - } - arg3 = *argp3; - arg4 = (GoUint8 *)jarg4; - result = (GoUint32)SKY_secp256k1go_Signature_Verify(arg1,arg2,arg3,arg4); + arg2 = (WebRpcClient__Handle *)jarg2; + result = (GoUint32)SKY_cli_RPCClientFromApp(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Recover(void * jarg1, void * jarg2, void * jarg3, long long jarg4, void * jarg5) { - unsigned int jresult ; - Signature_Handle arg1 ; - secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; - Number_Handle arg3 ; - GoInt arg4 ; - GoUint8 *arg5 = (GoUint8 *) 0 ; - Signature_Handle *argp1 ; - Number_Handle *argp3 ; - GoUint32 result; - - argp1 = (Signature_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (secp256k1go__XY *)jarg2; - argp3 = (Number_Handle *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); - return 0; - } - arg3 = *argp3; - arg4 = (GoInt)jarg4; - arg5 = (GoUint8 *)jarg5; - result = (GoUint32)SKY_secp256k1go_Signature_Recover(arg1,arg2,arg3,arg4,arg5); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Sign(void * jarg1, void * jarg2, void * jarg3, void * jarg4, void * jarg5, void * jarg6) { - unsigned int jresult ; - Signature_Handle arg1 ; - Number_Handle arg2 ; - Number_Handle arg3 ; - Number_Handle arg4 ; - GoInt *arg5 = (GoInt *) 0 ; - GoInt *arg6 = (GoInt *) 0 ; - Signature_Handle *argp1 ; - Number_Handle *argp2 ; - Number_Handle *argp3 ; - Number_Handle *argp4 ; - GoUint32 result; - - argp1 = (Signature_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); - return 0; - } - arg1 = *argp1; - argp2 = (Number_Handle *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); - return 0; - } - arg2 = *argp2; - argp3 = (Number_Handle *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); - return 0; - } - arg3 = *argp3; - argp4 = (Number_Handle *)jarg4; - if (!argp4) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); - return 0; - } - arg4 = *argp4; - arg5 = (GoInt *)jarg5; - arg6 = (GoInt *)jarg6; - result = (GoUint32)SKY_secp256k1go_Signature_Sign(arg1,arg2,arg3,arg4,arg5,arg6); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_ParseBytes(void * jarg1, void * jarg2) { - unsigned int jresult ; - Signature_Handle arg1 ; - GoSlice arg2 ; - Signature_Handle *argp1 ; - GoSlice *argp2 ; - GoUint32 result; - - argp1 = (Signature_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_secp256k1go_Signature_ParseBytes(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Signature_Bytes(void * jarg1, GoSlice_ * jarg2) { - unsigned int jresult ; - Signature_Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - Signature_Handle *argp1 ; - GoUint32 result; - - argp1 = (Signature_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Signature_Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1go_Signature_Bytes(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_App_Run(void * jarg1, char* jarg2) { - unsigned int jresult ; - App__Handle arg1 ; - GoString arg2 ; - App__Handle *argp1 ; - GoUint32 result; - - argp1 = (App__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null App__Handle", 0); - return 0; - } - arg1 = *argp1; - (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); - result = (GoUint32)SKY_cli_App_Run(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_GetCoin(void * jarg1, GoString* jarg2) { - unsigned int jresult ; - Config__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - Config__Handle *argp1 ; - GoUint32 result; - - argp1 = (Config__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Config__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cli_Config_GetCoin(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_GetRPCAddress(void * jarg1, GoString* jarg2) { - unsigned int jresult ; - Config__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - Config__Handle *argp1 ; - GoUint32 result; - - argp1 = (Config__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Config__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cli_Config_GetRPCAddress(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_RPCClientFromApp(void * jarg1, void * jarg2) { - unsigned int jresult ; - App__Handle arg1 ; - WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; - App__Handle *argp1 ; - GoUint32 result; - - argp1 = (App__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null App__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (WebRpcClient__Handle *)jarg2; - result = (GoUint32)SKY_cli_RPCClientFromApp(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Getenv(char* jarg1, GoString* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Getenv(char* jarg1, GoString* jarg2) { unsigned int jresult ; GoString arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; @@ -11143,30 +10475,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Setenv(char* jarg1, c } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_poly1305_Verify(GoSlice_ * jarg1, void * jarg2, GoSlice_ * jarg3, void * jarg4) { - unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoUint8 *arg4 = (GoUint8 *) 0 ; - GoSlice *argp2 ; - GoUint32 result; - - arg1 = (coin__UxArray *)jarg1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (coin__UxArray *)jarg3; - arg4 = (GoUint8 *)jarg4; - result = (GoUint32)SKY_poly1305_Verify(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_NewBalance(unsigned long long jarg1, unsigned long long jarg2, void * jarg3) { unsigned int jresult ; GoUint64 arg1 ; @@ -11415,281 +10723,87 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_Entry_VerifyPublic } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Print(void * jarg1, char* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_droplet_FromString(char* jarg1, void * jarg2) { unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - GoString arg2 ; + GoString arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; GoUint32 result; - arg1 = (secp256k1go__XYZ *)jarg1; - (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); - result = (GoUint32)SKY_secp256k1go_XYZ_Print(arg1,arg2); + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); + arg2 = (GoUint64 *)jarg2; + result = (GoUint32)SKY_droplet_FromString(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_SetXY(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_droplet_ToString(unsigned long long jarg1, GoString* jarg2) { unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XY *arg2 = (secp256k1go__XY *) 0 ; + GoUint64 arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; - arg1 = (secp256k1go__XYZ *)jarg1; - arg2 = (secp256k1go__XY *)jarg2; - result = (GoUint32)SKY_secp256k1go_XYZ_SetXY(arg1,arg2); + arg1 = (GoUint64)jarg1; + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_droplet_ToString(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_IsInfinity(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CryptoTypeFromString(char* jarg1, GoString* jarg2) { unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; + GoString arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; - arg1 = (secp256k1go__XYZ *)jarg1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_secp256k1go_XYZ_IsInfinity(arg1,arg2); + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_wallet_CryptoTypeFromString(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_IsValid(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_handle_copy(void * jarg1, void * jarg2) { unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; + Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; GoUint32 result; - arg1 = (secp256k1go__XYZ *)jarg1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_secp256k1go_XYZ_IsValid(arg1,arg2); + { + jarg1 = (long*)&arg1; + } + { + jarg2 = (long*)&arg2; + } + result = (GoUint32)SKY_handle_copy(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Normalize(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_logging_EnableColors() { unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; GoUint32 result; - arg1 = (secp256k1go__XYZ *)jarg1; - result = (GoUint32)SKY_secp256k1go_XYZ_Normalize(arg1); + result = (GoUint32)SKY_logging_EnableColors(); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Equals(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_logging_DisableColors() { unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; - GoUint8 *arg3 = (GoUint8 *) 0 ; GoUint32 result; - arg1 = (secp256k1go__XYZ *)jarg1; - arg2 = (secp256k1go__XYZ *)jarg2; - arg3 = (GoUint8 *)jarg3; - result = (GoUint32)SKY_secp256k1go_XYZ_Equals(arg1,arg2,arg3); + result = (GoUint32)SKY_logging_DisableColors(); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_ECmult(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { - unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; - Number_Handle arg3 ; - Number_Handle arg4 ; - Number_Handle *argp3 ; - Number_Handle *argp4 ; - GoUint32 result; - - arg1 = (secp256k1go__XYZ *)jarg1; - arg2 = (secp256k1go__XYZ *)jarg2; - argp3 = (Number_Handle *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); - return 0; - } - arg3 = *argp3; - argp4 = (Number_Handle *)jarg4; - if (!argp4) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); - return 0; - } - arg4 = *argp4; - result = (GoUint32)SKY_secp256k1go_XYZ_ECmult(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Neg(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; - GoUint32 result; - - arg1 = (secp256k1go__XYZ *)jarg1; - arg2 = (secp256k1go__XYZ *)jarg2; - result = (GoUint32)SKY_secp256k1go_XYZ_Neg(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Double(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; - GoUint32 result; - - arg1 = (secp256k1go__XYZ *)jarg1; - arg2 = (secp256k1go__XYZ *)jarg2; - result = (GoUint32)SKY_secp256k1go_XYZ_Double(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_AddXY(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XY *arg3 = (secp256k1go__XY *) 0 ; - GoUint32 result; - - arg1 = (secp256k1go__XYZ *)jarg1; - arg2 = (secp256k1go__XYZ *)jarg2; - arg3 = (secp256k1go__XY *)jarg3; - result = (GoUint32)SKY_secp256k1go_XYZ_AddXY(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_XYZ_Add(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XYZ *arg2 = (secp256k1go__XYZ *) 0 ; - secp256k1go__XYZ *arg3 = (secp256k1go__XYZ *) 0 ; - GoUint32 result; - - arg1 = (secp256k1go__XYZ *)jarg1; - arg2 = (secp256k1go__XYZ *)jarg2; - arg3 = (secp256k1go__XYZ *)jarg3; - result = (GoUint32)SKY_secp256k1go_XYZ_Add(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_ECmultGen(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__XYZ *arg1 = (secp256k1go__XYZ *) 0 ; - Number_Handle arg2 ; - Number_Handle *argp2 ; - GoUint32 result; - - arg1 = (secp256k1go__XYZ *)jarg1; - argp2 = (Number_Handle *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_secp256k1go_ECmultGen(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_droplet_FromString(char* jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint32 result; - - (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_droplet_FromString(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_droplet_ToString(unsigned long long jarg1, GoString* jarg2) { - unsigned int jresult ; - GoUint64 arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - arg1 = (GoUint64)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_droplet_ToString(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_wallet_CryptoTypeFromString(char* jarg1, GoString* jarg2) { - unsigned int jresult ; - GoString arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_wallet_CryptoTypeFromString(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_handle_copy(void * jarg1, void * jarg2) { - unsigned int jresult ; - Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - GoUint32 result; - - { - jarg1 = (long*)&arg1; - } - { - jarg2 = (long*)&arg2; - } - result = (GoUint32)SKY_handle_copy(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_logging_EnableColors() { - unsigned int jresult ; - GoUint32 result; - - result = (GoUint32)SKY_logging_EnableColors(); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_logging_DisableColors() { - unsigned int jresult ; - GoUint32 result; - - result = (GoUint32)SKY_logging_DisableColors(); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_logging_Disable() { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_logging_Disable() { unsigned int jresult ; GoUint32 result; @@ -12423,263 +11537,95 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_api_Handle_GetBuildInfoDa } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_ripemd160_New(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_Hash__SWIG_1(void * jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; - Hash_Handle *arg1 = (Hash_Handle *) 0 ; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; GoUint32 result; - arg1 = (Hash_Handle *)jarg1; - result = (GoUint32)SKY_ripemd160_New(arg1); + arg1 = (coin__UxOut *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_UxOut_Hash(arg1,(GoUint8_ (*)[32])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_ripemd160_Write(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_SnapshotHash__SWIG_1(void * jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; - Hash_Handle arg1 ; - GoSlice arg2 ; - GoInt *arg3 = (GoInt *) 0 ; - Hash_Handle *argp1 ; - GoSlice *argp2 ; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; GoUint32 result; - argp1 = (Hash_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Hash_Handle", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (GoInt *)jarg3; - result = (GoUint32)SKY_ripemd160_Write(arg1,arg2,arg3); + arg1 = (coin__UxOut *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_UxOut_SnapshotHash(arg1,(GoUint8_ (*)[32])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_ripemd160_Sum(void * jarg1, void * jarg2, GoSlice_ * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxBody_Hash__SWIG_1(void * jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; - Hash_Handle arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - Hash_Handle *argp1 ; - GoSlice *argp2 ; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; GoUint32 result; - argp1 = (Hash_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Hash_Handle", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_ripemd160_Sum(arg1,arg2,arg3); + arg1 = (coin__UxBody *)jarg1; + arg2 = (cipher__SHA256 *)jarg2; + result = (GoUint32)SKY_coin_UxBody_Hash(arg1,(GoUint8_ (*)[32])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_Create(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_CoinHours(void * jarg1, unsigned long long jarg2, void * jarg3) { unsigned int jresult ; - Number_Handle *arg1 = (Number_Handle *) 0 ; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + GoUint64 arg2 ; + GoUint64 *arg3 = (GoUint64 *) 0 ; GoUint32 result; - arg1 = (Number_Handle *)jarg1; - result = (GoUint32)SKY_secp256k1go_Number_Create(arg1); + arg1 = (coin__UxOut *)jarg1; + arg2 = (GoUint64)jarg2; + arg3 = (GoUint64 *)jarg3; + result = (GoUint32)SKY_coin_UxOut_CoinHours(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_Print(void * jarg1, char* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Hashes__SWIG_1(GoSlice_ * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; - Number_Handle arg1 ; - GoString arg2 ; - Number_Handle *argp1 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoUint32 result; - argp1 = (Number_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); - return 0; - } - arg1 = *argp1; - (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); - result = (GoUint32)SKY_secp256k1go_Number_Print(arg1,arg2); + arg1 = (coin__UxArray *)jarg1; + arg2 = (coin__UxArray *)jarg2; + result = (GoUint32)SKY_coin_UxArray_Hashes(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_SetHex(void * jarg1, char* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_HasDupes__SWIG_1(GoSlice_ * jarg1, void * jarg2) { unsigned int jresult ; - Number_Handle arg1 ; - GoString arg2 ; - Number_Handle *argp1 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; GoUint32 result; - argp1 = (Number_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); - return 0; - } - arg1 = *argp1; - (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); - result = (GoUint32)SKY_secp256k1go_Number_SetHex(arg1,arg2); + arg1 = (coin__UxArray *)jarg1; + arg2 = (GoUint8 *)jarg2; + result = (GoUint32)SKY_coin_UxArray_HasDupes(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_IsOdd(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Sort(GoSlice_ * jarg1) { unsigned int jresult ; - Number_Handle arg1 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - Number_Handle *argp1 ; - GoUint32 result; - - argp1 = (Number_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_secp256k1go_Number_IsOdd(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Number_IsEqual(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - Number_Handle arg1 ; - Number_Handle arg2 ; - GoUint8 *arg3 = (GoUint8 *) 0 ; - Number_Handle *argp1 ; - Number_Handle *argp2 ; - GoUint32 result; - - argp1 = (Number_Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); - return 0; - } - arg1 = *argp1; - argp2 = (Number_Handle *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Number_Handle", 0); - return 0; - } - arg2 = *argp2; - arg3 = (GoUint8 *)jarg3; - result = (GoUint32)SKY_secp256k1go_Number_IsEqual(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_Hash__SWIG_1(void * jarg1, cipher_SecKey* jarg2) { - unsigned int jresult ; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoUint32 result; - - arg1 = (coin__UxOut *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_coin_UxOut_Hash(arg1,(GoUint8_ (*)[32])arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_SnapshotHash__SWIG_1(void * jarg1, cipher_SecKey* jarg2) { - unsigned int jresult ; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoUint32 result; - - arg1 = (coin__UxOut *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_coin_UxOut_SnapshotHash(arg1,(GoUint8_ (*)[32])arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxBody_Hash__SWIG_1(void * jarg1, cipher_SecKey* jarg2) { - unsigned int jresult ; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoUint32 result; - - arg1 = (coin__UxBody *)jarg1; - arg2 = (cipher__SHA256 *)jarg2; - result = (GoUint32)SKY_coin_UxBody_Hash(arg1,(GoUint8_ (*)[32])arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxOut_CoinHours(void * jarg1, unsigned long long jarg2, void * jarg3) { - unsigned int jresult ; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - GoUint64 arg2 ; - GoUint64 *arg3 = (GoUint64 *) 0 ; - GoUint32 result; - - arg1 = (coin__UxOut *)jarg1; - arg2 = (GoUint64)jarg2; - arg3 = (GoUint64 *)jarg3; - result = (GoUint32)SKY_coin_UxOut_CoinHours(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Hashes__SWIG_1(GoSlice_ * jarg1, GoSlice_ * jarg2) { - unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoUint32 result; - - arg1 = (coin__UxArray *)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_coin_UxArray_Hashes(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_HasDupes__SWIG_1(GoSlice_ * jarg1, void * jarg2) { - unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoUint32 result; - - arg1 = (coin__UxArray *)jarg1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_coin_UxArray_HasDupes(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_UxArray_Sort(GoSlice_ * jarg1) { - unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; GoUint32 result; arg1 = (coin__UxArray *)jarg1; @@ -13145,656 +12091,272 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_AddPrivateKeyToFile(c } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_GenerateKeyPair(GoSlice_ * jarg1, GoSlice_ * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_apputil_CatchInterruptPanic() { unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoUint32 result; - arg1 = (coin__UxArray *)jarg1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1_GenerateKeyPair(arg1,arg2); + result = (GoUint32)SKY_apputil_CatchInterruptPanic(); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_PubkeyFromSeckey(void * jarg1, GoSlice_ * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_apputil_CatchDebug() { unsigned int jresult ; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1_PubkeyFromSeckey(arg1,arg2); + result = (GoUint32)SKY_apputil_CatchDebug(); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_UncompressPubkey(void * jarg1, GoSlice_ * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_apputil_PrintProgramStatus() { unsigned int jresult ; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1_UncompressPubkey(arg1,arg2); + result = (GoUint32)SKY_apputil_PrintProgramStatus(); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_UncompressedPubkeyFromSeckey(void * jarg1, GoSlice_ * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_certutil_NewTLSCertPair(char* jarg1, char* jarg2, void * jarg3, GoSlice_ * jarg4, GoSlice_ * jarg5) { unsigned int jresult ; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; + GoString arg1 ; + GoString arg2 ; + GoSlice arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + coin__UxArray *arg5 = (coin__UxArray *) 0 ; + GoSlice *argp3 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); + argp3 = (GoSlice *)jarg3; + if (!argp3) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1_UncompressedPubkeyFromSeckey(arg1,arg2); + arg3 = *argp3; + arg4 = (coin__UxArray *)jarg4; + arg5 = (coin__UxArray *)jarg5; + result = (GoUint32)SKY_certutil_NewTLSCertPair(arg1,arg2,arg3,arg4,arg5); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_Secp256k1Hash(void * jarg1, GoSlice_ * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_VerifyTransactionFee(void * jarg1, unsigned long long jarg2, unsigned long long jarg3) { unsigned int jresult ; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; + Transaction__Handle arg1 ; + GoUint64 arg2 ; + GoUint64 arg3 ; + Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (Transaction__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - result = (GoUint32)SKY_secp256k1_Secp256k1Hash(arg1,arg2); + arg2 = (GoUint64)jarg2; + arg3 = (GoUint64)jarg3; + result = (GoUint32)SKY_fee_VerifyTransactionFee(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_GenerateDeterministicKeyPair(void * jarg1, GoSlice_ * jarg2, GoSlice_ * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_VerifyTransactionFeeForHours(unsigned long long jarg1, unsigned long long jarg2, unsigned long long jarg3) { unsigned int jresult ; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; + GoUint64 arg1 ; + GoUint64 arg2 ; + GoUint64 arg3 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_secp256k1_GenerateDeterministicKeyPair(arg1,arg2,arg3); + arg1 = (GoUint64)jarg1; + arg2 = (GoUint64)jarg2; + arg3 = (GoUint64)jarg3; + result = (GoUint32)SKY_fee_VerifyTransactionFeeForHours(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_DeterministicKeyPairIterator(void * jarg1, GoSlice_ * jarg2, GoSlice_ * jarg3, GoSlice_ * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_RequiredFee(unsigned long long jarg1, unsigned long long jarg2, void * jarg3) { unsigned int jresult ; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; + GoUint64 arg1 ; + GoUint64 arg2 ; + GoUint64 *arg3 = (GoUint64 *) 0 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (coin__UxArray *)jarg2; - arg3 = (coin__UxArray *)jarg3; - arg4 = (coin__UxArray *)jarg4; - result = (GoUint32)SKY_secp256k1_DeterministicKeyPairIterator(arg1,arg2,arg3,arg4); + arg1 = (GoUint64)jarg1; + arg2 = (GoUint64)jarg2; + arg3 = (GoUint64 *)jarg3; + result = (GoUint32)SKY_fee_RequiredFee(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_Sign(void * jarg1, void * jarg2, GoSlice_ * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_RemainingHours(unsigned long long jarg1, unsigned long long jarg2, void * jarg3) { unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; + GoUint64 arg1 ; + GoUint64 arg2 ; + GoUint64 *arg3 = (GoUint64 *) 0 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_secp256k1_Sign(arg1,arg2,arg3); + arg1 = (GoUint64)jarg1; + arg2 = (GoUint64)jarg2; + arg3 = (GoUint64 *)jarg3; + result = (GoUint32)SKY_fee_RemainingHours(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_SignDeterministic(void * jarg1, void * jarg2, void * jarg3, GoSlice_ * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_TransactionFee__SWIG_1(void * jarg1, unsigned long long jarg2, GoSlice_ * jarg3, void * jarg4) { unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - GoSlice arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; - GoSlice *argp3 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoSlice *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg3 = *argp3; - arg4 = (coin__UxArray *)jarg4; - result = (GoUint32)SKY_secp256k1_SignDeterministic(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_VerifySeckey(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_secp256k1_VerifySeckey(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_VerifyPubkey(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoSlice *argp1 ; + Transaction__Handle arg1 ; + GoUint64 arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoUint64 *arg4 = (GoUint64 *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (Transaction__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_secp256k1_VerifyPubkey(arg1,arg2); + arg2 = (GoUint64)jarg2; + arg3 = (coin__UxArray *)jarg3; + arg4 = (GoUint64 *)jarg4; + result = (GoUint32)SKY_fee_TransactionFee(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_VerifySignatureValidity(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_LoadConfig(void * jarg1) { unsigned int jresult ; - GoSlice arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoSlice *argp1 ; + Config__Handle *arg1 = (Config__Handle *) 0 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoInt *)jarg2; - result = (GoUint32)SKY_secp256k1_VerifySignatureValidity(arg1,arg2); + arg1 = (Config__Handle *)jarg1; + result = (GoUint32)SKY_cli_LoadConfig(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_VerifySignature(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_FullWalletPath(void * jarg1, GoString* jarg2) { unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - GoSlice arg3 ; - GoInt *arg4 = (GoInt *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; - GoSlice *argp3 ; + Config__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Config__Handle *argp1 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (Config__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Config__Handle", 0); return 0; } arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoSlice *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg3 = *argp3; - arg4 = (GoInt *)jarg4; - result = (GoUint32)SKY_secp256k1_VerifySignature(arg1,arg2,arg3,arg4); + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cli_Config_FullWalletPath(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_SignatureErrorString(void * jarg1, void * jarg2, void * jarg3, GoString* jarg4) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_FullDBPath(void * jarg1, GoString* jarg2) { unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - GoSlice arg3 ; - GoString_ *arg4 = (GoString_ *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; - GoSlice *argp3 ; + Config__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Config__Handle *argp1 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (Config__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Config__Handle", 0); return 0; } arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoSlice *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg3 = *argp3; - arg4 = (GoString_ *)jarg4; - result = (GoUint32)SKY_secp256k1_SignatureErrorString(arg1,arg2,arg3,arg4); + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_cli_Config_FullDBPath(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_RecoverPubkey(void * jarg1, void * jarg2, GoSlice_ * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_NewApp(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; + Config__Handle arg1 ; + App__Handle *arg2 = (App__Handle *) 0 ; + Config__Handle *argp1 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (Config__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Config__Handle", 0); return 0; } arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_secp256k1_RecoverPubkey(arg1,arg2,arg3); + arg2 = (App__Handle *)jarg2; + result = (GoUint32)SKY_cli_NewApp(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1_ECDH(void * jarg1, void * jarg2, GoSlice_ * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_RPCClientFromContext(void * jarg1, void * jarg2) { unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; + Context__Handle arg1 ; + WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; + Context__Handle *argp1 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (Context__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Context__Handle", 0); return 0; } arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (coin__UxArray *)jarg3; - result = (GoUint32)SKY_secp256k1_ECDH(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_apputil_CatchInterruptPanic() { - unsigned int jresult ; - GoUint32 result; - - result = (GoUint32)SKY_apputil_CatchInterruptPanic(); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_apputil_CatchDebug() { - unsigned int jresult ; - GoUint32 result; - - result = (GoUint32)SKY_apputil_CatchDebug(); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_apputil_PrintProgramStatus() { - unsigned int jresult ; - GoUint32 result; - - result = (GoUint32)SKY_apputil_PrintProgramStatus(); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_certutil_NewTLSCertPair(char* jarg1, char* jarg2, void * jarg3, GoSlice_ * jarg4, GoSlice_ * jarg5) { - unsigned int jresult ; - GoString arg1 ; - GoString arg2 ; - GoSlice arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - coin__UxArray *arg5 = (coin__UxArray *) 0 ; - GoSlice *argp3 ; - GoUint32 result; - - (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); - (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); - argp3 = (GoSlice *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg3 = *argp3; - arg4 = (coin__UxArray *)jarg4; - arg5 = (coin__UxArray *)jarg5; - result = (GoUint32)SKY_certutil_NewTLSCertPair(arg1,arg2,arg3,arg4,arg5); + arg2 = (WebRpcClient__Handle *)jarg2; + result = (GoUint32)SKY_cli_RPCClientFromContext(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_VerifyTransactionFee(void * jarg1, unsigned long long jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_ConfigFromContext(void * jarg1, void * jarg2) { unsigned int jresult ; - Transaction__Handle arg1 ; - GoUint64 arg2 ; - Transaction__Handle *argp1 ; + Context__Handle arg1 ; + Config__Handle *arg2 = (Config__Handle *) 0 ; + Context__Handle *argp1 ; GoUint32 result; - argp1 = (Transaction__Handle *)jarg1; + argp1 = (Context__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Context__Handle", 0); return 0; } arg1 = *argp1; - arg2 = (GoUint64)jarg2; - result = (GoUint32)SKY_fee_VerifyTransactionFee(arg1,arg2); + arg2 = (Config__Handle *)jarg2; + result = (GoUint32)SKY_cli_ConfigFromContext(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_VerifyTransactionFeeForHours(unsigned long long jarg1, unsigned long long jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_PasswordFromBytes_Password(GoSlice_ * jarg1, GoSlice_ * jarg2) { unsigned int jresult ; - GoUint64 arg1 ; - GoUint64 arg2 ; - GoUint32 result; - - arg1 = (GoUint64)jarg1; - arg2 = (GoUint64)jarg2; - result = (GoUint32)SKY_fee_VerifyTransactionFeeForHours(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_RequiredFee(unsigned long long jarg1, void * jarg2) { - unsigned int jresult ; - GoUint64 arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint32 result; - - arg1 = (GoUint64)jarg1; - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_fee_RequiredFee(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_RemainingHours(unsigned long long jarg1, void * jarg2) { - unsigned int jresult ; - GoUint64 arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint32 result; - - arg1 = (GoUint64)jarg1; - arg2 = (GoUint64 *)jarg2; - result = (GoUint32)SKY_fee_RemainingHours(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_TransactionFee__SWIG_1(void * jarg1, unsigned long long jarg2, GoSlice_ * jarg3, void * jarg4) { - unsigned int jresult ; - Transaction__Handle arg1 ; - GoUint64 arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoUint64 *arg4 = (GoUint64 *) 0 ; - Transaction__Handle *argp1 ; - GoUint32 result; - - argp1 = (Transaction__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Transaction__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoUint64)jarg2; - arg3 = (coin__UxArray *)jarg3; - arg4 = (GoUint64 *)jarg4; - result = (GoUint32)SKY_fee_TransactionFee(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_LoadConfig(void * jarg1) { - unsigned int jresult ; - Config__Handle *arg1 = (Config__Handle *) 0 ; - GoUint32 result; - - arg1 = (Config__Handle *)jarg1; - result = (GoUint32)SKY_cli_LoadConfig(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_FullWalletPath(void * jarg1, GoString* jarg2) { - unsigned int jresult ; - Config__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - Config__Handle *argp1 ; - GoUint32 result; - - argp1 = (Config__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Config__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cli_Config_FullWalletPath(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_Config_FullDBPath(void * jarg1, GoString* jarg2) { - unsigned int jresult ; - Config__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - Config__Handle *argp1 ; - GoUint32 result; - - argp1 = (Config__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Config__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_cli_Config_FullDBPath(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_NewApp(void * jarg1, void * jarg2) { - unsigned int jresult ; - Config__Handle arg1 ; - App__Handle *arg2 = (App__Handle *) 0 ; - Config__Handle *argp1 ; - GoUint32 result; - - argp1 = (Config__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Config__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (App__Handle *)jarg2; - result = (GoUint32)SKY_cli_NewApp(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_RPCClientFromContext(void * jarg1, void * jarg2) { - unsigned int jresult ; - Context__Handle arg1 ; - WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; - Context__Handle *argp1 ; - GoUint32 result; - - argp1 = (Context__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Context__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (WebRpcClient__Handle *)jarg2; - result = (GoUint32)SKY_cli_RPCClientFromContext(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_ConfigFromContext(void * jarg1, void * jarg2) { - unsigned int jresult ; - Context__Handle arg1 ; - Config__Handle *arg2 = (Config__Handle *) 0 ; - Context__Handle *argp1 ; - GoUint32 result; - - argp1 = (Context__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Context__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (Config__Handle *)jarg2; - result = (GoUint32)SKY_cli_ConfigFromContext(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_PasswordFromBytes_Password(GoSlice_ * jarg1, GoSlice_ * jarg2) { - unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoUint32 result; arg1 = (coin__UxArray *)jarg1; @@ -13805,761 +12367,437 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_PasswordFromBytes_Pas } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_PasswordFromTerm_Password(GoSlice_ * jarg1) { - unsigned int jresult ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoUint32 result; - - arg1 = (coin__UxArray *)jarg1; - result = (GoUint32)SKY_cli_PasswordFromTerm_Password(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromWallet(void * jarg1, char* jarg2, char* jarg3, void * jarg4, void * jarg5, void * jarg6) { - unsigned int jresult ; - WebRpcClient__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - GoSlice arg4 ; - PasswordReader__Handle arg5 ; - Transaction__Handle *arg6 = (Transaction__Handle *) 0 ; - WebRpcClient__Handle *argp1 ; - GoSlice *argp4 ; - PasswordReader__Handle *argp5 ; - GoUint32 result; - - argp1 = (WebRpcClient__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); - return 0; - } - arg1 = *argp1; - (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); - (&arg3)->p=jarg3;(&arg3)->n=strlen(jarg3); - argp4 = (GoSlice *)jarg4; - if (!argp4) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg4 = *argp4; - argp5 = (PasswordReader__Handle *)jarg5; - if (!argp5) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null PasswordReader__Handle", 0); - return 0; - } - arg5 = *argp5; - arg6 = (Transaction__Handle *)jarg6; - result = (GoUint32)SKY_cli_CreateRawTxFromWallet(arg1,arg2,arg3,arg4,arg5,arg6); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromAddress(void * jarg1, char* jarg2, char* jarg3, char* jarg4, void * jarg5, void * jarg6, void * jarg7) { - unsigned int jresult ; - WebRpcClient__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - GoString arg4 ; - GoSlice arg5 ; - PasswordReader__Handle arg6 ; - Transaction__Handle *arg7 = (Transaction__Handle *) 0 ; - WebRpcClient__Handle *argp1 ; - GoSlice *argp5 ; - PasswordReader__Handle *argp6 ; - GoUint32 result; - - argp1 = (WebRpcClient__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); - return 0; - } - arg1 = *argp1; - (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); - (&arg3)->p=jarg3;(&arg3)->n=strlen(jarg3); - (&arg4)->p=jarg4;(&arg4)->n=strlen(jarg4); - argp5 = (GoSlice *)jarg5; - if (!argp5) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg5 = *argp5; - argp6 = (PasswordReader__Handle *)jarg6; - if (!argp6) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null PasswordReader__Handle", 0); - return 0; - } - arg6 = *argp6; - arg7 = (Transaction__Handle *)jarg7; - result = (GoUint32)SKY_cli_CreateRawTxFromAddress(arg1,arg2,arg3,arg4,arg5,arg6,arg7); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTx(void * jarg1, void * jarg2, void * jarg3, char* jarg4, void * jarg5, void * jarg6, void * jarg7) { - unsigned int jresult ; - WebRpcClient__Handle arg1 ; - Wallet__Handle arg2 ; - GoSlice arg3 ; - GoString arg4 ; - GoSlice arg5 ; - GoSlice arg6 ; - Transaction__Handle *arg7 = (Transaction__Handle *) 0 ; - WebRpcClient__Handle *argp1 ; - Wallet__Handle *argp2 ; - GoSlice *argp3 ; - GoSlice *argp5 ; - GoSlice *argp6 ; - GoUint32 result; - - argp1 = (WebRpcClient__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); - return 0; - } - arg1 = *argp1; - argp2 = (Wallet__Handle *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoSlice *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg3 = *argp3; - (&arg4)->p=jarg4;(&arg4)->n=strlen(jarg4); - argp5 = (GoSlice *)jarg5; - if (!argp5) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg5 = *argp5; - argp6 = (GoSlice *)jarg6; - if (!argp6) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg6 = *argp6; - arg7 = (Transaction__Handle *)jarg7; - result = (GoUint32)SKY_cli_CreateRawTx(arg1,arg2,arg3,arg4,arg5,arg6,arg7); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_NewTransaction(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { - unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - GoSlice arg3 ; - Transaction__Handle *arg4 = (Transaction__Handle *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; - GoSlice *argp3 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - argp3 = (GoSlice *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg3 = *argp3; - arg4 = (Transaction__Handle *)jarg4; - result = (GoUint32)SKY_cli_NewTransaction(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_InitDataDir(char* jarg1, GoString* jarg2) { - unsigned int jresult ; - GoString arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_file_InitDataDir(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_UserHome(GoString* jarg1) { - unsigned int jresult ; - GoString_ *arg1 = (GoString_ *) 0 ; - GoUint32 result; - - arg1 = (GoString_ *)jarg1; - result = (GoUint32)SKY_file_UserHome(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_ResolveResourceDirectory(char* jarg1, GoString* jarg2) { - unsigned int jresult ; - GoString arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_file_ResolveResourceDirectory(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_DetermineResourcePath(char* jarg1, char* jarg2, char* jarg3, GoString* jarg4) { - unsigned int jresult ; - GoString arg1 ; - GoString arg2 ; - GoString arg3 ; - GoString_ *arg4 = (GoString_ *) 0 ; - GoUint32 result; - - (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); - (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); - (&arg3)->p=jarg3;(&arg3)->n=strlen(jarg3); - arg4 = (GoString_ *)jarg4; - result = (GoUint32)SKY_file_DetermineResourcePath(arg1,arg2,arg3,arg4); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DecodeBase58BitcoinAddress(char* jarg1, void * jarg2) { - unsigned int jresult ; - GoString arg1 ; - cipher__BitcoinAddress *arg2 = (cipher__BitcoinAddress *) 0 ; - GoUint32 result; - - (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); - arg2 = (cipher__BitcoinAddress *)jarg2; - result = (GoUint32)SKY_cipher_DecodeBase58BitcoinAddress(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddressFromPubKey(cipher__PubKey* jarg1, void * jarg2) { - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__BitcoinAddress *arg2 = (cipher__BitcoinAddress *) 0 ; - - arg1 = (cipher__PubKey *)jarg1; - arg2 = (cipher__BitcoinAddress *)jarg2; - SKY_cipher_BitcoinAddressFromPubKey((GoUint8_ (*)[33])arg1,arg2); -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddressFromSecKey(cipher_SecKey* jarg1, void * jarg2) { - unsigned int jresult ; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - cipher__BitcoinAddress *arg2 = (cipher__BitcoinAddress *) 0 ; - GoUint32 result; - - arg1 = (cipher__SecKey *)jarg1; - arg2 = (cipher__BitcoinAddress *)jarg2; - result = (GoUint32)SKY_cipher_BitcoinAddressFromSecKey((GoUint8_ (*)[32])arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinWalletImportFormatFromSeckey(cipher_SecKey* jarg1, GoString* jarg2) { - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - - arg1 = (cipher__SecKey *)jarg1; - arg2 = (GoString_ *)jarg2; - SKY_cipher_BitcoinWalletImportFormatFromSeckey((GoUint8_ (*)[32])arg1,arg2); -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddressFromBytes(void * jarg1, void * jarg2) { - unsigned int jresult ; - GoSlice arg1 ; - cipher__BitcoinAddress *arg2 = (cipher__BitcoinAddress *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg1 = *argp1; - arg2 = (cipher__BitcoinAddress *)jarg2; - result = (GoUint32)SKY_cipher_BitcoinAddressFromBytes(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKeyFromBitcoinWalletImportFormat(char* jarg1, cipher_SecKey* jarg2) { - unsigned int jresult ; - GoString arg1 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - GoUint32 result; - - (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); - arg2 = (cipher__SecKey *)jarg2; - result = (GoUint32)SKY_cipher_SecKeyFromBitcoinWalletImportFormat(arg1,(GoUint8_ (*)[32])arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned char SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddress_Null(void * jarg1) { - unsigned char jresult ; - cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; - GoUint8 result; - - arg1 = (cipher__BitcoinAddress *)jarg1; - result = (GoUint8)SKY_cipher_BitcoinAddress_Null(arg1); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddress_Bytes(void * jarg1, GoSlice_ * jarg2) { - cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - - arg1 = (cipher__BitcoinAddress *)jarg1; - arg2 = (coin__UxArray *)jarg2; - SKY_cipher_BitcoinAddress_Bytes(arg1,arg2); -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddress_Verify(void * jarg1, cipher__PubKey* jarg2) { - unsigned int jresult ; - cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; - GoUint32 result; - - arg1 = (cipher__BitcoinAddress *)jarg1; - arg2 = (cipher__PubKey *)jarg2; - result = (GoUint32)SKY_cipher_BitcoinAddress_Verify(arg1,(GoUint8_ (*)[33])arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddress_String(void * jarg1, GoString* jarg2) { - cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - - arg1 = (cipher__BitcoinAddress *)jarg1; - arg2 = (GoString_ *)jarg2; - SKY_cipher_BitcoinAddress_String(arg1,arg2); -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddress_Checksum(void * jarg1, void * jarg2) { - cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; - cipher__Checksum *arg2 = (cipher__Checksum *) 0 ; - - arg1 = (cipher__BitcoinAddress *)jarg1; - arg2 = (cipher__Checksum *)jarg2; - SKY_cipher_BitcoinAddress_Checksum(arg1,(GoUint8_ (*)[4])arg2); -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetWalletOutputsFromFile(void * jarg1, char* jarg2, void * jarg3) { - unsigned int jresult ; - WebRpcClient__Handle arg1 ; - GoString arg2 ; - ReadableUnspentOutputsSummary_Handle *arg3 = (ReadableUnspentOutputsSummary_Handle *) 0 ; - WebRpcClient__Handle *argp1 ; - GoUint32 result; - - argp1 = (WebRpcClient__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); - return 0; - } - arg1 = *argp1; - (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); - arg3 = (ReadableUnspentOutputsSummary_Handle *)jarg3; - result = (GoUint32)SKY_cli_GetWalletOutputsFromFile(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetWalletOutputs(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - WebRpcClient__Handle arg1 ; - Wallet__Handle *arg2 = (Wallet__Handle *) 0 ; - ReadableUnspentOutputsSummary_Handle *arg3 = (ReadableUnspentOutputsSummary_Handle *) 0 ; - WebRpcClient__Handle *argp1 ; - GoUint32 result; - - argp1 = (WebRpcClient__Handle *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); - return 0; - } - arg1 = *argp1; - arg2 = (Wallet__Handle *)jarg2; - arg3 = (ReadableUnspentOutputsSummary_Handle *)jarg3; - result = (GoUint32)SKY_cli_GetWalletOutputs(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_testutil_MakeAddress(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_PasswordFromTerm_Password(GoSlice_ * jarg1) { unsigned int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; GoUint32 result; - arg1 = (cipher__Address *)jarg1; - result = (GoUint32)SKY_testutil_MakeAddress(arg1); + arg1 = (coin__UxArray *)jarg1; + result = (GoUint32)SKY_cli_PasswordFromTerm_Password(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_String(void * jarg1, GoString* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromWallet(void * jarg1, char* jarg2, char* jarg3, void * jarg4, void * jarg5, void * jarg6) { unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; + WebRpcClient__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + GoSlice arg4 ; + PasswordReader__Handle arg5 ; + Transaction__Handle *arg6 = (Transaction__Handle *) 0 ; + WebRpcClient__Handle *argp1 ; + GoSlice *argp4 ; + PasswordReader__Handle *argp5 ; GoUint32 result; - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (GoString_ *)jarg2; - result = (GoUint32)SKY_secp256k1go_Field_String(arg1,arg2); + argp1 = (WebRpcClient__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + return 0; + } + arg1 = *argp1; + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); + (&arg3)->p=jarg3;(&arg3)->n=strlen(jarg3); + argp4 = (GoSlice *)jarg4; + if (!argp4) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg4 = *argp4; + argp5 = (PasswordReader__Handle *)jarg5; + if (!argp5) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null PasswordReader__Handle", 0); + return 0; + } + arg5 = *argp5; + arg6 = (Transaction__Handle *)jarg6; + result = (GoUint32)SKY_cli_CreateRawTxFromWallet(arg1,arg2,arg3,arg4,arg5,arg6); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Print(void * jarg1, char* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTxFromAddress(void * jarg1, char* jarg2, char* jarg3, char* jarg4, void * jarg5, void * jarg6, void * jarg7) { unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + WebRpcClient__Handle arg1 ; GoString arg2 ; + GoString arg3 ; + GoString arg4 ; + GoSlice arg5 ; + PasswordReader__Handle arg6 ; + Transaction__Handle *arg7 = (Transaction__Handle *) 0 ; + WebRpcClient__Handle *argp1 ; + GoSlice *argp5 ; + PasswordReader__Handle *argp6 ; GoUint32 result; - arg1 = (secp256k1go__Field *)jarg1; + argp1 = (WebRpcClient__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + return 0; + } + arg1 = *argp1; (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); - result = (GoUint32)SKY_secp256k1go_Field_Print(arg1,arg2); + (&arg3)->p=jarg3;(&arg3)->n=strlen(jarg3); + (&arg4)->p=jarg4;(&arg4)->n=strlen(jarg4); + argp5 = (GoSlice *)jarg5; + if (!argp5) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg5 = *argp5; + argp6 = (PasswordReader__Handle *)jarg6; + if (!argp6) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null PasswordReader__Handle", 0); + return 0; + } + arg6 = *argp6; + arg7 = (Transaction__Handle *)jarg7; + result = (GoUint32)SKY_cli_CreateRawTxFromAddress(arg1,arg2,arg3,arg4,arg5,arg6,arg7); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetB32(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_CreateRawTx(void * jarg1, void * jarg2, void * jarg3, char* jarg4, void * jarg5, void * jarg6, void * jarg7) { unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoSlice arg2 ; - GoSlice *argp2 ; + WebRpcClient__Handle arg1 ; + Wallet__Handle arg2 ; + GoSlice arg3 ; + GoString arg4 ; + GoSlice arg5 ; + GoSlice arg6 ; + Transaction__Handle *arg7 = (Transaction__Handle *) 0 ; + WebRpcClient__Handle *argp1 ; + Wallet__Handle *argp2 ; + GoSlice *argp3 ; + GoSlice *argp5 ; + GoSlice *argp6 ; GoUint32 result; - arg1 = (secp256k1go__Field *)jarg1; - argp2 = (GoSlice *)jarg2; + argp1 = (WebRpcClient__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + return 0; + } + arg1 = *argp1; + argp2 = (Wallet__Handle *)jarg2; if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Wallet__Handle", 0); return 0; } arg2 = *argp2; - result = (GoUint32)SKY_secp256k1go_Field_SetB32(arg1,arg2); + argp3 = (GoSlice *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg3 = *argp3; + (&arg4)->p=jarg4;(&arg4)->n=strlen(jarg4); + argp5 = (GoSlice *)jarg5; + if (!argp5) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg5 = *argp5; + argp6 = (GoSlice *)jarg6; + if (!argp6) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg6 = *argp6; + arg7 = (Transaction__Handle *)jarg7; + result = (GoUint32)SKY_cli_CreateRawTx(arg1,arg2,arg3,arg4,arg5,arg6,arg7); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetBytes(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_NewTransaction(void * jarg1, void * jarg2, void * jarg3, void * jarg4) { unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoSlice arg1 ; GoSlice arg2 ; + GoSlice arg3 ; + Transaction__Handle *arg4 = (Transaction__Handle *) 0 ; + GoSlice *argp1 ; GoSlice *argp2 ; + GoSlice *argp3 ; GoUint32 result; - arg1 = (secp256k1go__Field *)jarg1; + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; argp2 = (GoSlice *)jarg2; if (!argp2) { SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); return 0; } arg2 = *argp2; - result = (GoUint32)SKY_secp256k1go_Field_SetBytes(arg1,arg2); + argp3 = (GoSlice *)jarg3; + if (!argp3) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg3 = *argp3; + arg4 = (Transaction__Handle *)jarg4; + result = (GoUint32)SKY_cli_NewTransaction(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetHex(void * jarg1, char* jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_InitDataDir(char* jarg1, GoString* jarg2) { unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoString arg2 ; + GoString arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; - arg1 = (secp256k1go__Field *)jarg1; - (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); - result = (GoUint32)SKY_secp256k1go_Field_SetHex(arg1,arg2); + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_file_InitDataDir(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_IsOdd(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_UserHome(GoString* jarg1) { unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; + GoString_ *arg1 = (GoString_ *) 0 ; GoUint32 result; - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_secp256k1go_Field_IsOdd(arg1,arg2); + arg1 = (GoString_ *)jarg1; + result = (GoUint32)SKY_file_UserHome(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_IsZero(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_ResolveResourceDirectory(char* jarg1, GoString* jarg2) { unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; + GoString arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (GoUint8 *)jarg2; - result = (GoUint32)SKY_secp256k1go_Field_IsZero(arg1,arg2); + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); + arg2 = (GoString_ *)jarg2; + result = (GoUint32)SKY_file_ResolveResourceDirectory(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetInt(void * jarg1, unsigned int jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_file_DetermineResourcePath(char* jarg1, char* jarg2, char* jarg3, GoString* jarg4) { unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoUint32 arg2 ; + GoString arg1 ; + GoString arg2 ; + GoString arg3 ; + GoString_ *arg4 = (GoString_ *) 0 ; GoUint32 result; - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (GoUint32)jarg2; - result = (GoUint32)SKY_secp256k1go_Field_SetInt(arg1,arg2); + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); + (&arg3)->p=jarg3;(&arg3)->n=strlen(jarg3); + arg4 = (GoString_ *)jarg4; + result = (GoUint32)SKY_file_DetermineResourcePath(arg1,arg2,arg3,arg4); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Normalize(void * jarg1) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_DecodeBase58BitcoinAddress(char* jarg1, void * jarg2) { unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; + GoString arg1 ; + cipher__BitcoinAddress *arg2 = (cipher__BitcoinAddress *) 0 ; GoUint32 result; - arg1 = (secp256k1go__Field *)jarg1; - result = (GoUint32)SKY_secp256k1go_Field_Normalize(arg1); + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); + arg2 = (cipher__BitcoinAddress *)jarg2; + result = (GoUint32)SKY_cipher_DecodeBase58BitcoinAddress(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_GetB32(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoSlice arg2 ; - GoSlice *argp2 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddressFromPubKey(cipher__PubKey* jarg1, void * jarg2) { + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__BitcoinAddress *arg2 = (cipher__BitcoinAddress *) 0 ; - arg1 = (secp256k1go__Field *)jarg1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_secp256k1go_Field_GetB32(arg1,arg2); - jresult = result; - return jresult; + arg1 = (cipher__PubKey *)jarg1; + arg2 = (cipher__BitcoinAddress *)jarg2; + SKY_cipher_BitcoinAddressFromPubKey((GoUint8_ (*)[33])arg1,arg2); } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Equals(void * jarg1, void * jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddressFromSecKey(cipher_SecKey* jarg1, void * jarg2) { unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - GoUint8 *arg3 = (GoUint8 *) 0 ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + cipher__BitcoinAddress *arg2 = (cipher__BitcoinAddress *) 0 ; GoUint32 result; - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - arg3 = (GoUint8 *)jarg3; - result = (GoUint32)SKY_secp256k1go_Field_Equals(arg1,arg2,arg3); + arg1 = (cipher__SecKey *)jarg1; + arg2 = (cipher__BitcoinAddress *)jarg2; + result = (GoUint32)SKY_cipher_BitcoinAddressFromSecKey((GoUint8_ (*)[32])arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_SetAdd(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinWalletImportFormatFromSeckey(cipher_SecKey* jarg1, GoString* jarg2) { + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + + arg1 = (cipher__SecKey *)jarg1; + arg2 = (GoString_ *)jarg2; + SKY_cipher_BitcoinWalletImportFormatFromSeckey((GoUint8_ (*)[32])arg1,arg2); +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddressFromBytes(void * jarg1, void * jarg2) { unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + GoSlice arg1 ; + cipher__BitcoinAddress *arg2 = (cipher__BitcoinAddress *) 0 ; + GoSlice *argp1 ; GoUint32 result; - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - result = (GoUint32)SKY_secp256k1go_Field_SetAdd(arg1,arg2); + argp1 = (GoSlice *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + return 0; + } + arg1 = *argp1; + arg2 = (cipher__BitcoinAddress *)jarg2; + result = (GoUint32)SKY_cipher_BitcoinAddressFromBytes(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_MulInt(void * jarg1, unsigned int jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_SecKeyFromBitcoinWalletImportFormat(char* jarg1, cipher_SecKey* jarg2) { unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - GoUint32 arg2 ; + GoString arg1 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; GoUint32 result; - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (GoUint32)jarg2; - result = (GoUint32)SKY_secp256k1go_Field_MulInt(arg1,arg2); + (&arg1)->p=jarg1;(&arg1)->n=strlen(jarg1); + arg2 = (cipher__SecKey *)jarg2; + result = (GoUint32)SKY_cipher_SecKeyFromBitcoinWalletImportFormat(arg1,(GoUint8_ (*)[32])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Negate(void * jarg1, void * jarg2, unsigned int jarg3) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - GoUint32 arg3 ; - GoUint32 result; +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddress_Null(void * jarg1) { + unsigned char jresult ; + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + GoUint8 result; - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - arg3 = (GoUint32)jarg3; - result = (GoUint32)SKY_secp256k1go_Field_Negate(arg1,arg2,arg3); + arg1 = (cipher__BitcoinAddress *)jarg1; + result = (GoUint8)SKY_cipher_BitcoinAddress_Null(arg1); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Inv(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddress_Bytes(void * jarg1, GoSlice_ * jarg2) { + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - result = (GoUint32)SKY_secp256k1go_Field_Inv(arg1,arg2); - jresult = result; - return jresult; + arg1 = (cipher__BitcoinAddress *)jarg1; + arg2 = (coin__UxArray *)jarg2; + SKY_cipher_BitcoinAddress_Bytes(arg1,arg2); } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Sqrt(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddress_Verify(void * jarg1, cipher__PubKey* jarg2) { unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; GoUint32 result; - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - result = (GoUint32)SKY_secp256k1go_Field_Sqrt(arg1,arg2); + arg1 = (cipher__BitcoinAddress *)jarg1; + arg2 = (cipher__PubKey *)jarg2; + result = (GoUint32)SKY_cipher_BitcoinAddress_Verify(arg1,(GoUint8_ (*)[33])arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_InvVar(void * jarg1, void * jarg2) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddress_String(void * jarg1, GoString* jarg2) { + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - result = (GoUint32)SKY_secp256k1go_Field_InvVar(arg1,arg2); - jresult = result; - return jresult; + arg1 = (cipher__BitcoinAddress *)jarg1; + arg2 = (GoString_ *)jarg2; + SKY_cipher_BitcoinAddress_String(arg1,arg2); } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Mul(void * jarg1, void * jarg2, void * jarg3) { - unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg3 = (secp256k1go__Field *) 0 ; - GoUint32 result; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_cipher_BitcoinAddress_Checksum(void * jarg1, void * jarg2) { + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + cipher__Checksum *arg2 = (cipher__Checksum *) 0 ; - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - arg3 = (secp256k1go__Field *)jarg3; - result = (GoUint32)SKY_secp256k1go_Field_Mul(arg1,arg2,arg3); - jresult = result; - return jresult; + arg1 = (cipher__BitcoinAddress *)jarg1; + arg2 = (cipher__Checksum *)jarg2; + SKY_cipher_BitcoinAddress_Checksum(arg1,(GoUint8_ (*)[4])arg2); } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_secp256k1go_Field_Sqr(void * jarg1, void * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetWalletOutputsFromFile(void * jarg1, char* jarg2, void * jarg3) { unsigned int jresult ; - secp256k1go__Field *arg1 = (secp256k1go__Field *) 0 ; - secp256k1go__Field *arg2 = (secp256k1go__Field *) 0 ; + WebRpcClient__Handle arg1 ; + GoString arg2 ; + ReadableUnspentOutputsSummary_Handle *arg3 = (ReadableUnspentOutputsSummary_Handle *) 0 ; + WebRpcClient__Handle *argp1 ; GoUint32 result; - arg1 = (secp256k1go__Field *)jarg1; - arg2 = (secp256k1go__Field *)jarg2; - result = (GoUint32)SKY_secp256k1go_Field_Sqr(arg1,arg2); + argp1 = (WebRpcClient__Handle *)jarg1; + if (!argp1) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); + return 0; + } + arg1 = *argp1; + (&arg2)->p=jarg2;(&arg2)->n=strlen(jarg2); + arg3 = (ReadableUnspentOutputsSummary_Handle *)jarg3; + result = (GoUint32)SKY_cli_GetWalletOutputsFromFile(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_scrypt_Key(void * jarg1, void * jarg2, long long jarg3, long long jarg4, long long jarg5, long long jarg6, GoSlice_ * jarg7) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GetWalletOutputs(void * jarg1, void * jarg2, void * jarg3) { unsigned int jresult ; - GoSlice arg1 ; - GoSlice arg2 ; - GoInt arg3 ; - GoInt arg4 ; - GoInt arg5 ; - GoInt arg6 ; - coin__UxArray *arg7 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; + WebRpcClient__Handle arg1 ; + Wallet__Handle *arg2 = (Wallet__Handle *) 0 ; + ReadableUnspentOutputsSummary_Handle *arg3 = (ReadableUnspentOutputsSummary_Handle *) 0 ; + WebRpcClient__Handle *argp1 ; GoUint32 result; - argp1 = (GoSlice *)jarg1; + argp1 = (WebRpcClient__Handle *)jarg1; if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null WebRpcClient__Handle", 0); return 0; } arg1 = *argp1; - argp2 = (GoSlice *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return 0; - } - arg2 = *argp2; - arg3 = (GoInt)jarg3; - arg4 = (GoInt)jarg4; - arg5 = (GoInt)jarg5; - arg6 = (GoInt)jarg6; - arg7 = (coin__UxArray *)jarg7; - result = (GoUint32)SKY_scrypt_Key(arg1,arg2,arg3,arg4,arg5,arg6,arg7); + arg2 = (Wallet__Handle *)jarg2; + arg3 = (ReadableUnspentOutputsSummary_Handle *)jarg3; + result = (GoUint32)SKY_cli_GetWalletOutputs(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_testutil_MakeAddress(void * jarg1) { + unsigned int jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoUint32 result; + + arg1 = (cipher__Address *)jarg1; + result = (GoUint32)SKY_testutil_MakeAddress(arg1); jresult = result; return jresult; } @@ -15817,6 +14055,88 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_api__RichlistParams(void * jar } +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_api__NetworkConnectionsFilter_States(void * jarg1, void * jarg2) { + api__NetworkConnectionsFilter *arg1 = (api__NetworkConnectionsFilter *) 0 ; + GoString_ arg2 ; + GoString_ *argp2 ; + + arg1 = (api__NetworkConnectionsFilter *)jarg1; + argp2 = (GoString_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->States = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_api__NetworkConnectionsFilter_States(void * jarg1) { + void * jresult ; + api__NetworkConnectionsFilter *arg1 = (api__NetworkConnectionsFilter *) 0 ; + GoString_ result; + + arg1 = (api__NetworkConnectionsFilter *)jarg1; + result = ((arg1)->States); + { + GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); + memmove(resultptr, &result, sizeof(GoString_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_api__NetworkConnectionsFilter_Direction(void * jarg1, void * jarg2) { + api__NetworkConnectionsFilter *arg1 = (api__NetworkConnectionsFilter *) 0 ; + GoString_ arg2 ; + GoString_ *argp2 ; + + arg1 = (api__NetworkConnectionsFilter *)jarg1; + argp2 = (GoString_ *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoString_", 0); + return ; + } + arg2 = *argp2; + if (arg1) (arg1)->Direction = arg2; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_api__NetworkConnectionsFilter_Direction(void * jarg1) { + void * jresult ; + api__NetworkConnectionsFilter *arg1 = (api__NetworkConnectionsFilter *) 0 ; + GoString_ result; + + arg1 = (api__NetworkConnectionsFilter *)jarg1; + result = ((arg1)->Direction); + { + GoString_ * resultptr = (GoString_ *) malloc(sizeof(GoString_)); + memmove(resultptr, &result, sizeof(GoString_)); + jresult = resultptr; + } + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_api__NetworkConnectionsFilter() { + void * jresult ; + api__NetworkConnectionsFilter *result = 0 ; + + result = (api__NetworkConnectionsFilter *)calloc(1, sizeof(api__NetworkConnectionsFilter)); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_api__NetworkConnectionsFilter(void * jarg1) { + api__NetworkConnectionsFilter *arg1 = (api__NetworkConnectionsFilter *) 0 ; + + arg1 = (api__NetworkConnectionsFilter *)jarg1; + free((char *) arg1); +} + + SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher__Address_isEqual(void * jarg1, void * jarg2) { int jresult ; cipher__Address *arg1 = (cipher__Address *) 0 ; @@ -16445,22 +14765,6 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__Transaction_isEqual(void * jarg1 } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Transaction_getInnerHash(void * jarg1) { - void * jresult ; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - cipher_SHA256 result; - - arg1 = (coin__Transaction *)jarg1; - result = coin__Transaction_getInnerHash(arg1); - { - cipher_SHA256 * resultptr = (cipher_SHA256 *) malloc(sizeof(cipher_SHA256)); - memmove(resultptr, &result, sizeof(cipher_SHA256)); - jresult = resultptr; - } - return jresult; -} - - SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__Transaction_setInnerHash(void * jarg1, void * jarg2) { int jresult ; coin__Transaction *arg1 = (coin__Transaction *) 0 ; @@ -16481,6 +14785,22 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__Transaction_setInnerHash(void * } +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Transaction_GetInnerHash(void * jarg1) { + void * jresult ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + cipher_SHA256 result; + + arg1 = (coin__Transaction *)jarg1; + result = coin__Transaction_GetInnerHash(arg1); + { + cipher_SHA256 * resultptr = (cipher_SHA256 *) malloc(sizeof(cipher_SHA256)); + memmove(resultptr, &result, sizeof(cipher_SHA256)); + jresult = resultptr; + } + return jresult; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__Transaction_Length(void * jarg1, int jarg2) { coin__Transaction *arg1 = (coin__Transaction *) 0 ; GoInt32_ arg2 ; @@ -18363,7 +16683,7 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidSecKey() { } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidSigForPubKey() { +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidSigPubKeyRecovery() { int jresult ; int result; @@ -18553,7 +16873,7 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidSig() { } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrSHA256orMissingPassword() { +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrMissingPassword() { int jresult ; int result; @@ -18563,7 +16883,7 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrSHA256orMissingPassword() { } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrLenghtDataOverflowMaxUint32() { +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDataTooLarge() { int jresult ; int result; @@ -18583,7 +16903,7 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidChecksumLength() { } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidDataChecksumNotMatched() { +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidChecksum() { int jresult ; int result; @@ -18603,7 +16923,7 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidNonceLength() { } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidBlockSizeMultiple32Bytes() { +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidBlockSize() { int jresult ; int result; @@ -18613,7 +16933,7 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidBlockSizeMultiple32B } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrReadDataHashFailedLength() { +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrReadDataHashFailed() { int jresult ; int result; @@ -18623,7 +16943,7 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrReadDataHashFailedLength() } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrSHA256orInvalidPassword() { +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidPassword() { int jresult ; int result; @@ -18833,16 +17153,6 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrBlacklistedAddress() { } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectReadFailed() { - int jresult ; - int result; - - result = (int)(0x06000006); - jresult = result; - return jresult; -} - - SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectWriteFailed() { int jresult ; int result; @@ -18893,16 +17203,6 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectUnknownMessage() } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectUnexpectedError() { - int jresult ; - int result; - - result = (int)(0x0600000C); - jresult = result; - return jresult; -} - - SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrConnectionPoolClosed() { int jresult ; int result; @@ -18943,7 +17243,7 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrMaxDefaultConnectionsReache } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectInvalidVersion() { +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectVersionNotSupported() { int jresult ; int result; @@ -18963,16 +17263,6 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectIntroductionTimeo } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectVersionSendFailed() { - int jresult ; - int result; - - result = (int)(0x06000013); - jresult = result; - return jresult; -} - - SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectIsBlacklisted() { int jresult ; int result; @@ -19033,16 +17323,6 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectIPLimitReached() } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectOtherError() { - int jresult ; - int result; - - result = (int)(0x0600001A); - jresult = result; - return jresult; -} - - SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrDisconnectMaxDefaultConnectionReached() { int jresult ; int result; @@ -19333,7 +17613,7 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrWalletNotEncrypted() { } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrMissingPassword() { +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrWalletMissingPassword() { int jresult ; int result; @@ -19353,7 +17633,7 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrMissingEncrypt() { } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidPassword() { +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrWalletInvalidPassword() { int jresult ; int result; diff --git a/LibskycoinNetTest/LibskycoinNetTest.csproj b/LibskycoinNetTest/LibskycoinNetTest.csproj index 3a396152..e342ae66 100644 --- a/LibskycoinNetTest/LibskycoinNetTest.csproj +++ b/LibskycoinNetTest/LibskycoinNetTest.csproj @@ -42,9 +42,6 @@ - - - diff --git a/LibskycoinNetTest/check_cipher_crypto.cs b/LibskycoinNetTest/check_cipher_crypto.cs index 566be5c5..9be55f48 100644 --- a/LibskycoinNetTest/check_cipher_crypto.cs +++ b/LibskycoinNetTest/check_cipher_crypto.cs @@ -254,93 +254,6 @@ public void TestNewSig () { Assert.AreEqual (err, skycoin.skycoin.SKY_OK); } - [Test] - public void TestChkSig () { - var s = new cipher_SecKey (); - var p = new cipher_PubKey (); - var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); - err = skycoin.skycoin.SKY_cipher_PubKey_Verify (p); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_SecKey_Verify (s); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var a = new cipher__Address (); - err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, a); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_Address_Verify (a, p); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var b = new GoSlice (); - err = skycoin.skycoin.SKY_cipher_RandByte (256, b); - var h = new cipher_SHA256 (); - err = skycoin.skycoin.SKY_cipher_SumSHA256 (b, h); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var sig = new cipher_Sig (); - err = skycoin.skycoin.SKY_cipher_SignHash (h, s, sig); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_ChkSig (a, h, sig); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - // Empty sig should be invalid - err = skycoin.skycoin.SKY_cipher_ChkSig (a, h, new cipher_Sig ()); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidSigForPubKey); - // Random sigs should not pass - for (int i = 0; i < 100; i++) { - var b1 = new GoSlice (); - skycoin.skycoin.SKY_cipher_RandByte (65, b1); - var sig1 = new cipher_Sig (); - skycoin.skycoin.SKY_cipher_NewSig (b1, sig1); - err = skycoin.skycoin.SKY_cipher_ChkSig (a, h, sig1); - Assert.AreNotEqual (err, skycoin.skycoin.SKY_OK); - } - // Sig for one hash does not work for another hash - var h2 = new cipher_SHA256 (); - var b2 = new skycoin.GoSlice (); - skycoin.skycoin.SKY_cipher_RandByte (256, b2); - skycoin.skycoin.SKY_cipher_SumSHA256 (b2, h2); - var sig2 = new cipher_Sig (); - err = skycoin.skycoin.SKY_cipher_SignHash (h2, s, sig2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_ChkSig (a, h2, sig2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_ChkSig (a, h, sig2); - Assert.AreNotEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_ChkSig (a, h2, sig); - Assert.AreNotEqual (err, skycoin.skycoin.SKY_OK); - - // Different secret keys should not create same sig - var p2 = new cipher_PubKey (); - var s2 = new cipher_SecKey (); - var a2 = new cipher__Address (); - skycoin.skycoin.SKY_cipher_GenerateKeyPair (p2, s2); - err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p2, a2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - h = new cipher_SHA256 (); - sig = new cipher_Sig (); - sig2 = new cipher_Sig (); - skycoin.skycoin.SKY_cipher_SignHash (h, s, sig); - skycoin.skycoin.SKY_cipher_SignHash (h, s2, sig2); - err = skycoin.skycoin.SKY_cipher_ChkSig (a, h, sig); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_ChkSig (a2, h, sig2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (sig.isEqual (sig2), 0); - var b_temp = new GoSlice (); - skycoin.skycoin.SKY_cipher_RandByte (256, b_temp); - h = new cipher_SHA256 (); - skycoin.skycoin.SKY_cipher_SumSHA256 (b_temp, h); - sig = new cipher_Sig (); - sig2 = new cipher_Sig (); - skycoin.skycoin.SKY_cipher_SignHash (h, s, sig); - skycoin.skycoin.SKY_cipher_SignHash (h, s2, sig2); - err = skycoin.skycoin.SKY_cipher_ChkSig (a, h, sig); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_ChkSig (a2, h, sig2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (sig.isEqual (sig2), 0); - // Bad address should be invalid - err = skycoin.skycoin.SKY_cipher_ChkSig (a, h, sig2); - Assert.AreNotEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_ChkSig (a2, h, sig); - Assert.AreNotEqual (err, skycoin.skycoin.SKY_OK); - } [Test] @@ -358,8 +271,6 @@ public void TestSignHash () { var sig = new cipher_Sig (); skycoin.skycoin.SKY_cipher_SignHash (h, s, sig); Assert.AreEqual (sig.isEqual (new cipher_Sig ()), 0); - err = skycoin.skycoin.SKY_cipher_ChkSig (a, h, sig); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); } [Test] @@ -394,38 +305,10 @@ public void TestPubKeyFromSig () { Assert.AreEqual (p2.isEqual (p), 1); p2 = new cipher_PubKey (); err = skycoin.skycoin.SKY_cipher_PubKeyFromSig (new cipher_Sig (), h, p2); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidSigForPubKey); + Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidSigPubKeyRecovery); } - [Test] - public void TestVerifySignature () { - var p = new cipher_PubKey (); - var s = new cipher_SecKey (); - var b = new GoSlice (); - var h = new cipher_SHA256 (); - var h2 = new cipher_SHA256 (); - var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); - err = skycoin.skycoin.SKY_cipher_RandByte (256, b); - err = skycoin.skycoin.SKY_cipher_SumSHA256 (b, h); - b = new GoSlice (); - err = skycoin.skycoin.SKY_cipher_RandByte (256, b); - err = skycoin.skycoin.SKY_cipher_SumSHA256 (b, h2); - var sig = new cipher_Sig (); - err = skycoin.skycoin.SKY_cipher_SignHash (h, s, sig); - err = skycoin.skycoin.SKY_cipher_VerifySignature (p, sig, h); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_VerifySignature (p, new cipher_Sig (), h); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidSigForPubKey); - err = skycoin.skycoin.SKY_cipher_VerifySignature (p, sig, h2); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrPubKeyRecoverMismatch); - var p2 = new cipher_PubKey (); - var s2 = new cipher_SecKey (); - err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p2, s2); - err = skycoin.skycoin.SKY_cipher_VerifySignature (p2, sig, h); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrPubKeyRecoverMismatch); - err = skycoin.skycoin.SKY_cipher_VerifySignature (new cipher_PubKey (), sig, h); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrPubKeyRecoverMismatch); - } + [Test] public void TestGenerateKeyPair () { diff --git a/LibskycoinNetTest/check_cipher_ec.cs b/LibskycoinNetTest/check_cipher_ec.cs deleted file mode 100644 index ffadedee..00000000 --- a/LibskycoinNetTest/check_cipher_ec.cs +++ /dev/null @@ -1,60 +0,0 @@ -using System; -using NUnit.Framework; -using skycoin; -using utils; -namespace LibskycoinNetTest { - [TestFixture ()] - public class check_cipher_ec { - utils.transutils utils = new transutils (); - - [Test] - public void TestECmult () { - var u1 = skycoin.skycoin.new_Number_HandlePtr (); - var u2 = skycoin.skycoin.new_Number_HandlePtr (); - skycoin.skycoin.SKY_secp256k1go_Number_Create (u1); - skycoin.skycoin.SKY_secp256k1go_Number_Create (u2); - var public_kej = new secp256k1go__XYZ (); - var expres = new secp256k1go__XYZ (); - var pr = new secp256k1go__XYZ (); - skycoin.skycoin.SKY_secp256k1go_Field_SetHex (public_kej.X, "0EAEBCD1DF2DF853D66CE0E1B0FDA07F67D1CABEFDE98514AAD795B86A6EA66D"); - skycoin.skycoin.SKY_secp256k1go_Field_SetHex (public_kej.Y, "BEB26B67D7A00E2447BAECCC8A4CEF7CD3CAD67376AC1C5785AEEBB4F6441C16"); - skycoin.skycoin.SKY_secp256k1go_Field_SetHex (public_kej.Z, "0000000000000000000000000000000000000000000000000000000000000001"); - skycoin.skycoin.SKY_secp256k1go_Number_SetHex (u1, "B618EBA71EC03638693405C75FC1C9ABB1A74471BAAF1A3A8B9005821491C4B4"); - skycoin.skycoin.SKY_secp256k1go_Number_SetHex (u2, "8554470195DE4678B06EDE9F9286545B51FF2D9AA756CE35A39011783563EA60"); - skycoin.skycoin.SKY_secp256k1go_Field_SetHex (expres.X, "EB6752420B6BDB40A760AC26ADD7E7BBD080BF1DF6C0B009A0D310E4511BDF49"); - skycoin.skycoin.SKY_secp256k1go_Field_SetHex (expres.Y, "8E8CEB84E1502FC536FFE67967BC44314270A0B38C79865FFED5A85D138DCA6B"); - skycoin.skycoin.SKY_secp256k1go_Field_SetHex (expres.Z, "813925AF112AAB8243F8CCBADE4CC7F63DF387263028DE6E679232A73A7F3C31"); - - Assert.AreEqual (skycoin.skycoin.SKY_secp256k1go_XYZ_ECmult (public_kej, pr, u2, u1), skycoin.skycoin.SKY_OK); - var val = skycoin.skycoin.new_CharPtr (); - Assert.AreEqual (skycoin.skycoin.SKY_secp256k1go_XYZ_Equals (pr, expres, val), skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.CharPtr_value (val), 1); - } - - [Test] - public void TestMultGen () { - var noce = skycoin.skycoin.new_Number_HandlePtr (); - var err = skycoin.skycoin.SKY_secp256k1go_Number_Create (noce); - var x = new secp256k1go__Field (); - var y = new secp256k1go__Field (); - var z = new secp256k1go__Field (); - var pr = new secp256k1go__XYZ (); - skycoin.skycoin.SKY_secp256k1go_Number_SetHex (noce, "9E3CD9AB0F32911BFDE39AD155F527192CE5ED1F51447D63C4F154C118DA598E"); - skycoin.skycoin.SKY_secp256k1go_Field_SetHex (x, "02D1BF36D37ACD68E4DD00DB3A707FD176A37E42F81AEF9386924032D3428FF0"); - skycoin.skycoin.SKY_secp256k1go_Field_SetHex (y, "FD52E285D33EC835230EA69F89D9C38673BD5B995716A4063C893AF02F938454"); - skycoin.skycoin.SKY_secp256k1go_Field_SetHex (z, "4C6ACE7C8C062A1E046F66FD8E3981DC4E8E844ED856B5415C62047129268C1B"); - skycoin.skycoin.SKY_secp256k1go_ECmultGen (pr, noce); - skycoin.skycoin.SKY_secp256k1go_Field_Normalize (pr.X); - skycoin.skycoin.SKY_secp256k1go_Field_Normalize (pr.Y); - skycoin.skycoin.SKY_secp256k1go_Field_Normalize (pr.Z); - var val = skycoin.skycoin.new_CharPtr (); - Assert.AreEqual (skycoin.skycoin.SKY_secp256k1go_Field_Equals (pr.X, x, val), skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.CharPtr_value (val), 1); - Assert.AreEqual (skycoin.skycoin.SKY_secp256k1go_Field_Equals (pr.Y, y, val), skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.CharPtr_value (val), 1); - Assert.AreEqual (skycoin.skycoin.SKY_secp256k1go_Field_Equals (pr.Z, z, val), skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.CharPtr_value (val), 1); - - } - } -} \ No newline at end of file diff --git a/LibskycoinNetTest/check_cipher_field.cs b/LibskycoinNetTest/check_cipher_field.cs deleted file mode 100644 index ab44d927..00000000 --- a/LibskycoinNetTest/check_cipher_field.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using NUnit.Framework; -using skycoin; -using utils; -namespace LibskycoinNetTest { - [TestFixture ()] - public class check_cipher_field { - utils.transutils utils = new transutils (); - [Test] - public void TestFeInv () { - var in_ = new secp256k1go__Field (); - var out_ = new secp256k1go__Field (); - var exp = new secp256k1go__Field (); - - var in_hex = "813925AF112AAB8243F8CCBADE4CC7F63DF387263028DE6E679232A73A7F3C31"; - var exp_hex = "7F586430EA30F914965770F6098E492699C62EE1DF6CAFFA77681C179FDF3117"; - - var err = skycoin.skycoin.SKY_secp256k1go_Field_SetHex (in_, in_hex); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_secp256k1go_Field_SetHex (exp, exp_hex); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_secp256k1go_Field_Inv (in_, out_); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var val = skycoin.skycoin.new_CharPtr (); - err = skycoin.skycoin.SKY_secp256k1go_Field_Equals (out_, exp, val); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.IsTrue (Convert.ToBoolean (skycoin.skycoin.CharPtr_value (val))); - } - } -} \ No newline at end of file diff --git a/LibskycoinNetTest/check_cipher_sig.cs b/LibskycoinNetTest/check_cipher_sig.cs deleted file mode 100644 index f5f02677..00000000 --- a/LibskycoinNetTest/check_cipher_sig.cs +++ /dev/null @@ -1,164 +0,0 @@ -using System; -using NUnit.Framework; -using skycoin; -using utils; -namespace LibskycoinNetTest { - [TestFixture ()] - public class check_cipher_sig { - bool forceLowS = true; - utils.transutils utils = new transutils (); - [Test] - public void TestSigRecover () { - string[][] vs = new string[2][]; - - vs[0] = new string[] { - "6028b9e3a31c9e725fcbd7d5d16736aaaafcc9bf157dfb4be62bcbcf0969d488", - "036d4a36fa235b8f9f815aa6f5457a607f956a71a035bf0970d8578bf218bb5a", - "9cff3da1a4f86caf3683f865232c64992b5ed002af42b321b8d8a48420680487", - "0", - "56dc5df245955302893d8dda0677cc9865d8011bc678c7803a18b5f6faafec08", - "54b5fbdcd8fac6468dac2de88fadce6414f5f3afbb103753e25161bef77705a6", - }; - - vs[1] = new string[] { - "b470e02f834a3aaafa27bd2b49e07269e962a51410f364e9e195c31351a05e50", - "560978aed76de9d5d781f87ed2068832ed545f2b21bf040654a2daff694c8b09", - "9ce428d58e8e4caf619dc6fc7b2c2c28f0561654d1f80f322c038ad5e67ff8a6", - "1", - "15b7e7d00f024bffcd2e47524bb7b7d3a6b251e23a3a43191ed7f0a418d9a578", - "bf29a25e2d1f32c5afb18b41ae60112723278a8af31275965a6ec1d95334e840", - }; - - var xp = new secp256k1go__XY (); - var public_key = new secp256k1go__XY (); - var sig = skycoin.skycoin.new_Signature_HandlePtr (); - var err = skycoin.skycoin.SKY_secp256k1go_Signature_Create (sig); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var msg = skycoin.skycoin.new_Number_HandlePtr (); - err = skycoin.skycoin.SKY_secp256k1go_Number_Create (msg); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - for (int i = 0; i < vs.Length; i++) { - var v = vs[i]; - var r = skycoin.skycoin.new_Number_HandlePtr (); - var s = skycoin.skycoin.new_Number_HandlePtr (); - err = skycoin.skycoin.SKY_secp256k1go_Signature_GetR (sig, r); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - skycoin.skycoin.SKY_secp256k1go_Number_SetHex (r, v[0]); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_secp256k1go_Signature_GetR (sig, s); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - skycoin.skycoin.SKY_secp256k1go_Number_SetHex (s, v[1]); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - skycoin.skycoin.SKY_secp256k1go_Number_SetHex (msg, v[2]); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var rid = Convert.ToInt64 (v[3]); - skycoin.skycoin.SKY_secp256k1go_Field_SetHex (xp.X, v[4]); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - skycoin.skycoin.SKY_secp256k1go_Field_SetHex (xp.Y, v[5]); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var val = skycoin.skycoin.new_CharPtr (); - skycoin.skycoin.SKY_secp256k1go_Signature_Recover (sig, public_key, msg, rid, val); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.IsTrue (skycoin.skycoin.CharPtr_value (val) == 1); - Assert.AreEqual (skycoin.skycoin.SKY_secp256k1go_Field_Equals (xp.X, public_key.X, val), skycoin.skycoin.SKY_OK, i.ToString ()); - Assert.AreEqual (skycoin.skycoin.SKY_secp256k1go_Field_Equals (xp.Y, public_key.Y, val), skycoin.skycoin.SKY_OK, i.ToString ()); - } - } - - [Test] - public void TestSigVerify () { - var key = new secp256k1go__XY (); - var sig = skycoin.skycoin.new_Signature_HandlePtr (); - var err = skycoin.skycoin.SKY_secp256k1go_Signature_Create (sig); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var msg = skycoin.skycoin.new_Number_HandlePtr (); - err = skycoin.skycoin.SKY_secp256k1go_Number_Create (msg); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var arg = "D474CBF2203C1A55A411EEC4404AF2AFB2FE942C434B23EFE46E9F04DA8433CA"; - err = skycoin.skycoin.SKY_secp256k1go_Number_SetHex (msg, arg); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var r = skycoin.skycoin.new_Number_HandlePtr (); - err = skycoin.skycoin.SKY_secp256k1go_Signature_GetR (sig, r); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - arg = "98F9D784BA6C5C77BB7323D044C0FC9F2B27BAA0A5B0718FE88596CC56681980"; - err = skycoin.skycoin.SKY_secp256k1go_Number_SetHex (r, arg); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var s = skycoin.skycoin.new_Number_HandlePtr (); - err = skycoin.skycoin.SKY_secp256k1go_Signature_GetS (sig, s); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - arg = "E3599D551029336A745B9FB01566624D870780F363356CEE1425ED67D1294480"; - err = skycoin.skycoin.SKY_secp256k1go_Number_SetHex (s, arg); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - arg = "7d709f85a331813f9ae6046c56b3a42737abf4eb918b2e7afee285070e968b93"; - err = skycoin.skycoin.SKY_secp256k1go_Field_SetHex (key.X, arg); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - arg = "26150d1a63b342986c373977b00131950cb5fc194643cad6ea36b5157eba4602"; - err = skycoin.skycoin.SKY_secp256k1go_Field_SetHex (key.Y, arg); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var val = skycoin.skycoin.new_CharPtr (); - err = skycoin.skycoin.SKY_secp256k1go_Signature_Verify (sig, key, msg, val); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.IsTrue (Convert.ToBoolean (skycoin.skycoin.CharPtr_value (val))); - - arg = "2c43a883f4edc2b66c67a7a355b9312a565bb3d33bb854af36a06669e2028377"; - err = skycoin.skycoin.SKY_secp256k1go_Number_SetHex (msg, arg); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_secp256k1go_Signature_GetR (sig, r); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - arg = "6b2fa9344462c958d4a674c2a42fbedf7d6159a5276eb658887e2e1b3915329b"; - err = skycoin.skycoin.SKY_secp256k1go_Number_SetHex (r, arg); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_secp256k1go_Signature_GetS (sig, s); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - arg = "eddc6ea7f190c14a0aa74e41519d88d2681314f011d253665f301425caf86b86"; - err = skycoin.skycoin.SKY_secp256k1go_Number_SetHex (s, arg); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - arg = "02a60d70cfba37177d8239d018185d864b2bdd0caf5e175fd4454cc006fd2d75ac"; - var xy = new GoSlice (); - err = skycoin.skycoin.SKY_base58_String2Hex (arg, xy); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_secp256k1go_XY_ParsePubkey (key, xy, val); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_secp256k1go_Signature_Verify (sig, key, msg, val); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.IsTrue (Convert.ToBoolean (skycoin.skycoin.CharPtr_value (val))); - } - - [Test] - public void TestSigSign () { - var sig = skycoin.skycoin.new_Signature_HandlePtr (); - var msg = skycoin.skycoin.new_Number_HandlePtr (); - var sec = skycoin.skycoin.new_Number_HandlePtr (); - var non = skycoin.skycoin.new_Number_HandlePtr (); - var r = skycoin.skycoin.new_Number_HandlePtr (); - var s = skycoin.skycoin.new_Number_HandlePtr (); - var val = skycoin.skycoin.new_CharPtr (); - skycoin.skycoin.SKY_secp256k1go_Signature_Create (sig); - skycoin.skycoin.SKY_secp256k1go_Number_Create (sec); - skycoin.skycoin.SKY_secp256k1go_Number_Create (msg); - skycoin.skycoin.SKY_secp256k1go_Number_Create (non); - skycoin.skycoin.SKY_secp256k1go_Number_SetHex (sec, "73641C99F7719F57D8F4BEB11A303AFCD190243A51CED8782CA6D3DBE014D146"); - skycoin.skycoin.SKY_secp256k1go_Number_SetHex (sec, "D474CBF2203C1A55A411EEC4404AF2AFB2FE942C434B23EFE46E9F04DA8433CA"); - skycoin.skycoin.SKY_secp256k1go_Number_SetHex (sec, "9E3CD9AB0F32911BFDE39AD155F527192CE5ED1F51447D63C4F154C118DA598E"); - var recid = skycoin.skycoin.new_Gointp (); - var res = skycoin.skycoin.new_Gointp (); - var err = skycoin.skycoin.SKY_secp256k1go_Signature_Sign (sig, sec, msg, non, res, recid); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.Gointp_value (res), 1); - Assert.AreEqual (skycoin.skycoin.Gointp_value (recid), 0); - - skycoin.skycoin.SKY_secp256k1go_Number_SetHex (non, "98f9d784ba6c5c77bb7323d044c0fc9f2b27baa0a5b0718fe88596cc56681980"); - skycoin.skycoin.SKY_secp256k1go_Signature_GetR (sig, r); - err = skycoin.skycoin.SKY_secp256k1go_Number_IsEqual (r, non, val); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - // Assert.IsTrue (Convert.ToBoolean (skycoin.skycoin.CharPtr_value (val))); - err = skycoin.skycoin.SKY_secp256k1go_Number_SetHex (non, "1ca662aaefd6cc958ba4604fea999db133a75bf34c13334dabac7124ff0cfcc1"); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - skycoin.skycoin.SKY_secp256k1go_Signature_GetS (sig, s); - err = skycoin.skycoin.SKY_secp256k1go_Number_IsEqual (s, non, val); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - // Assert.IsTrue (Convert.ToBoolean (skycoin.skycoin.CharPtr_value (val))); - - } - } -} \ No newline at end of file diff --git a/LibskycoinNetTest/check_coin_transactions.cs b/LibskycoinNetTest/check_coin_transactions.cs index 3611aca8..f72fc45c 100644 --- a/LibskycoinNetTest/check_coin_transactions.cs +++ b/LibskycoinNetTest/check_coin_transactions.cs @@ -332,14 +332,6 @@ public void TestTransactionSignInputs () { Assert.AreEqual (err, skycoin.skycoin.SKY_OK); err = skycoin.skycoin.SKY_coin_Transaction_GetSignatureAt (handle, 1, txsig1); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_ChkSig (a, sha1, txsig0); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_ChkSig (a2, sha2, txsig1); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_ChkSig (a, h, txsig1); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidAddressForSig); - err = skycoin.skycoin.SKY_cipher_ChkSig (a2, h, txsig0); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidAddressForSig); } [Test] @@ -369,7 +361,7 @@ public void TestTransactionUpdateHeader () { err = skycoin.skycoin.SKY_coin_Transaction_UpdateHeader (handle); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); var arg = new cipher_SHA256 (); - arg = tx.getInnerHash (); + arg = tx.GetInnerHash (); h1.assignFrom (arg); err = skycoin.skycoin.SKY_coin_Transaction_HashInner (handle, h2); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); diff --git a/LibskycoinNetTest/check_util_fee.cs b/LibskycoinNetTest/check_util_fee.cs index fec796fe..841f12d6 100644 --- a/LibskycoinNetTest/check_util_fee.cs +++ b/LibskycoinNetTest/check_util_fee.cs @@ -117,11 +117,11 @@ public void TestVerifyTransactionFee () { Assert.AreEqual (skycoin.skycoin.GoUint64p_value (hours), 0); // A txn with no outputs hours and no coinhours burn fee is valid - err = skycoin.skycoin.SKY_fee_VerifyTransactionFee (empty, 0); + err = skycoin.skycoin.SKY_fee_VerifyTransactionFee (empty, 0,2); Assert.AreEqual (err, skycoin.skycoin.SKY_ErrTxnNoFee); // A txn with no outputs hours but with a coinhours burn fee is valid - err = skycoin.skycoin.SKY_fee_VerifyTransactionFee (empty, 100); + err = skycoin.skycoin.SKY_fee_VerifyTransactionFee (empty, 100,2); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); var txn = transutils.makeEmptyTransaction (); var addr = new cipher__Address (); @@ -136,30 +136,30 @@ public void TestVerifyTransactionFee () { Assert.AreEqual (skycoin.skycoin.GoUint64p_value (hours), 4000000); // A txn with insufficient net coinhours burn fee is invalid - err = skycoin.skycoin.SKY_fee_VerifyTransactionFee (txn, 0); + err = skycoin.skycoin.SKY_fee_VerifyTransactionFee (txn, 0,2); Assert.AreEqual (err, skycoin.skycoin.SKY_ErrTxnNoFee); - err = skycoin.skycoin.SKY_fee_VerifyTransactionFee (txn, 1); + err = skycoin.skycoin.SKY_fee_VerifyTransactionFee (txn, 1,2); Assert.AreEqual (err, skycoin.skycoin.SKY_ErrTxnInsufficientFee); // A txn with sufficient net coinhours burn fee is valid err = skycoin.skycoin.SKY_coin_Transaction_OutputHours (txn, hours); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_fee_VerifyTransactionFee (txn, skycoin.skycoin.GoUint64p_value (hours)); + err = skycoin.skycoin.SKY_fee_VerifyTransactionFee (txn, skycoin.skycoin.GoUint64p_value (hours),2); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); err = skycoin.skycoin.SKY_coin_Transaction_OutputHours (txn, hours); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_fee_VerifyTransactionFee (txn, ((ulong) (skycoin.skycoin.GoUint64p_value (hours) * 10))); + err = skycoin.skycoin.SKY_fee_VerifyTransactionFee (txn, ((ulong) (skycoin.skycoin.GoUint64p_value (hours) * 10)),2); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); // fee + hours overflows - err = skycoin.skycoin.SKY_fee_VerifyTransactionFee (txn, ((ulong.MaxValue - 3000000))); + err = skycoin.skycoin.SKY_fee_VerifyTransactionFee (txn, ((ulong.MaxValue - 3000000)),2); Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); // txn has overflowing output hours err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (txn, addr, 0, (ulong.MaxValue - 1000000 - 3000000 + 1)); Assert.AreEqual (err, skycoin.skycoin.SKY_OK, "txn has overflowing output hours"); - err = skycoin.skycoin.SKY_fee_VerifyTransactionFee (txn, 10); + err = skycoin.skycoin.SKY_fee_VerifyTransactionFee (txn, 10,2); Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR, "SKY_fee_VerifyTransactionFee failed"); int len = burnFactor2verifyTxFeeTestCase.Length; @@ -170,7 +170,7 @@ public void TestVerifyTransactionFee () { err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (txn, addr, 0, tc.ouputHours); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); Assert.IsTrue (tc.inputHours >= tc.ouputHours); - err = skycoin.skycoin.SKY_fee_VerifyTransactionFee (txn, (ulong) (tc.inputHours - tc.ouputHours)); + err = skycoin.skycoin.SKY_fee_VerifyTransactionFee (txn, (ulong) (tc.inputHours - tc.ouputHours),2); Assert.AreEqual (tc.err, err, "Iter " + i.ToString () + " is " + tc.err.ToString () + " != " + err.ToString ());; } } @@ -238,11 +238,11 @@ public void TestRequiredFee () { for (int i = 0; i < cases.Length; i++) { var tc = cases[i]; var fee = skycoin.skycoin.new_GoUint64p (); - var err = skycoin.skycoin.SKY_fee_RequiredFee (tc.hours, fee); + var err = skycoin.skycoin.SKY_fee_RequiredFee (tc.hours,2, fee); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); Assert.AreEqual (tc.fee, skycoin.skycoin.GoUint64p_value (fee)); var remainingHours = skycoin.skycoin.new_GoUint64p (); - err = skycoin.skycoin.SKY_fee_RemainingHours (tc.hours, remainingHours); + err = skycoin.skycoin.SKY_fee_RemainingHours (tc.hours,2, remainingHours); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); Assert.AreEqual (tc.hours - skycoin.skycoin.GoUint64p_value (fee), skycoin.skycoin.GoUint64p_value (remainingHours)); } diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index 2548b5fe..98a0b52d 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit 2548b5fe83f7d72929639d6f4148ddd3fa1e1b51 +Subproject commit 98a0b52d545e383511aee88450892a80a7b045b2 diff --git a/swig/include/libskycoin.h b/swig/include/libskycoin.h index 304e90ad..a89360b6 100644 --- a/swig/include/libskycoin.h +++ b/swig/include/libskycoin.h @@ -38,17 +38,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 9 "api.client.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - -#line 10 "cipher.secp256k1-go.secp256k1-go2.xy.go" +#line 12 "api.client.go" #include @@ -108,16 +98,6 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "cipher.secp256k1-go.secp256k1-go2.ec.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - #line 11 "cipher.base58.base58.go" @@ -158,16 +138,6 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "cipher.secp256k1-go.secp256_rand.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - #line 11 "cli.generate_addrs.go" @@ -198,16 +168,6 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "cipher.secp256k1-go.secp256k1-go2.sig.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - #line 9 "cli_helper.go" @@ -218,16 +178,6 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 9 "cipher.poly1305.poly1305.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - #line 10 "wallet.balance.go" @@ -258,16 +208,6 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 9 "cipher.secp256k1-go.secp256k1-go2.xyz.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - #line 5 "util.droplet.droplet.go" @@ -339,26 +279,6 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "cipher.ripemd160.ripemd160.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - -#line 9 "cipher.secp256k1-go.secp256k1-go2.num.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - #line 11 "coin.outputs.go" @@ -398,16 +318,6 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "cipher.secp256k1-go.secp256k1.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - #line 5 "util.apputil.apputil.go" @@ -498,26 +408,6 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 9 "cipher.secp256k1-go.secp256k1-go2.field.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - -#line 10 "cipher.scrypt.scrypt.go" - - - #include - #include - - #include "skytypes.h" - -#line 1 "cgo-generated-wrapper" - #line 10 "cipher.hash.go" @@ -700,13 +590,13 @@ extern GoUint32 SKY_api_Client_WalletSeed(Client__Handle p0, GoString p1, GoStri extern GoUint32 SKY_api_Client_NetworkConnection(Client__Handle p0, GoString p1, Handle* p2); -extern GoUint32 SKY_api_Client_NetworkConnections(Client__Handle p0, Handle* p1); +extern GoUint32 SKY_api_Client_NetworkConnections(Client__Handle p0, api__NetworkConnectionsFilter* p1, Handle* p2); -extern GoUint32 SKY_api_Client_NetworkDefaultConnections(Client__Handle p0, Handle* p1); +extern GoUint32 SKY_api_Client_NetworkDefaultPeers(Client__Handle p0, coin__UxArray* p1); -extern GoUint32 SKY_api_Client_NetworkTrustedConnections(Client__Handle p0, Handle* p1); +extern GoUint32 SKY_api_Client_NetworkTrustedPeers(Client__Handle p0, coin__UxArray* p1); -extern GoUint32 SKY_api_Client_NetworkExchangeableConnections(Client__Handle p0, Handle* p1); +extern GoUint32 SKY_api_Client_NetworkExchangedPeers(Client__Handle p0, coin__UxArray* p1); extern GoUint32 SKY_api_Client_PendingTransactions(Client__Handle p0, Handle* p1); @@ -738,28 +628,6 @@ extern GoUint32 SKY_api_Client_EncryptWallet(Client__Handle p0, GoString p1, GoS extern GoUint32 SKY_api_Client_DecryptWallet(Client__Handle p0, GoString p1, GoString p2, WalletResponse__Handle* p3); -extern GoUint32 SKY_secp256k1go_XY_Print(secp256k1go__XY* p0, GoString p1); - -extern GoUint32 SKY_secp256k1go_XY_ParsePubkey(secp256k1go__XY* p0, GoSlice p1, GoUint8* p2); - -extern GoUint32 SKY_secp256k1go_XY_Bytes(secp256k1go__XY* p0, coin__UxArray* p1); - -extern GoUint32 SKY_secp256k1go_XY_BytesUncompressed(secp256k1go__XY* p0, coin__UxArray* p1); - -extern GoUint32 SKY_secp256k1go_XY_SetXY(secp256k1go__XY* p0, secp256k1go__Field* p1, secp256k1go__Field* p2); - -extern GoUint32 SKY_secp256k1go_XY_IsValid(secp256k1go__XY* p0, GoUint8* p1); - -extern GoUint32 SKY_secp256k1go_XY_SetXYZ(secp256k1go__XY* p0, secp256k1go__XYZ* p1); - -extern GoUint32 SKY_secp256k1go_XY_Neg(secp256k1go__XY* p0, secp256k1go__XY* p1); - -extern GoUint32 SKY_secp256k1go_XY_SetXO(secp256k1go__XY* p0, secp256k1go__Field* p1, GoUint8 p2); - -extern GoUint32 SKY_secp256k1go_XY_AddXY(secp256k1go__XY* p0, secp256k1go__XY* p1); - -extern GoUint32 SKY_secp256k1go_XY_GetPublicKey(secp256k1go__XY* p0, coin__UxArray* p1); - extern GoUint32 SKY_api_NewWalletResponse(Wallet__Handle p0, WalletResponse__Handle* p1); extern GoUint32 SKY_api_NewCreateTransactionResponse(Transaction__Handle p0, GoSlice p1, CreateTransactionResponse__Handle* p2); @@ -830,22 +698,6 @@ extern GoUint32 SKY_wallet_ReadableWallet_Load(ReadableWallet__Handle p0, GoStri extern GoUint32 SKY_wallet_ReadableWallet_Erase(ReadableWallet__Handle p0); -extern GoUint32 SKY_secp256k1go_DecompressPoint(GoSlice p0, GoUint8 p1, GoSlice p2); - -extern GoUint32 SKY_secp256k1go_RecoverPublicKey(GoSlice p0, GoSlice p1, GoInt p2, coin__UxArray* p3, GoInt* p4); - -extern GoUint32 SKY_secp256k1go_Multiply(GoSlice p0, GoSlice p1, coin__UxArray* p2); - -extern GoUint32 SKY_secp256k1go_BaseMultiply(GoSlice p0, coin__UxArray* p1); - -extern GoUint32 SKY_secp256k1go_BaseMultiplyAdd(GoSlice p0, GoSlice p1, coin__UxArray* p2); - -extern GoUint32 SKY_secp256k1go_GeneratePublicKey(GoSlice p0, coin__UxArray* p1); - -extern GoUint32 SKY_secp256k1go_SeckeyIsValid(GoSlice p0, GoInt* p1); - -extern GoUint32 SKY_secp256k1go_PubkeyIsValid(GoSlice p0, GoInt* p1); - extern GoUint32 SKY_base58_String2Hex(GoString p0, coin__UxArray* p1); extern GoUint32 SKY_base58_Base58_ToInt(GoString p0, GoInt* p1); @@ -894,10 +746,6 @@ extern GoUint32 SKY_iputil_IsLocalhost(GoString p0, GoUint8* p1); extern GoUint32 SKY_iputil_SplitAddr(GoString p0, GoString_* p1, GoUint16* p2); -extern GoUint32 SKY_secp256k1_SumSHA256(GoSlice p0, coin__UxArray* p1); - -extern GoUint32 SKY_secp256k1_RandByte(GoInt p0, coin__UxArray* p1); - extern GoUint32 SKY_cli_GenerateAddressesInFile(GoString p0, GoUint64 p1, PasswordReader__Handle p2, coin__UxArray* p3); extern GoUint32 SKY_cli_FormatAddressesAsJSON(GoSlice p0, GoString_* p1); @@ -946,11 +794,11 @@ extern GoUint32 SKY_cipher_Sig_Hex(cipher__Sig* p0, GoString_* p1); extern GoUint32 SKY_cipher_SignHash(cipher__SHA256* p0, cipher__SecKey* p1, cipher__Sig* p2); -extern GoUint32 SKY_cipher_ChkSig(cipher__Address* p0, cipher__SHA256* p1, cipher__Sig* p2); +extern GoUint32 SKY_cipher_VerifyAddressSignedHash(cipher__Address* p0, cipher__Sig* p1, cipher__SHA256* p2); extern GoUint32 SKY_cipher_VerifySignedHash(cipher__Sig* p0, cipher__SHA256* p1); -extern GoUint32 SKY_cipher_VerifySignature(cipher__PubKey* p0, cipher__Sig* p1, cipher__SHA256* p2); +extern GoUint32 SKY_cipher_VerifyPubKeySignedHash(cipher__PubKey* p0, cipher__Sig* p1, cipher__SHA256* p2); extern GoUint32 SKY_cipher_GenerateKeyPair(cipher__PubKey* p0, cipher__SecKey* p1); @@ -966,24 +814,6 @@ extern GoUint32 SKY_cipher_CheckSecKey(cipher__SecKey* p0); extern GoUint32 SKY_cipher_CheckSecKeyHash(cipher__SecKey* p0, cipher__SHA256* p1); -extern GoUint32 SKY_secp256k1go_Signature_Create(Signature_Handle* p0); - -extern GoUint32 SKY_secp256k1go_Signature_GetR(Signature_Handle p0, Number_Handle* p1); - -extern GoUint32 SKY_secp256k1go_Signature_GetS(Signature_Handle p0, Number_Handle* p1); - -extern GoUint32 SKY_secp256k1go_Signature_Print(Signature_Handle p0, GoString p1); - -extern GoUint32 SKY_secp256k1go_Signature_Verify(Signature_Handle p0, secp256k1go__XY* p1, Number_Handle p2, GoUint8* p3); - -extern GoUint32 SKY_secp256k1go_Signature_Recover(Signature_Handle p0, secp256k1go__XY* p1, Number_Handle p2, GoInt p3, GoUint8* p4); - -extern GoUint32 SKY_secp256k1go_Signature_Sign(Signature_Handle p0, Number_Handle p1, Number_Handle p2, Number_Handle p3, GoInt* p4, GoInt* p5); - -extern GoUint32 SKY_secp256k1go_Signature_ParseBytes(Signature_Handle p0, GoSlice p1); - -extern GoUint32 SKY_secp256k1go_Signature_Bytes(Signature_Handle p0, coin__UxArray* p1); - extern GoUint32 SKY_cli_App_Run(App__Handle p0, GoString p1); extern GoUint32 SKY_cli_Config_GetCoin(Config__Handle p0, GoString_* p1); @@ -996,8 +826,6 @@ extern GoUint32 SKY_cli_Getenv(GoString p0, GoString_* p1); extern GoUint32 SKY_cli_Setenv(GoString p0, GoString p1); -extern GoUint32 SKY_poly1305_Verify(coin__UxArray* p0, GoSlice p1, coin__UxArray* p2, GoUint8* p3); - extern GoUint32 SKY_wallet_NewBalance(GoUint64 p0, GoUint64 p1, wallet__Balance* p2); extern GoUint32 SKY_wallet_NewBalanceFromUxOut(GoUint64 p0, coin__UxOut* p1, wallet__Balance* p2); @@ -1030,30 +858,6 @@ extern GoUint32 SKY_wallet_Entry_Verify(wallet__Entry* p0); extern GoUint32 SKY_wallet_Entry_VerifyPublic(wallet__Entry* p0); -extern GoUint32 SKY_secp256k1go_XYZ_Print(secp256k1go__XYZ* p0, GoString p1); - -extern GoUint32 SKY_secp256k1go_XYZ_SetXY(secp256k1go__XYZ* p0, secp256k1go__XY* p1); - -extern GoUint32 SKY_secp256k1go_XYZ_IsInfinity(secp256k1go__XYZ* p0, GoUint8* p1); - -extern GoUint32 SKY_secp256k1go_XYZ_IsValid(secp256k1go__XYZ* p0, GoUint8* p1); - -extern GoUint32 SKY_secp256k1go_XYZ_Normalize(secp256k1go__XYZ* p0); - -extern GoUint32 SKY_secp256k1go_XYZ_Equals(secp256k1go__XYZ* p0, secp256k1go__XYZ* p1, GoUint8* p2); - -extern GoUint32 SKY_secp256k1go_XYZ_ECmult(secp256k1go__XYZ* p0, secp256k1go__XYZ* p1, Number_Handle p2, Number_Handle p3); - -extern GoUint32 SKY_secp256k1go_XYZ_Neg(secp256k1go__XYZ* p0, secp256k1go__XYZ* p1); - -extern GoUint32 SKY_secp256k1go_XYZ_Double(secp256k1go__XYZ* p0, secp256k1go__XYZ* p1); - -extern GoUint32 SKY_secp256k1go_XYZ_AddXY(secp256k1go__XYZ* p0, secp256k1go__XYZ* p1, secp256k1go__XY* p2); - -extern GoUint32 SKY_secp256k1go_XYZ_Add(secp256k1go__XYZ* p0, secp256k1go__XYZ* p1, secp256k1go__XYZ* p2); - -extern GoUint32 SKY_secp256k1go_ECmultGen(secp256k1go__XYZ* p0, Number_Handle p1); - extern GoUint32 SKY_droplet_FromString(GoString p0, GoUint64* p1); extern GoUint32 SKY_droplet_ToString(GoUint64 p0, GoString_* p1); @@ -1150,22 +954,6 @@ extern GoUint32 SKY_api_Handle_GetWalletLastSeed(Wallet__Handle p0, GoString_* p extern GoUint32 SKY_api_Handle_GetBuildInfoData(BuildInfo_Handle p0, GoString_* p1, GoString_* p2, GoString_* p3); -extern GoUint32 SKY_ripemd160_New(Hash_Handle* p0); - -extern GoUint32 SKY_ripemd160_Write(Hash_Handle p0, GoSlice p1, GoInt* p2); - -extern GoUint32 SKY_ripemd160_Sum(Hash_Handle p0, GoSlice p1, coin__UxArray* p2); - -extern GoUint32 SKY_secp256k1go_Number_Create(Number_Handle* p0); - -extern GoUint32 SKY_secp256k1go_Number_Print(Number_Handle p0, GoString p1); - -extern GoUint32 SKY_secp256k1go_Number_SetHex(Number_Handle p0, GoString p1); - -extern GoUint32 SKY_secp256k1go_Number_IsOdd(Number_Handle p0, GoUint8* p1); - -extern GoUint32 SKY_secp256k1go_Number_IsEqual(Number_Handle p0, Number_Handle p1, GoUint8* p2); - extern GoUint32 SKY_coin_UxOut_Hash(coin__UxOut* p0, cipher__SHA256* p1); extern GoUint32 SKY_coin_UxOut_SnapshotHash(coin__UxOut* p0, cipher__SHA256* p1); @@ -1224,38 +1012,6 @@ extern GoUint32 SKY_cli_AddPrivateKey(Wallet__Handle p0, GoString p1); extern GoUint32 SKY_cli_AddPrivateKeyToFile(GoString p0, GoString p1, PasswordReader__Handle p2); -extern GoUint32 SKY_secp256k1_GenerateKeyPair(coin__UxArray* p0, coin__UxArray* p1); - -extern GoUint32 SKY_secp256k1_PubkeyFromSeckey(GoSlice p0, coin__UxArray* p1); - -extern GoUint32 SKY_secp256k1_UncompressPubkey(GoSlice p0, coin__UxArray* p1); - -extern GoUint32 SKY_secp256k1_UncompressedPubkeyFromSeckey(GoSlice p0, coin__UxArray* p1); - -extern GoUint32 SKY_secp256k1_Secp256k1Hash(GoSlice p0, coin__UxArray* p1); - -extern GoUint32 SKY_secp256k1_GenerateDeterministicKeyPair(GoSlice p0, coin__UxArray* p1, coin__UxArray* p2); - -extern GoUint32 SKY_secp256k1_DeterministicKeyPairIterator(GoSlice p0, coin__UxArray* p1, coin__UxArray* p2, coin__UxArray* p3); - -extern GoUint32 SKY_secp256k1_Sign(GoSlice p0, GoSlice p1, coin__UxArray* p2); - -extern GoUint32 SKY_secp256k1_SignDeterministic(GoSlice p0, GoSlice p1, GoSlice p2, coin__UxArray* p3); - -extern GoUint32 SKY_secp256k1_VerifySeckey(GoSlice p0, GoInt* p1); - -extern GoUint32 SKY_secp256k1_VerifyPubkey(GoSlice p0, GoInt* p1); - -extern GoUint32 SKY_secp256k1_VerifySignatureValidity(GoSlice p0, GoInt* p1); - -extern GoUint32 SKY_secp256k1_VerifySignature(GoSlice p0, GoSlice p1, GoSlice p2, GoInt* p3); - -extern GoUint32 SKY_secp256k1_SignatureErrorString(GoSlice p0, GoSlice p1, GoSlice p2, GoString_* p3); - -extern GoUint32 SKY_secp256k1_RecoverPubkey(GoSlice p0, GoSlice p1, coin__UxArray* p2); - -extern GoUint32 SKY_secp256k1_ECDH(GoSlice p0, GoSlice p1, coin__UxArray* p2); - extern GoUint32 SKY_apputil_CatchInterruptPanic(); extern GoUint32 SKY_apputil_CatchDebug(); @@ -1264,13 +1020,13 @@ extern GoUint32 SKY_apputil_PrintProgramStatus(); extern GoUint32 SKY_certutil_NewTLSCertPair(GoString p0, GoString p1, GoSlice p2, coin__UxArray* p3, coin__UxArray* p4); -extern GoUint32 SKY_fee_VerifyTransactionFee(Transaction__Handle p0, GoUint64 p1); +extern GoUint32 SKY_fee_VerifyTransactionFee(Transaction__Handle p0, GoUint64 p1, GoUint64 p2); -extern GoUint32 SKY_fee_VerifyTransactionFeeForHours(GoUint64 p0, GoUint64 p1); +extern GoUint32 SKY_fee_VerifyTransactionFeeForHours(GoUint64 p0, GoUint64 p1, GoUint64 p2); -extern GoUint32 SKY_fee_RequiredFee(GoUint64 p0, GoUint64* p1); +extern GoUint32 SKY_fee_RequiredFee(GoUint64 p0, GoUint64 p1, GoUint64* p2); -extern GoUint32 SKY_fee_RemainingHours(GoUint64 p0, GoUint64* p1); +extern GoUint32 SKY_fee_RemainingHours(GoUint64 p0, GoUint64 p1, GoUint64* p2); extern GoUint32 SKY_fee_TransactionFee(Transaction__Handle p0, GoUint64 p1, coin__UxArray* p2, GoUint64* p3); @@ -1334,46 +1090,6 @@ extern GoUint32 SKY_cli_GetWalletOutputs(WebRpcClient__Handle p0, Wallet__Handle extern GoUint32 SKY_testutil_MakeAddress(cipher__Address* p0); -extern GoUint32 SKY_secp256k1go_Field_String(secp256k1go__Field* p0, GoString_* p1); - -extern GoUint32 SKY_secp256k1go_Field_Print(secp256k1go__Field* p0, GoString p1); - -extern GoUint32 SKY_secp256k1go_Field_SetB32(secp256k1go__Field* p0, GoSlice p1); - -extern GoUint32 SKY_secp256k1go_Field_SetBytes(secp256k1go__Field* p0, GoSlice p1); - -extern GoUint32 SKY_secp256k1go_Field_SetHex(secp256k1go__Field* p0, GoString p1); - -extern GoUint32 SKY_secp256k1go_Field_IsOdd(secp256k1go__Field* p0, GoUint8* p1); - -extern GoUint32 SKY_secp256k1go_Field_IsZero(secp256k1go__Field* p0, GoUint8* p1); - -extern GoUint32 SKY_secp256k1go_Field_SetInt(secp256k1go__Field* p0, GoUint32 p1); - -extern GoUint32 SKY_secp256k1go_Field_Normalize(secp256k1go__Field* p0); - -extern GoUint32 SKY_secp256k1go_Field_GetB32(secp256k1go__Field* p0, GoSlice p1); - -extern GoUint32 SKY_secp256k1go_Field_Equals(secp256k1go__Field* p0, secp256k1go__Field* p1, GoUint8* p2); - -extern GoUint32 SKY_secp256k1go_Field_SetAdd(secp256k1go__Field* p0, secp256k1go__Field* p1); - -extern GoUint32 SKY_secp256k1go_Field_MulInt(secp256k1go__Field* p0, GoUint32 p1); - -extern GoUint32 SKY_secp256k1go_Field_Negate(secp256k1go__Field* p0, secp256k1go__Field* p1, GoUint32 p2); - -extern GoUint32 SKY_secp256k1go_Field_Inv(secp256k1go__Field* p0, secp256k1go__Field* p1); - -extern GoUint32 SKY_secp256k1go_Field_Sqrt(secp256k1go__Field* p0, secp256k1go__Field* p1); - -extern GoUint32 SKY_secp256k1go_Field_InvVar(secp256k1go__Field* p0, secp256k1go__Field* p1); - -extern GoUint32 SKY_secp256k1go_Field_Mul(secp256k1go__Field* p0, secp256k1go__Field* p1, secp256k1go__Field* p2); - -extern GoUint32 SKY_secp256k1go_Field_Sqr(secp256k1go__Field* p0, secp256k1go__Field* p1); - -extern GoUint32 SKY_scrypt_Key(GoSlice p0, GoSlice p1, GoInt p2, GoInt p3, GoInt p4, GoInt p5, coin__UxArray* p6); - extern GoUint32 SKY_cipher_Ripemd160_Set(cipher__Ripemd160* p0, GoSlice p1); extern GoUint32 SKY_cipher_HashRipemd160(GoSlice p0, cipher__Ripemd160* p1); From ac5f7b3d47c2194a43569d432bff7465e55c2516 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Tue, 6 Nov 2018 23:03:07 -0500 Subject: [PATCH 60/73] [submodule][swig] Added folder swig and update submodule Tests run: 85, Errors: 0, Failures: 0, Inconclusive: 0, Time: 17,0322507 seconds --- LibskycoinNet/LibskycoinNet.csproj | 2 +- LibskycoinNet/skycoin/FeeCalculator_.cs | 71 -- LibskycoinNet/skycoin/Fee_Calculator.cs | 6 - ..._p_unsigned_long_long_p_void__GoUint32_.cs | 29 + LibskycoinNet/skycoin/cipher_SHA256.cs | 10 +- LibskycoinNet/skycoin/cipher__Address.cs | 10 +- LibskycoinNet/skycoin/coin__Transaction.cs | 15 +- LibskycoinNet/skycoin/skycoin.cs | 73 +- LibskycoinNet/skycoin/skycoinPINVOKE.cs | 75 +- LibskycoinNet/skycoin/skycoinnet_wrap.c | 495 +++++------ Makefile | 2 +- gopath/src/github.com/skycoin/skycoin | 2 +- swig/csharp_java_basic.i | 786 ++++++++++++++++++ swig/csharp_java_callback.i | 37 + swig/csharp_java_typemap.i | 105 +++ swig/csharp_skycoin.mem.i | 538 ++++++++++++ swig/csharp_structs_typemaps.i | 61 ++ swig/skycoin.i | 24 + swig/structs.i | 29 + 19 files changed, 1937 insertions(+), 433 deletions(-) delete mode 100644 LibskycoinNet/skycoin/FeeCalculator_.cs create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_.cs create mode 100644 swig/csharp_java_basic.i create mode 100644 swig/csharp_java_callback.i create mode 100644 swig/csharp_java_typemap.i create mode 100644 swig/csharp_skycoin.mem.i create mode 100644 swig/csharp_structs_typemaps.i create mode 100644 swig/skycoin.i create mode 100644 swig/structs.i diff --git a/LibskycoinNet/LibskycoinNet.csproj b/LibskycoinNet/LibskycoinNet.csproj index cb0c2f03..eca5867d 100644 --- a/LibskycoinNet/LibskycoinNet.csproj +++ b/LibskycoinNet/LibskycoinNet.csproj @@ -129,12 +129,12 @@ - + diff --git a/LibskycoinNet/skycoin/FeeCalculator_.cs b/LibskycoinNet/skycoin/FeeCalculator_.cs deleted file mode 100644 index 3e303cd3..00000000 --- a/LibskycoinNet/skycoin/FeeCalculator_.cs +++ /dev/null @@ -1,71 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class FeeCalculator_ : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal FeeCalculator_(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FeeCalculator_ obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~FeeCalculator_() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_FeeCalculator_(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_FeeCalcFunc callback { - set { - skycoinPINVOKE.set_FeeCalculator__callback(swigCPtr, SWIGTYPE_p_FeeCalcFunc.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_FeeCalcFunc ret = new SWIGTYPE_p_FeeCalcFunc(skycoinPINVOKE.get_FeeCalculator__callback(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_void context { - set { - skycoinPINVOKE.set_FeeCalculator__context(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.get_FeeCalculator__context(swigCPtr); - SWIGTYPE_p_void ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false); - return ret; - } - } - - public FeeCalculator_() : this(skycoinPINVOKE.new_FeeCalculator_(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin/Fee_Calculator.cs b/LibskycoinNet/skycoin/Fee_Calculator.cs index 7109660c..a85a395a 100644 --- a/LibskycoinNet/skycoin/Fee_Calculator.cs +++ b/LibskycoinNet/skycoin/Fee_Calculator.cs @@ -40,12 +40,6 @@ public virtual void Dispose() { } } - public uint callFeeCalculator(SWIGTYPE_p_FeeCalculator feeCalc, SWIGTYPE_p_Transaction__Handle handle, SWIGTYPE_p_unsigned_long_long pFee) { - uint ret = skycoinPINVOKE.Fee_Calculator_callFeeCalculator(swigCPtr, SWIGTYPE_p_FeeCalculator.getCPtr(feeCalc), SWIGTYPE_p_Transaction__Handle.getCPtr(handle), SWIGTYPE_p_unsigned_long_long.getCPtr(pFee)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - public SWIGTYPE_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_ callback { set { skycoinPINVOKE.set_Fee_Calculator_callback(swigCPtr, SWIGTYPE_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_.getCPtr(value)); diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_.cs new file mode 100644 index 00000000..f582b148 --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_ { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_ obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/cipher_SHA256.cs b/LibskycoinNet/skycoin/cipher_SHA256.cs index 6e7de086..cbdc3523 100644 --- a/LibskycoinNet/skycoin/cipher_SHA256.cs +++ b/LibskycoinNet/skycoin/cipher_SHA256.cs @@ -40,6 +40,11 @@ public virtual void Dispose() { } } + public _GoString_ getStr() { + _GoString_ ret = new _GoString_(skycoinPINVOKE.cipher_SHA256_getStr(swigCPtr), true); + return ret; + } + public int isEqual(cipher_SHA256 a) { int ret = skycoinPINVOKE.cipher_SHA256_isEqual(swigCPtr, cipher_SHA256.getCPtr(a)); return ret; @@ -53,11 +58,6 @@ public void assignTo(cipher_SHA256 data) { skycoinPINVOKE.cipher_SHA256_assignTo(swigCPtr, cipher_SHA256.getCPtr(data)); } - public _GoString_ getStr() { - _GoString_ ret = new _GoString_(skycoinPINVOKE.cipher_SHA256_getStr(swigCPtr), true); - return ret; - } - public SWIGTYPE_p_unsigned_char data { set { skycoinPINVOKE.set_cipher_SHA256_data(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); diff --git a/LibskycoinNet/skycoin/cipher__Address.cs b/LibskycoinNet/skycoin/cipher__Address.cs index 28dacedd..c79b7339 100644 --- a/LibskycoinNet/skycoin/cipher__Address.cs +++ b/LibskycoinNet/skycoin/cipher__Address.cs @@ -40,11 +40,6 @@ public virtual void Dispose() { } } - public int isEqual(cipher__Address a) { - int ret = skycoinPINVOKE.cipher__Address_isEqual(swigCPtr, cipher__Address.getCPtr(a)); - return ret; - } - public char getVersion() { char ret = skycoinPINVOKE.cipher__Address_getVersion(swigCPtr); return ret; @@ -54,6 +49,11 @@ public void setVersion(char pValue) { skycoinPINVOKE.cipher__Address_setVersion(swigCPtr, pValue); } + public int isEqual(cipher__Address a) { + int ret = skycoinPINVOKE.cipher__Address_isEqual(swigCPtr, cipher__Address.getCPtr(a)); + return ret; + } + public byte Version { set { skycoinPINVOKE.set_cipher__Address_Version(swigCPtr, value); diff --git a/LibskycoinNet/skycoin/coin__Transaction.cs b/LibskycoinNet/skycoin/coin__Transaction.cs index 1de47e03..d1a2b438 100644 --- a/LibskycoinNet/skycoin/coin__Transaction.cs +++ b/LibskycoinNet/skycoin/coin__Transaction.cs @@ -40,11 +40,6 @@ public virtual void Dispose() { } } - public int isEqual(coin__Transaction t) { - int ret = skycoinPINVOKE.coin__Transaction_isEqual(swigCPtr, coin__Transaction.getCPtr(t)); - return ret; - } - public int setInnerHash(cipher_SHA256 h) { int ret = skycoinPINVOKE.coin__Transaction_setInnerHash(swigCPtr, cipher_SHA256.getCPtr(h)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); @@ -56,6 +51,16 @@ public cipher_SHA256 GetInnerHash() { return ret; } + public int isEqual(coin__Transaction t) { + int ret = skycoinPINVOKE.coin__Transaction_isEqual(swigCPtr, coin__Transaction.getCPtr(t)); + return ret; + } + + public cipher_SHA256 getInnerHash() { + cipher_SHA256 ret = new cipher_SHA256(skycoinPINVOKE.coin__Transaction_getInnerHash(swigCPtr), true); + return ret; + } + public int Length { set { skycoinPINVOKE.set_coin__Transaction_Length(swigCPtr, value); diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs index 82587c1e..f13d44d3 100644 --- a/LibskycoinNet/skycoin/skycoin.cs +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -11,30 +11,6 @@ namespace skycoin { public class skycoin { - public static void destroy_cipher_SecKeys(cipher_SecKeys p) { - skycoinPINVOKE.destroy_cipher_SecKeys(cipher_SecKeys.getCPtr(p)); - } - - public static int equalSlices(GoSlice slice1, GoSlice slice2, int elem_size) { - int ret = skycoinPINVOKE.equalSlices(GoSlice.getCPtr(slice1), GoSlice.getCPtr(slice2), elem_size); - return ret; - } - - public static int equalTransactions(coin__Transaction t1, coin__Transaction t2) { - int ret = skycoinPINVOKE.equalTransactions(coin__Transaction.getCPtr(t1), coin__Transaction.getCPtr(t2)); - return ret; - } - - public static int equalTransactionsArrays(SWIGTYPE_p_GoSlice_ pTxs1, SWIGTYPE_p_GoSlice_ pTxs2) { - int ret = skycoinPINVOKE.equalTransactionsArrays(SWIGTYPE_p_GoSlice_.getCPtr(pTxs1), SWIGTYPE_p_GoSlice_.getCPtr(pTxs2)); - return ret; - } - - public static int equalBlockHeaders(coin__BlockHeader bh1, coin__BlockHeader bh2) { - int ret = skycoinPINVOKE.equalBlockHeaders(coin__BlockHeader.getCPtr(bh1), coin__BlockHeader.getCPtr(bh2)); - return ret; - } - public static GoSlice new_GoSlicep() { global::System.IntPtr cPtr = skycoinPINVOKE.new_GoSlicep(); GoSlice ret = (cPtr == global::System.IntPtr.Zero) ? null : new GoSlice(cPtr, false); @@ -511,30 +487,29 @@ public static SWIGTYPE_p_FeeCalculator FeeCalculatorPtr_value(SWIGTYPE_p_FeeCalc return ret; } - public static SWIGTYPE_p_FeeCalcFunc new_FeeCalcFuncPtr() { + public static SWIGTYPE_p_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_ new_FeeCalcFuncPtr() { global::System.IntPtr cPtr = skycoinPINVOKE.new_FeeCalcFuncPtr(); - SWIGTYPE_p_FeeCalcFunc ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_FeeCalcFunc(cPtr, false); + SWIGTYPE_p_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_(cPtr, false); return ret; } - public static SWIGTYPE_p_FeeCalcFunc copy_FeeCalcFuncPtr(SWIGTYPE_p_FeeCalcFunc value) { - global::System.IntPtr cPtr = skycoinPINVOKE.copy_FeeCalcFuncPtr(SWIGTYPE_p_FeeCalcFunc.getCPtr(value)); - SWIGTYPE_p_FeeCalcFunc ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_FeeCalcFunc(cPtr, false); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static SWIGTYPE_p_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_ copy_FeeCalcFuncPtr(SWIGTYPE_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_ value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_FeeCalcFuncPtr(SWIGTYPE_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_.getCPtr(value)); + SWIGTYPE_p_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_(cPtr, false); return ret; } - public static void delete_FeeCalcFuncPtr(SWIGTYPE_p_FeeCalcFunc obj) { - skycoinPINVOKE.delete_FeeCalcFuncPtr(SWIGTYPE_p_FeeCalcFunc.getCPtr(obj)); + public static void delete_FeeCalcFuncPtr(SWIGTYPE_p_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_ obj) { + skycoinPINVOKE.delete_FeeCalcFuncPtr(SWIGTYPE_p_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_.getCPtr(obj)); } - public static void FeeCalcFuncPtr_assign(SWIGTYPE_p_FeeCalcFunc obj, SWIGTYPE_p_FeeCalcFunc value) { - skycoinPINVOKE.FeeCalcFuncPtr_assign(SWIGTYPE_p_FeeCalcFunc.getCPtr(obj), SWIGTYPE_p_FeeCalcFunc.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static void FeeCalcFuncPtr_assign(SWIGTYPE_p_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_ obj, SWIGTYPE_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_ value) { + skycoinPINVOKE.FeeCalcFuncPtr_assign(SWIGTYPE_p_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_.getCPtr(obj), SWIGTYPE_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_.getCPtr(value)); } - public static SWIGTYPE_p_FeeCalcFunc FeeCalcFuncPtr_value(SWIGTYPE_p_FeeCalcFunc obj) { - SWIGTYPE_p_FeeCalcFunc ret = new SWIGTYPE_p_FeeCalcFunc(skycoinPINVOKE.FeeCalcFuncPtr_value(SWIGTYPE_p_FeeCalcFunc.getCPtr(obj)), true); + public static SWIGTYPE_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_ FeeCalcFuncPtr_value(SWIGTYPE_p_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_ obj) { + global::System.IntPtr cPtr = skycoinPINVOKE.FeeCalcFuncPtr_value(SWIGTYPE_p_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_.getCPtr(obj)); + SWIGTYPE_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_f_Transaction__Handle_p_unsigned_long_long_p_void__GoUint32_(cPtr, false); return ret; } @@ -1181,6 +1156,30 @@ public static uint SKY_coin_Block_HashBody(SWIGTYPE_p_Block__Handle p0, cipher_S return ret; } + public static int equalSlices(GoSlice slice1, GoSlice slice2, int elem_size) { + int ret = skycoinPINVOKE.equalSlices(GoSlice.getCPtr(slice1), GoSlice.getCPtr(slice2), elem_size); + return ret; + } + + public static int equalTransactions(coin__Transaction t1, coin__Transaction t2) { + int ret = skycoinPINVOKE.equalTransactions(coin__Transaction.getCPtr(t1), coin__Transaction.getCPtr(t2)); + return ret; + } + + public static int equalTransactionsArrays(GoSlice pTxs1, GoSlice pTxs2) { + int ret = skycoinPINVOKE.equalTransactionsArrays(GoSlice.getCPtr (pTxs1), GoSlice.getCPtr (pTxs2)); + return ret; + } + + public static int equalBlockHeaders(coin__BlockHeader bh1, coin__BlockHeader bh2) { + int ret = skycoinPINVOKE.equalBlockHeaders(coin__BlockHeader.getCPtr(bh1), coin__BlockHeader.getCPtr(bh2)); + return ret; + } + + public static void destroy_cipher_SecKeys(cipher_SecKeys p) { + skycoinPINVOKE.destroy_cipher_SecKeys(cipher_SecKeys.getCPtr(p)); + } + public static uint SKY_coin_NewBlock(SWIGTYPE_p_Block__Handle p0, ulong p1, cipher_SecKey p2, SWIGTYPE_p_Transactions__Handle p3, SWIGTYPE_p_FeeCalculator p4, SWIGTYPE_p_Block__Handle p5) { var tmpp2 = cipher_SecKey.getCPtr (p2); { diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index 56421143..34f94a7f 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -188,21 +188,6 @@ static skycoinPINVOKE() { } - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_destroy_cipher_SecKeys")] - public static extern void destroy_cipher_SecKeys(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_equalSlices")] - public static extern int equalSlices(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_equalTransactions")] - public static extern int equalTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_equalTransactionsArrays")] - public static extern int equalTransactionsArrays(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_equalBlockHeaders")] - public static extern int equalBlockHeaders(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_GoSlicep")] public static extern global::System.IntPtr new_GoSlicep(); @@ -857,6 +842,21 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_HashBody__SWIG_0")] public static extern uint SKY_coin_Block_HashBody__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_equalSlices")] + public static extern int equalSlices(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_equalTransactions")] + public static extern int equalTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_equalTransactionsArrays")] + public static extern int equalTransactionsArrays(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_equalBlockHeaders")] + public static extern int equalBlockHeaders(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_destroy_cipher_SecKeys")] + public static extern void destroy_cipher_SecKeys(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKey_isEqual")] public static extern int cipher_PubKey_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -947,6 +947,9 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_Sig")] public static extern void delete_cipher_Sig(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256_getStr")] + public static extern global::System.IntPtr cipher_SHA256_getStr(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256_isEqual")] public static extern int cipher_SHA256_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -956,9 +959,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256_assignTo")] public static extern void cipher_SHA256_assignTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256_getStr")] - public static extern global::System.IntPtr cipher_SHA256_getStr(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cipher_SHA256_data")] public static extern void set_cipher_SHA256_data(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1160,23 +1160,23 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_Addresses")] public static extern void delete_cipher_Addresses(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_FeeCalculator__callback")] - public static extern void set_FeeCalculator__callback(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_Fee_Calculator_callback")] + public static extern void set_Fee_Calculator_callback(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_FeeCalculator__callback")] - public static extern global::System.IntPtr get_FeeCalculator__callback(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_Fee_Calculator_callback")] + public static extern global::System.IntPtr get_Fee_Calculator_callback(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_FeeCalculator__context")] - public static extern void set_FeeCalculator__context(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_Fee_Calculator_context")] + public static extern void set_Fee_Calculator_context(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_FeeCalculator__context")] - public static extern global::System.IntPtr get_FeeCalculator__context(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_Fee_Calculator_context")] + public static extern global::System.IntPtr get_Fee_Calculator_context(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_FeeCalculator_")] - public static extern global::System.IntPtr new_FeeCalculator_(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_Fee_Calculator")] + public static extern global::System.IntPtr new_Fee_Calculator(); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_FeeCalculator_")] - public static extern void delete_FeeCalculator_(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_Fee_Calculator")] + public static extern void delete_Fee_Calculator(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin__GoString__SetString")] public static extern int _GoString__SetString(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); @@ -2387,15 +2387,15 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_api__NetworkConnectionsFilter")] public static extern void delete_api__NetworkConnectionsFilter(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Address_isEqual")] - public static extern int cipher__Address_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Address_getVersion")] public static extern char cipher__Address_getVersion(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Address_setVersion")] public static extern void cipher__Address_setVersion(global::System.Runtime.InteropServices.HandleRef jarg1, char jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Address_isEqual")] + public static extern int cipher__Address_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cipher__Address_Version")] public static extern void set_cipher__Address_Version(global::System.Runtime.InteropServices.HandleRef jarg1, byte jarg2); @@ -2549,15 +2549,18 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cli__SendAmount")] public static extern void delete_cli__SendAmount(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_isEqual")] - public static extern int coin__Transaction_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_setInnerHash")] public static extern int coin__Transaction_setInnerHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_GetInnerHash")] public static extern global::System.IntPtr coin__Transaction_GetInnerHash(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_isEqual")] + public static extern int coin__Transaction_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_getInnerHash")] + public static extern global::System.IntPtr coin__Transaction_getInnerHash(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__Transaction_Length")] public static extern void set_coin__Transaction_Length(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index 4475a6be..a1686f35 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -281,62 +281,6 @@ SWIGEXPORT void SWIGSTDCALL SWIGRegisterStringCallback_skycoin(SWIG_CSharpString #include "skyerrors.h" - void destroy_cipher_SecKeys(cipher_SecKeys* p){ - if( p != NULL ){ - if( p->data != NULL ){ - free( p->data ); - } - } - } - - - int equalSlices(GoSlice* slice1, GoSlice* slice2, int elem_size){ - if(slice1->len != slice2->len) - return 0; - return memcmp(slice1->data, slice2->data, slice1->len * elem_size) == 0; - } - int equalTransactions(coin__Transaction* t1, coin__Transaction* t2){ - if( t1->Length != t2->Length || t1->Type != t2->Type ){ - return 0; - } - if( memcmp(&t1->InnerHash, &t2->InnerHash, sizeof(cipher__SHA256)) != 0 ) - return 0; - if(!equalSlices((GoSlice*)&t1->Sigs, (GoSlice*)&t2->Sigs, sizeof(cipher__Sig))) - return 0; - if(!equalSlices((GoSlice*)&t1->In, (GoSlice*)&t2->In, sizeof(cipher__SHA256))) - return 0; - if(!equalSlices((GoSlice*)&t1->Out, (GoSlice*)&t2->Out, sizeof(coin__TransactionOutput))) - return 0; - return 1; - } - int equalTransactionsArrays(coin__Transactions* pTxs1, coin__Transactions* pTxs2){ - if( pTxs1->len != pTxs2->len ) - return 0; - coin__Transaction* pTx1 = pTxs1->data; - coin__Transaction* pTx2 = pTxs2->data; - int i; - for(i = 0; i < pTxs1->len; i++){ - if(!equalTransactions(pTx1, pTx2)) - return 0; - pTx1++; - pTx2++; - } - return 1; - } - int equalBlockHeaders(coin__BlockHeader* bh1, coin__BlockHeader* bh2){ - if( bh1->Version != bh2->Version || bh1->Time != bh2->Time || - bh1->BkSeq != bh2->BkSeq || bh1->Fee != bh2->Fee) - return 0; - if( memcmp( &bh1->PrevHash, bh2->PrevHash, sizeof(bh2->PrevHash) ) != 0 ) - return 0; - if( memcmp( &bh1->BodyHash, bh2->PrevHash, sizeof(bh2->BodyHash) ) != 0 ) - return 0; - if( memcmp( &bh1->UxHash, bh2->PrevHash, sizeof(bh2->UxHash) ) != 0 ) - return 0; - return 1; - } - - static GoSlice *new_GoSlicep() { return (GoSlice *) calloc(1,sizeof(GoSlice)); } @@ -2015,6 +1959,62 @@ GoUint32_ _WrapperFeeCalculator(Transaction__Handle handle, GoUint64_* pFee, voi return 0; } + + int equalSlices(GoSlice* slice1, GoSlice* slice2, int elem_size){ + if(slice1->len != slice2->len) + return 0; + return memcmp(slice1->data, slice2->data, slice1->len * elem_size) == 0; + } + int equalTransactions(coin__Transaction* t1, coin__Transaction* t2){ + if( t1->Length != t2->Length || t1->Type != t2->Type ){ + return 0; + } + if( memcmp(&t1->InnerHash, &t2->InnerHash, sizeof(cipher__SHA256)) != 0 ) + return 0; + if(!equalSlices((GoSlice*)&t1->Sigs, (GoSlice*)&t2->Sigs, sizeof(cipher__Sig))) + return 0; + if(!equalSlices((GoSlice*)&t1->In, (GoSlice*)&t2->In, sizeof(cipher__SHA256))) + return 0; + if(!equalSlices((GoSlice*)&t1->Out, (GoSlice*)&t2->Out, sizeof(coin__TransactionOutput))) + return 0; + return 1; + } + int equalTransactionsArrays(coin__Transactions* pTxs1, coin__Transactions* pTxs2){ + if( pTxs1->len != pTxs2->len ) + return 0; + coin__Transaction* pTx1 = pTxs1->data; + coin__Transaction* pTx2 = pTxs2->data; + int i; + for(i = 0; i < pTxs1->len; i++){ + if(!equalTransactions(pTx1, pTx2)) + return 0; + pTx1++; + pTx2++; + } + return 1; + } + int equalBlockHeaders(coin__BlockHeader* bh1, coin__BlockHeader* bh2){ + if( bh1->Version != bh2->Version || bh1->Time != bh2->Time || + bh1->BkSeq != bh2->BkSeq || bh1->Fee != bh2->Fee) + return 0; + if( memcmp( &bh1->PrevHash, bh2->PrevHash, sizeof(bh2->PrevHash) ) != 0 ) + return 0; + if( memcmp( &bh1->BodyHash, bh2->PrevHash, sizeof(bh2->BodyHash) ) != 0 ) + return 0; + if( memcmp( &bh1->UxHash, bh2->PrevHash, sizeof(bh2->UxHash) ) != 0 ) + return 0; + return 1; + } + + + void destroy_cipher_SecKeys(cipher_SecKeys* p){ + if( p != NULL ){ + if( p->data != NULL ){ + free( p->data ); + } + } + } + SWIGINTERN int cipher_PubKey_isEqual(cipher_PubKey *self,cipher_PubKey *a){ return memcmp(self->data, a->data, sizeof(a->data)) == 0; } @@ -2058,6 +2058,12 @@ SWIGINTERN void cipher_Sig_assignFrom(cipher_Sig *self,void *data){ SWIGINTERN void cipher_Sig_assignTo(cipher_Sig *self,void *data){ memcpy(data, &self->data, sizeof(self->data)); } +SWIGINTERN _GoString_ cipher_SHA256_getStr(cipher_SHA256 *self){ + _GoString_ str; + str.p = (const char*)self->data; + str.n = strlen(str.p); + return str; + } SWIGINTERN int cipher_SHA256_isEqual(cipher_SHA256 *self,cipher_SHA256 *a){ return memcmp(self->data, a->data, sizeof(a->data)) == 0; } @@ -2067,12 +2073,6 @@ SWIGINTERN void cipher_SHA256_assignFrom(cipher_SHA256 *self,cipher_SHA256 *data SWIGINTERN void cipher_SHA256_assignTo(cipher_SHA256 *self,cipher_SHA256 *data){ memcpy(data->data, &self->data, sizeof(self->data)); } -SWIGINTERN _GoString_ cipher_SHA256_getStr(cipher_SHA256 *self){ - _GoString_ str; - str.p = (const char*)self->data; - str.n = strlen(str.p); - return str; - } SWIGINTERN int cipher_Checksum_isEqual(cipher_Checksum *self,cipher_Checksum *a){ return memcmp(self->data, a->data, sizeof(a->data)) == 0; } @@ -2236,26 +2236,23 @@ SWIGINTERN void GoSlice_getString(GoSlice *self,_GoString_ *out){ out->p = (char *)self->data; out->n = strlen((char *)self->data); } -SWIGINTERN int cipher__Address_isEqual(cipher__Address *self,cipher__Address *a){ - if( self->Version == a->Version ){ - return memcmp(self->Key, a->Key, sizeof(a->Key)) == 0; - } - return 0; - } SWIGINTERN char cipher__Address_getVersion(cipher__Address *self){ return self->Version; } SWIGINTERN void cipher__Address_setVersion(cipher__Address *self,char pValue){ self->Version = pValue; } -SWIGINTERN int cipher__BitcoinAddress_isEqual(cipher__BitcoinAddress *self,cipher__BitcoinAddress *a){ +SWIGINTERN int cipher__Address_isEqual(cipher__Address *self,cipher__Address *a){ if( self->Version == a->Version ){ return memcmp(self->Key, a->Key, sizeof(a->Key)) == 0; } return 0; } -SWIGINTERN int coin__Transaction_isEqual(coin__Transaction *self,coin__Transaction *t){ - return equalTransactions(self, t); +SWIGINTERN int cipher__BitcoinAddress_isEqual(cipher__BitcoinAddress *self,cipher__BitcoinAddress *a){ + if( self->Version == a->Version ){ + return memcmp(self->Key, a->Key, sizeof(a->Key)) == 0; + } + return 0; } SWIGINTERN int coin__Transaction_setInnerHash(coin__Transaction *self,cipher_SHA256 h){ memset(self->InnerHash, 0, sizeof(cipher__SHA256)); @@ -2268,6 +2265,14 @@ memset(&h, 0, sizeof(cipher__SHA256)); cipher_SHA256_assignFrom(&h,&self->InnerHash); return h; } +SWIGINTERN int coin__Transaction_isEqual(coin__Transaction *self,coin__Transaction *t){ + return equalTransactions(self, t); + } +SWIGINTERN cipher_SHA256 coin__Transaction_getInnerHash(coin__Transaction *self){ + cipher_SHA256 h; + cipher_SHA256_assignFrom(&h,self->InnerHash); + return h; + } SWIGINTERN int coin__TransactionOutput_isEqual(coin__TransactionOutput *self,coin__TransactionOutput *t){ if( self->Coins != t->Coins || self->Hours != t->Hours ){ @@ -2296,72 +2301,6 @@ SWIGINTERN int coin__UxOut_isEqual(coin__UxOut *self,coin__UxOut *u){ extern "C" { #endif -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_destroy_cipher_SecKeys(void * jarg1) { - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - - arg1 = (cipher_SecKeys *)jarg1; - destroy_cipher_SecKeys(arg1); -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalSlices(void * jarg1, void * jarg2, int jarg3) { - int jresult ; - GoSlice *arg1 = (GoSlice *) 0 ; - GoSlice *arg2 = (GoSlice *) 0 ; - int arg3 ; - int result; - - arg1 = (GoSlice *)jarg1; - arg2 = (GoSlice *)jarg2; - arg3 = (int)jarg3; - result = (int)equalSlices(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalTransactions(void * jarg1, void * jarg2) { - int jresult ; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - coin__Transaction *arg2 = (coin__Transaction *) 0 ; - int result; - - arg1 = (coin__Transaction *)jarg1; - arg2 = (coin__Transaction *)jarg2; - result = (int)equalTransactions(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalTransactionsArrays(void * jarg1, void * jarg2) { - int jresult ; - coin__Transactions *arg1 = (coin__Transactions *) 0 ; - coin__Transactions *arg2 = (coin__Transactions *) 0 ; - int result; - - arg1 = (coin__Transactions *)jarg1; - arg2 = (coin__Transactions *)jarg2; - result = (int)equalTransactionsArrays(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalBlockHeaders(void * jarg1, void * jarg2) { - int jresult ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - coin__BlockHeader *arg2 = (coin__BlockHeader *) 0 ; - int result; - - arg1 = (coin__BlockHeader *)jarg1; - arg2 = (coin__BlockHeader *)jarg2; - result = (int)equalBlockHeaders(arg1,arg2); - jresult = result; - return jresult; -} - - SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_GoSlicep() { void * jresult ; GoSlice *result = 0 ; @@ -3518,16 +3457,10 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_FeeCalcFuncPtr() { SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_FeeCalcFuncPtr(void * jarg1) { void * jresult ; - FeeCalcFunc arg1 ; - FeeCalcFunc *argp1 ; + FeeCalcFunc arg1 = (FeeCalcFunc) 0 ; FeeCalcFunc *result = 0 ; - argp1 = (FeeCalcFunc *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null FeeCalcFunc", 0); - return 0; - } - arg1 = *argp1; + arg1 = (FeeCalcFunc)jarg1; result = (FeeCalcFunc *)copy_FeeCalcFuncPtr(arg1); jresult = (void *)result; return jresult; @@ -3544,16 +3477,10 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_FeeCalcFuncPtr(void * jarg1) { SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_FeeCalcFuncPtr_assign(void * jarg1, void * jarg2) { FeeCalcFunc *arg1 = (FeeCalcFunc *) 0 ; - FeeCalcFunc arg2 ; - FeeCalcFunc *argp2 ; + FeeCalcFunc arg2 = (FeeCalcFunc) 0 ; arg1 = (FeeCalcFunc *)jarg1; - argp2 = (FeeCalcFunc *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null FeeCalcFunc", 0); - return ; - } - arg2 = *argp2; + arg2 = (FeeCalcFunc)jarg2; FeeCalcFuncPtr_assign(arg1,arg2); } @@ -3564,12 +3491,8 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_FeeCalcFuncPtr_value(void * jarg1) FeeCalcFunc result; arg1 = (FeeCalcFunc *)jarg1; - result = FeeCalcFuncPtr_value(arg1); - { - FeeCalcFunc * resultptr = (FeeCalcFunc *) malloc(sizeof(FeeCalcFunc)); - memmove(resultptr, &result, sizeof(FeeCalcFunc)); - jresult = resultptr; - } + result = (FeeCalcFunc)FeeCalcFuncPtr_value(arg1); + jresult = (void *)result; return jresult; } @@ -5440,6 +5363,72 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_HashBody__SWIG } +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalSlices(void * jarg1, void * jarg2, int jarg3) { + int jresult ; + GoSlice *arg1 = (GoSlice *) 0 ; + GoSlice *arg2 = (GoSlice *) 0 ; + int arg3 ; + int result; + + arg1 = (GoSlice *)jarg1; + arg2 = (GoSlice *)jarg2; + arg3 = (int)jarg3; + result = (int)equalSlices(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalTransactions(void * jarg1, void * jarg2) { + int jresult ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + coin__Transaction *arg2 = (coin__Transaction *) 0 ; + int result; + + arg1 = (coin__Transaction *)jarg1; + arg2 = (coin__Transaction *)jarg2; + result = (int)equalTransactions(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalTransactionsArrays(GoSlice_ * jarg1, GoSlice_ * jarg2) { + int jresult ; + coin__Transactions *arg1 = (coin__Transactions *) 0 ; + coin__Transactions *arg2 = (coin__Transactions *) 0 ; + int result; + + arg1 = (coin__Transactions *)jarg1; + arg2 = (coin__Transactions *)jarg2; + result = (int)equalTransactionsArrays(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalBlockHeaders(void * jarg1, void * jarg2) { + int jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + coin__BlockHeader *arg2 = (coin__BlockHeader *) 0 ; + int result; + + arg1 = (coin__BlockHeader *)jarg1; + arg2 = (coin__BlockHeader *)jarg2; + result = (int)equalBlockHeaders(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_destroy_cipher_SecKeys(void * jarg1) { + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + + arg1 = (cipher_SecKeys *)jarg1; + destroy_cipher_SecKeys(arg1); +} + + SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_PubKey_isEqual(void * jarg1, void * jarg2) { int jresult ; cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; @@ -5784,6 +5773,22 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_Sig(void * jarg1) { } +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_SHA256_getStr(void * jarg1) { + void * jresult ; + cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; + _GoString_ result; + + arg1 = (cipher_SHA256 *)jarg1; + result = cipher_SHA256_getStr(arg1); + { + _GoString_ * resultptr = (_GoString_ *) malloc(sizeof(_GoString_)); + memmove(resultptr, &result, sizeof(_GoString_)); + jresult = resultptr; + } + return jresult; +} + + SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_SHA256_isEqual(void * jarg1, void * jarg2) { int jresult ; cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; @@ -5818,22 +5823,6 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SHA256_assignTo(void * jarg1, } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_SHA256_getStr(void * jarg1) { - void * jresult ; - cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; - _GoString_ result; - - arg1 = (cipher_SHA256 *)jarg1; - result = cipher_SHA256_getStr(arg1); - { - _GoString_ * resultptr = (_GoString_ *) malloc(sizeof(_GoString_)); - memmove(resultptr, &result, sizeof(_GoString_)); - jresult = resultptr; - } - return jresult; -} - - SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher_SHA256_data(void * jarg1, void * jarg2) { cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; GoUint8 *arg2 ; @@ -6586,104 +6575,64 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_Addresses(void * jarg1) } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_FeeCalculator__callback(void * jarg1, void * jarg2) { - FeeCalculator_ *arg1 = (FeeCalculator_ *) 0 ; - FeeCalcFunc arg2 ; - FeeCalculator temp1 ; - FeeCalcFunc *argp2 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_Fee_Calculator_callback(void * jarg1, void * jarg2) { + Fee_Calculator *arg1 = (Fee_Calculator *) 0 ; + FeeCalcFunc arg2 = (FeeCalcFunc) 0 ; - { - if (!PyCallable_Check(jarg1)) return ; - temp1.callback = _WrapperFeeCalculator; - temp1.context = jarg1; - arg1 = &temp1; - } - argp2 = (FeeCalcFunc *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null FeeCalcFunc", 0); - return ; - } - arg2 = *argp2; + arg1 = (Fee_Calculator *)jarg1; + arg2 = (FeeCalcFunc)jarg2; if (arg1) (arg1)->callback = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_FeeCalculator__callback(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_Fee_Calculator_callback(void * jarg1) { void * jresult ; - FeeCalculator_ *arg1 = (FeeCalculator_ *) 0 ; - FeeCalculator temp1 ; + Fee_Calculator *arg1 = (Fee_Calculator *) 0 ; FeeCalcFunc result; - { - if (!PyCallable_Check(jarg1)) return ; - temp1.callback = _WrapperFeeCalculator; - temp1.context = jarg1; - arg1 = &temp1; - } - result = ((arg1)->callback); - { - FeeCalcFunc * resultptr = (FeeCalcFunc *) malloc(sizeof(FeeCalcFunc)); - memmove(resultptr, &result, sizeof(FeeCalcFunc)); - jresult = resultptr; - } + arg1 = (Fee_Calculator *)jarg1; + result = (FeeCalcFunc) ((arg1)->callback); + jresult = (void *)result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_FeeCalculator__context(void * jarg1, void * jarg2) { - FeeCalculator_ *arg1 = (FeeCalculator_ *) 0 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_Fee_Calculator_context(void * jarg1, void * jarg2) { + Fee_Calculator *arg1 = (Fee_Calculator *) 0 ; void *arg2 = (void *) 0 ; - FeeCalculator temp1 ; - { - if (!PyCallable_Check(jarg1)) return ; - temp1.callback = _WrapperFeeCalculator; - temp1.context = jarg1; - arg1 = &temp1; - } + arg1 = (Fee_Calculator *)jarg1; arg2 = (void *)jarg2; if (arg1) (arg1)->context = arg2; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_FeeCalculator__context(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_get_Fee_Calculator_context(void * jarg1) { void * jresult ; - FeeCalculator_ *arg1 = (FeeCalculator_ *) 0 ; - FeeCalculator temp1 ; + Fee_Calculator *arg1 = (Fee_Calculator *) 0 ; void *result = 0 ; - { - if (!PyCallable_Check(jarg1)) return ; - temp1.callback = _WrapperFeeCalculator; - temp1.context = jarg1; - arg1 = &temp1; - } + arg1 = (Fee_Calculator *)jarg1; result = (void *) ((arg1)->context); jresult = (void *)result; return jresult; } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_FeeCalculator_() { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_Fee_Calculator() { void * jresult ; - FeeCalculator_ *result = 0 ; + Fee_Calculator *result = 0 ; - result = (FeeCalculator_ *)calloc(1, sizeof(FeeCalculator_)); + result = (Fee_Calculator *)calloc(1, sizeof(Fee_Calculator)); jresult = (void *)result; return jresult; } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_FeeCalculator_(void * jarg1) { - FeeCalculator_ *arg1 = (FeeCalculator_ *) 0 ; - FeeCalculator temp1 ; +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_Fee_Calculator(void * jarg1) { + Fee_Calculator *arg1 = (Fee_Calculator *) 0 ; - { - if (!PyCallable_Check(jarg1)) return ; - temp1.callback = _WrapperFeeCalculator; - temp1.context = jarg1; - arg1 = &temp1; - } + arg1 = (Fee_Calculator *)jarg1; free((char *) arg1); } @@ -14137,20 +14086,6 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_api__NetworkConnectionsFilter( } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher__Address_isEqual(void * jarg1, void * jarg2) { - int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - int result; - - arg1 = (cipher__Address *)jarg1; - arg2 = (cipher__Address *)jarg2; - result = (int)cipher__Address_isEqual(arg1,arg2); - jresult = result; - return jresult; -} - - SWIGEXPORT char SWIGSTDCALL CSharp_skycoin_cipher__Address_getVersion(void * jarg1) { char jresult ; cipher__Address *arg1 = (cipher__Address *) 0 ; @@ -14173,6 +14108,20 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher__Address_setVersion(void * jar } +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher__Address_isEqual(void * jarg1, void * jarg2) { + int jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + int result; + + arg1 = (cipher__Address *)jarg1; + arg2 = (cipher__Address *)jarg2; + result = (int)cipher__Address_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher__Address_Version(void * jarg1, unsigned char jarg2) { cipher__Address *arg1 = (cipher__Address *) 0 ; GoUint8_ arg2 ; @@ -14751,20 +14700,6 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cli__SendAmount(void * jarg1) } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__Transaction_isEqual(void * jarg1, void * jarg2) { - int jresult ; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - coin__Transaction *arg2 = (coin__Transaction *) 0 ; - int result; - - arg1 = (coin__Transaction *)jarg1; - arg2 = (coin__Transaction *)jarg2; - result = (int)coin__Transaction_isEqual(arg1,arg2); - jresult = result; - return jresult; -} - - SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__Transaction_setInnerHash(void * jarg1, void * jarg2) { int jresult ; coin__Transaction *arg1 = (coin__Transaction *) 0 ; @@ -14801,6 +14736,36 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Transaction_GetInnerHash(void } +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__Transaction_isEqual(void * jarg1, void * jarg2) { + int jresult ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + coin__Transaction *arg2 = (coin__Transaction *) 0 ; + int result; + + arg1 = (coin__Transaction *)jarg1; + arg2 = (coin__Transaction *)jarg2; + result = (int)coin__Transaction_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Transaction_getInnerHash(void * jarg1) { + void * jresult ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + cipher_SHA256 result; + + arg1 = (coin__Transaction *)jarg1; + result = coin__Transaction_getInnerHash(arg1); + { + cipher_SHA256 * resultptr = (cipher_SHA256 *) malloc(sizeof(cipher_SHA256)); + memmove(resultptr, &result, sizeof(cipher_SHA256)); + jresult = resultptr; + } + return jresult; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__Transaction_Length(void * jarg1, int jarg2) { coin__Transaction *arg1 = (coin__Transaction *) 0 ; GoInt32_ arg2 ; diff --git a/Makefile b/Makefile index 156c31a0..df99f299 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ SKYCOIN_DIR = gopath/src/github.com/skycoin/skycoin SKYBUILD_DIR = $(SKYCOIN_DIR)/build BUILDLIBC_DIR = $(SKYBUILD_DIR)/libskycoin LIBC_DIR = $(SKYCOIN_DIR)/lib/cgo -LIBSWIG_DIR = $(SKYCOIN_DIR)/lib/swig +LIBSWIG_DIR = swig BUILD_DIR = build BIN_DIR = $(SKYCOIN_DIR)/bin INCLUDE_DIR = $(SKYCOIN_DIR)/include diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index 98a0b52d..3c8b053a 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit 98a0b52d545e383511aee88450892a80a7b045b2 +Subproject commit 3c8b053a2e897cec2af8ece19ebe69d11d2d847c diff --git a/swig/csharp_java_basic.i b/swig/csharp_java_basic.i new file mode 100644 index 00000000..6eef6d60 --- /dev/null +++ b/swig/csharp_java_basic.i @@ -0,0 +1,786 @@ + +%inline %{ +#include "json.h" + //Define function SKY_handle_close to avoid including libskycoin.h + void SKY_handle_close(Handle p0); + + GoUint32_ zeroFeeCalculator(Transaction__Handle handle, GoUint64_ *pFee, void* context){ + *pFee = 0; + return 0; +} + + GoUint32_ calcFeeCalculator(Transaction__Handle handle, GoUint64_ *pFee, void* context){ + *pFee = 1; + return 0; +} + + GoUint32_ fix121FeeCalculator(Transaction__Handle handle, GoUint64_ *pFee, void* context){ + *pFee = 121; + return 0; +} + + GoUint32_ badFeeCalculator(Transaction__Handle handle, GoUint64_ *pFee, void* context){ + return 0x7FFFFFFF; +} + +GoUint32_ overflowFeeCalculator(Transaction__Handle handle, GoUint64_ *pFee, void *context) +{ + *pFee = 0xFFFFFFFFFFFFFFFF; + return 0; +} + +FeeCalculator feeCalc(){ + FeeCalculator feeCalc = {zeroFeeCalculator, NULL}; + return feeCalc; +} + +FeeCalculator fix121(){ + FeeCalculator feeCalc = {fix121FeeCalculator, NULL}; + return feeCalc; +} + +FeeCalculator badCalc(){ + FeeCalculator feeCalc = {badFeeCalculator, NULL}; + return feeCalc; +} + +FeeCalculator calcCalc(){ + FeeCalculator feeCalc = {calcFeeCalculator, NULL}; + return feeCalc; +} + +FeeCalculator overflow(){ + FeeCalculator feeCalc = {overflowFeeCalculator, NULL}; + return feeCalc; +} + int MEMPOOLIDX = 0; + void *MEMPOOL[1024 * 256]; + + int JSONPOOLIDX = 0; + json_value *JSON_POOL[128]; + + int HANDLEPOOLIDX = 0; + Handle HANDLE_POOL[128]; + + typedef struct + { + Client__Handle client; + WalletResponse__Handle wallet; + } wallet_register; + + int WALLETPOOLIDX = 0; + wallet_register WALLET_POOL[64]; + + int stdout_backup; + int pipefd[2]; + + void *registerMemCleanup(void *p) + { + int i; + for (i = 0; i < MEMPOOLIDX; i++) + { + if (MEMPOOL[i] == NULL) + { + MEMPOOL[i] = p; + return p; + } + } + MEMPOOL[MEMPOOLIDX++] = p; + return p; + } + + void freeRegisteredMemCleanup(void *p) + { + int i; + for (i = 0; i < MEMPOOLIDX; i++) + { + if (MEMPOOL[i] == p) + { + free(p); + MEMPOOL[i] = NULL; + break; + } + } + } + + int registerJsonFree(void *p) + { + int i; + for (i = 0; i < JSONPOOLIDX; i++) + { + if (JSON_POOL[i] == NULL) + { + JSON_POOL[i] = p; + return i; + } + } + JSON_POOL[JSONPOOLIDX++] = p; + return JSONPOOLIDX - 1; + } + + void freeRegisteredJson(void *p) + { + int i; + for (i = 0; i < JSONPOOLIDX; i++) + { + if (JSON_POOL[i] == p) + { + JSON_POOL[i] = NULL; + json_value_free((json_value *)p); + break; + } + } + } + + int registerWalletClean(Client__Handle clientHandle, + WalletResponse__Handle walletHandle) + { + int i; + for (i = 0; i < WALLETPOOLIDX; i++) + { + if (WALLET_POOL[i].wallet == 0 && WALLET_POOL[i].client == 0) + { + WALLET_POOL[i].wallet = walletHandle; + WALLET_POOL[i].client = clientHandle; + return i; + } + } + WALLET_POOL[WALLETPOOLIDX].wallet = walletHandle; + WALLET_POOL[WALLETPOOLIDX].client = clientHandle; + return WALLETPOOLIDX++; + } + + int registerHandleClose(Handle handle) + { + int i; + for (i = 0; i < HANDLEPOOLIDX; i++) + { + if (HANDLE_POOL[i] == 0) + { + HANDLE_POOL[i] = handle; + return i; + } + } + HANDLE_POOL[HANDLEPOOLIDX++] = handle; + return HANDLEPOOLIDX - 1; + } + + void closeRegisteredHandle(Handle handle) + { + int i; + for (i = 0; i < HANDLEPOOLIDX; i++) + { + if (HANDLE_POOL[i] == handle) + { + HANDLE_POOL[i] = 0; + SKY_handle_close(handle); + break; + } + } + } +#include +#include +#include +#include +#include + void cleanupWallet(Client__Handle client, WalletResponse__Handle wallet) + { + int result; + GoString_ strWalletDir; + GoString_ strFileName; + memset(&strWalletDir, 0, sizeof(GoString_)); + memset(&strFileName, 0, sizeof(GoString_)); + + result = SKY_api_Handle_Client_GetWalletDir(client, &strWalletDir); + if (result != 0) + { + return; + } + result = SKY_api_Handle_Client_GetWalletFileName(wallet, &strFileName); + if (result != 0) + { + free((void *)strWalletDir.p); + return; + } + char fullPath[128]; + if (strWalletDir.n + strFileName.n < 126) + { + strcpy(fullPath, strWalletDir.p); + if (fullPath[0] == 0 || fullPath[strlen(fullPath) - 1] != '/') + strcat(fullPath, "/"); + strcat(fullPath, strFileName.p); + result = unlink(fullPath); + if (strlen(fullPath) < 123) + { + strcat(fullPath, ".bak"); + result = unlink(fullPath); + } + } + GoString str = {strFileName.p, strFileName.n}; + result = SKY_api_Client_UnloadWallet(client, str); + GoString strFullPath = {fullPath, strlen(fullPath)}; + free((void *)strWalletDir.p); + free((void *)strFileName.p); + } + + void cleanRegisteredWallet( + Client__Handle client, + WalletResponse__Handle wallet) + { + + int i; + for (i = 0; i < WALLETPOOLIDX; i++) + { + if (WALLET_POOL[i].wallet == wallet && WALLET_POOL[i].client == client) + { + WALLET_POOL[i].wallet = 0; + WALLET_POOL[i].client = 0; + cleanupWallet(client, wallet); + return; + } + } + } + + void cleanupMem() + { + int i; + + for (i = 0; i < WALLETPOOLIDX; i++) + { + if (WALLET_POOL[i].client != 0 && WALLET_POOL[i].wallet != 0) + { + cleanupWallet(WALLET_POOL[i].client, WALLET_POOL[i].wallet); + } + } + + void **ptr; + for (i = MEMPOOLIDX, ptr = MEMPOOL; i; --i) + { + if (*ptr) + free(*ptr); + ptr++; + } + for (i = JSONPOOLIDX, ptr = (void *)JSON_POOL; i; --i) + { + if (*ptr) + json_value_free(*ptr); + ptr++; + } + for (i = 0; i < HANDLEPOOLIDX; i++) + { + if (HANDLE_POOL[i]) + SKY_handle_close(HANDLE_POOL[i]); + } + } + + void setup(void) + { + srand((unsigned int)time(NULL)); + } + + void teardown(void) + { + cleanupMem(); + } + + // TODO: Move to libsky_io.c + void fprintbuff(FILE * f, void *buff, size_t n) + { + unsigned char *ptr = (unsigned char *)buff; + fprintf(f, "[ "); + for (; n; --n, ptr++) + { + fprintf(f, "%02d ", *ptr); + } + fprintf(f, "]"); + } + + int parseBoolean(const char *str, int length) + { + int result = 0; + if (length == 1) + { + result = str[0] == '1' || str[0] == 't' || str[0] == 'T'; + } + else + { + result = strncmp(str, "true", length) == 0 || + strncmp(str, "True", length) == 0 || + strncmp(str, "TRUE", length) == 0; + } + return result; + } + + void toGoString(GoString_ * s, GoString * r) + { + GoString *tmp = r; + + *tmp = (*(GoString *)s); + } + + int copySlice(GoSlice_ * pdest, GoSlice_ * psource, int elem_size) + { + pdest->len = psource->len; + pdest->cap = psource->len; + int size = pdest->len * elem_size; + pdest->data = malloc(size); + if (pdest->data == NULL) + return 1; + registerMemCleanup(pdest->data); + memcpy(pdest->data, psource->data, size); + return 0; + } + + int concatSlices(GoSlice_ * slice1, GoSlice_ * slice2, int elem_size, GoSlice_ *result) + { + int size1 = slice1->len; + int size2 = slice2->len; + int size = size1 + size2; + if (size <= 0) + return 1; + void *data = malloc(size * elem_size); + if (data == NULL) + return 1; + registerMemCleanup(data); + result->data = data; + result->len = size; + result->cap = size; + char *p = data; + if (size1 > 0) + { + memcpy(p, slice1->data, size1 * elem_size); + p += (elem_size * size1); + } + if (size2 > 0) + { + memcpy(p, slice2->data, size2 * elem_size); + } + return 0; + } + void parseJsonMetaData(char *metadata, long long *n, long long *r, long long *p, long long *keyLen) + { + *n = *r = *p = *keyLen = 0; + int length = strlen(metadata); + int openingQuote = -1; + const char *keys[] = {"n", "r", "p", "keyLen"}; + int keysCount = 4; + int keyIndex = -1; + int startNumber = -1; + int i; + int k; + for (i = 0; i < length; i++) + { + if (metadata[i] == '\"') + { + startNumber = -1; + if (openingQuote >= 0) + { + keyIndex = -1; + metadata[i] = 0; + for (k = 0; k < keysCount; k++) + { + if (strcmp(metadata + openingQuote + 1, keys[k]) == 0) + { + keyIndex = k; + } + } + openingQuote = -1; + } + else + { + openingQuote = i; + } + } + else if (metadata[i] >= '0' && metadata[i] <= '9') + { + if (startNumber < 0) + startNumber = i; + } + else if (metadata[i] == ',') + { + if (startNumber >= 0) + { + metadata[i] = 0; + int number = atoi(metadata + startNumber); + startNumber = -1; + if (keyIndex == 0) + *n = number; + else if (keyIndex == 1) + *r = number; + else if (keyIndex == 2) + *p = number; + else if (keyIndex == 3) + *keyLen = number; + } + } + else + { + startNumber = -1; + } + } + } + + int cutSlice(GoSlice_ * slice, int start, int end, int elem_size, GoSlice_ *result) + { + int size = end - start; + if (size <= 0) + return 1; + void *data = malloc(size * elem_size); + if (data == NULL) + return 1; + registerMemCleanup(data); + result->data = data; + result->len = size; + result->cap = size; + char *p = slice->data; + p += (elem_size * start); + memcpy(data, p, elem_size * size); + return 0; + } + + coin__Transaction *makeEmptyTransaction(Transaction__Handle * handle) + { + int result; + coin__Transaction *ptransaction = NULL; + result = SKY_coin_Create_Transaction(handle); + registerHandleClose(*handle); + result = SKY_coin_GetTransactionObject(*handle, &ptransaction); + return ptransaction; + } + int makeUxBodyWithSecret(coin__UxBody * puxBody, cipher__SecKey * pseckey) + { + cipher__PubKey pubkey; + cipher__Address address; + int result; + + memset(puxBody, 0, sizeof(coin__UxBody)); + puxBody->Coins = 1000000; + puxBody->Hours = 100; + + result = SKY_cipher_GenerateKeyPair(&pubkey, pseckey); + if (result != 0) + { + return 1; + } + + GoSlice slice; + memset(&slice, 0, sizeof(GoSlice)); + cipher__SHA256 hash; + + result = SKY_cipher_RandByte(128, (coin__UxArray *)&slice); + registerMemCleanup(slice.data); + if (result != 0) + { + return 1; + } + result = SKY_cipher_SumSHA256(slice, &puxBody->SrcTransaction); + if (result != 0) + { + return 1; + } + + result = SKY_cipher_AddressFromPubKey(&pubkey, &puxBody->Address); + if (result != 0) + { + return 1; + } + return result; + } + int makeUxOutWithSecret(coin__UxOut * puxOut, cipher__SecKey * pseckey) + { + int result; + memset(puxOut, 0, sizeof(coin__UxOut)); + result = makeUxBodyWithSecret(&puxOut->Body, pseckey); + puxOut->Head.Time = 100; + puxOut->Head.BkSeq = 2; + return result; + } + int makeUxOut(coin__UxOut * puxOut) + { + cipher__SecKey seckey; + return makeUxOutWithSecret(puxOut, &seckey); + } + int makeUxArray(coin_UxOutArray * parray, int n) + { + parray->data = malloc(sizeof(coin__UxOut) * n); + if (!parray->data) + return 1; + registerMemCleanup(parray->data); + parray->count = parray->count = n; + coin__UxOut *p = (coin__UxOut *)parray->data; + int result = 0; + int i; + for (i = 0; i < n; i++) + { + result = makeUxOut(p); + if (result != 0) + break; + p++; + } + return result; + } + int makeAddress(cipher__Address * paddress) + { + cipher__PubKey pubkey; + cipher__SecKey seckey; + cipher__Address address; + int result; + + result = SKY_cipher_GenerateKeyPair(&pubkey, &seckey); + if (result != 0) + return 1; + + result = SKY_cipher_AddressFromPubKey(&pubkey, paddress); + if (result != 0) + return 1; + return result; + } + coin__Transaction *makeTransactionFromUxOut(coin__UxOut * puxOut, cipher__SecKey * pseckey, Transaction__Handle * handle) + { + int result; + coin__Transaction *ptransaction = NULL; + result = SKY_coin_Create_Transaction(handle); + // cr_assert(result == SKY_OK, "SKY_coin_Create_Transaction failed"); + registerHandleClose(*handle); + result = SKY_coin_GetTransactionObject(*handle, &ptransaction); + // cr_assert(result == SKY_OK, "SKY_coin_GetTransactionObject failed"); + cipher__SHA256 sha256; + result = SKY_coin_UxOut_Hash(puxOut, &sha256); + // cr_assert(result == SKY_OK, "SKY_coin_UxOut_Hash failed"); + GoUint16 r; + result = SKY_coin_Transaction_PushInput(*handle, &sha256, &r); + // cr_assert(result == SKY_OK, "SKY_coin_Transaction_PushInput failed"); + + cipher__Address address1, address2; + result = makeAddress(&address1); + // cr_assert(result == SKY_OK, "makeAddress failed"); + result = makeAddress(&address2); + // cr_assert(result == SKY_OK, "makeAddress failed"); + + result = SKY_coin_Transaction_PushOutput(*handle, &address1, 1000000, 50); + // cr_assert(result == SKY_OK, "SKY_coin_Transaction_PushOutput failed"); + result = SKY_coin_Transaction_PushOutput(*handle, &address2, 5000000, 50); + // cr_assert(result == SKY_OK, "SKY_coin_Transaction_PushOutput failed"); + + GoSlice secKeys = {pseckey, 1, 1}; + result = SKY_coin_Transaction_SignInputs(*handle, secKeys); + // cr_assert(result == SKY_OK, "SKY_coin_Transaction_SignInputs failed"); + result = SKY_coin_Transaction_UpdateHeader(*handle); + // cr_assert(result == SKY_OK, "SKY_coin_Transaction_UpdateHeader failed"); + return ptransaction; + } + + coin__Transaction *makeTransaction(Transaction__Handle * handle) + { + int result; + coin__UxOut uxOut; + cipher__SecKey seckey; + coin__Transaction *ptransaction = NULL; + result = makeUxOutWithSecret(&uxOut, &seckey); + ptransaction = makeTransactionFromUxOut(&uxOut, &seckey, handle); + return ptransaction; + } + + int makeTransactions(int n, Transactions__Handle *handle) + { + int result = SKY_coin_Create_Transactions(handle); + if (result != 0) + return 1; + registerHandleClose(*handle); + int i; + for (i = 0; i < n; i++) + { + Transaction__Handle thandle; + makeTransaction(&thandle); + registerHandleClose(thandle); + result = SKY_coin_Transactions_Add(*handle, thandle); + if (result != 0) + return 1; + } + return result; + } + + // Base 64 + + int b64_int(unsigned int ch) + { + // ASCII to base64_int + // 65-90 Upper Case >> 0-25 + // 97-122 Lower Case >> 26-51 + // 48-57 Numbers >> 52-61 + // 43 Plus (+) >> 62 + // 47 Slash (/) >> 63 + // 61 Equal (=) >> 64~ + if (ch == 43) + return 62; + if (ch == 47) + return 63; + if (ch == 61) + return 64; + if ((ch > 47) && (ch < 58)) + return ch + 4; + if ((ch > 64) && (ch < 91)) + return ch - 'A'; + if ((ch > 96) && (ch < 123)) + return (ch - 'a') + 26; + return -1; + } + + int b64_decode(const unsigned char *in, unsigned int in_len, unsigned char *out) + { + + unsigned int i = 0, j = 0, k = 0, s[4]; + for (i = 0; i < in_len; i++) + { + int n = b64_int(*(in + i)); + if (n < 0) + return -1; + s[j++] = n; + if (j == 4) + { + out[k + 0] = ((s[0] & 255) << 2) + ((s[1] & 0x30) >> 4); + if (s[2] != 64) + { + out[k + 1] = ((s[1] & 0x0F) << 4) + ((s[2] & 0x3C) >> 2); + if ((s[3] != 64)) + { + out[k + 2] = ((s[2] & 0x03) << 6) + (s[3]); + k += 3; + } + else + { + k += 2; + } + } + else + { + k += 1; + } + j = 0; + } + } + + return k; + } + + int DecodeBase64(GoSlice encrypted, GoString_ * outs) + { + char encryptedText[1024]; + int decode_length = b64_decode((unsigned char *)encrypted.data, + encrypted.len, encryptedText); + + outs->p=encryptedText; + outs->n = decode_length; + return decode_length; + } + +int putUvarint(GoSlice* buf , GoUint64 x){ + int i = 0; + while( x >= 0x80 && i < buf->cap) { + ((unsigned char*)buf->data)[i] = ((GoUint8)x) | 0x80; + x >>= 7; + i++; + } + if( i < buf->cap ){ + ((unsigned char*)buf->data)[i] = (GoUint8)(x); + buf->len = i + 1; + } else { + buf->len = i; + } + return buf->len; +} + +int putVarint(GoSlice* buf , GoInt64 x){ + GoUint64 ux = (GoUint64)x << 1; + if ( x < 0 ) { + ux = ~ux; + } + return putUvarint(buf, ux); +} + +void hashKeyIndexNonce(GoSlice_ key, GoInt64 index, + cipher__SHA256 *nonceHash, cipher__SHA256 *resultHash){ + GoUint32 errcode; + int length = 32 + sizeof(cipher__SHA256); + unsigned char buff[length]; + GoSlice slice = {buff, 0, length}; + memset(buff, 0, length * sizeof(char)); + putVarint( &slice, index ); + memcpy(buff + 32, *nonceHash, sizeof(cipher__SHA256)); + slice.len = length; + cipher__SHA256 indexNonceHash; + errcode = SKY_cipher_SumSHA256(slice, &indexNonceHash); + SKY_cipher_AddSHA256(key.data, &indexNonceHash, resultHash); +} + +void makeEncryptedData(GoSlice data, GoUint32 dataLength, GoSlice pwd, coin__UxArray* encrypted){ + GoUint32 fullLength = dataLength + 4; + GoUint32 n = fullLength / 32; + GoUint32 m = fullLength % 32; + GoUint32 errcode; + + if( m > 0 ){ + fullLength += 32 - m; + } + if(32 == sizeof(cipher__SHA256)){ return ;} + fullLength += 32; + char* buffer = malloc(fullLength); + if(buffer != NULL){return;} + //Add data length to the beginning, saving space for the checksum + int i; + for(i = 0; i < 4; i++){ + int shift = i * 8; + buffer[i + 32] = (dataLength & (0xFF << shift)) >> shift; + } + //Add the data + memcpy(buffer + 4 + 32, + data.data, dataLength); + //Add padding + for(i = dataLength + 4 + 32; i < fullLength; i++){ + buffer[i] = 0; + } + //Buffer with space for the checksum, then data length, then data, and then padding + GoSlice _data = {buffer + 32, + fullLength - 32, + fullLength - 32}; + //GoSlice _hash = {buffer, 0, 32}; + errcode = SKY_cipher_SumSHA256(_data, (cipher__SHA256*)buffer); + char bufferNonce[32]; + GoSlice sliceNonce = {bufferNonce, 0, 32}; + randBytes(&sliceNonce, 32); + cipher__SHA256 hashNonce; + errcode = SKY_cipher_SumSHA256(sliceNonce, &hashNonce); + char bufferHash[1024]; + coin__UxArray hashPassword = {bufferHash, 0, 1024}; + errcode = SKY_secp256k1_Secp256k1Hash(pwd, &hashPassword); + cipher__SHA256 h; + + + int fullDestLength = fullLength + sizeof(cipher__SHA256) + 32; + int destBufferStart = sizeof(cipher__SHA256) + 32; + unsigned char* dest_buffer = malloc(fullDestLength); + if(dest_buffer != NULL){return;} + for(i = 0; i < n; i++){ + hashKeyIndexNonce(hashPassword, i, &hashNonce, &h); + cipher__SHA256* pBuffer = (cipher__SHA256*)(buffer + i *32); + cipher__SHA256* xorResult = (cipher__SHA256*)(dest_buffer + destBufferStart + i *32); + SKY_cipher_SHA256_Xor(pBuffer, &h, xorResult); + } + // Prefix the nonce + memcpy(dest_buffer + sizeof(cipher__SHA256), bufferNonce, 32); + // Calculates the checksum + GoSlice nonceAndDataBytes = {dest_buffer + sizeof(cipher__SHA256), + fullLength + 32, + fullLength + 32 + }; + cipher__SHA256* checksum = (cipher__SHA256*)dest_buffer; + errcode = SKY_cipher_SumSHA256(nonceAndDataBytes, checksum); + unsigned char bufferb64[1024]; + unsigned int size = b64_encode((const unsigned char*)dest_buffer, fullDestLength, encrypted->data); + encrypted->len = size; +} + +void convertGoUint8toSHA256(GoUint8_* __in, cipher_SHA256* __out){ +memcpy(__out->data, __in, 32); +} + %} diff --git a/swig/csharp_java_callback.i b/swig/csharp_java_callback.i new file mode 100644 index 00000000..060636a2 --- /dev/null +++ b/swig/csharp_java_callback.i @@ -0,0 +1,37 @@ +%{ + +GoUint32_ _WrapperFeeCalculator(Transaction__Handle handle, GoUint64_* pFee, void* context){ + FeeCalcFunc* feeCalc = (FeeCalcFunc*)context; + int *result = callFeeCalculator(feeCalc, handle, pFee); + GoUint32_ error = 0; + if(result != 0) + return error; + return 0; +} +%} + +%typemap(in) FeeCalculator_* (FeeCalculator temp) { + if (!PyCallable_Check($input)) return ; + temp.callback = _WrapperFeeCalculator; + temp.context = $input; + $1 = &temp; +} + + +%define %cs_callback(TYPE, CSTYPE) + %typemap(ctype) TYPE, TYPE& "void*" + %typemap(in) TYPE %{ $1 = (TYPE)$input; %} + %typemap(in) TYPE& %{ $1 = (TYPE*)&$input; %} + %typemap(imtype, out="IntPtr") TYPE, TYPE& "CSTYPE" + %typemap(cstype, out="IntPtr") TYPE, TYPE& "CSTYPE" + %typemap(csin) TYPE, TYPE& "$csinput" +%enddef +%define %cs_callback2(TYPE, CTYPE, CSTYPE) + %typemap(ctype) TYPE "CTYPE" + %typemap(in) TYPE %{ $1 = (TYPE)$input; %} + %typemap(imtype, out="IntPtr") TYPE "CSTYPE" + %typemap(cstype, out="IntPtr") TYPE "CSTYPE" + %typemap(csin) TYPE "$csinput" +%enddef + +%cs_callback2(FeeCalcFunc*,FeeCalcFunc*,FeeCalcFunc*) \ No newline at end of file diff --git a/swig/csharp_java_typemap.i b/swig/csharp_java_typemap.i new file mode 100644 index 00000000..74e4995f --- /dev/null +++ b/swig/csharp_java_typemap.i @@ -0,0 +1,105 @@ + +/* Handle not as pointer is input. */ +%typemap(in) Handle { + $input = (long*)&$1; +} +%typemap(in) Handle* { + $input = (long*)&$1; +} +%include "arrays_csharp.i" +%include "typemaps.i" +%include cpointer.i +%pointer_functions(GoSlice, GoSlicep); +%pointer_functions(GoUint8_, GoUint8Ptr); +%pointer_functions(_GoString_, GoStringp); +%pointer_functions(int, intp); +%pointer_functions(coin__Transaction, coin__Transactionp); +%pointer_functions(AddressUxOuts_Handle, AddressUxOuts__HandlePtr); +%pointer_functions(unsigned long long, GoUint64p); +%pointer_functions(long long, Gointp); +%pointer_functions(unsigned short, GoUint16p); +%pointer_functions(cipher__Address, cipher__Addressp); +%pointer_functions(Transactions__Handle, Transactions__Handlep); +%pointer_functions(Transaction__Handle, Transaction__Handlep); +%pointer_functions(Block__Handle,Block__HandlePtr); +%pointer_functions(BlockBody__Handle,BlockBody__HandlePtr); +%pointer_functions(Signature_Handle,Signature_HandlePtr); +%pointer_functions(Number_Handle,Number_HandlePtr); +%pointer_functions(unsigned char, CharPtr); +%pointer_functions(FeeCalculator, FeeCalculatorPtr); +%pointer_functions(FeeCalcFunc, FeeCalcFuncPtr); +%pointer_functions(coin__Block*, coin__BlockPtr); + +CSHARP_ARRAYS(int, int) +// CSHARP_ARRAYS(unsigned char, byte) +CSHARP_ARRAYS_FIXED(int, int) +%apply int INPUT[] { int *$imput } + +/*GoString* parameter as reference */ +%typemap(in, numinputs=0) GoString* (GoString temp) { + temp.p = NULL; + temp.n = 0; + $1 = ($1_type)&temp; +} + +/** +* Import library +**/ +%include "typemaps.i" +// Pubkey +%typemap(ctype,pre="cipher_PubKey tmp$csinput = new_cipher_PubKeyp();") (GoUint8_ (*) [33]) "cipher__PubKey*" +%typemap(cstype,pre="var tmp$csinput = cipher_PubKey.getCPtr ($csinput);") (GoUint8_ (*) [33]) "cipher_PubKey" +%typemap(csin,pre="var tmp$csinput = cipher_PubKey.getCPtr ($csinput);") (GoUint8_ (*) [33]) "tmp$csinput" + + +// Seckey +%typemap(ctype,pre="cipher_SecKey tmp$csinput = new_cipher_SecKeyp();") (GoUint8_ (*) [32]) "cipher_SecKey*" +%typemap(cstype,pre=" var tmp$csinput = cipher_SecKey.getCPtr ($csinput);") (GoUint8_ (*) [32]) "cipher_SecKey" +%typemap(csin,pre="var tmp$csinput = cipher_SecKey.getCPtr ($csinput);") (GoUint8_ (*) [32]) "tmp$csinput" + +// Sig +%typemap(ctype,pre="cipher_Sig tmp$csinput = new cipher_Sig();") (GoUint8_ (*) [65]) "cipher_Sig*" +%typemap(cstype,pre=" var tmp$csinput = cipher_Sig.getCPtr ($csinput);") (GoUint8_ (*) [65]) "cipher_Sig" +%typemap(csin,pre="var tmp$csinput = cipher_Sig.getCPtr ($csinput);") (GoUint8_ (*) [65]) "tmp$csinput" + +// cipher__Ripemd160 +%typemap(ctype,pre="cipher__Ripemd160 tmp$csinput = new_cipher_Ripemd160p();") (GoUint8_ (*) [20]) "cipher_Ripemd160*" +%typemap(cstype,pre=" var tmp$csinput = cipher_Ripemd160.getCPtr ($csinput);") (GoUint8_ (*) [20]) "cipher_Ripemd160" +%typemap(csin,pre="var tmp$csinput = cipher_Ripemd160.getCPtr ($csinput);") (GoUint8_ (*) [20]) "tmp$csinput" + + +// GoString +%typemap(cstype,pre=" var tmp$csinput = $csinput;") GoString "string" +%typemap(csin,pre="var tmp$csinput = $csinput;") GoString "tmp$csinput" +%typemap(imtype,pre="var tmp$csinput = $csinput;") GoString "string" +%typemap(ctype) GoString "char*" +%typemap(in) GoString "$1.p=$input;$1.n=strlen($input);" + +%typemap(ctype,pre="GoString_ tmp$csinput = new_GoStringp_();") GoString_* "GoString*" +%typemap(cstype,pre=" var tmp$csinput = _GoString_.getCPtr ($csinput);") GoString_* "_GoString_" +%typemap(csin,pre="var tmp$csinput = _GoString_.getCPtr ($csinput);") GoString_* "tmp$csinput" + +// GoSlice +%typemap(ctype) GoSlice_* "GoSlice_ *" +%typemap(cstype,pre=" var tmp$csinput = GoSlice.getCPtr ($csinput);") GoSlice_* "GoSlice" +%typemap(csin) GoSlice_* "GoSlice.getCPtr ($csinput)" + +%apply unsigned short {GoUint16, GoUint16_}; +%apply unsigned long {GoUintptr, __SIZE_TYPE__}; +%apply short {GoInt16, GoInt16_}; +%apply unsigned char {GoUint8_, GoUint8}; +%apply unsigned int {GoUint32_, GoUint32}; +%apply signed char {GoInt8_, GoInt8}; +%apply unsigned long long {GoUint64, GoUint64_,GoUint,GoUint_}; +%apply long long {GoInt64, GoInt64_,GoInt_, GoInt }; +%apply GoSlice_* {coin__UxArray*,GoSlice_**}; +%apply int {GoInt32,GoInt32_,ptrdiff_t}; +%apply int* {GoInt32*,GoInt32_*,ptrdiff_t*}; +%apply float {GoFloat32}; +%apply double {GoFloat64}; + + +%typemap(freearg) (cipher_PubKeys* __in_pubKeys) { + if ($1->data) free($1->data); +} + diff --git a/swig/csharp_skycoin.mem.i b/swig/csharp_skycoin.mem.i new file mode 100644 index 00000000..80724f01 --- /dev/null +++ b/swig/csharp_skycoin.mem.i @@ -0,0 +1,538 @@ +%rename(SKY_cipher_SumSHA256) CSharp_skycoin_SKY_cipher_SumSHA256; +%inline { + GoUint32 CSharp_skycoin_SKY_cipher_SumSHA256(GoSlice seed, cipher_SHA256* sha){ + GoUint32 result = SKY_cipher_SumSHA256(seed, sha); + return result; + } +} + +%rename(SKY_cipher_SignHash) CSharp_skycoin_SKY_cipher_SignHash; +%inline { + GoUint32 CSharp_skycoin_SKY_cipher_SignHash(cipher_SHA256 *sha,cipher__SecKey *sec,cipher_Sig *s){ + GoUint32 result = SKY_cipher_SignHash(sha,sec,s); + return result; + } +} + + +%rename(SKY_cipher_PubKeyFromSig) CSharp_skycoin_SKY_cipher_PubKeyFromSig; +%inline { + GoUint32 CSharp_skycoin_SKY_cipher_PubKeyFromSig(cipher_Sig *sig,cipher_SHA256 *h,cipher_PubKey *p){ + GoUint32 result = SKY_cipher_PubKeyFromSig(sig,h,p); + return result; + } +} + + +// %rename(SKY_cipher_TestSecKeyHash) CSharp_skycoin_SKY_cipher_TestSecKeyHash; +// %inline { +// GoUint32 CSharp_skycoin_SKY_cipher_TestSecKeyHash(cipher_SecKey *s,cipher_SHA256 *h){ +// GoUint32 result = SKY_cipher_TestSecKeyHash(s,h); +// return result; +// } +// } + +%rename(SKY_cipher_SHA256_Set) CSharp_skycoin_SKY_cipher_SHA256_Set; +%inline { + GoUint32 CSharp_skycoin_SKY_cipher_SHA256_Set(cipher_SHA256 *h,GoSlice s){ + GoUint32 result = SKY_cipher_SHA256_Set(h,s); + return result; + } +} + +%rename(SKY_cipher_SHA256_Hex) CSharp_skycoin_SKY_cipher_SHA256_Hex; +%inline { + GoUint32 CSharp_skycoin_SKY_cipher_SHA256_Hex(cipher_SHA256 *h,GoString_* s){ + GoUint32 result = SKY_cipher_SHA256_Hex(h,s); + return result; + } +} + +%rename(SKY_cipher_SHA256FromHex) CSharp_skycoin_SKY_cipher_SHA256FromHex; +%inline { + GoUint32 CSharp_skycoin_SKY_cipher_SHA256FromHex(GoString s,cipher_SHA256 *h){ + GoUint32 result = SKY_cipher_SHA256FromHex(s,h); + return result; + } +} + +%rename(SKY_coin_Transaction_HashInner) CSharp_skycoin_SKY_coin_Transaction_HashInner; +%inline { + GoUint32 CSharp_skycoin_SKY_coin_Transaction_HashInner(Transaction__Handle tx,cipher_SHA256 *h){ + GoUint32 result = SKY_coin_Transaction_HashInner(tx,h); + return result; + } +} + +%rename(SKY_coin_Transaction_Hash) CSharp_skycoin_SKY_coin_Transaction_Hash; +%inline { + GoUint32 CSharp_skycoin_SKY_coin_Transaction_Hash(Transaction__Handle tx,cipher_SHA256 *h){ + GoUint32 result = SKY_coin_Transaction_Hash(tx,h); + return result; + } +} + +%rename(SKY_coin_Transaction_SetInputAt) CSharp_skycoin_SKY_coin_Transaction_SetInputAt; +%inline { + GoUint32 CSharp_skycoin_SKY_coin_Transaction_SetInputAt(Transaction__Handle tx,GoInt p1,cipher_SHA256 *h){ + GoUint32 result = SKY_coin_Transaction_SetInputAt(tx,p1,h); + return result; + } +} + + + +%rename(SKY_coin_Transaction_GetInputAt) CSharp_skycoin_SKY_coin_Transaction_GetInputAt; +%inline { + GoUint32 CSharp_skycoin_SKY_coin_Transaction_GetInputAt(Transaction__Handle tx, GoInt p1,cipher_SHA256 *h){ + GoUint32 result = SKY_coin_Transaction_GetInputAt(tx,p1,h); + return result; + } +} + +%rename(SKY_coin_Transaction_PushInput) CSharp_skycoin_SKY_coin_Transaction_PushInput; +%inline { + GoUint32 CSharp_skycoin_SKY_coin_Transaction_PushInput(Transaction__Handle tx, cipher_SHA256* h, GoUint16* p1){ + GoUint32 result = SKY_coin_Transaction_PushInput(tx,h,p1); + return result; + } +} + +%rename(SKY_coin_Transaction_SignInputs) CSharp_skycoin_SKY_coin_Transaction_SignInputs; +%inline{ + GoUint32 CSharp_skycoin_SKY_coin_Transaction_SignInputs(Transaction__Handle handle, cipher_SecKeys* __in_pubKeys){ + GoSlice data; + data.data = __in_pubKeys->data; + data.len = __in_pubKeys->count; + data.cap = __in_pubKeys->count; + return SKY_coin_Transaction_SignInputs(handle, data); + } +} + +%rename(SKY_cipher_GenerateDeterministicKeyPairs) CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairs; +%inline { + GoUint32 CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairs(GoSlice seed, GoInt n, cipher_SecKeys* __out_secKeys){ + __out_secKeys->data = NULL; + __out_secKeys->count = 0; + GoSlice_ data; + data.data = malloc(sizeof(cipher_SecKey) * n); + data.len = n; + data.cap = n; + GoUint32 result = SKY_cipher_GenerateDeterministicKeyPairs(seed, n, &data); + if( result == 0){ + __out_secKeys->data = data.data; + __out_secKeys->count = data.len; + } + return result; + } +} + +%rename(SKY_cipher_GenerateDeterministicKeyPairsSeed) CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairsSeed; +%inline { + GoUint32 CSharp_skycoin_SKY_cipher_GenerateDeterministicKeyPairsSeed(GoSlice seed, GoInt n, coin__UxArray* newSeed, cipher_SecKeys* __out_secKeys){ + __out_secKeys->data = NULL; + __out_secKeys->count = 0; + GoSlice_ data; + data.data = malloc(sizeof(cipher_SecKey) * n); + data.len = n; + data.cap = n; + GoUint32 result = SKY_cipher_GenerateDeterministicKeyPairsSeed(seed, n, newSeed, &data); + if( result == 0){ + __out_secKeys->data = data.data; + __out_secKeys->count = data.len; + } + return result; + } +} + + +// %rename(SKY_cipher_PubKeySlice_Swap) CSharp_skycoin_SKY_cipher_PubKeySlice_Swap; +// %inline { +// GoUint32 CSharp_skycoin_SKY_cipher_PubKeySlice_Swap(cipher_PubKeys* __in_pubKeys, GoInt p1, GoInt p2){ +// GoSlice_ data; +// data.data = __in_pubKeys->data; +// data.len = __in_pubKeys->count; +// data.cap = __in_pubKeys->count; +// GoUint32 result = SKY_cipher_PubKeySlice_Swap(&data, p1, p2); +// return result; +// } +// } + +%rename(SKY_coin_VerifyTransactionCoinsSpending) CSharp_skycoin_SKY_coin_VerifyTransactionCoinsSpending; +%inline { + GoUint32 CSharp_skycoin_SKY_coin_VerifyTransactionCoinsSpending(coin_UxOutArray* __uxIn, coin_UxOutArray* __uxOut){ + GoSlice_ dataIn; + dataIn.data = __uxIn->data; + dataIn.len = __uxIn->count; + dataIn.cap = __uxIn->count; + GoSlice_ dataOut; + dataOut.data = __uxOut->data; + dataOut.len = __uxOut->count; + dataOut.cap = __uxOut->count; + GoUint32 result = SKY_coin_VerifyTransactionCoinsSpending(&dataIn, &dataOut); + return result; + }; +} + +%rename(SKY_coin_VerifyTransactionHoursSpending) CSharp_skycoin_SKY_coin_VerifyTransactionHoursSpending; +%inline { + GoUint32 CSharp_skycoin_SKY_coin_VerifyTransactionHoursSpending(GoUint64 _headTime , coin_UxOutArray* __uxIn, coin_UxOutArray* __uxOut){ + GoSlice_ dataIn; + dataIn.data = __uxIn->data; + dataIn.len = __uxIn->count; + dataIn.cap = __uxIn->count; + GoSlice_ dataOut; + dataOut.data = __uxOut->data; + dataOut.len = __uxOut->count; + dataOut.cap = __uxOut->count; + GoUint32 result = SKY_coin_VerifyTransactionHoursSpending(_headTime, &dataIn, &dataOut); + return result; + }; +} + +%rename(SKY_coin_CreateUnspents) CSharp_skycoin_SKY_coin_CreateUnspents; +%inline { + GoUint32 CSharp_skycoin_SKY_coin_CreateUnspents(coin__BlockHeader* bh, Transaction__Handle t, coin_UxOutArray* __return_Ux){ + __return_Ux->data = NULL; + __return_Ux->count = 0; + GoSlice_ data; + data.data = NULL; + data.len = 0; + data.cap = 0; + GoUint32 result = SKY_coin_CreateUnspents(bh, t, &data); + if( result == 0){ + __return_Ux->data = data.data; + __return_Ux->count = data.len; + } + return result; + } +} + +%rename(SKY_coin_Transaction_VerifyInput) CSharp_skycoin_SKY_coin_Transaction_VerifyInput; +%inline{ + GoUint32 CSharp_skycoin_SKY_coin_Transaction_VerifyInput(Transaction__Handle handle, coin_UxOutArray* __uxIn){ + GoSlice_ data; + data.data = __uxIn->data; + data.len = __uxIn->count; + data.cap = __uxIn->count; + return SKY_coin_Transaction_VerifyInput(handle, &data); + } +} + +%rename(SKY_coin_UxArray_HasDupes) CSharp_skycoin_SKY_coin_UxArray_HasDupes; +%inline{ + GoUint32 CSharp_skycoin_SKY_coin_UxArray_HasDupes(coin_UxOutArray* __uxIn, GoUint8* p1){ + GoSlice_ data; + data.data = __uxIn->data; + data.len = __uxIn->count; + data.cap = __uxIn->count; + return SKY_coin_UxArray_HasDupes(&data, p1); + } +} + +%rename(SKY_coin_UxArray_Coins) CSharp_skycoin_SKY_coin_UxArray_Coins; +%inline{ + GoUint32 CSharp_skycoin_SKY_coin_UxArray_Coins(coin_UxOutArray* __uxIn, GoUint64* p1){ + GoSlice_ data; + data.data = __uxIn->data; + data.len = __uxIn->count; + data.cap = __uxIn->count; + return SKY_coin_UxArray_Coins(&data, p1); + } +} + +%rename(SKY_coin_UxArray_CoinHours) CSharp_skycoin_SKY_coin_UxArray_CoinHours; +%inline{ + GoUint32 CSharp_skycoin_SKY_coin_UxArray_CoinHours(coin_UxOutArray* __uxIn, GoUint64 p1, GoUint64* p2){ + GoSlice_ data; + data.data = __uxIn->data; + data.len = __uxIn->count; + data.cap = __uxIn->count; + return SKY_coin_UxArray_CoinHours(&data, p1, p2); + } +} + +%rename(SKY_coin_UxArray_Less) CSharp_skycoin_SKY_coin_UxArray_Less; +%inline{ + GoUint32 CSharp_skycoin_SKY_coin_UxArray_Less(coin_UxOutArray* __uxIn, GoInt p1, GoInt p2, GoUint8* p3){ + GoSlice_ data; + data.data = __uxIn->data; + data.len = __uxIn->count; + data.cap = __uxIn->count; + return SKY_coin_UxArray_Less(&data, p1, p2, p3); + } +} + +%rename(SKY_coin_UxArray_Swap) CSharp_skycoin_SKY_coin_UxArray_Swap; +%inline{ + GoUint32 CSharp_skycoin_SKY_coin_UxArray_Swap(coin_UxOutArray* __uxIn, GoInt p1, GoInt p2){ + GoSlice_ data; + data.data = __uxIn->data; + data.len = __uxIn->count; + data.cap = __uxIn->count; + return SKY_coin_UxArray_Swap(&data, p1, p2); + } +} + +%rename(SKY_coin_UxArray_Sub) CSharp_skycoin_SKY_coin_UxArray_Sub; +%inline{ + GoUint32 CSharp_skycoin_SKY_coin_UxArray_Sub(coin_UxOutArray* __uxIn, coin_UxOutArray* __uxIn2, coin_UxOutArray* __return_Ux){ + GoSlice_ data; + data.data = __uxIn->data; + data.len = __uxIn->count; + data.cap = __uxIn->count; + GoSlice_ data2; + data2.data = __uxIn2->data; + data2.len = __uxIn2->count; + data2.cap = __uxIn2->count; + GoSlice_ data3; + data3.data = NULL; + data3.len = 0; + data3.cap = 0; + GoUint32 result = SKY_coin_UxArray_Sub(&data, &data2, &data3); + if( result == 0){ + __return_Ux->data = data3.data; + __return_Ux->count = data3.len; + } + return result; + } +} + +%rename(SKY_coin_UxArray_Add) CSharp_skycoin_SKY_coin_UxArray_Add; +%inline{ + GoUint32 CSharp_skycoin_SKY_coin_UxArray_Add(coin_UxOutArray* __uxIn, coin_UxOutArray* __uxIn2, coin_UxOutArray* __return_Ux){ + GoSlice_ data; + data.data = __uxIn->data; + data.len = __uxIn->count; + data.cap = __uxIn->count; + GoSlice_ data2; + data2.data = __uxIn2->data; + data2.len = __uxIn2->count; + data2.cap = __uxIn2->count; + GoSlice_ data3; + data3.data = NULL; + data3.len = 0; + data3.cap = 0; + GoUint32 result = SKY_coin_UxArray_Add(&data, &data2, &data3); + if( result == 0){ + __return_Ux->data = data3.data; + __return_Ux->count = data3.len; + } + return result; + } +} + +%rename(SKY_coin_NewAddressUxOuts) CSharp_skycoin_SKY_coin_NewAddressUxOuts; +%inline{ + GoUint32 CSharp_skycoin_SKY_coin_NewAddressUxOuts(coin_UxOutArray* __uxIn, AddressUxOuts_Handle* p1){ + GoSlice_ data; + data.data = __uxIn->data; + data.len = __uxIn->count; + data.cap = __uxIn->count; + return SKY_coin_NewAddressUxOuts(&data, p1); + } +} + +%rename(SKY_coin_UxArray_Hashes) CSharp_skycoin_SKY_coin_UxArray_Hashes; +%inline{ + GoUint32 CSharp_skycoin_SKY_coin_UxArray_Hashes(coin_UxOutArray* __uxIn, cipher_SHA256s* __out_hashes){ + GoSlice_ data; + data.data = __uxIn->data; + data.len = __uxIn->count; + data.cap = __uxIn->count; + GoSlice_ dataOut; + dataOut.data = NULL; + dataOut.len = 0; + dataOut.cap = 0; + GoUint32 result = SKY_coin_UxArray_Hashes(&data, &dataOut); + if(result == 0){ + __out_hashes->data = dataOut.data; + __out_hashes->count = dataOut.len; + } + return result; + } +} + +%rename(SKY_coin_AddressUxOuts_Flatten) CSharp_skycoin_SKY_coin_AddressUxOuts_Flatten; +%inline{ + GoUint32 CSharp_skycoin_SKY_coin_AddressUxOuts_Flatten(AddressUxOuts_Handle p0, coin_UxOutArray* __return_Ux){ + GoSlice_ data; + data.data = NULL; + data.len = 0; + data.cap = 0; + GoUint32 result = SKY_coin_AddressUxOuts_Flatten(p0, &data); + if( result == 0 ){ + __return_Ux->data = data.data; + __return_Ux->count = data.len; + } + return result; + } +} + +%rename(SKY_coin_AddressUxOuts_Get) CSharp_skycoin_SKY_coin_AddressUxOuts_Get; +%inline{ + GoUint32 CSharp_skycoin_SKY_coin_AddressUxOuts_Get(AddressUxOuts_Handle p0, cipher__Address* p1, coin_UxOutArray* __return_Ux){ + GoSlice_ data; + data.data = NULL; + data.len = 0; + data.cap = 0; + GoUint32 result = SKY_coin_AddressUxOuts_Get(p0, p1, &data); + if( result == 0 ){ + __return_Ux->data = data.data; + __return_Ux->count = data.len; + } + return result; + } +} + +%rename(SKY_coin_AddressUxOuts_Set) CSharp_skycoin_SKY_coin_AddressUxOuts_Set; +%inline{ + GoUint32 CSharp_skycoin_SKY_coin_AddressUxOuts_Set(AddressUxOuts_Handle p0, cipher__Address* p1, coin_UxOutArray* __uxIn){ + GoSlice_ data; + data.data = __uxIn->data; + data.len = __uxIn->count; + data.cap = __uxIn->count; + return SKY_coin_AddressUxOuts_Set(p0, p1, &data); + } +} + +%rename(SKY_coin_AddressUxOuts_Keys) CSharp_skycoin_SKY_coin_AddressUxOuts_Keys; +%inline{ + GoUint32 CSharp_skycoin_SKY_coin_AddressUxOuts_Keys(AddressUxOuts_Handle p0, cipher_Addresses* __out_addr){ + GoSlice_ data; + data.data = NULL; + data.len = 0; + data.cap = 0; + GoUint32 result = SKY_coin_AddressUxOuts_Keys(p0, &data); + if( result == 0){ + __out_addr->data = data.data; + __out_addr->count = data.len; + } + return result; + } +} + +%rename(SKY_coin_Transactions_Hashes) CSharp_skycoin_SKY_coin_Transactions_Hashes; +%inline{ + GoUint32 CSharp_skycoin_SKY_coin_Transactions_Hashes(Transactions__Handle p0, cipher_SHA256s* __out_hashes){ + GoSlice_ data; + data.data = NULL; + data.len = 0; + data.cap = 0; + GoUint32 result = SKY_coin_Transactions_Hashes(p0, &data); + if( result == 0){ + __out_hashes->data = data.data; + __out_hashes->count = data.len; + } + return result; + } +} + +%rename(SKY_coin_UxOut_Hash) CSharp_skycoin_SKY_coin_UxOut_Hash; +%inline{ + GoUint32 CSharp_skycoin_SKY_coin_UxOut_Hash(coin__UxOut* ux, cipher_SHA256* sha){ + GoUint32 result = SKY_coin_UxOut_Hash(ux, sha); + return result; + } +} + +%rename(SKY_cipher_AddSHA256) CSharp_skycoin_SKY_cipher_AddSHA256; +%inline{ + GoUint32 CSharp_skycoin_SKY_cipher_AddSHA256(cipher_SHA256* p0, cipher_SHA256* p1, cipher_SHA256* p2){ + GoUint32 result = SKY_cipher_AddSHA256(p0,p1,p2); + return result; + } +} + +%rename(SKY_coin_GetTransactionObject) CSharp_skycoin_SKY_coin_GetTransactionObject; +%inline { + GoUint32 CSharp_skycoin_SKY_coin_GetTransactionObject(Transaction__Handle tx, coin__Transaction *p1){ + GoUint32 result = SKY_coin_GetTransactionObject(tx,&p1); + return result; + } +} + +%rename(SKY_coin_UxBody_Hash) CSharp_skycoin_SKY_coin_UxBody_Hash; +%inline{ + GoUint32 CSharp_skycoin_SKY_coin_UxBody_Hash(coin__UxBody* p0, cipher_SHA256* p1){ + GoUint32 result = SKY_coin_UxBody_Hash(p0,p1); + return result; + } +} + +%rename(SKY_coin_UxOut_SnapshotHash) CSharp_skycoin_SKY_coin_UxOut_SnapshotHash; +%inline{ + GoUint32 CSharp_skycoin_SKY_coin_UxOut_SnapshotHash(coin__UxOut* p0, cipher_SHA256* p1){ + GoUint32 result = SKY_coin_UxOut_SnapshotHash(p0,p1); + return result; + } +} + +%rename(SKY_fee_TransactionFee) CSharp_skycoin_SKY_fee_TransactionFee; +%inline { + GoUint32 CSharp_skycoin_SKY_fee_TransactionFee(Transaction__Handle handle , GoUint64 p1,coin_UxOutArray* __uxIn, GoUint64* p3){ + GoSlice_ dataIn; + dataIn.data = __uxIn->data; + dataIn.len = __uxIn->count; + dataIn.cap = __uxIn->count; + GoUint32 result = SKY_fee_TransactionFee(handle, p1,&dataIn,p3); + return result; + }; +} + + +%rename(SKY_cipher_CheckSecKeyHash) CSharp_skycoin_SKY_cipher_CheckSecKeyHash; +%inline { + GoUint32 CSharp_skycoin_SKY_cipher_CheckSecKeyHash(cipher_SecKey *s, cipher_SHA256* sha){ + GoUint32 result = SKY_cipher_CheckSecKeyHash(s, sha); + return result; + } +} + +%rename(SKY_coin_NewBlock) CSharp_skycoin_SKY_coin_NewBlock; +%inline { + GoUint32 CSharp_skycoin_SKY_coin_NewBlock(Block__Handle p0, GoUint64 p1, cipher_SHA256* p2, Transactions__Handle p3, FeeCalculator* p4, Block__Handle* p5){ + GoUint32 result = SKY_coin_NewBlock(p0, p1,p2,p3,p4,p5); + return result; + } +} + +%rename(SKY_coin_Block_HashHeader) CSharp_skycoin_SKY_coin_Block_HashHeader; +%inline { + GoUint32 CSharp_skycoin_SKY_coin_Block_HashHeader(Block__Handle p0, cipher_SHA256* p1){ + GoUint32 result = SKY_coin_Block_HashHeader(p0, p1); + return result; + } +} + +%rename(SKY_coin_Block_PreHashHeader) CSharp_skycoin_SKY_coin_Block_PreHashHeader; +%inline { + GoUint32 CSharp_skycoin_SKY_coin_Block_PreHashHeader(Block__Handle p0, cipher_SHA256* p1){ + GoUint32 result = SKY_coin_Block_PreHashHeader(p0, p1); + return result; + } +} + +%rename(SKY_coin_BlockBody_Hash) CSharp_skycoin_SKY_coin_BlockBody_Hash; +%inline { + GoUint32 CSharp_skycoin_SKY_coin_BlockBody_Hash(BlockBody__Handle p0, cipher_SHA256* p1){ + GoUint32 result = SKY_coin_BlockBody_Hash(p0, p1); + return result; + } +} + +%rename(SKY_coin_BlockHeader_Hash) CSharp_skycoin_SKY_coin_BlockHeader_Hash; +%inline { + GoUint32 CSharp_skycoin_SKY_coin_BlockHeader_Hash(coin__BlockHeader* p0, cipher_SHA256* p1){ + GoUint32 result = SKY_coin_BlockHeader_Hash(p0, p1); + return result; + } +} + +%rename(SKY_coin_Block_HashBody) CSharp_skycoin_SKY_coin_Block_HashBody; +%inline { + GoUint32 CSharp_skycoin_SKY_coin_Block_HashBody(Block__Handle p0, cipher_SHA256* p1){ + GoUint32 result = SKY_coin_Block_HashBody(p0, p1); + return result; + } +} \ No newline at end of file diff --git a/swig/csharp_structs_typemaps.i b/swig/csharp_structs_typemaps.i new file mode 100644 index 00000000..c7d94458 --- /dev/null +++ b/swig/csharp_structs_typemaps.i @@ -0,0 +1,61 @@ +%extend cipher__Address { + char getVersion(){ + return $self->Version; + } + void setVersion(char pValue){ + $self->Version = pValue; + } +} + +%extend GoSlice { + int isEqual(GoSlice *slice){ + return (($self->len == slice->len)) && (memcmp($self->data,slice->data, sizeof(GoSlice_))==0 ); + } + + void convertString(_GoString_ data){ + $self->data = data.p; + $self->len = strlen(data.p); + $self->cap = $self->len; + } + + void setAtChar(char p,unsigned long long i){ + ((char *) $self->data)[i] = p; + } + +void getString(_GoString_ *out){ + out->p = (char *)$self->data; + out->n = strlen((char *)$self->data); +} + +} + +%extend _GoString_ { + int SetString(char * str){ + $self->p = str; + $self->n = strlen(str); + } +} + +%extend cipher_SHA256 { + _GoString_ getStr(){ + _GoString_ str; + str.p = (const char*)$self->data; + str.n = strlen(str.p); + return str; + } +} + +%extend coin__Transaction { + int setInnerHash(cipher_SHA256 h){ + memset($self->InnerHash, 0, sizeof(cipher__SHA256)); + cipher_SHA256_assignFrom($self->InnerHash,&h); + return 0; + } + + cipher_SHA256 GetInnerHash(){ + cipher_SHA256 h; +memset(&h, 0, sizeof(cipher__SHA256)); + cipher_SHA256_assignFrom(&h,&$self->InnerHash); + return h; + } +} diff --git a/swig/skycoin.i b/swig/skycoin.i new file mode 100644 index 00000000..733edcf8 --- /dev/null +++ b/swig/skycoin.i @@ -0,0 +1,24 @@ +%module skycoin +%include "typemaps.i" + +%{ + #define SWIG_FILE_WITH_INIT + #include "libskycoin.h" + #include "swig.h" + #include "skyerrors.h" +%} + +%include "csharp_java_typemap.i" +%include "csharp_structs_typemaps.i" +%include "csharp_java_basic.i" +%include "csharp_skycoin.mem.i" +%include "csharp_java_callback.i" + +%include "/gopath/src/github.com/skycoin/skycoin/lib/swig/includes.i" +%include "swig.h" +/* Find the modified copy of libskycoin */ +%include "libskycoin.h" +%include "structs.i" +%include "skyerrors.h" +// %include "base64.h" + diff --git a/swig/structs.i b/swig/structs.i new file mode 100644 index 00000000..99c01275 --- /dev/null +++ b/swig/structs.i @@ -0,0 +1,29 @@ + +%include "api.client.go.h" + +%include "cipher.hash.go.h" +%include "cipher.address.go.h" +%include "cipher.bitcoin.go.h" +%include "cipher.crypto.go.h" +%include "cipher.encrypt.scrypt_chacha20poly1305.go.h" + +%include "cipher.secp256k1-go.secp256k1-go2.field.go.h" +%include "cipher.secp256k1-go.secp256k1-go2.xy.go.h" +%include "cipher.secp256k1-go.secp256k1-go2.xyz.go.h" + +%include "cli.cli.go.h" +%include "cli.create_rawtx.go.h" + +%include "coin.transactions.go.h" +%include "coin.block.go.h" +%include "coin.outputs.go.h" + +%include "util.http.json.go.h" + +%include "visor.readable.go.h" + +%include "wallet.balance.go.h" +%include "wallet.entry.go.h" +%include "wallet.notes.go.h" +%include "wallet.wallet.go.h" + From b46b73d4fe6b49d5e15b89a3ddc25949fee7826c Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Fri, 9 Nov 2018 20:40:44 -0500 Subject: [PATCH 61/73] [swig][test] refs #8 Added typemap GoUint32 Tests run: 85, Errors: 0, Failures: 0, Inconclusive: 0, Time: 17,4740162 seconds Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0 --- LibskycoinNet/skycoin/skycoin.cs | 71 +++++-- LibskycoinNet/skycoin/skycoinPINVOKE.cs | 46 ++++- LibskycoinNet/skycoin/skycoinnet_wrap.c | 189 ++++++++++++++++--- LibskycoinNetTest/check_coin_transactions.cs | 54 +++--- gopath/src/github.com/skycoin/skycoin | 2 +- swig/csharp_java_typemap.i | 1 + swig/include/libskycoin.h | 36 +++- 7 files changed, 316 insertions(+), 83 deletions(-) diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs index f13d44d3..40b51849 100644 --- a/LibskycoinNet/skycoin/skycoin.cs +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -117,6 +117,31 @@ public static int intp_value(SWIGTYPE_p_int obj) { return ret; } + public static SWIGTYPE_p_unsigned_int new_GoUint32Ptr() { + global::System.IntPtr cPtr = skycoinPINVOKE.new_GoUint32Ptr(); + SWIGTYPE_p_unsigned_int ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_int(cPtr, false); + return ret; + } + + public static SWIGTYPE_p_unsigned_int copy_GoUint32Ptr(uint value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_GoUint32Ptr(value); + SWIGTYPE_p_unsigned_int ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_unsigned_int(cPtr, false); + return ret; + } + + public static void delete_GoUint32Ptr(SWIGTYPE_p_unsigned_int obj) { + skycoinPINVOKE.delete_GoUint32Ptr(SWIGTYPE_p_unsigned_int.getCPtr(obj)); + } + + public static void GoUint32Ptr_assign(SWIGTYPE_p_unsigned_int obj, uint value) { + skycoinPINVOKE.GoUint32Ptr_assign(SWIGTYPE_p_unsigned_int.getCPtr(obj), value); + } + + public static uint GoUint32Ptr_value(SWIGTYPE_p_unsigned_int obj) { + uint ret = skycoinPINVOKE.GoUint32Ptr_value(SWIGTYPE_p_unsigned_int.getCPtr(obj)); + return ret; + } + public static coin__Transaction new_coin__Transactionp() { global::System.IntPtr cPtr = skycoinPINVOKE.new_coin__Transactionp(); coin__Transaction ret = (cPtr == global::System.IntPtr.Zero) ? null : new coin__Transaction(cPtr, false); @@ -1241,8 +1266,8 @@ public static uint SKY_coin_Block_HashBody(SWIGTYPE_p_Block__Handle p0, cipher_S } } - public static uint SKY_coin_Block_Size(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Block_Size(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_coin_Block_Size(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_unsigned_int p1) { + uint ret = skycoinPINVOKE.SKY_coin_Block_Size(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -1304,8 +1329,8 @@ public static uint SKY_coin_BlockBody_Hash(SWIGTYPE_p_BlockBody__Handle p0, ciph } } - public static uint SKY_coin_BlockBody_Size(SWIGTYPE_p_BlockBody__Handle p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Size(SWIGTYPE_p_BlockBody__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_coin_BlockBody_Size(SWIGTYPE_p_BlockBody__Handle p0, SWIGTYPE_p_unsigned_int p1) { + uint ret = skycoinPINVOKE.SKY_coin_BlockBody_Size(SWIGTYPE_p_BlockBody__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); return ret; } @@ -2181,6 +2206,18 @@ public static uint SKY_iputil_SplitAddr(string p0, _GoString_ p1, SWIGTYPE_p_uns } } + public static void SKY_params_GetDistributionAddresses(GoSlice p0) { + skycoinPINVOKE.SKY_params_GetDistributionAddresses(GoSlice.getCPtr (p0)); + } + + public static void SKY_params_GetUnlockedDistributionAddresses(GoSlice p0) { + skycoinPINVOKE.SKY_params_GetUnlockedDistributionAddresses(GoSlice.getCPtr (p0)); + } + + public static void SKY_params_GetLockedDistributionAddresses(GoSlice p0) { + skycoinPINVOKE.SKY_params_GetLockedDistributionAddresses(GoSlice.getCPtr (p0)); + } + public static uint SKY_cli_GenerateAddressesInFile(string p0, ulong p1, SWIGTYPE_p_PasswordReader__Handle p2, GoSlice p3) { var tmpp0 = p0; { @@ -3139,23 +3176,23 @@ public static uint SKY_certutil_NewTLSCertPair(string p0, string p1, GoSlice p2, } } - public static uint SKY_fee_VerifyTransactionFee(SWIGTYPE_p_Transaction__Handle p0, ulong p1, ulong p2) { + public static uint SKY_fee_VerifyTransactionFee(SWIGTYPE_p_Transaction__Handle p0, ulong p1, uint p2) { uint ret = skycoinPINVOKE.SKY_fee_VerifyTransactionFee(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, p2); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_fee_VerifyTransactionFeeForHours(ulong p0, ulong p1, ulong p2) { + public static uint SKY_fee_VerifyTransactionFeeForHours(ulong p0, ulong p1, uint p2) { uint ret = skycoinPINVOKE.SKY_fee_VerifyTransactionFeeForHours(p0, p1, p2); return ret; } - public static uint SKY_fee_RequiredFee(ulong p0, ulong p1, SWIGTYPE_p_unsigned_long_long p2) { + public static uint SKY_fee_RequiredFee(ulong p0, uint p1, SWIGTYPE_p_unsigned_long_long p2) { uint ret = skycoinPINVOKE.SKY_fee_RequiredFee(p0, p1, SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); return ret; } - public static uint SKY_fee_RemainingHours(ulong p0, ulong p1, SWIGTYPE_p_unsigned_long_long p2) { + public static uint SKY_fee_RemainingHours(ulong p0, uint p1, SWIGTYPE_p_unsigned_long_long p2) { uint ret = skycoinPINVOKE.SKY_fee_RemainingHours(p0, p1, SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); return ret; } @@ -3635,8 +3672,8 @@ public static uint SKY_coin_Transaction_SignInputs(SWIGTYPE_p_Transaction__Handl return ret; } - public static uint SKY_coin_Transaction_Size(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_Size(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_coin_Transaction_Size(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_unsigned_int p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transaction_Size(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -3650,10 +3687,10 @@ public static uint SKY_coin_Transaction_Hash(SWIGTYPE_p_Transaction__Handle p0, } } - public static uint SKY_coin_Transaction_SizeHash(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1, cipher_SecKey p2) { + public static uint SKY_coin_Transaction_SizeHash(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_unsigned_int p1, cipher_SecKey p2) { var tmpp2 = cipher_SecKey.getCPtr (p2); { - uint ret = skycoinPINVOKE.SKY_coin_Transaction_SizeHash(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1), tmpp2); + uint ret = skycoinPINVOKE.SKY_coin_Transaction_SizeHash(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1), tmpp2); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -3748,13 +3785,13 @@ public static uint SKY_coin_Transactions_Hashes(SWIGTYPE_p_Transactions__Handle return ret; } - public static uint SKY_coin_Transactions_Size(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_long_long p1) { - uint ret = skycoinPINVOKE.SKY_coin_Transactions_Size(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static uint SKY_coin_Transactions_Size(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_unsigned_int p1) { + uint ret = skycoinPINVOKE.SKY_coin_Transactions_Size(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } - public static uint SKY_coin_Transactions_TruncateBytesTo(SWIGTYPE_p_Transactions__Handle p0, long p1, SWIGTYPE_p_Transactions__Handle p2) { + public static uint SKY_coin_Transactions_TruncateBytesTo(SWIGTYPE_p_Transactions__Handle p0, uint p1, SWIGTYPE_p_Transactions__Handle p2) { uint ret = skycoinPINVOKE.SKY_coin_Transactions_TruncateBytesTo(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), p1, SWIGTYPE_p_Transactions__Handle.getCPtr(p2)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; @@ -3821,6 +3858,7 @@ public static uint SKY_coin_VerifyTransactionHoursSpending(ulong p0, GoSlice p1, public static readonly int SKY_PKG_UTIL = skycoinPINVOKE.get_SKY_PKG_UTIL(); public static readonly int SKY_PKG_VISOR = skycoinPINVOKE.get_SKY_PKG_VISOR(); public static readonly int SKY_PKG_WALLET = skycoinPINVOKE.get_SKY_PKG_WALLET(); + public static readonly int SKY_PKG_PARAMS = skycoinPINVOKE.get_SKY_PKG_PARAMS(); public static readonly int SKY_PKG_LIBCGO = skycoinPINVOKE.get_SKY_PKG_LIBCGO(); public static readonly int SKY_ErrAddressInvalidLength = skycoinPINVOKE.get_SKY_ErrAddressInvalidLength(); public static readonly int SKY_ErrAddressInvalidChecksum = skycoinPINVOKE.get_SKY_ErrAddressInvalidChecksum(); @@ -3887,6 +3925,8 @@ public static uint SKY_coin_VerifyTransactionHoursSpending(ulong p0, GoSlice p1, public static readonly int SKY_ErrUint32AddOverflow = skycoinPINVOKE.get_SKY_ErrUint32AddOverflow(); public static readonly int SKY_ErrUint64OverflowsInt64 = skycoinPINVOKE.get_SKY_ErrUint64OverflowsInt64(); public static readonly int SKY_ErrInt64UnderflowsUint64 = skycoinPINVOKE.get_SKY_ErrInt64UnderflowsUint64(); + public static readonly int SKY_ErrIntUnderflowsUint32 = skycoinPINVOKE.get_SKY_ErrIntUnderflowsUint32(); + public static readonly int SKY_ErrIntOverflowsUint32 = skycoinPINVOKE.get_SKY_ErrIntOverflowsUint32(); public static readonly int SKY_ErrPeerlistFull = skycoinPINVOKE.get_SKY_ErrPeerlistFull(); public static readonly int SKY_ErrInvalidAddress = skycoinPINVOKE.get_SKY_ErrInvalidAddress(); public static readonly int SKY_ErrNoLocalhost = skycoinPINVOKE.get_SKY_ErrNoLocalhost(); @@ -3977,6 +4017,7 @@ public static uint SKY_coin_VerifyTransactionHoursSpending(ulong p0, GoSlice p1, public static readonly int SKY_ErrVerifySignatureInvalidInputsNils = skycoinPINVOKE.get_SKY_ErrVerifySignatureInvalidInputsNils(); public static readonly int SKY_ErrVerifySignatureInvalidSigLength = skycoinPINVOKE.get_SKY_ErrVerifySignatureInvalidSigLength(); public static readonly int SKY_ErrVerifySignatureInvalidPubkeysLength = skycoinPINVOKE.get_SKY_ErrVerifySignatureInvalidPubkeysLength(); + public static readonly int SKY_ErrInvalidDecimals = skycoinPINVOKE.get_SKY_ErrInvalidDecimals(); } } diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index 34f94a7f..101aa45b 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -248,6 +248,21 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_intp_value")] public static extern int intp_value(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_GoUint32Ptr")] + public static extern global::System.IntPtr new_GoUint32Ptr(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_GoUint32Ptr")] + public static extern global::System.IntPtr copy_GoUint32Ptr(uint jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_GoUint32Ptr")] + public static extern void delete_GoUint32Ptr(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoUint32Ptr_assign")] + public static extern void GoUint32Ptr_assign(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoUint32Ptr_value")] + public static extern uint GoUint32Ptr_value(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_coin__Transactionp")] public static extern global::System.IntPtr new_coin__Transactionp(); @@ -1658,6 +1673,15 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_iputil_SplitAddr")] public static extern uint SKY_iputil_SplitAddr(string jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_params_GetDistributionAddresses")] + public static extern void SKY_params_GetDistributionAddresses(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_params_GetUnlockedDistributionAddresses")] + public static extern void SKY_params_GetUnlockedDistributionAddresses(global::System.Runtime.InteropServices.HandleRef jarg1); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_params_GetLockedDistributionAddresses")] + public static extern void SKY_params_GetLockedDistributionAddresses(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cli_GenerateAddressesInFile")] public static extern uint SKY_cli_GenerateAddressesInFile(string jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); @@ -2067,16 +2091,16 @@ static skycoinPINVOKE() { public static extern uint SKY_certutil_NewTLSCertPair(string jarg1, string jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4, global::System.Runtime.InteropServices.HandleRef jarg5); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_VerifyTransactionFee")] - public static extern uint SKY_fee_VerifyTransactionFee(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, ulong jarg3); + public static extern uint SKY_fee_VerifyTransactionFee(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, uint jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_VerifyTransactionFeeForHours")] - public static extern uint SKY_fee_VerifyTransactionFeeForHours(ulong jarg1, ulong jarg2, ulong jarg3); + public static extern uint SKY_fee_VerifyTransactionFeeForHours(ulong jarg1, ulong jarg2, uint jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_RequiredFee")] - public static extern uint SKY_fee_RequiredFee(ulong jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_fee_RequiredFee(ulong jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_RemainingHours")] - public static extern uint SKY_fee_RemainingHours(ulong jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_fee_RemainingHours(ulong jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_fee_TransactionFee__SWIG_1")] public static extern uint SKY_fee_TransactionFee__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, ulong jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); @@ -2325,7 +2349,7 @@ static skycoinPINVOKE() { public static extern uint SKY_coin_Transactions_Size(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Transactions_TruncateBytesTo")] - public static extern uint SKY_coin_Transactions_TruncateBytesTo(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + public static extern uint SKY_coin_Transactions_TruncateBytesTo(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_SortTransactions")] public static extern uint SKY_coin_SortTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); @@ -2993,6 +3017,9 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_WALLET")] public static extern int get_SKY_PKG_WALLET(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_PARAMS")] + public static extern int get_SKY_PKG_PARAMS(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_PKG_LIBCGO")] public static extern int get_SKY_PKG_LIBCGO(); @@ -3191,6 +3218,12 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInt64UnderflowsUint64")] public static extern int get_SKY_ErrInt64UnderflowsUint64(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrIntUnderflowsUint32")] + public static extern int get_SKY_ErrIntUnderflowsUint32(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrIntOverflowsUint32")] + public static extern int get_SKY_ErrIntOverflowsUint32(); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrPeerlistFull")] public static extern int get_SKY_ErrPeerlistFull(); @@ -3460,6 +3493,9 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrVerifySignatureInvalidPubkeysLength")] public static extern int get_SKY_ErrVerifySignatureInvalidPubkeysLength(); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_get_SKY_ErrInvalidDecimals")] + public static extern int get_SKY_ErrInvalidDecimals(); } } diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index a1686f35..b440cd29 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -373,6 +373,29 @@ static int intp_value(int *obj) { } +static unsigned int *new_GoUint32Ptr() { + return (unsigned int *) calloc(1,sizeof(unsigned int)); +} + +static unsigned int *copy_GoUint32Ptr(unsigned int value) { + unsigned int *obj = (unsigned int *) calloc(1,sizeof(unsigned int)); + *obj = value; + return obj; +} + +static void delete_GoUint32Ptr(unsigned int *obj) { + if (obj) free(obj); +} + +static void GoUint32Ptr_assign(unsigned int *obj, unsigned int value) { + *obj = value; +} + +static unsigned int GoUint32Ptr_value(unsigned int *obj) { + return *obj; +} + + static coin__Transaction *new_coin__Transactionp() { return (coin__Transaction *) calloc(1,sizeof(coin__Transaction)); } @@ -2557,6 +2580,58 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_intp_value(void * jarg1) { } +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_GoUint32Ptr() { + void * jresult ; + unsigned int *result = 0 ; + + result = (unsigned int *)new_GoUint32Ptr(); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_GoUint32Ptr(unsigned int jarg1) { + void * jresult ; + unsigned int arg1 ; + unsigned int *result = 0 ; + + arg1 = (unsigned int)jarg1; + result = (unsigned int *)copy_GoUint32Ptr(arg1); + jresult = (void *)result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_GoUint32Ptr(void * jarg1) { + unsigned int *arg1 = (unsigned int *) 0 ; + + arg1 = (unsigned int *)jarg1; + delete_GoUint32Ptr(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoUint32Ptr_assign(void * jarg1, unsigned int jarg2) { + unsigned int *arg1 = (unsigned int *) 0 ; + unsigned int arg2 ; + + arg1 = (unsigned int *)jarg1; + arg2 = (unsigned int)jarg2; + GoUint32Ptr_assign(arg1,arg2); +} + + +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_GoUint32Ptr_value(void * jarg1) { + unsigned int jresult ; + unsigned int *arg1 = (unsigned int *) 0 ; + unsigned int result; + + arg1 = (unsigned int *)jarg1; + result = (unsigned int)GoUint32Ptr_value(arg1); + jresult = result; + return jresult; +} + + SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_coin__Transactionp() { void * jresult ; coin__Transaction *result = 0 ; @@ -7087,7 +7162,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_HashBody__SWIG SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_Size(void * jarg1, void * jarg2) { unsigned int jresult ; Block__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; Block__Handle *argp1 ; GoUint32 result; @@ -7097,7 +7172,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_Size(void * ja return 0; } arg1 = *argp1; - arg2 = (GoInt *)jarg2; + arg2 = (GoUint32 *)jarg2; result = (GoUint32)SKY_coin_Block_Size(arg1,arg2); jresult = result; return jresult; @@ -7241,11 +7316,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Hash__SWIG SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_BlockBody_Size(void * jarg1, void * jarg2) { unsigned int jresult ; BlockBody__Handle *arg1 = (BlockBody__Handle *) 0 ; - GoInt *arg2 = (GoInt *) 0 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; GoUint32 result; arg1 = (BlockBody__Handle *)jarg1; - arg2 = (GoInt *)jarg2; + arg2 = (GoUint32 *)jarg2; result = (GoUint32)SKY_coin_BlockBody_Size(arg1,arg2); jresult = result; return jresult; @@ -9752,6 +9827,30 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_iputil_SplitAddr(char* ja } +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_params_GetDistributionAddresses(GoSlice_ * jarg1) { + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + + arg1 = (coin__UxArray *)jarg1; + SKY_params_GetDistributionAddresses(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_params_GetUnlockedDistributionAddresses(GoSlice_ * jarg1) { + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + + arg1 = (coin__UxArray *)jarg1; + SKY_params_GetUnlockedDistributionAddresses(arg1); +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_SKY_params_GetLockedDistributionAddresses(GoSlice_ * jarg1) { + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + + arg1 = (coin__UxArray *)jarg1; + SKY_params_GetLockedDistributionAddresses(arg1); +} + + SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cli_GenerateAddressesInFile(char* jarg1, unsigned long long jarg2, void * jarg3, GoSlice_ * jarg4) { unsigned int jresult ; GoString arg1 ; @@ -12096,11 +12195,11 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_certutil_NewTLSCertPair(c } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_VerifyTransactionFee(void * jarg1, unsigned long long jarg2, unsigned long long jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_VerifyTransactionFee(void * jarg1, unsigned long long jarg2, unsigned int jarg3) { unsigned int jresult ; Transaction__Handle arg1 ; GoUint64 arg2 ; - GoUint64 arg3 ; + GoUint32 arg3 ; Transaction__Handle *argp1 ; GoUint32 result; @@ -12111,38 +12210,38 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_VerifyTransactionFee( } arg1 = *argp1; arg2 = (GoUint64)jarg2; - arg3 = (GoUint64)jarg3; + arg3 = (GoUint32)jarg3; result = (GoUint32)SKY_fee_VerifyTransactionFee(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_VerifyTransactionFeeForHours(unsigned long long jarg1, unsigned long long jarg2, unsigned long long jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_VerifyTransactionFeeForHours(unsigned long long jarg1, unsigned long long jarg2, unsigned int jarg3) { unsigned int jresult ; GoUint64 arg1 ; GoUint64 arg2 ; - GoUint64 arg3 ; + GoUint32 arg3 ; GoUint32 result; arg1 = (GoUint64)jarg1; arg2 = (GoUint64)jarg2; - arg3 = (GoUint64)jarg3; + arg3 = (GoUint32)jarg3; result = (GoUint32)SKY_fee_VerifyTransactionFeeForHours(arg1,arg2,arg3); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_RequiredFee(unsigned long long jarg1, unsigned long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_RequiredFee(unsigned long long jarg1, unsigned int jarg2, void * jarg3) { unsigned int jresult ; GoUint64 arg1 ; - GoUint64 arg2 ; + GoUint32 arg2 ; GoUint64 *arg3 = (GoUint64 *) 0 ; GoUint32 result; arg1 = (GoUint64)jarg1; - arg2 = (GoUint64)jarg2; + arg2 = (GoUint32)jarg2; arg3 = (GoUint64 *)jarg3; result = (GoUint32)SKY_fee_RequiredFee(arg1,arg2,arg3); jresult = result; @@ -12150,15 +12249,15 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_RequiredFee(unsigned } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_RemainingHours(unsigned long long jarg1, unsigned long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_fee_RemainingHours(unsigned long long jarg1, unsigned int jarg2, void * jarg3) { unsigned int jresult ; GoUint64 arg1 ; - GoUint64 arg2 ; + GoUint32 arg2 ; GoUint64 *arg3 = (GoUint64 *) 0 ; GoUint32 result; arg1 = (GoUint64)jarg1; - arg2 = (GoUint64)jarg2; + arg2 = (GoUint32)jarg2; arg3 = (GoUint64 *)jarg3; result = (GoUint32)SKY_fee_RemainingHours(arg1,arg2,arg3); jresult = result; @@ -13393,7 +13492,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SignInpu SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Size(void * jarg1, void * jarg2) { unsigned int jresult ; Transaction__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; Transaction__Handle *argp1 ; GoUint32 result; @@ -13403,7 +13502,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Size(voi return 0; } arg1 = *argp1; - arg2 = (GoInt *)jarg2; + arg2 = (GoUint32 *)jarg2; result = (GoUint32)SKY_coin_Transaction_Size(arg1,arg2); jresult = result; return jresult; @@ -13433,7 +13532,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_Hash__SW SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SizeHash(void * jarg1, void * jarg2, cipher_SecKey* jarg3) { unsigned int jresult ; Transaction__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; Transaction__Handle *argp1 ; GoUint32 result; @@ -13444,7 +13543,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transaction_SizeHash return 0; } arg1 = *argp1; - arg2 = (GoInt *)jarg2; + arg2 = (GoUint32 *)jarg2; arg3 = (cipher__SHA256 *)jarg3; result = (GoUint32)SKY_coin_Transaction_SizeHash(arg1,arg2,(GoUint8_ (*)[32])arg3); jresult = result; @@ -13735,7 +13834,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Hashes_ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Size(void * jarg1, void * jarg2) { unsigned int jresult ; Transactions__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; Transactions__Handle *argp1 ; GoUint32 result; @@ -13745,17 +13844,17 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Size(vo return 0; } arg1 = *argp1; - arg2 = (GoInt *)jarg2; + arg2 = (GoUint32 *)jarg2; result = (GoUint32)SKY_coin_Transactions_Size(arg1,arg2); jresult = result; return jresult; } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_TruncateBytesTo(void * jarg1, long long jarg2, void * jarg3) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_TruncateBytesTo(void * jarg1, unsigned int jarg2, void * jarg3) { unsigned int jresult ; Transactions__Handle arg1 ; - GoInt arg2 ; + GoUint32 arg2 ; Transactions__Handle *arg3 = (Transactions__Handle *) 0 ; Transactions__Handle *argp1 ; GoUint32 result; @@ -13766,7 +13865,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Transactions_Truncat return 0; } arg1 = *argp1; - arg2 = (GoInt)jarg2; + arg2 = (GoUint32)jarg2; arg3 = (Transactions__Handle *)jarg3; result = (GoUint32)SKY_coin_Transactions_TruncateBytesTo(arg1,arg2,arg3); jresult = result; @@ -16398,6 +16497,16 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_PKG_WALLET() { } +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_PKG_PARAMS() { + int jresult ; + int result; + + result = (int)(0x0C000000); + jresult = result; + return jresult; +} + + SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_PKG_LIBCGO() { int jresult ; int result; @@ -17058,6 +17167,26 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInt64UnderflowsUint64() { } +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrIntUnderflowsUint32() { + int jresult ; + int result; + + result = (int)(0x04000006); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrIntOverflowsUint32() { + int jresult ; + int result; + + result = (int)(0x04000007); + jresult = result; + return jresult; +} + + SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrPeerlistFull() { int jresult ; int result; @@ -17958,6 +18087,16 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrVerifySignatureInvalidPubke } +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_get_SKY_ErrInvalidDecimals() { + int jresult ; + int result; + + result = (int)(0x0C000000); + jresult = result; + return jresult; +} + + #ifdef __cplusplus } #endif diff --git a/LibskycoinNetTest/check_coin_transactions.cs b/LibskycoinNetTest/check_coin_transactions.cs index f72fc45c..b4c86ad5 100644 --- a/LibskycoinNetTest/check_coin_transactions.cs +++ b/LibskycoinNetTest/check_coin_transactions.cs @@ -482,10 +482,10 @@ public void TestTransactionsSize () { size += b.len; } Assert.AreNotEqual (size, 0); - var sizetx = skycoin.skycoin.new_Gointp (); + var sizetx = skycoin.skycoin.new_GoUint32Ptr (); err = skycoin.skycoin.SKY_coin_Transactions_Size (handle, sizetx); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.Gointp_value (sizetx), size); + Assert.AreEqual (skycoin.skycoin.GoUint32Ptr_value (sizetx), size); } [Test] @@ -512,19 +512,19 @@ public void TestTransactionsHashes () { public void TestTransactionsTruncateBytesTo () { var handles = skycoin.skycoin.new_Transactions__Handlep (); var err = (uint) skycoin.skycoin.makeTransactions (10, handles); - var trunc = (long) 0; - var count = skycoin.skycoin.new_Gointp (); + var trunc = (uint) 0; + var count = skycoin.skycoin.new_GoUint32Ptr (); var len_tnxs = skycoin.skycoin.new_Gointp (); err = skycoin.skycoin.SKY_coin_Transactions_Length (handles, len_tnxs); long len_tnxs_value = skycoin.skycoin.Gointp_value (len_tnxs); for (long i = 0; i < (len_tnxs_value / 2); i++) { - count = skycoin.skycoin.new_Gointp (); + count = skycoin.skycoin.new_GoUint32Ptr (); var handle = skycoin.skycoin.new_Transaction__Handlep (); err = skycoin.skycoin.SKY_coin_Transactions_GetAt (handles, (long) i, handle); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); err = skycoin.skycoin.SKY_coin_Transaction_Size (handle, count); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - trunc += skycoin.skycoin.Gointp_value (count); + trunc += skycoin.skycoin.GoUint32Ptr_value (count); } // Trucating halfway var tnxs2 = skycoin.skycoin.new_Transactions__Handlep (); @@ -535,75 +535,75 @@ public void TestTransactionsTruncateBytesTo () { err = skycoin.skycoin.SKY_coin_Transactions_Length (tnxs2, len_tnxs2); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); Assert.AreEqual (skycoin.skycoin.Gointp_value (len_tnxs2), len_tnxs_value / 2); - count = skycoin.skycoin.new_Gointp (); + count = skycoin.skycoin.new_GoUint32Ptr (); err = skycoin.skycoin.SKY_coin_Transactions_Size (tnxs2, count); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.Gointp_value (count), trunc); + Assert.AreEqual (skycoin.skycoin.GoUint32Ptr_value (count), trunc); // Stepping into next boundary has same cutoff, must exceed trunc += 1; err = skycoin.skycoin.SKY_coin_Transactions_TruncateBytesTo (handles, trunc, tnxs2); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transactions_Length (tnxs2, count); + var len = skycoin.skycoin.new_Gointp (); + err = skycoin.skycoin.SKY_coin_Transactions_Length (tnxs2, len); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.Gointp_value (count), len_tnxs_value / 2); + Assert.AreEqual (skycoin.skycoin.Gointp_value (len), len_tnxs_value / 2); err = skycoin.skycoin.SKY_coin_Transactions_Size (tnxs2, count); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.Gointp_value (count), trunc - 1); + Assert.AreEqual (skycoin.skycoin.GoUint32Ptr_value (count), trunc - 1); // Moving to 1 before next level var tnxs_5 = transutils.makeEmptyTransaction (); err = skycoin.skycoin.SKY_coin_Transactions_GetAt (handles, 5, tnxs_5); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - count = skycoin.skycoin.new_Gointp (); + count = skycoin.skycoin.new_GoUint32Ptr (); err = skycoin.skycoin.SKY_coin_Transaction_Size (tnxs_5, count); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - trunc += (skycoin.skycoin.Gointp_value (count) - 2); + trunc += (skycoin.skycoin.GoUint32Ptr_value (count) - 2); err = skycoin.skycoin.SKY_coin_Transactions_TruncateBytesTo (handles, trunc, tnxs2); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transactions_Length (tnxs2, count); + err = skycoin.skycoin.SKY_coin_Transactions_Length (tnxs2, len); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.Gointp_value (count), 5); + Assert.AreEqual (skycoin.skycoin.Gointp_value (len), 5); err = skycoin.skycoin.SKY_coin_Transactions_Size (tnxs2, count); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var count_tnxs5 = skycoin.skycoin.new_Gointp (); + var count_tnxs5 = skycoin.skycoin.new_GoUint32Ptr (); err = skycoin.skycoin.SKY_coin_Transaction_Size (tnxs_5, count_tnxs5); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual ((trunc - skycoin.skycoin.Gointp_value (count_tnxs5) + 1), skycoin.skycoin.Gointp_value (count)); + Assert.AreEqual ((trunc - skycoin.skycoin.GoUint32Ptr_value (count_tnxs5) + 1), skycoin.skycoin.GoUint32Ptr_value (count)); // Moving to next level trunc += 1; err = skycoin.skycoin.SKY_coin_Transactions_TruncateBytesTo (handles, trunc, tnxs2); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transactions_Length (tnxs2, count); + err = skycoin.skycoin.SKY_coin_Transactions_Length (tnxs2, len); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.Gointp_value (count), 6); + Assert.AreEqual (skycoin.skycoin.Gointp_value (len), 6); err = skycoin.skycoin.SKY_coin_Transactions_Size (tnxs2, count); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.Gointp_value (count), trunc); + Assert.AreEqual (skycoin.skycoin.GoUint32Ptr_value (count), trunc); // Truncating to full available amt - var trunc1 = skycoin.skycoin.new_Gointp (); + var trunc1 = skycoin.skycoin.new_GoUint32Ptr (); err = skycoin.skycoin.SKY_coin_Transactions_Size (handles, trunc1); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transactions_TruncateBytesTo (handles, skycoin.skycoin.Gointp_value (trunc1), tnxs2); + err = skycoin.skycoin.SKY_coin_Transactions_TruncateBytesTo (handles, skycoin.skycoin.GoUint32Ptr_value (trunc1), tnxs2); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); err = skycoin.skycoin.SKY_coin_Transactions_Size (tnxs2, count); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.Gointp_value (count), skycoin.skycoin.Gointp_value (trunc1)); + Assert.AreEqual (skycoin.skycoin.GoUint32Ptr_value (count), skycoin.skycoin.GoUint32Ptr_value (trunc1)); // Truncating to 0 trunc = 0; err = skycoin.skycoin.SKY_coin_Transactions_TruncateBytesTo (handles, 0, tnxs2); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transactions_Length (tnxs2, count); + err = skycoin.skycoin.SKY_coin_Transactions_Length (tnxs2, len); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.Gointp_value (count), 0); + Assert.AreEqual (skycoin.skycoin.Gointp_value (len), 0); err = skycoin.skycoin.SKY_coin_Transactions_Size (tnxs2, count); Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.Gointp_value (count), trunc); + Assert.AreEqual (skycoin.skycoin.GoUint32Ptr_value (count), trunc); } struct ux { diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index 3c8b053a..86d31fb6 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit 3c8b053a2e897cec2af8ece19ebe69d11d2d847c +Subproject commit 86d31fb6c578af9f7b1e73d26671aebc6f2f3cbb diff --git a/swig/csharp_java_typemap.i b/swig/csharp_java_typemap.i index 74e4995f..eb9d964f 100644 --- a/swig/csharp_java_typemap.i +++ b/swig/csharp_java_typemap.i @@ -13,6 +13,7 @@ %pointer_functions(GoUint8_, GoUint8Ptr); %pointer_functions(_GoString_, GoStringp); %pointer_functions(int, intp); +%pointer_functions( unsigned int, GoUint32Ptr); %pointer_functions(coin__Transaction, coin__Transactionp); %pointer_functions(AddressUxOuts_Handle, AddressUxOuts__HandlePtr); %pointer_functions(unsigned long long, GoUint64p); diff --git a/swig/include/libskycoin.h b/swig/include/libskycoin.h index a89360b6..90e8e852 100644 --- a/swig/include/libskycoin.h +++ b/swig/include/libskycoin.h @@ -138,6 +138,16 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" +#line 9 "params.distribution.go" + + + #include + #include + + #include "skytypes.h" + +#line 1 "cgo-generated-wrapper" + #line 11 "cli.generate_addrs.go" @@ -492,7 +502,7 @@ extern GoUint32 SKY_coin_Block_Seq(Block__Handle p0, GoUint64* p1); extern GoUint32 SKY_coin_Block_HashBody(Block__Handle p0, cipher__SHA256* p1); -extern GoUint32 SKY_coin_Block_Size(Block__Handle p0, GoInt* p1); +extern GoUint32 SKY_coin_Block_Size(Block__Handle p0, GoUint32* p1); extern GoUint32 SKY_coin_Block_String(Block__Handle p0, GoString_* p1); @@ -508,7 +518,7 @@ extern GoUint32 SKY_coin_BlockHeader_String(coin__BlockHeader* p0, GoString_* p1 extern GoUint32 SKY_coin_BlockBody_Hash(BlockBody__Handle p0, cipher__SHA256* p1); -extern GoUint32 SKY_coin_BlockBody_Size(BlockBody__Handle* p0, GoInt* p1); +extern GoUint32 SKY_coin_BlockBody_Size(BlockBody__Handle* p0, GoUint32* p1); extern GoUint32 SKY_coin_BlockBody_Bytes(BlockBody__Handle p0, coin__UxArray* p1); @@ -746,6 +756,12 @@ extern GoUint32 SKY_iputil_IsLocalhost(GoString p0, GoUint8* p1); extern GoUint32 SKY_iputil_SplitAddr(GoString p0, GoString_* p1, GoUint16* p2); +extern void SKY_params_GetDistributionAddresses(coin__UxArray* p0); + +extern void SKY_params_GetUnlockedDistributionAddresses(coin__UxArray* p0); + +extern void SKY_params_GetLockedDistributionAddresses(coin__UxArray* p0); + extern GoUint32 SKY_cli_GenerateAddressesInFile(GoString p0, GoUint64 p1, PasswordReader__Handle p2, coin__UxArray* p3); extern GoUint32 SKY_cli_FormatAddressesAsJSON(GoSlice p0, GoString_* p1); @@ -1020,13 +1036,13 @@ extern GoUint32 SKY_apputil_PrintProgramStatus(); extern GoUint32 SKY_certutil_NewTLSCertPair(GoString p0, GoString p1, GoSlice p2, coin__UxArray* p3, coin__UxArray* p4); -extern GoUint32 SKY_fee_VerifyTransactionFee(Transaction__Handle p0, GoUint64 p1, GoUint64 p2); +extern GoUint32 SKY_fee_VerifyTransactionFee(Transaction__Handle p0, GoUint64 p1, GoUint32 p2); -extern GoUint32 SKY_fee_VerifyTransactionFeeForHours(GoUint64 p0, GoUint64 p1, GoUint64 p2); +extern GoUint32 SKY_fee_VerifyTransactionFeeForHours(GoUint64 p0, GoUint64 p1, GoUint32 p2); -extern GoUint32 SKY_fee_RequiredFee(GoUint64 p0, GoUint64 p1, GoUint64* p2); +extern GoUint32 SKY_fee_RequiredFee(GoUint64 p0, GoUint32 p1, GoUint64* p2); -extern GoUint32 SKY_fee_RemainingHours(GoUint64 p0, GoUint64 p1, GoUint64* p2); +extern GoUint32 SKY_fee_RemainingHours(GoUint64 p0, GoUint32 p1, GoUint64* p2); extern GoUint32 SKY_fee_TransactionFee(Transaction__Handle p0, GoUint64 p1, coin__UxArray* p2, GoUint64* p3); @@ -1156,11 +1172,11 @@ extern GoUint32 SKY_coin_Transaction_PushOutput(Transaction__Handle p0, cipher__ extern GoUint32 SKY_coin_Transaction_SignInputs(Transaction__Handle p0, GoSlice p1); -extern GoUint32 SKY_coin_Transaction_Size(Transaction__Handle p0, GoInt* p1); +extern GoUint32 SKY_coin_Transaction_Size(Transaction__Handle p0, GoUint32* p1); extern GoUint32 SKY_coin_Transaction_Hash(Transaction__Handle p0, cipher__SHA256* p1); -extern GoUint32 SKY_coin_Transaction_SizeHash(Transaction__Handle p0, GoInt* p1, cipher__SHA256* p2); +extern GoUint32 SKY_coin_Transaction_SizeHash(Transaction__Handle p0, GoUint32* p1, cipher__SHA256* p2); extern GoUint32 SKY_coin_Transaction_TxID(Transaction__Handle p0, coin__UxArray* p1); @@ -1190,9 +1206,9 @@ extern GoUint32 SKY_coin_Transactions_GetAt(Transactions__Handle p0, GoInt p1, T extern GoUint32 SKY_coin_Transactions_Hashes(Transactions__Handle p0, coin__UxArray* p1); -extern GoUint32 SKY_coin_Transactions_Size(Transactions__Handle p0, GoInt* p1); +extern GoUint32 SKY_coin_Transactions_Size(Transactions__Handle p0, GoUint32* p1); -extern GoUint32 SKY_coin_Transactions_TruncateBytesTo(Transactions__Handle p0, GoInt p1, Transactions__Handle* p2); +extern GoUint32 SKY_coin_Transactions_TruncateBytesTo(Transactions__Handle p0, GoUint32 p1, Transactions__Handle* p2); extern GoUint32 SKY_coin_SortTransactions(Transactions__Handle p0, FeeCalculator* p1, Transactions__Handle* p2); From dd691922d347473b600469ae9c4d7ccea017e147 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Mon, 12 Nov 2018 09:28:05 -0500 Subject: [PATCH 62/73] [test] refs #8 Rename functions Tests run: 85, Errors: 0, Failures: 0, Inconclusive: 0, Time: 15,9607057 seconds Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0 --- LibskycoinNet/skycoin/GoSlice.cs | 5 + LibskycoinNet/skycoin/SWIGTYPE_p_p_char.cs | 29 + LibskycoinNet/skycoin/_GoString_.cs | 5 + LibskycoinNet/skycoin/skycoin.cs | 5 - LibskycoinNet/skycoin/skycoinPINVOKE.cs | 9 +- LibskycoinNet/skycoin/skycoinnet_wrap.c | 206 +++-- LibskycoinNetTest/LibskycoinNetTest.csproj | 1 + LibskycoinNetTest/check_cipher_address.cs | 220 ++--- LibskycoinNetTest/check_cipher_bip39.cs | 62 +- LibskycoinNetTest/check_cipher_bitcoin.cs | 154 ++-- LibskycoinNetTest/check_cipher_crypto.cs | 385 +++++---- ..._cipher_encrypt_scrypt_chacha20poly1305.cs | 28 +- LibskycoinNetTest/check_cipher_hash.cs | 124 +-- LibskycoinNetTest/check_coin_block.cs | 188 ++-- LibskycoinNetTest/check_coin_math.cs | 28 +- LibskycoinNetTest/check_coin_outputs.cs | 450 +++++----- LibskycoinNetTest/check_coin_transactions.cs | 804 +++++++++--------- LibskycoinNetTest/check_util_droplet.cs | 42 +- LibskycoinNetTest/check_util_fee.cs | 138 +-- .../check_util_param_distributions.cs | 28 + Makefile | 4 +- swig/csharp_java_basic.i | 132 +-- swig/csharp_skycoin.mem.i | 9 +- swig/csharp_structs_typemaps.i | 24 +- swig/include/swig.h | 56 ++ 25 files changed, 1650 insertions(+), 1486 deletions(-) create mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_p_char.cs create mode 100644 LibskycoinNetTest/check_util_param_distributions.cs create mode 100644 swig/include/swig.h diff --git a/LibskycoinNet/skycoin/GoSlice.cs b/LibskycoinNet/skycoin/GoSlice.cs index 2e701716..1b8b5cd4 100644 --- a/LibskycoinNet/skycoin/GoSlice.cs +++ b/LibskycoinNet/skycoin/GoSlice.cs @@ -58,6 +58,11 @@ public void getString(_GoString_ arg0) { skycoinPINVOKE.GoSlice_getString(swigCPtr, _GoString_.getCPtr(arg0)); } + public int getAtString(int index, _GoString_ arg1) { + int ret = skycoinPINVOKE.GoSlice_getAtString(swigCPtr, index, _GoString_.getCPtr(arg1)); + return ret; + } + public SWIGTYPE_p_void data { set { skycoinPINVOKE.set_GoSlice_data(swigCPtr, SWIGTYPE_p_void.getCPtr(value)); diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_p_char.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_p_char.cs new file mode 100644 index 00000000..95573c1f --- /dev/null +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_p_char.cs @@ -0,0 +1,29 @@ +//------------------------------------------------------------------------------ +// +// +// This file was automatically generated by SWIG (http://www.swig.org). +// Version 3.0.12 +// +// Do not make changes to this file unless you know what you are doing--modify +// the SWIG interface file instead. +//------------------------------------------------------------------------------ + +namespace skycoin { + +public class SWIGTYPE_p_p_char { + private global::System.Runtime.InteropServices.HandleRef swigCPtr; + + internal SWIGTYPE_p_p_char(global::System.IntPtr cPtr, bool futureUse) { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_p_char() { + swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + } + + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_p_char obj) { + return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; + } +} + +} diff --git a/LibskycoinNet/skycoin/_GoString_.cs b/LibskycoinNet/skycoin/_GoString_.cs index 62943190..6faf79bd 100644 --- a/LibskycoinNet/skycoin/_GoString_.cs +++ b/LibskycoinNet/skycoin/_GoString_.cs @@ -45,6 +45,11 @@ public int SetString(string str) { return ret; } + public string getString() { + string ret = skycoinPINVOKE._GoString__getString(swigCPtr); + return ret; + } + public string p { set { skycoinPINVOKE.set__GoString__p(swigCPtr, value); diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs index 40b51849..95f9ec0c 100644 --- a/LibskycoinNet/skycoin/skycoin.cs +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -914,11 +914,6 @@ public static void hashKeyIndexNonce(SWIGTYPE_p_GoSlice_ key, long index, cipher } } - public static void makeEncryptedData(GoSlice data, uint dataLength, GoSlice pwd, GoSlice encrypted) { - skycoinPINVOKE.makeEncryptedData(GoSlice.getCPtr(data), dataLength, GoSlice.getCPtr(pwd), GoSlice.getCPtr (encrypted)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - public static void convertGoUint8toSHA256(SWIGTYPE_p_GoUint8_ __in, cipher_SHA256 __out) { skycoinPINVOKE.convertGoUint8toSHA256(SWIGTYPE_p_GoUint8_.getCPtr(__in), cipher_SHA256.getCPtr(__out)); } diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index 101aa45b..62b0b2fd 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -716,9 +716,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_hashKeyIndexNonce")] public static extern void hashKeyIndexNonce(global::System.Runtime.InteropServices.HandleRef jarg1, long jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_makeEncryptedData")] - public static extern void makeEncryptedData(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2, global::System.Runtime.InteropServices.HandleRef jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_convertGoUint8toSHA256")] public static extern void convertGoUint8toSHA256(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -1196,6 +1193,9 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin__GoString__SetString")] public static extern int _GoString__SetString(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin__GoString__getString")] + public static extern string _GoString__getString(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set__GoString__p")] public static extern void set__GoString__p(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); @@ -1244,6 +1244,9 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_getString")] public static extern void GoSlice_getString(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoSlice_getAtString")] + public static extern int GoSlice_getAtString(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, global::System.Runtime.InteropServices.HandleRef jarg3); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_GoSlice_data")] public static extern void set_GoSlice_data(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index b440cd29..553839f1 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -1477,72 +1477,72 @@ void hashKeyIndexNonce(GoSlice_ key, GoInt64 index, SKY_cipher_AddSHA256(key.data, &indexNonceHash, resultHash); } -void makeEncryptedData(GoSlice data, GoUint32 dataLength, GoSlice pwd, coin__UxArray* encrypted){ - GoUint32 fullLength = dataLength + 4; - GoUint32 n = fullLength / 32; - GoUint32 m = fullLength % 32; - GoUint32 errcode; - - if( m > 0 ){ - fullLength += 32 - m; - } - if(32 == sizeof(cipher__SHA256)){ return ;} - fullLength += 32; - char* buffer = malloc(fullLength); - if(buffer != NULL){return;} - //Add data length to the beginning, saving space for the checksum - int i; - for(i = 0; i < 4; i++){ - int shift = i * 8; - buffer[i + 32] = (dataLength & (0xFF << shift)) >> shift; - } - //Add the data - memcpy(buffer + 4 + 32, - data.data, dataLength); - //Add padding - for(i = dataLength + 4 + 32; i < fullLength; i++){ - buffer[i] = 0; - } - //Buffer with space for the checksum, then data length, then data, and then padding - GoSlice _data = {buffer + 32, - fullLength - 32, - fullLength - 32}; - //GoSlice _hash = {buffer, 0, 32}; - errcode = SKY_cipher_SumSHA256(_data, (cipher__SHA256*)buffer); - char bufferNonce[32]; - GoSlice sliceNonce = {bufferNonce, 0, 32}; - randBytes(&sliceNonce, 32); - cipher__SHA256 hashNonce; - errcode = SKY_cipher_SumSHA256(sliceNonce, &hashNonce); - char bufferHash[1024]; - coin__UxArray hashPassword = {bufferHash, 0, 1024}; - errcode = SKY_secp256k1_Secp256k1Hash(pwd, &hashPassword); - cipher__SHA256 h; - - - int fullDestLength = fullLength + sizeof(cipher__SHA256) + 32; - int destBufferStart = sizeof(cipher__SHA256) + 32; - unsigned char* dest_buffer = malloc(fullDestLength); - if(dest_buffer != NULL){return;} - for(i = 0; i < n; i++){ - hashKeyIndexNonce(hashPassword, i, &hashNonce, &h); - cipher__SHA256* pBuffer = (cipher__SHA256*)(buffer + i *32); - cipher__SHA256* xorResult = (cipher__SHA256*)(dest_buffer + destBufferStart + i *32); - SKY_cipher_SHA256_Xor(pBuffer, &h, xorResult); - } - // Prefix the nonce - memcpy(dest_buffer + sizeof(cipher__SHA256), bufferNonce, 32); - // Calculates the checksum - GoSlice nonceAndDataBytes = {dest_buffer + sizeof(cipher__SHA256), - fullLength + 32, - fullLength + 32 - }; - cipher__SHA256* checksum = (cipher__SHA256*)dest_buffer; - errcode = SKY_cipher_SumSHA256(nonceAndDataBytes, checksum); - unsigned char bufferb64[1024]; - unsigned int size = b64_encode((const unsigned char*)dest_buffer, fullDestLength, encrypted->data); - encrypted->len = size; -} +// void makeEncryptedData(GoSlice data, GoUint32 dataLength, GoSlice pwd, coin__UxArray* encrypted){ +// GoUint32 fullLength = dataLength + 4; +// GoUint32 n = fullLength / 32; +// GoUint32 m = fullLength % 32; +// GoUint32 errcode; + +// if( m > 0 ){ +// fullLength += 32 - m; +// } +// if(32 == sizeof(cipher__SHA256)){ return ;} +// fullLength += 32; +// char* buffer = malloc(fullLength); +// if(buffer != NULL){return;} +// //Add data length to the beginning, saving space for the checksum +// int i; +// for(i = 0; i < 4; i++){ +// int shift = i * 8; +// buffer[i + 32] = (dataLength & (0xFF << shift)) >> shift; +// } +// //Add the data +// memcpy(buffer + 4 + 32, +// data.data, dataLength); +// //Add padding +// for(i = dataLength + 4 + 32; i < fullLength; i++){ +// buffer[i] = 0; +// } +// //Buffer with space for the checksum, then data length, then data, and then padding +// GoSlice _data = {buffer + 32, +// fullLength - 32, +// fullLength - 32}; +// //GoSlice _hash = {buffer, 0, 32}; +// errcode = SKY_cipher_SumSHA256(_data, (cipher__SHA256*)buffer); +// char bufferNonce[32]; +// GoSlice sliceNonce = {bufferNonce, 0, 32}; +// randBytes(&sliceNonce, 32); +// cipher__SHA256 hashNonce; +// errcode = SKY_cipher_SumSHA256(sliceNonce, &hashNonce); +// char bufferHash[1024]; +// coin__UxArray hashPassword = {bufferHash, 0, 1024}; +// errcode = SKY_secp256k1_Secp256k1Hash(pwd, &hashPassword); +// cipher__SHA256 h; + + +// int fullDestLength = fullLength + sizeof(cipher__SHA256) + 32; +// int destBufferStart = sizeof(cipher__SHA256) + 32; +// unsigned char* dest_buffer = malloc(fullDestLength); +// if(dest_buffer != NULL){return;} +// for(i = 0; i < n; i++){ +// hashKeyIndexNonce(hashPassword, i, &hashNonce, &h); +// cipher__SHA256* pBuffer = (cipher__SHA256*)(buffer + i *32); +// cipher__SHA256* xorResult = (cipher__SHA256*)(dest_buffer + destBufferStart + i *32); +// SKY_cipher_SHA256_Xor(pBuffer, &h, xorResult); +// } +// // Prefix the nonce +// memcpy(dest_buffer + sizeof(cipher__SHA256), bufferNonce, 32); +// // Calculates the checksum +// GoSlice nonceAndDataBytes = {dest_buffer + sizeof(cipher__SHA256), +// fullLength + 32, +// fullLength + 32 +// }; +// cipher__SHA256* checksum = (cipher__SHA256*)dest_buffer; +// errcode = SKY_cipher_SumSHA256(nonceAndDataBytes, checksum); +// unsigned char bufferb64[1024]; +// unsigned int size = b64_encode((const unsigned char*)dest_buffer, fullDestLength, encrypted->data); +// encrypted->len = size; +// } void convertGoUint8toSHA256(GoUint8_* __in, cipher_SHA256* __out){ memcpy(__out->data, __in, 32); @@ -2244,6 +2244,9 @@ SWIGINTERN int _GoString__SetString(_GoString_ *self,char *str){ self->p = str; self->n = strlen(str); } +SWIGINTERN char *_GoString__getString(_GoString_ *self){ + return (const char *)self->p; + } SWIGINTERN int GoSlice_isEqual(GoSlice *self,GoSlice *slice){ return ((self->len == slice->len)) && (memcmp(self->data,slice->data, sizeof(GoSlice_))==0 ); } @@ -2256,8 +2259,21 @@ SWIGINTERN void GoSlice_setAtChar(GoSlice *self,char p,unsigned long long i){ ((char *) self->data)[i] = p; } SWIGINTERN void GoSlice_getString(GoSlice *self,_GoString_ *out){ - out->p = (char *)self->data; - out->n = strlen((char *)self->data); + out->p = (char *)self->data; + out->n = strlen((char *)self->data); +} +SWIGINTERN int GoSlice_getAtString(GoSlice *self,int index,_GoString_ *out){ + int i; + GoString *iStr ; + memset(iStr, 0, sizeof(GoString)); +for (i = 0, iStr = (GoString*) self->data; i <= index; ++i, ++iStr) { + if(i == index){ + memset(&out, 0, sizeof(_GoString_)); + memcpy(&out,&iStr,sizeof(_GoString_)); + return 0; + } +} +return 1; } SWIGINTERN char cipher__Address_getVersion(cipher__Address *self){ return self->Version; @@ -4572,32 +4588,6 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_hashKeyIndexNonce(void * jarg1, long } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_makeEncryptedData(void * jarg1, unsigned int jarg2, void * jarg3, GoSlice_ * jarg4) { - GoSlice arg1 ; - GoUint32 arg2 ; - GoSlice arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; - GoSlice *argp3 ; - - argp1 = (GoSlice *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return ; - } - arg1 = *argp1; - arg2 = (GoUint32)jarg2; - argp3 = (GoSlice *)jarg3; - if (!argp3) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoSlice", 0); - return ; - } - arg3 = *argp3; - arg4 = (coin__UxArray *)jarg4; - makeEncryptedData(arg1,arg2,arg3,arg4); -} - - SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_convertGoUint8toSHA256(void * jarg1, void * jarg2) { GoUint8_ *arg1 = (GoUint8_ *) 0 ; cipher_SHA256 *arg2 = (cipher_SHA256 *) 0 ; @@ -6726,6 +6716,18 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin__GoString__SetString(void * jarg1, cha } +SWIGEXPORT char * SWIGSTDCALL CSharp_skycoin__GoString__getString(void * jarg1) { + char * jresult ; + _GoString_ *arg1 = (_GoString_ *) 0 ; + char *result = 0 ; + + arg1 = (_GoString_ *)jarg1; + result = (char *)_GoString__getString(arg1); + jresult = SWIG_csharp_string_callback((const char *)result); + return jresult; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set__GoString__p(void * jarg1, char * jarg2) { _GoString_ *arg1 = (_GoString_ *) 0 ; char *arg2 = (char *) 0 ; @@ -6909,6 +6911,22 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoSlice_getString(void * jarg1, void } +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_GoSlice_getAtString(void * jarg1, int jarg2, void * jarg3) { + int jresult ; + GoSlice *arg1 = (GoSlice *) 0 ; + int arg2 ; + _GoString_ *arg3 = (_GoString_ *) 0 ; + int result; + + arg1 = (GoSlice *)jarg1; + arg2 = (int)jarg2; + arg3 = (_GoString_ *)jarg3; + result = (int)GoSlice_getAtString(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_GoSlice_data(void * jarg1, void * jarg2) { GoSlice *arg1 = (GoSlice *) 0 ; void *arg2 = (void *) 0 ; diff --git a/LibskycoinNetTest/LibskycoinNetTest.csproj b/LibskycoinNetTest/LibskycoinNetTest.csproj index e342ae66..ed8fb7e1 100644 --- a/LibskycoinNetTest/LibskycoinNetTest.csproj +++ b/LibskycoinNetTest/LibskycoinNetTest.csproj @@ -50,6 +50,7 @@ + diff --git a/LibskycoinNetTest/check_cipher_address.cs b/LibskycoinNetTest/check_cipher_address.cs index d6e7c3f4..7bfeb2ef 100644 --- a/LibskycoinNetTest/check_cipher_address.cs +++ b/LibskycoinNetTest/check_cipher_address.cs @@ -3,158 +3,158 @@ using skycoin; namespace LibskycoinNetTest { [TestFixture ()] - public class check_cipher_address { + public class check_cipher_address : skycoin.skycoin { [Test ()] public void TestDecodeBase58Address () { uint err = 0; - var s = new skycoin.cipher_SecKey (); - var p = new skycoin.cipher_PubKey (); - Assert.AreEqual (skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s), skycoin.skycoin.SKY_OK, "Failed SKY_cipher_GenerateKeyPair"); - err = skycoin.skycoin.SKY_cipher_SecKey_Verify (s); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK, "Failed SKY_cipher_SecKey_Verify "); - err = skycoin.skycoin.SKY_cipher_PubKey_Verify (p); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK, "Failed SKY_cipher_PubKey_Verify"); - var a = new skycoin.cipher__Address (); - var a1 = new skycoin.cipher__Address (); - var a2 = new skycoin.cipher__Address (); - err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, a); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK, "Failed SKY_cipher_AddressFromPubKey"); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK, "Failed SKY_cipher_AddressFromPubKey"); - err = skycoin.skycoin.SKY_cipher_Address_Verify (a, p); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK, " Failed SKY_cipher_Address_Verify"); - err = skycoin.skycoin.SKY_cipher_DecodeBase58Address ("", a1); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidBase58String, "Failed SKY_cipher_DecodeBase58Address 1"); - err = skycoin.skycoin.SKY_cipher_DecodeBase58Address ("asa", a1); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrAddressInvalidLength, "Failed SKY_cipher_DecodeBase58Address 2"); + var s = new cipher_SecKey (); + var p = new cipher_PubKey (); + Assert.AreEqual (SKY_cipher_GenerateKeyPair (p, s), SKY_OK, "Failed SKY_cipher_GenerateKeyPair"); + err = SKY_cipher_SecKey_Verify (s); + Assert.AreEqual (err, SKY_OK, "Failed SKY_cipher_SecKey_Verify "); + err = SKY_cipher_PubKey_Verify (p); + Assert.AreEqual (err, SKY_OK, "Failed SKY_cipher_PubKey_Verify"); + var a = new cipher__Address (); + var a1 = new cipher__Address (); + var a2 = new cipher__Address (); + err = SKY_cipher_AddressFromPubKey (p, a); + Assert.AreEqual (err, SKY_OK, "Failed SKY_cipher_AddressFromPubKey"); + Assert.AreEqual (err, SKY_OK, "Failed SKY_cipher_AddressFromPubKey"); + err = SKY_cipher_Address_Verify (a, p); + Assert.AreEqual (err, SKY_OK, " Failed SKY_cipher_Address_Verify"); + err = SKY_cipher_DecodeBase58Address ("", a1); + Assert.AreEqual (err, SKY_ErrInvalidBase58String, "Failed SKY_cipher_DecodeBase58Address 1"); + err = SKY_cipher_DecodeBase58Address ("asa", a1); + Assert.AreEqual (err, SKY_ErrAddressInvalidLength, "Failed SKY_cipher_DecodeBase58Address 2"); - var addrStr = new skycoin._GoString_ (); - err = skycoin.skycoin.SKY_cipher_Address_String (a, addrStr); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_DecodeBase58Address (addrStr.p, a2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK, "Failed SKY_cipher_DecodeBase58Address"); + var addrStr = new _GoString_ (); + err = SKY_cipher_Address_String (a, addrStr); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_DecodeBase58Address (addrStr.p, a2); + Assert.AreEqual (err, SKY_OK, "Failed SKY_cipher_DecodeBase58Address"); Assert.IsTrue (a.isEqual (a2) == 1); var as2 = " " + addrStr.p; - err = skycoin.skycoin.SKY_cipher_DecodeBase58Address (as2, a1); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidBase58Char, "Failed SKY_cipher_DecodeBase58Address 3"); + err = SKY_cipher_DecodeBase58Address (as2, a1); + Assert.AreEqual (err, SKY_ErrInvalidBase58Char, "Failed SKY_cipher_DecodeBase58Address 3"); as2 = "000" + addrStr.p; - err = skycoin.skycoin.SKY_cipher_DecodeBase58Address (as2, a1); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidBase58Char, "Failed SKY_cipher_DecodeBase58Address 3"); + err = SKY_cipher_DecodeBase58Address (as2, a1); + Assert.AreEqual (err, SKY_ErrInvalidBase58Char, "Failed SKY_cipher_DecodeBase58Address 3"); as2 = addrStr.p + "000"; - err = skycoin.skycoin.SKY_cipher_DecodeBase58Address (as2, a1); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidBase58Char, "Failed SKY_cipher_DecodeBase58Address 3"); + err = SKY_cipher_DecodeBase58Address (as2, a1); + Assert.AreEqual (err, SKY_ErrInvalidBase58Char, "Failed SKY_cipher_DecodeBase58Address 3"); } [Test] public void TestAddressFromBytes () { - var s = new skycoin.cipher_SecKey (); - var p = new skycoin.cipher_PubKey (); - uint err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var a = new skycoin.cipher__Address (); - var a2 = new skycoin.cipher__Address (); - err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, a); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var b = new skycoin.GoSlice (); - var b2 = new skycoin.GoSlice (); + var s = new cipher_SecKey (); + var p = new cipher_PubKey (); + uint err = SKY_cipher_GenerateKeyPair (p, s); + Assert.AreEqual (err, SKY_OK); + var a = new cipher__Address (); + var a2 = new cipher__Address (); + err = SKY_cipher_AddressFromPubKey (p, a); + Assert.AreEqual (err, SKY_OK); + var b = new GoSlice (); + var b2 = new GoSlice (); - err = skycoin.skycoin.SKY_cipher_Address_Bytes (a, b); - err = skycoin.skycoin.SKY_cipher_Address_Bytes (a, b2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_AddressFromBytes (b2, a2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_cipher_Address_Bytes (a, b); + err = SKY_cipher_Address_Bytes (a, b2); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_AddressFromBytes (b2, a2); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (a2.isEqual (a), 1); // Invalid number of bytes long len_b = b.len; b.len = b.len - 2; - err = skycoin.skycoin.SKY_cipher_AddressFromBytes (b, a2); - Assert.AreEqual (skycoin.skycoin.SKY_ErrAddressInvalidLength, err, "Failed SKY_cipher_AddressFromBytes 2"); + err = SKY_cipher_AddressFromBytes (b, a2); + Assert.AreEqual (SKY_ErrAddressInvalidLength, err, "Failed SKY_cipher_AddressFromBytes 2"); b.len = len_b; a.setVersion ('2'); - err = skycoin.skycoin.SKY_cipher_Address_Bytes (a, b); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK, "SKY_cipher_Address_Bytes SKY_ErrAddressInvalidVersion"); - err = skycoin.skycoin.SKY_cipher_AddressFromBytes (b, a); - Assert.AreEqual (skycoin.skycoin.SKY_ErrAddressInvalidVersion, err); + err = SKY_cipher_Address_Bytes (a, b); + Assert.AreEqual (err, SKY_OK, "SKY_cipher_Address_Bytes SKY_ErrAddressInvalidVersion"); + err = SKY_cipher_AddressFromBytes (b, a); + Assert.AreEqual (SKY_ErrAddressInvalidVersion, err); } [Test] public void TestAddressRoundtrip () { // Tests encode and decode - var p = new skycoin.cipher_PubKey (); - var s = new skycoin.cipher_SecKey (); - var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var a = new skycoin.cipher__Address (); - err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, a); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var b = new skycoin.GoSlice (); - err = skycoin.skycoin.SKY_cipher_Address_Bytes (a, b); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_AddressFromBytes (b, a); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var a2 = new skycoin.cipher__Address (); - err = skycoin.skycoin.SKY_cipher_AddressFromBytes (b, a2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var p = new cipher_PubKey (); + var s = new cipher_SecKey (); + var err = SKY_cipher_GenerateKeyPair (p, s); + Assert.AreEqual (err, SKY_OK); + var a = new cipher__Address (); + err = SKY_cipher_AddressFromPubKey (p, a); + Assert.AreEqual (err, SKY_OK); + var b = new GoSlice (); + err = SKY_cipher_Address_Bytes (a, b); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_AddressFromBytes (b, a); + Assert.AreEqual (err, SKY_OK); + var a2 = new cipher__Address (); + err = SKY_cipher_AddressFromBytes (b, a2); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (a.isEqual (a2), 1); var str = new _GoString_ (); var str2 = new _GoString_ (); - err = skycoin.skycoin.SKY_cipher_Address_String (a, str); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_Address_String (a2, str2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_cipher_Address_String (a, str); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_Address_String (a2, str2); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (str.p == str2.p, true); } [Test] public void TestAddressVerify () { - var p = new skycoin.cipher_PubKey (); - var s = new skycoin.cipher_SecKey (); - var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var a = new skycoin.cipher__Address (); - err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, a); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var p = new cipher_PubKey (); + var s = new cipher_SecKey (); + var err = SKY_cipher_GenerateKeyPair (p, s); + Assert.AreEqual (err, SKY_OK); + var a = new cipher__Address (); + err = SKY_cipher_AddressFromPubKey (p, a); + Assert.AreEqual (err, SKY_OK); // Valid pubkey+address - err = skycoin.skycoin.SKY_cipher_Address_Verify (a, p); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_cipher_Address_Verify (a, p); + Assert.AreEqual (err, SKY_OK); // Invalid pubkey - err = skycoin.skycoin.SKY_cipher_Address_Verify (a, new skycoin.cipher_PubKey ()); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrAddressInvalidPubKey); - var p2 = new skycoin.cipher_PubKey (); - var s2 = new skycoin.cipher_SecKey (); - err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p2, s2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_Address_Verify (a, p2); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrAddressInvalidPubKey); + err = SKY_cipher_Address_Verify (a, new cipher_PubKey ()); + Assert.AreEqual (err, SKY_ErrAddressInvalidPubKey); + var p2 = new cipher_PubKey (); + var s2 = new cipher_SecKey (); + err = SKY_cipher_GenerateKeyPair (p2, s2); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_Address_Verify (a, p2); + Assert.AreEqual (err, SKY_ErrAddressInvalidPubKey); // Bad version a.setVersion ('1'); - err = skycoin.skycoin.SKY_cipher_Address_Verify (a, p); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrAddressInvalidVersion); + err = SKY_cipher_Address_Verify (a, p); + Assert.AreEqual (err, SKY_ErrAddressInvalidVersion); } [Test] public void TestAddressBulk () { for (int i = 0; i < 1024; i++) { - var pub = new skycoin.cipher_PubKey (); - var sec = new skycoin.cipher_SecKey (); + var pub = new cipher_PubKey (); + var sec = new cipher_SecKey (); var b = new GoSlice (); - var err = skycoin.skycoin.SKY_cipher_RandByte (32, b); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_GenerateDeterministicKeyPair (b, pub, sec); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var err = SKY_cipher_RandByte (32, b); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_GenerateDeterministicKeyPair (b, pub, sec); + Assert.AreEqual (err, SKY_OK); var a = new cipher__Address (); - err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (pub, a); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_Address_Verify (a, pub); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_cipher_AddressFromPubKey (pub, a); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_Address_Verify (a, pub); + Assert.AreEqual (err, SKY_OK); var s = new _GoString_ (); - err = skycoin.skycoin.SKY_cipher_Address_String (a, s); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_cipher_Address_String (a, s); + Assert.AreEqual (err, SKY_OK); var a2 = new cipher__Address (); - err = skycoin.skycoin.SKY_cipher_DecodeBase58Address (s.p, a2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_cipher_DecodeBase58Address (s.p, a2); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (a2.isEqual (a), 1); } } @@ -162,14 +162,14 @@ public void TestAddressBulk () { [Test] public void TestAddressNull () { var a = new cipher__Address (); - Assert.AreEqual (a.isEqual (new skycoin.cipher__Address ()), 1); + Assert.AreEqual (a.isEqual (new cipher__Address ()), 1); var p = new cipher_PubKey (); var s = new cipher_SecKey (); - var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, a); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (a.isEqual (new skycoin.cipher__Address ()), 0); + var err = SKY_cipher_GenerateKeyPair (p, s); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_AddressFromPubKey (p, a); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (a.isEqual (new cipher__Address ()), 0); } } diff --git a/LibskycoinNetTest/check_cipher_bip39.cs b/LibskycoinNetTest/check_cipher_bip39.cs index c52d1e8f..b0289bfa 100644 --- a/LibskycoinNetTest/check_cipher_bip39.cs +++ b/LibskycoinNetTest/check_cipher_bip39.cs @@ -4,68 +4,68 @@ using utils; namespace LibskycoinNetTest { [TestFixture ()] - public class check_cipher_bip39 { + public class check_cipher_bip39 : skycoin.skycoin { utils.transutils utils = new transutils (); [Test] public void TestIsMnemonicValid () { var m = new _GoString_ (); - var err = skycoin.skycoin.SKY_bip39_NewDefaultMnemomic (m); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var val = skycoin.skycoin.new_CharPtr (); - err = skycoin.skycoin.SKY_bip39_IsMnemonicValid (m.p, val); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.IsTrue (Convert.ToBoolean (skycoin.skycoin.CharPtr_value (val))); + var err = SKY_bip39_NewDefaultMnemomic (m); + Assert.AreEqual (err, SKY_OK); + var val = new_CharPtr (); + err = SKY_bip39_IsMnemonicValid (m.p, val); + Assert.AreEqual (err, SKY_OK); + Assert.IsTrue (Convert.ToBoolean (CharPtr_value (val))); // Truncated var str = m.p; str = str.Substring (0, str.Length - 15); - err = skycoin.skycoin.SKY_bip39_IsMnemonicValid (str, val); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.IsFalse (Convert.ToBoolean (skycoin.skycoin.CharPtr_value (val))); + err = SKY_bip39_IsMnemonicValid (str, val); + Assert.AreEqual (err, SKY_OK); + Assert.IsFalse (Convert.ToBoolean (CharPtr_value (val))); // Trailing whitespace str = m.p; str += " "; - err = skycoin.skycoin.SKY_bip39_IsMnemonicValid (str, val); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.IsFalse (Convert.ToBoolean (skycoin.skycoin.CharPtr_value (val))); + err = SKY_bip39_IsMnemonicValid (str, val); + Assert.AreEqual (err, SKY_OK); + Assert.IsFalse (Convert.ToBoolean (CharPtr_value (val))); str = m.p; str += "/n"; - err = skycoin.skycoin.SKY_bip39_IsMnemonicValid (str, val); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.IsFalse (Convert.ToBoolean (skycoin.skycoin.CharPtr_value (val))); + err = SKY_bip39_IsMnemonicValid (str, val); + Assert.AreEqual (err, SKY_OK); + Assert.IsFalse (Convert.ToBoolean (CharPtr_value (val))); // Preceding whitespace str = m.p; str = String.Concat (str, " "); str = String.Concat (str, str); - err = skycoin.skycoin.SKY_bip39_IsMnemonicValid (str, val); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.IsFalse (Convert.ToBoolean (skycoin.skycoin.CharPtr_value (val))); + err = SKY_bip39_IsMnemonicValid (str, val); + Assert.AreEqual (err, SKY_OK); + Assert.IsFalse (Convert.ToBoolean (CharPtr_value (val))); str = m.p; str += "/n" + str; - err = skycoin.skycoin.SKY_bip39_IsMnemonicValid (str, val); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.IsFalse (Convert.ToBoolean (skycoin.skycoin.CharPtr_value (val))); + err = SKY_bip39_IsMnemonicValid (str, val); + Assert.AreEqual (err, SKY_OK); + Assert.IsFalse (Convert.ToBoolean (CharPtr_value (val))); // Extra whitespace between words str = m.p; var ms = str.Split (' '); str = String.Join (" ", ms); - err = skycoin.skycoin.SKY_bip39_IsMnemonicValid (str, val); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.IsFalse (Convert.ToBoolean (skycoin.skycoin.CharPtr_value (val))); + err = SKY_bip39_IsMnemonicValid (str, val); + Assert.AreEqual (err, SKY_OK); + Assert.IsFalse (Convert.ToBoolean (CharPtr_value (val))); // Contains invalid word str = m.p; ms = str.Split (' '); ms[2] = "foo"; str = String.Join (" ", ms); - err = skycoin.skycoin.SKY_bip39_IsMnemonicValid (str, val); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.IsFalse (Convert.ToBoolean (skycoin.skycoin.CharPtr_value (val))); + err = SKY_bip39_IsMnemonicValid (str, val); + Assert.AreEqual (err, SKY_OK); + Assert.IsFalse (Convert.ToBoolean (CharPtr_value (val))); // Invalid number of words str = m.p; @@ -75,9 +75,9 @@ public void TestIsMnemonicValid () { ms1[i] = ms[i]; } str = String.Join (" ", ms1); - err = skycoin.skycoin.SKY_bip39_IsMnemonicValid (str, val); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.IsFalse (Convert.ToBoolean (skycoin.skycoin.CharPtr_value (val))); + err = SKY_bip39_IsMnemonicValid (str, val); + Assert.AreEqual (err, SKY_OK); + Assert.IsFalse (Convert.ToBoolean (CharPtr_value (val))); } } diff --git a/LibskycoinNetTest/check_cipher_bitcoin.cs b/LibskycoinNetTest/check_cipher_bitcoin.cs index 79063342..fb3c4eaa 100644 --- a/LibskycoinNetTest/check_cipher_bitcoin.cs +++ b/LibskycoinNetTest/check_cipher_bitcoin.cs @@ -4,7 +4,7 @@ using utils; namespace LibskycoinNetTest { [TestFixture ()] - public class check_cipher_bitcoin { + public class check_cipher_bitcoin : skycoin.skycoin { utils.transutils utils = new transutils (); [Test] @@ -14,59 +14,59 @@ public void TestDecodeBase58BitcoinAddress () { var a = new cipher__BitcoinAddress (); var addrTmp = new cipher__BitcoinAddress (); - var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - skycoin.skycoin.SKY_cipher_BitcoinAddressFromPubKey (p, a); - err = skycoin.skycoin.SKY_cipher_BitcoinAddress_Verify (a, p); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var err = SKY_cipher_GenerateKeyPair (p, s); + Assert.AreEqual (err, SKY_OK); + SKY_cipher_BitcoinAddressFromPubKey (p, a); + err = SKY_cipher_BitcoinAddress_Verify (a, p); + Assert.AreEqual (err, SKY_OK); - err = skycoin.skycoin.SKY_cipher_DecodeBase58BitcoinAddress ("", addrTmp); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidBase58String); + err = SKY_cipher_DecodeBase58BitcoinAddress ("", addrTmp); + Assert.AreEqual (err, SKY_ErrInvalidBase58String); - err = skycoin.skycoin.SKY_cipher_DecodeBase58BitcoinAddress ("cascs", addrTmp); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrAddressInvalidLength); + err = SKY_cipher_DecodeBase58BitcoinAddress ("cascs", addrTmp); + Assert.AreEqual (err, SKY_ErrAddressInvalidLength); var b = new GoSlice (); - skycoin.skycoin.SKY_cipher_BitcoinAddress_Bytes (a, b); + SKY_cipher_BitcoinAddress_Bytes (a, b); b.len = b.len / 2; var h = new _GoString_ (); - skycoin.skycoin.SKY_base58_Hex2Base58Str (b, h); - err = skycoin.skycoin.SKY_cipher_DecodeBase58BitcoinAddress (h.p, addrTmp); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrAddressInvalidLength); + SKY_base58_Hex2Base58Str (b, h); + err = SKY_cipher_DecodeBase58BitcoinAddress (h.p, addrTmp); + Assert.AreEqual (err, SKY_ErrAddressInvalidLength); b = new GoSlice (); - skycoin.skycoin.SKY_cipher_BitcoinAddress_Bytes (a, b); + SKY_cipher_BitcoinAddress_Bytes (a, b); h = new _GoString_ (); - skycoin.skycoin.SKY_base58_Hex2Base58Str (b, h); - err = skycoin.skycoin.SKY_cipher_DecodeBase58BitcoinAddress (h.p, addrTmp); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + SKY_base58_Hex2Base58Str (b, h); + err = SKY_cipher_DecodeBase58BitcoinAddress (h.p, addrTmp); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (a.isEqual (addrTmp), 1); var As = new _GoString_ (); - skycoin.skycoin.SKY_cipher_BitcoinAddress_String (a, As); - err = skycoin.skycoin.SKY_cipher_DecodeBase58BitcoinAddress (As.p, addrTmp); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + SKY_cipher_BitcoinAddress_String (a, As); + err = SKY_cipher_DecodeBase58BitcoinAddress (As.p, addrTmp); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (a.isEqual (addrTmp), 1); // preceding whitespace is invalid var as2 = " " + As.p; - err = skycoin.skycoin.SKY_cipher_DecodeBase58BitcoinAddress (as2, addrTmp); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidBase58Char); + err = SKY_cipher_DecodeBase58BitcoinAddress (as2, addrTmp); + Assert.AreEqual (err, SKY_ErrInvalidBase58Char); // preceding zeroes are invalid as2 = "000" + As.p; - err = skycoin.skycoin.SKY_cipher_DecodeBase58BitcoinAddress (as2, addrTmp); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidBase58Char); + err = SKY_cipher_DecodeBase58BitcoinAddress (as2, addrTmp); + Assert.AreEqual (err, SKY_ErrInvalidBase58Char); // trailing whitespace is invalid as2 = As.p + " "; - err = skycoin.skycoin.SKY_cipher_DecodeBase58BitcoinAddress (as2, addrTmp); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidBase58Char); + err = SKY_cipher_DecodeBase58BitcoinAddress (as2, addrTmp); + Assert.AreEqual (err, SKY_ErrInvalidBase58Char); // trailing zeroes are invalid as2 = As.p + "000"; - err = skycoin.skycoin.SKY_cipher_DecodeBase58BitcoinAddress (as2, addrTmp); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidBase58Char); + err = SKY_cipher_DecodeBase58BitcoinAddress (as2, addrTmp); + Assert.AreEqual (err, SKY_ErrInvalidBase58Char); } @@ -74,34 +74,34 @@ public void TestDecodeBase58BitcoinAddress () { public void TestBitcoinAddressFromBytes () { var s = new skycoin.cipher_SecKey (); var p = new skycoin.cipher_PubKey (); - var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK, "Failed SKY_cipher_GenerateKeyPair"); + var err = SKY_cipher_GenerateKeyPair (p, s); + Assert.AreEqual (err, SKY_OK, "Failed SKY_cipher_GenerateKeyPair"); var a = new skycoin.cipher__BitcoinAddress (); - skycoin.skycoin.SKY_cipher_BitcoinAddressFromPubKey (p, a); + SKY_cipher_BitcoinAddressFromPubKey (p, a); var pk = new GoSlice (); var b = new GoSlice (); var a2 = new skycoin.cipher__BitcoinAddress (); - skycoin.skycoin.SKY_cipher_BitcoinAddress_Bytes (a, b); - err = skycoin.skycoin.SKY_cipher_BitcoinAddressFromBytes (b, a2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK, "Failed SKY_cipher_BitcoinAddressFromBytes"); + SKY_cipher_BitcoinAddress_Bytes (a, b); + err = SKY_cipher_BitcoinAddressFromBytes (b, a2); + Assert.AreEqual (err, SKY_OK, "Failed SKY_cipher_BitcoinAddressFromBytes"); Assert.AreEqual (a2.isEqual (a), 1); // Invalid number of bytes - skycoin.skycoin.SKY_cipher_BitcoinAddress_Bytes (a, b); + SKY_cipher_BitcoinAddress_Bytes (a, b); b.len = b.len - 2; - err = skycoin.skycoin.SKY_cipher_BitcoinAddressFromBytes (b, a2); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrAddressInvalidLength); + err = SKY_cipher_BitcoinAddressFromBytes (b, a2); + Assert.AreEqual (err, SKY_ErrAddressInvalidLength); // Invalid checksum - skycoin.skycoin.SKY_cipher_BitcoinAddress_Bytes (a, b); + SKY_cipher_BitcoinAddress_Bytes (a, b); b.setAtChar ('2', (ulong) b.len - 1); - err = skycoin.skycoin.SKY_cipher_BitcoinAddressFromBytes (b, a2); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrAddressInvalidChecksum); + err = SKY_cipher_BitcoinAddressFromBytes (b, a2); + Assert.AreEqual (err, SKY_ErrAddressInvalidChecksum); a.Version = 2; - skycoin.skycoin.SKY_cipher_BitcoinAddress_Bytes (a, b); - err = skycoin.skycoin.SKY_cipher_BitcoinAddressFromBytes (b, a2); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrAddressInvalidVersion); + SKY_cipher_BitcoinAddress_Bytes (a, b); + err = SKY_cipher_BitcoinAddressFromBytes (b, a2); + Assert.AreEqual (err, SKY_ErrAddressInvalidVersion); } [Test] @@ -110,27 +110,27 @@ public void TestBitcoinAddressFromSecKey () { var s = new cipher_SecKey (); var a = new cipher__BitcoinAddress (); var a2 = new cipher__BitcoinAddress (); - skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); - var err = skycoin.skycoin.SKY_cipher_BitcoinAddressFromSecKey (s, a); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + SKY_cipher_GenerateKeyPair (p, s); + var err = SKY_cipher_BitcoinAddressFromSecKey (s, a); + Assert.AreEqual (err, SKY_OK); // Valid pubkey+address - err = skycoin.skycoin.SKY_cipher_BitcoinAddress_Verify (a, p); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_cipher_BitcoinAddress_Verify (a, p); + Assert.AreEqual (err, SKY_OK); - err = skycoin.skycoin.SKY_cipher_BitcoinAddressFromSecKey (new cipher_SecKey (), a2); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrPubKeyFromNullSecKey); + err = SKY_cipher_BitcoinAddressFromSecKey (new cipher_SecKey (), a2); + Assert.AreEqual (err, SKY_ErrPubKeyFromNullSecKey); } [Test] public void TestBitcoinAddressNull () { var a = new cipher__BitcoinAddress (); - Assert.IsTrue (Convert.ToBoolean (skycoin.skycoin.SKY_cipher_BitcoinAddress_Null (a))); + Assert.IsTrue (Convert.ToBoolean (SKY_cipher_BitcoinAddress_Null (a))); var p = new cipher_PubKey (); var s = new cipher_SecKey (); - var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); - skycoin.skycoin.SKY_cipher_BitcoinAddressFromPubKey (p, a); - Assert.IsFalse (Convert.ToBoolean (skycoin.skycoin.SKY_cipher_BitcoinAddress_Null (a))); + var err = SKY_cipher_GenerateKeyPair (p, s); + SKY_cipher_BitcoinAddressFromPubKey (p, a); + Assert.IsFalse (Convert.ToBoolean (SKY_cipher_BitcoinAddress_Null (a))); } [Test] @@ -138,49 +138,49 @@ public void TestBitcoinAddressVerify () { var p = new cipher_PubKey (); var s = new cipher_SecKey (); var a = new cipher__BitcoinAddress (); - skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); - skycoin.skycoin.SKY_cipher_BitcoinAddressFromPubKey (p, a); + SKY_cipher_GenerateKeyPair (p, s); + SKY_cipher_BitcoinAddressFromPubKey (p, a); // Valid pubkey+address - var err = skycoin.skycoin.SKY_cipher_BitcoinAddress_Verify (a, p); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var err = SKY_cipher_BitcoinAddress_Verify (a, p); + Assert.AreEqual (err, SKY_OK); // Invalid pubkey - err = skycoin.skycoin.SKY_cipher_BitcoinAddress_Verify (a, new cipher_PubKey ()); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrAddressInvalidPubKey); + err = SKY_cipher_BitcoinAddress_Verify (a, new cipher_PubKey ()); + Assert.AreEqual (err, SKY_ErrAddressInvalidPubKey); var p2 = new cipher_PubKey (); var s2 = new cipher_SecKey (); - skycoin.skycoin.SKY_cipher_GenerateKeyPair (p2, s2); - err = skycoin.skycoin.SKY_cipher_BitcoinAddress_Verify (a, p2); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrAddressInvalidPubKey); + SKY_cipher_GenerateKeyPair (p2, s2); + err = SKY_cipher_BitcoinAddress_Verify (a, p2); + Assert.AreEqual (err, SKY_ErrAddressInvalidPubKey); // Bad Version a.Version = 0x01; - err = skycoin.skycoin.SKY_cipher_BitcoinAddress_Verify (a, p2); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrAddressInvalidVersion); + err = SKY_cipher_BitcoinAddress_Verify (a, p2); + Assert.AreEqual (err, SKY_ErrAddressInvalidVersion); } [Test] public void TestBitcoinWIPRoundTrio () { var p = new cipher_PubKey (); var seckey1 = new cipher_SecKey (); - var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, seckey1); + var err = SKY_cipher_GenerateKeyPair (p, seckey1); var wip1 = new _GoString_ (); - skycoin.skycoin.SKY_cipher_BitcoinWalletImportFormatFromSeckey (seckey1, wip1); + SKY_cipher_BitcoinWalletImportFormatFromSeckey (seckey1, wip1); var seckey2 = new skycoin.cipher_SecKey (); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_SecKeyFromBitcoinWalletImportFormat (wip1.p, seckey2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_SecKeyFromBitcoinWalletImportFormat (wip1.p, seckey2); + Assert.AreEqual (err, SKY_OK); var wip2 = new _GoString_ (); - skycoin.skycoin.SKY_cipher_BitcoinWalletImportFormatFromSeckey (seckey2, wip2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + SKY_cipher_BitcoinWalletImportFormatFromSeckey (seckey2, wip2); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (seckey1.isEqual (seckey2), 1); var seckey1_hex = new _GoString_ (); var seckey2_hex = new _GoString_ (); - err = skycoin.skycoin.SKY_cipher_SecKey_Hex (seckey1, seckey1_hex); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_SecKey_Hex (seckey2, seckey2_hex); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_cipher_SecKey_Hex (seckey1, seckey1_hex); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_SecKey_Hex (seckey2, seckey2_hex); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (seckey1_hex.p == seckey2_hex.p, true); Assert.AreEqual (wip1.p == wip2.p, true); } diff --git a/LibskycoinNetTest/check_cipher_crypto.cs b/LibskycoinNetTest/check_cipher_crypto.cs index 9be55f48..b0dbae90 100644 --- a/LibskycoinNetTest/check_cipher_crypto.cs +++ b/LibskycoinNetTest/check_cipher_crypto.cs @@ -3,48 +3,48 @@ using skycoin; namespace LibskycoinNetTest { [TestFixture ()] - public class check_cipher_cryto { + public class check_cipher_cryto : skycoin.skycoin { [Test] public void TestNewPubKey () { var b = new GoSlice (); var p = new cipher_PubKey (); - var err = skycoin.skycoin.SKY_cipher_RandByte (31, b); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_NewPubKey (b, p); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthPubKey); + var err = SKY_cipher_RandByte (31, b); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_NewPubKey (b, p); + Assert.AreEqual (err, SKY_ErrInvalidLengthPubKey); b = new GoSlice (); - err = skycoin.skycoin.SKY_cipher_RandByte (32, b); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_NewPubKey (b, p); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthPubKey); + err = SKY_cipher_RandByte (32, b); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_NewPubKey (b, p); + Assert.AreEqual (err, SKY_ErrInvalidLengthPubKey); b = new GoSlice (); - err = skycoin.skycoin.SKY_cipher_RandByte (34, b); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_NewPubKey (b, p); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthPubKey); + err = SKY_cipher_RandByte (34, b); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_NewPubKey (b, p); + Assert.AreEqual (err, SKY_ErrInvalidLengthPubKey); b = new GoSlice (); - err = skycoin.skycoin.SKY_cipher_RandByte (0, b); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_NewPubKey (b, p); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthPubKey); + err = SKY_cipher_RandByte (0, b); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_NewPubKey (b, p); + Assert.AreEqual (err, SKY_ErrInvalidLengthPubKey); b = new GoSlice (); - err = skycoin.skycoin.SKY_cipher_RandByte (100, b); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_NewPubKey (b, p); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthPubKey); + err = SKY_cipher_RandByte (100, b); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_NewPubKey (b, p); + Assert.AreEqual (err, SKY_ErrInvalidLengthPubKey); b = new GoSlice (); p = new cipher_PubKey (); - err = skycoin.skycoin.SKY_cipher_NewPubKey (b, p); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthPubKey); + err = SKY_cipher_NewPubKey (b, p); + Assert.AreEqual (err, SKY_ErrInvalidLengthPubKey); var s = new cipher_SecKey (); var pTemp = new GoSlice (); - err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); + err = SKY_cipher_GenerateKeyPair (p, s); pTemp = p.toSlice (); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (err, SKY_OK); var p2 = new cipher_PubKey (); - err = skycoin.skycoin.SKY_cipher_NewPubKey (pTemp, p2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_cipher_NewPubKey (pTemp, p2); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (p.isEqual (p2), 1); } @@ -54,12 +54,12 @@ public void TestPubKeyVerify () { var failed = false; for (int i = 0; i < 10; i++) { var b = new GoSlice (); - var err = skycoin.skycoin.SKY_cipher_RandByte (33, b); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var err = SKY_cipher_RandByte (33, b); + Assert.AreEqual (err, SKY_OK); var p = new cipher_PubKey (); p.assignSlice (b); - err = skycoin.skycoin.SKY_cipher_PubKey_Verify (p); - if (err != skycoin.skycoin.SKY_OK) { + err = SKY_cipher_PubKey_Verify (p); + if (err != SKY_OK) { failed = true; break; } @@ -71,8 +71,8 @@ public void TestPubKeyVerify () { public void TestPubKeyVerifyNil () { // Empty public key should not be valid var p = new cipher_PubKey (); - var err = skycoin.skycoin.SKY_cipher_PubKey_Verify (p); - Assert.AreNotEqual (err, skycoin.skycoin.SKY_OK); + var err = SKY_cipher_PubKey_Verify (p); + Assert.AreNotEqual (err, SKY_OK); } [Test] @@ -80,9 +80,9 @@ public void TestPubKeyVerifyDefault1 () { // Generated pub key should be valid var p = new cipher_PubKey (); var s = new cipher_SecKey (); - var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); - err = skycoin.skycoin.SKY_cipher_PubKey_Verify (p); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var err = SKY_cipher_GenerateKeyPair (p, s); + err = SKY_cipher_PubKey_Verify (p); + Assert.AreEqual (err, SKY_OK); } [Test] @@ -90,9 +90,9 @@ public void TestPubKeyVerifyDefault2 () { for (int i = 0; i < 1024; i++) { var p = new cipher_PubKey (); var s = new cipher_SecKey (); - var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); - err = skycoin.skycoin.SKY_cipher_PubKey_Verify (p); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var err = SKY_cipher_GenerateKeyPair (p, s); + err = SKY_cipher_PubKey_Verify (p); + Assert.AreEqual (err, SKY_OK); } } @@ -102,15 +102,15 @@ public void TestPubKeyToAddress () { var s = new cipher_SecKey (); var addr = new cipher__Address (); var addr1 = new cipher__Address (); - var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); - err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, addr); - err = skycoin.skycoin.SKY_cipher_Address_Verify (addr, p); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var err = SKY_cipher_GenerateKeyPair (p, s); + err = SKY_cipher_AddressFromPubKey (p, addr); + err = SKY_cipher_Address_Verify (addr, p); + Assert.AreEqual (err, SKY_OK); var addrStr = new _GoString_ (); - err = skycoin.skycoin.SKY_cipher_Address_String (addr, addrStr); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_DecodeBase58Address (addrStr.p, addr1); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_cipher_Address_String (addr, addrStr); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_DecodeBase58Address (addrStr.p, addr1); + Assert.AreEqual (err, SKY_OK); } [Test] @@ -120,15 +120,15 @@ public void TestPubKeyToAddress2 () { var s = new cipher_SecKey (); var addr = new cipher__Address (); var addr1 = new cipher__Address (); - var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); - err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, addr); - err = skycoin.skycoin.SKY_cipher_Address_Verify (addr, p); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var err = SKY_cipher_GenerateKeyPair (p, s); + err = SKY_cipher_AddressFromPubKey (p, addr); + err = SKY_cipher_Address_Verify (addr, p); + Assert.AreEqual (err, SKY_OK); var addrStr = new _GoString_ (); - err = skycoin.skycoin.SKY_cipher_Address_String (addr, addrStr); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_DecodeBase58Address (addrStr.p, addr1); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_cipher_Address_String (addr, addrStr); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_DecodeBase58Address (addrStr.p, addr1); + Assert.AreEqual (err, SKY_OK); } } @@ -136,51 +136,51 @@ public void TestPubKeyToAddress2 () { public void TestMustNewSecKey () { var b = new GoSlice (); var p = new cipher_SecKey (); - var err = skycoin.skycoin.SKY_cipher_RandByte (31, b); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_NewSecKey (b, p); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthSecKey); - err = skycoin.skycoin.SKY_cipher_RandByte (32, b); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_NewSecKey (b, p); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthSecKey); - err = skycoin.skycoin.SKY_cipher_RandByte (34, b); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_NewSecKey (b, p); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthSecKey); - err = skycoin.skycoin.SKY_cipher_RandByte (0, b); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_NewSecKey (b, p); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthSecKey); - err = skycoin.skycoin.SKY_cipher_RandByte (100, b); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_NewSecKey (b, p); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthSecKey); + var err = SKY_cipher_RandByte (31, b); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_NewSecKey (b, p); + Assert.AreEqual (err, SKY_ErrInvalidLengthSecKey); + err = SKY_cipher_RandByte (32, b); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_NewSecKey (b, p); + Assert.AreEqual (err, SKY_ErrInvalidLengthSecKey); + err = SKY_cipher_RandByte (34, b); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_NewSecKey (b, p); + Assert.AreEqual (err, SKY_ErrInvalidLengthSecKey); + err = SKY_cipher_RandByte (0, b); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_NewSecKey (b, p); + Assert.AreEqual (err, SKY_ErrInvalidLengthSecKey); + err = SKY_cipher_RandByte (100, b); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_NewSecKey (b, p); + Assert.AreEqual (err, SKY_ErrInvalidLengthSecKey); b = new GoSlice (); - err = skycoin.skycoin.SKY_cipher_RandByte (32, b); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_NewSecKey (b, p); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_cipher_RandByte (32, b); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_NewSecKey (b, p); + Assert.AreEqual (err, SKY_OK); var b1 = new GoSlice (); var p1 = new cipher_SecKey (); - err = skycoin.skycoin.SKY_cipher_RandByte (32, b1); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_NewSecKey (b1, p1); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_cipher_RandByte (32, b1); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_NewSecKey (b1, p1); + Assert.AreEqual (err, SKY_OK); } [Test] public void TestSecKeyVerify () { // Empty secret key should not be valid var s = new cipher_SecKey (); - var err = skycoin.skycoin.SKY_cipher_SecKey_Verify (s); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidSecKey); + var err = SKY_cipher_SecKey_Verify (s); + Assert.AreEqual (err, SKY_ErrInvalidSecKey); // Generated sec key should be valid var p = new cipher_PubKey (); s = new cipher_SecKey (); - err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.SKY_cipher_SecKey_Verify (s), skycoin.skycoin.SKY_OK); + err = SKY_cipher_GenerateKeyPair (p, s); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (SKY_cipher_SecKey_Verify (s), SKY_OK); } [Test] @@ -191,14 +191,14 @@ public void TestECDHonce () { var sec2 = new cipher_SecKey (); var buf1 = new GoSlice (); var buf2 = new GoSlice (); - var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (pub1, sec1); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (pub2, sec2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_ECDH (pub2, sec1, buf1); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_ECDH (pub1, sec2, buf2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var err = SKY_cipher_GenerateKeyPair (pub1, sec1); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_GenerateKeyPair (pub2, sec2); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_ECDH (pub2, sec1, buf1); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_ECDH (pub1, sec2, buf2); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (buf1.isEqual (buf2), 1); } @@ -211,14 +211,14 @@ public void TestECDHloop () { var sec2 = new cipher_SecKey (); var buf1 = new GoSlice (); var buf2 = new GoSlice (); - var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (pub1, sec1); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (pub2, sec2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_ECDH (pub2, sec1, buf1); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_ECDH (pub1, sec2, buf2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var err = SKY_cipher_GenerateKeyPair (pub1, sec1); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_GenerateKeyPair (pub2, sec2); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_ECDH (pub2, sec1, buf1); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_ECDH (pub1, sec2, buf2); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (buf1.isEqual (buf2), 1); } } @@ -226,50 +226,49 @@ public void TestECDHloop () { [Test] public void TestNewSig () { var b = new GoSlice (); - var err = skycoin.skycoin.SKY_cipher_RandByte (64, b); + var err = SKY_cipher_RandByte (64, b); var s = new cipher_Sig (); - err = skycoin.skycoin.SKY_cipher_NewSig (b, s); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthSig); - err = skycoin.skycoin.SKY_cipher_RandByte (66, b); - err = skycoin.skycoin.SKY_cipher_NewSig (b, s); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthSig); - err = skycoin.skycoin.SKY_cipher_RandByte (67, b); - err = skycoin.skycoin.SKY_cipher_NewSig (b, s); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthSig); - err = skycoin.skycoin.SKY_cipher_RandByte (0, b); - err = skycoin.skycoin.SKY_cipher_NewSig (b, s); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthSig); - err = skycoin.skycoin.SKY_cipher_RandByte (100, b); - err = skycoin.skycoin.SKY_cipher_NewSig (b, s); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthSig); + err = SKY_cipher_NewSig (b, s); + Assert.AreEqual (err, SKY_ErrInvalidLengthSig); + err = SKY_cipher_RandByte (66, b); + err = SKY_cipher_NewSig (b, s); + Assert.AreEqual (err, SKY_ErrInvalidLengthSig); + err = SKY_cipher_RandByte (67, b); + err = SKY_cipher_NewSig (b, s); + Assert.AreEqual (err, SKY_ErrInvalidLengthSig); + err = SKY_cipher_RandByte (0, b); + err = SKY_cipher_NewSig (b, s); + Assert.AreEqual (err, SKY_ErrInvalidLengthSig); + err = SKY_cipher_RandByte (100, b); + err = SKY_cipher_NewSig (b, s); + Assert.AreEqual (err, SKY_ErrInvalidLengthSig); s = new cipher_Sig (); b = new GoSlice (); - err = skycoin.skycoin.SKY_cipher_RandByte (65, b); - err = skycoin.skycoin.SKY_cipher_NewSig (b, s); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_cipher_RandByte (65, b); + err = SKY_cipher_NewSig (b, s); + Assert.AreEqual (err, SKY_OK); var b1 = new GoSlice (); - err = skycoin.skycoin.SKY_cipher_RandByte (65, b1); + err = SKY_cipher_RandByte (65, b1); var s1 = new cipher_Sig (); - err = skycoin.skycoin.SKY_cipher_NewSig (b1, s1); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_cipher_NewSig (b1, s1); + Assert.AreEqual (err, SKY_OK); } - [Test] public void TestSignHash () { var p = new cipher_PubKey (); var s = new cipher_SecKey (); var a = new cipher__Address (); - skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); - var err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, a); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + SKY_cipher_GenerateKeyPair (p, s); + var err = SKY_cipher_AddressFromPubKey (p, a); + Assert.AreEqual (err, SKY_OK); var b_temp = new GoSlice (); - skycoin.skycoin.SKY_cipher_RandByte (256, b_temp); + SKY_cipher_RandByte (256, b_temp); var h = new cipher_SHA256 (); - skycoin.skycoin.SKY_cipher_SumSHA256 (b_temp, h); + SKY_cipher_SumSHA256 (b_temp, h); var sig = new cipher_Sig (); - skycoin.skycoin.SKY_cipher_SignHash (h, s, sig); + SKY_cipher_SignHash (h, s, sig); Assert.AreEqual (sig.isEqual (new cipher_Sig ()), 0); } @@ -277,15 +276,15 @@ public void TestSignHash () { public void TestPubKeyFromSecKey () { var p = new cipher_PubKey (); var s = new cipher_SecKey (); - var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); + var err = SKY_cipher_GenerateKeyPair (p, s); var p1 = new cipher_PubKey (); - err = skycoin.skycoin.SKY_cipher_PubKeyFromSecKey (s, p1); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_cipher_PubKeyFromSecKey (s, p1); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (p1.isEqual (p), 1); s = new cipher_SecKey (); - err = skycoin.skycoin.SKY_cipher_PubKeyFromSecKey (s, p); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrPubKeyFromNullSecKey); + err = SKY_cipher_PubKeyFromSecKey (s, p); + Assert.AreEqual (err, SKY_ErrPubKeyFromNullSecKey); } [Test] @@ -294,31 +293,29 @@ public void TestPubKeyFromSig () { var s = new cipher_SecKey (); var b = new GoSlice (); var h = new cipher_SHA256 (); - var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); - err = skycoin.skycoin.SKY_cipher_RandByte (256, b); - err = skycoin.skycoin.SKY_cipher_SumSHA256 (b, h); + var err = SKY_cipher_GenerateKeyPair (p, s); + err = SKY_cipher_RandByte (256, b); + err = SKY_cipher_SumSHA256 (b, h); var sig = new cipher_Sig (); - err = skycoin.skycoin.SKY_cipher_SignHash (h, s, sig); + err = SKY_cipher_SignHash (h, s, sig); var p2 = new cipher_PubKey (); - err = skycoin.skycoin.SKY_cipher_PubKeyFromSig (sig, h, p2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_cipher_PubKeyFromSig (sig, h, p2); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (p2.isEqual (p), 1); p2 = new cipher_PubKey (); - err = skycoin.skycoin.SKY_cipher_PubKeyFromSig (new cipher_Sig (), h, p2); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidSigPubKeyRecovery); + err = SKY_cipher_PubKeyFromSig (new cipher_Sig (), h, p2); + Assert.AreEqual (err, SKY_ErrInvalidSigPubKeyRecovery); } - - [Test] public void TestGenerateKeyPair () { var p = new cipher_PubKey (); var s = new cipher_SecKey (); - var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); - err = skycoin.skycoin.SKY_cipher_PubKey_Verify (p); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_SecKey_Verify (s); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var err = SKY_cipher_GenerateKeyPair (p, s); + err = SKY_cipher_PubKey_Verify (p); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_SecKey_Verify (s); + Assert.AreEqual (err, SKY_OK); } [Test] @@ -326,21 +323,21 @@ public void TestGenerateDeterministicKeyPair () { // TODO -- deterministic key pairs are useless as is because we can't // generate pair n+1, only pair 0 var seed = new GoSlice (); - var err = skycoin.skycoin.SKY_cipher_RandByte (32, seed); + var err = SKY_cipher_RandByte (32, seed); var p = new cipher_PubKey (); var s = new cipher_SecKey (); - err = skycoin.skycoin.SKY_cipher_GenerateDeterministicKeyPair (seed, p, s); - err = skycoin.skycoin.SKY_cipher_PubKey_Verify (p); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_SecKey_Verify (s); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_cipher_GenerateDeterministicKeyPair (seed, p, s); + err = SKY_cipher_PubKey_Verify (p); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_SecKey_Verify (s); + Assert.AreEqual (err, SKY_OK); p = new cipher_PubKey (); s = new cipher_SecKey (); - err = skycoin.skycoin.SKY_cipher_GenerateDeterministicKeyPair (seed, p, s); - err = skycoin.skycoin.SKY_cipher_PubKey_Verify (p); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_SecKey_Verify (s); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_cipher_GenerateDeterministicKeyPair (seed, p, s); + err = SKY_cipher_PubKey_Verify (p); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_SecKey_Verify (s); + Assert.AreEqual (err, SKY_OK); } [Test] @@ -352,12 +349,12 @@ public void TestGenerateDeterministicKeyPairsUsesAllBytes () { seedStr.p = seedText; seed.convertString (seedStr); var seckeys = new GoSlice (); - var err = skycoin.skycoin.SKY_cipher_GenerateDeterministicKeyPairs (seed, 3, seckeys); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var err = SKY_cipher_GenerateDeterministicKeyPairs (seed, 3, seckeys); + Assert.AreEqual (err, SKY_OK); var seckeys2 = new GoSlice (); seed.len = 16; - err = skycoin.skycoin.SKY_cipher_GenerateDeterministicKeyPairs (seed, 3, seckeys2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_cipher_GenerateDeterministicKeyPairs (seed, 3, seckeys2); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (seckeys.isEqual (seckeys2), 0); } @@ -366,20 +363,20 @@ public void TestPubkey1 () { // This was migrated from coin/coin_test.go var a = "02fa939957e9fc52140e180264e621c2576a1bfe781f88792fb315ca3d1786afb8"; var b = new GoSlice (); - var err = skycoin.skycoin.SKY_base58_String2Hex (a, b); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var err = SKY_base58_String2Hex (a, b); + Assert.AreEqual (err, SKY_OK); var p = new cipher_PubKey (); - err = skycoin.skycoin.SKY_cipher_NewPubKey (b, p); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_PubKey_Verify (p); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_cipher_NewPubKey (b, p); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_PubKey_Verify (p); + Assert.AreEqual (err, SKY_OK); var addr = new cipher__Address (); - err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, addr); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_Address_Verify (addr, p); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_cipher_AddressFromPubKey (p, addr); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_Address_Verify (addr, p); + Assert.AreEqual (err, SKY_OK); } @@ -388,36 +385,36 @@ public void TestSecKey1 () { // This was migrated from coin/coin_test.go var a = "5a42c0643bdb465d90bf673b99c14f5fa02db71513249d904573d2b8b63d353d"; var b = new GoSlice (); - var err = skycoin.skycoin.SKY_base58_String2Hex (a, b); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var err = SKY_base58_String2Hex (a, b); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (b.len, 32); var seckey = new cipher_SecKey (); - err = skycoin.skycoin.SKY_cipher_NewSecKey (b, seckey); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_SecKey_Verify (seckey); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_cipher_NewSecKey (b, seckey); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_SecKey_Verify (seckey); + Assert.AreEqual (err, SKY_OK); var p = new cipher_PubKey (); - err = skycoin.skycoin.SKY_cipher_PubKeyFromSecKey (seckey, p); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_PubKey_Verify (p); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_cipher_PubKeyFromSecKey (seckey, p); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_PubKey_Verify (p); + Assert.AreEqual (err, SKY_OK); var addr = new cipher__Address (); - err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, addr); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - skycoin.skycoin.SKY_cipher_Address_Verify (addr, p); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_cipher_AddressFromPubKey (p, addr); + Assert.AreEqual (err, SKY_OK); + SKY_cipher_Address_Verify (addr, p); + Assert.AreEqual (err, SKY_OK); var test = new GoSlice (); var strTest = new _GoString_ (); strTest.SetString ("test message"); test.convertString (strTest); var hash = new cipher_SHA256 (); - skycoin.skycoin.SKY_cipher_SumSHA256 (test, hash); - err = skycoin.skycoin.SKY_cipher_CheckSecKeyHash (seckey, hash); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + SKY_cipher_SumSHA256 (test, hash); + err = SKY_cipher_CheckSecKeyHash (seckey, hash); + Assert.AreEqual (err, SKY_OK); } } } \ No newline at end of file diff --git a/LibskycoinNetTest/check_cipher_encrypt_scrypt_chacha20poly1305.cs b/LibskycoinNetTest/check_cipher_encrypt_scrypt_chacha20poly1305.cs index 951f7e16..1bc08729 100644 --- a/LibskycoinNetTest/check_cipher_encrypt_scrypt_chacha20poly1305.cs +++ b/LibskycoinNetTest/check_cipher_encrypt_scrypt_chacha20poly1305.cs @@ -7,7 +7,7 @@ using utils; namespace LibskycoinNetTest { [TestFixture ()] - public class check_cipher_encrypt_scrypt_chacha20poly1305 { + public class check_cipher_encrypt_scrypt_chacha20poly1305 : skycoin.skycoin { utils.transutils utils = new utils.transutils (); private String cutString (String str, String ini, String end) { int endIndex = str.LastIndexOf (end); @@ -37,8 +37,8 @@ public void TestScryptChacha20poly1305Encrypt () { plain.convertString (plaintext); passwdText.p = "password"; passwd.convertString (passwdText); - var err = skycoin.skycoin.SKY_encrypt_ScryptChacha20poly1305_Encrypt (crypto, plain, passwd, encData); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK, name); + var err = SKY_encrypt_ScryptChacha20poly1305_Encrypt (crypto, plain, passwd, encData); + Assert.AreEqual (err, SKY_OK, name); Assert.AreEqual (encData.len > 2, true); var str = new _GoString_ (); encData.getString (str); @@ -46,16 +46,16 @@ public void TestScryptChacha20poly1305Encrypt () { if (str.n <= 188) { var meta = utils.base64Decode (str.p); - var n = skycoin.skycoin.new_Gointp (); - var r = skycoin.skycoin.new_Gointp (); - var p = skycoin.skycoin.new_Gointp (); - var keyLen = skycoin.skycoin.new_Gointp (); + var n = new_Gointp (); + var r = new_Gointp (); + var p = new_Gointp (); + var keyLen = new_Gointp (); meta = cutString (meta, "{", "}"); - skycoin.skycoin.parseJsonMetaData (meta, n, r, p, keyLen); - Assert.AreEqual (1 << i, skycoin.skycoin.Gointp_value (n), name); - Assert.AreEqual (8, skycoin.skycoin.Gointp_value (r), name); - Assert.AreEqual (1, skycoin.skycoin.Gointp_value (p), name); - Assert.AreEqual (32, skycoin.skycoin.Gointp_value (keyLen), name); + parseJsonMetaData (meta, n, r, p, keyLen); + Assert.AreEqual (1 << i, Gointp_value (n), name); + Assert.AreEqual (8, Gointp_value (r), name); + Assert.AreEqual (1, Gointp_value (p), name); + Assert.AreEqual (32, Gointp_value (keyLen), name); } } } @@ -101,7 +101,7 @@ public void TestScryptChacha20poly1305Decrypt () { casett.decPwd = pdecPwd; casett.encData = pencData; casett.encPwd = pencPwd; - casett.err = skycoin.skycoin.SKY_OK; + casett.err = SKY_OK; StructTest[] tt = { casett }; // for (int i = 0; i < tt.Length; i++) { @@ -109,7 +109,7 @@ public void TestScryptChacha20poly1305Decrypt () { // var name = "N=1<<19 r=8 p=1 keyLen=32 " + tc.name; // var crypto = new encrypt__ScryptChacha20poly1305 (); // var data = new GoSlice (); - // var err = skycoin.skycoin.SKY_encrypt_ScryptChacha20poly1305_Decrypt (crypto, tc.encData, tc.decPwd, data); + // var err = SKY_encrypt_ScryptChacha20poly1305_Decrypt (crypto, tc.encData, tc.decPwd, data); // Assert.AreEqual (err, tc.err, name); // } diff --git a/LibskycoinNetTest/check_cipher_hash.cs b/LibskycoinNetTest/check_cipher_hash.cs index 05a02c64..f6e3d3eb 100644 --- a/LibskycoinNetTest/check_cipher_hash.cs +++ b/LibskycoinNetTest/check_cipher_hash.cs @@ -3,33 +3,33 @@ using skycoin; namespace LibskycoinNetTest { [TestFixture ()] - public class check_cipher_hash { + public class check_cipher_hash : skycoin.skycoin { public void freshSumRipemd160 (skycoin.GoSlice bytes, cipher_Ripemd160 rp160) { - skycoin.skycoin.SKY_cipher_HashRipemd160 (bytes, rp160); + SKY_cipher_HashRipemd160 (bytes, rp160); } void freshSumSHA256 (GoSlice bytes, cipher_SHA256 sha256) { - skycoin.skycoin.SKY_cipher_SumSHA256 (bytes, sha256); + SKY_cipher_SumSHA256 (bytes, sha256); } [Test] public void TestHashRipemd160 () { var b = new GoSlice (); - var err = skycoin.skycoin.SKY_cipher_RandByte (128, b); + var err = SKY_cipher_RandByte (128, b); var hr = new cipher_Ripemd160 (); - err = skycoin.skycoin.SKY_cipher_HashRipemd160 (b, hr); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_cipher_HashRipemd160 (b, hr); + Assert.AreEqual (err, SKY_OK); b = new GoSlice (); - err = skycoin.skycoin.SKY_cipher_RandByte (160, b); + err = SKY_cipher_RandByte (160, b); var r = new cipher_Ripemd160 (); - err = skycoin.skycoin.SKY_cipher_HashRipemd160 (b, r); + err = SKY_cipher_HashRipemd160 (b, r); Assert.AreEqual (r.isEqual (new cipher_Ripemd160 ()), 0); // 2nd hash should not be affected by previous b = new GoSlice (); - err = skycoin.skycoin.SKY_cipher_RandByte (256, b); + err = SKY_cipher_RandByte (256, b); var r2 = new cipher_Ripemd160 (); - err = skycoin.skycoin.SKY_cipher_HashRipemd160 (b, r2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_cipher_HashRipemd160 (b, r2); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (r2.isEqual (new cipher_Ripemd160 ()), 0); var r3 = new cipher_Ripemd160 (); freshSumRipemd160 (b, r3); @@ -40,79 +40,79 @@ public void TestHashRipemd160 () { public void TestRipemd160Set () { var h = new cipher_Ripemd160 (); var b = new GoSlice (); - var err = skycoin.skycoin.SKY_cipher_RandByte (21, b); - err = skycoin.skycoin.SKY_cipher_Ripemd160_Set (h, b); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthRipemd160); + var err = SKY_cipher_RandByte (21, b); + err = SKY_cipher_Ripemd160_Set (h, b); + Assert.AreEqual (err, SKY_ErrInvalidLengthRipemd160); b = new GoSlice (); h = new cipher_Ripemd160 (); - skycoin.skycoin.SKY_cipher_RandByte (100, b); - err = skycoin.skycoin.SKY_cipher_Ripemd160_Set (h, b); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthRipemd160); + SKY_cipher_RandByte (100, b); + err = SKY_cipher_Ripemd160_Set (h, b); + Assert.AreEqual (err, SKY_ErrInvalidLengthRipemd160); b = new GoSlice (); h = new cipher_Ripemd160 (); - skycoin.skycoin.SKY_cipher_RandByte (19, b); - err = skycoin.skycoin.SKY_cipher_Ripemd160_Set (h, b); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthRipemd160); + SKY_cipher_RandByte (19, b); + err = SKY_cipher_Ripemd160_Set (h, b); + Assert.AreEqual (err, SKY_ErrInvalidLengthRipemd160); b = new GoSlice (); h = new cipher_Ripemd160 (); - skycoin.skycoin.SKY_cipher_RandByte (0, b); - err = skycoin.skycoin.SKY_cipher_Ripemd160_Set (h, b); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthRipemd160); + SKY_cipher_RandByte (0, b); + err = SKY_cipher_Ripemd160_Set (h, b); + Assert.AreEqual (err, SKY_ErrInvalidLengthRipemd160); b = new GoSlice (); h = new cipher_Ripemd160 (); - skycoin.skycoin.SKY_cipher_RandByte (20, b); - err = skycoin.skycoin.SKY_cipher_Ripemd160_Set (h, b); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + SKY_cipher_RandByte (20, b); + err = SKY_cipher_Ripemd160_Set (h, b); + Assert.AreEqual (err, SKY_OK); } [Test] public void TestSHA256Set () { var h = new cipher_SHA256 (); var b = new GoSlice (); - var err = skycoin.skycoin.SKY_cipher_RandByte (33, b); - err = skycoin.skycoin.SKY_cipher_SHA256_Set (h, b); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthSHA256); + var err = SKY_cipher_RandByte (33, b); + err = SKY_cipher_SHA256_Set (h, b); + Assert.AreEqual (err, SKY_ErrInvalidLengthSHA256); h = new cipher_SHA256 (); b = new GoSlice (); - skycoin.skycoin.SKY_cipher_RandByte (100, b); - err = skycoin.skycoin.SKY_cipher_SHA256_Set (h, b); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthSHA256); + SKY_cipher_RandByte (100, b); + err = SKY_cipher_SHA256_Set (h, b); + Assert.AreEqual (err, SKY_ErrInvalidLengthSHA256); h = new cipher_SHA256 (); b = new GoSlice (); - skycoin.skycoin.SKY_cipher_RandByte (31, b); - err = skycoin.skycoin.SKY_cipher_SHA256_Set (h, b); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthSHA256); + SKY_cipher_RandByte (31, b); + err = SKY_cipher_SHA256_Set (h, b); + Assert.AreEqual (err, SKY_ErrInvalidLengthSHA256); h = new cipher_SHA256 (); b = new GoSlice (); - skycoin.skycoin.SKY_cipher_RandByte (0, b); - err = skycoin.skycoin.SKY_cipher_SHA256_Set (h, b); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrInvalidLengthSHA256); + SKY_cipher_RandByte (0, b); + err = SKY_cipher_SHA256_Set (h, b); + Assert.AreEqual (err, SKY_ErrInvalidLengthSHA256); h = new cipher_SHA256 (); b = new GoSlice (); - skycoin.skycoin.SKY_cipher_RandByte (32, b); - err = skycoin.skycoin.SKY_cipher_SHA256_Set (h, b); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + SKY_cipher_RandByte (32, b); + err = SKY_cipher_SHA256_Set (h, b); + Assert.AreEqual (err, SKY_OK); } [Test] public void TestSHA256Hex () { var h = new cipher_SHA256 (); var b = new GoSlice (); - skycoin.skycoin.SKY_cipher_RandByte (32, b); - var err = skycoin.skycoin.SKY_cipher_SHA256_Set (h, b); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + SKY_cipher_RandByte (32, b); + var err = SKY_cipher_SHA256_Set (h, b); + Assert.AreEqual (err, SKY_OK); var s = new _GoString_ (); - err = skycoin.skycoin.SKY_cipher_SHA256_Hex (h, s); + err = SKY_cipher_SHA256_Hex (h, s); var h2 = new cipher_SHA256 (); - err = skycoin.skycoin.SKY_cipher_SHA256FromHex (s.p, h2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_cipher_SHA256FromHex (s.p, h2); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (h.isEqual (h2), 1); var s1 = new _GoString_ (); - err = skycoin.skycoin.SKY_cipher_SHA256_Hex (h, s1); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_cipher_SHA256_Hex (h, s1); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (s1.p == s.p, true); } @@ -143,10 +143,10 @@ public void TestSHA256KnownValue () { var output = new _GoString_ (); input.p = io.input; b.convertString (input); - var err = skycoin.skycoin.SKY_cipher_SumSHA256 (b, h); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_SHA256_Hex (h, output); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var err = SKY_cipher_SumSHA256 (b, h); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_SHA256_Hex (h, output); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (output.p == io.output, true); } } @@ -154,15 +154,15 @@ public void TestSHA256KnownValue () { [Test] public void TestSumSHA256 () { var b = new GoSlice (); - var err = skycoin.skycoin.SKY_cipher_RandByte (256, b); + var err = SKY_cipher_RandByte (256, b); var h1 = new cipher_SHA256 (); - err = skycoin.skycoin.SKY_cipher_SumSHA256 (b, h1); + err = SKY_cipher_SumSHA256 (b, h1); Assert.AreEqual (h1.isEqual (new cipher_SHA256 ()), 0); // A second call to Sum should not be influenced by the original var c = new GoSlice (); - err = skycoin.skycoin.SKY_cipher_RandByte (256, c); + err = SKY_cipher_RandByte (256, c); var h2 = new cipher_SHA256 (); - err = skycoin.skycoin.SKY_cipher_SumSHA256 (c, h2); + err = SKY_cipher_SumSHA256 (c, h2); Assert.AreEqual (h2.isEqual (new cipher_SHA256 ()), 0); var h3 = new cipher_SHA256 (); freshSumSHA256 (c, h3); @@ -173,15 +173,15 @@ public void TestSumSHA256 () { // public void TestSHA256FromHex () { // // Invalid hex hash // var h = new cipher_SHA256 (); - // var err = skycoin.skycoin.SKY_cipher_SHA256FromHex ("cawcd", h); - // Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + // var err = SKY_cipher_SHA256FromHex ("cawcd", h); + // Assert.AreEqual (err, SKY_ERROR); // // Truncated hex hash // var b = new GoSlice (); - // err = skycoin.skycoin.SKY_cipher_RandByte (128, b); + // err = SKY_cipher_RandByte (128, b); // h = new skycoin.cipher_SHA256 (); - // err = skycoin.skycoin.SKY_cipher_SumSHA256 (b, h); + // err = SKY_cipher_SumSHA256 (b, h); // var str = h.getStr (); - // var str1 = skycoin.skycoin.GoStringp_value(str); + // var str1 = GoStringp_value(str); // Console.WriteLine (str1.p); // } } diff --git a/LibskycoinNetTest/check_coin_block.cs b/LibskycoinNetTest/check_coin_block.cs index 8a204cdf..afc0eb29 100644 --- a/LibskycoinNetTest/check_coin_block.cs +++ b/LibskycoinNetTest/check_coin_block.cs @@ -5,107 +5,107 @@ namespace LibskycoinNetTest { [TestFixture ()] - public class check_coin_block { + public class check_coin_block : skycoin.skycoin { utils.transutils transutils = new utils.transutils (); public SWIGTYPE_p_Transactions__Handle makeTestTransactions () { - var txns = skycoin.skycoin.new_Transactions__Handlep (); - var err = skycoin.skycoin.SKY_coin_Create_Transactions (txns); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var txns = new_Transactions__Handlep (); + var err = SKY_coin_Create_Transactions (txns); + Assert.AreEqual (err, SKY_OK); var txn = transutils.makeEmptyTransaction (); - err = skycoin.skycoin.SKY_coin_Transactions_Add (txns, txn); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_Transactions_Add (txns, txn); + Assert.AreEqual (err, SKY_OK); return txns; } public uint makeNewBlock (cipher_SHA256 uxHash, SWIGTYPE_p_Block__Handle newBlock) { var bodyhash = new cipher_SHA256 (); - var block = skycoin.skycoin.new_Block__HandlePtr (); + var block = new_Block__HandlePtr (); var transactions = makeTestTransactions (); - var err = skycoin.skycoin.SKY_coin_NewEmptyBlock (transactions, block); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var err = SKY_coin_NewEmptyBlock (transactions, block); + Assert.AreEqual (err, SKY_OK); - var pBlockP = skycoin.skycoin.new_coin__BlockPtr (); - err = skycoin.skycoin.SKY_coin_GetBlockObject (block, pBlockP); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var pBlock = skycoin.skycoin.coin__BlockPtr_value (pBlockP); + var pBlockP = new_coin__BlockPtr (); + err = SKY_coin_GetBlockObject (block, pBlockP); + Assert.AreEqual (err, SKY_OK); + var pBlock = coin__BlockPtr_value (pBlockP); pBlock.Head.Version = 0x02; pBlock.Head.Time = 100; pBlock.Head.BkSeq = 0; pBlock.Head.Fee = 10; - var body = skycoin.skycoin.new_BlockBody__HandlePtr (); - err = skycoin.skycoin.SKY_coin_GetBlockBody (block, body); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_BlockBody_Hash (body, bodyhash); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_NewBlock (block, 100 + 200, uxHash, transactions, transutils.feeCalc, newBlock); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var body = new_BlockBody__HandlePtr (); + err = SKY_coin_GetBlockBody (block, body); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_BlockBody_Hash (body, bodyhash); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_NewBlock (block, 100 + 200, uxHash, transactions, transutils.feeCalc, newBlock); + Assert.AreEqual (err, SKY_OK); return err; } [Test] public void TestNewBlock () { var txns = transutils.makeTransactions (1); - var block = skycoin.skycoin.new_Block__HandlePtr (); - var err = skycoin.skycoin.SKY_coin_NewEmptyBlock (txns, block); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var pBlockP = skycoin.skycoin.new_coin__BlockPtr (); - err = skycoin.skycoin.SKY_coin_GetBlockObject (block, pBlockP); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var pBlock = skycoin.skycoin.coin__BlockPtr_value (pBlockP); + var block = new_Block__HandlePtr (); + var err = SKY_coin_NewEmptyBlock (txns, block); + Assert.AreEqual (err, SKY_OK); + var pBlockP = new_coin__BlockPtr (); + err = SKY_coin_GetBlockObject (block, pBlockP); + Assert.AreEqual (err, SKY_OK); + var pBlock = coin__BlockPtr_value (pBlockP); pBlock.Head.Version = 0x02; pBlock.Head.Time = 100; pBlock.Head.BkSeq = 98; var uxHash = transutils.RandSHA256 (); // invalid txn fees panics - err = skycoin.skycoin.SKY_coin_NewBlock (block, 133, uxHash, txns, transutils.badCalc, block); - Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + err = SKY_coin_NewBlock (block, 133, uxHash, txns, transutils.badCalc, block); + Assert.AreEqual (err, SKY_ERROR); // no txns panics - var tnxs1 = skycoin.skycoin.new_Transactions__Handlep (); - skycoin.skycoin.SKY_coin_Create_Transactions (tnxs1); - err = skycoin.skycoin.SKY_coin_NewBlock (block, 133, uxHash, tnxs1, transutils.feeCalc, block); - Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + var tnxs1 = new_Transactions__Handlep (); + SKY_coin_Create_Transactions (tnxs1); + err = SKY_coin_NewBlock (block, 133, uxHash, tnxs1, transutils.feeCalc, block); + Assert.AreEqual (err, SKY_ERROR); // Valid block in fine ulong fee = 121; ulong currentTime = 133; - var b = skycoin.skycoin.new_Block__HandlePtr (); - err = skycoin.skycoin.SKY_coin_NewBlock (block, currentTime, uxHash, txns, transutils.fix121, b); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var b = new_Block__HandlePtr (); + err = SKY_coin_NewBlock (block, currentTime, uxHash, txns, transutils.fix121, b); + Assert.AreEqual (err, SKY_OK); - var pBlock2P = skycoin.skycoin.new_coin__BlockPtr (); - err = skycoin.skycoin.SKY_coin_GetBlockObject (b, pBlock2P); - var pBlock2 = skycoin.skycoin.coin__BlockPtr_value (pBlock2P); + var pBlock2P = new_coin__BlockPtr (); + err = SKY_coin_GetBlockObject (b, pBlock2P); + var pBlock2 = coin__BlockPtr_value (pBlock2P); Assert.AreEqual (pBlock2.Head.Fee, fee); - var hashs = skycoin.skycoin.GoUint8Ptr_value (pBlock2.Head.PrevHash); + var hashs = GoUint8Ptr_value (pBlock2.Head.PrevHash); var prevHash = new cipher_SHA256 (); var prevHashP = new cipher_SHA256 (); - skycoin.skycoin.SKY_coin_Block_PreHashHeader (block, prevHash); - skycoin.skycoin.SKY_coin_Block_HashHeader (b, prevHashP); + SKY_coin_Block_PreHashHeader (block, prevHash); + SKY_coin_Block_HashHeader (b, prevHashP); Assert.AreEqual (prevHash.isEqual (prevHashP), 0); Assert.AreEqual (pBlock2.Head.Time, currentTime); Assert.AreEqual (pBlock2.Head.BkSeq, pBlock.Head.BkSeq + 1); var pUxHash = new cipher_SHA256 (); - skycoin.skycoin.convertGoUint8toSHA256 (pBlock2.Head.UxHash, pUxHash); + convertGoUint8toSHA256 (pBlock2.Head.UxHash, pUxHash); Assert.AreEqual (uxHash.isEqual (pUxHash), 1); } [Test] public void TestBlockHashHeader () { var uxHash = transutils.RandSHA256 (); - var b = skycoin.skycoin.new_Block__HandlePtr (); + var b = new_Block__HandlePtr (); var err = makeNewBlock (uxHash, b); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (err, SKY_OK); var sha1 = new cipher_SHA256 (); var sha2 = new cipher_SHA256 (); - err = skycoin.skycoin.SKY_coin_Block_HashHeader (b, sha1); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_Block_HashHeader (b, sha1); + Assert.AreEqual (err, SKY_OK); - var chP = skycoin.skycoin.new_coin__BlockPtr (); - skycoin.skycoin.SKY_coin_GetBlockObject (b, chP); - var ch = skycoin.skycoin.coin__BlockPtr_value (chP); - skycoin.skycoin.SKY_coin_BlockHeader_Hash (ch.Head, sha2); + var chP = new_coin__BlockPtr (); + SKY_coin_GetBlockObject (b, chP); + var ch = coin__BlockPtr_value (chP); + SKY_coin_BlockHeader_Hash (ch.Head, sha2); Assert.AreEqual (sha1.isEqual (sha2), 1); Assert.AreEqual (sha1.isEqual (new cipher_SHA256 ()), 0); } @@ -113,21 +113,21 @@ public void TestBlockHashHeader () { [Test] public void TestBlockHashBody () { var uxHash = transutils.RandSHA256 (); - var b = skycoin.skycoin.new_Block__HandlePtr (); + var b = new_Block__HandlePtr (); var err = makeNewBlock (uxHash, b); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (err, SKY_OK); var sha1 = new cipher_SHA256 (); var sha2 = new cipher_SHA256 (); - skycoin.skycoin.SKY_coin_Block_HashBody (b, sha1); - var body = skycoin.skycoin.new_BlockBody__HandlePtr (); - skycoin.skycoin.SKY_coin_GetBlockBody (b, body); - skycoin.skycoin.SKY_coin_BlockBody_Hash (body, sha2); + SKY_coin_Block_HashBody (b, sha1); + var body = new_BlockBody__HandlePtr (); + SKY_coin_GetBlockBody (b, body); + SKY_coin_BlockBody_Hash (body, sha2); Assert.AreEqual (sha1.isEqual (sha2), 1); var hb = new cipher_SHA256 (); - skycoin.skycoin.SKY_coin_Block_HashBody (b, hb); + SKY_coin_Block_HashBody (b, hb); var bh = new cipher_SHA256 (); - skycoin.skycoin.SKY_coin_BlockBody_Hash (body, bh); + SKY_coin_BlockBody_Hash (body, bh); Assert.AreEqual (bh.isEqual (hb), 1); } @@ -138,22 +138,22 @@ public void TestNewGenesisBlock () { ulong genTime = 1000; ulong genCoins = (ulong) 1000e6; - var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (pubkey, seckey); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var err = SKY_cipher_GenerateKeyPair (pubkey, seckey); + Assert.AreEqual (err, SKY_OK); var addr = new cipher__Address (); - err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (pubkey, addr); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var block = skycoin.skycoin.new_Block__HandlePtr (); - err = skycoin.skycoin.SKY_coin_NewGenesisBlock (addr, genCoins, genTime, block); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var pBlockPP = skycoin.skycoin.new_coin__BlockPtr (); - err = skycoin.skycoin.SKY_coin_GetBlockObject (block, pBlockPP); - var pBlock = skycoin.skycoin.coin__BlockPtr_value (pBlockPP); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_cipher_AddressFromPubKey (pubkey, addr); + Assert.AreEqual (err, SKY_OK); + var block = new_Block__HandlePtr (); + err = SKY_coin_NewGenesisBlock (addr, genCoins, genTime, block); + Assert.AreEqual (err, SKY_OK); + var pBlockPP = new_coin__BlockPtr (); + err = SKY_coin_GetBlockObject (block, pBlockPP); + var pBlock = coin__BlockPtr_value (pBlockPP); + Assert.AreEqual (err, SKY_OK); var nullHash = new cipher_SHA256 (); var Head = new GoSlice (); - err = skycoin.skycoin.SKY_coin_BlockHeader_Bytes (pBlock.Head, Head); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_BlockHeader_Bytes (pBlock.Head, Head); + Assert.AreEqual (err, SKY_OK); var strnullHash = nullHash.getStr (); var strHead = new _GoString_ (); Head.getString (strHead); @@ -175,32 +175,32 @@ public void TestCreateUnspent () { var s = new cipher_SecKey (); var a = new cipher__Address (); - var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, a); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var err = SKY_cipher_GenerateKeyPair (p, s); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_AddressFromPubKey (p, a); + Assert.AreEqual (err, SKY_OK); var h = new cipher_SHA256 (); - var handle = skycoin.skycoin.new_Transaction__Handlep (); - skycoin.skycoin.makeEmptyTransaction (handle); - err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (handle, a, 11000000, 255); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var handle = new_Transaction__Handlep (); + makeEmptyTransaction (handle); + err = SKY_coin_Transaction_PushOutput (handle, a, 11000000, 255); + Assert.AreEqual (err, SKY_OK); var bh = new coin__BlockHeader (); bh.Time = 0; bh.BkSeq = 1; testcase[] t = new testcase[2]; var tc = new testcase (); tc.index = 0; - tc.failure = skycoin.skycoin.SKY_OK; + tc.failure = SKY_OK; t[0] = tc; tc = new testcase (); - tc.failure = skycoin.skycoin.SKY_ERROR; + tc.failure = SKY_ERROR; tc.index = 10; t[1] = tc; var ux = new coin__UxOut (); var tests_count = t.Length; for (int i = 0; i < tests_count; i++) { - err = skycoin.skycoin.SKY_coin_CreateUnspent (bh, handle, t[i].index, ux); - if (t[i].failure == skycoin.skycoin.SKY_ERROR) { + err = SKY_coin_CreateUnspent (bh, handle, t[i].index, ux); + if (t[i].failure == SKY_ERROR) { continue; } Assert.AreEqual (bh.Time, ux.Head.Time); @@ -214,21 +214,21 @@ public void TestCreateUnspents () { var p = new cipher_PubKey (); var s = new cipher_SecKey (); - var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, a); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var err = SKY_cipher_GenerateKeyPair (p, s); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_AddressFromPubKey (p, a); + Assert.AreEqual (err, SKY_OK); var h = new cipher_SHA256 (); - var txn = skycoin.skycoin.new_Transaction__Handlep (); - skycoin.skycoin.makeEmptyTransaction (txn); - err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (txn, a, (ulong) 11e6, 255); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var txn = new_Transaction__Handlep (); + makeEmptyTransaction (txn); + err = SKY_coin_Transaction_PushOutput (txn, a, (ulong) 11e6, 255); + Assert.AreEqual (err, SKY_OK); var bh = new coin__BlockHeader (); bh.Time = 0; bh.BkSeq = 1; var uxouts = new coin_UxOutArray (); - err = skycoin.skycoin.SKY_coin_CreateUnspents (bh, txn, uxouts); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_CreateUnspents (bh, txn, uxouts); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (uxouts.count, 1); } diff --git a/LibskycoinNetTest/check_coin_math.cs b/LibskycoinNetTest/check_coin_math.cs index 33f39e4e..6fed6802 100644 --- a/LibskycoinNetTest/check_coin_math.cs +++ b/LibskycoinNetTest/check_coin_math.cs @@ -4,17 +4,17 @@ using utils; namespace LibskycoinNetTest { [TestFixture ()] - public class check_coin_math { + public class check_coin_math : skycoin.skycoin { utils.transutils transutils = new utils.transutils (); [Test] public void TestAddUint64 () { - var r = skycoin.skycoin.new_GoUint64p (); - var err = skycoin.skycoin.SKY_coin_AddUint64 (10, 11, r); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.GoUint64p_value (r), 21); - err = skycoin.skycoin.SKY_coin_AddUint64 (ulong.MaxValue, 1, r); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrUint64AddOverflow); + var r = new_GoUint64p (); + var err = SKY_coin_AddUint64 (10, 11, r); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (GoUint64p_value (r), 21); + err = SKY_coin_AddUint64 (ulong.MaxValue, 1, r); + Assert.AreEqual (err, SKY_ErrUint64AddOverflow); } struct math_test { public ulong a; @@ -28,35 +28,35 @@ public void FullCases () { var c = new math_test (); c.a = 0; c.b = 0; - c.failure = skycoin.skycoin.SKY_OK; + c.failure = SKY_OK; cases[0] = c; c = new math_test (); c.a = 1; c.b = 1; - c.failure = skycoin.skycoin.SKY_OK; + c.failure = SKY_OK; cases[1] = c; c = new math_test (); c.a = long.MaxValue; c.b = long.MaxValue; - c.failure = skycoin.skycoin.SKY_OK; + c.failure = SKY_OK; cases[2] = c; c = new math_test (); c.a = ulong.MaxValue; c.b = 0; - c.failure = skycoin.skycoin.SKY_ERROR; + c.failure = SKY_ERROR; cases[3] = c; } [Test] public void TestUint64ToInt64 () { for (int i = 0; i < cases.Length; i++) { - var r = skycoin.skycoin.new_Gointp (); - var err = skycoin.skycoin.SKY_coin_Uint64ToInt64 (cases[i].a, r); + var r = new_Gointp (); + var err = SKY_coin_Uint64ToInt64 (cases[i].a, r); Assert.AreEqual (err, cases[i].failure); - Assert.AreEqual (cases[i].b, skycoin.skycoin.Gointp_value (r)); + Assert.AreEqual (cases[i].b, Gointp_value (r)); } } } diff --git a/LibskycoinNetTest/check_coin_outputs.cs b/LibskycoinNetTest/check_coin_outputs.cs index a1c3589d..bd81c308 100644 --- a/LibskycoinNetTest/check_coin_outputs.cs +++ b/LibskycoinNetTest/check_coin_outputs.cs @@ -4,15 +4,15 @@ using utils; namespace LibskycoinNetTest { [TestFixture ()] - public class check_coin_outputs { + public class check_coin_outputs : skycoin.skycoin { utils.transutils transutils = new utils.transutils (); public void TestUxBodyHash () { var uxb = transutils.makeUxBody (); var hasx = new cipher_SHA256 (); - var err = skycoin.skycoin.SKY_coin_UxBody_Hash (uxb, hasx); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var err = SKY_coin_UxBody_Hash (uxb, hasx); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (hasx.isEqual (new cipher_SHA256 ()), 0); } @@ -23,18 +23,18 @@ public void TestUxOutHash () { uxo.Body = uxb; var hash_body = new cipher_SHA256 (); var hash_out = new cipher_SHA256 (); - var err = skycoin.skycoin.SKY_coin_UxBody_Hash (uxb, hash_body); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_UxOut_Hash (uxo, hash_out); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var err = SKY_coin_UxBody_Hash (uxb, hash_body); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_UxOut_Hash (uxo, hash_out); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (hash_body.isEqual (hash_out), 1); // Head should not affect hash var uxh = new coin__UxHead (); uxh.Time = 0; uxh.BkSeq = 1; uxo.Head = uxh; - err = skycoin.skycoin.SKY_coin_UxOut_Hash (uxo, hash_out); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_UxOut_Hash (uxo, hash_out); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (hash_body.isEqual (hash_out), 1); } @@ -42,19 +42,19 @@ public void TestUxOutHash () { public void TestUxOutSnapshotHash () { var p = new cipher_PubKey (); var s = new cipher_SecKey (); - var err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var err = SKY_cipher_GenerateKeyPair (p, s); + Assert.AreEqual (err, SKY_OK); var uxb = new coin__UxBody (); var b = new GoSlice (); - err = skycoin.skycoin.SKY_cipher_RandByte (128, b); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_cipher_RandByte (128, b); + Assert.AreEqual (err, SKY_OK); var h = new cipher_SHA256 (); - err = skycoin.skycoin.SKY_cipher_SumSHA256 (b, h); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_cipher_SumSHA256 (b, h); + Assert.AreEqual (err, SKY_OK); uxb.SetSrcTransaction (h); var a = new cipher__Address (); - err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, a); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_cipher_AddressFromPubKey (p, a); + Assert.AreEqual (err, SKY_OK); uxb.Address = a; uxb.Coins = (ulong) 1e6; uxb.Hours = (ulong) 100; @@ -65,54 +65,54 @@ public void TestUxOutSnapshotHash () { uxo.Head = uxh; uxo.Body = uxb; var hn = new cipher_SHA256 (); - err = skycoin.skycoin.SKY_coin_UxOut_SnapshotHash (uxo, hn); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_UxOut_SnapshotHash (uxo, hn); + Assert.AreEqual (err, SKY_OK); // snapshot hash should be dependent on every field in body and head // Head Time var uxo_2 = uxo; uxh.Time = 20; uxo_2.Head = uxh; var hn_2 = new cipher_SHA256 (); - err = skycoin.skycoin.SKY_coin_UxOut_SnapshotHash (uxo_2, hn_2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_UxOut_SnapshotHash (uxo_2, hn_2); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (hn.isEqual (hn_2), 0); // Head BkSeq uxo_2 = uxo; uxh.BkSeq = 4; uxo_2.Head = uxh; hn_2 = new cipher_SHA256 (); - err = skycoin.skycoin.SKY_coin_UxOut_SnapshotHash (uxo_2, hn_2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_UxOut_SnapshotHash (uxo_2, hn_2); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (hn.isEqual (hn_2), 0); // Body SetSrcTransaction uxo_2 = uxo; uxb = new coin__UxBody (); - err = skycoin.skycoin.SKY_cipher_RandByte (128, b); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_cipher_RandByte (128, b); + Assert.AreEqual (err, SKY_OK); h = new cipher_SHA256 (); - err = skycoin.skycoin.SKY_cipher_SumSHA256 (b, h); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_cipher_SumSHA256 (b, h); + Assert.AreEqual (err, SKY_OK); uxb.SetSrcTransaction (h); uxo_2.Body = uxb; hn_2 = new cipher_SHA256 (); - err = skycoin.skycoin.SKY_coin_UxOut_SnapshotHash (uxo_2, hn_2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_UxOut_SnapshotHash (uxo_2, hn_2); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (hn.isEqual (hn_2), 0); // Body Address var p_2 = new cipher_PubKey (); var s_2 = new cipher_SecKey (); - err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p_2, s_2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_cipher_GenerateKeyPair (p_2, s_2); + Assert.AreEqual (err, SKY_OK); var a_2 = new cipher__Address (); - err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p_2, a_2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_cipher_AddressFromPubKey (p_2, a_2); + Assert.AreEqual (err, SKY_OK); uxo_2 = uxo; uxb = new coin__UxBody (); uxb.Address = a_2; uxo_2.Body = uxb; hn_2 = new cipher_SHA256 (); - err = skycoin.skycoin.SKY_coin_UxOut_SnapshotHash (uxo_2, hn_2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_UxOut_SnapshotHash (uxo_2, hn_2); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (hn.isEqual (hn_2), 0); // Body Coins uxo_2 = uxo; @@ -120,8 +120,8 @@ public void TestUxOutSnapshotHash () { uxb.Coins = 2; uxo_2.Body = uxb; hn_2 = new cipher_SHA256 (); - err = skycoin.skycoin.SKY_coin_UxOut_SnapshotHash (uxo_2, hn_2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_UxOut_SnapshotHash (uxo_2, hn_2); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (hn.isEqual (hn_2), 0); // Body Hours uxo_2 = uxo; @@ -129,8 +129,8 @@ public void TestUxOutSnapshotHash () { uxb.Hours = 2; uxo_2.Body = uxb; hn_2 = new cipher_SHA256 (); - err = skycoin.skycoin.SKY_coin_UxOut_SnapshotHash (uxo_2, hn_2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_UxOut_SnapshotHash (uxo_2, hn_2); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (hn.isEqual (hn_2), 0); } @@ -138,16 +138,16 @@ public void TestUxOutSnapshotHash () { public void TestUxOutCoinHours () { var p = new cipher_PubKey (); var s = new cipher_SecKey (); - skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); + SKY_cipher_GenerateKeyPair (p, s); var uxb = new coin__UxBody (); var b = new GoSlice (); - skycoin.skycoin.SKY_cipher_RandByte (128, b); + SKY_cipher_RandByte (128, b); var h = new cipher_SHA256 (); - var err = skycoin.skycoin.SKY_cipher_SumSHA256 (b, h); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var err = SKY_cipher_SumSHA256 (b, h); + Assert.AreEqual (err, SKY_OK); uxb.SetSrcTransaction (h); var a = new cipher__Address (); - skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, a); + SKY_cipher_AddressFromPubKey (p, a); uxb.Address = a; uxb.Coins = (ulong) 1e6; uxb.Hours = 100; @@ -160,96 +160,96 @@ public void TestUxOutCoinHours () { // Less than an hour passed var now = uxh.Time + 100; - var hours = skycoin.skycoin.new_GoUint64p (); - err = skycoin.skycoin.SKY_coin_UxOut_CoinHours (uxo, now, hours); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (uxh.Time, skycoin.skycoin.GoUint64p_value (hours), "Less than an hour passed"); + var hours = new_GoUint64p (); + err = SKY_coin_UxOut_CoinHours (uxo, now, hours); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (uxh.Time, GoUint64p_value (hours), "Less than an hour passed"); // 1 hours passed now = uxh.Time + 3600; - err = skycoin.skycoin.SKY_coin_UxOut_CoinHours (uxo, now, hours); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.GoUint64p_value (hours), uxh.Time + (uxb.Coins / 1000000), "1 hours passed"); + err = SKY_coin_UxOut_CoinHours (uxo, now, hours); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (GoUint64p_value (hours), uxh.Time + (uxb.Coins / 1000000), "1 hours passed"); // 6 hours passed now = uxh.Time + 3600 * 6; - err = skycoin.skycoin.SKY_coin_UxOut_CoinHours (uxo, now, hours); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.GoUint64p_value (hours), uxh.Time + (uxb.Coins / 1000000) * 6, "1 hours passed"); + err = SKY_coin_UxOut_CoinHours (uxo, now, hours); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (GoUint64p_value (hours), uxh.Time + (uxb.Coins / 1000000) * 6, "1 hours passed"); // Time is backwards (treated as no hours passed) now = uxh.Time / 2; - err = skycoin.skycoin.SKY_coin_UxOut_CoinHours (uxo, now, hours); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.GoUint64p_value (hours), uxh.Time); + err = SKY_coin_UxOut_CoinHours (uxo, now, hours); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (GoUint64p_value (hours), uxh.Time); // 1 hour has passed, output has 1.5 coins, should gain 1 coinhour uxb.Coins = 1500000; now = uxh.Time + 3600; - err = skycoin.skycoin.SKY_coin_UxOut_CoinHours (uxo, now, hours); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.GoUint64p_value (hours), uxb.Hours + 1); + err = SKY_coin_UxOut_CoinHours (uxo, now, hours); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (GoUint64p_value (hours), uxb.Hours + 1); // 2 hours have passed, output has 1.5 coins, should gain 3 coin hours uxb.Coins = 1500000; uxo.Body = uxb; now = uxh.Time + 3600 * 2; - err = skycoin.skycoin.SKY_coin_UxOut_CoinHours (uxo, now, hours); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_UxOut_CoinHours (uxo, now, hours); + Assert.AreEqual (err, SKY_OK); // 1 second has passed, output has 3600 coins, should gain 1 coin hour uxb.Coins = 3600000000; uxo.Body = uxb; now = uxh.Time + 1; - err = skycoin.skycoin.SKY_coin_UxOut_CoinHours (uxo, now, hours); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.GoUint64p_value (hours), uxb.Hours + 1); + err = SKY_coin_UxOut_CoinHours (uxo, now, hours); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (GoUint64p_value (hours), uxb.Hours + 1); // 1000000 hours minus 1 second have passed, output has 1 droplet, should gain 0 coin hour uxb.Coins = 1; uxo.Body = uxb; now = (ulong) (uxh.Time + (ulong) Convert.ToInt64 (1e6 * 3600) - 1); - err = skycoin.skycoin.SKY_coin_UxOut_CoinHours (uxo, now, hours); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.GoUint64p_value (hours), uxb.Hours); + err = SKY_coin_UxOut_CoinHours (uxo, now, hours); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (GoUint64p_value (hours), uxb.Hours); // 1000000 hours have passed, output has 1 droplet, should gain 1 coin hour uxb.Coins = 1; uxo.Body = uxb; now = uxh.Time + Convert.ToUInt64 (10e5 * 3600); - err = skycoin.skycoin.SKY_coin_UxOut_CoinHours (uxo, now, hours); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.GoUint64p_value (hours), uxb.Hours + 1); + err = SKY_coin_UxOut_CoinHours (uxo, now, hours); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (GoUint64p_value (hours), uxb.Hours + 1); // No hours passed, using initial coin hours uxb.Coins = (ulong) 10e8; uxb.Hours = 1000 * 1000; uxo.Body = uxb; now = uxh.Time; - err = skycoin.skycoin.SKY_coin_UxOut_CoinHours (uxo, now, hours); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.GoUint64p_value (hours), uxb.Hours); + err = SKY_coin_UxOut_CoinHours (uxo, now, hours); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (GoUint64p_value (hours), uxb.Hours); // One hour passed, using initial coin hours now = uxh.Time + 3600; - err = skycoin.skycoin.SKY_coin_UxOut_CoinHours (uxo, now, hours); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.GoUint64p_value (hours), uxb.Hours + (10e8 / 10e5)); + err = SKY_coin_UxOut_CoinHours (uxo, now, hours); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (GoUint64p_value (hours), uxb.Hours + (10e8 / 10e5)); // No hours passed and no hours to begin with 0 uxb.Hours = 0; uxo.Body = uxb; now = uxh.Time; - err = skycoin.skycoin.SKY_coin_UxOut_CoinHours (uxo, now, hours); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.GoUint64p_value (hours), 0); + err = SKY_coin_UxOut_CoinHours (uxo, now, hours); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (GoUint64p_value (hours), 0); // Centuries have passed, time-based calculation overflows uint64 when calculating the whole coin seconds uxb.Coins = (ulong) 20e5; uxo.Body = uxb; now = 0xFFFFFFFFFFFFFFFF; - err = skycoin.skycoin.SKY_coin_UxOut_CoinHours (uxo, now, hours); - Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + err = SKY_coin_UxOut_CoinHours (uxo, now, hours); + Assert.AreEqual (err, SKY_ERROR); // Centuries have passed, time-based calculation overflows uint64 when calculating the droplet seconds uxb.Coins = (ulong) 15e5; uxo.Body = uxb; now = 0xFFFFFFFFFFFFFFFF; - err = skycoin.skycoin.SKY_coin_UxOut_CoinHours (uxo, now, hours); - Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + err = SKY_coin_UxOut_CoinHours (uxo, now, hours); + Assert.AreEqual (err, SKY_ERROR); // Output would overflow if given more hours, has reached its limit uxb.Coins = (ulong) 36e8; uxo.Body = uxb; now = 0xFFFFFFFFFFFFFFFF; - err = skycoin.skycoin.SKY_coin_UxOut_CoinHours (uxo, now, hours); - Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + err = SKY_coin_UxOut_CoinHours (uxo, now, hours); + Assert.AreEqual (err, SKY_ERROR); } [Test] @@ -259,24 +259,24 @@ public void TestUxArrayCoins () { var x = uxa.getAt (i); x.Body.Coins = (ulong) 1e6; } - var coins = skycoin.skycoin.new_GoUint64p (); - var err = skycoin.skycoin.SKY_coin_UxArray_Coins (uxa, coins); - Assert.AreEqual (skycoin.skycoin.GoUint64p_value (coins), (ulong) 4e6); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var coins = new_GoUint64p (); + var err = SKY_coin_UxArray_Coins (uxa, coins); + Assert.AreEqual (GoUint64p_value (coins), (ulong) 4e6); + Assert.AreEqual (err, SKY_OK); var uxo = uxa.getAt (2); uxo.Body.Coins = (ulong) (ulong.MaxValue - 1e6); uxa.setAt (2, uxo); - err = skycoin.skycoin.SKY_coin_UxArray_Coins (uxa, coins); - Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + err = SKY_coin_UxArray_Coins (uxa, coins); + Assert.AreEqual (err, SKY_ERROR); } public ulong ux_Array_CoinsHours (coin_UxOutArray uxa, ulong now = 0, ulong slic = 0) { ulong result = 0; for (var i = slic; i < (ulong) uxa.count; i++) { var x = uxa.getAt ((int) i); - var time = skycoin.skycoin.new_GoUint64p (); - var err = skycoin.skycoin.SKY_coin_UxOut_CoinHours (x, now, time); - result += skycoin.skycoin.GoUint64p_value (time); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var time = new_GoUint64p (); + var err = SKY_coin_UxOut_CoinHours (x, now, time); + result += GoUint64p_value (time); + Assert.AreEqual (err, SKY_OK); } return result; } @@ -284,52 +284,52 @@ public ulong ux_Array_CoinsHours (coin_UxOutArray uxa, ulong now = 0, ulong slic [Test] public void TestUxArrayCoinHours () { var uxa = new coin_UxOutArray (); - skycoin.skycoin.makeUxArray (uxa, 4); - var count = skycoin.skycoin.new_GoUint64p (); + makeUxArray (uxa, 4); + var count = new_GoUint64p (); var uxo = uxa.getAt (0); - var err = skycoin.skycoin.SKY_coin_UxArray_CoinHours (uxa, uxo.Head.Time, count); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.GoUint64p_value (count), 400); + var err = SKY_coin_UxArray_CoinHours (uxa, uxo.Head.Time, count); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (GoUint64p_value (count), 400); // 1 hour later - err = skycoin.skycoin.SKY_coin_UxArray_CoinHours (uxa, uxo.Head.Time + 3600, count); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.GoUint64p_value (count), 404); + err = SKY_coin_UxArray_CoinHours (uxa, uxo.Head.Time + 3600, count); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (GoUint64p_value (count), 404); // 1.5 hours later - err = skycoin.skycoin.SKY_coin_UxArray_CoinHours (uxa, uxo.Head.Time + 3600 + 1800, count); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.GoUint64p_value (count), 404); + err = SKY_coin_UxArray_CoinHours (uxa, uxo.Head.Time + 3600 + 1800, count); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (GoUint64p_value (count), 404); // 2 hours later - err = skycoin.skycoin.SKY_coin_UxArray_CoinHours (uxa, uxo.Head.Time + 3600 + 4600, count); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.GoUint64p_value (count), 408); + err = SKY_coin_UxArray_CoinHours (uxa, uxo.Head.Time + 3600 + 4600, count); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (GoUint64p_value (count), 408); uxo = uxa.getAt (2); uxo.Body.Hours = ulong.MaxValue - 100; uxa.setAt (2, uxo); uxo = uxa.getAt (0); - err = skycoin.skycoin.SKY_coin_UxArray_CoinHours (uxa, uxo.Head.Time, count); - Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + err = SKY_coin_UxArray_CoinHours (uxa, uxo.Head.Time, count); + Assert.AreEqual (err, SKY_ERROR); - err = skycoin.skycoin.SKY_coin_UxArray_CoinHours (uxa, Convert.ToUInt64 (uxo.Head.Time * 10e11), count); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrAddEarnedCoinHoursAdditionOverflow); + err = SKY_coin_UxArray_CoinHours (uxa, Convert.ToUInt64 (uxo.Head.Time * 10e11), count); + Assert.AreEqual (err, SKY_ErrAddEarnedCoinHoursAdditionOverflow); } [Test] public void TestUxArrayHashArray () { var uxa = new coin_UxOutArray (); - skycoin.skycoin.makeUxArray (uxa, 4); + makeUxArray (uxa, 4); var sha = new cipher_SHA256 (); var hashes = new cipher_SHA256s (); - var err = skycoin.skycoin.SKY_coin_UxArray_Hashes (uxa, hashes); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var err = SKY_coin_UxArray_Hashes (uxa, hashes); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (hashes.count, uxa.count); var uxo = uxa.getAt (0); - err = skycoin.skycoin.SKY_coin_UxOut_Hash (uxo, sha); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_UxOut_Hash (uxo, sha); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (hashes.getAt (0).isEqual (sha), 1); for (int i = 0; i < hashes.count; i++) { - err = skycoin.skycoin.SKY_coin_UxOut_Hash (uxa.getAt (i), sha); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_UxOut_Hash (uxa.getAt (i), sha); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (sha.isEqual (hashes.getAt (i)), 1); } } @@ -337,15 +337,15 @@ public void TestUxArrayHashArray () { [Test] public void TestUxArrayHasDupes () { var uxa = new coin_UxOutArray (); - skycoin.skycoin.makeUxArray (uxa, 4); - var hasDupes = skycoin.skycoin.new_CharPtr(); - var err = skycoin.skycoin.SKY_coin_UxArray_HasDupes (uxa, hasDupes); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.CharPtr_value(hasDupes), 0); + makeUxArray (uxa, 4); + var hasDupes = new_CharPtr (); + var err = SKY_coin_UxArray_HasDupes (uxa, hasDupes); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (CharPtr_value (hasDupes), 0); uxa.setAt (0, uxa.getAt (1)); - err = skycoin.skycoin.SKY_coin_UxArray_HasDupes (uxa, hasDupes); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.CharPtr_value (hasDupes), 1); + err = SKY_coin_UxArray_HasDupes (uxa, hasDupes); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (CharPtr_value (hasDupes), 1); } [Test] @@ -354,8 +354,8 @@ public void TestUxArraySub () { var uxb = new coin_UxOutArray (); var uxc = new coin_UxOutArray (); var uxd = new coin_UxOutArray (); - skycoin.skycoin.makeUxArray (uxa, 4); - skycoin.skycoin.makeUxArray (uxb, 4); + makeUxArray (uxa, 4); + makeUxArray (uxb, 4); uxc.allocate (6); uxc.setAt (0, uxa.getAt (0)); uxc.setAt (1, uxa.getAt (1)); @@ -365,12 +365,12 @@ public void TestUxArraySub () { uxc.setAt (6, uxa.getAt (1)); uxc.setAt (7, uxa.getAt (2)); - var err = skycoin.skycoin.SKY_coin_UxArray_Sub (uxc, uxa, uxd); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var err = SKY_coin_UxArray_Sub (uxc, uxa, uxd); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (uxd.count, uxb.count); Assert.AreEqual (uxd.isEqual (uxb), 1); - err = skycoin.skycoin.SKY_coin_UxArray_Sub (uxc, uxb, uxd); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_UxArray_Sub (uxc, uxb, uxd); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (uxd.count, 2); var test = new coin_UxOutArray (); test.allocate (2); @@ -378,11 +378,11 @@ public void TestUxArraySub () { test.setAt (1, uxa.getAt (1)); Assert.AreEqual (test.isEqual (uxd), 1); // No intersection - err = skycoin.skycoin.SKY_coin_UxArray_Sub (uxa, uxb, uxd); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_UxArray_Sub (uxa, uxb, uxd); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (uxd.isEqual (uxa), 1); - err = skycoin.skycoin.SKY_coin_UxArray_Sub (uxb, uxa, uxd); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_UxArray_Sub (uxb, uxa, uxd); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (uxd.isEqual (uxb), 1); } public bool manualUxArrayIsSorted (coin_UxOutArray uxa) { @@ -390,10 +390,10 @@ public bool manualUxArrayIsSorted (coin_UxOutArray uxa) { var sha_2 = new cipher_SHA256 (); var isSort = true; for (int i = 0; i < uxa.count - 1; i++) { - var err = skycoin.skycoin.SKY_coin_UxOut_Hash (uxa.getAt (i), sha_1); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_UxOut_Hash (uxa.getAt (i + 1), sha_2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var err = SKY_coin_UxOut_Hash (uxa.getAt (i), sha_1); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_UxOut_Hash (uxa.getAt (i + 1), sha_2); + Assert.AreEqual (err, SKY_OK); if (sha_1.isEqual (sha_2) == 0) { isSort = false; } @@ -404,25 +404,25 @@ public bool manualUxArrayIsSorted (coin_UxOutArray uxa) { [Test] public void TestUxArrayLen () { var uxa = new coin_UxOutArray (); - skycoin.skycoin.makeUxArray (uxa, 4); + makeUxArray (uxa, 4); Assert.AreEqual (uxa.count, 4); } [Test] public void TestUxArrayLess () { var uxa = new coin_UxOutArray (); - skycoin.skycoin.makeUxArray (uxa, 2); + makeUxArray (uxa, 2); var hashes = new cipher_SHA256s (); - var err = skycoin.skycoin.SKY_coin_UxArray_Hashes (uxa, hashes); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var err = SKY_coin_UxArray_Hashes (uxa, hashes); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (hashes.count, uxa.count); - var less = skycoin.skycoin.new_CharPtr (); - var less2 = skycoin.skycoin.new_CharPtr (); - err = skycoin.skycoin.SKY_coin_UxArray_Less (uxa, 0, 1, less); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_UxArray_Less (uxa, 1, 0, less2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreNotEqual (skycoin.skycoin.CharPtr_value (less), skycoin.skycoin.CharPtr_value (less2)); + var less = new_CharPtr (); + var less2 = new_CharPtr (); + err = SKY_coin_UxArray_Less (uxa, 0, 1, less); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_UxArray_Less (uxa, 1, 0, less2); + Assert.AreEqual (err, SKY_OK); + Assert.AreNotEqual (CharPtr_value (less), CharPtr_value (less2)); } [Test] @@ -431,20 +431,20 @@ public void TestUxArraySwap () { uxa.allocate (2); var uxx = new coin__UxOut (); var uxy = new coin__UxOut (); - skycoin.skycoin.makeUxOut (uxx); - skycoin.skycoin.makeUxOut (uxy); + makeUxOut (uxx); + makeUxOut (uxy); uxa.setAt (0, uxx); uxa.setAt (1, uxy); - var err = skycoin.skycoin.SKY_coin_UxArray_Swap (uxa, 0, 1); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var err = SKY_coin_UxArray_Swap (uxa, 0, 1); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (uxa.getAt (0).isEqual (uxy), 0); Assert.AreEqual (uxa.getAt (1).isEqual (uxx), 0); - err = skycoin.skycoin.SKY_coin_UxArray_Swap (uxa, 0, 1); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_UxArray_Swap (uxa, 0, 1); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (uxa.getAt (0).isEqual (uxx), 0); Assert.AreEqual (uxa.getAt (1).isEqual (uxy), 0); - err = skycoin.skycoin.SKY_coin_UxArray_Swap (uxa, 1, 0); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_UxArray_Swap (uxa, 1, 0); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (uxa.getAt (0).isEqual (uxx), 0); Assert.AreEqual (uxa.getAt (1).isEqual (uxy), 0); } @@ -452,13 +452,13 @@ public void TestUxArraySwap () { [Test] public void TestAddressUxOutsKeys () { var uxa = new coin_UxOutArray (); - skycoin.skycoin.makeUxArray (uxa, 3); - var uxH = skycoin.skycoin.new_AddressUxOuts__HandlePtr (); - var err = skycoin.skycoin.SKY_coin_NewAddressUxOuts (uxa, uxH); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + makeUxArray (uxa, 3); + var uxH = new_AddressUxOuts__HandlePtr (); + var err = SKY_coin_NewAddressUxOuts (uxa, uxH); + Assert.AreEqual (err, SKY_OK); var keys = new cipher_Addresses (); - err = skycoin.skycoin.SKY_coin_AddressUxOuts_Keys (uxH, keys); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_AddressUxOuts_Keys (uxH, keys); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (keys.count, 3); for (int i = 0; i < keys.count; i++) { var k = keys.getAt (i); @@ -471,15 +471,15 @@ public void TestAddressUxOutsKeys () { public void TestAddressUxOutsSub () { var uxs = new coin_UxOutArray (); var empty = new coin_UxOutArray (); - skycoin.skycoin.makeUxArray (uxs, 4); - skycoin.skycoin.makeUxArray (empty, 0); + makeUxArray (uxs, 4); + makeUxArray (empty, 0); - var up = skycoin.skycoin.new_AddressUxOuts__HandlePtr (); - var err = skycoin.skycoin.SKY_coin_NewAddressUxOuts (empty, up); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var up2 = skycoin.skycoin.new_AddressUxOuts__HandlePtr (); - err = skycoin.skycoin.SKY_coin_NewAddressUxOuts (empty, up2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var up = new_AddressUxOuts__HandlePtr (); + var err = SKY_coin_NewAddressUxOuts (empty, up); + Assert.AreEqual (err, SKY_OK); + var up2 = new_AddressUxOuts__HandlePtr (); + err = SKY_coin_NewAddressUxOuts (empty, up2); + Assert.AreEqual (err, SKY_OK); var uxo = uxs.getAt (1); uxo.Body.Address = uxs.getAt (0).Body.Address; @@ -489,77 +489,77 @@ public void TestAddressUxOutsSub () { arg.release (); arg.allocate (1); arg.setAt (0, uxs.getAt (0)); - err = skycoin.skycoin.SKY_coin_AddressUxOuts_Set (up, uxs.getAt (0).Body.Address, arg); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_AddressUxOuts_Set (up, uxs.getAt (0).Body.Address, arg); + Assert.AreEqual (err, SKY_OK); arg.release (); arg.allocate (1); arg.setAt (0, uxs.getAt (2)); - err = skycoin.skycoin.SKY_coin_AddressUxOuts_Set (up, uxs.getAt (2).Body.Address, arg); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_AddressUxOuts_Set (up, uxs.getAt (2).Body.Address, arg); + Assert.AreEqual (err, SKY_OK); arg.release (); arg.allocate (1); arg.setAt (0, uxs.getAt (3)); - err = skycoin.skycoin.SKY_coin_AddressUxOuts_Set (up, uxs.getAt (3).Body.Address, arg); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_AddressUxOuts_Set (up, uxs.getAt (3).Body.Address, arg); + Assert.AreEqual (err, SKY_OK); arg.release (); arg.allocate (1); arg.setAt (0, uxs.getAt (1)); - err = skycoin.skycoin.SKY_coin_AddressUxOuts_Set (up2, uxs.getAt (1).Body.Address, arg); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_AddressUxOuts_Set (up2, uxs.getAt (1).Body.Address, arg); + Assert.AreEqual (err, SKY_OK); arg.release (); arg.allocate (1); arg.setAt (0, uxs.getAt (2)); - err = skycoin.skycoin.SKY_coin_AddressUxOuts_Set (up2, uxs.getAt (2).Body.Address, arg); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - - var up3 = skycoin.skycoin.new_AddressUxOuts__HandlePtr (); - err = skycoin.skycoin.SKY_coin_AddressUxOuts_Add (up, up2, up3); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var len = skycoin.skycoin.new_Gointp (); - err = skycoin.skycoin.SKY_coin_AddressUxOuts_Length (up3, len); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.Gointp_value (len), 3); - err = skycoin.skycoin.SKY_coin_AddressUxOuts_Length (up2, len); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.Gointp_value (len), 2); + err = SKY_coin_AddressUxOuts_Set (up2, uxs.getAt (2).Body.Address, arg); + Assert.AreEqual (err, SKY_OK); + + var up3 = new_AddressUxOuts__HandlePtr (); + err = SKY_coin_AddressUxOuts_Add (up, up2, up3); + Assert.AreEqual (err, SKY_OK); + var len = new_Gointp (); + err = SKY_coin_AddressUxOuts_Length (up3, len); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (Gointp_value (len), 3); + err = SKY_coin_AddressUxOuts_Length (up2, len); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (Gointp_value (len), 2); } [Test] public void TestAddressUxOutsFlatten () { var empty = new coin_UxOutArray (); - skycoin.skycoin.makeUxArray (empty, 0); - var up = skycoin.skycoin.new_AddressUxOuts__HandlePtr (); - var err = skycoin.skycoin.SKY_coin_NewAddressUxOuts (empty, up); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + makeUxArray (empty, 0); + var up = new_AddressUxOuts__HandlePtr (); + var err = SKY_coin_NewAddressUxOuts (empty, up); + Assert.AreEqual (err, SKY_OK); var uxs = new coin_UxOutArray (); - skycoin.skycoin.makeUxArray (uxs, 3); + makeUxArray (uxs, 3); var uxo = uxs.getAt (2); uxo.Body.Address = uxs.getAt (1).Body.Address; uxs.setAt (0, uxo); var emptyAddr = new cipher__Address (); - skycoin.skycoin.makeAddress (emptyAddr); + makeAddress (emptyAddr); // An empty array - err = skycoin.skycoin.SKY_coin_AddressUxOuts_Set (up, emptyAddr, empty); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_AddressUxOuts_Set (up, emptyAddr, empty); + Assert.AreEqual (err, SKY_OK); // 1 element array var arg = new coin_UxOutArray (); arg.release (); arg.allocate (1); arg.setAt (0, uxs.getAt (0)); - err = skycoin.skycoin.SKY_coin_AddressUxOuts_Set (up, uxs.getAt (0).Body.Address, arg); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_AddressUxOuts_Set (up, uxs.getAt (0).Body.Address, arg); + Assert.AreEqual (err, SKY_OK); arg.release (); arg.allocate (2); arg.setAt (0, uxs.getAt (1)); arg.setAt (1, uxs.getAt (2)); - err = skycoin.skycoin.SKY_coin_AddressUxOuts_Set (up, uxs.getAt (1).Body.Address, arg); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_AddressUxOuts_Set (up, uxs.getAt (1).Body.Address, arg); + Assert.AreEqual (err, SKY_OK); var flat = new coin_UxOutArray (); - err = skycoin.skycoin.SKY_coin_AddressUxOuts_Flatten (up, flat); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_AddressUxOuts_Flatten (up, flat); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (flat.count, 2); for (int i = 0; i < flat.count; i++) { @@ -578,7 +578,7 @@ public void TestAddressUxOutsFlatten () { [Test] public void TestNewAddressUxOuts () { var uxs = new coin_UxOutArray (); - skycoin.skycoin.makeUxArray (uxs, 6); + makeUxArray (uxs, 6); var ux = uxs.getAt (1); ux.Body.Address = uxs.getAt (0).Body.Address; uxs.setAt (1, ux); @@ -589,18 +589,18 @@ public void TestNewAddressUxOuts () { ux.Body.Address = uxs.getAt (2).Body.Address; uxs.setAt (4, ux); - var uxo = skycoin.skycoin.new_AddressUxOuts__HandlePtr (); - var err = skycoin.skycoin.SKY_coin_NewAddressUxOuts (uxs, uxo); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var len = skycoin.skycoin.new_Gointp (); - err = skycoin.skycoin.SKY_coin_AddressUxOuts_Length (uxo, len); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.Gointp_value (len), 3); + var uxo = new_AddressUxOuts__HandlePtr (); + var err = SKY_coin_NewAddressUxOuts (uxs, uxo); + Assert.AreEqual (err, SKY_OK); + var len = new_Gointp (); + err = SKY_coin_AddressUxOuts_Length (uxo, len); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (Gointp_value (len), 3); var uxa1 = new coin_UxOutArray (); var uxa2 = new coin_UxOutArray (); - skycoin.skycoin.SKY_coin_AddressUxOuts_Get (uxo, uxs.getAt (0).Body.Address, uxa1); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + SKY_coin_AddressUxOuts_Get (uxo, uxs.getAt (0).Body.Address, uxa1); + Assert.AreEqual (err, SKY_OK); uxa2.allocate (2); uxa2.setAt (1, uxs.getAt (4)); uxa2.setAt (0, uxs.getAt (0)); @@ -611,8 +611,8 @@ public void TestNewAddressUxOuts () { uxa2.setAt (1, uxs.getAt (4)); uxa1.release (); - skycoin.skycoin.SKY_coin_AddressUxOuts_Get (uxo, uxs.getAt (3).Body.Address, uxa1); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + SKY_coin_AddressUxOuts_Get (uxo, uxs.getAt (3).Body.Address, uxa1); + Assert.AreEqual (err, SKY_OK); uxa2.release (); uxa2.allocate (3); uxa2.setAt (0, uxs.getAt (2)); @@ -621,8 +621,8 @@ public void TestNewAddressUxOuts () { Assert.AreEqual (uxa1.isEqual (uxa2), 0); uxa1.release (); - skycoin.skycoin.SKY_coin_AddressUxOuts_Get (uxo, uxs.getAt (5).Body.Address, uxa1); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + SKY_coin_AddressUxOuts_Get (uxo, uxs.getAt (5).Body.Address, uxa1); + Assert.AreEqual (err, SKY_OK); uxa2.release (); uxa2.allocate (1); uxa2.setAt (0, uxs.getAt (5)); diff --git a/LibskycoinNetTest/check_coin_transactions.cs b/LibskycoinNetTest/check_coin_transactions.cs index b4c86ad5..0be9c0d7 100644 --- a/LibskycoinNetTest/check_coin_transactions.cs +++ b/LibskycoinNetTest/check_coin_transactions.cs @@ -5,7 +5,7 @@ namespace LibskycoinNetTest { [TestFixture ()] - public class check_coin_transactions { + public class check_coin_transactions : skycoin.skycoin { utils.transutils transutils = new utils.transutils (); [Test] @@ -13,160 +13,160 @@ public void TestTransactionVerify () { // Mismatch header hash var tx = transutils.makeEmptyTransaction (); - var ptx = skycoin.skycoin.makeTransaction (tx); + var ptx = makeTransaction (tx); ptx.setInnerHash (new cipher_SHA256 ()); - var err = skycoin.skycoin.SKY_coin_Transaction_Verify (tx); - Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + var err = SKY_coin_Transaction_Verify (tx); + Assert.AreEqual (err, SKY_ERROR); // No inputs - tx = skycoin.skycoin.new_Transaction__Handlep (); - skycoin.skycoin.makeTransaction (tx); - err = skycoin.skycoin.SKY_coin_Transaction_ResetInputs (tx, 0); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_UpdateHeader (tx); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_Verify (tx); - Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + tx = new_Transaction__Handlep (); + makeTransaction (tx); + err = SKY_coin_Transaction_ResetInputs (tx, 0); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_UpdateHeader (tx); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_Verify (tx); + Assert.AreEqual (err, SKY_ERROR); // No outputs - skycoin.skycoin.makeTransaction (tx); - err = skycoin.skycoin.SKY_coin_Transaction_ResetOutputs (tx, 0); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK, ""); - err = skycoin.skycoin.SKY_coin_Transaction_UpdateHeader (tx); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_Verify (tx); - Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + makeTransaction (tx); + err = SKY_coin_Transaction_ResetOutputs (tx, 0); + Assert.AreEqual (err, SKY_OK, ""); + err = SKY_coin_Transaction_UpdateHeader (tx); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_Verify (tx); + Assert.AreEqual (err, SKY_ERROR); // Invalid number of Sigs - skycoin.skycoin.makeTransaction (tx); - err = skycoin.skycoin.SKY_coin_Transaction_ResetSignatures (tx, 0); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_UpdateHeader (tx); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_Verify (tx); - Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); - err = skycoin.skycoin.SKY_coin_Transaction_ResetSignatures (tx, 20); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_UpdateHeader (tx); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_Verify (tx); - Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + makeTransaction (tx); + err = SKY_coin_Transaction_ResetSignatures (tx, 0); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_UpdateHeader (tx); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_Verify (tx); + Assert.AreEqual (err, SKY_ERROR); + err = SKY_coin_Transaction_ResetSignatures (tx, 20); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_UpdateHeader (tx); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_Verify (tx); + Assert.AreEqual (err, SKY_ERROR); // Too many sigs & inputs - skycoin.skycoin.makeTransaction (tx); - err = skycoin.skycoin.SKY_coin_Transaction_ResetSignatures (tx, short.MaxValue); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_ResetInputs (tx, short.MaxValue); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_UpdateHeader (tx); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_Verify (tx); - Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + makeTransaction (tx); + err = SKY_coin_Transaction_ResetSignatures (tx, short.MaxValue); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_ResetInputs (tx, short.MaxValue); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_UpdateHeader (tx); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_Verify (tx); + Assert.AreEqual (err, SKY_ERROR); // Duplicate inputs var ux = new coin__UxOut (); var s = new cipher_SecKey (); var h = new cipher_SHA256 (); - skycoin.skycoin.makeUxOutWithSecret (ux, s); - skycoin.skycoin.makeTransactionFromUxOut (ux, s, tx); - err = skycoin.skycoin.SKY_coin_Transaction_GetInputAt (tx, 0, h); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var p1 = skycoin.skycoin.new_GoUint16p (); - err = skycoin.skycoin.SKY_coin_Transaction_PushInput (tx, h, p1); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_ResetSignatures (tx, 0); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + makeUxOutWithSecret (ux, s); + makeTransactionFromUxOut (ux, s, tx); + err = SKY_coin_Transaction_GetInputAt (tx, 0, h); + Assert.AreEqual (err, SKY_OK); + var p1 = new_GoUint16p (); + err = SKY_coin_Transaction_PushInput (tx, h, p1); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_ResetSignatures (tx, 0); + Assert.AreEqual (err, SKY_OK); var secKeys = new cipher_SecKeys (); secKeys.allocate (2); secKeys.setAt (0, s); secKeys.setAt (1, s); - err = skycoin.skycoin.SKY_coin_Transaction_SignInputs (tx, secKeys); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_UpdateHeader (tx); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_Verify (tx); - Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + err = SKY_coin_Transaction_SignInputs (tx, secKeys); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_UpdateHeader (tx); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_Verify (tx); + Assert.AreEqual (err, SKY_ERROR); // Duplicate outputs - skycoin.skycoin.makeTransaction (tx); + makeTransaction (tx); var pOutput = new coin__TransactionOutput (); - err = skycoin.skycoin.SKY_coin_Transaction_GetOutputAt (tx, 0, pOutput); + err = SKY_coin_Transaction_GetOutputAt (tx, 0, pOutput); pOutput.Address = new cipher__Address (); - err = skycoin.skycoin.SKY_coin_Transaction_ResetOutputs (tx, 0); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (tx, pOutput.Address, pOutput.Coins, pOutput.Hours); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (tx, pOutput.Address, pOutput.Coins, pOutput.Hours); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_UpdateHeader (tx); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_Verify (tx); - Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + err = SKY_coin_Transaction_ResetOutputs (tx, 0); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_PushOutput (tx, pOutput.Address, pOutput.Coins, pOutput.Hours); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_PushOutput (tx, pOutput.Address, pOutput.Coins, pOutput.Hours); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_UpdateHeader (tx); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_Verify (tx); + Assert.AreEqual (err, SKY_ERROR); // Output coins are 0 - skycoin.skycoin.makeTransaction (tx); - err = skycoin.skycoin.SKY_coin_Transaction_GetOutputAt (tx, 0, pOutput); + makeTransaction (tx); + err = SKY_coin_Transaction_GetOutputAt (tx, 0, pOutput); pOutput.Coins = 0; - err = skycoin.skycoin.SKY_coin_Transaction_ResetOutputs (tx, 0); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (tx, pOutput.Address, pOutput.Coins, pOutput.Hours); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_UpdateHeader (tx); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_Verify (tx); - Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + err = SKY_coin_Transaction_ResetOutputs (tx, 0); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_PushOutput (tx, pOutput.Address, pOutput.Coins, pOutput.Hours); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_UpdateHeader (tx); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_Verify (tx); + Assert.AreEqual (err, SKY_ERROR); // Output coin overflow - skycoin.skycoin.makeTransaction (tx); - err = skycoin.skycoin.SKY_coin_Transaction_GetOutputAt (tx, 0, pOutput); + makeTransaction (tx); + err = SKY_coin_Transaction_GetOutputAt (tx, 0, pOutput); pOutput.Coins = (ulong) (ulong.MaxValue - 3e6); - err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (tx, pOutput.Address, pOutput.Coins, pOutput.Hours); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_UpdateHeader (tx); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_Verify (tx); - Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + err = SKY_coin_Transaction_PushOutput (tx, pOutput.Address, pOutput.Coins, pOutput.Hours); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_UpdateHeader (tx); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_Verify (tx); + Assert.AreEqual (err, SKY_ERROR); // Output coins are not multiples of 1e6 (valid, decimal restriction is not enforced here) - skycoin.skycoin.makeTransaction (tx); - err = skycoin.skycoin.SKY_coin_Transaction_GetOutputAt (tx, 0, pOutput); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_ResetOutputs (tx, 0); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + makeTransaction (tx); + err = SKY_coin_Transaction_GetOutputAt (tx, 0, pOutput); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_ResetOutputs (tx, 0); + Assert.AreEqual (err, SKY_OK); pOutput.Coins += 10; - err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (tx, pOutput.Address, pOutput.Coins, pOutput.Hours); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_UpdateHeader (tx); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_ResetSignatures (tx, 0); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_Transaction_PushOutput (tx, pOutput.Address, pOutput.Coins, pOutput.Hours); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_UpdateHeader (tx); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_ResetSignatures (tx, 0); + Assert.AreEqual (err, SKY_OK); var p = new cipher_PubKey (); s = new cipher_SecKey (); - err = skycoin.skycoin.SKY_cipher_GenerateKeyPair (p, s); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_cipher_GenerateKeyPair (p, s); + Assert.AreEqual (err, SKY_OK); secKeys = new cipher_SecKeys (); secKeys.allocate (1); secKeys.setAt (0, s); - err = skycoin.skycoin.SKY_coin_Transaction_SignInputs (tx, secKeys); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_Transaction_SignInputs (tx, secKeys); + Assert.AreEqual (err, SKY_OK); Assert.IsTrue (pOutput.Coins % 1e6 != 0); - err = skycoin.skycoin.SKY_coin_Transaction_Verify (tx); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_Transaction_Verify (tx); + Assert.AreEqual (err, SKY_OK); // Valid - skycoin.skycoin.makeTransaction (tx); - err = skycoin.skycoin.SKY_coin_Transaction_GetOutputAt (tx, 0, pOutput); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_ResetOutputs (tx, 0); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (tx, pOutput.Address, (ulong) (10e6), pOutput.Hours); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (tx, pOutput.Address, (ulong) (1e6), pOutput.Hours); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_UpdateHeader (tx); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_Verify (tx); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + makeTransaction (tx); + err = SKY_coin_Transaction_GetOutputAt (tx, 0, pOutput); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_ResetOutputs (tx, 0); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_PushOutput (tx, pOutput.Address, (ulong) (10e6), pOutput.Hours); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_PushOutput (tx, pOutput.Address, (ulong) (1e6), pOutput.Hours); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_UpdateHeader (tx); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_Verify (tx); + Assert.AreEqual (err, SKY_OK); } [Test] @@ -174,81 +174,81 @@ public void TestTransactionVerifyInput () { // Valid var ux = new coin__UxOut (); var s = new cipher_SecKey (); - skycoin.skycoin.makeUxOutWithSecret (ux, s); - var tx = skycoin.skycoin.new_Transaction__Handlep (); - skycoin.skycoin.makeTransactionFromUxOut (ux, s, tx); + makeUxOutWithSecret (ux, s); + var tx = new_Transaction__Handlep (); + makeTransactionFromUxOut (ux, s, tx); var seckeys = new coin_UxOutArray (); seckeys.allocate (1); seckeys.setAt (0, ux); - var err = skycoin.skycoin.SKY_coin_Transaction_VerifyInput (tx, seckeys); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var err = SKY_coin_Transaction_VerifyInput (tx, seckeys); + Assert.AreEqual (err, SKY_OK); } [Test] public void TestTransactionPushInput () { - var tx = skycoin.skycoin.new_Transaction__Handlep (); - skycoin.skycoin.makeEmptyTransaction (tx); + var tx = new_Transaction__Handlep (); + makeEmptyTransaction (tx); var ux = new coin__UxOut (); - skycoin.skycoin.makeUxOut (ux); + makeUxOut (ux); var sha = new cipher_SHA256 (); - var err = skycoin.skycoin.SKY_coin_UxOut_Hash (ux, sha); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var r = skycoin.skycoin.new_GoUint16p (); - err = skycoin.skycoin.SKY_coin_Transaction_PushInput (tx, sha, r); - Assert.AreEqual (skycoin.skycoin.GoUint16p_value (r), 0); - var count = skycoin.skycoin.new_Gointp (); - err = skycoin.skycoin.SKY_coin_Transaction_GetInputsCount (tx, count); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.Gointp_value (count), 1); + var err = SKY_coin_UxOut_Hash (ux, sha); + Assert.AreEqual (err, SKY_OK); + var r = new_GoUint16p (); + err = SKY_coin_Transaction_PushInput (tx, sha, r); + Assert.AreEqual (GoUint16p_value (r), 0); + var count = new_Gointp (); + err = SKY_coin_Transaction_GetInputsCount (tx, count); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (Gointp_value (count), 1); var sha1 = new cipher_SHA256 (); - err = skycoin.skycoin.SKY_coin_Transaction_GetInputAt (tx, 0, sha1); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_Transaction_GetInputAt (tx, 0, sha1); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (sha.isEqual (sha1), 1); - err = skycoin.skycoin.SKY_coin_Transaction_ResetInputs (tx, 0); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_Transaction_ResetInputs (tx, 0); + Assert.AreEqual (err, SKY_OK); for (int i = 0; i < short.MaxValue; i++) { - r = skycoin.skycoin.new_GoUint16p (); - err = skycoin.skycoin.SKY_coin_Transaction_PushInput (tx, new cipher_SHA256 (), r); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + r = new_GoUint16p (); + err = SKY_coin_Transaction_PushInput (tx, new cipher_SHA256 (), r); + Assert.AreEqual (err, SKY_OK); } - skycoin.skycoin.makeUxOut (ux); - err = skycoin.skycoin.SKY_coin_UxOut_Hash (ux, sha); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + makeUxOut (ux); + err = SKY_coin_UxOut_Hash (ux, sha); + Assert.AreEqual (err, SKY_OK); } [Test] public void TestTransactionPushOutput () { var tx = transutils.makeEmptyTransaction (); var a = transutils.makeAddress (); - var err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (tx, a, 100, 150); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var count = skycoin.skycoin.new_Gointp (); - err = skycoin.skycoin.SKY_coin_Transaction_GetOutputsCount (tx, count); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.Gointp_value (count), 1); + var err = SKY_coin_Transaction_PushOutput (tx, a, 100, 150); + Assert.AreEqual (err, SKY_OK); + var count = new_Gointp (); + err = SKY_coin_Transaction_GetOutputsCount (tx, count); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (Gointp_value (count), 1); var pOut1 = new coin__TransactionOutput (); var pOut = new coin__TransactionOutput (); pOut1.Address = a; pOut1.Coins = 100; pOut1.Hours = 150; - err = skycoin.skycoin.SKY_coin_Transaction_GetOutputAt (tx, 0, pOut); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_Transaction_GetOutputAt (tx, 0, pOut); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (pOut.isEqual (pOut1), 1); for (int i = 1; i < 20; i++) { a = transutils.makeAddress (); - err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (tx, a, (ulong) (i * 100), (ulong) (i * 50)); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - count = skycoin.skycoin.new_Gointp (); - err = skycoin.skycoin.SKY_coin_Transaction_GetOutputsCount (tx, count); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.Gointp_value (count), (i + 1)); + err = SKY_coin_Transaction_PushOutput (tx, a, (ulong) (i * 100), (ulong) (i * 50)); + Assert.AreEqual (err, SKY_OK); + count = new_Gointp (); + err = SKY_coin_Transaction_GetOutputsCount (tx, count); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (Gointp_value (count), (i + 1)); pOut1 = new coin__TransactionOutput (); pOut = new coin__TransactionOutput (); pOut1.Address = a; pOut1.Coins = (ulong) (i * 100); pOut1.Hours = (ulong) (i * 50); - err = skycoin.skycoin.SKY_coin_Transaction_GetOutputAt (tx, i, pOut); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_Transaction_GetOutputAt (tx, i, pOut); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (pOut.isEqual (pOut1), 1); } } @@ -258,8 +258,8 @@ public void TestTransactionSignInputs () { var handle = transutils.makeEmptyTransaction (); // Panics if txns already signed var sig = new cipher_Sig (); - var err = skycoin.skycoin.SKY_coin_Transaction_PushSignature (handle, sig); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var err = SKY_coin_Transaction_PushSignature (handle, sig); + Assert.AreEqual (err, SKY_OK); var seckeys = new cipher_SecKeys (); seckeys.allocate (1); seckeys.setAt (0, new cipher_SecKey ()); @@ -269,102 +269,102 @@ public void TestTransactionSignInputs () { var s2 = new cipher_SecKey (); var ux = new coin__UxOut (); var ux2 = new coin__UxOut (); - skycoin.skycoin.makeUxOutWithSecret (ux, s); + makeUxOutWithSecret (ux, s); var h = new cipher_SHA256 (); - err = skycoin.skycoin.SKY_coin_UxOut_Hash (ux, h); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var r = skycoin.skycoin.new_GoUint16p (); - err = skycoin.skycoin.SKY_coin_Transaction_PushInput (handle, h, r); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - skycoin.skycoin.makeUxOutWithSecret (ux2, s2); - err = skycoin.skycoin.SKY_coin_UxOut_Hash (ux2, h); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_PushInput (handle, h, r); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (handle, transutils.makeAddress (), 40, 80); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var count = skycoin.skycoin.new_Gointp (); - err = skycoin.skycoin.SKY_coin_Transaction_GetSignaturesCount (handle, count); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.Gointp_value (count), 0); + err = SKY_coin_UxOut_Hash (ux, h); + Assert.AreEqual (err, SKY_OK); + var r = new_GoUint16p (); + err = SKY_coin_Transaction_PushInput (handle, h, r); + Assert.AreEqual (err, SKY_OK); + makeUxOutWithSecret (ux2, s2); + err = SKY_coin_UxOut_Hash (ux2, h); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_PushInput (handle, h, r); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_PushOutput (handle, transutils.makeAddress (), 40, 80); + Assert.AreEqual (err, SKY_OK); + var count = new_Gointp (); + err = SKY_coin_Transaction_GetSignaturesCount (handle, count); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (Gointp_value (count), 0); // Valid signing h = new cipher_SHA256 (); - skycoin.skycoin.SKY_coin_Transaction_HashInner (handle, h); + SKY_coin_Transaction_HashInner (handle, h); seckeys = new cipher_SecKeys (); seckeys.allocate (2); seckeys.setAt (0, s); seckeys.setAt (1, s2); - err = skycoin.skycoin.SKY_coin_Transaction_SignInputs (handle, seckeys); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_GetSignaturesCount (handle, count); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.Gointp_value (count), 2); + err = SKY_coin_Transaction_SignInputs (handle, seckeys); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_GetSignaturesCount (handle, count); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (Gointp_value (count), 2); var h2 = new cipher_SHA256 (); - err = skycoin.skycoin.SKY_coin_Transaction_HashInner (handle, h2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_Transaction_HashInner (handle, h2); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (h.isEqual (h2), 1); var p = new cipher_PubKey (); - err = skycoin.skycoin.SKY_cipher_PubKeyFromSecKey (s, p); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_cipher_PubKeyFromSecKey (s, p); + Assert.AreEqual (err, SKY_OK); var a = new cipher__Address (); var a2 = new cipher__Address (); - err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, a); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_PubKeyFromSecKey (s2, p); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_AddressFromPubKey (p, a2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_cipher_AddressFromPubKey (p, a); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_PubKeyFromSecKey (s2, p); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_AddressFromPubKey (p, a2); + Assert.AreEqual (err, SKY_OK); var sha1 = new cipher_SHA256 (); var sha2 = new cipher_SHA256 (); var txin0 = new cipher_SHA256 (); var txin1 = new cipher_SHA256 (); - err = skycoin.skycoin.SKY_coin_Transaction_GetInputAt (handle, 0, txin0); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_GetInputAt (handle, 1, txin1); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_AddSHA256 (h, txin0, sha1); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_cipher_AddSHA256 (h, txin1, sha2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_Transaction_GetInputAt (handle, 0, txin0); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_GetInputAt (handle, 1, txin1); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_AddSHA256 (h, txin0, sha1); + Assert.AreEqual (err, SKY_OK); + err = SKY_cipher_AddSHA256 (h, txin1, sha2); + Assert.AreEqual (err, SKY_OK); var txsig0 = new cipher_Sig (); var txsig1 = new cipher_Sig (); - err = skycoin.skycoin.SKY_coin_Transaction_GetSignatureAt (handle, 0, txsig0); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_GetSignatureAt (handle, 1, txsig1); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_Transaction_GetSignatureAt (handle, 0, txsig0); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_GetSignatureAt (handle, 1, txsig1); + Assert.AreEqual (err, SKY_OK); } [Test] public void TestTransactionHash () { - var handle = skycoin.skycoin.new_Transaction__Handlep (); - skycoin.skycoin.makeTransaction (handle); + var handle = new_Transaction__Handlep (); + makeTransaction (handle); var h = new cipher_SHA256 (); var h2 = new cipher_SHA256 (); - var err = skycoin.skycoin.SKY_coin_Transaction_Hash (handle, h); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var err = SKY_coin_Transaction_Hash (handle, h); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (h.isEqual (h2), 0); - err = skycoin.skycoin.SKY_coin_Transaction_HashInner (handle, h2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_Transaction_HashInner (handle, h2); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (h.isEqual (h2), 0); } [Test] public void TestTransactionUpdateHeader () { - var handle = skycoin.skycoin.new_Transaction__Handlep (); - var tx = skycoin.skycoin.makeTransaction (handle); + var handle = new_Transaction__Handlep (); + var tx = makeTransaction (handle); var h = new cipher_SHA256 (); var h1 = new cipher_SHA256 (); var h2 = new cipher_SHA256 (); - var err = skycoin.skycoin.SKY_coin_Transaction_HashInner (handle, h); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var err = SKY_coin_Transaction_HashInner (handle, h); + Assert.AreEqual (err, SKY_OK); tx.setInnerHash (new cipher_SHA256 ()); - err = skycoin.skycoin.SKY_coin_Transaction_UpdateHeader (handle); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_Transaction_UpdateHeader (handle); + Assert.AreEqual (err, SKY_OK); var arg = new cipher_SHA256 (); arg = tx.GetInnerHash (); h1.assignFrom (arg); - err = skycoin.skycoin.SKY_coin_Transaction_HashInner (handle, h2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_Transaction_HashInner (handle, h2); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (h1.isEqual (new cipher_SHA256 ()), 0); Assert.AreEqual (h1.isEqual (h), 1); Assert.AreEqual (h1.isEqual (h2), 1); @@ -372,238 +372,238 @@ public void TestTransactionUpdateHeader () { [Test] public void TestTransactionHashInner () { - var handle = skycoin.skycoin.new_Transaction__Handlep (); - skycoin.skycoin.makeTransaction (handle); + var handle = new_Transaction__Handlep (); + makeTransaction (handle); var h = new cipher_SHA256 (); - var err = skycoin.skycoin.SKY_coin_Transaction_HashInner (handle, h); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var err = SKY_coin_Transaction_HashInner (handle, h); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (h.isEqual (new cipher_SHA256 ()), 0); // If tx.In is changed, hash should change var handle2 = transutils.copyTransaction (handle); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + Assert.AreEqual (err, SKY_OK); var ux = new coin__UxOut (); - skycoin.skycoin.makeUxOut (ux); + makeUxOut (ux); h = new cipher_SHA256 (); var h1 = new cipher_SHA256 (); - err = skycoin.skycoin.SKY_coin_UxOut_Hash (ux, h); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_SetInputAt (handle2, 0, h); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_UxOut_Hash (ux, h1); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_UxOut_Hash (ux, h); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_SetInputAt (handle2, 0, h); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_UxOut_Hash (ux, h1); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (h.isEqual (h1), 1); - err = skycoin.skycoin.SKY_coin_Transaction_HashInner (handle, h); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_HashInner (handle2, h1); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_Transaction_HashInner (handle, h); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_HashInner (handle2, h1); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (h.isEqual (h1), 0); // If tx.Out is changed, hash should change handle2 = transutils.copyTransaction (handle); var a = transutils.makeAddress (); var pOut = new coin__TransactionOutput (); - err = skycoin.skycoin.SKY_coin_Transaction_GetOutputAt (handle2, 0, pOut); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_Transaction_GetOutputAt (handle2, 0, pOut); + Assert.AreEqual (err, SKY_OK); pOut.Address = a; - err = skycoin.skycoin.SKY_coin_Transaction_SetOutputAt (handle2, 0, pOut); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_Transaction_SetOutputAt (handle2, 0, pOut); + Assert.AreEqual (err, SKY_OK); var sha1 = new cipher_SHA256 (); var sha2 = new cipher_SHA256 (); - err = skycoin.skycoin.SKY_coin_Transaction_HashInner (handle, sha1); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_HashInner (handle2, sha2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_Transaction_HashInner (handle, sha1); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_HashInner (handle2, sha2); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (sha1.isEqual (sha2), 0); // If tx.Head is changed, hash should not change handle2 = transutils.copyTransaction (handle); var sig = new cipher_Sig (); - err = skycoin.skycoin.SKY_coin_Transaction_PushSignature (handle, sig); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_Transaction_PushSignature (handle, sig); + Assert.AreEqual (err, SKY_OK); sha1 = new cipher_SHA256 (); sha2 = new cipher_SHA256 (); - err = skycoin.skycoin.SKY_coin_Transaction_HashInner (handle, sha1); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_HashInner (handle2, sha2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_Transaction_HashInner (handle, sha1); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_HashInner (handle2, sha2); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (sha1.isEqual (sha2), 1); } [Test] public void TestTransactionSerialization () { - var handle = skycoin.skycoin.new_Transaction__Handlep (); - var tx = skycoin.skycoin.makeTransaction (handle); + var handle = new_Transaction__Handlep (); + var tx = makeTransaction (handle); var b = new GoSlice (); - var err = skycoin.skycoin.SKY_coin_Transaction_Serialize (handle, b); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var handle2 = skycoin.skycoin.new_Transaction__Handlep (); - err = skycoin.skycoin.SKY_coin_TransactionDeserialize (b, handle2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var err = SKY_coin_Transaction_Serialize (handle, b); + Assert.AreEqual (err, SKY_OK); + var handle2 = new_Transaction__Handlep (); + err = SKY_coin_TransactionDeserialize (b, handle2); + Assert.AreEqual (err, SKY_OK); var tx2 = new coin__Transaction (); - err = skycoin.skycoin.SKY_coin_GetTransactionObject (handle2, tx2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_GetTransactionObject (handle2, tx2); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (tx.isEqual (tx2), 0); } [Test] public void TestTransactionOutputHours () { var handle = transutils.makeEmptyTransaction (); - var err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (handle, transutils.makeAddress (), (ulong) 1e6, 100); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (handle, transutils.makeAddress (), (ulong) 1e6, 200); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (handle, transutils.makeAddress (), (ulong) 1e6, 500); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (handle, transutils.makeAddress (), (ulong) 1e6, 0); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var hours = skycoin.skycoin.new_GoUint64p (); - err = skycoin.skycoin.SKY_coin_Transaction_OutputHours (handle, hours); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.GoUint64p_value (hours), 800); - err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (handle, transutils.makeAddress (), (ulong) 1e6, ulong.MaxValue - 700); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_OutputHours (handle, hours); - Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + var err = SKY_coin_Transaction_PushOutput (handle, transutils.makeAddress (), (ulong) 1e6, 100); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_PushOutput (handle, transutils.makeAddress (), (ulong) 1e6, 200); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_PushOutput (handle, transutils.makeAddress (), (ulong) 1e6, 500); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_PushOutput (handle, transutils.makeAddress (), (ulong) 1e6, 0); + Assert.AreEqual (err, SKY_OK); + var hours = new_GoUint64p (); + err = SKY_coin_Transaction_OutputHours (handle, hours); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (GoUint64p_value (hours), 800); + err = SKY_coin_Transaction_PushOutput (handle, transutils.makeAddress (), (ulong) 1e6, ulong.MaxValue - 700); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_OutputHours (handle, hours); + Assert.AreEqual (err, SKY_ERROR); } [Test] public void TestTransactionsSize () { - var handle = skycoin.skycoin.new_Transactions__Handlep (); - var err = (uint) skycoin.skycoin.makeTransactions (10, handle); + var handle = new_Transactions__Handlep (); + var err = (uint) makeTransactions (10, handle); var size = (long) 0; for (int i = 0; i < 10; i++) { var tx = transutils.makeEmptyTransaction (); - err = skycoin.skycoin.SKY_coin_Transactions_GetAt (handle, i, tx); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_Transactions_GetAt (handle, i, tx); + Assert.AreEqual (err, SKY_OK); var b = new GoSlice (); - err = skycoin.skycoin.SKY_coin_Transaction_Serialize (tx, b); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_Transaction_Serialize (tx, b); + Assert.AreEqual (err, SKY_OK); size += b.len; } Assert.AreNotEqual (size, 0); - var sizetx = skycoin.skycoin.new_GoUint32Ptr (); - err = skycoin.skycoin.SKY_coin_Transactions_Size (handle, sizetx); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.GoUint32Ptr_value (sizetx), size); + var sizetx = new_GoUint32Ptr (); + err = SKY_coin_Transactions_Size (handle, sizetx); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (GoUint32Ptr_value (sizetx), size); } [Test] public void TestTransactionsHashes () { - var handle = skycoin.skycoin.new_Transactions__Handlep (); - skycoin.skycoin.makeTransactions (4, handle); + var handle = new_Transactions__Handlep (); + makeTransactions (4, handle); var hashes = new cipher_SHA256s (); - var err = skycoin.skycoin.SKY_coin_Transactions_Hashes (handle, hashes); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var err = SKY_coin_Transactions_Hashes (handle, hashes); + Assert.AreEqual (err, SKY_OK); var len_hashes = hashes.count; Assert.AreEqual (len_hashes, 4); for (int i = 0; i < len_hashes; i++) { - var tx = skycoin.skycoin.new_Transaction__Handlep (); - err = skycoin.skycoin.SKY_coin_Transactions_GetAt (handle, i, tx); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var tx = new_Transaction__Handlep (); + err = SKY_coin_Transactions_GetAt (handle, i, tx); + Assert.AreEqual (err, SKY_OK); var h = new cipher_SHA256 (); - err = skycoin.skycoin.SKY_coin_Transaction_Hash (tx, h); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_Transaction_Hash (tx, h); + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (h.isEqual (hashes.getAt (i)), 1); } } [Test] public void TestTransactionsTruncateBytesTo () { - var handles = skycoin.skycoin.new_Transactions__Handlep (); - var err = (uint) skycoin.skycoin.makeTransactions (10, handles); + var handles = new_Transactions__Handlep (); + var err = (uint) makeTransactions (10, handles); var trunc = (uint) 0; - var count = skycoin.skycoin.new_GoUint32Ptr (); - var len_tnxs = skycoin.skycoin.new_Gointp (); - err = skycoin.skycoin.SKY_coin_Transactions_Length (handles, len_tnxs); - long len_tnxs_value = skycoin.skycoin.Gointp_value (len_tnxs); + var count = new_GoUint32Ptr (); + var len_tnxs = new_Gointp (); + err = SKY_coin_Transactions_Length (handles, len_tnxs); + long len_tnxs_value = Gointp_value (len_tnxs); for (long i = 0; i < (len_tnxs_value / 2); i++) { - count = skycoin.skycoin.new_GoUint32Ptr (); - var handle = skycoin.skycoin.new_Transaction__Handlep (); - err = skycoin.skycoin.SKY_coin_Transactions_GetAt (handles, (long) i, handle); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_Size (handle, count); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - trunc += skycoin.skycoin.GoUint32Ptr_value (count); + count = new_GoUint32Ptr (); + var handle = new_Transaction__Handlep (); + err = SKY_coin_Transactions_GetAt (handles, (long) i, handle); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_Size (handle, count); + Assert.AreEqual (err, SKY_OK); + trunc += GoUint32Ptr_value (count); } // Trucating halfway - var tnxs2 = skycoin.skycoin.new_Transactions__Handlep (); - err = skycoin.skycoin.SKY_coin_Transactions_TruncateBytesTo (handles, trunc, tnxs2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var len_tnxs2 = skycoin.skycoin.new_Gointp (); + var tnxs2 = new_Transactions__Handlep (); + err = SKY_coin_Transactions_TruncateBytesTo (handles, trunc, tnxs2); + Assert.AreEqual (err, SKY_OK); + var len_tnxs2 = new_Gointp (); - err = skycoin.skycoin.SKY_coin_Transactions_Length (tnxs2, len_tnxs2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_Transactions_Length (tnxs2, len_tnxs2); + Assert.AreEqual (err, SKY_OK); - Assert.AreEqual (skycoin.skycoin.Gointp_value (len_tnxs2), len_tnxs_value / 2); - count = skycoin.skycoin.new_GoUint32Ptr (); - err = skycoin.skycoin.SKY_coin_Transactions_Size (tnxs2, count); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.GoUint32Ptr_value (count), trunc); + Assert.AreEqual (Gointp_value (len_tnxs2), len_tnxs_value / 2); + count = new_GoUint32Ptr (); + err = SKY_coin_Transactions_Size (tnxs2, count); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (GoUint32Ptr_value (count), trunc); // Stepping into next boundary has same cutoff, must exceed trunc += 1; - err = skycoin.skycoin.SKY_coin_Transactions_TruncateBytesTo (handles, trunc, tnxs2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var len = skycoin.skycoin.new_Gointp (); - err = skycoin.skycoin.SKY_coin_Transactions_Length (tnxs2, len); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.Gointp_value (len), len_tnxs_value / 2); - err = skycoin.skycoin.SKY_coin_Transactions_Size (tnxs2, count); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.GoUint32Ptr_value (count), trunc - 1); + err = SKY_coin_Transactions_TruncateBytesTo (handles, trunc, tnxs2); + Assert.AreEqual (err, SKY_OK); + var len = new_Gointp (); + err = SKY_coin_Transactions_Length (tnxs2, len); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (Gointp_value (len), len_tnxs_value / 2); + err = SKY_coin_Transactions_Size (tnxs2, count); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (GoUint32Ptr_value (count), trunc - 1); // Moving to 1 before next level var tnxs_5 = transutils.makeEmptyTransaction (); - err = skycoin.skycoin.SKY_coin_Transactions_GetAt (handles, 5, tnxs_5); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - count = skycoin.skycoin.new_GoUint32Ptr (); - err = skycoin.skycoin.SKY_coin_Transaction_Size (tnxs_5, count); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - trunc += (skycoin.skycoin.GoUint32Ptr_value (count) - 2); - err = skycoin.skycoin.SKY_coin_Transactions_TruncateBytesTo (handles, trunc, tnxs2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transactions_Length (tnxs2, len); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.Gointp_value (len), 5); - err = skycoin.skycoin.SKY_coin_Transactions_Size (tnxs2, count); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - var count_tnxs5 = skycoin.skycoin.new_GoUint32Ptr (); - err = skycoin.skycoin.SKY_coin_Transaction_Size (tnxs_5, count_tnxs5); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual ((trunc - skycoin.skycoin.GoUint32Ptr_value (count_tnxs5) + 1), skycoin.skycoin.GoUint32Ptr_value (count)); + err = SKY_coin_Transactions_GetAt (handles, 5, tnxs_5); + Assert.AreEqual (err, SKY_OK); + count = new_GoUint32Ptr (); + err = SKY_coin_Transaction_Size (tnxs_5, count); + Assert.AreEqual (err, SKY_OK); + trunc += (GoUint32Ptr_value (count) - 2); + err = SKY_coin_Transactions_TruncateBytesTo (handles, trunc, tnxs2); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transactions_Length (tnxs2, len); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (Gointp_value (len), 5); + err = SKY_coin_Transactions_Size (tnxs2, count); + Assert.AreEqual (err, SKY_OK); + var count_tnxs5 = new_GoUint32Ptr (); + err = SKY_coin_Transaction_Size (tnxs_5, count_tnxs5); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual ((trunc - GoUint32Ptr_value (count_tnxs5) + 1), GoUint32Ptr_value (count)); // Moving to next level trunc += 1; - err = skycoin.skycoin.SKY_coin_Transactions_TruncateBytesTo (handles, trunc, tnxs2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transactions_Length (tnxs2, len); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.Gointp_value (len), 6); - err = skycoin.skycoin.SKY_coin_Transactions_Size (tnxs2, count); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.GoUint32Ptr_value (count), trunc); + err = SKY_coin_Transactions_TruncateBytesTo (handles, trunc, tnxs2); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transactions_Length (tnxs2, len); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (Gointp_value (len), 6); + err = SKY_coin_Transactions_Size (tnxs2, count); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (GoUint32Ptr_value (count), trunc); // Truncating to full available amt - var trunc1 = skycoin.skycoin.new_GoUint32Ptr (); - err = skycoin.skycoin.SKY_coin_Transactions_Size (handles, trunc1); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transactions_TruncateBytesTo (handles, skycoin.skycoin.GoUint32Ptr_value (trunc1), tnxs2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transactions_Size (tnxs2, count); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.GoUint32Ptr_value (count), skycoin.skycoin.GoUint32Ptr_value (trunc1)); + var trunc1 = new_GoUint32Ptr (); + err = SKY_coin_Transactions_Size (handles, trunc1); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transactions_TruncateBytesTo (handles, GoUint32Ptr_value (trunc1), tnxs2); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transactions_Size (tnxs2, count); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (GoUint32Ptr_value (count), GoUint32Ptr_value (trunc1)); // Truncating to 0 trunc = 0; - err = skycoin.skycoin.SKY_coin_Transactions_TruncateBytesTo (handles, 0, tnxs2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transactions_Length (tnxs2, len); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.Gointp_value (len), 0); - err = skycoin.skycoin.SKY_coin_Transactions_Size (tnxs2, count); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.GoUint32Ptr_value (count), trunc); + err = SKY_coin_Transactions_TruncateBytesTo (handles, 0, tnxs2); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transactions_Length (tnxs2, len); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (Gointp_value (len), 0); + err = SKY_coin_Transactions_Size (tnxs2, count); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (GoUint32Ptr_value (count), trunc); } struct ux { @@ -624,7 +624,7 @@ public void FullCases () { var c = new StrTest (); c.name = "Input coins overflow"; - c.err = skycoin.skycoin.SKY_ERROR; + c.err = SKY_ERROR; c.inUxs = new ux[2]; c.inUxs[0].coins = (ulong) (ulong.MaxValue - 1e6 + 1); c.inUxs[0].hours = 10; @@ -636,7 +636,7 @@ public void FullCases () { c = new StrTest (); c.name = "Output coins overflow"; - c.err = skycoin.skycoin.SKY_ERROR; + c.err = SKY_ERROR; c.inUxs = new ux[1]; c.inUxs[0].coins = (ulong) 10e6; c.inUxs[0].hours = 10; @@ -650,7 +650,7 @@ public void FullCases () { c = new StrTest (); c.name = "Insufficient coins"; - c.err = skycoin.skycoin.SKY_ERROR; + c.err = SKY_ERROR; // c.headTime = 0; c.inUxs = new ux[2]; c.inUxs[0].coins = (ulong) 10e6; @@ -666,7 +666,7 @@ public void FullCases () { c = new StrTest (); c.name = "Destroyed coins"; - c.err = skycoin.skycoin.SKY_ERROR; + c.err = SKY_ERROR; c.inUxs = new ux[2]; c.inUxs[0].coins = (ulong) 10e6; c.inUxs[0].hours = 10; @@ -695,7 +695,7 @@ public void FullCases () { c.outUxs[2].coins = (ulong) 5e6; c.outUxs[2].hours = 0; c.headTime = 0; - c.err = skycoin.skycoin.SKY_OK; + c.err = SKY_OK; cases[4] = c; } @@ -726,7 +726,7 @@ public void TestVerifyTransactionCoinsSpending () { } Assert.AreEqual (tc.inUxs.Length, uxIn.count); Assert.AreEqual (tc.outUxs.Length, uxOut.count); - var err = skycoin.skycoin.SKY_coin_VerifyTransactionCoinsSpending (uxIn, uxOut); + var err = SKY_coin_VerifyTransactionCoinsSpending (uxIn, uxOut); Assert.AreEqual (err, tc.err, "Iteration " + i.ToString () + tc.name); } } @@ -735,7 +735,7 @@ public void FullCases2 () { cases = new StrTest[7]; var c = new StrTest (); c.name = "Input coins overflow"; - c.err = skycoin.skycoin.SKY_ERROR; + c.err = SKY_ERROR; c.inUxs = new ux[2]; c.inUxs[0].hours = (ulong) (ulong.MaxValue - 1e6 + 1); c.inUxs[0].coins = (ulong) 3e6; @@ -757,12 +757,12 @@ public void FullCases2 () { c.outUxs[1].coins = (ulong) 10e6; c.outUxs[1].hours = 11; c.headTime = 0; - c.err = skycoin.skycoin.SKY_ERROR; + c.err = SKY_ERROR; cases[1] = c; c = new StrTest (); c.name = "coin hours time calculation overflow"; - c.err = skycoin.skycoin.SKY_ERROR; + c.err = SKY_ERROR; c.inUxs = new ux[2]; c.inUxs[0].coins = (ulong) 10e6; c.inUxs[0].hours = 10; @@ -780,7 +780,7 @@ public void FullCases2 () { c = new StrTest (); c.name = "Invalid (coin hours overflow when adding earned hours, which is treated as 0, and now enough coin hours)"; - c.err = skycoin.skycoin.SKY_ERROR; + c.err = SKY_ERROR; c.inUxs = new ux[1]; c.inUxs[0].coins = (ulong) 10e6; c.inUxs[0].hours = ulong.MaxValue; @@ -861,44 +861,44 @@ public void TestVerifyTransactionHoursSpending () { } Assert.AreEqual (tc.inUxs.Length, uxIn.count); Assert.AreEqual (tc.outUxs.Length, uxOut.count); - var err = skycoin.skycoin.SKY_coin_VerifyTransactionHoursSpending (tc.headTime, uxIn, uxOut); + var err = SKY_coin_VerifyTransactionHoursSpending (tc.headTime, uxIn, uxOut); Assert.AreEqual (err, tc.err); } } [Test] public void TestTransactionsFees () { - var txns = skycoin.skycoin.new_Transactions__Handlep (); - skycoin.skycoin.SKY_coin_Create_Transactions (txns); + var txns = new_Transactions__Handlep (); + SKY_coin_Create_Transactions (txns); // Nil txns - var fee = skycoin.skycoin.new_GoUint64p (); - var err = skycoin.skycoin.SKY_coin_Transactions_Fees (txns, transutils.calc, fee); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.GoUint64p_value (fee), 0); - - var txn = skycoin.skycoin.new_Transaction__Handlep (); - skycoin.skycoin.SKY_coin_Create_Transaction (txn); - err = skycoin.skycoin.SKY_coin_Transactions_Add (txns, txn); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transactions_Add (txns, txn); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var fee = new_GoUint64p (); + var err = SKY_coin_Transactions_Fees (txns, transutils.calc, fee); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (GoUint64p_value (fee), 0); + + var txn = new_Transaction__Handlep (); + SKY_coin_Create_Transaction (txn); + err = SKY_coin_Transactions_Add (txns, txn); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transactions_Add (txns, txn); + Assert.AreEqual (err, SKY_OK); // 2 transactions, calc() always returns 1 - fee = skycoin.skycoin.new_GoUint64p (); - err = skycoin.skycoin.SKY_coin_Transactions_Fees (txns, transutils.calc, fee); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.GoUint64p_value (fee), 2); + fee = new_GoUint64p (); + err = SKY_coin_Transactions_Fees (txns, transutils.calc, fee); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (GoUint64p_value (fee), 2); // calc error - fee = skycoin.skycoin.new_GoUint64p (); - err = skycoin.skycoin.SKY_coin_Transactions_Fees (txns, transutils.badCalc, fee); - Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + fee = new_GoUint64p (); + err = SKY_coin_Transactions_Fees (txns, transutils.badCalc, fee); + Assert.AreEqual (err, SKY_ERROR); // summing of calculated fees overflows - fee = skycoin.skycoin.new_GoUint64p (); - err = skycoin.skycoin.SKY_coin_Transactions_Fees (txns, transutils.overflow, fee); - Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + fee = new_GoUint64p (); + err = SKY_coin_Transactions_Fees (txns, transutils.overflow, fee); + Assert.AreEqual (err, SKY_ERROR); } } diff --git a/LibskycoinNetTest/check_util_droplet.cs b/LibskycoinNetTest/check_util_droplet.cs index ea37596a..8aa49963 100644 --- a/LibskycoinNetTest/check_util_droplet.cs +++ b/LibskycoinNetTest/check_util_droplet.cs @@ -4,7 +4,7 @@ using utils; namespace LibskycoinNetTest { [TestFixture ()] - public class check_util_droplet { + public class check_util_droplet : skycoin.skycoin { utils.transutils transutils = new utils.transutils (); @@ -45,7 +45,7 @@ public void FullTestStr () { cas = new TestStr (); cas.s = "0.0000001"; cas.n = 0; - cas.e = skycoin.skycoin.SKY_ErrTooManyDecimals; + cas.e = SKY_ErrTooManyDecimals; cases[5] = cas; cas = new TestStr (); @@ -70,7 +70,7 @@ public void FullTestStr () { cas = new TestStr (); cas.s = "-1"; - cas.e = skycoin.skycoin.SKY_ErrNegativeValue; + cas.e = SKY_ErrNegativeValue; cases[10] = cas; cas = new TestStr (); @@ -90,17 +90,17 @@ public void FullTestStr () { cas = new TestStr (); cas.s = "100SKY"; - cas.e = skycoin.skycoin.SKY_ERROR; + cas.e = SKY_ERROR; cases[14] = cas; cas = new TestStr (); cas.s = ""; - cas.e = skycoin.skycoin.SKY_ERROR; + cas.e = SKY_ERROR; cases[15] = cas; cas = new TestStr (); cas.s = "999999999999999999999999999999999999999999"; - cas.e = skycoin.skycoin.SKY_ErrTooLarge; + cas.e = SKY_ErrTooLarge; cases[16] = cas; cas = new TestStr (); @@ -110,27 +110,27 @@ public void FullTestStr () { cas = new TestStr (); cas.s = "-9223372036854.775807"; - cas.e = skycoin.skycoin.SKY_ErrNegativeValue; + cas.e = SKY_ErrNegativeValue; cases[18] = cas; cas = new TestStr (); cas.s = "9223372036854775808"; - cas.e = skycoin.skycoin.SKY_ErrTooLarge; + cas.e = SKY_ErrTooLarge; cases[19] = cas; cas = new TestStr (); cas.s = "9223372036854775807.000001"; - cas.e = skycoin.skycoin.SKY_ErrTooLarge; + cas.e = SKY_ErrTooLarge; cases[20] = cas; cas = new TestStr (); cas.s = "9223372036854775807"; - cas.e = skycoin.skycoin.SKY_ErrTooLarge; + cas.e = SKY_ErrTooLarge; cases[21] = cas; cas = new TestStr (); cas.s = "9223372036854775806.000001"; - cas.e = skycoin.skycoin.SKY_ErrTooLarge; + cas.e = SKY_ErrTooLarge; cases[22] = cas; cas = new TestStr (); @@ -165,7 +165,7 @@ public void FullTestStr () { cas = new TestStr (); cas.s = "1.0000001"; - cas.e = skycoin.skycoin.SKY_ErrTooManyDecimals; + cas.e = SKY_ErrTooManyDecimals; cases[29] = cas; } @@ -174,11 +174,11 @@ public void TestFromString () { FullTestStr (); for (int i = 0; i < cases.Length; i++) { var tc = cases[i]; - var n = skycoin.skycoin.new_GoUint64p (); - var err = skycoin.skycoin.SKY_droplet_FromString (tc.s, n); - var n_v = skycoin.skycoin.GoUint64p_value (n); - if (tc.e == skycoin.skycoin.SKY_OK) { - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var n = new_GoUint64p (); + var err = SKY_droplet_FromString (tc.s, n); + var n_v = GoUint64p_value (n); + if (tc.e == SKY_OK) { + Assert.AreEqual (err, SKY_OK); Assert.AreEqual (tc.n, n_v, "result " + n_v.ToString ()); } else { @@ -232,7 +232,7 @@ public void FullTestStr1 () { cas = new TestStr (); cas.n = 9223372036854775808; - cas.e = skycoin.skycoin.SKY_ErrTooLarge; + cas.e = SKY_ErrTooLarge; cases[8] = cas; } @@ -242,9 +242,9 @@ public void TestToString () { for (int i = 0; i < cases.Length; i++) { var tc = cases[i]; var s = new _GoString_ (); - var err = skycoin.skycoin.SKY_droplet_ToString (tc.n, s); - if (tc.e == skycoin.skycoin.SKY_OK) { - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + var err = SKY_droplet_ToString (tc.n, s); + if (tc.e == SKY_OK) { + Assert.AreEqual (err, SKY_OK); Assert.IsTrue (tc.s == s.p, i.ToString ()); } else { Assert.AreEqual (tc.e, err); diff --git a/LibskycoinNetTest/check_util_fee.cs b/LibskycoinNetTest/check_util_fee.cs index 841f12d6..08ca98b5 100644 --- a/LibskycoinNetTest/check_util_fee.cs +++ b/LibskycoinNetTest/check_util_fee.cs @@ -4,7 +4,7 @@ using utils; namespace LibskycoinNetTest { [TestFixture ()] - public class check_util_fee { + public class check_util_fee : skycoin.skycoin{ utils.transutils transutils = new utils.transutils (); struct verifyTxFeeTestCase { @@ -19,91 +19,91 @@ public void FullburnFactor2verifyTxFeeTestCase () { verifyTxFeeTestCase cases = new verifyTxFeeTestCase (); cases.inputHours = 0; cases.ouputHours = 0; - cases.err = skycoin.skycoin.SKY_ErrTxnNoFee; + cases.err = SKY_ErrTxnNoFee; burnFactor2verifyTxFeeTestCase[0] = cases; cases = new verifyTxFeeTestCase (); cases.inputHours = 1; cases.ouputHours = 0; - cases.err = skycoin.skycoin.SKY_OK; + cases.err = SKY_OK; burnFactor2verifyTxFeeTestCase[1] = cases; cases = new verifyTxFeeTestCase (); cases.inputHours = 1; cases.ouputHours = 1; - cases.err = skycoin.skycoin.SKY_ErrTxnNoFee; + cases.err = SKY_ErrTxnNoFee; burnFactor2verifyTxFeeTestCase[2] = cases; cases = new verifyTxFeeTestCase (); cases.inputHours = 2; cases.ouputHours = 0; - cases.err = skycoin.skycoin.SKY_OK; + cases.err = SKY_OK; burnFactor2verifyTxFeeTestCase[3] = cases; cases = new verifyTxFeeTestCase (); cases.inputHours = 2; cases.ouputHours = 1; - cases.err = skycoin.skycoin.SKY_OK; + cases.err = SKY_OK; burnFactor2verifyTxFeeTestCase[4] = cases; cases = new verifyTxFeeTestCase (); cases.inputHours = 2; cases.ouputHours = 2; - cases.err = skycoin.skycoin.SKY_ErrTxnNoFee; + cases.err = SKY_ErrTxnNoFee; burnFactor2verifyTxFeeTestCase[5] = cases; cases = new verifyTxFeeTestCase (); cases.inputHours = 3; cases.ouputHours = 0; - cases.err = skycoin.skycoin.SKY_OK; + cases.err = SKY_OK; burnFactor2verifyTxFeeTestCase[6] = cases; cases = new verifyTxFeeTestCase (); cases.inputHours = 3; cases.ouputHours = 1; - cases.err = skycoin.skycoin.SKY_OK; + cases.err = SKY_OK; burnFactor2verifyTxFeeTestCase[7] = cases; cases = new verifyTxFeeTestCase (); cases.inputHours = 3; cases.ouputHours = 2; - cases.err = skycoin.skycoin.SKY_ErrTxnInsufficientFee; + cases.err = SKY_ErrTxnInsufficientFee; burnFactor2verifyTxFeeTestCase[8] = cases; cases = new verifyTxFeeTestCase (); cases.inputHours = 3; cases.ouputHours = 3; - cases.err = skycoin.skycoin.SKY_ErrTxnNoFee; + cases.err = SKY_ErrTxnNoFee; burnFactor2verifyTxFeeTestCase[9] = cases; cases = new verifyTxFeeTestCase (); cases.inputHours = 4; cases.ouputHours = 0; - cases.err = skycoin.skycoin.SKY_OK; + cases.err = SKY_OK; burnFactor2verifyTxFeeTestCase[10] = cases; cases = new verifyTxFeeTestCase (); cases.inputHours = 4; cases.ouputHours = 1; - cases.err = skycoin.skycoin.SKY_OK; + cases.err = SKY_OK; burnFactor2verifyTxFeeTestCase[11] = cases; cases = new verifyTxFeeTestCase (); cases.inputHours = 4; cases.ouputHours = 2; - cases.err = skycoin.skycoin.SKY_OK; + cases.err = SKY_OK; burnFactor2verifyTxFeeTestCase[12] = cases; cases = new verifyTxFeeTestCase (); cases.inputHours = 4; cases.ouputHours = 3; - cases.err = skycoin.skycoin.SKY_ErrTxnInsufficientFee; + cases.err = SKY_ErrTxnInsufficientFee; burnFactor2verifyTxFeeTestCase[13] = cases; cases = new verifyTxFeeTestCase (); cases.inputHours = 4; cases.ouputHours = 4; - cases.err = skycoin.skycoin.SKY_ErrTxnNoFee; + cases.err = SKY_ErrTxnNoFee; burnFactor2verifyTxFeeTestCase[14] = cases; } @@ -111,66 +111,66 @@ public void FullburnFactor2verifyTxFeeTestCase () { public void TestVerifyTransactionFee () { FullburnFactor2verifyTxFeeTestCase (); var empty = transutils.makeEmptyTransaction (); - var hours = skycoin.skycoin.new_GoUint64p (); - var err = skycoin.skycoin.SKY_coin_Transaction_OutputHours (empty, hours); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.GoUint64p_value (hours), 0); + var hours = new_GoUint64p (); + var err = SKY_coin_Transaction_OutputHours (empty, hours); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (GoUint64p_value (hours), 0); // A txn with no outputs hours and no coinhours burn fee is valid - err = skycoin.skycoin.SKY_fee_VerifyTransactionFee (empty, 0,2); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrTxnNoFee); + err = SKY_fee_VerifyTransactionFee (empty, 0,2); + Assert.AreEqual (err, SKY_ErrTxnNoFee); // A txn with no outputs hours but with a coinhours burn fee is valid - err = skycoin.skycoin.SKY_fee_VerifyTransactionFee (empty, 100,2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_fee_VerifyTransactionFee (empty, 100,2); + Assert.AreEqual (err, SKY_OK); var txn = transutils.makeEmptyTransaction (); var addr = new cipher__Address (); addr = transutils.makeAddress (); Assert.AreEqual (err, 0); - err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (txn, addr, 0, 1000000); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (txn, addr, 0, 3000000); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_OutputHours (txn, hours); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (skycoin.skycoin.GoUint64p_value (hours), 4000000); + err = SKY_coin_Transaction_PushOutput (txn, addr, 0, 1000000); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_PushOutput (txn, addr, 0, 3000000); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_OutputHours (txn, hours); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (GoUint64p_value (hours), 4000000); // A txn with insufficient net coinhours burn fee is invalid - err = skycoin.skycoin.SKY_fee_VerifyTransactionFee (txn, 0,2); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrTxnNoFee); - err = skycoin.skycoin.SKY_fee_VerifyTransactionFee (txn, 1,2); - Assert.AreEqual (err, skycoin.skycoin.SKY_ErrTxnInsufficientFee); + err = SKY_fee_VerifyTransactionFee (txn, 0,2); + Assert.AreEqual (err, SKY_ErrTxnNoFee); + err = SKY_fee_VerifyTransactionFee (txn, 1,2); + Assert.AreEqual (err, SKY_ErrTxnInsufficientFee); // A txn with sufficient net coinhours burn fee is valid - err = skycoin.skycoin.SKY_coin_Transaction_OutputHours (txn, hours); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_fee_VerifyTransactionFee (txn, skycoin.skycoin.GoUint64p_value (hours),2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_coin_Transaction_OutputHours (txn, hours); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - err = skycoin.skycoin.SKY_fee_VerifyTransactionFee (txn, ((ulong) (skycoin.skycoin.GoUint64p_value (hours) * 10)),2); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_Transaction_OutputHours (txn, hours); + Assert.AreEqual (err, SKY_OK); + err = SKY_fee_VerifyTransactionFee (txn, GoUint64p_value (hours),2); + Assert.AreEqual (err, SKY_OK); + err = SKY_coin_Transaction_OutputHours (txn, hours); + Assert.AreEqual (err, SKY_OK); + err = SKY_fee_VerifyTransactionFee (txn, ((ulong) (GoUint64p_value (hours) * 10)),2); + Assert.AreEqual (err, SKY_OK); // fee + hours overflows - err = skycoin.skycoin.SKY_fee_VerifyTransactionFee (txn, ((ulong.MaxValue - 3000000)),2); - Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR); + err = SKY_fee_VerifyTransactionFee (txn, ((ulong.MaxValue - 3000000)),2); + Assert.AreEqual (err, SKY_ERROR); // txn has overflowing output hours - err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (txn, addr, 0, + err = SKY_coin_Transaction_PushOutput (txn, addr, 0, (ulong.MaxValue - 1000000 - 3000000 + 1)); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK, "txn has overflowing output hours"); - err = skycoin.skycoin.SKY_fee_VerifyTransactionFee (txn, 10,2); - Assert.AreEqual (err, skycoin.skycoin.SKY_ERROR, "SKY_fee_VerifyTransactionFee failed"); + Assert.AreEqual (err, SKY_OK, "txn has overflowing output hours"); + err = SKY_fee_VerifyTransactionFee (txn, 10,2); + Assert.AreEqual (err, SKY_ERROR, "SKY_fee_VerifyTransactionFee failed"); int len = burnFactor2verifyTxFeeTestCase.Length; for (int i = 0; i < len; i++) { - txn = skycoin.skycoin.new_Transaction__Handlep (); + txn = new_Transaction__Handlep (); txn = transutils.makeEmptyTransaction (); verifyTxFeeTestCase tc = burnFactor2verifyTxFeeTestCase[i]; - err = skycoin.skycoin.SKY_coin_Transaction_PushOutput (txn, addr, 0, tc.ouputHours); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); + err = SKY_coin_Transaction_PushOutput (txn, addr, 0, tc.ouputHours); + Assert.AreEqual (err, SKY_OK); Assert.IsTrue (tc.inputHours >= tc.ouputHours); - err = skycoin.skycoin.SKY_fee_VerifyTransactionFee (txn, (ulong) (tc.inputHours - tc.ouputHours),2); + err = SKY_fee_VerifyTransactionFee (txn, (ulong) (tc.inputHours - tc.ouputHours),2); Assert.AreEqual (tc.err, err, "Iter " + i.ToString () + " is " + tc.err.ToString () + " != " + err.ToString ());; } } @@ -237,14 +237,14 @@ public void TestRequiredFee () { for (int i = 0; i < cases.Length; i++) { var tc = cases[i]; - var fee = skycoin.skycoin.new_GoUint64p (); - var err = skycoin.skycoin.SKY_fee_RequiredFee (tc.hours,2, fee); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (tc.fee, skycoin.skycoin.GoUint64p_value (fee)); - var remainingHours = skycoin.skycoin.new_GoUint64p (); - err = skycoin.skycoin.SKY_fee_RemainingHours (tc.hours,2, remainingHours); - Assert.AreEqual (err, skycoin.skycoin.SKY_OK); - Assert.AreEqual (tc.hours - skycoin.skycoin.GoUint64p_value (fee), skycoin.skycoin.GoUint64p_value (remainingHours)); + var fee = new_GoUint64p (); + var err = SKY_fee_RequiredFee (tc.hours,2, fee); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (tc.fee, GoUint64p_value (fee)); + var remainingHours = new_GoUint64p (); + err = SKY_fee_RemainingHours (tc.hours,2, remainingHours); + Assert.AreEqual (err, SKY_OK); + Assert.AreEqual (tc.hours - GoUint64p_value (fee), GoUint64p_value (remainingHours)); } } @@ -309,7 +309,7 @@ public void FullCases () { ListCases[2] = cases; cases = new StrTest (); - cases.err = skycoin.skycoin.SKY_ErrTxnInsufficientCoinHours; + cases.err = SKY_ErrTxnInsufficientCoinHours; cases.outs = new ulong[3]; cases.outs[0] = 5; cases.outs[1] = 10; @@ -325,7 +325,7 @@ public void FullCases () { ListCases[3] = cases; cases = new StrTest (); - cases.err = skycoin.skycoin.SKY_ErrAddEarnedCoinHoursAdditionOverflow; + cases.err = SKY_ErrAddEarnedCoinHoursAdditionOverflow; cases.outs = new ulong[1]; cases.outs[0] = 0; cases.ins = new uxInput[2]; @@ -339,7 +339,7 @@ public void FullCases () { ListCases[4] = cases; cases = new StrTest (); - cases.err = skycoin.skycoin.SKY_ERROR; + cases.err = SKY_ERROR; cases.outs = new ulong[3]; cases.outs[0] = 0; cases.outs[1] = 10; @@ -364,8 +364,8 @@ public void TestTransactionFee () { var tx = transutils.makeEmptyTransaction (); for (int j = 0; j < tc.outs.Length; j++) { var h = tc.outs[j]; - var err1 = skycoin.skycoin.SKY_coin_Transaction_PushOutput (tx, addr, (ulong) 0, (ulong) h); - Assert.AreEqual (err1, skycoin.skycoin.SKY_OK); + var err1 = SKY_coin_Transaction_PushOutput (tx, addr, (ulong) 0, (ulong) h); + Assert.AreEqual (err1, SKY_OK); } var inUxs = transutils.makeUxOutArray (tc.ins.Length); Assert.AreEqual (inUxs.count, tc.ins.Length); @@ -377,10 +377,10 @@ public void TestTransactionFee () { ux.Body.Hours = b.hours; inUxs.setAt (j, ux); } - var fee = skycoin.skycoin.new_GoUint64p (); - var err = skycoin.skycoin.SKY_fee_TransactionFee (tx, tc.headTime, inUxs, fee); + var fee = new_GoUint64p (); + var err = SKY_fee_TransactionFee (tx, tc.headTime, inUxs, fee); Assert.AreEqual (err, tc.err); - var fee_v = skycoin.skycoin.GoUint64p_value (fee); + var fee_v = GoUint64p_value (fee); Assert.AreEqual (fee_v, tc.fee); } } diff --git a/LibskycoinNetTest/check_util_param_distributions.cs b/LibskycoinNetTest/check_util_param_distributions.cs new file mode 100644 index 00000000..f9631529 --- /dev/null +++ b/LibskycoinNetTest/check_util_param_distributions.cs @@ -0,0 +1,28 @@ +using System; +using NUnit.Framework; +using skycoin; +using utils; +namespace LibskycoinNetTest { + [TestFixture ()] + public class check_util_param_distributions : skycoin.skycoin { + + utils.transutils transutils = new utils.transutils (); + + [Test] + public void TestDistributionAddressArrays () { + + var all = new GoSlice (); + var unlocked = new GoSlice (); + var locked = new GoSlice (); + SKY_params_GetDistributionAddresses (all); + Assert.AreEqual (all.len, 100); + SKY_params_GetUnlockedDistributionAddresses (unlocked); + Assert.AreEqual (unlocked.len, 25); + SKY_params_GetLockedDistributionAddresses (locked); + Assert.AreEqual (locked.len, 75); + var str1 = new _GoString_ (); + var err = all.getAtString (0, str1); + System.Console.WriteLine ("El test :" + str1.p); + } + } +} \ No newline at end of file diff --git a/Makefile b/Makefile index df99f299..029ea3a9 100644 --- a/Makefile +++ b/Makefile @@ -43,13 +43,15 @@ build-swig: fi \ } mkdir -p ./LibskycoinNet/skycoin + rm -f swig/include/swig.h + rm -f LibskycoinNet/skycoin/skycoinnet_wrap.c + cp -v gopath/src/github.com/skycoin/skycoin/include/swig.h swig/include/ swig -csharp -oldvarnames -v -namespace skycoin -Iswig/include -I$(INCLUDE_DIR) -outdir LibskycoinNet/skycoin -o LibskycoinNet/skycoin/skycoinnet_wrap.c $(LIBSWIG_DIR)/skycoin.i build-libskycoin-net: gcc -c -fpic -ILibskycoinNet/swig/include -I$(INCLUDE_DIR) LibskycoinNet/skycoin/skycoinnet_wrap.c gcc -shared skycoinnet_wrap.o $(BUILDLIBC_DIR)/libskycoin.a -o libskycoin.so mv libskycoin.so LibskycoinNetTest/bin/Release - #mono-csc -out:skycoin_net.exe LibskycoinNet/skycoin/*.cs install: nuget restore LibskycoinNet.sln diff --git a/swig/csharp_java_basic.i b/swig/csharp_java_basic.i index 6eef6d60..42a9e7cb 100644 --- a/swig/csharp_java_basic.i +++ b/swig/csharp_java_basic.i @@ -713,72 +713,72 @@ void hashKeyIndexNonce(GoSlice_ key, GoInt64 index, SKY_cipher_AddSHA256(key.data, &indexNonceHash, resultHash); } -void makeEncryptedData(GoSlice data, GoUint32 dataLength, GoSlice pwd, coin__UxArray* encrypted){ - GoUint32 fullLength = dataLength + 4; - GoUint32 n = fullLength / 32; - GoUint32 m = fullLength % 32; - GoUint32 errcode; - - if( m > 0 ){ - fullLength += 32 - m; - } - if(32 == sizeof(cipher__SHA256)){ return ;} - fullLength += 32; - char* buffer = malloc(fullLength); - if(buffer != NULL){return;} - //Add data length to the beginning, saving space for the checksum - int i; - for(i = 0; i < 4; i++){ - int shift = i * 8; - buffer[i + 32] = (dataLength & (0xFF << shift)) >> shift; - } - //Add the data - memcpy(buffer + 4 + 32, - data.data, dataLength); - //Add padding - for(i = dataLength + 4 + 32; i < fullLength; i++){ - buffer[i] = 0; - } - //Buffer with space for the checksum, then data length, then data, and then padding - GoSlice _data = {buffer + 32, - fullLength - 32, - fullLength - 32}; - //GoSlice _hash = {buffer, 0, 32}; - errcode = SKY_cipher_SumSHA256(_data, (cipher__SHA256*)buffer); - char bufferNonce[32]; - GoSlice sliceNonce = {bufferNonce, 0, 32}; - randBytes(&sliceNonce, 32); - cipher__SHA256 hashNonce; - errcode = SKY_cipher_SumSHA256(sliceNonce, &hashNonce); - char bufferHash[1024]; - coin__UxArray hashPassword = {bufferHash, 0, 1024}; - errcode = SKY_secp256k1_Secp256k1Hash(pwd, &hashPassword); - cipher__SHA256 h; - - - int fullDestLength = fullLength + sizeof(cipher__SHA256) + 32; - int destBufferStart = sizeof(cipher__SHA256) + 32; - unsigned char* dest_buffer = malloc(fullDestLength); - if(dest_buffer != NULL){return;} - for(i = 0; i < n; i++){ - hashKeyIndexNonce(hashPassword, i, &hashNonce, &h); - cipher__SHA256* pBuffer = (cipher__SHA256*)(buffer + i *32); - cipher__SHA256* xorResult = (cipher__SHA256*)(dest_buffer + destBufferStart + i *32); - SKY_cipher_SHA256_Xor(pBuffer, &h, xorResult); - } - // Prefix the nonce - memcpy(dest_buffer + sizeof(cipher__SHA256), bufferNonce, 32); - // Calculates the checksum - GoSlice nonceAndDataBytes = {dest_buffer + sizeof(cipher__SHA256), - fullLength + 32, - fullLength + 32 - }; - cipher__SHA256* checksum = (cipher__SHA256*)dest_buffer; - errcode = SKY_cipher_SumSHA256(nonceAndDataBytes, checksum); - unsigned char bufferb64[1024]; - unsigned int size = b64_encode((const unsigned char*)dest_buffer, fullDestLength, encrypted->data); - encrypted->len = size; -} +// void makeEncryptedData(GoSlice data, GoUint32 dataLength, GoSlice pwd, coin__UxArray* encrypted){ +// GoUint32 fullLength = dataLength + 4; +// GoUint32 n = fullLength / 32; +// GoUint32 m = fullLength % 32; +// GoUint32 errcode; + +// if( m > 0 ){ +// fullLength += 32 - m; +// } +// if(32 == sizeof(cipher__SHA256)){ return ;} +// fullLength += 32; +// char* buffer = malloc(fullLength); +// if(buffer != NULL){return;} +// //Add data length to the beginning, saving space for the checksum +// int i; +// for(i = 0; i < 4; i++){ +// int shift = i * 8; +// buffer[i + 32] = (dataLength & (0xFF << shift)) >> shift; +// } +// //Add the data +// memcpy(buffer + 4 + 32, +// data.data, dataLength); +// //Add padding +// for(i = dataLength + 4 + 32; i < fullLength; i++){ +// buffer[i] = 0; +// } +// //Buffer with space for the checksum, then data length, then data, and then padding +// GoSlice _data = {buffer + 32, +// fullLength - 32, +// fullLength - 32}; +// //GoSlice _hash = {buffer, 0, 32}; +// errcode = SKY_cipher_SumSHA256(_data, (cipher__SHA256*)buffer); +// char bufferNonce[32]; +// GoSlice sliceNonce = {bufferNonce, 0, 32}; +// randBytes(&sliceNonce, 32); +// cipher__SHA256 hashNonce; +// errcode = SKY_cipher_SumSHA256(sliceNonce, &hashNonce); +// char bufferHash[1024]; +// coin__UxArray hashPassword = {bufferHash, 0, 1024}; +// errcode = SKY_secp256k1_Secp256k1Hash(pwd, &hashPassword); +// cipher__SHA256 h; + + +// int fullDestLength = fullLength + sizeof(cipher__SHA256) + 32; +// int destBufferStart = sizeof(cipher__SHA256) + 32; +// unsigned char* dest_buffer = malloc(fullDestLength); +// if(dest_buffer != NULL){return;} +// for(i = 0; i < n; i++){ +// hashKeyIndexNonce(hashPassword, i, &hashNonce, &h); +// cipher__SHA256* pBuffer = (cipher__SHA256*)(buffer + i *32); +// cipher__SHA256* xorResult = (cipher__SHA256*)(dest_buffer + destBufferStart + i *32); +// SKY_cipher_SHA256_Xor(pBuffer, &h, xorResult); +// } +// // Prefix the nonce +// memcpy(dest_buffer + sizeof(cipher__SHA256), bufferNonce, 32); +// // Calculates the checksum +// GoSlice nonceAndDataBytes = {dest_buffer + sizeof(cipher__SHA256), +// fullLength + 32, +// fullLength + 32 +// }; +// cipher__SHA256* checksum = (cipher__SHA256*)dest_buffer; +// errcode = SKY_cipher_SumSHA256(nonceAndDataBytes, checksum); +// unsigned char bufferb64[1024]; +// unsigned int size = b64_encode((const unsigned char*)dest_buffer, fullDestLength, encrypted->data); +// encrypted->len = size; +// } void convertGoUint8toSHA256(GoUint8_* __in, cipher_SHA256* __out){ memcpy(__out->data, __in, 32); diff --git a/swig/csharp_skycoin.mem.i b/swig/csharp_skycoin.mem.i index 80724f01..d8e3f165 100644 --- a/swig/csharp_skycoin.mem.i +++ b/swig/csharp_skycoin.mem.i @@ -535,4 +535,11 @@ GoUint32 result = SKY_coin_Block_HashBody(p0, p1); return result; } -} \ No newline at end of file +} + +// %rename(SKY_params_GetDistributionAddresses) CSharp_skycoin_SKY_params_GetDistributionAddresses; +// %inline{ +// void CSharp_skycoin_SKY_params_GetDistributionAddresses(coin__UxArray* __return_strings){ +// SKY_params_GetDistributionAddresses(__return_strings); +// } +// } \ No newline at end of file diff --git a/swig/csharp_structs_typemaps.i b/swig/csharp_structs_typemaps.i index c7d94458..c09eafde 100644 --- a/swig/csharp_structs_typemaps.i +++ b/swig/csharp_structs_typemaps.i @@ -22,9 +22,23 @@ ((char *) $self->data)[i] = p; } -void getString(_GoString_ *out){ - out->p = (char *)$self->data; - out->n = strlen((char *)$self->data); + void getString(_GoString_ *out){ + out->p = (char *)$self->data; + out->n = strlen((char *)$self->data); +} + +int getAtString(int index, _GoString_ *out){ + int i; + GoString *iStr ; + memset(iStr, 0, sizeof(GoString)); +for (i = 0, iStr = (GoString*) $self->data; i <= index; ++i, ++iStr) { + if(i == index){ + memset(&out, 0, sizeof(_GoString_)); + memcpy(&out,&iStr,sizeof(_GoString_)); + return 0; + } +} +return 1; } } @@ -34,6 +48,10 @@ void getString(_GoString_ *out){ $self->p = str; $self->n = strlen(str); } + + char * getString(){ + return (const char *)$self->p; + } } %extend cipher_SHA256 { diff --git a/swig/include/swig.h b/swig/include/swig.h new file mode 100644 index 00000000..cd3d3f38 --- /dev/null +++ b/swig/include/swig.h @@ -0,0 +1,56 @@ + +typedef struct{ + GoUint8 data[33]; +} cipher_PubKey; + +typedef struct{ + GoUint8 data[32]; +} cipher_SecKey; + +typedef struct{ + GoUint8 data[20]; +} cipher_Ripemd160; + +typedef struct{ + GoUint8 data[65]; +} cipher_Sig; + +typedef struct{ + GoUint8 data[32]; +} cipher_SHA256; + +typedef struct{ + GoUint8 data[4]; +} cipher_Checksum; + +typedef struct{ + cipher_SecKey* data; + int count; +} cipher_SecKeys; + +typedef struct{ + cipher_PubKey* data; + int count; +} cipher_PubKeys; + +typedef struct{ + cipher_SHA256* data; + int count; +} cipher_SHA256s; + +typedef struct{ + coin__UxOut* data; + int count; +} coin_UxOutArray; + +typedef struct{ + cipher__Address* data; + int count; +} cipher_Addresses; + +typedef GoUint32_ (*FeeCalcFunc)(Transaction__Handle handle, unsigned long long * pFee, void* context); + +typedef struct { + FeeCalcFunc callback; + void* context; +} Fee_Calculator ; \ No newline at end of file From e3d5f4283f88287d35c2fbf0ddb5b856bf4c8fc4 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Thu, 15 Nov 2018 22:13:22 -0500 Subject: [PATCH 63/73] [submodule] Update Submodule --- .gitignore | 5 ++- LibskycoinNet/skycoin/skycoin.cs | 5 +++ LibskycoinNet/skycoin/skycoinPINVOKE.cs | 3 ++ LibskycoinNet/skycoin/skycoinnet_wrap.c | 14 ++++++++ LibskycoinNetTest/LibskycoinNetTest.csproj | 1 + LibskycoinNetTest/check_coin_math64.cs | 41 ++++++++++++++++++++++ gopath/src/github.com/skycoin/skycoin | 2 +- swig/include/libskycoin.h | 2 ++ 8 files changed, 71 insertions(+), 2 deletions(-) create mode 100644 LibskycoinNetTest/check_coin_math64.cs diff --git a/.gitignore b/.gitignore index 4d40709d..7a3fc96a 100644 --- a/.gitignore +++ b/.gitignore @@ -253,4 +253,7 @@ paket-files/ # JetBrains Rider .idea/ *.sln.iml -testrunner/ \ No newline at end of file +testrunner/ + +# VSCODE +.angulardoc.json \ No newline at end of file diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs index 95f9ec0c..c702172b 100644 --- a/LibskycoinNet/skycoin/skycoin.cs +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -2261,6 +2261,11 @@ public static uint SKY_coin_Int64ToUint64(long p0, SWIGTYPE_p_unsigned_long_long return ret; } + public static uint SKY_coin_IntToUint32(long p0, SWIGTYPE_p_unsigned_int p1) { + uint ret = skycoinPINVOKE.SKY_coin_IntToUint32(p0, SWIGTYPE_p_unsigned_int.getCPtr(p1)); + return ret; + } + public static uint SKY_cipher_RandByte(long p0, GoSlice p1) { uint ret = skycoinPINVOKE.SKY_cipher_RandByte(p0, GoSlice.getCPtr (p1)); return ret; diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index 62b0b2fd..04ba3cc2 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -1706,6 +1706,9 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Int64ToUint64")] public static extern uint SKY_coin_Int64ToUint64(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_IntToUint32")] + public static extern uint SKY_coin_IntToUint32(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_cipher_RandByte")] public static extern uint SKY_cipher_RandByte(long jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index 553839f1..226c60df 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -9997,6 +9997,20 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Int64ToUint64(long l } +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_IntToUint32(long long jarg1, void * jarg2) { + unsigned int jresult ; + GoInt arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + GoUint32 result; + + arg1 = (GoInt)jarg1; + arg2 = (GoUint32 *)jarg2; + result = (GoUint32)SKY_coin_IntToUint32(arg1,arg2); + jresult = result; + return jresult; +} + + SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_cipher_RandByte(long long jarg1, GoSlice_ * jarg2) { unsigned int jresult ; GoInt arg1 ; diff --git a/LibskycoinNetTest/LibskycoinNetTest.csproj b/LibskycoinNetTest/LibskycoinNetTest.csproj index ed8fb7e1..df811bca 100644 --- a/LibskycoinNetTest/LibskycoinNetTest.csproj +++ b/LibskycoinNetTest/LibskycoinNetTest.csproj @@ -45,6 +45,7 @@ + diff --git a/LibskycoinNetTest/check_coin_math64.cs b/LibskycoinNetTest/check_coin_math64.cs new file mode 100644 index 00000000..86e8b33f --- /dev/null +++ b/LibskycoinNetTest/check_coin_math64.cs @@ -0,0 +1,41 @@ +using System; +using NUnit.Framework; +using skycoin; +using utils; +namespace LibskycoinNetTest { +[TestFixture ()] + public class check_coin_math64:skycoin.skycoin { + +utils.transutils transutils = new utils.transutils (); + +struct math_test { +public long a; +public ulong b; +public int failure; +} + +math_test[] cases = new math_test[1]; + +public void FullCases () { +var c = new math_test (); +c = new math_test (); +c.a = long.MaxValue; +c.b = long.MaxValue; +c.failure = SKY_OK; +cases[0] = c; +} + +[Test] +public void Test64BitIntToUint32() { +for (int i = 0; i < cases.Length; i++) { + math_test math_Test = cases[i]; + var result = new_GoUint32Ptr(); + var err = SKY_coin_IntToUint32(math_Test.a, result); + if(math_Test.failure == SKY_OK){ + Assert.AreEqual(math_Test.failure , err); + Assert.AreEqual(GoUint32Ptr_value(result), math_Test.a); + } +} +} +} +} \ No newline at end of file diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index 86d31fb6..ecbe428b 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit 86d31fb6c578af9f7b1e73d26671aebc6f2f3cbb +Subproject commit ecbe428b5f8d44c6d4582f5892d8c84820c05d02 diff --git a/swig/include/libskycoin.h b/swig/include/libskycoin.h index 90e8e852..140b1cc2 100644 --- a/swig/include/libskycoin.h +++ b/swig/include/libskycoin.h @@ -776,6 +776,8 @@ extern GoUint32 SKY_coin_Uint64ToInt64(GoUint64 p0, GoInt64* p1); extern GoUint32 SKY_coin_Int64ToUint64(GoInt64 p0, GoUint64* p1); +extern GoUint32 SKY_coin_IntToUint32(GoInt p0, GoUint32* p1); + extern GoUint32 SKY_cipher_RandByte(GoInt p0, coin__UxArray* p1); extern GoUint32 SKY_cipher_NewPubKey(GoSlice p0, cipher__PubKey* p1); From e51b7ce1c8a934f363b8b67d3dc738372d788095 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Mon, 26 Nov 2018 09:36:42 -0500 Subject: [PATCH 64/73] [test] refs #8 cleaning the library Tests run: 86, Errors: 0, Failures: 0, Inconclusive: 0, Time: 18,8853374 seconds Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0 --- LibskycoinNetTest/LibskycoinNetTest.csproj | 10 +--------- .../check_cipher_encrypt_scrypt_chacha20poly1305.cs | 4 +--- LibskycoinNetTest/packages.config | 4 ---- 3 files changed, 2 insertions(+), 16 deletions(-) delete mode 100644 LibskycoinNetTest/packages.config diff --git a/LibskycoinNetTest/LibskycoinNetTest.csproj b/LibskycoinNetTest/LibskycoinNetTest.csproj index df811bca..cf3f58bb 100644 --- a/LibskycoinNetTest/LibskycoinNetTest.csproj +++ b/LibskycoinNetTest/LibskycoinNetTest.csproj @@ -7,6 +7,7 @@ Library LibskycoinNetTest LibskycoinNetTest + v4.7 @@ -31,9 +32,6 @@ nunit - - ..\packages\Newtonsoft.Json.11.0.2\lib\net40\Newtonsoft.Json.dll - @@ -52,9 +50,6 @@ - - - @@ -62,8 +57,5 @@ LibskycoinNet - - - \ No newline at end of file diff --git a/LibskycoinNetTest/check_cipher_encrypt_scrypt_chacha20poly1305.cs b/LibskycoinNetTest/check_cipher_encrypt_scrypt_chacha20poly1305.cs index 1bc08729..bfa53cbf 100644 --- a/LibskycoinNetTest/check_cipher_encrypt_scrypt_chacha20poly1305.cs +++ b/LibskycoinNetTest/check_cipher_encrypt_scrypt_chacha20poly1305.cs @@ -1,8 +1,6 @@ using System; using System.IO; -using Newtonsoft.Json; -using Newtonsoft.Json.Linq; -using NUnit.Framework; +git using NUnit.Framework; using skycoin; using utils; namespace LibskycoinNetTest { diff --git a/LibskycoinNetTest/packages.config b/LibskycoinNetTest/packages.config deleted file mode 100644 index 07048c7e..00000000 --- a/LibskycoinNetTest/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file From efbec75506304b417a4ce6ae4c0cb0a84d245e2e Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Mon, 26 Nov 2018 20:03:54 -0500 Subject: [PATCH 65/73] [test] refs #8 Repair error in define Tests run: 86, Errors: 0, Failures: 0, Inconclusive: 0, Time: 15,39145 seconds Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0 --- .../check_cipher_encrypt_scrypt_chacha20poly1305.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/LibskycoinNetTest/check_cipher_encrypt_scrypt_chacha20poly1305.cs b/LibskycoinNetTest/check_cipher_encrypt_scrypt_chacha20poly1305.cs index bfa53cbf..0fbefe73 100644 --- a/LibskycoinNetTest/check_cipher_encrypt_scrypt_chacha20poly1305.cs +++ b/LibskycoinNetTest/check_cipher_encrypt_scrypt_chacha20poly1305.cs @@ -1,8 +1,7 @@ using System; -using System.IO; -git using NUnit.Framework; +using NUnit.Framework; using skycoin; -using utils; +using utils; namespace LibskycoinNetTest { [TestFixture ()] public class check_cipher_encrypt_scrypt_chacha20poly1305 : skycoin.skycoin { From 3f92d19e1856a3481f4f47d6a39cc2462272e433 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Wed, 28 Nov 2018 14:37:49 -0500 Subject: [PATCH 66/73] [test] refs #8 Update Submodule Tests run: 86, Errors: 0, Failures: 0, Inconclusive: 0, Time: 15,8838363 seconds Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0 --- .vscode/settings.json | 6 ------ LibskycoinNet/skycoin/coin__Transaction.cs | 5 ----- LibskycoinNet/skycoin/skycoinPINVOKE.cs | 3 --- LibskycoinNet/skycoin/skycoinnet_wrap.c | 21 --------------------- gopath/src/github.com/skycoin/skycoin | 2 +- 5 files changed, 1 insertion(+), 36 deletions(-) delete mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 9f5c07d4..00000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "files.associations": { - "transutil.h": "c", - "base64.h": "c" - } -} \ No newline at end of file diff --git a/LibskycoinNet/skycoin/coin__Transaction.cs b/LibskycoinNet/skycoin/coin__Transaction.cs index d1a2b438..45925995 100644 --- a/LibskycoinNet/skycoin/coin__Transaction.cs +++ b/LibskycoinNet/skycoin/coin__Transaction.cs @@ -56,11 +56,6 @@ public int isEqual(coin__Transaction t) { return ret; } - public cipher_SHA256 getInnerHash() { - cipher_SHA256 ret = new cipher_SHA256(skycoinPINVOKE.coin__Transaction_getInnerHash(swigCPtr), true); - return ret; - } - public int Length { set { skycoinPINVOKE.set_coin__Transaction_Length(swigCPtr, value); diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index 04ba3cc2..81634dcb 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -2588,9 +2588,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_isEqual")] public static extern int coin__Transaction_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_getInnerHash")] - public static extern global::System.IntPtr coin__Transaction_getInnerHash(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__Transaction_Length")] public static extern void set_coin__Transaction_Length(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index 226c60df..2ea21b4e 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -2307,11 +2307,6 @@ memset(&h, 0, sizeof(cipher__SHA256)); SWIGINTERN int coin__Transaction_isEqual(coin__Transaction *self,coin__Transaction *t){ return equalTransactions(self, t); } -SWIGINTERN cipher_SHA256 coin__Transaction_getInnerHash(coin__Transaction *self){ - cipher_SHA256 h; - cipher_SHA256_assignFrom(&h,self->InnerHash); - return h; - } SWIGINTERN int coin__TransactionOutput_isEqual(coin__TransactionOutput *self,coin__TransactionOutput *t){ if( self->Coins != t->Coins || self->Hours != t->Hours ){ @@ -14881,22 +14876,6 @@ SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__Transaction_isEqual(void * jarg1 } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Transaction_getInnerHash(void * jarg1) { - void * jresult ; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - cipher_SHA256 result; - - arg1 = (coin__Transaction *)jarg1; - result = coin__Transaction_getInnerHash(arg1); - { - cipher_SHA256 * resultptr = (cipher_SHA256 *) malloc(sizeof(cipher_SHA256)); - memmove(resultptr, &result, sizeof(cipher_SHA256)); - jresult = resultptr; - } - return jresult; -} - - SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_coin__Transaction_Length(void * jarg1, int jarg2) { coin__Transaction *arg1 = (coin__Transaction *) 0 ; GoInt32_ arg2 ; diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index ecbe428b..8d49f360 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit ecbe428b5f8d44c6d4582f5892d8c84820c05d02 +Subproject commit 8d49f36088303e08f822ac8969acefbc009431a6 From 1b43afce92a2711d9b920398dd530bf43fc7f4b8 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Wed, 28 Nov 2018 22:05:45 -0500 Subject: [PATCH 67/73] [travis][Makefile] refs #4 #8 Repair https://github.com/simelo/libskycoin-dotnet/pull/5 --- .travis.yml | 9 ++------- Makefile | 6 +++--- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index bb7498ab..cc0fe754 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,15 +5,10 @@ install: - eval "$(gimme 1.10)" - go version - mkdir swig_build && cd swig_build && wget http://prdownloads.sourceforge.net/swig/swig-3.0.12.tar.gz && tar -zxf swig-3.0.12.tar.gz && cd swig-3.0.12 && sudo ./configure --prefix=/usr && sudo make && sudo make install && cd ../../ && sudo rm -rf swig_build - - nuget restore LibskycoinNet.sln - - nuget install NUnit.Runners -Version 2.6.4 -OutputDirectory testrunner script: - - make build-libc - - make build-swig - - msbuild /p:Configuration=Release LibskycoinNet.sln - - make build-libskycoin-net - - mono ./testrunner/NUnit.Runners.2.6.4/tools/nunit-console.exe ./LibskycoinNetTest/bin/Release/LibskycoinNetTest.dll + - make build + - make test notifications: email: false diff --git a/Makefile b/Makefile index 029ea3a9..e7636c41 100644 --- a/Makefile +++ b/Makefile @@ -57,10 +57,10 @@ install: nuget restore LibskycoinNet.sln nuget install NUnit.Runners -Version 2.6.4 -OutputDirectory testrunner -test: install - make build-libc - make build-swig +build: install build-libc build-swig msbuild /p:Configuration=Release LibskycoinNet.sln msbuild /p:Configuration=Debug LibskycoinNet.sln make build-libskycoin-net + +test: build mono ./testrunner/NUnit.Runners.2.6.4/tools/nunit-console.exe ./LibskycoinNetTest/bin/Release/LibskycoinNetTest.dll -labels \ No newline at end of file From 53a91bc743af54e785b377a8944e19770db4f972 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Thu, 29 Nov 2018 08:45:53 -0500 Subject: [PATCH 68/73] [Makefile] refs #8 Changes in Makefile and rename skycoin.i => libdotnet.i --- LibskycoinNet/Skycoin.cs | 14 -------------- Makefile | 2 +- swig/{skycoin.i => libdotnet.i} | 0 3 files changed, 1 insertion(+), 15 deletions(-) delete mode 100644 LibskycoinNet/Skycoin.cs rename swig/{skycoin.i => libdotnet.i} (100%) diff --git a/LibskycoinNet/Skycoin.cs b/LibskycoinNet/Skycoin.cs deleted file mode 100644 index ab4d185a..00000000 --- a/LibskycoinNet/Skycoin.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System; -namespace LibskycoinNet -{ - public class Skycoin - { - public Skycoin() - { - } - - public int Sum(int a, int b){ - return a + b; - } - } -} diff --git a/Makefile b/Makefile index e7636c41..636c8e8f 100644 --- a/Makefile +++ b/Makefile @@ -46,7 +46,7 @@ build-swig: rm -f swig/include/swig.h rm -f LibskycoinNet/skycoin/skycoinnet_wrap.c cp -v gopath/src/github.com/skycoin/skycoin/include/swig.h swig/include/ - swig -csharp -oldvarnames -v -namespace skycoin -Iswig/include -I$(INCLUDE_DIR) -outdir LibskycoinNet/skycoin -o LibskycoinNet/skycoin/skycoinnet_wrap.c $(LIBSWIG_DIR)/skycoin.i + swig -csharp -oldvarnames -v -namespace skycoin -Iswig/include -I$(INCLUDE_DIR) -outdir LibskycoinNet/skycoin -o LibskycoinNet/skycoin/skycoinnet_wrap.c $(LIBSWIG_DIR)/libdotnet.i build-libskycoin-net: gcc -c -fpic -ILibskycoinNet/swig/include -I$(INCLUDE_DIR) LibskycoinNet/skycoin/skycoinnet_wrap.c diff --git a/swig/skycoin.i b/swig/libdotnet.i similarity index 100% rename from swig/skycoin.i rename to swig/libdotnet.i From 1ac7ae7eb3040a17e3c3a437be81d58b8c177aac Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Thu, 29 Nov 2018 10:51:09 -0500 Subject: [PATCH 69/73] [test] refs #8 Finish test param Tests run: 87, Errors: 0, Failures: 0, Inconclusive: 0, Time: 15,7984184 seconds Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0 --- LibskycoinNet/skycoin/GoSlice.cs | 4 +- LibskycoinNet/skycoin/_GoString_.cs | 5 + LibskycoinNet/skycoin/skycoinPINVOKE.cs | 3 + LibskycoinNet/skycoin/skycoinnet_wrap.c | 107 +++++------------- LibskycoinNetTest/LibskycoinNetTest.csproj | 2 +- .../check_util_param_distributions.cs | 92 ++++++++++----- swig/csharp_java_basic.i | 67 ----------- swig/csharp_structs_typemaps.i | 30 +++-- 8 files changed, 126 insertions(+), 184 deletions(-) diff --git a/LibskycoinNet/skycoin/GoSlice.cs b/LibskycoinNet/skycoin/GoSlice.cs index 1b8b5cd4..22ffebaf 100644 --- a/LibskycoinNet/skycoin/GoSlice.cs +++ b/LibskycoinNet/skycoin/GoSlice.cs @@ -58,8 +58,8 @@ public void getString(_GoString_ arg0) { skycoinPINVOKE.GoSlice_getString(swigCPtr, _GoString_.getCPtr(arg0)); } - public int getAtString(int index, _GoString_ arg1) { - int ret = skycoinPINVOKE.GoSlice_getAtString(swigCPtr, index, _GoString_.getCPtr(arg1)); + public int getAtString(int index, _GoString_ outs) { + int ret = skycoinPINVOKE.GoSlice_getAtString(swigCPtr, index, _GoString_.getCPtr(outs)); return ret; } diff --git a/LibskycoinNet/skycoin/_GoString_.cs b/LibskycoinNet/skycoin/_GoString_.cs index 6faf79bd..9dac3040 100644 --- a/LibskycoinNet/skycoin/_GoString_.cs +++ b/LibskycoinNet/skycoin/_GoString_.cs @@ -50,6 +50,11 @@ public string getString() { return ret; } + public int isEqual(_GoString_ string2) { + int ret = skycoinPINVOKE._GoString__isEqual(swigCPtr, _GoString_.getCPtr(string2)); + return ret; + } + public string p { set { skycoinPINVOKE.set__GoString__p(swigCPtr, value); diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index 81634dcb..6445636b 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -1196,6 +1196,9 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin__GoString__getString")] public static extern string _GoString__getString(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin__GoString__isEqual")] + public static extern int _GoString__isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set__GoString__p")] public static extern void set__GoString__p(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2); diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index 2ea21b4e..103d308e 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -1477,73 +1477,6 @@ void hashKeyIndexNonce(GoSlice_ key, GoInt64 index, SKY_cipher_AddSHA256(key.data, &indexNonceHash, resultHash); } -// void makeEncryptedData(GoSlice data, GoUint32 dataLength, GoSlice pwd, coin__UxArray* encrypted){ -// GoUint32 fullLength = dataLength + 4; -// GoUint32 n = fullLength / 32; -// GoUint32 m = fullLength % 32; -// GoUint32 errcode; - -// if( m > 0 ){ -// fullLength += 32 - m; -// } -// if(32 == sizeof(cipher__SHA256)){ return ;} -// fullLength += 32; -// char* buffer = malloc(fullLength); -// if(buffer != NULL){return;} -// //Add data length to the beginning, saving space for the checksum -// int i; -// for(i = 0; i < 4; i++){ -// int shift = i * 8; -// buffer[i + 32] = (dataLength & (0xFF << shift)) >> shift; -// } -// //Add the data -// memcpy(buffer + 4 + 32, -// data.data, dataLength); -// //Add padding -// for(i = dataLength + 4 + 32; i < fullLength; i++){ -// buffer[i] = 0; -// } -// //Buffer with space for the checksum, then data length, then data, and then padding -// GoSlice _data = {buffer + 32, -// fullLength - 32, -// fullLength - 32}; -// //GoSlice _hash = {buffer, 0, 32}; -// errcode = SKY_cipher_SumSHA256(_data, (cipher__SHA256*)buffer); -// char bufferNonce[32]; -// GoSlice sliceNonce = {bufferNonce, 0, 32}; -// randBytes(&sliceNonce, 32); -// cipher__SHA256 hashNonce; -// errcode = SKY_cipher_SumSHA256(sliceNonce, &hashNonce); -// char bufferHash[1024]; -// coin__UxArray hashPassword = {bufferHash, 0, 1024}; -// errcode = SKY_secp256k1_Secp256k1Hash(pwd, &hashPassword); -// cipher__SHA256 h; - - -// int fullDestLength = fullLength + sizeof(cipher__SHA256) + 32; -// int destBufferStart = sizeof(cipher__SHA256) + 32; -// unsigned char* dest_buffer = malloc(fullDestLength); -// if(dest_buffer != NULL){return;} -// for(i = 0; i < n; i++){ -// hashKeyIndexNonce(hashPassword, i, &hashNonce, &h); -// cipher__SHA256* pBuffer = (cipher__SHA256*)(buffer + i *32); -// cipher__SHA256* xorResult = (cipher__SHA256*)(dest_buffer + destBufferStart + i *32); -// SKY_cipher_SHA256_Xor(pBuffer, &h, xorResult); -// } -// // Prefix the nonce -// memcpy(dest_buffer + sizeof(cipher__SHA256), bufferNonce, 32); -// // Calculates the checksum -// GoSlice nonceAndDataBytes = {dest_buffer + sizeof(cipher__SHA256), -// fullLength + 32, -// fullLength + 32 -// }; -// cipher__SHA256* checksum = (cipher__SHA256*)dest_buffer; -// errcode = SKY_cipher_SumSHA256(nonceAndDataBytes, checksum); -// unsigned char bufferb64[1024]; -// unsigned int size = b64_encode((const unsigned char*)dest_buffer, fullDestLength, encrypted->data); -// encrypted->len = size; -// } - void convertGoUint8toSHA256(GoUint8_* __in, cipher_SHA256* __out){ memcpy(__out->data, __in, 32); } @@ -2247,6 +2180,10 @@ SWIGINTERN int _GoString__SetString(_GoString_ *self,char *str){ SWIGINTERN char *_GoString__getString(_GoString_ *self){ return (const char *)self->p; } +SWIGINTERN int _GoString__isEqual(_GoString_ *self,_GoString_ *string2){ + return (self->n == string2->n) && + (strcmp((char *)self->p, (char *)string2->p) == 0); +} SWIGINTERN int GoSlice_isEqual(GoSlice *self,GoSlice *slice){ return ((self->len == slice->len)) && (memcmp(self->data,slice->data, sizeof(GoSlice_))==0 ); } @@ -2262,18 +2199,20 @@ SWIGINTERN void GoSlice_getString(GoSlice *self,_GoString_ *out){ out->p = (char *)self->data; out->n = strlen((char *)self->data); } -SWIGINTERN int GoSlice_getAtString(GoSlice *self,int index,_GoString_ *out){ +SWIGINTERN int GoSlice_getAtString(GoSlice *self,int index,_GoString_ *outs){ int i; - GoString *iStr ; - memset(iStr, 0, sizeof(GoString)); -for (i = 0, iStr = (GoString*) self->data; i <= index; ++i, ++iStr) { - if(i == index){ - memset(&out, 0, sizeof(_GoString_)); - memcpy(&out,&iStr,sizeof(_GoString_)); - return 0; + _GoString_ *iStr; + char *out; + for (i = 0, iStr = (_GoString_ *)self->data; i < self->len; ++i, ++iStr) + { + if (index == i) + { + out = _GoString__getString(iStr); + _GoString__SetString(outs,out); + return 0; } -} -return 1; + } + return 1; } SWIGINTERN char cipher__Address_getVersion(cipher__Address *self){ return self->Version; @@ -6723,6 +6662,20 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_skycoin__GoString__getString(void * jarg1) } +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin__GoString__isEqual(void * jarg1, void * jarg2) { + int jresult ; + _GoString_ *arg1 = (_GoString_ *) 0 ; + _GoString_ *arg2 = (_GoString_ *) 0 ; + int result; + + arg1 = (_GoString_ *)jarg1; + arg2 = (_GoString_ *)jarg2; + result = (int)_GoString__isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set__GoString__p(void * jarg1, char * jarg2) { _GoString_ *arg1 = (_GoString_ *) 0 ; char *arg2 = (char *) 0 ; diff --git a/LibskycoinNetTest/LibskycoinNetTest.csproj b/LibskycoinNetTest/LibskycoinNetTest.csproj index cf3f58bb..7b27294e 100644 --- a/LibskycoinNetTest/LibskycoinNetTest.csproj +++ b/LibskycoinNetTest/LibskycoinNetTest.csproj @@ -49,7 +49,7 @@ - + diff --git a/LibskycoinNetTest/check_util_param_distributions.cs b/LibskycoinNetTest/check_util_param_distributions.cs index f9631529..47c302a0 100644 --- a/LibskycoinNetTest/check_util_param_distributions.cs +++ b/LibskycoinNetTest/check_util_param_distributions.cs @@ -1,28 +1,68 @@ -using System; -using NUnit.Framework; -using skycoin; -using utils; +using System; +using NUnit.Framework; +using skycoin; +using utils; namespace LibskycoinNetTest { - [TestFixture ()] - public class check_util_param_distributions : skycoin.skycoin { - - utils.transutils transutils = new utils.transutils (); - - [Test] - public void TestDistributionAddressArrays () { - - var all = new GoSlice (); - var unlocked = new GoSlice (); - var locked = new GoSlice (); - SKY_params_GetDistributionAddresses (all); - Assert.AreEqual (all.len, 100); - SKY_params_GetUnlockedDistributionAddresses (unlocked); - Assert.AreEqual (unlocked.len, 25); - SKY_params_GetLockedDistributionAddresses (locked); - Assert.AreEqual (locked.len, 75); - var str1 = new _GoString_ (); - var err = all.getAtString (0, str1); - System.Console.WriteLine ("El test :" + str1.p); - } - } +[TestFixture ()] + public class check_util_param_distributions:skycoin.skycoin { + +utils.transutils transutils = new utils.transutils (); + +[Test] + public void TestDistributionAddressArrays () { + +var addrs = new GoSlice (); +var unlocked = new GoSlice (); +var locked = new GoSlice (); +SKY_params_GetDistributionAddresses (addrs); +Assert.AreEqual (addrs.len, 100); +SKY_params_GetUnlockedDistributionAddresses (unlocked); +Assert.AreEqual (unlocked.len, 25); +SKY_params_GetLockedDistributionAddresses (locked); +Assert.AreEqual (locked.len, 75); + +for (int i = 0; i < addrs.len; i++) { +var iStr = new _GoString_(); +addrs.getAtString(i, iStr); + +for (int j = 0; j < i + 1; j++) { +if (j < addrs.len) { +break; +} +var jStr = new _GoString_(); +addrs.getAtString(i + 1, jStr); +Assert.AreEqual(iStr.isEqual(jStr), 0); +} +} + +for (int i = 0; i < unlocked.len; i++) { +var iStr = new _GoString_(); +unlocked.getAtString(i, iStr); + +for (int j = 0; j < i + 1; j++) { +if (j < unlocked.len) { +break; +} +var jStr = new _GoString_(); +unlocked.getAtString(i + 1, jStr); +Assert.AreEqual(iStr.isEqual(jStr), 0); +} +} + +for (int i = 0; i < locked.len; i++) { +var iStr = new _GoString_(); +locked.getAtString(i, iStr); + +for (int j = 0; j < i + 1; j++) { +if (j < locked.len) { +break; +} +var jStr = new _GoString_(); +locked.getAtString(i + 1, jStr); +Assert.AreEqual(iStr.isEqual(jStr), 0); +} +} + +} +} } \ No newline at end of file diff --git a/swig/csharp_java_basic.i b/swig/csharp_java_basic.i index 42a9e7cb..4566530d 100644 --- a/swig/csharp_java_basic.i +++ b/swig/csharp_java_basic.i @@ -713,73 +713,6 @@ void hashKeyIndexNonce(GoSlice_ key, GoInt64 index, SKY_cipher_AddSHA256(key.data, &indexNonceHash, resultHash); } -// void makeEncryptedData(GoSlice data, GoUint32 dataLength, GoSlice pwd, coin__UxArray* encrypted){ -// GoUint32 fullLength = dataLength + 4; -// GoUint32 n = fullLength / 32; -// GoUint32 m = fullLength % 32; -// GoUint32 errcode; - -// if( m > 0 ){ -// fullLength += 32 - m; -// } -// if(32 == sizeof(cipher__SHA256)){ return ;} -// fullLength += 32; -// char* buffer = malloc(fullLength); -// if(buffer != NULL){return;} -// //Add data length to the beginning, saving space for the checksum -// int i; -// for(i = 0; i < 4; i++){ -// int shift = i * 8; -// buffer[i + 32] = (dataLength & (0xFF << shift)) >> shift; -// } -// //Add the data -// memcpy(buffer + 4 + 32, -// data.data, dataLength); -// //Add padding -// for(i = dataLength + 4 + 32; i < fullLength; i++){ -// buffer[i] = 0; -// } -// //Buffer with space for the checksum, then data length, then data, and then padding -// GoSlice _data = {buffer + 32, -// fullLength - 32, -// fullLength - 32}; -// //GoSlice _hash = {buffer, 0, 32}; -// errcode = SKY_cipher_SumSHA256(_data, (cipher__SHA256*)buffer); -// char bufferNonce[32]; -// GoSlice sliceNonce = {bufferNonce, 0, 32}; -// randBytes(&sliceNonce, 32); -// cipher__SHA256 hashNonce; -// errcode = SKY_cipher_SumSHA256(sliceNonce, &hashNonce); -// char bufferHash[1024]; -// coin__UxArray hashPassword = {bufferHash, 0, 1024}; -// errcode = SKY_secp256k1_Secp256k1Hash(pwd, &hashPassword); -// cipher__SHA256 h; - - -// int fullDestLength = fullLength + sizeof(cipher__SHA256) + 32; -// int destBufferStart = sizeof(cipher__SHA256) + 32; -// unsigned char* dest_buffer = malloc(fullDestLength); -// if(dest_buffer != NULL){return;} -// for(i = 0; i < n; i++){ -// hashKeyIndexNonce(hashPassword, i, &hashNonce, &h); -// cipher__SHA256* pBuffer = (cipher__SHA256*)(buffer + i *32); -// cipher__SHA256* xorResult = (cipher__SHA256*)(dest_buffer + destBufferStart + i *32); -// SKY_cipher_SHA256_Xor(pBuffer, &h, xorResult); -// } -// // Prefix the nonce -// memcpy(dest_buffer + sizeof(cipher__SHA256), bufferNonce, 32); -// // Calculates the checksum -// GoSlice nonceAndDataBytes = {dest_buffer + sizeof(cipher__SHA256), -// fullLength + 32, -// fullLength + 32 -// }; -// cipher__SHA256* checksum = (cipher__SHA256*)dest_buffer; -// errcode = SKY_cipher_SumSHA256(nonceAndDataBytes, checksum); -// unsigned char bufferb64[1024]; -// unsigned int size = b64_encode((const unsigned char*)dest_buffer, fullDestLength, encrypted->data); -// encrypted->len = size; -// } - void convertGoUint8toSHA256(GoUint8_* __in, cipher_SHA256* __out){ memcpy(__out->data, __in, 32); } diff --git a/swig/csharp_structs_typemaps.i b/swig/csharp_structs_typemaps.i index c09eafde..db608320 100644 --- a/swig/csharp_structs_typemaps.i +++ b/swig/csharp_structs_typemaps.i @@ -27,20 +27,22 @@ out->n = strlen((char *)$self->data); } -int getAtString(int index, _GoString_ *out){ +int getAtString(int index, _GoString_ *outs ) +{ int i; - GoString *iStr ; - memset(iStr, 0, sizeof(GoString)); -for (i = 0, iStr = (GoString*) $self->data; i <= index; ++i, ++iStr) { - if(i == index){ - memset(&out, 0, sizeof(_GoString_)); - memcpy(&out,&iStr,sizeof(_GoString_)); - return 0; + _GoString_ *iStr; + char *out; + for (i = 0, iStr = (_GoString_ *)$self->data; i < $self->len; ++i, ++iStr) + { + if (index == i) + { + out = _GoString__getString(iStr); + _GoString__SetString(outs,out); + return 0; } + } + return 1; } -return 1; -} - } %extend _GoString_ { @@ -52,6 +54,12 @@ return 1; char * getString(){ return (const char *)$self->p; } + + int isEqual( _GoString_ *string2) +{ + return ($self->n == string2->n) && + (strcmp((char *)$self->p, (char *)string2->p) == 0); +} } %extend cipher_SHA256 { From c22c5aa06d4c6d8ea9f58dd4c17ba2a7efde113f Mon Sep 17 00:00:00 2001 From: Olemis Lang Date: Thu, 29 Nov 2018 23:56:23 -0500 Subject: [PATCH 70/73] [ci] refs #8 - Restructure Makefile. make help . Travis = make test --- .travis.yml | 1 - Makefile | 23 +++++++++++++---------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/.travis.yml b/.travis.yml index cc0fe754..9bd2f9da 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,6 @@ install: - mkdir swig_build && cd swig_build && wget http://prdownloads.sourceforge.net/swig/swig-3.0.12.tar.gz && tar -zxf swig-3.0.12.tar.gz && cd swig-3.0.12 && sudo ./configure --prefix=/usr && sudo make && sudo make install && cd ../../ && sudo rm -rf swig_build script: - - make build - make test notifications: diff --git a/Makefile b/Makefile index 636c8e8f..4b6a1740 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ SRC_FILES = $(shell find $(SKYCOIN_DIR)/src -type f -name "*.go") SWIG_FILES = $(shell find $(LIBSWIG_DIR) -type f -name "*.i") HEADER_FILES = $(shell find $(SKYCOIN_DIR)/include -type f -name "*.h") -configure: +configure: ## Setup build environment mkdir -p $(BUILD_DIR)/usr/tmp $(BUILD_DIR)/usr/lib $(BUILD_DIR)/usr/include mkdir -p $(BUILDLIBC_DIR) $(BIN_DIR) $(INCLUDE_DIR) @@ -27,10 +27,9 @@ $(BUILDLIBC_DIR)/libskycoin.a: $(LIB_FILES) $(SRC_FILES) $(HEADER_FILES) mkdir -p swig/include grep -v _Complex $(INCLUDE_DIR)/libskycoin.h > swig/include/libskycoin.h -## Build libskycoin C client library -build-libc: configure $(BUILDLIBC_DIR)/libskycoin.a +build-libc: configure $(BUILDLIBC_DIR)/libskycoin.a ## Build libskycoin static C client library -build-swig: +build-swig: ## Generate csharp source code from SWIG interface definitions #Generate structs.i from skytypes.gen.h rm -f $(LIBSWIG_DIR)/structs.i cp $(INCLUDE_DIR)/skytypes.gen.h $(LIBSWIG_DIR)/structs.i @@ -48,19 +47,23 @@ build-swig: cp -v gopath/src/github.com/skycoin/skycoin/include/swig.h swig/include/ swig -csharp -oldvarnames -v -namespace skycoin -Iswig/include -I$(INCLUDE_DIR) -outdir LibskycoinNet/skycoin -o LibskycoinNet/skycoin/skycoinnet_wrap.c $(LIBSWIG_DIR)/libdotnet.i -build-libskycoin-net: +build-libskycoin-net: build-swig build-libc ## Build shared library including SWIG wrappers gcc -c -fpic -ILibskycoinNet/swig/include -I$(INCLUDE_DIR) LibskycoinNet/skycoin/skycoinnet_wrap.c gcc -shared skycoinnet_wrap.o $(BUILDLIBC_DIR)/libskycoin.a -o libskycoin.so mv libskycoin.so LibskycoinNetTest/bin/Release -install: +install-deps: ## Install development dependencies nuget restore LibskycoinNet.sln nuget install NUnit.Runners -Version 2.6.4 -OutputDirectory testrunner -build: install build-libc build-swig +build-sln: install-deps build-libc build-swig msbuild /p:Configuration=Release LibskycoinNet.sln msbuild /p:Configuration=Debug LibskycoinNet.sln - make build-libskycoin-net -test: build - mono ./testrunner/NUnit.Runners.2.6.4/tools/nunit-console.exe ./LibskycoinNetTest/bin/Release/LibskycoinNetTest.dll -labels \ No newline at end of file +build: build-sln build-libskycoin-net ## Build LibSkycoinNet Assembly + +test: build ## Run LibSkycoinNet test suite + mono ./testrunner/NUnit.Runners.2.6.4/tools/nunit-console.exe ./LibskycoinNetTest/bin/Release/LibskycoinNetTest.dll -labels + +help: + @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' From db74b80de2999ec1f23dc577fb14fb83215d5d66 Mon Sep 17 00:00:00 2001 From: Olemis Lang Date: Fri, 30 Nov 2018 00:05:49 -0500 Subject: [PATCH 71/73] [test] refs #8 - Remove redundant comments in test csproj --- LibskycoinNetTest/LibskycoinNetTest.csproj | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/LibskycoinNetTest/LibskycoinNetTest.csproj b/LibskycoinNetTest/LibskycoinNetTest.csproj index 7b27294e..21867960 100644 --- a/LibskycoinNetTest/LibskycoinNetTest.csproj +++ b/LibskycoinNetTest/LibskycoinNetTest.csproj @@ -8,7 +8,6 @@ LibskycoinNetTest LibskycoinNetTest v4.7 - true @@ -58,4 +57,4 @@ - \ No newline at end of file + From 387ecb1f7311a239f882592bb41cdd2c0287f037 Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Fri, 30 Nov 2018 09:49:52 -0500 Subject: [PATCH 72/73] [swig][makefile] refs #8 Repair https://github.com/simelo/libskycoin-dotnet/pull/11\#pullrequestreview-180123990 --- Makefile | 1 - swig/csharp_skycoin.mem.i | 9 +------ swig/include/swig.h | 56 --------------------------------------- 3 files changed, 1 insertion(+), 65 deletions(-) delete mode 100644 swig/include/swig.h diff --git a/Makefile b/Makefile index 4b6a1740..f9823ac5 100644 --- a/Makefile +++ b/Makefile @@ -44,7 +44,6 @@ build-swig: ## Generate csharp source code from SWIG interface definitions mkdir -p ./LibskycoinNet/skycoin rm -f swig/include/swig.h rm -f LibskycoinNet/skycoin/skycoinnet_wrap.c - cp -v gopath/src/github.com/skycoin/skycoin/include/swig.h swig/include/ swig -csharp -oldvarnames -v -namespace skycoin -Iswig/include -I$(INCLUDE_DIR) -outdir LibskycoinNet/skycoin -o LibskycoinNet/skycoin/skycoinnet_wrap.c $(LIBSWIG_DIR)/libdotnet.i build-libskycoin-net: build-swig build-libc ## Build shared library including SWIG wrappers diff --git a/swig/csharp_skycoin.mem.i b/swig/csharp_skycoin.mem.i index d8e3f165..80724f01 100644 --- a/swig/csharp_skycoin.mem.i +++ b/swig/csharp_skycoin.mem.i @@ -535,11 +535,4 @@ GoUint32 result = SKY_coin_Block_HashBody(p0, p1); return result; } -} - -// %rename(SKY_params_GetDistributionAddresses) CSharp_skycoin_SKY_params_GetDistributionAddresses; -// %inline{ -// void CSharp_skycoin_SKY_params_GetDistributionAddresses(coin__UxArray* __return_strings){ -// SKY_params_GetDistributionAddresses(__return_strings); -// } -// } \ No newline at end of file +} \ No newline at end of file diff --git a/swig/include/swig.h b/swig/include/swig.h deleted file mode 100644 index cd3d3f38..00000000 --- a/swig/include/swig.h +++ /dev/null @@ -1,56 +0,0 @@ - -typedef struct{ - GoUint8 data[33]; -} cipher_PubKey; - -typedef struct{ - GoUint8 data[32]; -} cipher_SecKey; - -typedef struct{ - GoUint8 data[20]; -} cipher_Ripemd160; - -typedef struct{ - GoUint8 data[65]; -} cipher_Sig; - -typedef struct{ - GoUint8 data[32]; -} cipher_SHA256; - -typedef struct{ - GoUint8 data[4]; -} cipher_Checksum; - -typedef struct{ - cipher_SecKey* data; - int count; -} cipher_SecKeys; - -typedef struct{ - cipher_PubKey* data; - int count; -} cipher_PubKeys; - -typedef struct{ - cipher_SHA256* data; - int count; -} cipher_SHA256s; - -typedef struct{ - coin__UxOut* data; - int count; -} coin_UxOutArray; - -typedef struct{ - cipher__Address* data; - int count; -} cipher_Addresses; - -typedef GoUint32_ (*FeeCalcFunc)(Transaction__Handle handle, unsigned long long * pFee, void* context); - -typedef struct { - FeeCalcFunc callback; - void* context; -} Fee_Calculator ; \ No newline at end of file From 342e5f391e3167fbfc37ff6b2f22249ad3784b2c Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Wed, 5 Dec 2018 16:30:02 -0500 Subject: [PATCH 73/73] [swig][project] refs #4 Changes in swig and csproj --- LibskycoinNet/LibskycoinNet.csproj | 24 +- LibskycoinNet/skycoin/InputTestData.cs | 59 --- LibskycoinNet/skycoin/InputTestDataJSON.cs | 59 --- LibskycoinNet/skycoin/KeysTestData.cs | 92 ---- LibskycoinNet/skycoin/KeysTestDataJSON.cs | 0 .../skycoin/SWIGTYPE_p_FeeCalcFunc.cs | 29 -- ...GTYPE_p_p_char.cs => SWIGTYPE_p_GoInt_.cs} | 8 +- ...SWIGTYPE_p_UnspentOutputsSummary_Handle.cs | 29 -- ...le.cs => SWIGTYPE_p_a_4__unsigned_char.cs} | 8 +- ...n__Handle_p_GoUint64__p_void__GoUint32_.cs | 29 -- ...nsigned_long_long_p_void__unsigned_int.cs} | 8 +- ...nsigned_long_long_p_void__unsigned_int.cs} | 8 +- LibskycoinNet/skycoin/SWIGTYPE_p_ulong.cs | 29 -- .../skycoin/SWIGTYPE_p_zeroFeeCalculator.cs | 29 -- LibskycoinNet/skycoin/cipher_SHA256.cs | 10 +- LibskycoinNet/skycoin/cipher__Address.cs | 10 +- LibskycoinNet/skycoin/coin__Transaction.cs | 10 +- LibskycoinNet/skycoin/encoder__StructField.cs | 94 ---- LibskycoinNet/skycoin/skycoin.cs | 66 ++- LibskycoinNet/skycoin/skycoinPINVOKE.cs | 56 +-- LibskycoinNet/skycoin/skycoinnet_wrap.c | 405 +++++++++--------- LibskycoinNet/skycoin/skycoinnet_wrap.h | 15 - gopath/src/github.com/skycoin/skycoin | 2 +- swig/csharp_java_typemap.i | 14 +- swig/libdotnet.i | 5 +- 25 files changed, 299 insertions(+), 799 deletions(-) delete mode 100644 LibskycoinNet/skycoin/InputTestData.cs delete mode 100644 LibskycoinNet/skycoin/InputTestDataJSON.cs delete mode 100644 LibskycoinNet/skycoin/KeysTestData.cs delete mode 100644 LibskycoinNet/skycoin/KeysTestDataJSON.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_FeeCalcFunc.cs rename LibskycoinNet/skycoin/{SWIGTYPE_p_p_char.cs => SWIGTYPE_p_GoInt_.cs} (84%) delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_UnspentOutputsSummary_Handle.cs rename LibskycoinNet/skycoin/{SWIGTYPE_p_Hash_Handle.cs => SWIGTYPE_p_a_4__unsigned_char.cs} (79%) delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_f_Transaction__Handle_p_GoUint64__p_void__GoUint32_.cs rename LibskycoinNet/skycoin/{SWIGTYPE_p_ReadableOutputSet_Handle.cs => SWIGTYPE_p_f_Transaction__Handle_p_unsigned_long_long_p_void__unsigned_int.cs} (68%) rename LibskycoinNet/skycoin/{SWIGTYPE_p_AddressUxOuts__Handle.cs => SWIGTYPE_p_p_f_Transaction__Handle_p_unsigned_long_long_p_void__unsigned_int.cs} (68%) delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_ulong.cs delete mode 100644 LibskycoinNet/skycoin/SWIGTYPE_p_zeroFeeCalculator.cs delete mode 100644 LibskycoinNet/skycoin/encoder__StructField.cs delete mode 100644 LibskycoinNet/skycoin/skycoinnet_wrap.h diff --git a/LibskycoinNet/LibskycoinNet.csproj b/LibskycoinNet/LibskycoinNet.csproj index a545e750..da73d2cb 100644 --- a/LibskycoinNet/LibskycoinNet.csproj +++ b/LibskycoinNet/LibskycoinNet.csproj @@ -67,17 +67,10 @@ - - - - - - - @@ -96,11 +89,8 @@ - - - @@ -139,20 +129,24 @@ - - - - - + + + + + + + + + diff --git a/LibskycoinNet/skycoin/InputTestData.cs b/LibskycoinNet/skycoin/InputTestData.cs deleted file mode 100644 index 378e402d..00000000 --- a/LibskycoinNet/skycoin/InputTestData.cs +++ /dev/null @@ -1,59 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class InputTestData : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal InputTestData(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(InputTestData obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~InputTestData() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_InputTestData(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public GoSlice Hashes { - set { - skycoinPINVOKE.set_InputTestData_Hashes(swigCPtr, GoSlice.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.get_InputTestData_Hashes(swigCPtr); - GoSlice ret = (cPtr == global::System.IntPtr.Zero) ? null : new GoSlice(cPtr, false); - return ret; - } - } - - public InputTestData() : this(skycoinPINVOKE.new_InputTestData(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin/InputTestDataJSON.cs b/LibskycoinNet/skycoin/InputTestDataJSON.cs deleted file mode 100644 index 2e47c12b..00000000 --- a/LibskycoinNet/skycoin/InputTestDataJSON.cs +++ /dev/null @@ -1,59 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class InputTestDataJSON : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal InputTestDataJSON(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(InputTestDataJSON obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~InputTestDataJSON() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_InputTestDataJSON(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public GoSlice Hashes { - set { - skycoinPINVOKE.set_InputTestDataJSON_Hashes(swigCPtr, GoSlice.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.get_InputTestDataJSON_Hashes(swigCPtr); - GoSlice ret = (cPtr == global::System.IntPtr.Zero) ? null : new GoSlice(cPtr, false); - return ret; - } - } - - public InputTestDataJSON() : this(skycoinPINVOKE.new_InputTestDataJSON(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin/KeysTestData.cs b/LibskycoinNet/skycoin/KeysTestData.cs deleted file mode 100644 index e792ea41..00000000 --- a/LibskycoinNet/skycoin/KeysTestData.cs +++ /dev/null @@ -1,92 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class KeysTestData : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal KeysTestData(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(KeysTestData obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~KeysTestData() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_KeysTestData(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public cipher__Address Address { - set { - skycoinPINVOKE.set_KeysTestData_Address(swigCPtr, cipher__Address.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.get_KeysTestData_Address(swigCPtr); - cipher__Address ret = (cPtr == global::System.IntPtr.Zero) ? null : new cipher__Address(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_GoUint8_ Secret { - set { - skycoinPINVOKE.set_KeysTestData_Secret(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.get_KeysTestData_Secret(swigCPtr); - SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); - return ret; - } - } - - public SWIGTYPE_p_GoUint8_ Public { - set { - skycoinPINVOKE.set_KeysTestData_Public(swigCPtr, SWIGTYPE_p_GoUint8_.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.get_KeysTestData_Public(swigCPtr); - SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); - return ret; - } - } - - public GoSlice Signatures { - set { - skycoinPINVOKE.set_KeysTestData_Signatures(swigCPtr, GoSlice.getCPtr(value)); - } - get { - global::System.IntPtr cPtr = skycoinPINVOKE.get_KeysTestData_Signatures(swigCPtr); - GoSlice ret = (cPtr == global::System.IntPtr.Zero) ? null : new GoSlice(cPtr, false); - return ret; - } - } - - public KeysTestData() : this(skycoinPINVOKE.new_KeysTestData(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin/KeysTestDataJSON.cs b/LibskycoinNet/skycoin/KeysTestDataJSON.cs deleted file mode 100644 index e69de29b..00000000 diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_FeeCalcFunc.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_FeeCalcFunc.cs deleted file mode 100644 index a3c2f082..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_FeeCalcFunc.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_FeeCalcFunc { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_FeeCalcFunc(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_FeeCalcFunc() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_FeeCalcFunc obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_p_char.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_GoInt_.cs similarity index 84% rename from LibskycoinNet/skycoin/SWIGTYPE_p_p_char.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_GoInt_.cs index 95573c1f..31a900ee 100644 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_p_char.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_GoInt_.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_p_char { +public class SWIGTYPE_p_GoInt_ { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_p_char(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_GoInt_(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_p_char() { + protected SWIGTYPE_p_GoInt_() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_p_char obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_GoInt_ obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_UnspentOutputsSummary_Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_UnspentOutputsSummary_Handle.cs deleted file mode 100644 index 68a3aeab..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_UnspentOutputsSummary_Handle.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_UnspentOutputsSummary_Handle { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_UnspentOutputsSummary_Handle(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_UnspentOutputsSummary_Handle() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_UnspentOutputsSummary_Handle obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_Hash_Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_a_4__unsigned_char.cs similarity index 79% rename from LibskycoinNet/skycoin/SWIGTYPE_p_Hash_Handle.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_a_4__unsigned_char.cs index 0e5a2b34..0adc706b 100644 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_Hash_Handle.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_a_4__unsigned_char.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_Hash_Handle { +public class SWIGTYPE_p_a_4__unsigned_char { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_Hash_Handle(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_a_4__unsigned_char(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_Hash_Handle() { + protected SWIGTYPE_p_a_4__unsigned_char() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_Hash_Handle obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_a_4__unsigned_char obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_f_Transaction__Handle_p_GoUint64__p_void__GoUint32_.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_f_Transaction__Handle_p_GoUint64__p_void__GoUint32_.cs deleted file mode 100644 index da9e37d8..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_f_Transaction__Handle_p_GoUint64__p_void__GoUint32_.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_f_Transaction__Handle_p_GoUint64__p_void__GoUint32_ { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_f_Transaction__Handle_p_GoUint64__p_void__GoUint32_(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_f_Transaction__Handle_p_GoUint64__p_void__GoUint32_() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_f_Transaction__Handle_p_GoUint64__p_void__GoUint32_ obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_ReadableOutputSet_Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_f_Transaction__Handle_p_unsigned_long_long_p_void__unsigned_int.cs similarity index 68% rename from LibskycoinNet/skycoin/SWIGTYPE_p_ReadableOutputSet_Handle.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_f_Transaction__Handle_p_unsigned_long_long_p_void__unsigned_int.cs index 7a5bfcd1..fb1d6523 100644 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_ReadableOutputSet_Handle.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_f_Transaction__Handle_p_unsigned_long_long_p_void__unsigned_int.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_ReadableOutputSet_Handle { +public class SWIGTYPE_p_f_Transaction__Handle_p_unsigned_long_long_p_void__unsigned_int { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_ReadableOutputSet_Handle(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_f_Transaction__Handle_p_unsigned_long_long_p_void__unsigned_int(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_ReadableOutputSet_Handle() { + protected SWIGTYPE_p_f_Transaction__Handle_p_unsigned_long_long_p_void__unsigned_int() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_ReadableOutputSet_Handle obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_f_Transaction__Handle_p_unsigned_long_long_p_void__unsigned_int obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_AddressUxOuts__Handle.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_p_f_Transaction__Handle_p_unsigned_long_long_p_void__unsigned_int.cs similarity index 68% rename from LibskycoinNet/skycoin/SWIGTYPE_p_AddressUxOuts__Handle.cs rename to LibskycoinNet/skycoin/SWIGTYPE_p_p_f_Transaction__Handle_p_unsigned_long_long_p_void__unsigned_int.cs index bbee6cc3..364f8d4a 100644 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_AddressUxOuts__Handle.cs +++ b/LibskycoinNet/skycoin/SWIGTYPE_p_p_f_Transaction__Handle_p_unsigned_long_long_p_void__unsigned_int.cs @@ -10,18 +10,18 @@ namespace skycoin { -public class SWIGTYPE_p_AddressUxOuts__Handle { +public class SWIGTYPE_p_p_f_Transaction__Handle_p_unsigned_long_long_p_void__unsigned_int { private global::System.Runtime.InteropServices.HandleRef swigCPtr; - internal SWIGTYPE_p_AddressUxOuts__Handle(global::System.IntPtr cPtr, bool futureUse) { + internal SWIGTYPE_p_p_f_Transaction__Handle_p_unsigned_long_long_p_void__unsigned_int(global::System.IntPtr cPtr, bool futureUse) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - protected SWIGTYPE_p_AddressUxOuts__Handle() { + protected SWIGTYPE_p_p_f_Transaction__Handle_p_unsigned_long_long_p_void__unsigned_int() { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_AddressUxOuts__Handle obj) { + internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_p_f_Transaction__Handle_p_unsigned_long_long_p_void__unsigned_int obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } } diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_ulong.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_ulong.cs deleted file mode 100644 index 64bf6e24..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_ulong.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_ulong { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_ulong(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_ulong() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_ulong obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/SWIGTYPE_p_zeroFeeCalculator.cs b/LibskycoinNet/skycoin/SWIGTYPE_p_zeroFeeCalculator.cs deleted file mode 100644 index ea56e204..00000000 --- a/LibskycoinNet/skycoin/SWIGTYPE_p_zeroFeeCalculator.cs +++ /dev/null @@ -1,29 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class SWIGTYPE_p_zeroFeeCalculator { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_zeroFeeCalculator(global::System.IntPtr cPtr, bool futureUse) { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_zeroFeeCalculator() { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_zeroFeeCalculator obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } -} - -} diff --git a/LibskycoinNet/skycoin/cipher_SHA256.cs b/LibskycoinNet/skycoin/cipher_SHA256.cs index cbdc3523..6e7de086 100644 --- a/LibskycoinNet/skycoin/cipher_SHA256.cs +++ b/LibskycoinNet/skycoin/cipher_SHA256.cs @@ -40,11 +40,6 @@ public virtual void Dispose() { } } - public _GoString_ getStr() { - _GoString_ ret = new _GoString_(skycoinPINVOKE.cipher_SHA256_getStr(swigCPtr), true); - return ret; - } - public int isEqual(cipher_SHA256 a) { int ret = skycoinPINVOKE.cipher_SHA256_isEqual(swigCPtr, cipher_SHA256.getCPtr(a)); return ret; @@ -58,6 +53,11 @@ public void assignTo(cipher_SHA256 data) { skycoinPINVOKE.cipher_SHA256_assignTo(swigCPtr, cipher_SHA256.getCPtr(data)); } + public _GoString_ getStr() { + _GoString_ ret = new _GoString_(skycoinPINVOKE.cipher_SHA256_getStr(swigCPtr), true); + return ret; + } + public SWIGTYPE_p_unsigned_char data { set { skycoinPINVOKE.set_cipher_SHA256_data(swigCPtr, SWIGTYPE_p_unsigned_char.getCPtr(value)); diff --git a/LibskycoinNet/skycoin/cipher__Address.cs b/LibskycoinNet/skycoin/cipher__Address.cs index c79b7339..28dacedd 100644 --- a/LibskycoinNet/skycoin/cipher__Address.cs +++ b/LibskycoinNet/skycoin/cipher__Address.cs @@ -40,6 +40,11 @@ public virtual void Dispose() { } } + public int isEqual(cipher__Address a) { + int ret = skycoinPINVOKE.cipher__Address_isEqual(swigCPtr, cipher__Address.getCPtr(a)); + return ret; + } + public char getVersion() { char ret = skycoinPINVOKE.cipher__Address_getVersion(swigCPtr); return ret; @@ -49,11 +54,6 @@ public void setVersion(char pValue) { skycoinPINVOKE.cipher__Address_setVersion(swigCPtr, pValue); } - public int isEqual(cipher__Address a) { - int ret = skycoinPINVOKE.cipher__Address_isEqual(swigCPtr, cipher__Address.getCPtr(a)); - return ret; - } - public byte Version { set { skycoinPINVOKE.set_cipher__Address_Version(swigCPtr, value); diff --git a/LibskycoinNet/skycoin/coin__Transaction.cs b/LibskycoinNet/skycoin/coin__Transaction.cs index 45925995..3598e357 100644 --- a/LibskycoinNet/skycoin/coin__Transaction.cs +++ b/LibskycoinNet/skycoin/coin__Transaction.cs @@ -40,9 +40,8 @@ public virtual void Dispose() { } } - public int setInnerHash(cipher_SHA256 h) { - int ret = skycoinPINVOKE.coin__Transaction_setInnerHash(swigCPtr, cipher_SHA256.getCPtr(h)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public int isEqual(coin__Transaction t) { + int ret = skycoinPINVOKE.coin__Transaction_isEqual(swigCPtr, coin__Transaction.getCPtr(t)); return ret; } @@ -51,8 +50,9 @@ public cipher_SHA256 GetInnerHash() { return ret; } - public int isEqual(coin__Transaction t) { - int ret = skycoinPINVOKE.coin__Transaction_isEqual(swigCPtr, coin__Transaction.getCPtr(t)); + public int setInnerHash(cipher_SHA256 h) { + int ret = skycoinPINVOKE.coin__Transaction_setInnerHash(swigCPtr, cipher_SHA256.getCPtr(h)); + if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } diff --git a/LibskycoinNet/skycoin/encoder__StructField.cs b/LibskycoinNet/skycoin/encoder__StructField.cs deleted file mode 100644 index ba01c69f..00000000 --- a/LibskycoinNet/skycoin/encoder__StructField.cs +++ /dev/null @@ -1,94 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.12 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace skycoin { - -public class encoder__StructField : global::System.IDisposable { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - protected bool swigCMemOwn; - - internal encoder__StructField(global::System.IntPtr cPtr, bool cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - internal static global::System.Runtime.InteropServices.HandleRef getCPtr(encoder__StructField obj) { - return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; - } - - ~encoder__StructField() { - Dispose(); - } - - public virtual void Dispose() { - lock(this) { - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) { - swigCMemOwn = false; - skycoinPINVOKE.delete_encoder__StructField(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - global::System.GC.SuppressFinalize(this); - } - } - - public SWIGTYPE_p_GoString_ Name { - set { - skycoinPINVOKE.set_encoder__StructField_Name(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.get_encoder__StructField_Name(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public uint Kind { - set { - skycoinPINVOKE.set_encoder__StructField_Kind(swigCPtr, value); - } - get { - uint ret = skycoinPINVOKE.get_encoder__StructField_Kind(swigCPtr); - return ret; - } - } - - public SWIGTYPE_p_GoString_ Type { - set { - skycoinPINVOKE.set_encoder__StructField_Type(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.get_encoder__StructField_Type(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public SWIGTYPE_p_GoString_ Tag { - set { - skycoinPINVOKE.set_encoder__StructField_Tag(swigCPtr, SWIGTYPE_p_GoString_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - } - get { - SWIGTYPE_p_GoString_ ret = new SWIGTYPE_p_GoString_(skycoinPINVOKE.get_encoder__StructField_Tag(swigCPtr), true); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } - - public encoder__StructField() : this(skycoinPINVOKE.new_encoder__StructField(), true) { - } - -} - -} diff --git a/LibskycoinNet/skycoin/skycoin.cs b/LibskycoinNet/skycoin/skycoin.cs index c702172b..47c58c8b 100644 --- a/LibskycoinNet/skycoin/skycoin.cs +++ b/LibskycoinNet/skycoin/skycoin.cs @@ -11,6 +11,30 @@ namespace skycoin { public class skycoin { + public static int equalSlices(GoSlice slice1, GoSlice slice2, int elem_size) { + int ret = skycoinPINVOKE.equalSlices(GoSlice.getCPtr(slice1), GoSlice.getCPtr(slice2), elem_size); + return ret; + } + + public static int equalTransactions(coin__Transaction t1, coin__Transaction t2) { + int ret = skycoinPINVOKE.equalTransactions(coin__Transaction.getCPtr(t1), coin__Transaction.getCPtr(t2)); + return ret; + } + + public static int equalTransactionsArrays(SWIGTYPE_p_GoSlice_ pTxs1, SWIGTYPE_p_GoSlice_ pTxs2) { + int ret = skycoinPINVOKE.equalTransactionsArrays(SWIGTYPE_p_GoSlice_.getCPtr(pTxs1), SWIGTYPE_p_GoSlice_.getCPtr(pTxs2)); + return ret; + } + + public static int equalBlockHeaders(coin__BlockHeader bh1, coin__BlockHeader bh2) { + int ret = skycoinPINVOKE.equalBlockHeaders(coin__BlockHeader.getCPtr(bh1), coin__BlockHeader.getCPtr(bh2)); + return ret; + } + + public static void destroy_cipher_SecKeys(cipher_SecKeys p) { + skycoinPINVOKE.destroy_cipher_SecKeys(cipher_SecKeys.getCPtr(p)); + } + public static GoSlice new_GoSlicep() { global::System.IntPtr cPtr = skycoinPINVOKE.new_GoSlicep(); GoSlice ret = (cPtr == global::System.IntPtr.Zero) ? null : new GoSlice(cPtr, false); @@ -44,10 +68,9 @@ public static SWIGTYPE_p_GoUint8_ new_GoUint8Ptr() { return ret; } - public static SWIGTYPE_p_GoUint8_ copy_GoUint8Ptr(SWIGTYPE_p_GoUint8_ value) { - global::System.IntPtr cPtr = skycoinPINVOKE.copy_GoUint8Ptr(SWIGTYPE_p_GoUint8_.getCPtr(value)); + public static SWIGTYPE_p_GoUint8_ copy_GoUint8Ptr(byte value) { + global::System.IntPtr cPtr = skycoinPINVOKE.copy_GoUint8Ptr(value); SWIGTYPE_p_GoUint8_ ret = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_GoUint8_(cPtr, false); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } @@ -55,13 +78,12 @@ public static void delete_GoUint8Ptr(SWIGTYPE_p_GoUint8_ obj) { skycoinPINVOKE.delete_GoUint8Ptr(SWIGTYPE_p_GoUint8_.getCPtr(obj)); } - public static void GoUint8Ptr_assign(SWIGTYPE_p_GoUint8_ obj, SWIGTYPE_p_GoUint8_ value) { - skycoinPINVOKE.GoUint8Ptr_assign(SWIGTYPE_p_GoUint8_.getCPtr(obj), SWIGTYPE_p_GoUint8_.getCPtr(value)); - if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); + public static void GoUint8Ptr_assign(SWIGTYPE_p_GoUint8_ obj, byte value) { + skycoinPINVOKE.GoUint8Ptr_assign(SWIGTYPE_p_GoUint8_.getCPtr(obj), value); } - public static SWIGTYPE_p_GoUint8_ GoUint8Ptr_value(SWIGTYPE_p_GoUint8_ obj) { - SWIGTYPE_p_GoUint8_ ret = new SWIGTYPE_p_GoUint8_(skycoinPINVOKE.GoUint8Ptr_value(SWIGTYPE_p_GoUint8_.getCPtr(obj)), true); + public static byte GoUint8Ptr_value(SWIGTYPE_p_GoUint8_ obj) { + byte ret = skycoinPINVOKE.GoUint8Ptr_value(SWIGTYPE_p_GoUint8_.getCPtr(obj)); return ret; } @@ -1176,30 +1198,6 @@ public static uint SKY_coin_Block_HashBody(SWIGTYPE_p_Block__Handle p0, cipher_S return ret; } - public static int equalSlices(GoSlice slice1, GoSlice slice2, int elem_size) { - int ret = skycoinPINVOKE.equalSlices(GoSlice.getCPtr(slice1), GoSlice.getCPtr(slice2), elem_size); - return ret; - } - - public static int equalTransactions(coin__Transaction t1, coin__Transaction t2) { - int ret = skycoinPINVOKE.equalTransactions(coin__Transaction.getCPtr(t1), coin__Transaction.getCPtr(t2)); - return ret; - } - - public static int equalTransactionsArrays(GoSlice pTxs1, GoSlice pTxs2) { - int ret = skycoinPINVOKE.equalTransactionsArrays(GoSlice.getCPtr (pTxs1), GoSlice.getCPtr (pTxs2)); - return ret; - } - - public static int equalBlockHeaders(coin__BlockHeader bh1, coin__BlockHeader bh2) { - int ret = skycoinPINVOKE.equalBlockHeaders(coin__BlockHeader.getCPtr(bh1), coin__BlockHeader.getCPtr(bh2)); - return ret; - } - - public static void destroy_cipher_SecKeys(cipher_SecKeys p) { - skycoinPINVOKE.destroy_cipher_SecKeys(cipher_SecKeys.getCPtr(p)); - } - public static uint SKY_coin_NewBlock(SWIGTYPE_p_Block__Handle p0, ulong p1, cipher_SecKey p2, SWIGTYPE_p_Transactions__Handle p3, SWIGTYPE_p_FeeCalculator p4, SWIGTYPE_p_Block__Handle p5) { var tmpp2 = cipher_SecKey.getCPtr (p2); { @@ -3749,8 +3747,8 @@ public static uint SKY_coin_Create_Transactions(SWIGTYPE_p_Transactions__Handle return ret; } - public static uint SKY_coin_GetTransactionsObject(SWIGTYPE_p_Transactions__Handle p0, GoSlice p1) { - uint ret = skycoinPINVOKE.SKY_coin_GetTransactionsObject(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), GoSlice.getCPtr (p1)); + public static uint SKY_coin_GetTransactionsObject(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_p_GoSlice_ p1) { + uint ret = skycoinPINVOKE.SKY_coin_GetTransactionsObject(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_p_GoSlice_.getCPtr(p1)); if (skycoinPINVOKE.SWIGPendingException.Pending) throw skycoinPINVOKE.SWIGPendingException.Retrieve(); return ret; } diff --git a/LibskycoinNet/skycoin/skycoinPINVOKE.cs b/LibskycoinNet/skycoin/skycoinPINVOKE.cs index 6445636b..c6f2d059 100644 --- a/LibskycoinNet/skycoin/skycoinPINVOKE.cs +++ b/LibskycoinNet/skycoin/skycoinPINVOKE.cs @@ -188,6 +188,21 @@ static skycoinPINVOKE() { } + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_equalSlices")] + public static extern int equalSlices(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_equalTransactions")] + public static extern int equalTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_equalTransactionsArrays")] + public static extern int equalTransactionsArrays(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_equalBlockHeaders")] + public static extern int equalBlockHeaders(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_destroy_cipher_SecKeys")] + public static extern void destroy_cipher_SecKeys(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_GoSlicep")] public static extern global::System.IntPtr new_GoSlicep(); @@ -207,16 +222,16 @@ static skycoinPINVOKE() { public static extern global::System.IntPtr new_GoUint8Ptr(); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_copy_GoUint8Ptr")] - public static extern global::System.IntPtr copy_GoUint8Ptr(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern global::System.IntPtr copy_GoUint8Ptr(byte jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_GoUint8Ptr")] public static extern void delete_GoUint8Ptr(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoUint8Ptr_assign")] - public static extern void GoUint8Ptr_assign(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + public static extern void GoUint8Ptr_assign(global::System.Runtime.InteropServices.HandleRef jarg1, byte jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_GoUint8Ptr_value")] - public static extern global::System.IntPtr GoUint8Ptr_value(global::System.Runtime.InteropServices.HandleRef jarg1); + public static extern byte GoUint8Ptr_value(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_new_GoStringp")] public static extern global::System.IntPtr new_GoStringp(); @@ -854,21 +869,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_SKY_coin_Block_HashBody__SWIG_0")] public static extern uint SKY_coin_Block_HashBody__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_equalSlices")] - public static extern int equalSlices(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_equalTransactions")] - public static extern int equalTransactions(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_equalTransactionsArrays")] - public static extern int equalTransactionsArrays(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_equalBlockHeaders")] - public static extern int equalBlockHeaders(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_destroy_cipher_SecKeys")] - public static extern void destroy_cipher_SecKeys(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_PubKey_isEqual")] public static extern int cipher_PubKey_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -959,9 +959,6 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cipher_Sig")] public static extern void delete_cipher_Sig(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256_getStr")] - public static extern global::System.IntPtr cipher_SHA256_getStr(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256_isEqual")] public static extern int cipher_SHA256_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -971,6 +968,9 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256_assignTo")] public static extern void cipher_SHA256_assignTo(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher_SHA256_getStr")] + public static extern global::System.IntPtr cipher_SHA256_getStr(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cipher_SHA256_data")] public static extern void set_cipher_SHA256_data(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); @@ -2420,15 +2420,15 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_api__NetworkConnectionsFilter")] public static extern void delete_api__NetworkConnectionsFilter(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Address_isEqual")] + public static extern int cipher__Address_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Address_getVersion")] public static extern char cipher__Address_getVersion(global::System.Runtime.InteropServices.HandleRef jarg1); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Address_setVersion")] public static extern void cipher__Address_setVersion(global::System.Runtime.InteropServices.HandleRef jarg1, char jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_cipher__Address_isEqual")] - public static extern int cipher__Address_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_cipher__Address_Version")] public static extern void set_cipher__Address_Version(global::System.Runtime.InteropServices.HandleRef jarg1, byte jarg2); @@ -2582,14 +2582,14 @@ static skycoinPINVOKE() { [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_delete_cli__SendAmount")] public static extern void delete_cli__SendAmount(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_setInnerHash")] - public static extern int coin__Transaction_setInnerHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_isEqual")] + public static extern int coin__Transaction_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_GetInnerHash")] public static extern global::System.IntPtr coin__Transaction_GetInnerHash(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_isEqual")] - public static extern int coin__Transaction_isEqual(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_coin__Transaction_setInnerHash")] + public static extern int coin__Transaction_setInnerHash(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); [global::System.Runtime.InteropServices.DllImport("skycoin", EntryPoint="CSharp_skycoin_set_coin__Transaction_Length")] public static extern void set_coin__Transaction_Length(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2); diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.c b/LibskycoinNet/skycoin/skycoinnet_wrap.c index 103d308e..a45c66a4 100644 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.c +++ b/LibskycoinNet/skycoin/skycoinnet_wrap.c @@ -281,6 +281,62 @@ SWIGEXPORT void SWIGSTDCALL SWIGRegisterStringCallback_skycoin(SWIG_CSharpString #include "skyerrors.h" + int equalSlices(GoSlice* slice1, GoSlice* slice2, int elem_size){ + if(slice1->len != slice2->len) + return 0; + return memcmp(slice1->data, slice2->data, slice1->len * elem_size) == 0; + } + int equalTransactions(coin__Transaction* t1, coin__Transaction* t2){ + if( t1->Length != t2->Length || t1->Type != t2->Type ){ + return 0; + } + if( memcmp(&t1->InnerHash, &t2->InnerHash, sizeof(cipher__SHA256)) != 0 ) + return 0; + if(!equalSlices((GoSlice*)&t1->Sigs, (GoSlice*)&t2->Sigs, sizeof(cipher__Sig))) + return 0; + if(!equalSlices((GoSlice*)&t1->In, (GoSlice*)&t2->In, sizeof(cipher__SHA256))) + return 0; + if(!equalSlices((GoSlice*)&t1->Out, (GoSlice*)&t2->Out, sizeof(coin__TransactionOutput))) + return 0; + return 1; + } + int equalTransactionsArrays(coin__Transactions* pTxs1, coin__Transactions* pTxs2){ + if( pTxs1->len != pTxs2->len ) + return 0; + coin__Transaction* pTx1 = pTxs1->data; + coin__Transaction* pTx2 = pTxs2->data; + int i; + for(i = 0; i < pTxs1->len; i++){ + if(!equalTransactions(pTx1, pTx2)) + return 0; + pTx1++; + pTx2++; + } + return 1; + } + int equalBlockHeaders(coin__BlockHeader* bh1, coin__BlockHeader* bh2){ + if( bh1->Version != bh2->Version || bh1->Time != bh2->Time || + bh1->BkSeq != bh2->BkSeq || bh1->Fee != bh2->Fee) + return 0; + if( memcmp( &bh1->PrevHash, bh2->PrevHash, sizeof(bh2->PrevHash) ) != 0 ) + return 0; + if( memcmp( &bh1->BodyHash, bh2->PrevHash, sizeof(bh2->BodyHash) ) != 0 ) + return 0; + if( memcmp( &bh1->UxHash, bh2->PrevHash, sizeof(bh2->UxHash) ) != 0 ) + return 0; + return 1; + } + + + void destroy_cipher_SecKeys(cipher_SecKeys* p){ + if( p != NULL ){ + if( p->data != NULL ){ + free( p->data ); + } + } + } + + static GoSlice *new_GoSlicep() { return (GoSlice *) calloc(1,sizeof(GoSlice)); } @@ -1915,62 +1971,6 @@ GoUint32_ _WrapperFeeCalculator(Transaction__Handle handle, GoUint64_* pFee, voi return 0; } - - int equalSlices(GoSlice* slice1, GoSlice* slice2, int elem_size){ - if(slice1->len != slice2->len) - return 0; - return memcmp(slice1->data, slice2->data, slice1->len * elem_size) == 0; - } - int equalTransactions(coin__Transaction* t1, coin__Transaction* t2){ - if( t1->Length != t2->Length || t1->Type != t2->Type ){ - return 0; - } - if( memcmp(&t1->InnerHash, &t2->InnerHash, sizeof(cipher__SHA256)) != 0 ) - return 0; - if(!equalSlices((GoSlice*)&t1->Sigs, (GoSlice*)&t2->Sigs, sizeof(cipher__Sig))) - return 0; - if(!equalSlices((GoSlice*)&t1->In, (GoSlice*)&t2->In, sizeof(cipher__SHA256))) - return 0; - if(!equalSlices((GoSlice*)&t1->Out, (GoSlice*)&t2->Out, sizeof(coin__TransactionOutput))) - return 0; - return 1; - } - int equalTransactionsArrays(coin__Transactions* pTxs1, coin__Transactions* pTxs2){ - if( pTxs1->len != pTxs2->len ) - return 0; - coin__Transaction* pTx1 = pTxs1->data; - coin__Transaction* pTx2 = pTxs2->data; - int i; - for(i = 0; i < pTxs1->len; i++){ - if(!equalTransactions(pTx1, pTx2)) - return 0; - pTx1++; - pTx2++; - } - return 1; - } - int equalBlockHeaders(coin__BlockHeader* bh1, coin__BlockHeader* bh2){ - if( bh1->Version != bh2->Version || bh1->Time != bh2->Time || - bh1->BkSeq != bh2->BkSeq || bh1->Fee != bh2->Fee) - return 0; - if( memcmp( &bh1->PrevHash, bh2->PrevHash, sizeof(bh2->PrevHash) ) != 0 ) - return 0; - if( memcmp( &bh1->BodyHash, bh2->PrevHash, sizeof(bh2->BodyHash) ) != 0 ) - return 0; - if( memcmp( &bh1->UxHash, bh2->PrevHash, sizeof(bh2->UxHash) ) != 0 ) - return 0; - return 1; - } - - - void destroy_cipher_SecKeys(cipher_SecKeys* p){ - if( p != NULL ){ - if( p->data != NULL ){ - free( p->data ); - } - } - } - SWIGINTERN int cipher_PubKey_isEqual(cipher_PubKey *self,cipher_PubKey *a){ return memcmp(self->data, a->data, sizeof(a->data)) == 0; } @@ -2014,12 +2014,6 @@ SWIGINTERN void cipher_Sig_assignFrom(cipher_Sig *self,void *data){ SWIGINTERN void cipher_Sig_assignTo(cipher_Sig *self,void *data){ memcpy(data, &self->data, sizeof(self->data)); } -SWIGINTERN _GoString_ cipher_SHA256_getStr(cipher_SHA256 *self){ - _GoString_ str; - str.p = (const char*)self->data; - str.n = strlen(str.p); - return str; - } SWIGINTERN int cipher_SHA256_isEqual(cipher_SHA256 *self,cipher_SHA256 *a){ return memcmp(self->data, a->data, sizeof(a->data)) == 0; } @@ -2029,6 +2023,12 @@ SWIGINTERN void cipher_SHA256_assignFrom(cipher_SHA256 *self,cipher_SHA256 *data SWIGINTERN void cipher_SHA256_assignTo(cipher_SHA256 *self,cipher_SHA256 *data){ memcpy(data->data, &self->data, sizeof(self->data)); } +SWIGINTERN _GoString_ cipher_SHA256_getStr(cipher_SHA256 *self){ + _GoString_ str; + str.p = (const char*)self->data; + str.n = strlen(str.p); + return str; + } SWIGINTERN int cipher_Checksum_isEqual(cipher_Checksum *self,cipher_Checksum *a){ return memcmp(self->data, a->data, sizeof(a->data)) == 0; } @@ -2214,38 +2214,37 @@ SWIGINTERN int GoSlice_getAtString(GoSlice *self,int index,_GoString_ *outs){ } return 1; } -SWIGINTERN char cipher__Address_getVersion(cipher__Address *self){ - return self->Version; - } -SWIGINTERN void cipher__Address_setVersion(cipher__Address *self,char pValue){ - self->Version = pValue; - } SWIGINTERN int cipher__Address_isEqual(cipher__Address *self,cipher__Address *a){ if( self->Version == a->Version ){ return memcmp(self->Key, a->Key, sizeof(a->Key)) == 0; } return 0; } +SWIGINTERN char cipher__Address_getVersion(cipher__Address *self){ + return self->Version; + } +SWIGINTERN void cipher__Address_setVersion(cipher__Address *self,char pValue){ + self->Version = pValue; + } SWIGINTERN int cipher__BitcoinAddress_isEqual(cipher__BitcoinAddress *self,cipher__BitcoinAddress *a){ if( self->Version == a->Version ){ return memcmp(self->Key, a->Key, sizeof(a->Key)) == 0; } return 0; } +SWIGINTERN int coin__Transaction_isEqual(coin__Transaction *self,coin__Transaction *t){ + return equalTransactions(self, t); + } +SWIGINTERN cipher_SHA256 coin__Transaction_GetInnerHash(coin__Transaction *self){ + cipher_SHA256 h; + cipher_SHA256_assignFrom(&h,self->InnerHash); + return h; + } SWIGINTERN int coin__Transaction_setInnerHash(coin__Transaction *self,cipher_SHA256 h){ memset(self->InnerHash, 0, sizeof(cipher__SHA256)); cipher_SHA256_assignFrom(self->InnerHash,&h); return 0; } -SWIGINTERN cipher_SHA256 coin__Transaction_GetInnerHash(coin__Transaction *self){ - cipher_SHA256 h; -memset(&h, 0, sizeof(cipher__SHA256)); - cipher_SHA256_assignFrom(&h,&self->InnerHash); - return h; - } -SWIGINTERN int coin__Transaction_isEqual(coin__Transaction *self,coin__Transaction *t){ - return equalTransactions(self, t); - } SWIGINTERN int coin__TransactionOutput_isEqual(coin__TransactionOutput *self,coin__TransactionOutput *t){ if( self->Coins != t->Coins || self->Hours != t->Hours ){ @@ -2274,6 +2273,72 @@ SWIGINTERN int coin__UxOut_isEqual(coin__UxOut *self,coin__UxOut *u){ extern "C" { #endif +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalSlices(void * jarg1, void * jarg2, int jarg3) { + int jresult ; + GoSlice *arg1 = (GoSlice *) 0 ; + GoSlice *arg2 = (GoSlice *) 0 ; + int arg3 ; + int result; + + arg1 = (GoSlice *)jarg1; + arg2 = (GoSlice *)jarg2; + arg3 = (int)jarg3; + result = (int)equalSlices(arg1,arg2,arg3); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalTransactions(void * jarg1, void * jarg2) { + int jresult ; + coin__Transaction *arg1 = (coin__Transaction *) 0 ; + coin__Transaction *arg2 = (coin__Transaction *) 0 ; + int result; + + arg1 = (coin__Transaction *)jarg1; + arg2 = (coin__Transaction *)jarg2; + result = (int)equalTransactions(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalTransactionsArrays(void * jarg1, void * jarg2) { + int jresult ; + coin__Transactions *arg1 = (coin__Transactions *) 0 ; + coin__Transactions *arg2 = (coin__Transactions *) 0 ; + int result; + + arg1 = (coin__Transactions *)jarg1; + arg2 = (coin__Transactions *)jarg2; + result = (int)equalTransactionsArrays(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalBlockHeaders(void * jarg1, void * jarg2) { + int jresult ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + coin__BlockHeader *arg2 = (coin__BlockHeader *) 0 ; + int result; + + arg1 = (coin__BlockHeader *)jarg1; + arg2 = (coin__BlockHeader *)jarg2; + result = (int)equalBlockHeaders(arg1,arg2); + jresult = result; + return jresult; +} + + +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_destroy_cipher_SecKeys(void * jarg1) { + cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; + + arg1 = (cipher_SecKeys *)jarg1; + destroy_cipher_SecKeys(arg1); +} + + SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_GoSlicep() { void * jresult ; GoSlice *result = 0 ; @@ -2352,18 +2417,12 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_new_GoUint8Ptr() { } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_GoUint8Ptr(void * jarg1) { +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_copy_GoUint8Ptr(unsigned char jarg1) { void * jresult ; GoUint8_ arg1 ; - GoUint8_ *argp1 ; GoUint8_ *result = 0 ; - argp1 = (GoUint8_ *)jarg1; - if (!argp1) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint8_", 0); - return 0; - } - arg1 = *argp1; + arg1 = (GoUint8_)jarg1; result = (GoUint8_ *)copy_GoUint8Ptr(arg1); jresult = (void *)result; return jresult; @@ -2378,34 +2437,24 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_GoUint8Ptr(void * jarg1) { } -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoUint8Ptr_assign(void * jarg1, void * jarg2) { +SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_GoUint8Ptr_assign(void * jarg1, unsigned char jarg2) { GoUint8_ *arg1 = (GoUint8_ *) 0 ; GoUint8_ arg2 ; - GoUint8_ *argp2 ; arg1 = (GoUint8_ *)jarg1; - argp2 = (GoUint8_ *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null GoUint8_", 0); - return ; - } - arg2 = *argp2; + arg2 = (GoUint8_)jarg2; GoUint8Ptr_assign(arg1,arg2); } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_GoUint8Ptr_value(void * jarg1) { - void * jresult ; +SWIGEXPORT unsigned char SWIGSTDCALL CSharp_skycoin_GoUint8Ptr_value(void * jarg1) { + unsigned char jresult ; GoUint8_ *arg1 = (GoUint8_ *) 0 ; GoUint8_ result; arg1 = (GoUint8_ *)jarg1; result = GoUint8Ptr_value(arg1); - { - GoUint8_ * resultptr = (GoUint8_ *) malloc(sizeof(GoUint8_)); - memmove(resultptr, &result, sizeof(GoUint8_)); - jresult = resultptr; - } + jresult = result; return jresult; } @@ -5362,72 +5411,6 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Block_HashBody__SWIG } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalSlices(void * jarg1, void * jarg2, int jarg3) { - int jresult ; - GoSlice *arg1 = (GoSlice *) 0 ; - GoSlice *arg2 = (GoSlice *) 0 ; - int arg3 ; - int result; - - arg1 = (GoSlice *)jarg1; - arg2 = (GoSlice *)jarg2; - arg3 = (int)jarg3; - result = (int)equalSlices(arg1,arg2,arg3); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalTransactions(void * jarg1, void * jarg2) { - int jresult ; - coin__Transaction *arg1 = (coin__Transaction *) 0 ; - coin__Transaction *arg2 = (coin__Transaction *) 0 ; - int result; - - arg1 = (coin__Transaction *)jarg1; - arg2 = (coin__Transaction *)jarg2; - result = (int)equalTransactions(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalTransactionsArrays(GoSlice_ * jarg1, GoSlice_ * jarg2) { - int jresult ; - coin__Transactions *arg1 = (coin__Transactions *) 0 ; - coin__Transactions *arg2 = (coin__Transactions *) 0 ; - int result; - - arg1 = (coin__Transactions *)jarg1; - arg2 = (coin__Transactions *)jarg2; - result = (int)equalTransactionsArrays(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_equalBlockHeaders(void * jarg1, void * jarg2) { - int jresult ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - coin__BlockHeader *arg2 = (coin__BlockHeader *) 0 ; - int result; - - arg1 = (coin__BlockHeader *)jarg1; - arg2 = (coin__BlockHeader *)jarg2; - result = (int)equalBlockHeaders(arg1,arg2); - jresult = result; - return jresult; -} - - -SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_destroy_cipher_SecKeys(void * jarg1) { - cipher_SecKeys *arg1 = (cipher_SecKeys *) 0 ; - - arg1 = (cipher_SecKeys *)jarg1; - destroy_cipher_SecKeys(arg1); -} - - SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_PubKey_isEqual(void * jarg1, void * jarg2) { int jresult ; cipher_PubKey *arg1 = (cipher_PubKey *) 0 ; @@ -5772,22 +5755,6 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cipher_Sig(void * jarg1) { } -SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_SHA256_getStr(void * jarg1) { - void * jresult ; - cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; - _GoString_ result; - - arg1 = (cipher_SHA256 *)jarg1; - result = cipher_SHA256_getStr(arg1); - { - _GoString_ * resultptr = (_GoString_ *) malloc(sizeof(_GoString_)); - memmove(resultptr, &result, sizeof(_GoString_)); - jresult = resultptr; - } - return jresult; -} - - SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher_SHA256_isEqual(void * jarg1, void * jarg2) { int jresult ; cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; @@ -5822,6 +5789,22 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher_SHA256_assignTo(void * jarg1, } +SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_cipher_SHA256_getStr(void * jarg1) { + void * jresult ; + cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; + _GoString_ result; + + arg1 = (cipher_SHA256 *)jarg1; + result = cipher_SHA256_getStr(arg1); + { + _GoString_ * resultptr = (_GoString_ *) malloc(sizeof(_GoString_)); + memmove(resultptr, &result, sizeof(_GoString_)); + jresult = resultptr; + } + return jresult; +} + + SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher_SHA256_data(void * jarg1, void * jarg2) { cipher_SHA256 *arg1 = (cipher_SHA256 *) 0 ; GoUint8 *arg2 ; @@ -13681,7 +13664,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_Create_Transactions( } -SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetTransactionsObject(void * jarg1, GoSlice_ * jarg2) { +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_skycoin_SKY_coin_GetTransactionsObject(void * jarg1, void * jarg2) { unsigned int jresult ; Transactions__Handle arg1 ; coin__UxArray **arg2 = (coin__UxArray **) 0 ; @@ -14165,6 +14148,20 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_api__NetworkConnectionsFilter( } +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher__Address_isEqual(void * jarg1, void * jarg2) { + int jresult ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + int result; + + arg1 = (cipher__Address *)jarg1; + arg2 = (cipher__Address *)jarg2; + result = (int)cipher__Address_isEqual(arg1,arg2); + jresult = result; + return jresult; +} + + SWIGEXPORT char SWIGSTDCALL CSharp_skycoin_cipher__Address_getVersion(void * jarg1) { char jresult ; cipher__Address *arg1 = (cipher__Address *) 0 ; @@ -14187,20 +14184,6 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_cipher__Address_setVersion(void * jar } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_cipher__Address_isEqual(void * jarg1, void * jarg2) { - int jresult ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - int result; - - arg1 = (cipher__Address *)jarg1; - arg2 = (cipher__Address *)jarg2; - result = (int)cipher__Address_isEqual(arg1,arg2); - jresult = result; - return jresult; -} - - SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_set_cipher__Address_Version(void * jarg1, unsigned char jarg2) { cipher__Address *arg1 = (cipher__Address *) 0 ; GoUint8_ arg2 ; @@ -14779,21 +14762,15 @@ SWIGEXPORT void SWIGSTDCALL CSharp_skycoin_delete_cli__SendAmount(void * jarg1) } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__Transaction_setInnerHash(void * jarg1, void * jarg2) { +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__Transaction_isEqual(void * jarg1, void * jarg2) { int jresult ; coin__Transaction *arg1 = (coin__Transaction *) 0 ; - cipher_SHA256 arg2 ; - cipher_SHA256 *argp2 ; + coin__Transaction *arg2 = (coin__Transaction *) 0 ; int result; arg1 = (coin__Transaction *)jarg1; - argp2 = (cipher_SHA256 *)jarg2; - if (!argp2) { - SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null cipher_SHA256", 0); - return 0; - } - arg2 = *argp2; - result = (int)coin__Transaction_setInnerHash(arg1,arg2); + arg2 = (coin__Transaction *)jarg2; + result = (int)coin__Transaction_isEqual(arg1,arg2); jresult = result; return jresult; } @@ -14815,15 +14792,21 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_skycoin_coin__Transaction_GetInnerHash(void } -SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__Transaction_isEqual(void * jarg1, void * jarg2) { +SWIGEXPORT int SWIGSTDCALL CSharp_skycoin_coin__Transaction_setInnerHash(void * jarg1, void * jarg2) { int jresult ; coin__Transaction *arg1 = (coin__Transaction *) 0 ; - coin__Transaction *arg2 = (coin__Transaction *) 0 ; + cipher_SHA256 arg2 ; + cipher_SHA256 *argp2 ; int result; arg1 = (coin__Transaction *)jarg1; - arg2 = (coin__Transaction *)jarg2; - result = (int)coin__Transaction_isEqual(arg1,arg2); + argp2 = (cipher_SHA256 *)jarg2; + if (!argp2) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null cipher_SHA256", 0); + return 0; + } + arg2 = *argp2; + result = (int)coin__Transaction_setInnerHash(arg1,arg2); jresult = result; return jresult; } diff --git a/LibskycoinNet/skycoin/skycoinnet_wrap.h b/LibskycoinNet/skycoin/skycoinnet_wrap.h deleted file mode 100644 index ca9c7383..00000000 --- a/LibskycoinNet/skycoin/skycoinnet_wrap.h +++ /dev/null @@ -1,15 +0,0 @@ -/* ---------------------------------------------------------------------------- - * This file was automatically generated by SWIG (http://www.swig.org). - * Version 3.0.12 - * - * This file is not intended to be easily readable and contains a number of - * coding conventions designed to improve portability and efficiency. Do not make - * changes to this file unless you know what you are doing--modify the SWIG - * interface file instead. - * ----------------------------------------------------------------------------- */ - -#ifndef SWIG_skycoin_WRAP_H_ -#define SWIG_skycoin_WRAP_H_ - - -#endif diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index 8d49f360..8000506e 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit 8d49f36088303e08f822ac8969acefbc009431a6 +Subproject commit 8000506eeeb2cc0415ce10f80628de5eab162eaf diff --git a/swig/csharp_java_typemap.i b/swig/csharp_java_typemap.i index eb9d964f..5d67cf24 100644 --- a/swig/csharp_java_typemap.i +++ b/swig/csharp_java_typemap.i @@ -85,19 +85,7 @@ CSHARP_ARRAYS_FIXED(int, int) %typemap(cstype,pre=" var tmp$csinput = GoSlice.getCPtr ($csinput);") GoSlice_* "GoSlice" %typemap(csin) GoSlice_* "GoSlice.getCPtr ($csinput)" -%apply unsigned short {GoUint16, GoUint16_}; -%apply unsigned long {GoUintptr, __SIZE_TYPE__}; -%apply short {GoInt16, GoInt16_}; -%apply unsigned char {GoUint8_, GoUint8}; -%apply unsigned int {GoUint32_, GoUint32}; -%apply signed char {GoInt8_, GoInt8}; -%apply unsigned long long {GoUint64, GoUint64_,GoUint,GoUint_}; -%apply long long {GoInt64, GoInt64_,GoInt_, GoInt }; -%apply GoSlice_* {coin__UxArray*,GoSlice_**}; -%apply int {GoInt32,GoInt32_,ptrdiff_t}; -%apply int* {GoInt32*,GoInt32_*,ptrdiff_t*}; -%apply float {GoFloat32}; -%apply double {GoFloat64}; + %typemap(freearg) (cipher_PubKeys* __in_pubKeys) { diff --git a/swig/libdotnet.i b/swig/libdotnet.i index 733edcf8..499e7d5d 100644 --- a/swig/libdotnet.i +++ b/swig/libdotnet.i @@ -1,5 +1,6 @@ %module skycoin %include "typemaps.i" +%include "cstring.i" %{ #define SWIG_FILE_WITH_INIT @@ -7,14 +8,14 @@ #include "swig.h" #include "skyerrors.h" %} - +%include "/gopath/src/github.com/skycoin/skycoin/lib/swig/common/common.i" +%include "/gopath/src/github.com/skycoin/skycoin/lib/swig//static/static.i" %include "csharp_java_typemap.i" %include "csharp_structs_typemaps.i" %include "csharp_java_basic.i" %include "csharp_skycoin.mem.i" %include "csharp_java_callback.i" -%include "/gopath/src/github.com/skycoin/skycoin/lib/swig/includes.i" %include "swig.h" /* Find the modified copy of libskycoin */ %include "libskycoin.h"